Import harfbuzz_0.9.35.orig.tar.bz2
authorأحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy@sabily.org>
Thu, 14 Aug 2014 08:47:30 +0000 (09:47 +0100)
committerأحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy@sabily.org>
Thu, 14 Aug 2014 08:47:30 +0000 (09:47 +0100)
[dgit import orig harfbuzz_0.9.35.orig.tar.bz2]

642 files changed:
AUTHORS [new file with mode: 0644]
Android.mk [new file with mode: 0644]
COPYING [new file with mode: 0644]
ChangeLog [new file with mode: 0644]
INSTALL [new file with mode: 0644]
Makefile.am [new file with mode: 0644]
Makefile.in [new file with mode: 0644]
NEWS [new file with mode: 0644]
README [new file with mode: 0644]
THANKS [new file with mode: 0644]
TODO [new file with mode: 0644]
aclocal.m4 [new file with mode: 0644]
ar-lib [new file with mode: 0755]
autogen.sh [new file with mode: 0755]
compile [new file with mode: 0755]
config.guess [new file with mode: 0755]
config.h.in [new file with mode: 0644]
config.sub [new file with mode: 0755]
configure [new file with mode: 0755]
configure.ac [new file with mode: 0644]
depcomp [new file with mode: 0755]
docs/Makefile.am [new file with mode: 0644]
docs/Makefile.in [new file with mode: 0644]
docs/reference/Makefile.am [new file with mode: 0644]
docs/reference/Makefile.in [new file with mode: 0644]
docs/reference/harfbuzz-docs.xml [new file with mode: 0644]
docs/reference/harfbuzz-overrides.txt [new file with mode: 0644]
docs/reference/harfbuzz-sections.txt [new file with mode: 0644]
docs/reference/harfbuzz.types [new file with mode: 0644]
docs/reference/html/annotation-glossary.html [new file with mode: 0644]
docs/reference/html/api-index-full.html [new file with mode: 0644]
docs/reference/html/ch01.html [new file with mode: 0644]
docs/reference/html/deprecated-api-index.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-blob.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-buffer.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-common.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-coretext.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-deprecated.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-face.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-font.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-ft.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-glib.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-gobject.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-graphite2.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-icu.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-ot-layout.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-ot-tag.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-ot.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-set.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-shape-plan.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-shape.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-unicode.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-uniscribe.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb-version.html [new file with mode: 0644]
docs/reference/html/harfbuzz-hb.html [new file with mode: 0644]
docs/reference/html/harfbuzz.devhelp2 [new file with mode: 0644]
docs/reference/html/home.png [new file with mode: 0644]
docs/reference/html/index.html [new file with mode: 0644]
docs/reference/html/index.sgml [new file with mode: 0644]
docs/reference/html/left-insensitive.png [new file with mode: 0644]
docs/reference/html/left.png [new file with mode: 0644]
docs/reference/html/object-tree.html [new file with mode: 0644]
docs/reference/html/right-insensitive.png [new file with mode: 0644]
docs/reference/html/right.png [new file with mode: 0644]
docs/reference/html/style.css [new file with mode: 0644]
docs/reference/html/up-insensitive.png [new file with mode: 0644]
docs/reference/html/up.png [new file with mode: 0644]
docs/reference/version.xml [new file with mode: 0644]
docs/reference/version.xml.in [new file with mode: 0644]
gtk-doc.make [new file with mode: 0644]
harfbuzz.doap [new file with mode: 0644]
install-sh [new file with mode: 0755]
ltmain.sh [new file with mode: 0644]
m4/ax_pthread.m4 [new file with mode: 0644]
m4/gtk-doc.m4 [new file with mode: 0644]
m4/libtool.m4 [new file with mode: 0644]
m4/ltoptions.m4 [new file with mode: 0644]
m4/ltsugar.m4 [new file with mode: 0644]
m4/ltversion.m4 [new file with mode: 0644]
m4/lt~obsolete.m4 [new file with mode: 0644]
m4/pkg.m4 [new file with mode: 0644]
missing [new file with mode: 0755]
src/Makefile.am [new file with mode: 0644]
src/Makefile.in [new file with mode: 0644]
src/check-c-linkage-decls.sh [new file with mode: 0755]
src/check-defs.sh [new file with mode: 0755]
src/check-header-guards.sh [new file with mode: 0755]
src/check-includes.sh [new file with mode: 0755]
src/check-libstdc++.sh [new file with mode: 0755]
src/check-static-inits.sh [new file with mode: 0755]
src/check-symbols.sh [new file with mode: 0755]
src/gen-arabic-table.py [new file with mode: 0755]
src/gen-indic-table.py [new file with mode: 0755]
src/harfbuzz-gobject.pc.in [new file with mode: 0644]
src/harfbuzz-icu.pc.in [new file with mode: 0644]
src/harfbuzz.pc.in [new file with mode: 0644]
src/hb-atomic-private.hh [new file with mode: 0644]
src/hb-blob.cc [new file with mode: 0644]
src/hb-blob.h [new file with mode: 0644]
src/hb-buffer-deserialize-json.hh [new file with mode: 0644]
src/hb-buffer-deserialize-json.rl [new file with mode: 0644]
src/hb-buffer-deserialize-text.hh [new file with mode: 0644]
src/hb-buffer-deserialize-text.rl [new file with mode: 0644]
src/hb-buffer-private.hh [new file with mode: 0644]
src/hb-buffer-serialize.cc [new file with mode: 0644]
src/hb-buffer.cc [new file with mode: 0644]
src/hb-buffer.h [new file with mode: 0644]
src/hb-cache-private.hh [new file with mode: 0644]
src/hb-common.cc [new file with mode: 0644]
src/hb-common.h [new file with mode: 0644]
src/hb-coretext.cc [new file with mode: 0644]
src/hb-coretext.h [new file with mode: 0644]
src/hb-deprecated.h [new file with mode: 0644]
src/hb-face-private.hh [new file with mode: 0644]
src/hb-face.cc [new file with mode: 0644]
src/hb-face.h [new file with mode: 0644]
src/hb-fallback-shape.cc [new file with mode: 0644]
src/hb-font-private.hh [new file with mode: 0644]
src/hb-font.cc [new file with mode: 0644]
src/hb-font.h [new file with mode: 0644]
src/hb-ft.cc [new file with mode: 0644]
src/hb-ft.h [new file with mode: 0644]
src/hb-glib.cc [new file with mode: 0644]
src/hb-glib.h [new file with mode: 0644]
src/hb-gobject-enums.cc.tmpl [new file with mode: 0644]
src/hb-gobject-enums.h.tmpl [new file with mode: 0644]
src/hb-gobject-structs.cc [new file with mode: 0644]
src/hb-gobject-structs.h [new file with mode: 0644]
src/hb-gobject.h [new file with mode: 0644]
src/hb-graphite2.cc [new file with mode: 0644]
src/hb-graphite2.h [new file with mode: 0644]
src/hb-icu.cc [new file with mode: 0644]
src/hb-icu.h [new file with mode: 0644]
src/hb-mutex-private.hh [new file with mode: 0644]
src/hb-object-private.hh [new file with mode: 0644]
src/hb-open-file-private.hh [new file with mode: 0644]
src/hb-open-type-private.hh [new file with mode: 0644]
src/hb-ot-cmap-table.hh [new file with mode: 0644]
src/hb-ot-font.cc [new file with mode: 0644]
src/hb-ot-font.h [new file with mode: 0644]
src/hb-ot-head-table.hh [new file with mode: 0644]
src/hb-ot-hhea-table.hh [new file with mode: 0644]
src/hb-ot-hmtx-table.hh [new file with mode: 0644]
src/hb-ot-layout-common-private.hh [new file with mode: 0644]
src/hb-ot-layout-gdef-table.hh [new file with mode: 0644]
src/hb-ot-layout-gpos-table.hh [new file with mode: 0644]
src/hb-ot-layout-gsub-table.hh [new file with mode: 0644]
src/hb-ot-layout-gsubgpos-private.hh [new file with mode: 0644]
src/hb-ot-layout-jstf-table.hh [new file with mode: 0644]
src/hb-ot-layout-private.hh [new file with mode: 0644]
src/hb-ot-layout.cc [new file with mode: 0644]
src/hb-ot-layout.h [new file with mode: 0644]
src/hb-ot-map-private.hh [new file with mode: 0644]
src/hb-ot-map.cc [new file with mode: 0644]
src/hb-ot-maxp-table.hh [new file with mode: 0644]
src/hb-ot-name-table.hh [new file with mode: 0644]
src/hb-ot-shape-complex-arabic-fallback.hh [new file with mode: 0644]
src/hb-ot-shape-complex-arabic-table.hh [new file with mode: 0644]
src/hb-ot-shape-complex-arabic-win1256.hh [new file with mode: 0644]
src/hb-ot-shape-complex-arabic.cc [new file with mode: 0644]
src/hb-ot-shape-complex-default.cc [new file with mode: 0644]
src/hb-ot-shape-complex-hangul.cc [new file with mode: 0644]
src/hb-ot-shape-complex-hebrew.cc [new file with mode: 0644]
src/hb-ot-shape-complex-indic-machine.hh [new file with mode: 0644]
src/hb-ot-shape-complex-indic-machine.rl [new file with mode: 0644]
src/hb-ot-shape-complex-indic-private.hh [new file with mode: 0644]
src/hb-ot-shape-complex-indic-table.cc [new file with mode: 0644]
src/hb-ot-shape-complex-indic.cc [new file with mode: 0644]
src/hb-ot-shape-complex-myanmar-machine.hh [new file with mode: 0644]
src/hb-ot-shape-complex-myanmar-machine.rl [new file with mode: 0644]
src/hb-ot-shape-complex-myanmar.cc [new file with mode: 0644]
src/hb-ot-shape-complex-private.hh [new file with mode: 0644]
src/hb-ot-shape-complex-sea-machine.hh [new file with mode: 0644]
src/hb-ot-shape-complex-sea-machine.rl [new file with mode: 0644]
src/hb-ot-shape-complex-sea.cc [new file with mode: 0644]
src/hb-ot-shape-complex-thai.cc [new file with mode: 0644]
src/hb-ot-shape-complex-tibetan.cc [new file with mode: 0644]
src/hb-ot-shape-fallback-private.hh [new file with mode: 0644]
src/hb-ot-shape-fallback.cc [new file with mode: 0644]
src/hb-ot-shape-normalize-private.hh [new file with mode: 0644]
src/hb-ot-shape-normalize.cc [new file with mode: 0644]
src/hb-ot-shape-private.hh [new file with mode: 0644]
src/hb-ot-shape.cc [new file with mode: 0644]
src/hb-ot-shape.h [new file with mode: 0644]
src/hb-ot-tag.cc [new file with mode: 0644]
src/hb-ot-tag.h [new file with mode: 0644]
src/hb-ot.h [new file with mode: 0644]
src/hb-private.hh [new file with mode: 0644]
src/hb-set-private.hh [new file with mode: 0644]
src/hb-set.cc [new file with mode: 0644]
src/hb-set.h [new file with mode: 0644]
src/hb-shape-plan-private.hh [new file with mode: 0644]
src/hb-shape-plan.cc [new file with mode: 0644]
src/hb-shape-plan.h [new file with mode: 0644]
src/hb-shape.cc [new file with mode: 0644]
src/hb-shape.h [new file with mode: 0644]
src/hb-shaper-impl-private.hh [new file with mode: 0644]
src/hb-shaper-list.hh [new file with mode: 0644]
src/hb-shaper-private.hh [new file with mode: 0644]
src/hb-shaper.cc [new file with mode: 0644]
src/hb-ucdn.cc [new file with mode: 0644]
src/hb-ucdn/COPYING [new file with mode: 0644]
src/hb-ucdn/Makefile.am [new file with mode: 0644]
src/hb-ucdn/Makefile.in [new file with mode: 0644]
src/hb-ucdn/README [new file with mode: 0644]
src/hb-ucdn/ucdn.c [new file with mode: 0644]
src/hb-ucdn/ucdn.h [new file with mode: 0644]
src/hb-ucdn/unicodedata_db.h [new file with mode: 0644]
src/hb-unicode-private.hh [new file with mode: 0644]
src/hb-unicode.cc [new file with mode: 0644]
src/hb-unicode.h [new file with mode: 0644]
src/hb-uniscribe.cc [new file with mode: 0644]
src/hb-uniscribe.h [new file with mode: 0644]
src/hb-utf-private.hh [new file with mode: 0644]
src/hb-version.h [new file with mode: 0644]
src/hb-version.h.in [new file with mode: 0644]
src/hb-warning.cc [new file with mode: 0644]
src/hb.h [new file with mode: 0644]
src/main.cc [new file with mode: 0644]
src/test-buffer-serialize.cc [new file with mode: 0644]
src/test-size-params.cc [new file with mode: 0644]
src/test-would-substitute.cc [new file with mode: 0644]
src/test.cc [new file with mode: 0644]
test-driver [new file with mode: 0755]
test/Makefile.am [new file with mode: 0644]
test/Makefile.in [new file with mode: 0644]
test/api/Makefile.am [new file with mode: 0644]
test/api/Makefile.in [new file with mode: 0644]
test/api/hb-test.h [new file with mode: 0644]
test/api/test-blob.c [new file with mode: 0644]
test/api/test-buffer.c [new file with mode: 0644]
test/api/test-c.c [new file with mode: 0644]
test/api/test-common.c [new file with mode: 0644]
test/api/test-cplusplus.cc [new file with mode: 0644]
test/api/test-font.c [new file with mode: 0644]
test/api/test-object.c [new file with mode: 0644]
test/api/test-ot-tag.c [new file with mode: 0644]
test/api/test-set.c [new file with mode: 0644]
test/api/test-shape.c [new file with mode: 0644]
test/api/test-unicode.c [new file with mode: 0644]
test/api/test-version.c [new file with mode: 0644]
test/shaping/Makefile.am [new file with mode: 0644]
test/shaping/Makefile.in [new file with mode: 0644]
test/shaping/fonts/sha1sum/226bc2deab3846f1a682085f70c67d0421014144.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/270b89df543a7e48e206a2d830c0e10e5265c630.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/37033cc5cf37bb223d7355153016b6ccece93b28.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/4cce528e99f600ed9c25a2b69e32eb94a03b4ae8.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/57a9d9f83020155cbb1d2be1f43d82388cbecc88.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/757ebd573617a24aa9dfbf0b885c54875c6fe06b.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/7e14e7883ed152baa158b80e207b66114c823a8b.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/813c2f8e5512187fd982417a7fb4286728e6f4a8.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/8454d22037f892e76614e1645d066689a0200e61.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/8a9fea2a7384f2116e5b84a9b31f83be7850ce21.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/MANIFEST [new file with mode: 0644]
test/shaping/fonts/sha1sum/a919b33197965846f21074b24e30250d67277bce.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/bb29ce50df2bdba2d10726427c6b7609bf460e04.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/bb9473d2403488714043bcfb946c9f78b86ad627.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/d629e7fedc0b350222d7987345fe61613fa3929a.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/df768b9c257e0c9c35786c47cae15c46571d56be.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/e207635780b42f898d58654b65098763e340f5c7.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/ef86fe710cfea877bbe0dbb6946a1f88d0661031.ttf [new file with mode: 0644]
test/shaping/fonts/sha1sum/f499fbc23865022234775c43503bba2e63978fe1.ttf [new file with mode: 0644]
test/shaping/hb-diff [new file with mode: 0755]
test/shaping/hb-diff-colorize [new file with mode: 0755]
test/shaping/hb-diff-filter-failures [new file with mode: 0755]
test/shaping/hb-diff-ngrams [new file with mode: 0755]
test/shaping/hb-diff-stat [new file with mode: 0755]
test/shaping/hb-manifest-read [new file with mode: 0755]
test/shaping/hb-manifest-update [new file with mode: 0755]
test/shaping/hb-unicode-decode [new file with mode: 0755]
test/shaping/hb-unicode-encode [new file with mode: 0755]
test/shaping/hb-unicode-prettyname [new file with mode: 0755]
test/shaping/hb_test_tools.py [new file with mode: 0644]
test/shaping/record-test.sh [new file with mode: 0755]
test/shaping/run-tests.sh [new file with mode: 0755]
test/shaping/tests/arabic-fallback-shaping.tests [new file with mode: 0644]
test/shaping/tests/arabic-feature-order.tests [new file with mode: 0644]
test/shaping/tests/context-matching.tests [new file with mode: 0644]
test/shaping/tests/hangul-jamo.tests [new file with mode: 0644]
test/shaping/tests/indic-old-spec.tests [new file with mode: 0644]
test/shaping/tests/indic-pref-blocking.tests [new file with mode: 0644]
test/shaping/tests/mongolian-variation-selector.tests [new file with mode: 0644]
test/shaping/tests/zero-width-marks.tests [new file with mode: 0644]
test/shaping/texts/in-tree/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-persian/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-persian/mehran.txt [new file with mode: 0755]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/2grams.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/3grams.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/4grams.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/5grams.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/6grams.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/7grams.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/8grams.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/LICENSE [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/README [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/SOURCES [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/lam-alef.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/language-arabic.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/language-persian.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/language-urdu.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/ligature-components.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/ligature-diacritics.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/mark-skipping.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-mandaic/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-mandaic/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-mongolian/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/non-joining.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/poem.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/variation-selectors.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-nko/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-nko/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-nko/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-phags-pa/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-phags-pa/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-phags-pa/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-syriac/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-syriac/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-arabic/script-syriac/misc/alaph.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-ethiopic/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-ethiopic/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-ethiopic/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-han/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-han/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-han/misc/cjk-compat.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-hiragana/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-hiragana/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-hiragana/misc/kazuraki-liga-lines.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-hiragana/misc/kazuraki-liga.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-linear-b/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-linear-b/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-linear-b/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-tifinagh/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-tifinagh/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-default/script-tifinagh/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-hangul/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-hangul/script-hangul/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-hangul/script-hangul/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-hangul/script-hangul/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-hebrew/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-hebrew/script-hebrew/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-hebrew/script-hebrew/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-hebrew/script-hebrew/misc/diacritics.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/LICENSE [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/README [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/SOURCES [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/gpos/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/gsub/IndicFontFeatureGSUB.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/gsub/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/misc/reph.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/LICENSE [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/README [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/SOURCES [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/gpos/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/gsub/IndicFontFeatureGSUB.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/gsub/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/dottedcircle.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/eyelash.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/joiners.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/spec-deviations.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/tricky-reordering.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/LICENSE [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/README [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/SOURCES [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalConsonants.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-DevnagariSpecificAddition.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-GenericPunctuation.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/gpos/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/gsub/IndicFontFeatureGSUB.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/gsub/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/LICENSE [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/README [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/SOURCES [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/gpos/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/gsub/IndicFontFeatureGSUB.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/gsub/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/LICENSE [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/README [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/SOURCES [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-GurmukhiSpecific.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/gpos/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/gsub/IndicFontFeatureGSUB.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/gsub/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/right-matras.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/LICENSE [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/README [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/SOURCES [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalConsonants.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/gpos/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/gsub/IndicFontFeatureGSUB.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/gsub/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/misc/cibu.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/misc/dot-reph.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/LICENSE [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/README [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/SOURCES [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/gsub/IndicFontFeatureGSUB.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/gsub/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/bindu.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/LICENSE [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/README [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/SOURCES [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalConsonants.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-OriyaSpecific.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/gsub/IndicFontFeatureGSUB.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/gsub/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/misc/extensive.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/misc/reph.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/misc/split-matras.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/LICENSE [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/README [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/SOURCES [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-Punctuation.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gpos/IndicFontFeatureGPOS.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gpos/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Conjunct.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Rakaaraansaya.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Repaya.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Special-Cases.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-TouchingLetters.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Yansaya.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/LICENSE [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/README [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/SOURCES [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-CurrencySymbols.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Numerics.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Symbols.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-TamilSymbol.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/gpos/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/gsub/IndicFontFeatureGSUB.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/gsub/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/LICENSE [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/README [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/SOURCES [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/gpos/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/gsub/IndicFontFeatureGSUB.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/gsub/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/south-east-asian/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/other-marks-invalid.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/other-marks.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-myanmar/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/otspec.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/utn11.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-sea/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-sea/script-cham/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-sea/script-cham/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-sea/script-cham/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-sea/script-new-tai-lue/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-sea/script-new-tai-lue/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-sea/script-new-tai-lue/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-sea/script-tai-tham/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-sea/script-tai-tham/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-sea/script-tai-tham/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-sea/script-tai-tham/misc/torture.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-thai/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-thai/script-lao/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-thai/script-lao/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-thai/script-lao/misc/sara-am.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-thai/script-thai/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-thai/script-thai/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-thai/script-thai/misc/misc.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-thai/script-thai/misc/phinthu.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-thai/script-thai/misc/pua-shaping.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-thai/script-thai/misc/sara-am.txt [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-tibetan/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-tibetan/script-tibetan/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-tibetan/script-tibetan/misc/MANIFEST [new file with mode: 0644]
test/shaping/texts/in-tree/shaper-tibetan/script-tibetan/misc/misc.txt [new file with mode: 0644]
util/Makefile.am [new file with mode: 0644]
util/Makefile.in [new file with mode: 0644]
util/ansi-print.cc [new file with mode: 0644]
util/ansi-print.hh [new file with mode: 0644]
util/hb-ot-shape-closure.cc [new file with mode: 0644]
util/hb-shape.cc [new file with mode: 0644]
util/hb-view.cc [new file with mode: 0644]
util/helper-cairo-ansi.cc [new file with mode: 0644]
util/helper-cairo-ansi.hh [new file with mode: 0644]
util/helper-cairo.cc [new file with mode: 0644]
util/helper-cairo.hh [new file with mode: 0644]
util/main-font-text.hh [new file with mode: 0644]
util/options.cc [new file with mode: 0644]
util/options.hh [new file with mode: 0644]
util/shape-consumer.hh [new file with mode: 0644]
util/view-cairo.cc [new file with mode: 0644]
util/view-cairo.hh [new file with mode: 0644]

diff --git a/AUTHORS b/AUTHORS
new file mode 100644 (file)
index 0000000..81cdc4c
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,9 @@
+Behdad Esfahbod
+Simon Hausmann
+Martin Hosken
+Jonathan Kew
+Lars Knoll
+Werner Lemberg
+Roozbeh Pournader
+Owen Taylor
+David Turner
diff --git a/Android.mk b/Android.mk
new file mode 100644 (file)
index 0000000..07dfa5b
--- /dev/null
@@ -0,0 +1,106 @@
+##
+## Copyright (C) 2012 The Android Open Source Project
+##
+## Licensed under the Apache License, Version 2.0 (the "License");
+## you may not use this file except in compliance with the License.
+## You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+
+#############################################################
+#   Note:
+#
+#   This file is used to build HarfBuzz within the Android
+#   platform itself.  If you need to compile HarfBuzz to
+#   ship with your Android NDK app, you can use the autotools
+#   build system to do so.  To do that you need to install a
+#   "standalone" toolchain with the NDK, eg:
+#
+#       ndk/build/tools/make-standalone-toolchain.sh \
+#           --platform=android-18 \
+#           --install-dir=/prefix
+#
+#   Set PLATFORM_PREFIX eng var to that prefix and make sure
+#   the cross-compile tools from PLATFORM_PREFIX are in path.
+#   Configure and install HarfBuzz:
+#
+#       ./configure --host=arm-linux-androideabi \
+#           --prefix=$PLATFORM_PREFIX \
+#           --enable-static \
+#           --with-freetype \
+#           PKG_CONFIG_LIBDIR=$PLATFORM_PREFIX/lib/pkgconfig
+#       make install
+#
+#   You can first build FreeType the same way:
+#
+#       ./configure --host=arm-linux-androideabi \
+#           --prefix=$PLATFORM_PREFIX \
+#           --enable-static \
+#           --without-png \
+#           PKG_CONFIG_LIBDIR=$PLATFORM_PREFIX/lib/pkgconfig
+#       make install
+#
+
+LOCAL_PATH:= $(call my-dir)
+
+HARFBUZZ_SRC_FILES = \
+       src/hb-blob.cc \
+       src/hb-buffer-serialize.cc \
+       src/hb-buffer.cc \
+       src/hb-common.cc \
+       src/hb-face.cc \
+       src/hb-font.cc \
+       src/hb-ot-tag.cc \
+       src/hb-set.cc \
+       src/hb-shape.cc \
+       src/hb-shape-plan.cc \
+       src/hb-shaper.cc \
+       src/hb-unicode.cc \
+       src/hb-warning.cc \
+       src/hb-ot-font.cc \
+       src/hb-ot-layout.cc \
+       src/hb-ot-map.cc \
+       src/hb-ot-shape.cc \
+       src/hb-ot-shape-complex-arabic.cc \
+       src/hb-ot-shape-complex-default.cc \
+       src/hb-ot-shape-complex-hangul.cc \
+       src/hb-ot-shape-complex-hebrew.cc \
+       src/hb-ot-shape-complex-indic.cc \
+       src/hb-ot-shape-complex-indic-table.cc \
+       src/hb-ot-shape-complex-myanmar.cc \
+       src/hb-ot-shape-complex-sea.cc \
+       src/hb-ot-shape-complex-thai.cc \
+       src/hb-ot-shape-complex-tibetan.cc \
+       src/hb-ot-shape-normalize.cc \
+       src/hb-ot-shape-fallback.cc \
+       $(NULL)
+
+#############################################################
+#   build the harfbuzz shared library
+#
+include $(CLEAR_VARS)
+LOCAL_ARM_MODE := arm
+LOCAL_MODULE_TAGS := optional
+LOCAL_SRC_FILES:= \
+       $(HARFBUZZ_SRC_FILES) \
+       src/hb-icu.cc
+LOCAL_CPP_EXTENSION := .cc
+LOCAL_SHARED_LIBRARIES := \
+       libcutils \
+       libicuuc \
+       libicui18n \
+       libutils \
+       liblog
+LOCAL_C_INCLUDES += \
+        $(LOCAL_PATH)/src \
+        external/icu/icu4c/source/common
+LOCAL_CFLAGS += -DHB_NO_MT -DHAVE_OT -DHAVE_ICU -DHAVE_ICU_BUILTIN
+LOCAL_MODULE:= libharfbuzz_ng
+include $(BUILD_SHARED_LIBRARY)
diff --git a/COPYING b/COPYING
new file mode 100644 (file)
index 0000000..9d1056f
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,36 @@
+HarfBuzz is licensed under the so-called "Old MIT" license.  Details follow.
+For parts of HarfBuzz that are licensed under different licenses see individual
+files names COPYING in subdirectories where applicable.
+
+Copyright © 2010,2011,2012  Google, Inc.
+Copyright © 2012  Mozilla Foundation
+Copyright © 2011  Codethink Limited
+Copyright © 2008,2010  Nokia Corporation and/or its subsidiary(-ies)
+Copyright © 2009  Keith Stribley
+Copyright © 2009  Martin Hosken and SIL International
+Copyright © 2007  Chris Wilson
+Copyright © 2006  Behdad Esfahbod
+Copyright © 2005  David Turner
+Copyright © 2004,2007,2008,2009,2010  Red Hat, Inc.
+Copyright © 1998-2004  David Turner and Werner Lemberg
+
+For full copyright notices consult the individual files in the package.
+
+
+Permission is hereby granted, without written agreement and without
+license or royalty fees, to use, copy, modify, and distribute this
+software and its documentation for any purpose, provided that the
+above copyright notice and the following two paragraphs appear in
+all copies of this software.
+
+IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.
+
+THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
diff --git a/ChangeLog b/ChangeLog
new file mode 100644 (file)
index 0000000..909fdf0
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,45740 @@
+commit cd5a1149d980dc3c17b6bb9d961c761b2671ba1b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Wed Aug 13 12:39:34 2014 -0400
+
+    0.9.35
+
+ NEWS         | 29 +++++++++++++++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 30 insertions(+), 1 deletion(-)
+
+commit 20076cc41e673c31305fcb58d37b3b292fd35f83
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Aug 12 19:26:35 2014 -0400
+
+    [coretext] Add version guards for kCTLanguageAttributeName
+
+ src/hb-coretext.cc | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+commit 1b3011c27df531875d432e909ae6b77f115c5017
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Aug 12 19:17:19 2014 -0400
+
+    [coretext] Pass buffer language to CoreText
+
+ src/hb-coretext.cc | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+commit 3eb6a4dbf25b11fce5e0e426e89f7457887aeca0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Aug 12 19:10:33 2014 -0400
+
+    [coretext] Minor
+
+ src/hb-coretext.cc | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+commit 08acfe0d3a1d8223a9fa0696703fff63d6c2ea8b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Aug 12 18:57:08 2014 -0400
+
+    [hb-coretext] Fix cluster order of notdef runs in RTL text
+
+ src/hb-coretext.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 30eed75de24ac0b6648a72d98d10bb24a563d7ef
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Aug 12 17:15:09 2014 -0400
+
+    [shape-plan] Fix typo!
+
+    The only effect is, if shaper_list was not NULL and no shaper
+    was found,
+    we now don't insert anything into cache and return earlier.
+
+ src/hb-shape-plan.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit dc9aba6fc53898acd7281b118cec0355d61b1df2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Aug 12 17:14:36 2014 -0400
+
+    [shape-plan] Better debug messages
+
+ src/hb-shape-plan.cc | 14 ++++++++++----
+ 1 file changed, 10 insertions(+), 4 deletions(-)
+
+commit e956c65bf724a8403471362288d2361361b6ac58
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Aug 12 17:03:27 2014 -0400
+
+    [shape-plan] Simplify macro
+
+ src/hb-shape-plan.cc | 22 ++++++++--------------
+ 1 file changed, 8 insertions(+), 14 deletions(-)
+
+commit 29e25550ce8fee3fecc42d20a45ce9c212dc59df
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Aug 12 17:02:59 2014 -0400
+
+    Fix gcc warning
+
+ src/hb-private.hh | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+commit 8d5eebc0c6ada01128c6ee384340efdbef7ba29d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Aug 12 16:50:22 2014 -0400
+
+    [shape-plan] Fix shape-plan caching with more than one requested
+    shaper
+
+    Wasn't breaking out of loop, ouch!
+
+    http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1246370.html
+
+ src/hb-shape-plan.cc | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+commit bc3d0dc60104f1cda465a5e8ba5b40ed5bec70b9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Aug 12 16:49:18 2014 -0400
+
+    [shape-plan] Add debug tracing
+
+ src/hb-shape-plan.cc | 26 ++++++++++++++++++++++++++
+ 1 file changed, 26 insertions(+)
+
+commit 81b8d9777b9c38c7e6408591763a4cac6de18e4b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Aug 12 15:49:47 2014 -0400
+
+    [coretext] Fix buffer resizing
+
+    Was very broken.  Now fixed and tested.
+
+ src/hb-coretext.cc | 17 +++++++++++++----
+ 1 file changed, 13 insertions(+), 4 deletions(-)
+
+commit c3e924fb9e0e2d4003790817655efd9c5688c7e1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Aug 12 14:25:11 2014 -0400
+
+    [coretext] Rewind scratch-allocated arrays when not needed anymore
+
+ src/hb-coretext.cc | 16 ++++++++++++++++
+ 1 file changed, 16 insertions(+)
+
+commit 8fd4d70b1450d7261a35ab3dea1c70baea2e5c99
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Aug 12 13:12:31 2014 -0400
+
+    [wince] Two more Windows CE fixes
+
+    Report has it that it builds (and works) now:
+
+      https://codereview.qt-project.org/#/c/92087/
+
+ src/hb-mutex-private.hh | 2 +-
+ src/hb-private.hh       | 2 ++
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+commit fd0001d7dbe6ede99a9f87f96f231ffb53303be8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Aug 12 10:32:41 2014 -0400
+
+    [coretext] Compare CGFont and PS name, if CTFont didn't match
+
+    See comments.
+
+    Fixes vertical text.  CoreText backend is in very good shape now!
+
+    Also see:
+    5a0eed3b50629be4826e4e9428f2c3255195395d
+    25f4fb9b56bb3f8bec821571c78f8829e40daa54
+
+    Fixes http://github.com/behdad/harfbuzz/pull/36
+
+ src/hb-coretext.cc | 54
+ ++++++++++++++++++++++++++++++++++++++++++++++++------
+ 1 file changed, 48 insertions(+), 6 deletions(-)
+
+commit 5a0eed3b50629be4826e4e9428f2c3255195395d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Aug 11 23:47:16 2014 -0400
+
+    [coretext] Implement vertical shaping
+
+    Currently doesn't work though, we detect font fallback.  Apparently
+    matching on ct_font is not safe for this.  Looks like commit
+    25f4fb9b56bb3f8bec821571c78f8829e40daa54 wasn't enough after all.
+
+ src/hb-coretext.cc | 127
+ ++++++++++++++++++++++++++++++++++-------------------
+ 1 file changed, 81 insertions(+), 46 deletions(-)
+
+commit 1b55077f03758e49f93b8bc1de678e96ea58718c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Aug 11 20:45:12 2014 -0400
+
+    [coretext] Remove unnecessary alt_size
+
+    Wasn't needed after a6b8dc87421de33746b0b14d86d2d1532aec02af.
+
+ src/hb-coretext.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 10b1104d791a0b0103c6bbb083b5819f2b7d328d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Aug 11 20:02:45 2014 -0400
+
+    [coretext] Use CFRunStatus
+
+    Assert that all runs had expected direction, and take hint for
+    non-monotone clusters.
+
+ src/hb-coretext.cc | 17 +++++++++++++++--
+ 1 file changed, 15 insertions(+), 2 deletions(-)
+
+commit fd1a6aa8d029c701b1532efa59ce901109cfc216
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Aug 11 20:01:37 2014 -0400
+
+    [coretext] Minor
+
+ src/hb-coretext.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 130856c705641aa681307b5b51b5fb84e295f382
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Aug 11 19:16:26 2014 -0400
+
+    [coretext] Remove debug printf!
+
+ src/hb-coretext.cc | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit b5fbc3b8f560235d014c62e49220574ffcf89349
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Aug 11 18:40:01 2014 -0400
+
+    API: Do not clear buffer-flags in hb_buffer_clear_contents()
+
+    After 763e5466c0a03a7c27020e1e2598e488612529a7, one doesn't
+    need to set flags for different pieces of text.  The flags now
+    are something the client sets up once, depending on how it
+    actually uses the buffer.  As such, don't clear it in
+    clear_contents().
+
+    Tests updated.
+
+ src/hb-buffer-private.hh |  4 +---
+ src/hb-buffer.cc         |  4 ++--
+ test/api/test-buffer.c   | 15 ++++++++++++---
+ 3 files changed, 15 insertions(+), 8 deletions(-)
+
+commit 104484cefeca03d95837bba5f39178693c86ce8a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Aug 11 18:23:43 2014 -0400
+
+    Minor
+
+ src/hb-common.h | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit 4acce77db7dd588ba277779c4997b0256ebe426e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Aug 11 17:46:50 2014 -0400
+
+    [coretext] Pass buffer direction to CoreText
+
+    Have to use a CTTypesetter for this.
+
+ src/hb-coretext.cc | 26 ++++++++++++++++++++++----
+ 1 file changed, 22 insertions(+), 4 deletions(-)
+
+commit 5ec45dd37caa8a87ce2689a66272ba8a343fe6ba
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Aug 11 17:46:12 2014 -0400
+
+    [coretext] Minor
+
+    It's hard to handle all possible NULL returns from CoreText.  Add one
+    more...
+
+ src/hb-coretext.cc | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+commit 624a299b829ccf9864dd2f3001b1a49476e96b4a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Aug 11 15:29:18 2014 -0400
+
+    [coretext] Attach marks to base clusters
+
+    Fixes https://githu.com/behdad/harfbuzz/issues/49
+    to the extent that it can be fixed.
+
+ src/hb-coretext.cc | 16 ++++++++++++++++
+ 1 file changed, 16 insertions(+)
+
+commit 3c41ccb5358b0be6cc68d49f436d2cb1792cd5e5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Aug 11 15:11:59 2014 -0400
+
+    [coretext] Use input clusters
+
+    Before, this shaper was returning UTF-16 cluster indices instead of
+    returning whatever cluster values the user had had set up in the
+    buffer.
+    Ouch!
+
+ src/hb-coretext.cc | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+commit a6b8dc87421de33746b0b14d86d2d1532aec02af
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Aug 11 15:08:19 2014 -0400
+
+    [coretext] Fix buffer resize handling
+
+    We can't really resize buffer and continue in this shaper as we are
+    using the scratch buffer for string_ref and log_cluster.  Restructure
+    shaper to retry from (almost) scratch.
+
+ src/hb-buffer-private.hh |   3 +
+ src/hb-coretext.cc       | 428
+ ++++++++++++++++++++++++++---------------------
+ 2 files changed, 238 insertions(+), 193 deletions(-)
+
+commit 9b3c60c88b118f01610ae7a608b138f79f2dc7be
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Aug 11 13:25:43 2014 -0400
+
+    [coretext] Always compute log_clusters
+
+    To be used soon.
+
+ src/hb-coretext.cc | 24 +++++++++++-------------
+ 1 file changed, 11 insertions(+), 13 deletions(-)
+
+commit 15c633dd1f412f9ef839d80a8f7af35e7ea48fbc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Aug 11 13:42:42 2014 -0400
+
+    Minor
+
+ src/hb-graphite2.cc | 4 ++--
+ src/hb-uniscribe.cc | 6 ++----
+ 2 files changed, 4 insertions(+), 6 deletions(-)
+
+commit 9ce067c77524a9ffc77ceabcba5e7dab36fd39de
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Aug 11 02:04:38 2014 -0400
+
+    [coretext] Simplify cluster mapping
+
+ src/hb-coretext.cc | 41 +++++++++++++++++------------------------
+ 1 file changed, 17 insertions(+), 24 deletions(-)
+
+commit 49f7fb63761e4ca9936990fb90a77fd3600f5ad2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sun Aug 10 19:19:38 2014 -0400
+
+    [coretext] Minor
+
+ src/hb-coretext.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 25f4fb9b56bb3f8bec821571c78f8829e40daa54
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sun Aug 10 19:05:25 2014 -0400
+
+    [coretext] Fix fallback detection
+
+    Fixes http://github.com/behdad/harfbuzz/pull/36
+
+ src/hb-coretext.cc | 29 ++++++++++++++++++++---------
+ 1 file changed, 20 insertions(+), 9 deletions(-)
+
+commit 77a7a53acef7de355116d488e7d64ff1d7e9e9e1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sun Aug 10 18:59:47 2014 -0400
+
+    [coretext] Fix last range
+
+    Test with:
+
+    hb-view /Library/Fonts/Zapfino.ttf ZapfinoZapfino --features=-dlig[7:]
+    --shaper=coretext
+
+ src/hb-coretext.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit c2b151d95262a8dc2d2ce94e19ab0ef5b0c8f98d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sun Aug 10 18:52:07 2014 -0400
+
+    Fix hb_in_range() for types smaller than int
+
+    As exercised by hb-coretext .notdef code.
+
+ src/hb-private.hh | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit 26a963b9cb4af3119177f277a2d48a5d537458fb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sun Aug 10 18:04:50 2014 -0400
+
+    [wince] Try to fix some stuff on Windows CE
+
+    Based on errors seen here:
+    http://testresults.qt-project.org/ci/QtBase_dev_Integration/build_03837/wince70embedded-armv4i-msvc2008_Windows_7/log.txt.gz
+
+    Fully untested.
+
+ src/hb-private.hh | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 92aeee3f040c2c32cbf70b27bd6954535388c870
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sun Aug 10 17:42:19 2014 -0400
+
+    Minor
+
+ src/hb-coretext.cc  | 4 ++--
+ src/hb-uniscribe.cc | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+commit b9993d8d6d332994dfbd29e99ff8043622003417
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sun Aug 10 17:40:24 2014 -0400
+
+    [coretext] Fix assert on Yosemite
+
+    Apparently those functions documented as sometimes returning NULL
+    actually exercise that right in OS X 10.10 Yosemite.  The scratch
+    was too small for that.  I *think* I fixed it, but haven't tested
+    as I don't have Yosemite.
+
+ src/hb-coretext.cc | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+commit 087733dd66e17297ef0e53680fafe42c84884104
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Apr 18 11:21:08 2014 -0700
+
+    [coretext] Use CGFont as face_data
+
+ src/hb-coretext.cc | 26 +++++++++-----------------
+ 1 file changed, 9 insertions(+), 17 deletions(-)
+
+commit d277c3d7eee1fd4fb41c38255e5c4df539353e89
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Thu Aug 7 15:38:52 2014 -0400
+
+    [arabic] Bug 82306 - Mandaic had errors in its Unicode Joining_Type
+
+    Fixes https://bugs.freedesktop.org/show_bug.cgi?id=82306
+
+ src/hb-ot-shape-complex-arabic-table.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 38fb30d7420a4b01f99cee31baa8c3990a1d1c5f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Wed Aug 6 13:34:49 2014 -0400
+
+    Use atexit() only if it's safe to call from shared library
+
+    Apparently they are not (advertised as?) safe on BSD systems.
+    We ignore the case of static libraries.
+
+    Whitelisted on glibc, Android, and MSVC / mingw.
+
+    https://bugs.freedesktop.org/show_bug.cgi?id=82246
+
+ src/hb-common.cc    |  4 ++--
+ src/hb-ft.cc        |  2 +-
+ src/hb-private.hh   | 25 +++++++++++++++++++++++++
+ src/hb-shape.cc     |  2 +-
+ src/hb-shaper.cc    |  2 +-
+ src/hb-uniscribe.cc |  2 +-
+ 6 files changed, 31 insertions(+), 6 deletions(-)
+
+commit d5e61470fa8e5046c35a79988e00e012ae4fff0f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Aug 5 14:19:01 2014 -0400
+
+    [arabic] Fix fallback shaping regression
+
+    Was broken in 615d00ea252739da57edbd980ff27e573.
+
+    Fixes https://github.com/behdad/harfbuzz/pull/48
+
+    Micro-test added.
+
+ src/hb-ot-shape-complex-arabic.cc                        |   4 ++--
+ test/shaping/Makefile.am                                 |   1 +
+ test/shaping/fonts/sha1sum/MANIFEST                      |   1 +
+ .../sha1sum/df768b9c257e0c9c35786c47cae15c46571d56be.ttf | Bin 0 ->
+ 6332 bytes
+ test/shaping/tests/MANIFEST                              |   1 +
+ test/shaping/tests/arabic-fallback-shaping.tests         |   1 +
+ 6 files changed, 6 insertions(+), 2 deletions(-)
+
+commit 91c2c0fd2b0f660d79744b3dfaf39ab86883e96b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sat Aug 2 19:24:55 2014 -0400
+
+    0.9.34
+
+ NEWS         | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 54 insertions(+), 1 deletion(-)
+
+commit d7c850f8037d2701366008eb8c2a527c9d40abde
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sat Aug 2 17:46:38 2014 -0400
+
+    [uniscribe] Minor
+
+ src/hb-uniscribe.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 8f3eebf7ee4005f9a8efaafcb7f4058cc0a3756e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sat Aug 2 17:18:46 2014 -0400
+
+    Make sure gsubgpos buffer vars are available during fallback_position
+
+    Add buffer var allocation asserts to a few key places.
+
+ src/hb-ot-layout-gpos-table.hh             |  4 ++--
+ src/hb-ot-layout-gsub-table.hh             |  2 +-
+ src/hb-ot-layout-private.hh                | 15 +++++++++++++++
+ src/hb-ot-shape-complex-arabic-fallback.hh |  2 +-
+ src/hb-ot-shape-fallback.cc                |  2 ++
+ src/hb-ot-shape-normalize.cc               |  2 ++
+ src/hb-ot-shape.cc                         |  3 +++
+ 7 files changed, 26 insertions(+), 4 deletions(-)
+
+commit 2053f369f84676f197ac41ea654a318c48922abd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sat Aug 2 16:31:16 2014 -0400
+
+    Disable 'liga' for vertical text
+
+    The reason we turned it on is because Kazuraki uses it.  But that's
+    not reason enough.  Until the OpenType spec gets its act together re
+    adding design-direction to lookups, this is better user experience.
+
+ src/hb-ot-shape.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 763e5466c0a03a7c27020e1e2598e488612529a7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sat Aug 2 16:17:44 2014 -0400
+
+    Make it easier to use HB_BUFFER_FLAG_BOT/EOT
+
+    Previously, we expected users to provide BOT/EOT flags when the
+    text *segment* was at paragraph boundaries.  This meant that for
+    clients that provide full paragraph to HarfBuzz (eg. Pango), they
+    had code like this:
+
+      hb_buffer_set_flags (hb_buffer,
+                           (item_offset == 0 ? HB_BUFFER_FLAG_BOT : 0) |
+                           (item_offset + item_length == paragraph_length
+                           ?
+                            HB_BUFFER_FLAG_EOT : 0));
+
+      hb_buffer_add_utf8 (hb_buffer,
+                          paragraph_text, paragraph_length,
+                          item_offset, item_length);
+
+    After this change such clients can simply say:
+
+      hb_buffer_set_flags (hb_buffer,
+                           HB_BUFFER_FLAG_BOT | HB_BUFFER_FLAG_EOT);
+
+      hb_buffer_add_utf8 (hb_buffer,
+                          paragraph_text, paragraph_length,
+                          item_offset, item_length);
+
+    Ie, HarfBuzz itself checks whether the segment is at the beginning/end
+    of the paragraph.  Clients that only pass item-at-a-time to HarfBuzz
+    continue not setting any flags whatsoever.
+
+    Another way to put it is: if there's pre-context text in the buffer,
+    HarfBuzz ignores the BOT flag.  If there's post-context, it ignores
+    EOT flag.
+
+ src/hb-ot-shape-complex-arabic.cc | 40
+ +++++++++++++++++++--------------------
+ src/hb-ot-shape.cc                |  1 +
+ 2 files changed, 20 insertions(+), 21 deletions(-)
+
+commit 0a5ae9336231c4d189e1682e4fd9c9c4552b8bbf
+Merge: ac53443 6ab6be3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sat Aug 2 15:00:34 2014 -0400
+
+    Merge branch 'win1256'
+
+commit 6ab6be32c5857ce3344021ad2996e80b2a8c8f99
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sat Aug 2 14:58:38 2014 -0400
+
+    [arabic/win1256] Remove unused MultipleSubst macros
+
+ src/hb-ot-shape-complex-arabic-win1256.hh | 12 ------------
+ 1 file changed, 12 deletions(-)
+
+commit abfa4252cce1c56c472693dcd8400cd97ededd2f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Aug 1 19:05:33 2014 -0400
+
+    [arabic/win1256] Really fix lam-alef this time
+
+    https://bugzilla.mozilla.org/show_bug.cgi?id=1045139#c26
+    https://github.com/behdad/harfbuzz/commit/b276e897d17519a2c28f79d024904ac2bdd86bcf#commitcomment-7243499
+
+ src/hb-ot-shape-complex-arabic-fallback.hh |  2 +-
+ src/hb-ot-shape-complex-arabic-win1256.hh  | 49
+ +++++++++---------------------
+ 2 files changed, 15 insertions(+), 36 deletions(-)
+
+commit 55977f2a462b7fa1248eab3787053dc82320d3e5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Aug 1 16:14:33 2014 -0400
+
+    [arabic/win1256] Hook up lamMedi lookup
+
+    Restructure lookup array to accommodate.
+
+    https://bugzilla.mozilla.org/show_bug.cgi?id=1045139#c18
+
+ src/hb-ot-shape-complex-arabic-fallback.hh | 26
+ ++++++++++----------------
+ src/hb-ot-shape-complex-arabic-win1256.hh  |  1 +
+ 2 files changed, 11 insertions(+), 16 deletions(-)
+
+commit e839e2523e64fd0cf21929f6a45e2facd59c7917
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Aug 1 16:09:31 2014 -0400
+
+    [arabic/win1256] Fix TEH MARBUTA final form
+
+    https://bugzilla.mozilla.org/show_bug.cgi?id=1045139#c18
+
+ src/hb-ot-shape-complex-arabic-win1256.hh | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit a2de193220ee2839125594bd1a60b5b66ab4598e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Thu Jul 31 18:21:05 2014 -0400
+
+    [arabic/win1256] Fix shaping of JEEM, HAH, and KHAH
+
+    https://bugzilla.mozilla.org/show_bug.cgi?id=1045139#c16
+
+ src/hb-ot-shape-complex-arabic-win1256.hh | 22 ++++++++++++----------
+ 1 file changed, 12 insertions(+), 10 deletions(-)
+
+commit 1789ccb1dd56af6117eac00e633eff94860ba252
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Thu Jul 31 11:04:00 2014 -0400
+
+    [arabic/win1256] Remove GCC'ism
+
+    The table can now compile independently too.  If we cannot make
+    it work
+    on MSVC, we can always generate the data and distribute it.
+
+    The code now compiles cleanly with:
+
+    gcc -c -xc -std=c99 -Werror -pedantic
+    hb-ot-shape-complex-arabic-win1256.hh
+    g++ -c -xc -std=c++1x -Werror -pedantic
+    hb-ot-shape-complex-arabic-win1256.hh
+
+    See:
+    https://github.com/behdad/harfbuzz/commit/a97f537cec209649302899975d76ca2b2661da7a#commitcomment-7218736
+
+ src/hb-ot-shape-complex-arabic-fallback.hh |   4 +-
+ src/hb-ot-shape-complex-arabic-win1256.hh  | 123
+ +++++++++++++++++------------
+ 2 files changed, 75 insertions(+), 52 deletions(-)
+
+commit f28b1c823db2ad56fed356ef864a7508d23048b8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Wed Jul 30 02:15:44 2014 -0400
+
+    [arabic] Implement Windows-1256 private shaping
+
+    Bug 1045139 - The Arabic text with "MS Sans Serif" font is rendered
+    bad
+    https://bugzilla.mozilla.org/show_bug.cgi?id=1045139
+
+    This is only enabled on Windows platforms, and requires support from
+    Uniscribe to work.  But for clients that do hook up to Uniscribe, this
+    fixes shaping of Windows-1256-encoded bitmap fonts like "MS Sans
+    Serif".
+
+    The code and table together have just less than a 1kb footprint when
+    enabled.
+
+    UNTESTED.  I might even have broken regular Arabic fallback shaping.
+
+ src/Makefile.am                            |   1 +
+ src/check-includes.sh                      |   2 +-
+ src/hb-ot-shape-complex-arabic-fallback.hh | 125 +++++++++--
+ src/hb-ot-shape-complex-arabic-win1256.hh  | 328
+ +++++++++++++++++++++++++++++
+ 4 files changed, 442 insertions(+), 14 deletions(-)
+
+commit ac53443f1cea83ed43a4e41a9fdb91902f7fae7b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Thu Jul 31 18:51:37 2014 -0400
+
+    [hangul] Don't apply 'calt'
+
+    See comments.
+
+    Micro-test added.
+
+ src/hb-ot-shape-complex-hangul.cc                        |  11
+ ++++++++++-
+ test/shaping/Makefile.am                                 |   1 +
+ .../sha1sum/757ebd573617a24aa9dfbf0b885c54875c6fe06b.ttf | Bin 0 ->
+ 1804 bytes
+ .../sha1sum/7e14e7883ed152baa158b80e207b66114c823a8b.ttf | Bin 0 ->
+ 1644 bytes
+ test/shaping/fonts/sha1sum/MANIFEST                      |   2 ++
+ test/shaping/tests/MANIFEST                              |   1 +
+ test/shaping/tests/hangul-jamo.tests                     |  11
+ +++++++++++
+ 7 files changed, 25 insertions(+), 1 deletion(-)
+
+commit 8292f96b2be173ebceb1b54426c271cfeaecd633
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Thu Jul 31 18:33:11 2014 -0400
+
+    [test] Fix record-test.sh
+
+ test/shaping/record-test.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 88911e8cc765c26e502503a3a00ac7f17973f3d9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Jul 29 19:47:26 2014 -0400
+
+    Minor
+
+ src/hb-ot-shape-complex-arabic-fallback.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 9e834e29e0b657f0555df1ab9cea79ff7abcf08d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sat Jul 26 20:34:01 2014 -0400
+
+    [hebrew] Zero mark advance by GDEF late
+
+    Seems to be what Uniscribe does.
+
+    At this point I think it's work checking our default...
+
+    Fixes Bug 76767 - Zeroing of advance of 2nd component of multiple
+    substitution with SBL Hebrew
+    https://bugs.freedesktop.org/show_bug.cgi?id=76767
+
+    Micro-test added.
+
+ src/hb-ot-shape-complex-hebrew.cc                        |   2 +-
+ .../sha1sum/8454d22037f892e76614e1645d066689a0200e61.ttf | Bin 0 ->
+ 6068 bytes
+ test/shaping/fonts/sha1sum/MANIFEST                      |   1 +
+ test/shaping/tests/zero-width-marks.tests                |   1 +
+ 4 files changed, 3 insertions(+), 1 deletion(-)
+
+commit 6f2d9ba52a6d1e3fc200da1ef0e85ba020fcd0dc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sat Jul 26 19:17:44 2014 -0400
+
+    Add old-Myanmar shaper
+
+    Looks like Unsicribe responds to the 'mymr' tag by zeroing marks
+    GDEF_LATE instead of generic-shaper UNICODE_LATE.  Implement that.
+
+    Fixes
+    Bug 81775 - Incorrect Rendering with harfbuzz-ng myanmar unicode
+    https://bugs.freedesktop.org/show_bug.cgi?id=81775
+
+    Micro-test added based on Padauk.
+
+ src/hb-ot-shape-complex-myanmar.cc                    |  18
+ ++++++++++++++++++
+ src/hb-ot-shape-complex-private.hh                    |   5 +++--
+ test/shaping/Makefile.am                              |   1 +
+ test/shaping/fonts/sha1sum/MANIFEST                   |   1 +
+ .../bb9473d2403488714043bcfb946c9f78b86ad627.ttf      | Bin 0 ->
+ 3440 bytes
+ test/shaping/tests/MANIFEST                           |   1 +
+ test/shaping/tests/zero-width-marks.tests             |   1 +
+ 7 files changed, 25 insertions(+), 2 deletions(-)
+
+commit 595d2b96c37de8147489dc5e0ddcc4ab1ad3eea9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sat Jul 26 18:44:15 2014 -0400
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 1 +
+ src/hb-ot-shape.cc               | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+commit fe6788bc570d77d5b3aafc68efd51ca6b80499b1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Jul 25 12:40:56 2014 -0400
+
+    Typo
+
+ src/hb-common.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 0de25d4184d2d92b1a2ebb6fa054275aaae4c316
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Jul 25 12:35:03 2014 -0400
+
+    [util] Note CSS compatibility in --help-features
+
+ util/options.cc | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit 6e69200a2aadbc6bba35ffb4a058c14286b84f46
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Jul 25 12:30:47 2014 -0400
+
+    Fix snprintf() format
+
+    Patch from Maks Naumov.
+    Fixes https://github.com/behdad/harfbuzz/pull/22
+
+ src/hb-shape.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 5c5cdbbdf8be231c433e21b050a6c6991d327b61
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Jul 25 12:21:49 2014 -0400
+
+    Make sure broken feature strings are not partially parsed
+
+    If user doesn't check hb_feature_from_string() return value, we
+    don't want them to end up see the partially-parsed feature.
+
+ src/hb-shape.cc | 18 ++++++++++++++----
+ 1 file changed, 14 insertions(+), 4 deletions(-)
+
+commit a795fe637846e0d9561d2f7cdd84cfafd58b23a7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Jul 25 12:15:33 2014 -0400
+
+    Allow quotation marks around feature tag in hb_feature_from_string()
+
+    With this, I believe we accept CSS feature strings completely.
+
+ src/hb-shape.cc | 24 +++++++++++++++++++++---
+ 1 file changed, 21 insertions(+), 3 deletions(-)
+
+commit 3f6461847412e78bcddc8eba97200f3afcde869a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Jul 25 12:04:27 2014 -0400
+
+    Allow space at the end of feature string with values, eg 'dlig=1 '
+
+ src/hb-shape.cc | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit f31f7d2259dd8edffc070af55938cb7aa23514c1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Jul 25 12:03:52 2014 -0400
+
+    Minor
+
+ src/hb-shape.cc | 18 +++++++++---------
+ 1 file changed, 9 insertions(+), 9 deletions(-)
+
+commit 60cb18a5dea2d30793f89e80995bb729c014864a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Jul 25 12:01:22 2014 -0400
+
+    Allow on/off in hb_feature_from_string()
+
+    We now allow things like "dlig on" / "dlig=on".
+
+ src/hb-shape.cc | 26 ++++++++++++++++++++++++--
+ 1 file changed, 24 insertions(+), 2 deletions(-)
+
+commit d9e618eca9e01c2eb6db65504af3f73be370a1e7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Jul 25 11:56:01 2014 -0400
+
+    Remove duplicate definition of ISALNUM
+
+    It's defined in hb-private.h already.
+
+ src/hb-shape.cc | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 2ee5f665ded86147acedc400153c0b3a90fe07c6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Jul 25 11:53:46 2014 -0400
+
+    Fix parsing of features like "- liga" (with the space)
+
+ src/hb-shape.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit e15fa7a8cffbe6a67b1048d7b87b7df77d8b1686
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Jul 25 11:44:35 2014 -0400
+
+    Do not require the '=' in hb_feature_from_string()
+
+    Towards accepting CSS font-feature-settings strings.
+
+ src/hb-shape.cc | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+commit f4fe9baefdb7e0ff9946f88b6f4b55738fa30cdf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Jul 25 11:39:55 2014 -0400
+
+    Reject tags longer than 4 chars in hb_feature_from_string()
+
+ src/hb-shape.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 7e8c38954649c0bf2e6051d84ca08dce090ec169
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Jul 25 11:18:11 2014 -0400
+
+    Minor warnings fixes
+
+    Some systems insist on -Wmissing-field-initializers.  We have
+    too many,
+    by design.  Fix a few easy ones.
+
+ src/hb-open-type-private.hh | 2 +-
+ src/hb-ot-layout-private.hh | 2 +-
+ src/hb-private.hh           | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+commit fc0daafab0336b847ac14682e581a8838f36a0bf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Wed Jul 23 16:48:51 2014 -0400
+
+    [indic] Handle old-spec Malayalam reordering with final Halant
+
+    See comment.
+
+    Micro-tests added.
+
+ src/hb-ot-shape-complex-indic.cc                   |  28
+ +++++++++++++++++----
+ test/shaping/Makefile.am                           |   1 +
+ .../270b89df543a7e48e206a2d830c0e10e5265c630.ttf   | Bin 0 -> 3428 bytes
+ .../57a9d9f83020155cbb1d2be1f43d82388cbecc88.ttf   | Bin 0 -> 2272 bytes
+ test/shaping/fonts/sha1sum/MANIFEST                |   2 ++
+ test/shaping/tests/MANIFEST                        |   1 +
+ test/shaping/tests/indic-old-spec.tests            |   2 ++
+ .../indic/script-malayalam/misc/misc.txt           |   1 +
+ 8 files changed, 30 insertions(+), 5 deletions(-)
+
+commit d6d349d17898529ecdf8217a54987a3e9f81ce05
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Wed Jul 23 11:38:49 2014 -0400
+
+    Give CC to gir-scanner
+
+    From:
+    https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-harfbuzz/0001-give-cc-to-gir-scanner.all.patch
+
+ src/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 8c1bdb46facb79cfca5ebfea9a7e467b40337f47
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Jul 22 17:56:43 2014 -0400
+
+    0.9.33
+
+ NEWS         | 10 ++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+commit d218bdb26b226fbf68331eb586b24460c061313d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Jul 22 18:01:46 2014 -0400
+
+    Fix test runner under Windows
+
+ test/shaping/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 3f310dc0cae9015c45ba642b9b83d5695c807aad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Tue Jul 22 16:26:27 2014 -0400
+
+    Disallow changing settings on immutable face
+
+    Ouch!
+
+ src/hb-face.cc    | 8 ++++----
+ src/hb-font.cc    | 4 ++--
+ src/hb-unicode.cc | 2 +-
+ 3 files changed, 7 insertions(+), 7 deletions(-)
+
+commit 0fc0a1022854324261fea8893678a3e9fd9443eb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Mon Jul 21 11:12:54 2014 -0400
+
+    [win] Fix Cygwin build
+
+    https://github.com/behdad/harfbuzz/commit/db308280488c2ee11ba865a9922eb6a0c1abeef3#commitcomment-7077778
+
+ src/hb-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 1132a7dd0ecf1c425078e39e5471330bace42659
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sun Jul 20 01:17:40 2014 -0400
+
+    Add HB_TAG_MAX_SIGNED / _HB_SCRIPT_MAX_VALUE_SIGNED
+
+    To make C language police happy.
+
+ src/hb-common.h | 17 ++++++++++++-----
+ 1 file changed, 12 insertions(+), 5 deletions(-)
+
+commit df99976398a53521e0228541055dcaee8f5ba87f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sat Jul 19 17:31:23 2014 -0400
+
+    [gobject] Skip _HB_SCRIPT_MAX_VALUE
+
+    Fixes https://github.com/behdad/harfbuzz/pull/38
+
+ src/hb-common.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit f1a8d50a87edfb8147aa1bec732ed7ccbfef2877
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sat Jul 19 16:52:32 2014 -0400
+
+    [win] Don't define visibility attribtue under Cygwin
+
+ src/hb-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 9c77027d645142794c3ff1590a96bb151c3f2e91
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sat Jul 19 16:37:22 2014 -0400
+
+    [win] Turn STRICT on for including windows.h
+
+ src/hb-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit db308280488c2ee11ba865a9922eb6a0c1abeef3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sat Jul 19 16:32:04 2014 -0400
+
+    [win] Consolidate windows.h include tips and tricks
+
+ src/hb-atomic-private.hh |  4 ----
+ src/hb-mutex-private.hh  |  1 -
+ src/hb-private.hh        | 12 ++++++++++++
+ src/hb-uniscribe.cc      |  3 ---
+ src/hb-uniscribe.h       |  3 ---
+ 5 files changed, 12 insertions(+), 11 deletions(-)
+
+commit f26d59d4684be3419c976d781b6dbc956248e3bb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Sat Jul 19 16:10:21 2014 -0400
+
+    More fixing MemoryBarrier() on Mingw32
+
+    Set requested windows header to Vista.  See discussion:
+
+    https://github.com/behdad/harfbuzz/commit/fbb2847f541389f40718af71c4945024ae177ab2#commitcomment-7054700
+
+ src/hb-atomic-private.hh | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 00a57eb4b50fd894dc68c6525a5bbebf0ebc30e4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Jul 18 14:42:50 2014 -0400
+
+    [test] Remove unused micro-font
+
+ .../9d64156923a1b9fed1e05f74599c16563eca42d9.ttf        | Bin 81968 ->
+ 0 bytes
+ test/shaping/fonts/sha1sum/MANIFEST                     |   1 -
+ 2 files changed, 1 deletion(-)
+
+commit ed29b15f5d0d9e7b40143926ca7d40bf645f67e9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Fri Jul 18 14:37:49 2014 -0400
+
+    [test] Add more Mongolian variation selector tests
+
+    From
+    https://code.google.com/p/chromium/issues/detail?id=393896
+
+ .../9d64156923a1b9fed1e05f74599c16563eca42d9.ttf        | Bin 0 ->
+ 81968 bytes
+ test/shaping/fonts/sha1sum/MANIFEST                     |   2 ++
+ .../bb29ce50df2bdba2d10726427c6b7609bf460e04.ttf        | Bin 0 ->
+ 74856 bytes
+ test/shaping/tests/mongolian-variation-selector.tests   |   1 +
+ .../shaper-arabic/script-mongolian/misc/MANIFEST        |   1 +
+ .../script-mongolian/misc/variation-selectors.txt       |   8 ++++++++
+ 6 files changed, 12 insertions(+)
+
+commit 385cf37cf084198e3aedb4354a7b025938a9f11b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Thu Jul 17 18:22:07 2014 -0400
+
+    Fix hb_in_range() unused-var warning on Windows
+
+ src/hb-private.hh | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+commit e3b42f1af409c073b819bfc696024ccb1f1da63f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Thu Jul 17 17:13:54 2014 -0400
+
+    [arabic] Disable 'cswh' again
+
+    Ouch!
+
+ src/hb-ot-shape-complex-arabic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 66f30915b185727a0041c998641edb550eb8a7fc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Thu Jul 17 16:05:47 2014 -0400
+
+    0.9.32
+
+ NEWS         | 12 ++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 13 insertions(+), 1 deletion(-)
+
+commit 82f4d9d53f348f41b14b877c1ac77c0372c49caa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Thu Jul 17 15:57:37 2014 -0400
+
+    [arabic] Add note re disabled 'cswh'
+
+ src/hb-ot-shape-complex-arabic.cc | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+commit 615d00ea252739da57edbd980ff27e573f88ee7e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Thu Jul 17 13:36:09 2014 -0400
+
+    [arabic] Apply init/medi/isol/fini/... in separate stages
+
+    Follows the order of the Arabic/Syriac specs.  Also don't stop
+    between rlig and calt in non-Arabic scripts.
+
+    Micro-tests for Arabic and Mongolian added for the latter.
+
+ src/hb-ot-shape-complex-arabic.cc                  |  56
+ +++++++++++++--------
+ test/shaping/Makefile.am                           |   2 +
+ .../813c2f8e5512187fd982417a7fb4286728e6f4a8.ttf   | Bin 0 -> 3428 bytes
+ .../8a9fea2a7384f2116e5b84a9b31f83be7850ce21.ttf   | Bin 0 -> 3428 bytes
+ test/shaping/fonts/sha1sum/MANIFEST                |   3 ++
+ .../a919b33197965846f21074b24e30250d67277bce.ttf   | Bin 0 -> 12560 bytes
+ test/shaping/tests/MANIFEST                        |   1 +
+ test/shaping/tests/arabic-feature-order.tests      |   3 ++
+ 8 files changed, 43 insertions(+), 22 deletions(-)
+
+commit d21e997035b16e9807dfb29c3605abb93f92f1ee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Thu Jul 17 15:27:46 2014 -0400
+
+    [test] Make record_test understand cmdline args to hb-shape
+
+ test/shaping/record-test.sh | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit 7cd33f230441093dbfb1fec48f8c580ee8d9ef71
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Thu Jul 17 14:22:11 2014 -0400
+
+    Micro optimization
+
+ src/hb-fallback-shape.cc           | 36
+ +++++++++++++++++++-----------------
+ src/hb-ot-shape-complex-arabic.cc  | 19 +++++++++++--------
+ src/hb-ot-shape-complex-indic.cc   | 15 ++++++++++-----
+ src/hb-ot-shape-complex-myanmar.cc |  7 +++++--
+ src/hb-ot-shape-complex-sea.cc     |  7 +++++--
+ src/hb-ot-shape-fallback.cc        | 30 ++++++++++++++++--------------
+ src/hb-ot-shape.cc                 | 18 ++++++++++++------
+ 7 files changed, 78 insertions(+), 54 deletions(-)
+
+commit 164c13d73f67fdddba28e6409d76b4903e8ffab3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Thu Jul 17 14:16:38 2014 -0400
+
+    Another try to fix Mongolian free variation selectors
+
+    This reverts bf029281 and fixes it properly.  That commit
+    was not enough as it was only inheriting the shaping_action
+    for prev_action, but not curr_action.
+
+    Micro-test added.
+
+    https://code.google.com/p/chromium/issues/detail?id=393896
+
+ src/hb-ot-shape-complex-arabic.cc                  |  24
+ +++++++++++++++------
+ src/hb-unicode-private.hh                          |   3 ++-
+ test/shaping/fonts/sha1sum/MANIFEST                |   1 +
+ .../ef86fe710cfea877bbe0dbb6946a1f88d0661031.ttf   | Bin 0 -> 2748 bytes
+ .../tests/mongolian-variation-selector.tests       |   1 +
+ 5 files changed, 22 insertions(+), 7 deletions(-)
+
+commit 5209c505061130854a2bfea8849928ade3ee92f3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:   Thu Jul 17 12:23:44 2014 -0400
+
+    Revert "Show U+FFFD REPLACEMENT CHARACTER for invalid Unicode
+    codepoints"
+
+    We now handle U+FFFD replacement in hb_buffer_add_utf*().  Any other
+    manipulation can happen in user callbacks.  No need for this.
+
+    https://github.com/behdad/harfbuzz/commit/efe74214bbb68eaa3d7621e73869b5d58210107e#commitcomment-7039404
+
+    This reverts commit efe74214bbb68eaa3d7621e73869b5d58210107e.
+
+    Conflicts:
+       src/hb-ot-shape-normalize.cc
+
+ src/hb-ot-shape-normalize.cc | 7 -------
+ 1 file changed, 7 deletions(-)
+
+commit 9e7c720100e432b43564ed5ff12f3175ca2ed74a
+Author: Dominik Röttsches <dominik.rottsches@intel.com>
+Date:  Thu Jul 17 14:40:34 2014 +0300
+
+    Fix CoreText build after a8b89a09f6d3a34
+
+ src/hb-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit a4d643755a531c82ab91e1e43d6bb0b7bd46453a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 16 20:15:45 2014 -0400
+
+    Minor
+
+ src/hb-utf-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit a18897f87ce2c6048c3a0339074924b2232e2b95
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 16 16:02:15 2014 -0400
+
+    0.9.31
+
+ NEWS        | 29 +++++++++++++++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 30 insertions(+), 1 deletion(-)
+
+commit 976c8f455221eb599d1c446eafd88d51d7d2aa65
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 16 15:34:20 2014 -0400
+
+    New API: hb_buffer_[sg]et_replacement_codepoint()
+
+    With this change, we now by default replace broken UTF-8/16/32 bits
+    with U+FFFD.  This can be changed by calling new API on the buffer.
+    Previously the replacement value used to be (hb_codepoint_t)-1.
+
+    Note that hb_buffer_clear_contents() does NOT reset the replacement
+    character.
+
+    See discussion here:
+
+    https://github.com/behdad/harfbuzz/commit/6f13b6d62daae4989e3cc2fe4b168e5c59650964
+
+    New API:
+
+      hb_buffer_set_replacement_codepoint()
+      hb_buffer_get_replacement_codepoint()
+
+ src/hb-buffer-private.hh |  1 +
+ src/hb-buffer.cc        | 45
+ ++++++++++++++++++++++++++++++++++++++++++---
+ src/hb-buffer.h         | 15 ++++++++++++++-
+ src/hb-utf-private.hh   | 34 ++++++++++++++++++++--------------
+ test/api/test-buffer.c   | 26 +++++++++++++++-----------
+ 5 files changed, 92 insertions(+), 29 deletions(-)
+
+commit bcba8b45024e1eca8be77ca2657de1dc44dbf8fb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 16 14:59:04 2014 -0400
+
+    New API hb_buffer_add_codepoints()
+
+    Like hb_buffer_add_utf32, but doesn't do any Unicode validation.
+    This is like what hb_buffer_add_utf32 used to be until a couple
+    commits ago.
+
+ src/hb-buffer.cc | 32 +++++++++++++++++++++++++++-----
+ src/hb-buffer.h  |  8 ++++++++
+ 2 files changed, 35 insertions(+), 5 deletions(-)
+
+commit 625dbf141a05f1ae81a7b8cbc529996370101284
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 16 14:49:55 2014 -0400
+
+    [buffer] Templatize UTF-* functions
+
+ src/hb-buffer.cc      |  10 +-
+ src/hb-utf-private.hh | 307
+ ++++++++++++++++++++++++++------------------------
+ 2 files changed, 166 insertions(+), 151 deletions(-)
+
+commit e634fed4285ce440d277345727ed01757df6d779
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 16 14:17:26 2014 -0400
+
+    [buffer] Validate UTF-32 input
+
+    Same as what we do for UTF-8 and UTF-16.
+
+ src/hb-utf-private.hh | 13 +++++++++---
+ test/api/test-buffer.c | 55
+ ++++++++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 65 insertions(+), 3 deletions(-)
+
+commit b98c5db32d15fcfb27ce2f6737203ce1ad124319
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 16 13:44:01 2014 -0400
+
+    Minor refactoring
+
+ src/hb-ot-layout-gsubgpos-private.hh | 25 ++++++-------------------
+ 1 file changed, 6 insertions(+), 19 deletions(-)
+
+commit 844f1a487d9c39724ebff20e89f6184c9a59be0b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 16 13:32:51 2014 -0400
+
+    [tests] Add record-test.sh
+
+ test/shaping/Makefile.am    | 1 +
+ test/shaping/record-test.sh | 49
+ +++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 50 insertions(+)
+
+commit 3b861421a772f52eb232ff93bd74b5a8214801ec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 16 13:22:05 2014 -0400
+
+    Fix Mongolian Variation Selectors for fonts without GDEF
+
+    Originally we fixed those in 79d1007a501fd63c0ba4d51038c513e6b8b94740.
+    However, fonts like MongolianWhite don't have GDEF, but have
+    IgnoreMarks
+    in their LigatureSubstitute init/etc features.  We were synthesizing a
+    GDEF class of mark for Mongolian Variation Selectors and as such the
+    ligature lookups where not matching.  Uniscribe doesn't do that.
+
+    I tried with more sophisticated fixes, like, if there is no GDEF and
+    a lookup-flag mismatch happens, instead of rejecting a match, try
+    skipping that glyph.  That surely produces some interesting behavior,
+    but since we don't want to support fonts missing GDEF more than
+    we have
+    to, I went for this simpler fix which is to always mark
+    default-ignorables as base when synthesizing GDEF.
+
+    Micro-test added.
+
+    Fixes rest of https://bugs.freedesktop.org/show_bug.cgi?id=65258
+
+ src/hb-ot-shape.cc                                      |  13
+ +++++++++++--
+ .../sha1sum/37033cc5cf37bb223d7355153016b6ccece93b28.ttf | Bin 0 ->
+ 2780 bytes
+ test/shaping/fonts/sha1sum/MANIFEST                     |   1 +
+ test/shaping/tests/MANIFEST                             |   1 +
+ test/shaping/tests/mongolian-variation-selector.tests   |   1 +
+ 5 files changed, 14 insertions(+), 2 deletions(-)
+
+commit 878a25375b2fdf64cf0cc30c23fca9fcd58548e8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 16 13:21:26 2014 -0400
+
+    Minor
+
+ src/hb-ot-shape.cc       | 1 +
+ src/hb-unicode-private.hh | 6 +++---
+ 2 files changed, 4 insertions(+), 3 deletions(-)
+
+commit ec181e50140fc65b32d6080e2f7f73bbe0269ba9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 16 13:10:03 2014 -0400
+
+    Minor moving around
+
+ src/hb-ot-shape.cc | 14 +++++++++-----
+ 1 file changed, 9 insertions(+), 5 deletions(-)
+
+commit e7ce50d9eb6e3678f731b10dfeb308ffc478af8d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 16 12:30:39 2014 -0400
+
+    [indic] Fix access past end of array
+
+ src/hb-ot-shape-complex-indic.cc | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+commit 73e23b0acfd2948d500321769035c56c9e072d77
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 15 18:43:49 2014 -0400
+
+    Whitespace
+
+ src/hb-ot-layout-gsubgpos-private.hh | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit f27be105afb86b337c7d940badc5a6462f0b58bb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 11 18:15:34 2014 -0400
+
+    [Android.mk] Actually remove static library
+
+ Android.mk | 26 --------------------------
+ 1 file changed, 26 deletions(-)
+
+commit 96b80e9bcc4796eedac09d284dc8cc0439ced6ba
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 11 17:00:12 2014 -0400
+
+    [Android.mk] Remove static library, add note re how to build
+
+ Android.mk | 41 +++++++++++++++++++++++++++++++++++++----
+ 1 file changed, 37 insertions(+), 4 deletions(-)
+
+commit b7bc0b671d2d568cb64b647dad2ca866a4e0183b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 11 16:20:28 2014 -0400
+
+    Simplify / speed up UTF-8 code
+
+ src/hb-utf-private.hh | 15 ++++++---------
+ 1 file changed, 6 insertions(+), 9 deletions(-)
+
+commit af2490c0959daa0fe7f32a8b3b3a3699c7fc5f48
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 11 16:10:58 2014 -0400
+
+    Only accept well-formed UTF-8 sequences
+
+    Enable tests that were disabled before, and adjust one test,
+    and add more tests.
+
+ src/hb-utf-private.hh | 93
+ +++++++++++++++++++++++++++++++++-----------------
+ test/api/test-buffer.c |  9 +++--
+ 2 files changed, 68 insertions(+), 34 deletions(-)
+
+commit 7323d385cc758c06671cb38239d240eb517b28bc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 11 15:10:05 2014 -0400
+
+    Simplify hb_utf_prev<16> to call hb_utf_next<16>
+
+ src/hb-utf-private.hh | 23 ++++++++---------------
+ 1 file changed, 8 insertions(+), 15 deletions(-)
+
+commit c09a607a842fdd7b33e2c57e8af96d21ff091acd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 11 15:05:36 2014 -0400
+
+    Use hb_in_range() for arabic and indic tables
+
+    Though, looks like gcc was smart enough to produce the same code
+    before...
+
+ src/gen-arabic-table.py                |  18 +-
+ src/gen-indic-table.py                         |  10 +-
+ src/hb-ot-shape-complex-arabic-table.hh | 420
+ ++++++++++++++++----------------
+ src/hb-ot-shape-complex-indic-table.cc  |  88 +++----
+ 4 files changed, 268 insertions(+), 268 deletions(-)
+
+commit 7627100f428ac0ec8509d961d368d2d25d8f0b6e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 11 14:54:42 2014 -0400
+
+    Mark unsigned integer literals with the u suffix
+
+    Simplifies hb_in_range() calls as the type can be inferred.
+    The rest is obsessiveness, I admit.
+
+ src/hb-buffer-serialize.cc                |   2 +-
+ src/hb-common.cc                          |   4 +-
+ src/hb-coretext.cc                        |  16 +--
+ src/hb-open-file-private.hh               |   4 +-
+ src/hb-open-type-private.hh               |   2 +-
+ src/hb-ot-cmap-table.hh                   |   4 +-
+ src/hb-ot-head-table.hh                   |   6 +-
+ src/hb-ot-hhea-table.hh                   |   2 +-
+ src/hb-ot-layout-common-private.hh        |  14 +--
+ src/hb-ot-layout-gdef-table.hh                    |   8 +-
+ src/hb-ot-layout-gpos-table.hh                    |  24 ++--
+ src/hb-ot-layout-gsub-table.hh                    |   6 +-
+ src/hb-ot-layout-gsubgpos-private.hh      |   2 +-
+ src/hb-ot-layout-jstf-table.hh                    |   2 +-
+ src/hb-ot-layout-private.hh               |   4 +-
+ src/hb-ot-layout.h                        |   6 +-
+ src/hb-ot-map-private.hh                  |   8 +-
+ src/hb-ot-maxp-table.hh                   |   4 +-
+ src/hb-ot-shape-complex-arabic-fallback.hh |  2 +-
+ src/hb-ot-shape-complex-hangul.cc         |  36 +++---
+ src/hb-ot-shape-complex-hebrew.cc         | 134 ++++++++++-----------
+ src/hb-ot-shape-complex-indic.cc          | 182
+ ++++++++++++++---------------
+ src/hb-ot-shape-complex-myanmar.cc        |  56 ++++-----
+ src/hb-ot-shape-complex-sea.cc                    |   8 +-
+ src/hb-ot-shape-complex-thai.cc           |  84 ++++++-------
+ src/hb-ot-shape-fallback.cc               |  40 +++----
+ src/hb-ot-shape-normalize.cc              |   2 +-
+ src/hb-ot-shape.cc                        |   6 +-
+ src/hb-ot-tag.cc                          |  18 +--
+ src/hb-unicode-private.hh                 |  40 +++----
+ src/hb-uniscribe.cc                       |  14 +--
+ src/hb-utf-private.hh                     |  16 +--
+ 32 files changed, 378 insertions(+), 378 deletions(-)
+
+commit a8b89a09f6d3a3466282aae07fd65e143f9f8f83
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 11 14:18:01 2014 -0400
+
+    Simplify hb_in_range()
+
+    It's both faster and produces smaller code.  Now I feel stupid for
+    not writing it this way before.
+
+ src/hb-private.hh | 16 ++++++----------
+ 1 file changed, 6 insertions(+), 10 deletions(-)
+
+commit db8934faa1854dafaf4c4ce34d1818e12f67ef52
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 11 13:58:36 2014 -0400
+
+    Simplify hb_utf_prev<8> to call hb_utf_next<8>
+
+ src/hb-utf-private.hh | 24 ++++--------------------
+ 1 file changed, 4 insertions(+), 20 deletions(-)
+
+commit efe74214bbb68eaa3d7621e73869b5d58210107e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 11 11:59:48 2014 -0400
+
+    Show U+FFFD REPLACEMENT CHARACTER for invalid Unicode codepoints
+
+    Only if the font doesn't support it.  Ie, this gives the user to
+    use non-Unicode codepoints as private values and return a meaningful
+    glyph for them.  But if it's invalid and font callback doesn't
+    like it, and if font has U+FFFD, show that instead.
+
+    Font functions that do not want this automatic replacement to
+    happen should return true from get_glyph() if unicode > 0x10FFFF.
+
+    Replaces https://github.com/behdad/harfbuzz/pull/27
+
+ src/hb-ot-shape-normalize.cc | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+commit 6f13b6d62daae4989e3cc2fe4b168e5c59650964
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 10 19:31:40 2014 -0400
+
+    When parsing UTF-16, generate invalid codepoint for lonely low
+    surrogate
+
+    Test passes now.
+
+ src/hb-utf-private.hh | 42 ++++++++++++++++++++++++++++--------------
+ 1 file changed, 28 insertions(+), 14 deletions(-)
+
+commit 24b2ba9dfa7c35769cd843a07079ef88fa594bf8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 10 19:31:16 2014 -0400
+
+    [test-buffer] Add test for lonely low-surrogate
+
+    Currenty fails.  Ouch!
+
+ test/api/test-buffer.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 6334495ac1ee0a86228e67794b7a41ee91146f3b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 10 19:22:07 2014 -0400
+
+    Use zh-Hans / zh-Hant when converting OT language tag to hb_language_t
+
+ src/hb-ot-tag.cc      | 15 +++------------
+ test/api/test-ot-tag.c |  6 +++---
+ 2 files changed, 6 insertions(+), 15 deletions(-)
+
+commit f381e320df795a9d73ac81499f8ed8c311bcb2f0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 10 19:20:35 2014 -0400
+
+    Fix lang matching logic
+
+    Previous code was broken logically, but harmless.
+
+ src/hb-ot-tag.cc      | 2 +-
+ test/api/test-ot-tag.c | 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+commit ee5350d667f3a9644667202597694581f2cf657d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 10 19:06:45 2014 -0400
+
+    Accept BCP 47 zh-Hans / zh-Hant language tags
+
+ src/hb-ot-tag.cc      | 27 ++++++++++++++++++---------
+ test/api/test-ot-tag.c |  3 +++
+ 2 files changed, 21 insertions(+), 9 deletions(-)
+
+commit 431540286794e023ec5eafd5eeedc008d4f31b4c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 10 17:37:26 2014 -0400
+
+    [Android.mk] Add note re static library
+
+ Android.mk | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+commit 5b4131eb1c670c20fd9a45a5617c64060a505ef5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 9 19:09:08 2014 -0400
+
+    [Android.mk] Update for new ICU
+
+    https://android-review.googlesource.com/#/c/100722/1/Android.mk
+
+ Android.mk | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ab28196c9557a63971a56915aa6f98bb5803bd1b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 9 18:18:06 2014 -0400
+
+    [Android.mk] Re-enable ICU unicode funcs
+
+ Android.mk | 11 ++++++-----
+ 1 file changed, 6 insertions(+), 5 deletions(-)
+
+commit ea001374b86c4f1b24246c08a3d66d2a0e95a827
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 9 17:28:43 2014 -0400
+
+    0.9.30
+
+ NEWS        | 17 +++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 18 insertions(+), 1 deletion(-)
+
+commit 8b16ff12590200afb08e8821e3f14d2fdf8efbda
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 9 17:40:52 2014 -0400
+
+    [uniscribe] Fix build after recent changes to Offset
+
+ src/hb-ot-name-table.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 73f7f8919ea1f09b8c5b29f231ac84105cde2145
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 9 17:17:18 2014 -0400
+
+    Define _POSIX_C_SOURCE only if it is not defined
+
+    Fixes https://github.com/behdad/harfbuzz/pull/45
+
+ src/hb-blob.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 6bd5646f1b865a76304a67e03a6161afcfef293f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 9 17:07:06 2014 -0400
+
+    [tests] Remove bash'ish
+
+    Apparently on travis-ci, bash is linked to dash, which doesn't
+    understand "let".  Failing tests were not being noticed.  See eg:
+
+      https://travis-ci.org/behdad/harfbuzz/jobs/29544211
+
+    Don't rely on bash.
+
+ test/shaping/run-tests.sh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 0afedaa96c81b63774a4a0ef9b4cb4995d24ec9e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 9 17:00:48 2014 -0400
+
+    [util/hb-shape] Fix crash; oops
+
+ util/hb-shape.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 0cd94491b99aed438ad79a55cdfced8d1b657179
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 9 16:51:38 2014 -0400
+
+    [ucdn] Update to Unicode 7.0.0 data
+
+    From http://github.com/behdad/ucdn
+
+ src/hb-ucdn.cc                      |   23 +
+ src/hb-ucdn/README          |    1 +
+ src/hb-ucdn/ucdn.c          |    2 +-
+ src/hb-ucdn/ucdn.h          |   27 +
+ src/hb-ucdn/unicodedata_db.h | 3711
+ ++++++++++++++++++++++--------------------
+ 5 files changed, 2039 insertions(+), 1725 deletions(-)
+
+commit 9d4ede3a97fff544a5ec2a671e49a92a79645b61
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 9 16:19:55 2014 -0400
+
+    [Android.mk] Update source list
+
+ Android.mk | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+commit 7e1ab1f6d812a55f75d4844f7981d5604481049c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 9 16:13:40 2014 -0400
+
+    [Android.mk] Whitespace
+
+ Android.mk | 26 ++++++--------------------
+ 1 file changed, 6 insertions(+), 20 deletions(-)
+
+commit 5c6695c42470e0a15e9029ebe8ecbebf3fa4f95b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 9 16:07:12 2014 -0400
+
+    [Android.mk] Remove -lpthread; we build with -DHB_NO_MT
+
+ Android.mk | 3 ---
+ 1 file changed, 3 deletions(-)
+
+commit 9109f1e944dd4bd4ae8057b75c8a31e9d31797aa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 8 20:02:29 2014 -0400
+
+    [util/hb-shape] Accept an empty output-format that would skip output
+
+    Useful for benchmarking, to avoid buffer serialization overhead (which
+    seems to by far dominate shaping!)
+
+ util/hb-shape.cc | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit 8656408572c2685f278a3b742ee69c767c29788c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 8 18:10:20 2014 -0400
+
+    [util] Fix hb-view rendering with --font-funcs=ot
+
+ util/helper-cairo.cc | 25 +++++++++++++++++++++++++
+ 1 file changed, 25 insertions(+)
+
+commit 8650def73500204b79c651f58b1be3f94a41973d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 5 15:50:18 2014 -0400
+
+    [util] Add option to set font function implementation to use
+
+    Supports ft and ot right now.  hb-view currently not rendering
+    with ot.
+    Will fix after some clean up.
+
+ util/options.cc | 76
+ ++++++++++++++++++++++++++++++++++++++++++++++++++-------
+ util/options.hh | 21 ++++++++++++++++
+ 2 files changed, 88 insertions(+), 9 deletions(-)
+
+commit 2306ad46dce1c53b0b1bfabdc04d70e3b99eabb7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 4 18:09:29 2014 -0400
+
+    [util] Fix memory issue
+
+ util/options.cc | 6 ++----
+ util/options.hh | 9 +++++++++
+ 2 files changed, 11 insertions(+), 4 deletions(-)
+
+commit 14a4a9d649798d32c31f79b4045a885626dffc7f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 1 15:51:54 2014 -0400
+
+    Add Roozbeh to AUTHORS
+
+    He's been my shadow for all Indic-related changes in the last
+    few months.
+
+ AUTHORS | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 68f724484b1663255ee249481624e552d2e2313f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jun 30 15:46:53 2014 -0400
+
+    [indic] Remove some more now-unused special-cases
+
+ src/hb-ot-shape-complex-indic.cc | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit e79c9489802f99dc7eb8b4c2765c4c71b5f80e60
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jun 30 15:39:39 2014 -0400
+
+    [indic] Remove special-casing of U+1CF2,1CF3
+
+    These were introduced in a498565cedf0441ae723c5e5969f637d792a15e7,
+    but IndicSyllabicCategory has had the correct value already, so the
+    special code was never needed.
+
+ src/hb-ot-shape-complex-indic.cc | 6 ------
+ 1 file changed, 6 deletions(-)
+
+commit d743ce78e10758b7dbaf0cfd191309e5ef646881
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jun 30 15:24:02 2014 -0400
+
+    [indic-table] Update to Unicode 7.0 data
+
+    Touch code just enough to preserve previous syllable structure
+    and functionality as closely as possible.  Many further cleanups
+    coming later.
+
+ src/gen-indic-table.py                          |   4 +
+ src/hb-ot-shape-complex-indic-private.hh |  23 +-
+ src/hb-ot-shape-complex-indic-table.cc   | 468
+ ++++++++++++++++++++++---------
+ src/hb-ot-shape-complex-indic.cc        |  21 --
+ src/hb-ot-shape-complex-myanmar.cc      |   2 -
+ 5 files changed, 355 insertions(+), 163 deletions(-)
+
+commit 5fa21b3ab7175f55f89cb194b544d5d4bd06a481
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jun 30 14:30:54 2014 -0400
+
+    [indic-table] Fix category frequency counts in comments
+
+ src/gen-indic-table.py                        |  2 +-
+ src/hb-ot-shape-complex-indic-table.cc | 46
+ +++++++++++++++++-----------------
+ 2 files changed, 24 insertions(+), 24 deletions(-)
+
+commit 5c4e3e9a57b6b735e7d72cbd5f4070cf024d7015
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jun 30 14:25:18 2014 -0400
+
+    Whitespace
+
+ src/hb-ot-shape-complex-indic-private.hh | 76
+ ++++++++++++++++----------------
+ 1 file changed, 38 insertions(+), 38 deletions(-)
+
+commit af528b6674bccac3efd13f8b33fcdc6aeb178f4c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 27 18:07:00 2014 -0400
+
+    Fix typo; ouch!
+
+ src/hb-ot-cmap-table.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 7d4ada66c96a748ce92f8e8edac149361c3dc829
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 27 17:30:59 2014 -0400
+
+    Mark unsed members with a "Z" suffix
+
+    There may be more. There are members that are by definition
+    redundant or reserved and not needed, NOT what we *currently*
+    don't use.
+
+    I'm sure there's more...
+
+ src/hb-open-file-private.hh       |  6 +++---
+ src/hb-ot-cmap-table.hh           | 24 ++++++++++++------------
+ src/hb-ot-layout-common-private.hh |  2 +-
+ 3 files changed, 16 insertions(+), 16 deletions(-)
+
+commit 23afcff1d14e57f5ce30a4100698d4f2dc530958
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 27 17:22:36 2014 -0400
+
+    [ot-font] Implement Unicode variation selectors
+
+ src/hb-ot-font.cc | 20 +++++++++++++++++++-
+ 1 file changed, 19 insertions(+), 1 deletion(-)
+
+commit a5a4736916b6035e6413d4619f9e7287e683d51b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 27 17:03:22 2014 -0400
+
+    [cmap] Implement subtable format 14
+
+ src/hb-ot-cmap-table.hh | 147
+ +++++++++++++++++++++++++++++++++++++++++++-----
+ 1 file changed, 133 insertions(+), 14 deletions(-)
+
+commit 586b60622c33878f9ca4826b4ef07369d32bf039
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 27 15:39:47 2014 -0400
+
+    Minor: final bits of cleanup
+
+ src/hb-open-type-private.hh       | 1 +
+ src/hb-ot-layout-common-private.hh | 4 ++--
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+commit 51d9ba09bc78188ec87218aef5232e80568c1712
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 27 15:27:15 2014 -0400
+
+    Minor
+
+ src/hb-open-type-private.hh | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+commit 3084767e92483c669f38319f153c498e9a6b92c7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 27 15:24:35 2014 -0400
+
+    Minor: Remove LongArrayOf
+
+ src/hb-open-file-private.hh | 2 +-
+ src/hb-open-type-private.hh | 4 ----
+ 2 files changed, 1 insertion(+), 5 deletions(-)
+
+commit 41ea59495032e712fa6f801350ee00d5f00b5724
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 27 15:23:18 2014 -0400
+
+    Minor: Remove LongSortedArrayOf
+
+ src/hb-open-type-private.hh | 4 ----
+ src/hb-ot-cmap-table.hh     | 2 +-
+ 2 files changed, 1 insertion(+), 5 deletions(-)
+
+commit bb6ecf2ce5c2679c298741af17836a22e1d68121
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 27 15:13:44 2014 -0400
+
+    Minor: Remove LongOffsetArrayOf and LongOffsetLongArrayOf
+
+ src/hb-open-file-private.hh   | 2 +-
+ src/hb-open-type-private.hh   | 8 --------
+ src/hb-ot-layout-gdef-table.hh | 2 +-
+ 3 files changed, 2 insertions(+), 10 deletions(-)
+
+commit 99d281712390fd54e523b2f0580d10445457ec2f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 27 15:12:52 2014 -0400
+
+    Minor: Remove GenericOffset
+
+ src/hb-open-type-private.hh       | 13 +++++--------
+ src/hb-ot-layout-common-private.hh |  8 ++++----
+ 2 files changed, 9 insertions(+), 12 deletions(-)
+
+commit 9da552dcc5b89b3bbbe5a55fb7c543222382e12a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 27 15:09:42 2014 -0400
+
+    Minor: Remove some GenericXXX templates
+
+ src/hb-open-type-private.hh       | 32 +++++++++++---------------------
+ src/hb-ot-cmap-table.hh           |  4 ++--
+ src/hb-ot-layout-common-private.hh |  2 +-
+ 3 files changed, 14 insertions(+), 24 deletions(-)
+
+commit 36073ede5b52bd1231622cbacd1bee6b82696d81
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 27 14:48:54 2014 -0400
+
+    Minor: Reorder template parameter order
+
+ src/hb-open-type-private.hh | 14 +++++++-------
+ src/hb-ot-cmap-table.hh     | 2 +-
+ 2 files changed, 8 insertions(+), 8 deletions(-)
+
+commit 0394ec1bfbd7806cbe9fc809b34f96f8d12ffbf2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 27 14:40:35 2014 -0400
+
+    Minor: Introduce GenericOffset
+
+ src/hb-open-type-private.hh | 16 ++++++----------
+ 1 file changed, 6 insertions(+), 10 deletions(-)
+
+commit 0d1b3419a7bbfd18ab8fed1abd3a41dec11e8d97
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 26 19:13:34 2014 -0400
+
+    Minor: Use template parameter default values for OffsetTo
+
+ src/hb-open-type-private.hh | 13 +++++--------
+ 1 file changed, 5 insertions(+), 8 deletions(-)
+
+commit 546b1adcdce2d3592843938b0b81ff32e67b0b83
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 26 19:10:21 2014 -0400
+
+    Minor: Use template parameter default values for hb_prealloced_array_t
+
+ src/hb-private.hh | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+commit 911ca38645bd51764e7859bc482319e8f6d2f710
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 24 10:20:36 2014 -0600
+
+    Add back API removed recently
+
+    Add hb_ot_layout_language_get_required_feature_index() again, which
+    is used in Pango.  This was removed in
+    da132937989acb4d8ca9bd41c79f98750e7dda30 in favor of
+    hb_ot_layout_language_get_required_feature().
+
+    API changes:
+
+      - Added hb_ot_layout_language_get_required_feature_index back.
+
+ src/hb-ot-layout.cc | 15 +++++++++++++++
+ src/hb-ot-layout.h  | 7 +++++++
+ 2 files changed, 22 insertions(+)
+
+commit 89e4946929a8cd2359c7d76fa9272d5604243002
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jun 22 11:32:13 2014 -0600
+
+    Add new IndicSyllabicCategory short forms for Unicode 7.0
+
+ src/gen-indic-table.py | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit dcee838e89c2863c2fda4e8f098e720637e02335
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jun 22 11:29:59 2014 -0600
+
+    Minor
+
+ src/gen-arabic-table.py | 2 +-
+ src/gen-indic-table.py  | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit f2ad86e6053fa87ab188c36edc3d98c92324c049
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 21 15:31:10 2014 -0600
+
+    [indic-table-gen] Minor
+
+ src/gen-indic-table.py | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 2ec62279aab8c2263f17ffbc7c6f74304674f9a8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 21 15:25:59 2014 -0600
+
+    [indic-table] Update to Unicode 6.3.0
+
+    Was from 6.2.0.  It's a no-op.  Committing for the record.
+
+ src/hb-ot-shape-complex-indic-table.cc | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+commit 5d4d7384efa97a30893ad28b9ad9a994722de12c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 21 14:53:21 2014 -0600
+
+    Minor: format
+
+ src/hb-ot-shape-complex-arabic.cc | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+commit 44243ae5902cc420e6bf6ec2fca2584ba93ff2fb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 21 14:19:34 2014 -0600
+
+    [arabic-table] Update to Unicode 7.0
+
+    Old table was from 6.2.  Remove hard-coded Mongolian and Phags-pa
+    data.
+    This completes support for new scripts Manichian and Psaltar Pahlavi.
+
+ src/hb-ot-shape-complex-arabic-table.hh | 72
+ ++++++++++++++++++++++++++++-----
+ src/hb-ot-shape-complex-arabic.cc      | 22 ----------
+ 2 files changed, 63 insertions(+), 31 deletions(-)
+
+commit cd86ab9b4f4d7bd4f563be64a83714fc8fb395d7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 21 14:10:38 2014 -0600
+
+    [arabic-table] Add ZWJ/ZWNJ now that table is segmented
+
+ src/gen-arabic-table.py                |  2 --
+ src/hb-ot-shape-complex-arabic-table.hh | 12 +++++++++++-
+ src/hb-ot-shape-complex-arabic.cc      |  5 -----
+ 3 files changed, 11 insertions(+), 8 deletions(-)
+
+commit 2390d9b67e1dfeccd3f0850d1304c52b54817ca0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 21 14:07:00 2014 -0600
+
+    [arabic-table] Further tune
+
+    In anticipation of Unicode 7.0 data coming in the next commit.
+
+ src/gen-arabic-table.py                | 10 ++++++---
+ src/hb-ot-shape-complex-arabic-table.hh | 38
+ +++++++++++++++------------------
+ 2 files changed, 24 insertions(+), 24 deletions(-)
+
+commit a133e6067aaebc494c0156b5fac7f4a879e12dbe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 20 18:01:34 2014 -0400
+
+    [indic-table] Minor
+
+ src/gen-indic-table.py | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+commit b900fa2c8cc088dbcbdbf90bfdf8764f9ee1c96a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 20 17:59:43 2014 -0400
+
+    [arabic-table] Use segmented table
+
+    No functional change.
+
+ src/gen-arabic-table.py                | 82
+ +++++++++++++++++++++++----------
+ src/hb-ot-shape-complex-arabic-table.hh | 53 ++++++++++++++-------
+ src/hb-ot-shape-complex-arabic.cc      |  8 ++--
+ 3 files changed, 97 insertions(+), 46 deletions(-)
+
+commit c2e113404640bf9b8bac469d0803ac946e77964f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 20 17:57:03 2014 -0400
+
+    [indic-table] Make output stable
+
+ src/gen-indic-table.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 55abfbd2ac1626af16151298a0837b837d0796df
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 20 16:47:43 2014 -0400
+
+    [indic-table] Minor
+
+    No output change.
+
+ src/gen-indic-table.py | 7 +------
+ 1 file changed, 1 insertion(+), 6 deletions(-)
+
+commit f88670749006991282bcc4e8b6218487295ca670
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 20 16:30:10 2014 -0400
+
+    [arabic-table] Don't write comments
+
+    No functional change.
+
+ src/gen-arabic-table.py                |  20 +-
+ src/hb-ot-shape-complex-arabic-table.hh | 710
+ ++------------------------------
+ 2 files changed, 38 insertions(+), 692 deletions(-)
+
+commit 200dfe3eb10feda2ad25940338b08011f4757ca4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 20 16:20:59 2014 -0400
+
+    [arabic-table] Use short names for values
+
+    No functional change.
+
+ src/gen-arabic-table.py                |   16 +-
+ src/hb-ot-shape-complex-arabic-table.hh | 1386
+ ++++++++++++++++---------------
+ 2 files changed, 716 insertions(+), 686 deletions(-)
+
+commit 3f5327a41efcf50f64d9498ef3dfd6875ef6a5ab
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 20 16:17:42 2014 -0400
+
+    [arabic-table] Read Blocks.txt and shuffle code around
+
+    No functional change.
+
+ src/Makefile.am                        |  2 +-
+ src/gen-arabic-table.py                | 80
+ +++++++++++++++++++--------------
+ src/hb-ot-shape-complex-arabic-table.hh | 30 ++++++++-----
+ 3 files changed, 67 insertions(+), 45 deletions(-)
+
+commit 171f970e4f72d9fe1af30eab32b96906ee4a14f5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 20 15:25:30 2014 -0400
+
+    [indic-table] Black-list Thai, Lao, and Tibetan
+
+    We don't need Indic table for those.
+
+ src/gen-indic-table.py                        |  3 ++
+ src/hb-ot-shape-complex-indic-table.cc | 94
+ +++++++---------------------------
+ 2 files changed, 21 insertions(+), 76 deletions(-)
+
+commit 65ac2dae4f284f563b2dc476a21e2b5a48124de8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 20 15:12:49 2014 -0400
+
+    [indic-table] Speed up lookup
+
+ src/gen-indic-table.py                        | 22 +++++++++---
+ src/hb-ot-shape-complex-indic-table.cc | 61
+ +++++++++++++++++++++++-----------
+ 2 files changed, 59 insertions(+), 24 deletions(-)
+
+commit 64442a3f4c5c7be08893454742cad6bfe73cb8d7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 20 14:58:53 2014 -0400
+
+    [indic-table] Fix compiler warning
+
+ src/gen-indic-table.py                        | 4 +---
+ src/hb-ot-shape-complex-indic-table.cc | 4 +---
+ 2 files changed, 2 insertions(+), 6 deletions(-)
+
+commit 0436e1d50527497ebe5053b51a34ce6590276249
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 20 14:56:22 2014 -0400
+
+    [indic-table] Make table more compact by not covering full blocks
+
+    -#define indic_offset_total 4416
+    +#define indic_offset_total 3816
+
+    -}; /* Table occupancy: 60% */
+    +}; /* Table occupancy: 69% */
+
+ src/gen-indic-table.py                        |  24 ++++--
+ src/hb-ot-shape-complex-indic-table.cc | 150
+ +++++++++------------------------
+ 2 files changed, 57 insertions(+), 117 deletions(-)
+
+commit 190a251479b3cfc68871ff1daf9a9d1abe3f86e6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 20 14:41:39 2014 -0400
+
+    [indic-table] Remove block range from data table
+
+    No functional change.
+
+ src/gen-indic-table.py                        |   4 +-
+ src/hb-ot-shape-complex-indic-table.cc | 102
+ ++++++++++++++++-----------------
+ 2 files changed, 54 insertions(+), 52 deletions(-)
+
+commit 2b051c6057920c564c13c5d6a3e6dca93446fa12
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 20 14:09:57 2014 -0400
+
+    Rename HB_VERSION_CHECK and hb_version_check to "atleast"
+
+    HB_VERSION_CHECK's comparison was originally written wrongly
+    by mistake.  When API tests were written, they were also written
+    wrongly to pass given the wrong implementation... Sigh.
+
+    Given the purpose of this API, there's no point in fixing it
+    without renaming it.  As such, rename.
+
+    API changes:
+
+      HB_VERSION_CHECK -> HB_VERSION_ATLEAST
+      hb_version_check -> hb_version_atleast
+
+ docs/reference/harfbuzz-sections.txt |  4 ++--
+ src/hb-common.cc                    | 10 +++++-----
+ src/hb-version.h.in                 | 10 +++++-----
+ test/api/test-version.c             | 29 +++++++++++++++--------------
+ 4 files changed, 27 insertions(+), 26 deletions(-)
+
+commit cabfa538ed4b1355326fa8de05f7209dda1c1c7a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 20 13:51:21 2014 -0400
+
+    Adjust unused doc symbols
+
+ docs/reference/harfbuzz-sections.txt | 19 +++++++++++++++++--
+ src/hb-ot-shape.h                   | 21 ++++++++++-----------
+ 2 files changed, 27 insertions(+), 13 deletions(-)
+
+commit da132937989acb4d8ca9bd41c79f98750e7dda30
+Author: Jonathan Kew <jfkthame@gmail.com>
+Date:  Sun Apr 27 14:05:24 2014 +0100
+
+    Rework handling of requiredFeature to solve problem with rlig in
+    arial.ttf from winxp
+
+    https://bugzilla.mozilla.org/show_bug.cgi?id=986802
+    Fixes https://github.com/behdad/harfbuzz/pull/39
+
+    API Change:
+
+    -hb_ot_layout_language_get_required_feature_index
+    +hb_ot_layout_language_get_required_feature
+
+    New API takes an extra pointer argument.  Pass NULL in to get
+    behavior of previous API.
+
+    Reworked by behdad
+
+ src/hb-ot-layout-gsubgpos-private.hh |  4 +--
+ src/hb-ot-layout.cc                 | 29 ++++++++++++---------
+ src/hb-ot-layout.h                  | 11 ++++----
+ src/hb-ot-map.cc                    | 50
+ ++++++++++++++++++++++++++----------
+ src/main.cc                         |  4 +--
+ 5 files changed, 64 insertions(+), 34 deletions(-)
+
+commit df554af99db390e42d378983bb3fcf583477a1d7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 19 15:39:18 2014 -0400
+
+    Rename search() to bsearch() and lsearch()
+
+    Such that the complexity of the algorithm used is clear at
+    call site.
+
+ src/hb-open-type-private.hh       |  4 ++--
+ src/hb-ot-cmap-table.hh           | 14 +++++++-------
+ src/hb-ot-layout-common-private.hh |  9 +++++----
+ 3 files changed, 14 insertions(+), 13 deletions(-)
+
+commit fb8cc86ff99c08064ac58a559bb66cc340693b92
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 19 15:30:18 2014 -0400
+
+    Rename sort() to qsort()
+
+    In an effort to make the algorithm used clear.
+
+ src/hb-coretext.cc  | 4 ++--
+ src/hb-ot-map.cc    | 4 ++--
+ src/hb-private.hh   | 8 ++++----
+ src/hb-uniscribe.cc | 4 ++--
+ 4 files changed, 10 insertions(+), 10 deletions(-)
+
+commit 577ca4814314c374824cac736996b9cdd4f9d11f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 18 12:29:23 2014 -0400
+
+    [unicode7] Update list of Default_Ignorable codepoints
+
+ src/hb-unicode-private.hh | 66
+ +++++++++++++++++++++--------------------------
+ 1 file changed, 30 insertions(+), 36 deletions(-)
+
+commit 7cfee3827636f0dff7df5c8975a4fadd1b4bfbd5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 28 15:09:30 2014 -0700
+
+    [unicode7] Route Manichaean and Psalter Pahlavi through Arabic shaper
+
+    Still needs update to joining table to fully work.
+
+ src/hb-ot-shape-complex-private.hh | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit a4a7899cd93fb9d1bc2163a4bbabfa733ee5bd52
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 28 15:06:42 2014 -0700
+
+    [unicode7] Mark right-to-left scripts
+
+ src/hb-common.cc | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 62587bfc5178a447ef66d88eab7412a7efe84692
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 28 15:07:21 2014 -0700
+
+    [unicode7] Declare Unicode 7 scripts
+
+ src/hb-common.h | 21 +++++++++------------
+ 1 file changed, 9 insertions(+), 12 deletions(-)
+
+commit dc61294aa93d36d0c5d187d4a692560a7cb46444
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 28 14:58:28 2014 -0700
+
+    [unicode7] Add missing ISO 15924 tags
+
+ src/hb-common.h | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 7526373e70bc4c2e2072da36babf9399fcf483b8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 17 11:45:26 2014 -0400
+
+    [coretext] Remove unused var
+
+ src/hb-coretext.cc | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 798e4185bc71b1a63528e6b0af236d4c964ec607
+Author: Jonathan Kew <jfkthame@gmail.com>
+Date:  Tue Jun 10 13:10:30 2014 +0100
+
+    When zeroing mark widths for LTR, also adjust offset...
+
+    ...so that they overstrike preceding glyph.
+
+    https://github.com/behdad/harfbuzz/pull/43
+
+ src/hb-ot-shape.cc | 50
+ +++++++++++++++++++++++++++++++++++++++-----------
+ 1 file changed, 39 insertions(+), 11 deletions(-)
+
+commit 80f7405a5208f88b8615aa4ce4c54ffeb16f04f8
+Author: Jonathan Kew <jfkthame@gmail.com>
+Date:  Tue Jun 10 13:10:02 2014 +0100
+
+    [Thai] set the correct general category on Nikhahit when decomposing
+    Sara-Am.
+
+ src/hb-ot-shape-complex-thai.cc | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit 1d634cbb4b0338e1c2841127a72c5fac3a2a5ca1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 6 17:55:02 2014 -0400
+
+    Fix base-position when 'pref' is NOT formed
+
+    If pre-base reordering Ra is NOT formed (or formed and then
+    broken up), we should consider that Ra as base.  This is
+    observable when there's a left matra or dotreph that positions
+    before base.
+
+    Now, it might be that we shouldn't do this if the Ra happend
+    to form a below form.  We can't quite deduce that right now...
+
+    Micro test added.  Also at:
+
+    https://code.google.com/a/google.com/p/noto-alpha/issues/detail?id=186#c29
+
+ src/hb-ot-shape-complex-indic.cc                  |  28
+ +++++++++++++++++++--
+ test/shaping/fonts/sha1sum/MANIFEST               |   5 ++++
+ .../e207635780b42f898d58654b65098763e340f5c7.ttf   | Bin 0 -> 3000 bytes
+ test/shaping/tests/indic-pref-blocking.tests      |   3 ++-
+ 4 files changed, 33 insertions(+), 3 deletions(-)
+
+commit 04dc52fa15f5b7f9eb5f448ea43e7ef1b2269e88
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 6 17:28:38 2014 -0400
+
+    [indic] Recover OT_H undergone ligation and multiplication
+
+    Sometimes font designers form half/pref/etc consonant forms
+    unconditionally and then undo that conditionally.  Try to
+    recover the OT_H classification in those cases.
+
+    No test number changes expected.
+
+ src/hb-ot-layout-private.hh     |  8 ++++++++
+ src/hb-ot-shape-complex-indic.cc | 21 +++++++++++++++++++++
+ 2 files changed, 29 insertions(+)
+
+commit 39c8201f8e361e8c0f23f07bf20124ccadc6086c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 6 17:19:35 2014 -0400
+
+    [indic] Improve base re-finding
+
+    No test numbers change.
+
+ src/hb-ot-shape-complex-indic.cc | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+commit c04d5f0dd24d0ed9560fb9aebb5561ce946743c3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 6 17:02:39 2014 -0400
+
+    [indic] Minor
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 824d00dce483d0f4030c0cac253f994810e10f32
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jun 9 14:17:33 2014 -0400
+
+    Fix commit 3f38c1137b6219a646da141b08463ffa922d4e35
+
+    Previous commit was not compiling with clang.
+
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 3f38c1137b6219a646da141b08463ffa922d4e35
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 6 16:03:40 2014 -0400
+
+    Don't use -mstructure-size-boundary=8 on clang arm
+
+    As in building for Android / iPhone.  Only set it if
+    struct{char} alignment is not 1.
+
+    NOT tested on an actual Arm architecture.  Guess we'll know
+    when this makes it to people's build bots.
+
+ configure.ac | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+commit 0ff74b09d2ccf7a9ea0f0b463d8b6d819c86c837
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 5 21:55:23 2014 -0400
+
+    Add missing test file.  Oops
+
+ test/shaping/tests/indic-pref-blocking.tests | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 832a6f99b34f334b1e82b8e3a7ad137e823d203c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 4 16:57:42 2014 -0400
+
+    [indic] Don't reorder reph/pref if ligature was expanded
+
+    Normally if you want to, say, conditionally prevent a 'pref', you
+    would use blocking contextual matching.  Some designers instead
+    form the 'pref' form, then undo it in context.  To detect that
+    we now also remember glyphs that went through MultipleSubst.
+
+    In the only place that this is used, Uniscribe seems to only care
+    about the "last" transformation between Ligature and Multiple
+    substitions.  Ie. if you ligate, expand, and ligate again, it
+    moves the pref, but if you ligate and expand it doesn't.  That's
+    why we clear the MULTIPLIED bit when setting LIGATED.
+
+    Micro-test added.  Test: U+0D2F,0D4D,0D30 with font from:
+
+    [1]
+    https://code.google.com/a/google.com/p/noto-alpha/issues/detail?id=186#c29
+
+ src/hb-ot-layout-gsub-table.hh                             |   2 +-
+ src/hb-ot-layout-gsubgpos-private.hh               |  20
+ ++++++++++++++++----
+ src/hb-ot-layout-private.hh                        |  16
+ +++++++++++++++-
+ src/hb-ot-shape-complex-indic.cc                   |   4 ++--
+ test/shaping/Makefile.am                           |   5 ++++-
+ .../226bc2deab3846f1a682085f70c67d0421014144.ttf    | Bin 0 -> 2828 bytes
+ test/shaping/tests/MANIFEST                        |   1 +
+ 7 files changed, 39 insertions(+), 9 deletions(-)
+
+commit b5be2317201774c84470167767ad83c8637cad5b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 5 19:00:22 2014 -0400
+
+    [gsub] Adjust single-length ligature subst to act like single subst
+
+ src/hb-ot-layout-gsub-table.hh | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit aae69451dfbf2e3671c555c234f788c194302818
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 5 18:54:44 2014 -0400
+
+    [gsub] Minor shuffling
+
+ src/hb-ot-layout-gsub-table.hh | 29 ++++++++++++++++-------------
+ 1 file changed, 16 insertions(+), 13 deletions(-)
+
+commit b6b304f12be917b7449b3ac9409069fcd4a27d95
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 5 17:12:54 2014 -0400
+
+    [ot] Add TODO re zero-len MultipleSubst sequences
+
+ src/hb-ot-layout-gsub-table.hh       | 9 +++++++++
+ src/hb-ot-layout-gsubgpos-private.hh | 4 +++-
+ 2 files changed, 12 insertions(+), 1 deletion(-)
+
+commit f1a72fe7bf863535ec09b559cc0bd878fd0799f2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 4 19:00:29 2014 -0400
+
+    [ot-font] Fix cmap EncodingRecord cmp order
+
+ src/hb-ot-cmap-table.hh | 14 +++++++++-----
+ 1 file changed, 9 insertions(+), 5 deletions(-)
+
+commit ce34f0b07e5324ed52e6e2c43000c2b09ee010d4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 4 18:57:46 2014 -0400
+
+    [ot-font] Use binary search for format12 cmap subtable
+
+ src/hb-open-type-private.hh | 4 ++++
+ src/hb-ot-cmap-table.hh     | 2 +-
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+commit 257d1adfa1b3422c511c55e641840a6e31ec6008
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 4 18:47:55 2014 -0400
+
+    [ot-font] Work around broken cmap subtable format 4 length
+
+    Roboto was hitting this.  FreeType also has pretty much the
+    same code for this, in ttcmap.c:tt_cmap4_validate():
+
+       /* in certain fonts, the `length' field is invalid and goes */
+       /* out of bound.  We try to correct this here...            */
+       if ( table + length > valid->limit )
+       {
+         if ( valid->level >= FT_VALIDATE_TIGHT )
+           FT_INVALID_TOO_SHORT;
+
+         length = (FT_UInt)( valid->limit - table );
+       }
+
+ src/hb-ot-cmap-table.hh | 22 ++++++++++++++++++----
+ 1 file changed, 18 insertions(+), 4 deletions(-)
+
+commit 51f563579b94e1ee23ced9bbcc7dd3341535ce72
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 4 18:42:32 2014 -0400
+
+    Move try_set to sanitize context
+
+ src/hb-open-type-private.hh       | 22 ++++++++++------------
+ src/hb-ot-layout-common-private.hh |  2 +-
+ 2 files changed, 11 insertions(+), 13 deletions(-)
+
+commit 500737e8e16dce5248aff394899bb3761a9c3bbf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 4 18:17:29 2014 -0400
+
+    [ot-font] Don't select a Null cmap subtable
+
+    Can happen either in broken fonts, or as a result of sanitize().
+
+ src/hb-ot-cmap-table.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit dac86026a6bae5a8a03cfe885bf93f32e5f48614
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 3 17:57:00 2014 -0400
+
+    Fix some cppcheck warnings
+
+    Bug 77800 - cppcheck reports
+
+ src/hb-common.cc                  | 4 +++-
+ src/hb-ot-layout-common-private.hh | 2 +-
+ src/hb-private.hh                 | 2 +-
+ src/hb-shape-plan.cc              | 4 ++--
+ 4 files changed, 7 insertions(+), 5 deletions(-)
+
+commit c306410cab368a27c1941a2625d3b475edeaac04
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 3 16:59:41 2014 -0400
+
+    Bug 77732 - Fix unused typedef warning for ASSERT_STATIC with GCC 4.8
+
+ src/hb-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ae2b854eab7f1c48e56751c987a714c2c18d6eb6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 3 16:59:09 2014 -0400
+
+    Move code around
+
+ src/hb-private.hh | 134
+ ++++++++++++++++++++++++++----------------------------
+ 1 file changed, 65 insertions(+), 69 deletions(-)
+
+commit 17c3b809f42aec34d83dba2e6229ad85804bebae
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jun 2 15:08:18 2014 -0400
+
+    [indic] Treat U+A8E0..A8F1 as OT_A instead of OT_VD
+
+    Apparently they can intermix with other OT_A.
+
+    Test: U+0915,A8E2,1CD0
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 6ae13f257c3986517c097fa666ab9f58bdc918b5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 30 17:38:14 2014 -0400
+
+    [graphite2] Fix cluster mapping
+
+    Patch from Martin Hosken.  I expect this to fix the following bugs:
+
+    https://bugs.freedesktop.org/show_bug.cgi?id=75076
+    https://bugzilla.gnome.org/show_bug.cgi?id=723582
+    https://bugzilla.redhat.com/show_bug.cgi?id=998812
+
+ src/hb-graphite2.cc | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit 5875ad9c467b39d00ad4d98fd425179c701e6fd0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 29 15:48:16 2014 -0400
+
+    0.9.29
+
+ NEWS        | 12 ++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 13 insertions(+), 1 deletion(-)
+
+commit 7977ca17aac34b9ab10622928bed8afa2177f16a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 29 15:34:26 2014 -0400
+
+    [indic] Allow decimal and Brahmi digits as placeholders
+
+    Tests: U+0967,0951 U+0031,093F
+
+ src/hb-ot-shape-complex-indic.cc                                     |
+ 4 ++++
+ .../texts/in-tree/shaper-indic/indic/script-devanagari/misc/misc.txt  |
+ 2 ++
+ 2 files changed, 6 insertions(+)
+
+commit e8b5d64039614ecce472eda1a7a603736da25d86
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 29 15:18:27 2014 -0400
+
+    [indic] Do NOT allow reph formation on placeholders
+
+    Only allow it on DOTTED CIRCLE.  No effect on test numbers.
+
+    Test: U+0930,094D,00A0
+
+ src/hb-ot-shape-complex-indic-machine.rl                               |
+ 2 +-
+ .../in-tree/shaper-indic/indic/script-devanagari/misc/dottedcircle.txt  |
+ 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+commit 52b562a6a058131c0103aaa5404d053e6465bb23
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 27 18:18:23 2014 -0400
+
+    [indic] Clean up a bit
+
+    No functional change intended.
+
+ src/hb-ot-shape-complex-indic.cc | 17 +++++------------
+ 1 file changed, 5 insertions(+), 12 deletions(-)
+
+commit 3bf652b90783e8244c153739585d95dc4162efb4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 27 18:07:26 2014 -0400
+
+    [indic] Treat U+002D and U+2010..2014 as placeholders
+
+ src/hb-ot-shape-complex-indic.cc | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit e0de95f40244924cb8f9f7abca7f53117044a0eb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 27 17:58:34 2014 -0400
+
+    [indic] Treat U+00D7 MULTIPLICATION SIGN as placeholder
+
+ src/hb-ot-shape-complex-indic.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit cf78dd483cbe1759a8ecb731879e041a53ba9bb3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 27 17:53:37 2014 -0400
+
+    [indic/myanmar] Rename OT_NBSP to OT_PLACEHOLDER
+
+ src/hb-ot-shape-complex-indic-machine.rl | 4 ++--
+ src/hb-ot-shape-complex-indic-private.hh | 6 +++---
+ src/hb-ot-shape-complex-indic.cc        | 4 ++--
+ src/hb-ot-shape-complex-myanmar.cc      | 2 +-
+ 4 files changed, 8 insertions(+), 8 deletions(-)
+
+commit 186ece94c8838e95db240d3e7c3ce415da6be81e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 27 17:49:45 2014 -0400
+
+    [myanmar] Use OT_NBSP instead of OT_DOTTEDCIRCLE for OT_GB
+
+    No functional change.
+
+ src/hb-ot-shape-complex-myanmar-machine.rl | 2 +-
+ src/hb-ot-shape-complex-myanmar.cc        | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit cf71d28c380819cb0f7f0f22f6ff9e4aa881a2b8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 27 17:47:43 2014 -0400
+
+    [indic/myanmar] Refactor a few macros
+
+ src/hb-ot-shape-complex-indic-private.hh | 12 ++++++++++++
+ src/hb-ot-shape-complex-indic.cc        | 10 ----------
+ src/hb-ot-shape-complex-myanmar.cc      |  6 ------
+ 3 files changed, 12 insertions(+), 16 deletions(-)
+
+commit 2307268e01d27a999b56a2f573dfcee8b2a7949b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 27 17:39:01 2014 -0400
+
+    [indic] Treat U+0A72..0A73 like regular consonants
+
+    Unicode 6.x IndicSyllableCategory categorizes them as
+    placeholders, but they can subjoin.
+
+ src/hb-ot-shape-complex-indic.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit e9b2a4cfe593bdbe9288571635ba26ac42ede987
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 23 15:49:10 2014 -0400
+
+    [indic] Support U+1CED
+
+ src/hb-ot-shape-complex-indic.cc | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+commit d19f8e85702a1e473efe2f02027984dcc127602a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 23 15:45:50 2014 -0400
+
+    [indic] Support U+A8F2..A8F7,1CE9..1CEC,1CEE..1CF1
+
+ src/hb-ot-shape-complex-indic.cc | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit ddbdfcbf1c10eed0a7b81b29fee99f1bd22113e5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 23 15:39:55 2014 -0400
+
+    [indic] Simplify grammar
+
+    No functional change.
+
+ src/hb-ot-shape-complex-indic-machine.rl | 7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+
+commit 4e9b1f662b23966e67c548b86afeff2bec9b0eb7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 23 15:38:42 2014 -0400
+
+    [indic] Always start new syllable for Avagraha
+
+    In fact, the previous grammar was ambigious.  No functional
+    change.
+
+ src/hb-ot-shape-complex-indic-machine.rl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 9f9bd9bf31161660214b8b39a78cdafbb79db1be
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 23 15:33:13 2014 -0400
+
+    [indic] Rename avagraha cluster to symbol cluster
+
+    In anticipation of adding more characters to that class of clusters.
+
+ src/hb-ot-shape-complex-indic-machine.rl | 10 +++++-----
+ src/hb-ot-shape-complex-indic-private.hh |  4 ++--
+ src/hb-ot-shape-complex-indic.cc        | 14 +++++++-------
+ 3 files changed, 14 insertions(+), 14 deletions(-)
+
+commit a498565cedf0441ae723c5e5969f637d792a15e7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 22 19:39:56 2014 -0400
+
+    [indic] Support U+1CF2,U+1CF3
+
+ src/hb-ot-shape-complex-indic.cc | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+commit ecb98babbaa065940b40ca8954a454f0e2cdcff0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 22 19:36:21 2014 -0400
+
+    [indic] Support U+1CE2..U+1CE8
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 37bf2c9224e32fdc99c20158c6dc0a4602ec1292
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 22 19:35:17 2014 -0400
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 131e17ff9ae792cafa7a500043acb373802ee872
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 22 19:32:51 2014 -0400
+
+    [indic] Support U+1CF5,1CF6
+
+ src/hb-ot-shape-complex-indic.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 72ead0cc72dac4d1c985ead065bb820f93f14a1d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 22 19:12:10 2014 -0400
+
+    [indic] Treat U+1CE1 as a tone-mark too
+
+    It's spacing, but otherwise the same as the other ones.
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit e848bfae7c975a6fae434daf8e3db4d69914df9f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 22 18:50:34 2014 -0400
+
+    [indic] Recategorize U+A8E0..A8F1 as OT_VD
+
+    Up to two of them come after all OT_A characters.
+
+ src/hb-ot-shape-complex-indic-machine.rl |  2 +-
+ src/hb-ot-shape-complex-indic.cc        | 10 ++++++----
+ 2 files changed, 7 insertions(+), 5 deletions(-)
+
+commit c519536c34c842304da558dd4a9e3844fc261b20
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 22 18:43:14 2014 -0400
+
+    [indic] Allow up to three tone marks
+
+    According to Roozbeh, there are valid combinations in Unicode
+    proposals for up to three. Previously we were allowing up to two.
+
+ src/hb-ot-shape-complex-indic-machine.rl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit c11fc6833980fce6d70c5ae0c6623de97a3eb30a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 22 18:41:49 2014 -0400
+
+    [indic] Support more extended Devanagari tone marks
+
+    Also adjust U+0953,0954 handling.
+
+ src/hb-ot-shape-complex-indic.cc | 18 ++++++++++++------
+ 1 file changed, 12 insertions(+), 6 deletions(-)
+
+commit 26c836e53d55a2e2d4c17fd9ea1884eec33ce015
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 21 18:35:48 2014 -0400
+
+    [indic] Handle "Cantillation marks for the Samaveda"
+
+ src/hb-ot-shape-complex-indic.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 29531128f2f4342d537817746863705df80efe4b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 15 14:04:02 2014 -0600
+
+    [indic] Improve reph formation of Sinhala and Telugu
+
+    Sinhala and Telugu use "explicit" reph.  That is, the reph is
+    formed by
+    a Ra,H,ZWJ sequence.  Previously, upon detecting this sequence,
+    we were
+    checking checking whether the 'rphf' feature applies to the first two
+    glyphs of the sequence.  This is how the Microsoft fonts are designed.
+    However, testing with Noto shows that apparently Uniscribe also forms
+    the reph if the lookup ligates all three glyphs.  So, try both
+    sequences.
+
+    Doesn't affect test results for Sinhala or Telugu.
+
+    https://code.google.com/a/google.com/p/noto-alpha/issues/detail?id=232
+
+ src/hb-ot-shape-complex-indic.cc | 9 +++++++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
+
+commit 8c703f13bf8b4b276093b1c42cd3759e34b6787f
+Author: Oleg Oshmyan <chortos@inbox.lv>
+Date:  Wed May 14 22:10:09 2014 +0100
+
+    Fix build with --coretext on older OS X
+
+    Fixes https://github.com/behdad/harfbuzz/pull/40
+
+ src/hb-coretext.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 439b05867c0856a81fa8f9bea3a7465b4b4bdd91
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 14 16:44:39 2014 -0600
+
+    [myanmar] Allow MedialYa+Asat in the grammar
+
+    The grammar in the OT spec, and the existing Windows implementation
+    seem to be confused around where to allow Asat around the medial
+    consonants.
+
+    The previous grammar for medial group was allowing an Asat after
+    the medial group only if there was a medial Wa or Ha, but not if
+    there was only a medial Ya.  This doesn't make sense to me and
+    sounds reversed, as both medial Wa and Ha are below marks while
+    Asat is an above mark.  An Asat can come before the medial group
+    already (in fact, multiple ones can.  Why?!).  The medial Ya
+    however is a spacing mark and according to Roozbeh it's valid
+    to want an Asat on the medial Ya instead of the base, so it looks
+    to me like we want to allow an Asat after the medial group if
+    there *was* a Ya but not if there wasn't any.  Not wanting to
+    produce dotted-circle where Windows is not, this commit changes
+    the grammar to allow one Asat after the medial group no matter
+    what comes in the group.
+
+    Test: U+1002,103A,103B vs U+1002,103B,103A
+
+ src/hb-ot-shape-complex-myanmar-machine.rl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 0a017ce169d791c9aea56671fe5837961e0a3c09
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 14 16:44:16 2014 -0600
+
+    Add tests for Myanmar Asat+MedialYa and MedialYa+Asat sequences
+
+    One of them currently produces dotted-circle.  Fix and detailed
+    message coming.
+
+ test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/misc.txt |
+ 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit c95587618c88d187be64f923033dae151cf820be
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 14 00:42:18 2014 -0400
+
+    [ot] Minor note re cmap subtable format 2 and 8
+
+ src/hb-ot-cmap-table.hh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit b7878cd58ea9a67236e1e0228c35b5b03ec4ff9c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 13 21:47:51 2014 -0400
+
+    [ot] Implement cmap subtable format 0
+
+ src/hb-open-type-private.hh | 3 ++-
+ src/hb-ot-cmap-table.hh     | 32 ++++++++++++++++++++++++++++++++
+ 2 files changed, 34 insertions(+), 1 deletion(-)
+
+commit ca7b77431d1e0aaa803722be8be85a368a385f47
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 13 21:26:34 2014 -0400
+
+    [ot] Factor out code between cmap sutable format 12 and 13
+
+ src/hb-ot-cmap-table.hh | 43 +++++++++++++------------------------------
+ 1 file changed, 13 insertions(+), 30 deletions(-)
+
+commit 94759e8219ed08392573bae948a8135e16b8e0d0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 13 21:17:28 2014 -0400
+
+    [ot] Factor out code between cmap subtable format 6 and 10
+
+ src/hb-ot-cmap-table.hh | 49
+ ++++++++++---------------------------------------
+ 1 file changed, 10 insertions(+), 39 deletions(-)
+
+commit 1a8ffc512987c1ff1b4896549f80b145c85454a8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 13 21:06:39 2014 -0400
+
+    Minor
+
+ src/hb-blob.h | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+commit 91bbfca87527fa14d6ebec86b087f2a989381872
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 12 18:19:29 2014 -0400
+
+    [ot] Implement cmap subtable formats 6 and 10
+
+ src/hb-ot-cmap-table.hh | 77
+ +++++++++++++++++++++++++++++++++++++++++++++++--
+ 1 file changed, 74 insertions(+), 3 deletions(-)
+
+commit d294a2cb165c4f20daa5624969067c51eb9aef58
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 12 17:58:31 2014 -0400
+
+    [ot] Implement cmap subtable format 13
+
+ src/hb-ot-cmap-table.hh | 47
+ +++++++++++++++++++++++++++++++++++++++++------
+ 1 file changed, 41 insertions(+), 6 deletions(-)
+
+commit 0d75793fae95ed9f6b8522ae3af4fcdf397d8c36
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 12 17:51:15 2014 -0400
+
+    [ot] Implement cmap subtable format 12
+
+ src/hb-ot-cmap-table.hh | 63
+ +++++++++++++++++++++++++++++++++++++++++++++++--
+ src/hb-ot-font.cc      |  5 ++++
+ 2 files changed, 66 insertions(+), 2 deletions(-)
+
+commit 3608a6847e7b7eb4206df049158513a085810afd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 12 13:46:29 2014 -0400
+
+    [ot] Hook up cmap table to hb_ot_font_funcs()
+
+ src/hb-ot-cmap-table.hh | 10 +++++++---
+ src/hb-ot-font.cc      | 33 +++++++++++++++++++--------------
+ 2 files changed, 26 insertions(+), 17 deletions(-)
+
+commit c8a47452993b9dee6854bfc866aca4a20142696f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 9 19:55:51 2014 -0400
+
+    [ot] Implement cmap subtable format 4
+
+ src/hb-ot-cmap-table.hh | 52
+ +++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 52 insertions(+)
+
+commit 4719621f20dfd6a0377c650a7b4df223c18dc143
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 9 16:09:11 2014 -0400
+
+    Minor
+
+ src/hb-open-type-private.hh | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 41ca1fbebf61cf26e1e0e4b11f4a5b52fb7d88a9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 9 15:35:56 2014 -0400
+
+    [ot] Start implementing cmap table
+
+ src/Makefile.am        |   1 +
+ src/hb-ot-cmap-table.hh | 171
+ ++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-ot-font.cc      |   1 +
+ 3 files changed, 173 insertions(+)
+
+commit c7074b8798048324cb8850c55908ce77fc33d11e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 8 18:24:31 2014 -0400
+
+    [otlayout] Add GenericArrayOf::search()
+
+ src/hb-open-type-private.hh | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+commit 40a479797add42fa42b78d4267920ef75bfb6b9a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 8 18:21:04 2014 -0400
+
+    [otlayout] Add GenericSortedArrayOf
+
+ src/hb-open-type-private.hh | 10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
+
+commit 0ddecabc6de205b121bec31fbf670f37cc9454ef
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 1 16:01:40 2014 -0700
+
+    [main] Minor improvement to output
+
+ src/main.cc | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+commit 79ecdc3f9525212053d2bc88a5541c41697159da
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 28 14:24:23 2014 -0700
+
+    0.9.28
+
+ NEWS        | 13 +++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 14 insertions(+), 1 deletion(-)
+
+commit 6faff8e4132197ba06f0e685b82efe35b546cf64
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 28 14:29:39 2014 -0700
+
+    Add static storage classifier to inline functions
+
+    Before we were just relying on the compiler inlining them and not
+    leaving a trace in our public API. Try to fix.  Hopefully not
+    breaking anyone's build.
+
+ src/hb-open-type-private.hh   | 22 +++++++++++-----------
+ src/hb-ot-layout-gpos-table.hh |  4 ++--
+ src/hb-ot-layout-gsub-table.hh |  6 +++---
+ src/hb-ot-layout-private.hh   | 36 ++++++++++++++++++------------------
+ src/hb-ot-map-private.hh      | 10 +++++-----
+ src/hb-private.hh             |  2 +-
+ 6 files changed, 40 insertions(+), 40 deletions(-)
+
+commit 9c9411839bb89d0a1a83120af0982c60e0e393d9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 28 12:38:25 2014 -0700
+
+    [tibetan] Reorder PADMA sign to occur after other below marks
+
+    Based on suggestion from Andrew Glass.
+
+    Test: U+0F40,0FC6,0F83
+
+ src/hb-unicode-private.hh | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 659cd3c5b470ff9724ce5e53fedd1fea3e7512c4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 28 12:43:42 2014 -0700
+
+    [test] Add test case for Tibetan sign PADMA
+
+    Currently fails.
+
+ test/shaping/texts/in-tree/shaper-tibetan/script-tibetan/misc/misc.txt |
+ 1 +
+ 1 file changed, 1 insertion(+)
+
+commit ee703bc3ef740c300718fca7a12c050c322dce19
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 28 12:43:18 2014 -0700
+
+    Reshuffle test data
+
+ test/shaping/texts/in-tree/MANIFEST                     |  3 +++
+ test/shaping/texts/in-tree/shaper-default/MANIFEST      |  3 ---
+ .../texts/in-tree/shaper-default/script-hangul/MANIFEST  |  1 -
+ .../in-tree/shaper-default/script-hangul/misc/MANIFEST   |  1 -
+ .../in-tree/shaper-default/script-hangul/misc/misc.txt   |  4 ----
+ .../texts/in-tree/shaper-default/script-hebrew/MANIFEST  |  1 -
+ .../in-tree/shaper-default/script-hebrew/misc/MANIFEST   |  1 -
+ .../shaper-default/script-hebrew/misc/diacritics.txt    | 16
+ ----------------
+ .../texts/in-tree/shaper-default/script-tibetan/MANIFEST |  1 -
+ .../in-tree/shaper-default/script-tibetan/misc/MANIFEST  |  1 -
+ .../in-tree/shaper-default/script-tibetan/misc/misc.txt  |  1 -
+ .../texts/in-tree/shaper-hangul/script-hangul/MANIFEST   |  1 +
+ .../in-tree/shaper-hangul/script-hangul/misc/MANIFEST   |  1 +
+ .../in-tree/shaper-hangul/script-hangul/misc/misc.txt   |  4 ++++
+ .../texts/in-tree/shaper-hebrew/script-hebrew/MANIFEST   |  1 +
+ .../in-tree/shaper-hebrew/script-hebrew/misc/MANIFEST   |  1 +
+ .../shaper-hebrew/script-hebrew/misc/diacritics.txt     | 16
+ ++++++++++++++++
+ .../texts/in-tree/shaper-tibetan/script-tibetan/MANIFEST |  1 +
+ .../in-tree/shaper-tibetan/script-tibetan/misc/MANIFEST  |  1 +
+ .../in-tree/shaper-tibetan/script-tibetan/misc/misc.txt  |  1 +
+ 20 files changed, 30 insertions(+), 30 deletions(-)
+
+commit b082ef373cefb35dd98b5f2f0b677ccc7806f51e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 25 11:48:10 2014 -0700
+
+    Typo
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 828e109c7aac3389cc3b89ea1f13388aefb63804
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 18 16:53:34 2014 -0700
+
+    [indic] Fix-up zero-context matching
+
+    commit b5a0f69e47ace468b06e21cf069a18ddcfcf6064
+    Author: Behdad Esfahbod <behdad@behdad.org>
+    Date:   Thu Oct 17 18:04:23 2013 +0200
+
+       [indic] Pass zero-context=false to would_substitute for newer
+       scripts
+
+       For scripts without an old/new spec distinction, use
+       zero-context=false.
+       This changes behavior in Sinhala / Khmer, but doesn't seem
+       to regress.
+       This will be useful and used in Javanese.
+
+    The *intention* was to change zero-context from true to false for
+    scripts that
+    don't have old-vs-new specs.  However, checking the code, looks
+    like we
+    essentially change zero-context to always be true; ie. we only
+    changed things
+    for old-spec, and we broke them.  That's what causes this bug:
+
+      https://bugs.freedesktop.org/show_bug.cgi?id=76705
+
+    The root of the bug is here:
+
+      /* Use zero-context would_substitute() matching for new-spec of
+      the main
+       * Indic scripts, but not for old-spec or scripts with one spec
+       only. */
+      bool zero_context = indic_plan->config->has_old_spec ||
+      !indic_plan->is_old_spec;
+
+    Note that is_old_spec itself is:
+
+      indic_plan->is_old_spec = indic_plan->config->has_old_spec &&
+      ((plan->map.chosen_script[0] & 0x000000FF) != '2');
+
+    It's easy to show that zero_context is now always true.  What we
+    really meant was:
+
+      bool zero_context = indic_plan->config->has_old_spec &&
+      !indic_plan->is_old_spec;
+
+    Ie, "&&" instead of "||".  We made this change supposedly to make
+    Javanese
+    work.  But apparently we got it working regardless!  So I'm going
+    to fix this
+    to only change the logic for old-spec and not touch other cases.
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 66c6a48b6ce9dab6375ba1a23d7e450d6974852a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 14 15:55:42 2014 -0700
+
+    Add HB_NO_MERGE_CLUSTERS
+
+    Disables any cluster-merging.  Added for testing purposes while
+    we investigate what kind of API to add for this.
+
+ src/hb-buffer.cc | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 897c7b804d6817470a364ba31b1719555b12f751
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 10 16:27:13 2014 -0700
+
+    Add Khmer test for U+17DD
+
+ .../shaper-indic/south-east-asian/script-khmer/misc/other-marks.txt
+ | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 50a00535ccac538bbf93358fd2d2442e4c12542f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 10 16:03:29 2014 -0700
+
+    Require gobject-introspection 1.34.0
+
+    Fixes https://bugs.freedesktop.org/show_bug.cgi?id=75384
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 5fd996c4a4049a75c6d9e964f1a81c00ff191893
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 9 16:38:26 2014 -0700
+
+    Further adjust check-defs and check-symbols for mipsel
+
+    Fixes https://bugs.freedesktop.org/show_bug.cgi?id=74491
+
+ src/check-defs.sh    | 2 +-
+ src/check-symbols.sh | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit 75ec6d0bc5ca0170c73e4d1099a898d38d8f85c0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 9 16:33:32 2014 -0700
+
+    Tighten up check-static-inits.sh check
+
+    Fixes https://bugs.freedesktop.org/show_bug.cgi?id=74490
+
+ src/check-static-inits.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 110ec0714a11b9417eed82f7d25b85c9dc7b6df4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 8 17:32:08 2014 -0700
+
+    Typo
+
+ src/hb-blob.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 0682ddd05c22a400ff5ce97d4ea4b52a18b845ae
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 8 16:03:35 2014 -0700
+
+    [indic] Support U+17DD KHMER SIGN ATTHACAN
+
+    As requested by Martin Hosken on the list.
+
+ src/hb-ot-shape-complex-indic.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 05870ed62edd8728d6d732f60d6b7e149d45e6f4
+Author: Primiano Tucci <primiano@chromium.org>
+Date:  Wed Apr 2 11:35:27 2014 +0100
+
+    Use __aarch64__ for 64-bit ARM detection, not __arm64__
+
+    Many GCC versions don't define __arm64__
+
+ src/hb-atomic-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 04d894e89795041b2055dc172744a018644f2bca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Mar 25 12:11:32 2014 -0700
+
+    Minor
+
+ src/hb-ot-layout-gsubgpos-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 903648437c180c7b039801cdb0672e0f8e14afd4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Mar 24 14:26:36 2014 -0700
+
+    Start fleshing out builtin font functions
+
+ src/Makefile.am        |   3 +-
+ src/hb-glib.cc                 |   2 +-
+ src/hb-icu.cc          |   2 +-
+ src/hb-ot-font.cc      | 260
+ ++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-ot-font.h       |  41 ++++++++
+ src/hb-ot-hhea-table.hh |   2 +-
+ src/hb-ot-hmtx-table.hh |   2 +-
+ src/hb-ot.h            |   1 +
+ src/hb-tt-font.cc      |  77 --------------
+ util/Makefile.am       |   4 +-
+ util/options.cc        |   4 +
+ 11 files changed, 314 insertions(+), 84 deletions(-)
+
+commit 343a0e4e747d93eeeb724c5d585f5ba036a0df84
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Mar 21 14:37:27 2014 -0700
+
+    Add "make built-sources"
+
+ src/Makefile.am | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit e9853f33d1f53d4d69ee0fa340ce9225a5ed17ca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Mar 21 12:53:08 2014 -0700
+
+    One more fix for build without gtk-doc
+
+    Fixes https://github.com/behdad/harfbuzz/pull/35
+
+ autogen.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b96af03c20e46105982b3608b608614403540661
+Author: Konstantin Ritt <ritt.ks@gmail.com>
+Date:  Thu Mar 20 16:01:30 2014 +0200
+
+    Fix build with --coretext on iOS
+
+    On iOS CoreText and CoreGraphics are stand-alone frameworks
+
+ configure.ac     | 23 +++++++++++++++++++----
+ src/hb-coretext.h |  8 +++++++-
+ 2 files changed, 26 insertions(+), 5 deletions(-)
+
+commit ea5e8a02eb83ad19f3009b0008893f77ce113118
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 19 15:38:02 2014 -0700
+
+    [util] Plug minor leak
+
+ util/hb-shape.cc     |  6 +++---
+ util/helper-cairo.cc | 21 ++++++++++++---------
+ util/helper-cairo.hh |  2 +-
+ util/options.cc      |  6 +++++-
+ util/options.hh      |  6 +++---
+ 5 files changed, 24 insertions(+), 17 deletions(-)
+
+commit 09732cc6695b8e41ba6cdcd4058a4f7cad90167a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 19 12:00:17 2014 -0700
+
+    Remove dead warning
+
+ src/hb-unicode.cc |  9 +++++++--
+ src/hb-warning.cc | 11 -----------
+ 2 files changed, 7 insertions(+), 13 deletions(-)
+
+commit b934b0f9d1b39fc7a06c812bea3d79ca5424e278
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 19 11:52:40 2014 -0700
+
+    Yet another try to make build without gtk-doc succeed
+
+ autogen.sh                | 1 +
+ docs/reference/Makefile.am | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+commit a7a5be090dd9cc39605853e8994eb417550939d4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 19 11:39:23 2014 -0700
+
+    Another try to make gtk-doc optional
+
+ docs/reference/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ba8c9d92935ea351970a80d0d3441858ad4cf33f
+Author: Dominik Röttsches <dominik.rottsches@intel.com>
+Date:  Tue Mar 18 14:39:03 2014 +0200
+
+    0.9.27
+
+ NEWS        | 16 ++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 17 insertions(+), 1 deletion(-)
+
+commit a949cd329e49d2c0ad6f1e023f324790d886dafe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Mar 16 20:22:42 2014 -0700
+
+    Don't use "register" storage class specifier
+
+    Fixes warnings.
+    https://bugzilla.mozilla.org/show_bug.cgi?id=984081
+
+ src/hb-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 0082dbeae6c25a7859960b7e791a540ad04246d9
+Author: jfkthame <jfkthame@gmail.com>
+Date:  Sun Mar 16 08:25:17 2014 +0000
+
+    wrap definition of free_langs() with HAVE_ATEXIT
+
+    ...to avoid an unused function warning; see mozilla bug
+    https://bugzilla.mozilla.org/show_bug.cgi?id=984081.
+
+ src/hb-common.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit a9e25e90a4ca05746fda4a598ad698db1d2c5c1a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Mar 14 19:55:46 2014 -0700
+
+    [coretext] Add hb_coretext_face_create()
+
+    Not tested.
+
+ src/hb-coretext.cc | 57
+ +++++++++++++++++++++++++++++++++++++++++++++---------
+ src/hb-coretext.h  |  4 ++++
+ 2 files changed, 52 insertions(+), 9 deletions(-)
+
+commit c79865f90f62309dc64c8d3f2f503ec2aa4b7ec1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Mar 14 19:37:55 2014 -0400
+
+    [coretext] Add coretext_aat shaper
+
+    This is a higher-priority shaper than default shaper ("ot"), but
+    only picks up fonts that have AAT "morx"/"mort" table.
+
+    Note that for this to work the font face's get_table() implementation
+    should know how to return the full font blob.
+
+    Based on patch from Konstantin Ritt.
+
+ src/hb-coretext.cc    | 94
+ +++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-coretext.h     |  4 +++
+ src/hb-shaper-list.hh |  4 +++
+ 3 files changed, 102 insertions(+)
+
+commit af1aa362cacc652ab8ffda05a5d98a3ff5430439
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Mar 14 15:52:47 2014 -0700
+
+    If HAVE_ICU_BUILTIN is defined, use hb-icu Unicode callbacks
+
+    Useful for Android / Chrome / etc when ICU is built in the same
+    library as harfbuzz itself.
+
+ src/hb-unicode.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 853daf857f231c9ce0277a78abff1241150ea903
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Mar 14 15:49:18 2014 -0700
+
+    Remove old cruft
+
+ src/hb-shaper-list.hh | 6 ------
+ 1 file changed, 6 deletions(-)
+
+commit 2a473338da1538efa4ff14ae9e4aba8dd50f9b0f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Mar 10 15:04:46 2014 -0700
+
+    Add Myanmar test case from OpenType Myanmar spec
+
+ test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/MANIFEST  |
+ 1 +
+ .../shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/otspec.txt |
+ 2 ++
+ 2 files changed, 3 insertions(+)
+
+commit 158985908981189a2fd4d15275a641286fc770fe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Mar 10 14:57:55 2014 -0700
+
+    Minor
+
+ .../shaper-myanmar/script-myanmar/misc/MANIFEST    |  1 -
+ .../shaper-myanmar/script-myanmar/misc/torture.txt | 23
+ ----------------------
+ .../shaper-sea/script-tai-tham/misc/MANIFEST      |  1 +
+ .../shaper-sea/script-tai-tham/misc/torture.txt    | 23
+ ++++++++++++++++++++++
+ 4 files changed, 24 insertions(+), 24 deletions(-)
+
+commit bb8ffb581b89cf27fb8e0743b81bbda21654233e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Mar 4 13:03:51 2014 -0800
+
+    Use AM_MISSING_PROG for ragel and git
+
+ Makefile.am    | 4 ++--
+ configure.ac   | 2 ++
+ src/Makefile.am | 2 +-
+ 3 files changed, 5 insertions(+), 3 deletions(-)
+
+commit a82165248cddb720576464b8e59a986491d3f2e9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 18 15:53:56 2014 -0500
+
+    Only do fallback Hebrew composition if no GPOS 'mark' available
+
+    Apparently some modern fonts have proper GPOS mark positioning
+    tables, but undesirable precomposed forms! See thread
+    "Hebrew composition to presentation forms" and:
+
+      http://tex.stackexchange.com/questions/156775/having-trouble-with-vowel-positioning-in-ezra-sil-xelatex
+
+    Test case: U+fb1d,05d9,05b4
+
+ src/hb-ot-shape-complex-hebrew.cc | 2 +-
+ src/hb-ot-shape-private.hh       | 2 ++
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+commit b456d42bf68c4374f71f09867e375a51c7f2b3ed
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 11 17:29:40 2014 -0500
+
+    Allow bootstrapping without gtk-doc
+
+    Seems like configure.ac is already able to handle it.
+
+ autogen.sh | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit 1eacde00cc8c57a08fb74276e3530844ef463d67
+Author: Luis de Bethencourt <luis@debethencourt.com>
+Date:  Thu Feb 6 23:20:47 2014 -0500
+
+    check hb_set_is_emtpy in test-set.c
+
+ test/api/test-set.c | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+commit db068d81cda180a91638e5539984f8139aff49c6
+Author: Werner Lemberg <wl@gnu.org>
+Date:  Mon Feb 10 10:38:56 2014 -0500
+
+    typo in ucdn's Makefile.am
+
+ src/hb-ucdn/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit fbb2847f541389f40718af71c4945024ae177ab2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 5 08:22:06 2014 -0500
+
+    Improve MemoryBarrier() implementation
+
+    See thread "[HarfBuzz] compilation error of 0.9.26 with MinGW"
+    started by Werner.
+
+ src/hb-atomic-private.hh | 12 ++++++++----
+ 1 file changed, 8 insertions(+), 4 deletions(-)
+
+commit 189bf23bfc90405d8bdc70bf3d6d3ffec38b470c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 30 15:14:58 2014 -0500
+
+    0.9.26
+
+ NEWS        | 20 ++++++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 21 insertions(+), 1 deletion(-)
+
+commit 7691a154e50f8c8c77bbd94787686262955bf5d4
+Author: Jonathan Kew <jfkthame@gmail.com>
+Date:  Wed Jan 29 14:07:58 2014 +0000
+
+    Ensure hb_script_t can safely hold any hb_tag_t value it's given.
+
+    Fixes https://github.com/behdad/harfbuzz/pull/21
+
+ src/hb-common.h | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+commit c29993a181c2139eaec97b5f6225824040ca3ac9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jan 28 17:29:42 2014 -0500
+
+    [coretext] Handle surrogate pairs when generating notdef glyphs
+
+    Fixes github.com/behdad/harfbuzz/pull/19
+
+ src/hb-coretext.cc | 18 ++++++++++++++----
+ 1 file changed, 14 insertions(+), 4 deletions(-)
+
+commit 748b2782e4898420003a3bbc041dcccbe9e3edc2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jan 28 17:10:05 2014 -0500
+
+    [coretext] Minor optimization
+
+ src/hb-coretext.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 24e6b11f12788500182715a64d4771a22c5b7525
+Author: Konstantin Ritt <ritt.ks@gmail.com>
+Date:  Tue Jan 28 18:16:01 2014 +0200
+
+    Fix double destruction in case of OOM
+
+ src/hb-graphite2.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 083225916a19f6d67017523af87386933bd9ecdc
+Author: Konstantin Ritt <ritt.ks@gmail.com>
+Date:  Wed Jan 22 20:31:30 2014 +0200
+
+    Micro optimizations
+
+ src/hb-ot-layout-gpos-table.hh | 28 +++++++++++++++++-----------
+ 1 file changed, 17 insertions(+), 11 deletions(-)
+
+commit c9522de2335e4ef5fe65a72745c10943827a8da2
+Author: Konstantin Ritt <ritt.ks@gmail.com>
+Date:  Wed Jan 22 21:07:13 2014 +0200
+
+    Make it possible to disable the fallback shaper at configure time
+
+    The OT shaper supersedes the fallback shaper in every case
+    and the latter become an extra weight for 99.9% of users.
+
+ configure.ac         | 6 ++++++
+ src/Makefile.am       | 5 ++++-
+ src/hb-shaper-list.hh | 2 ++
+ 3 files changed, 12 insertions(+), 1 deletion(-)
+
+commit 6775da3a7c07db6c032cf429dc199d471948db56
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 23 14:18:49 2014 -0500
+
+    Fix clang warning 'private field 'xxx' is not used
+
+    Fixes https://github.com/behdad/harfbuzz/pull/16
+
+ src/hb-open-type-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 62299826f4905e080b9497bce335e093b287494e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 23 14:11:03 2014 -0500
+
+    Fix typo in _hb_buffer_serialize_glyphs_text()
+
+    Fixes https://github.com/behdad/harfbuzz/pull/17
+
+ src/hb-buffer-serialize.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ae23c24c32f474a34484ee78bc177ad31fa5e6d0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 22 11:03:02 2014 -0500
+
+    [arabic] Disable 'cswh' by default
+
+    I believe Windows 8 disables it, and spec update dated
+    Jan 2014 also clearly says it's disabled by default:
+
+      http://www.microsoft.com/typography/OpenTypeDev/arabic/intro.htm#features
+
+ src/hb-ot-shape-complex-arabic.cc | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 08cf5d75ef0c75095173dec822ccb07defaaa6c2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 22 07:53:55 2014 -0500
+
+    [ot] Don't try to compose if normalization is off
+
+ src/hb-ot-shape-normalize.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 0596343bfeb80ad6b19d459654edf7dfded6affe
+Merge: 62cb28d 83d7e79
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 22 04:43:51 2014 -0800
+
+    Merge pull request #13 from jfkthame/hangul-shaper
+
+    Tone-mark reordering and improved Old Hangul support
+
+commit 62cb28dfc668cae9cbff826229bde2271e157927
+Author: Jonathan Kew <jfkthame@gmail.com>
+Date:  Mon Jan 20 14:23:08 2014 +0000
+
+    fixup for 64-bit windows build
+
+ src/hb-uniscribe.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 83d7e7915a5eaa8ff4c7014c319844e7dffd8225
+Author: Jonathan Kew <jfkthame@gmail.com>
+Date:  Mon Jan 20 19:49:47 2014 +0000
+
+    [hangul] Fix ordering of dotted circle with Hangul tone mark (reported
+    by Dohyun Kim).
+
+ src/hb-ot-shape-complex-hangul.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit deef1862657d55b7ae8d45f4eecbe45c80785c4e
+Author: Jonathan Kew <jfkthame@gmail.com>
+Date:  Mon Jan 20 10:38:27 2014 +0000
+
+    [hangul] Don't force zero-width for marks - this is not wanted for
+    the Jamo Filler glyphs.
+
+ src/hb-ot-shape-complex-hangul.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 391934db0a171aeb2057ebcd4a38ed81621e7393
+Author: Jonathan Kew <jfkthame@gmail.com>
+Date:  Mon Jan 20 10:37:32 2014 +0000
+
+    [unicode] Exclude the Jamo Filler characters from Default_Ignorable,
+    as some fonts want these to be visible/spacing glyphs.
+
+ src/hb-unicode-private.hh | 15 +++++++--------
+ 1 file changed, 7 insertions(+), 8 deletions(-)
+
+commit 7244b3fc3bf9757dd094709d36bea68682264e20
+Author: Jonathan Kew <jfkthame@gmail.com>
+Date:  Mon Jan 20 10:35:51 2014 +0000
+
+    [hangul] Reorder Hangul tone mark to beginning of syllable, unless
+    font implements it using a zero-width glyph.
+
+ src/hb-ot-shape-complex-hangul.cc | 59
+ ++++++++++++++++++++++++++++++++++++++-
+ 1 file changed, 58 insertions(+), 1 deletion(-)
+
+commit 103436838df3a77552d3d33fc4bd80f09d9bf079
+Author: Jonathan Kew <jfkthame@gmail.com>
+Date:  Mon Jan 20 10:35:07 2014 +0000
+
+    [hangul] Apply the appropriate *jmo features to decomposed
+    syllables, including Old Hangul sequences that don't have Unicode
+    compositions. Merge clusters in decomposed syllables.
+
+ src/hb-ot-shape-complex-hangul.cc | 197
+ +++++++++++++++++++++++++++++++-------
+ 1 file changed, 165 insertions(+), 32 deletions(-)
+
+commit 8fc1f7fe74a25bf8549f5edd79c7da6b720eb064
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 2 17:04:04 2014 +0800
+
+    [ot/hangul] Don't decompose Hangul even when combining marks present
+
+    As discussed on
+    https://github.com/behdad/harfbuzz/pull/10#issuecomment-31442030
+
+ src/hb-ot-shape-complex-hangul.cc    |  2 +-
+ src/hb-ot-shape-normalize-private.hh |  1 +
+ src/hb-ot-shape-normalize.cc        | 24 +++++++++++++-----------
+ 3 files changed, 15 insertions(+), 12 deletions(-)
+
+commit 64426ec73a987bfe1e71a293ee195f268897e8d6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 2 14:33:10 2014 +0800
+
+    [ot] Simplify composing
+
+    Not tested.  Ouch.
+
+ src/hb-ot-shape-normalize.cc | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit 8de20b1e8a1c4d2081f64e695045e6e4da7ce144
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 2 14:30:45 2014 +0800
+
+    Add font->has_glyph()
+
+ src/hb-font-private.hh                   |  6 ++++++
+ src/hb-ot-shape-complex-hangul.cc | 14 ++++++--------
+ src/hb-ot-shape.cc               |  3 +--
+ 3 files changed, 13 insertions(+), 10 deletions(-)
+
+commit f6298e55ae0f0f23f66935226f78afb98320ea78
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 2 14:23:56 2014 +0800
+
+    [fallback] Minor
+
+ src/hb-fallback-shape.cc | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit 29ea403d67e29c2d531c1f613ce3d69e60f078f6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 2 14:20:00 2014 +0800
+
+    [hangul] Fix decomposition logic
+
+    Seems to be working now.
+
+ src/hb-ot-shape-complex-hangul.cc | 19 ++++++++-----------
+ 1 file changed, 8 insertions(+), 11 deletions(-)
+
+commit bdb20dafc3f737923da3dca0c832fdf4ab8daabc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 2 14:04:30 2014 +0800
+
+    [hangul] Fix decomposition
+
+    Part of https://github.com/behdad/harfbuzz/pull/10
+
+ src/hb-ot-shape-complex-hangul.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 32478656ce6e7926c3ad481511f02187ca743af6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 2 14:01:56 2014 +0800
+
+    [hangul] Tighten up character categories
+
+    I had tried to expand to fill the blocks, but that sounds wrong in
+    retrospect.
+
+ src/hb-ot-shape-complex-hangul.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit f14bb7de631b20e2868fb62e5311cd0d9e24bb49
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 31 16:49:15 2013 +0800
+
+    [ot] Separate out hebrew and tibetan shapers from default
+
+    Now default shaper is truly no-op.
+
+ src/Makefile.am                   |   2 +
+ src/hb-ot-shape-complex-default.cc | 161
+ +---------------------------------
+ src/hb-ot-shape-complex-hebrew.cc  | 172
+ +++++++++++++++++++++++++++++++++++++
+ src/hb-ot-shape-complex-private.hh |  17 +++-
+ src/hb-ot-shape-complex-tibetan.cc |  61 +++++++++++++
+ 5 files changed, 251 insertions(+), 162 deletions(-)
+
+commit 6300cd72539284ca294ee8286bbbb7f9c72af320
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 31 16:38:47 2013 +0800
+
+    [ot] Define HB_OT_SHAPE_ZERO_WIDTH_MARKS_DEFAULT
+
+ src/hb-ot-shape-complex-default.cc | 2 +-
+ src/hb-ot-shape-complex-hangul.cc  | 2 +-
+ src/hb-ot-shape-complex-private.hh | 4 +++-
+ src/hb-ot-shape-complex-thai.cc    | 2 +-
+ 4 files changed, 6 insertions(+), 4 deletions(-)
+
+commit 3d6ca0d32e5c6597acfcf59301cb1905586ddb52
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 31 16:04:35 2013 +0800
+
+    [ot] Simplify normalization_preference again
+
+    No shaper has more than one behavior re this, so no need for
+    a callback.
+
+ src/hb-ot-shape-complex-arabic.cc  | 2 +-
+ src/hb-ot-shape-complex-default.cc | 8 +-------
+ src/hb-ot-shape-complex-hangul.cc  | 2 +-
+ src/hb-ot-shape-complex-indic.cc   | 8 +-------
+ src/hb-ot-shape-complex-myanmar.cc | 9 +--------
+ src/hb-ot-shape-complex-private.hh | 7 +------
+ src/hb-ot-shape-complex-sea.cc     | 9 +--------
+ src/hb-ot-shape-complex-thai.cc    | 2 +-
+ src/hb-ot-shape-normalize.cc      | 4 +---
+ 9 files changed, 9 insertions(+), 42 deletions(-)
+
+commit c98b7183f7dc453d5bac1f2503017cded317a495
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 31 15:55:40 2013 +0800
+
+    [ot] Add Hangul shaper
+
+    Not exhaustively tested, but I think I got the intended logic
+    right.
+
+    The logic can perhaps be simplified.  Maybe we should disabled
+    normalization with this shaper.  Then again, for now focusing on
+    correctness.
+
+ src/Makefile.am                   |   1 +
+ src/hb-ot-shape-complex-default.cc |  13 ---
+ src/hb-ot-shape-complex-hangul.cc  | 232
+ +++++++++++++++++++++++++++++++++++++
+ src/hb-ot-shape-complex-private.hh |  10 +-
+ src/hb-private.hh                 |   6 +
+ 5 files changed, 240 insertions(+), 22 deletions(-)
+
+commit 15f67048e45853ad4069fd4334e132bc3db4d2c4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Dec 27 19:33:28 2013 -0500
+
+    Reorder Tai Tham SAKOT to ensure it comes after any tone marks
+
+ src/hb-unicode-private.hh | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+commit 3216e44feb7b97f44620b51e197425a80a41cdb7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 23 14:39:23 2013 -0500
+
+    [uniscribe] Fix scratch-buffer accounting
+
+ src/hb-uniscribe.cc | 15 ++++++++-------
+ 1 file changed, 8 insertions(+), 7 deletions(-)
+
+commit beeb12c9af4e0e66378cd36cf3dbb1560763a8e3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 22 22:53:27 2013 -0500
+
+    Add TODO item
+
+ src/hb-ot-shape.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit fbd4acc58a4bb501625b482bd318be9764ff8e02
+Author: Luis de Bethencourt <luis@debethencourt.com>
+Date:  Sun Dec 22 08:02:11 2013 -0500
+
+    Clean ht-ob headers
+
+ src/Makefile.am    |  1 +
+ src/hb-ot-layout.h |  5 -----
+ src/hb-ot-shape.h  | 53
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-ot.h       |  9 +--------
+ 4 files changed, 55 insertions(+), 13 deletions(-)
+
+commit 5497a8a274a7066c0230c850baadef681785c8bb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 22 20:48:53 2013 -0500
+
+    Cache various masks on the shape plan
+
+ src/hb-ot-shape-fallback.cc | 6 ++----
+ src/hb-ot-shape-private.hh  | 15 +++++++++++++++
+ src/hb-ot-shape.cc         | 26 +++++++-------------------
+ 3 files changed, 24 insertions(+), 23 deletions(-)
+
+commit 02f909664fa24a7ccf7cf73d75d1d3426aaaae7d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 22 19:35:27 2013 -0500
+
+    Minor correction to kern mask checking
+
+ src/hb-ot-shape-fallback.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit a7e8bbb080aef318b16750ca1771d0d3af3d0ae9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 22 19:33:35 2013 -0500
+
+    Minor fraction mask setting improvement
+
+ src/hb-ot-map-private.hh | 2 --
+ src/hb-ot-shape.cc      | 8 +++++---
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+commit 76fff252a96b4357b5e71694d5201daef822aa60
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 22 17:55:59 2013 -0500
+
+    Don't form fractions if only one of numr/dnom exist
+
+ src/hb-ot-shape.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 3aeee519f0b82df5263974945ae852badc4dbded
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 22 16:17:54 2013 -0500
+
+    Bug 72698 - Automatically support frac / numr / dnom
+
+    When seeing U+2044 FRACTION SLASH in the text, find decimal
+    digits (Unicode General Category Decimal_Number) around it,
+    and mark the pre-slash digits with 'numr' feature, the post-slash
+    digits with 'dnom' feature, and the whole sequence with 'frac'
+    feature.
+
+    This beautifully renders fractions with major Windows fonts,
+    and any other font that implements those features (numr/dnom is
+    enough for most fonts.)
+
+    Not the fastest way to do this, but good enough for a start.
+
+ src/hb-ot-shape.cc | 51
+ +++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 51 insertions(+)
+
+commit 014f369ec98fdbb3e7a2ef68aea2c4e017e7b680
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 22 16:15:30 2013 -0500
+
+    Add XXX note
+
+ src/hb-ot-map-private.hh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 739325178aba00ea5526c6a54ce588a79e5d45e2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Dec 21 00:18:18 2013 -0500
+
+    Initialize masks before mirroring
+
+    We were throwing away the rtlm feature mask set during
+    mirroring...
+
+ src/hb-ot-shape.cc | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+commit d507f6b5b7a052f4d0eb9ba4ec88fd2e3d6f64b4
+Author: Luis de Bethencourt <luis@debethencourt.com>
+Date:  Mon Dec 16 15:48:44 2013 -0500
+
+    Have Gtk-Doc ignore UCDN files
+
+ docs/reference/Makefile.am | 18 +++++++++---------
+ 1 file changed, 9 insertions(+), 9 deletions(-)
+
+commit d688475ea9cd236bc9b9e0153489fac0025f07f0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Dec 12 13:21:57 2013 -0500
+
+    Minor
+
+ util/options.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 2a8c49ade07a0bd4f2c9543f4bd129da82083ea0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 11 20:22:28 2013 -0500
+
+    Remove unnecessary includes
+
+ src/hb-blob.cc                              | 1 -
+ src/hb-buffer-private.hh            | 1 -
+ src/hb-common.cc                    | 2 --
+ src/hb-face-private.hh                      | 1 -
+ src/hb-face.cc                              | 1 -
+ src/hb-font-private.hh                      | 1 -
+ src/hb-font.cc                              | 1 -
+ src/hb-graphite2.cc                 | 2 --
+ src/hb-open-type-private.hh         | 2 --
+ src/hb-ot-layout-private.hh         | 2 --
+ src/hb-ot-shape-normalize-private.hh | 2 --
+ src/hb-ot-tag.cc                    | 1 -
+ src/hb-set-private.hh               | 1 -
+ src/hb-shape-plan-private.hh        | 1 -
+ src/hb-tt-font.cc                   | 2 --
+ src/hb-unicode-private.hh           | 2 --
+ 16 files changed, 23 deletions(-)
+
+commit 2646aec1e67cd6e09f5f7859c9d5898917acc2d5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Dec 5 18:19:35 2013 -0500
+
+    Drop required automake version back to 1.11.3
+
+    Work around broken automake-1.13 changes.
+
+ configure.ac            | 3 ++-
+ test/shaping/Makefile.am | 7 +++++++
+ 2 files changed, 9 insertions(+), 1 deletion(-)
+
+commit 860fc9aa7b4c49a1d50e64cfdf4d4dffadb7aa8f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 4 20:06:59 2013 -0500
+
+    0.9.25
+
+ NEWS        | 12 ++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 13 insertions(+), 1 deletion(-)
+
+commit adb039554de0c98a4121f26423bec8df09a62e61
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 4 20:10:02 2013 -0500
+
+    Minor
+
+ util/view-cairo.hh | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 95d18a7cab480712d8c95a587ac2a8fdcbec5e71
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 4 20:01:22 2013 -0500
+
+    [git.mk] Update
+
+ git.mk | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit d913f98d88098fc0f4163dfbc54d8ca9ebe9dd81
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 4 19:59:48 2013 -0500
+
+    Require automake 1.13
+
+    Fix tests build.
+
+    https://bugs.freedesktop.org/show_bug.cgi?id=71353
+
+ configure.ac            |  2 +-
+ test/shaping/Makefile.am | 19 ++++++++++++++-----
+ 2 files changed, 15 insertions(+), 6 deletions(-)
+
+commit 205bf834d80f81471f0c3da4f400e60ce3a533dc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 2 20:41:41 2013 -0500
+
+    Revert "Karen" language mapping back to what it was before
+
+    https://bugzilla.mozilla.org/show_bug.cgi?id=941470
+
+ src/hb-ot-tag.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit f47b9219546edcfdeb3991ee27f6d9ba455c3e08
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 2 05:57:27 2013 -0500
+
+    Fix unsafe shape_plan->face dependency
+
+ src/hb-ot-shape-private.hh   |  2 +-
+ src/hb-shape-plan-private.hh |  2 +-
+ src/hb-shape-plan.cc        | 12 +++---------
+ 3 files changed, 5 insertions(+), 11 deletions(-)
+
+commit c704a8700e169885f1d9cbab93544d85aa4358e9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 2 05:42:04 2013 -0500
+
+    [util] Fix uninitialized memory access
+
+ util/view-cairo.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 260a3198f44a4ece60864b6f6caab2ee756ad762
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 2 05:39:39 2013 -0500
+
+    [util] Plug leak
+
+ util/options.cc | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit ca8d96c8ba33ce581684cbc07936a3696b6c83d9
+Author: Jonathan Kew <jfkthame@gmail.com>
+Date:  Mon Dec 2 05:22:00 2013 -0500
+
+    cache shape plans even if (global) user features are set
+
+ src/hb-shape-plan-private.hh |  3 +++
+ src/hb-shape-plan.cc        | 59
+ ++++++++++++++++++++++++++++++++++++++++----
+ 2 files changed, 57 insertions(+), 5 deletions(-)
+
+commit 8ffa528f28a24ae85952ad1c1b0206e736bcfeab
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 2 05:17:14 2013 -0500
+
+    Add note about unsafe shape_plan->face
+
+    Will fix by removing shape_plan->face completely.
+
+ src/hb-shape-plan.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit aec468f01e866c99e65a8f764a792c74c96840d7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 29 19:21:58 2013 -0500
+
+    [coretext] Add TODO
+
+ src/hb-coretext.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 58cc233e8b5fdc9dce603acc1b968540a2dea3e1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 29 19:17:42 2013 -0500
+
+    [coretext] Cleanup
+
+ src/hb-coretext.cc | 27 ++++++++++++++++-----------
+ 1 file changed, 16 insertions(+), 11 deletions(-)
+
+commit c8213c6198abff97822e29a6d565722cfbb43832
+Author: Khaled Hosny <khaledhosny.eglug.org>
+Date:  Fri Nov 29 19:01:56 2013 -0500
+
+    [coretext] Avoid font fallback with CoreText shaper
+
+    CoreText does automatic font fallback (AKA "cascading") for
+    characters
+    not supported by the requested font, and provides no way to turn
+    it off,
+    so detect if the returned run uses a font other than the requested one
+    and fill in the buffer with .notdef glyphs instead of random indices
+    glyph from a different font.
+
+ src/hb-coretext.cc | 35 +++++++++++++++++++++++++++++++++++
+ 1 file changed, 35 insertions(+)
+
+commit 63bae73aefb0e5988ef6975f1ed38e040e50e91d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 26 22:57:24 2013 -0500
+
+    [fallback] Add TODO note
+
+ src/hb-fallback-shape.cc | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+commit e1ebf01d0cf3df55bb9137136e2d0c9630e7bd78
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 26 18:00:35 2013 -0500
+
+    Minor
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit a182dbc9e4e51fa7990c4aea3eaa425a061b29c7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 26 17:53:41 2013 -0500
+
+    Minor
+
+ src/hb-ot-layout-common-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 9174a9db5c4e01284143ed8bd318ce9454535987
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 25 18:10:38 2013 -0500
+
+    [myanmar] Allow punctuation clusters
+
+    The spec and Uniscribe don't allow these, but UTN#11
+    specifically says the sequence U+104B,U+1038 is valid.
+    As such, allow all "P V" sequences.  There's about
+    eight sequences that match that structure, but Roozbeh
+    thinks it's fine to allow all of them.
+
+    Test case: U+104B, U+1038
+
+    https://bugs.freedesktop.org/show_bug.cgi?id=71947
+
+ src/hb-ot-shape-complex-myanmar-machine.rl |  3 +++
+ src/hb-ot-shape-complex-myanmar.cc        | 19 ++++++++++++++++++-
+ 2 files changed, 21 insertions(+), 1 deletion(-)
+
+commit 096b71e8ef0c1443f3f86069d5416b887af6e9e7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 25 18:03:34 2013 -0500
+
+    [myanmar] Mark U+104E MYANMAR SYMBOL AFOREMENTIONED as Consonant
+
+    The spec and Uniscribe treat it as consonant in the grammar, but
+    it's not in IndicSyllableCategory.txt, so fix up.
+
+    Test sequence: U+1004,U+103A,U+1039,U+104E
+
+    https://bugs.freedesktop.org/show_bug.cgi?id=71948
+
+ src/hb-ot-shape-complex-myanmar.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit d2da5e0b4b4ffc1722403ffb90b8777cfa1cd174
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 25 17:50:07 2013 -0500
+
+    [myanmar] Relax pwo-tone group a bit
+
+    This is broken sequence according to OpenType spec, Uniscribe,
+    and current HarfBuzz implementation.  But Roozbeh says this
+    is a valid sequence, so allow it.  There are multiple
+    "(DB As?)?" constructs in the grammar, but Roozbeh thinks only
+    this one needs changing.
+
+    Test case: 1014,1063,103A
+
+    Fixes https://bugs.freedesktop.org/show_bug.cgi?id=71949
+
+ src/hb-ot-shape-complex-myanmar-machine.rl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 9af91ca8ffee4a8d2804eff5d380b4f9749414d1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 25 17:47:19 2013 -0500
+
+    Add more Myanmar test cases
+
+    All three are broken right now according to Roozbeh.
+
+    https://bugs.freedesktop.org/show_bug.cgi?id=71947
+    https://bugs.freedesktop.org/show_bug.cgi?id=71948
+    https://bugs.freedesktop.org/show_bug.cgi?id=71949
+
+ .../shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/misc.txt |
+ 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 08c2d27d35093e07142168665139274ac99395e8
+Author: Roozbeh Pournader <roozbeh@google.com>
+Date:  Sat Nov 23 21:39:31 2013 -0800
+
+    Added support for several new languages
+
+    Based on research into latest SIL and Windows fonts, pulling in
+    the latest OpenType language tag proposal from Microsoft, and updating
+    to latest language tags and names from ISO 639.
+
+ src/hb-ot-tag.cc | 314
+ +++++++++++++++++++++++++++++++++++++++++++------------
+ 1 file changed, 247 insertions(+), 67 deletions(-)
+
+commit 05511acd198d0c2157cdb41e1d36eac0b8075357
+Author: Roozbeh Pournader <roozbeh@google.com>
+Date:  Sat Nov 23 15:19:07 2013 -0800
+
+    Added language tags for S'gaw Karen and Khamti
+
+    Tags based on support in Windows 8.1's 'Myanmar Text' font.
+
+ src/hb-ot-tag.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 0bb31e4497523442fbb26bbd55b194ab70205ca4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 20 14:21:07 2013 -0500
+
+    Bug 71845 - Use 64-bit cmpexch on ARM64 iOS
+
+ src/hb-atomic-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 02c6c8cd6e8c93b63c75b25de6bf76bb45755bb4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 15 13:05:38 2013 -0500
+
+    Set buffer content type to INVALID in hb_buffer_set_length(0)
+
+    Previously we were only setting this in hb_buffer_clear_contents(),
+    but set_length(0) is a valid way to reinitialize buffer to use with
+    new text.
+
+ src/hb-buffer-private.hh | 2 +-
+ src/hb-buffer.cc        | 3 +++
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+commit 6300694f6e531593e7e932000f9540b0367940b8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 13 14:54:07 2013 -0500
+
+    0.9.24
+
+ NEWS        | 8 ++++++++
+ configure.ac | 2 +-
+ 2 files changed, 9 insertions(+), 1 deletion(-)
+
+commit 061cb4649342b005fb1de93abae25e889cc560bd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 13 14:50:25 2013 -0500
+
+    Use long alignment for scratch buffer
+
+    Fixes last of scratch alignment warnings in hb-coretext.
+
+ src/hb-buffer-private.hh | 2 +-
+ src/hb-buffer.cc        | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+commit 68c372ed2eac76a6d347811293fe2ba2fd6a1eed
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 13 14:44:01 2013 -0500
+
+    More scratch-buffer cleanup
+
+ src/hb-buffer-private.hh |  3 ++-
+ src/hb-buffer.cc        | 10 +++++-----
+ src/hb-coretext.cc      |  5 ++---
+ src/hb-graphite2.cc     |  2 +-
+ src/hb-uniscribe.cc     | 30 ++++++++++++++----------------
+ 5 files changed, 24 insertions(+), 26 deletions(-)
+
+commit 8fcadb9cf9418345610e3f4e38c28c12b768b589
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 13 14:33:57 2013 -0500
+
+    [coretext] More scratch buffer fixes
+
+ src/hb-coretext.cc | 25 +++++++++++++------------
+ 1 file changed, 13 insertions(+), 12 deletions(-)
+
+commit 16f175cb2e081e605fe7f9cd01bbe8c24380278a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 12 17:22:49 2013 -0500
+
+    Fix scratch-buffer alignment warnings
+
+ src/hb-buffer-private.hh |  2 +-
+ src/hb-buffer.cc        |  9 +++++----
+ src/hb-coretext.cc      | 17 ++++++++++-------
+ src/hb-graphite2.cc     | 28 +++++++++++++++++-----------
+ src/hb-private.hh       |  3 +++
+ src/hb-uniscribe.cc     | 29 +++++++++++++++++------------
+ 6 files changed, 53 insertions(+), 35 deletions(-)
+
+commit c7c4ccf8a1e784b6f8798388a219dda9a26fbd93
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 12 15:41:22 2013 -0500
+
+    [travis] Enable graphite2
+
+ .travis.yml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 83408cf804a6908873c41b70bb7c43448e66ddd2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 6 14:46:04 2013 -0500
+
+    Fix llvm warnings on Mac
+
+    Patch from Scott Fleischman.  Warnings were:
+
+    harfbuzz/src/hb-font-private.hh:121:42: Implicit conversion loses
+    integer precision: 'long long' to 'hb_position_t' (aka 'int')
+    harfbuzz/src/hb-font-private.hh:126:42: Implicit conversion loses
+    integer precision: 'long long' to 'hb_position_t' (aka 'int')
+    harfbuzz/src/hb-font-private.hh:400:85: Implicit conversion loses
+    integer precision: 'long long' to 'hb_position_t' (aka 'int')
+    harfbuzz/src/hb-ot-layout-common-private.hh:1115:37: Implicit
+    conversion
+    loses integer precision: 'long long' to 'int'
+    harfbuzz/src/hb-ft.cc:421:97: Implicit conversion loses integer
+    precision: 'unsigned long long' to 'int'
+    harfbuzz/src/hb-ft.cc:422:97: Implicit conversion loses integer
+    precision: 'unsigned long long' to 'int'
+
+ src/hb-font-private.hh                    | 6 +++---
+ src/hb-ft.cc                      | 4 ++--
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 3 files changed, 6 insertions(+), 6 deletions(-)
+
+commit 333cc6e2d11831bcd2370723456e678574d570ec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 30 17:30:11 2013 +0000
+
+    [otlayout] Remove unused is_inplace()
+
+    Patch from Jonathan Kew.
+
+ src/hb-ot-layout-gpos-table.hh       |   6 --
+ src/hb-ot-layout-gsub-table.hh       |  56 ------------
+ src/hb-ot-layout-gsubgpos-private.hh | 159
+ -----------------------------------
+ 3 files changed, 221 deletions(-)
+
+commit 176fd17d02ac183af32a0e710ec32d25c9322021
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 30 17:27:24 2013 +0000
+
+    Bug 70971 - Signed/unsigned compiler warnings on windows
+
+    Patch from Emil Eklund.
+
+ src/hb-buffer-serialize.cc | 8 ++++----
+ src/hb-ot-map.cc          | 2 +-
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+commit 3d436d325edccc0f3dd820e06e3d529cc8f3eca4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 28 21:00:37 2013 +0100
+
+    [otlayout] Reset ccc when marking glyph as letter
+
+ src/hb-ot-layout-gsubgpos-private.hh | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit b9d0077ac1a8e8a62ee15c64ad302f7976e23bdd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 28 20:44:03 2013 +0100
+
+    Fix win32 testing
+
+ test/shaping/Makefile.am  | 1 +
+ test/shaping/run-tests.sh | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+commit dce79c2bd747d398bdf2f4b171b0ba9b5b951f72
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 28 20:26:40 2013 +0100
+
+    0.9.23
+
+ NEWS        | 10 ++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+commit 2e990a3d722c10d1eefdc4c5ccbdaa384625c3fd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 28 20:23:07 2013 +0100
+
+    Make "make distcheck" happy
+
+ configure.ac            | 2 +-
+ test/shaping/Makefile.am | 3 +++
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+commit 6ffc007b61402c9d1d4de368deed4971a10ed00b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 28 19:26:02 2013 +0100
+
+    [otlayout] Optimize inplace
+
+    See thread started by Jonathan with subject "an optimization for
+    complex
+    fonts".
+
+ src/hb-ot-layout.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 71b4c999a511bf018acaf48a45e070470c0daf12
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 28 00:20:59 2013 +0100
+
+    Revert "Zero marks by GDEF for Tibetan"
+
+    This reverts commit d5bd0590ae2fbc7b0dee86385a565aef00ffb835.
+
+    The reasoning behind that logic was flawed and made under
+    a misunderstanding of the original problem, and caused
+    regressions as reported by Jonathan Kew in thread titled
+    "tibetan marks" in Oct 2013.  Apparently I have had fixed
+    the original problem with this commit:
+
+      7e08f1258da229dfaf7e1c4b5c41e5bb83906cb0
+
+    So, revert the faulty commit and everything seems to be in good
+    shape.
+
+ src/hb-ot-layout-gsubgpos-private.hh |  4 ++--
+ src/hb-ot-shape-complex-arabic.cc    | 10 +++-------
+ src/hb-ot-shape-complex-default.cc   | 17 +----------------
+ src/hb-ot-shape-complex-indic.cc     |  8 +-------
+ src/hb-ot-shape-complex-myanmar.cc   | 15 +++++----------
+ src/hb-ot-shape-complex-private.hh   |  8 ++------
+ src/hb-ot-shape-complex-sea.cc       | 14 ++++----------
+ src/hb-ot-shape-complex-thai.cc      |  9 +--------
+ src/hb-ot-shape.cc                  |  4 ++--
+ 9 files changed, 21 insertions(+), 68 deletions(-)
+
+commit 9596b2bf569dae6fbe268803e3cb248001f10954
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 28 00:09:05 2013 +0100
+
+    Pass CPPFLAGS=-Werror to Travis-CI
+
+    We want default gcc / clang warnings to fail the CI build.
+
+ .travis.yml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit c77d1ade6898cea161f0709c5c5a912e14aff951
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Oct 27 23:52:26 2013 +0100
+
+    Fix warnings
+
+ test/api/test-blob.c     | 2 +-
+ util/helper-cairo-ansi.cc | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit c2bc818706df56022c8bb922df2b741cb120f7e4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Oct 27 23:36:35 2013 +0100
+
+    Work with old and new glib
+
+    Avoids "deprecated" warnings.
+
+ src/test-buffer-serialize.cc | 7 +++++--
+ src/test-size-params.cc      | 7 +++++--
+ src/test-would-substitute.cc | 7 +++++--
+ src/test.cc                 | 7 +++++--
+ util/options.cc             | 4 ++--
+ util/options.hh             | 4 ++++
+ util/view-cairo.hh          | 4 ++++
+ 7 files changed, 30 insertions(+), 10 deletions(-)
+
+commit 46a863d91dbcc9a4c796e3715ea3828939f4d941
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Oct 27 23:24:50 2013 +0100
+
+    [indic] Adjust pref reordering logic
+
+    For Javanese (pref_len == 1) only reorder if it didn't ligate.  That's
+    sensible, and what the spec says.  For other Indic (pref_len > 1)
+    only reorder if ligated.
+
+    Doesn't change any test numbers.
+
+ src/hb-ot-shape-complex-indic.cc | 9 +++++++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
+
+commit 6b03e3c724ec6cd255f4a323bf4aa7d8c93a056e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Oct 27 21:04:55 2013 +0100
+
+    Optimize fallback kerning
+
+    Patch from Jonathan Kew.  "These changes seem to yield a small but
+    just-about-measurable improvement with old fonts that lack GPOS
+    kerning."
+
+ src/hb-ot-shape-fallback.cc | 47
+ ++++++++++++++++++++++++++++-----------------
+ 1 file changed, 29 insertions(+), 18 deletions(-)
+
+commit 133eeba6a32769ec1a7520e7c8a0d2eb1ad986f8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Oct 27 00:24:59 2013 +0200
+
+    Minor
+
+    See:
+    https://github.com/prezi/harfbuzz-js/pull/1/files#r7032397
+
+ src/hb-common.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit a74f0de225c403998212e2618dcf9452bc5b590d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 24 11:46:33 2013 +0200
+
+    [indic] Fix CM2, really
+
+    Followup from 6e613f3365bf4e9fd778758c53e7de00c64beca1.
+
+ src/hb-ot-shape-complex-indic-machine.rl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 6e613f3365bf4e9fd778758c53e7de00c64beca1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 23 23:34:13 2013 +0200
+
+    Fix "shift count >= width of type" issue
+
+ src/hb-ot-shape-complex-indic-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ac8cd511911c7dca6222d14fa758bff75d601567
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 19:33:09 2013 +0200
+
+    Refactor
+
+ src/hb-ot-layout-gpos-table.hh | 120
+ ++++++++++++++++++++++-------------------
+ src/hb-ot-layout.cc           |  31 +++++------
+ src/hb-ot-shape-normalize.cc  |  29 +++++-----
+ src/hb-ot-shape.cc            |  82 ++++++++++++++++------------
+ 4 files changed, 145 insertions(+), 117 deletions(-)
+
+commit 0f3fe37fccfb540437adf13dd580f2c5164a0b1f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 19:14:22 2013 +0200
+
+    Comment
+
+ src/hb-ot-layout-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit ddce2d8df6fed9c033f1f13e235666680c5beb67
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 18:07:11 2013 +0200
+
+    [indic] Improve positioning of post-base bells and whistles
+
+    Bug 58714 - Kannada u+0cb0 u+200d u+0ccd u+0c95 u+0cbe does not
+    provide
+    same results as Windows8
+    https://bugs.freedesktop.org/show_bug.cgi?id=58714
+
+    Test with U+0CB0,U+200D,U+0CCD,U+0C95,U+0CBF and tunga.ttf.
+
+    Improves some scripts.  Improves Bengali too, but numbers
+    are up because we produce better results than Uniscribe for some
+    sequences now.
+
+    New numbers:
+    BENGALI: 353724 out of 354188 tests passed. 464 failed (0.131004%)
+    DEVANAGARI: 707307 out of 707394 tests passed. 87 failed (0.0122987%)
+    GUJARATI: 366349 out of 366457 tests passed. 108 failed (0.0294714%)
+    GURMUKHI: 60732 out of 60747 tests passed. 15 failed (0.0246926%)
+    KANNADA: 951190 out of 951913 tests passed. 723 failed (0.0759523%)
+    KHMER: 299070 out of 299124 tests passed. 54 failed (0.0180527%)
+    MALAYALAM: 1048140 out of 1048334 tests passed. 194 failed
+    (0.0185056%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271662 out of 271847 tests passed. 185 failed (0.068053%)
+    TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%)
+    TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
+
+ src/hb-ot-shape-complex-indic.cc | 19 ++++++++++---------
+ 1 file changed, 10 insertions(+), 9 deletions(-)
+
+commit d5bd0590ae2fbc7b0dee86385a565aef00ffb835
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 16:44:54 2013 +0200
+
+    Zero marks by GDEF for Tibetan
+
+    See:
+    http://lists.freedesktop.org/archives/harfbuzz/2013-April/003101.html
+
+ src/hb-ot-layout-gsubgpos-private.hh |  4 ++--
+ src/hb-ot-shape-complex-arabic.cc    | 10 +++++++---
+ src/hb-ot-shape-complex-default.cc   | 17 ++++++++++++++++-
+ src/hb-ot-shape-complex-indic.cc     |  8 +++++++-
+ src/hb-ot-shape-complex-myanmar.cc   | 15 ++++++++++-----
+ src/hb-ot-shape-complex-private.hh   |  8 ++++++--
+ src/hb-ot-shape-complex-sea.cc       | 14 ++++++++++----
+ src/hb-ot-shape-complex-thai.cc      |  9 ++++++++-
+ src/hb-ot-shape.cc                  |  4 ++--
+ 9 files changed, 68 insertions(+), 21 deletions(-)
+
+commit bf029281b1b0f854f671969ab40eac3046a111bd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 16:20:13 2013 +0200
+
+    Bug 65258 - [...] Mongolian with free variation selector
+
+ src/hb-ot-shape-complex-arabic.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 0193649ce4ca78b8e2835a50bd51ee594cffe34e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 16:08:53 2013 +0200
+
+    [otfallback] Don't shift down above-marks too much
+
+    This seems to generate much better, almost-perfect, positioning for
+    Arabic as well as Latin above marks.
+
+ src/hb-ot-shape-fallback.cc | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+commit dba9580237da788275b1ab5fe6be75c8a3f359b9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 15:57:36 2013 +0200
+
+    [otfallback] Never fallback-position a below-mark upwards
+
+    Test with WinXP times.ttf and U+05D9,U+05B5.
+
+ src/hb-ot-shape-fallback.cc | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+commit 8177da29ad07d8fa444ce07003fa65cd31a2776b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 15:50:29 2013 +0200
+
+    Minor
+
+ src/hb-ot-shape-fallback.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit c16012e9019ec59c2200a3cc29b8a37ea70eda70
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 02:27:00 2013 +0200
+
+    [indic] Add Javanese support!
+
+    Seems to be working just fine!
+
+ src/hb-ot-shape-complex-indic-machine.rl | 14 ++++++------
+ src/hb-ot-shape-complex-indic-private.hh | 37
+ ++++++++++++++++----------------
+ src/hb-ot-shape-complex-indic.cc        |  9 ++++++--
+ 3 files changed, 34 insertions(+), 26 deletions(-)
+
+commit 755b44cce6dc23376a3cf0212893609231fa4967
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 11:17:42 2013 +0200
+
+    [ft] Round metrics instead of truncate
+
+    Lohit-Punjabi has a upem of 769!  We were losing one unit in our
+    code, and FreeType is losing another one...  Test with U+0A06.
+    Has an advance of 854 in the font. We were producing 852.
+    Now we do 853, which is what FreeType is telling us.
+
+ src/hb-ft.cc | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 9a49351cc2625de16a73e0e153d3097ef6c7cc0f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 02:14:53 2013 +0200
+
+    [indic] Swith pref logic to use _hb_glyph_info_substituted()
+
+    See comments from caveat!  Seems to work fine.
+
+    This is useful for Javanese which has an atomically encoded pre-base
+    reordering Ra which should only be reordered if it was substituted
+    by the pref feature.
+
+ src/hb-ot-shape-complex-indic.cc | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit f175aa33c5e94397c60648ac0697c80f5fe0dcb7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 02:07:44 2013 +0200
+
+    [indic] Fix compiler warnings
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 857027341423f15fd6084c7563cc355b06e7cbdd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 01:11:05 2013 +0200
+
+    [otlayout] Add _hb_glyph_info_substituted()
+
+    Currently unused.
+
+ src/hb-ot-layout-private.hh | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+commit a1f7b2856184959e965c9c2b80363f9f46d486a7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 01:09:08 2013 +0200
+
+    [otlayout] Switch over from old is_a_ligature() to IS_LIGATED
+
+    Impact should be minimal and positive.
+
+ src/hb-ot-layout-gsubgpos-private.hh |  2 +-
+ src/hb-ot-layout-private.hh         | 12 +++++++++---
+ src/hb-ot-shape-complex-indic.cc     |  4 ++--
+ src/hb-ot-shape-complex-myanmar.cc   |  2 +-
+ src/hb-ot-shape.cc                  |  2 +-
+ 5 files changed, 14 insertions(+), 8 deletions(-)
+
+commit 09675a8115b9d77261c33940401aa919cede8662
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 01:05:58 2013 +0200
+
+    [otlayout] Add HB_OT_LAYOUT_GLYPH_PROPS_LIGATED
+
+    Currently unused.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 15 ++++++++++-----
+ src/hb-ot-layout-private.hh         |  5 ++++-
+ 2 files changed, 14 insertions(+), 6 deletions(-)
+
+commit 05ad6b50ac0a1b9a8da10d2ee2238068b7811e7d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 00:45:59 2013 +0200
+
+    [otlayout] Add HB_OT_LAYOUT_GLYPH_PROPS_SUBSTITUTED
+
+    Currently unused.
+
+ src/hb-ot-layout-gsubgpos-private.hh |  5 +++--
+ src/hb-ot-layout-private.hh         | 10 ++++++----
+ 2 files changed, 9 insertions(+), 6 deletions(-)
+
+commit 101303dbf7cf15d044bf2518f14b3aec65970fea
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 00:42:39 2013 +0200
+
+    [otlayout] More shuffling around
+
+ src/hb-ot-layout-gpos-table.hh       | 16 +++----
+ src/hb-ot-layout-gsub-table.hh       | 13 +++--
+ src/hb-ot-layout-gsubgpos-private.hh |  8 ++--
+ src/hb-ot-layout-private.hh         | 92
+ ++++++++++++++++++++++++++++++++----
+ src/hb-ot-shape.cc                  |  8 ++--
+ 5 files changed, 102 insertions(+), 35 deletions(-)
+
+commit 91689de2603e4151e2a2d3a3852c61667f0c6264
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 00:21:59 2013 +0200
+
+    [otlayout] Add _hb_glyph_info_set_glyph_props()
+
+    No functional change.
+
+ src/hb-ot-layout-gsub-table.hh       | 2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 4 ++--
+ src/hb-ot-layout-private.hh         | 9 +++++++++
+ src/hb-ot-shape.cc                  | 8 +++++---
+ 4 files changed, 17 insertions(+), 6 deletions(-)
+
+commit a0161746589934e93c3b115814bbd81f56ab962f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 00:06:30 2013 +0200
+
+    [otlayout] Simplify set_class() usage
+
+ src/hb-ot-layout-gsubgpos-private.hh | 31 ++++++++++++++++++-------------
+ 1 file changed, 18 insertions(+), 13 deletions(-)
+
+commit 3ddf892b5328b74afb6e7d9da727d8771ca5d288
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 18 00:02:43 2013 +0200
+
+    [otlayout] Renaming
+
+ src/hb-ot-layout-gpos-table.hh       | 18 +++++++-------
+ src/hb-ot-layout-gsub-table.hh       |  2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 36 +++++++++++++--------------
+ src/hb-ot-layout-private.hh         | 48
+ +++++++++++++++++++++---------------
+ src/hb-ot-shape-complex-indic.cc     |  5 ++--
+ src/hb-ot-shape-complex-myanmar.cc   |  2 +-
+ src/hb-ot-shape-fallback.cc         |  8 +++---
+ src/hb-ot-shape.cc                  |  2 +-
+ 8 files changed, 65 insertions(+), 56 deletions(-)
+
+commit 2e96d2c6ee34142375373be07217c9953e7822cc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 21:16:20 2013 +0200
+
+    [otlayout] More shuffling
+
+ src/hb-ot-layout-private.hh | 252
+ +++++++++++++++++++++++---------------------
+ 1 file changed, 130 insertions(+), 122 deletions(-)
+
+commit 469524692bd0a258b28e63294c984e677a9c2477
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 21:01:57 2013 +0200
+
+    [otlayout] Code shuffling
+
+ src/hb-ot-layout-private.hh | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+commit 11fb16cb849285a178d9e80991b1d60a960326ee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 20:57:57 2013 +0200
+
+    Use unsigned enums for mask types
+
+ src/hb-buffer.h            | 16 ++++++++--------
+ src/hb-ot-layout-private.hh | 8 ++++----
+ 2 files changed, 12 insertions(+), 12 deletions(-)
+
+commit 03058c3d1e8c18858c1e0b0c738ce9d299f2787a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 20:55:34 2013 +0200
+
+    [otlayout] Remove two unused HB_OT_LAYOUT_GLYPH_PROPS_* values
+
+ src/hb-ot-layout-gdef-table.hh | 1 -
+ src/hb-ot-layout-gsub-table.hh | 3 ++-
+ src/hb-ot-layout-private.hh   | 7 +++++--
+ 3 files changed, 7 insertions(+), 4 deletions(-)
+
+commit 941b6992042e7b73b3a2aab1448383adf33bef28
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 20:47:33 2013 +0200
+
+    [otlayout] Remove unused HB_OT_LAYOUT_GLYPH_PROPS_UNCLASSIFIED
+
+ src/hb-ot-layout-gdef-table.hh |  7 +++++--
+ src/hb-ot-layout-private.hh   | 10 ++++------
+ 2 files changed, 9 insertions(+), 8 deletions(-)
+
+commit 8f9ec92dfce5c469fb85ad301296b5dde1b2ab0a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 19:52:47 2013 +0200
+
+    [indic] Adjust Javanese base algorithm
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 49901862e36e1c153835877a9f1183729333bbbe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 19:48:51 2013 +0200
+
+    [otlayout] Guard against use of ReverseChain through Context
+
+ src/hb-ot-layout-gsub-table.hh | 4 +++-
+ src/hb-ot-layout.cc           | 4 ++--
+ 2 files changed, 5 insertions(+), 3 deletions(-)
+
+commit 74f4bbf0560a5fd2d295e100e96f0c6c7033e852
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 19:07:53 2013 +0200
+
+    [indic] Towards supporting atomicly-encoded prebase-reorderings
+
+ src/hb-ot-shape-complex-indic.cc | 65
+ ++++++++++++++++++++++++----------------
+ 1 file changed, 40 insertions(+), 25 deletions(-)
+
+commit efed40b975110d78c9c505441e7e17a8c13e85c8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 18:50:11 2013 +0200
+
+    [indic] Minor refactoring of reph handling
+
+ src/hb-ot-shape-complex-indic.cc | 14 ++++++++------
+ src/hb-ot-shape-complex-sea.cc   |  2 +-
+ 2 files changed, 9 insertions(+), 7 deletions(-)
+
+commit 684fe59ff858a0ecba71b3ed80378afb0b8bbb48
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 18:30:06 2013 +0200
+
+    [indic] Minor refactoring of would_substitute()
+
+ src/hb-ot-shape-complex-indic.cc | 19 ++++++++++---------
+ 1 file changed, 10 insertions(+), 9 deletions(-)
+
+commit 321df83fb4f0b8a5310888129cb70bfda8ae0c96
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 18:16:14 2013 +0200
+
+    Route Buginese through the SEA shaper
+
+    Both Indic and SEA seem to do it just fine, but SEA is much
+    simpler.
+
+ src/hb-ot-shape-complex-private.hh | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+commit b5a0f69e47ace468b06e21cf069a18ddcfcf6064
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 18:04:23 2013 +0200
+
+    [indic] Pass zero-context=false to would_substitute for newer scripts
+
+    For scripts without an old/new spec distinction, use
+    zero-context=false.
+    This changes behavior in Sinhala / Khmer, but doesn't seem to regress.
+    This will be useful and used in Javanese.
+
+ src/hb-ot-shape-complex-indic.cc | 35 +++++++++++++++++++----------------
+ 1 file changed, 19 insertions(+), 16 deletions(-)
+
+commit c4e71ff36d1f86a6ea56539728a964d97217e2b6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 17:04:47 2013 +0200
+
+    [indic] Clean up Khmer and Sinhala base finding algorithm
+
+ src/hb-ot-shape-complex-indic.cc | 24 +++++++++++-------------
+ 1 file changed, 11 insertions(+), 13 deletions(-)
+
+commit e10453e6fb2544724ccd7ddfdbb9de90ef9274ce
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 16:49:06 2013 +0200
+
+    [indic] Add BASE_POS_LAST_SINHALA
+
+    Previously we planted this into the mode used for Khmer.  There's not
+    really much in common between the two, so separate again.
+
+ src/hb-ot-shape-complex-indic.cc | 21 +++++++++++++++++++--
+ 1 file changed, 19 insertions(+), 2 deletions(-)
+
+commit 9ac6b01e0cd8e2d66dfc727157f45b615bc77109
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 16:27:38 2013 +0200
+
+    [indic] Adjust Sinhala cluster merging under uniscribe
+
+    Similar to 190c8f2b60af0851bf692f653c1604cfbf0561a5 but for
+    Sinhala.
+
+ src/hb-ot-shape-complex-indic.cc | 23 ++++++++++++++++-------
+ 1 file changed, 16 insertions(+), 7 deletions(-)
+
+commit 3c3df9cba13fec2c35e0e7ae587d9699ac0c37f5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 13:58:31 2013 +0200
+
+    [otlayout] Minor
+
+ src/hb-ot-layout-gsubgpos-private.hh | 62
+ +++++++++++++++++++-----------------
+ 1 file changed, 33 insertions(+), 29 deletions(-)
+
+commit 6cc136f7531a45e71ea08a7dc8a2187172cb813d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 13:55:48 2013 +0200
+
+    [otlayout] Minor
+
+ src/hb-ot-layout-gsubgpos-private.hh | 14 ++++++--------
+ 1 file changed, 6 insertions(+), 8 deletions(-)
+
+commit ba6ddc421e5e440231c2ece2db1363f8e6d2ecbf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 13:52:51 2013 +0200
+
+    [otlayout] Increase MAX_CONTEXT_LENGTH
+
+    It's cheap.
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit e714fe6d6a2633494cb1fa7170a32ca2638cbb51
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 13:49:51 2013 +0200
+
+    [otlayout] Simplify ligate_input()
+
+    Shouldn't change behavior at all, but is faster / more robust.
+
+ src/hb-ot-layout-gsub-table.hh       | 16 +++++++---------
+ src/hb-ot-layout-gsubgpos-private.hh | 17 +++++++----------
+ 2 files changed, 14 insertions(+), 19 deletions(-)
+
+commit 6b2abdcd203204131f3017ca85c91de9d43959cd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 13:15:43 2013 +0200
+
+    [indic] Improve clusters in presence of reph
+
+ src/hb-ot-shape-complex-indic.cc | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+commit 42d0f55cbc68285e22d713df7062e520af708c82
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 13:05:05 2013 +0200
+
+    [indic] Apply calt,clig in the same stage as presentation features
+
+    Whic means these twp are applied per-syllable now. Apparently
+    in some Khmer fonts the clig interacts with presentation features.
+
+    Test case: U+1781,U+17D2,U+1789,U+17BB,U+17C6 with Mondulkiri-R.ttf
+    should produce one big ligature.
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit ae9a5834df477006686421d494b55a1569789327
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 12:24:55 2013 +0200
+
+    [indic] Fix pref vs blwf interaction
+
+    If a glyph can be both blwf and pref, we were wrongly sorting it
+    in the post position instead of below position.
+
+ src/hb-ot-shape-complex-indic.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit c7dacac02cfe8526eaf131ce6c5e7b6df7ca2ccd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 12:20:24 2013 +0200
+
+    [indic] Don't apply blwf before base under old-spec mode
+
+    Test case: U+09AC,U+09CD,U+09A6 with Lohit-Bengali 2.5.3.
+
+ src/hb-ot-shape-complex-indic.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit da72042c52ed3cc0ee19d3eabb8db7c7dd34d3ed
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 17 12:01:50 2013 +0200
+
+    [otlayout] Fix up recent Context matching change
+
+    Commit 6b65a76b40522a4f57a6fedcbdfc5a4d736f1d3c.  "end" was becoming
+    negative.  Was trigerred by Lohit-Kannada 2.5.3 and the sequence:
+    U+0CB0,U+200D,U+0CBE,U+0CB7,U+0CCD,U+0C9F,U+0CCD,U+0CB0,U+0C97,U+0CB3
+    Two glyphs were being duplicated.
+
+ src/hb-buffer.cc                    | 7 ++++++-
+ src/hb-ot-layout-gsubgpos-private.hh | 3 ++-
+ 2 files changed, 8 insertions(+), 2 deletions(-)
+
+commit 1a7de1ba9876b0554c758acbc6459366d9d98a5d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 16 19:55:06 2013 +0200
+
+    [indic] Improve Avagraha support in machine
+
+ src/hb-ot-shape-complex-indic-machine.rl | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit 3756efaf4e14ec3b5b1def700a1b5985f162372b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 16 19:06:29 2013 +0200
+
+    [indic] Misc harmless fixes!
+
+    First, we were abusing OT_VD instead of OT_A.  Fix that
+    but moving OT_A in the grammar where it belongs (which
+    is different from what the spec says).
+
+    Also, only allow medial consonants after all other
+    consonants.  This doesn't affect any current character.
+
+    Finally, fix Halant attachment in presence of medial
+    consonants.  Again, this currently doesn't affect any
+    sequence.
+
+    I lied.  There's Gurmukhi U+0A75 which is Consonant_Medial.
+    Uniscribe allows one of those in each of these positions:
+    before matras, after matras and before syllable modifiers,
+    and after syllable modifiers!  We currently just allow
+    unlimited numbers of it, before matras.
+
+ src/hb-ot-shape-complex-indic-machine.rl |  8 ++++----
+ src/hb-ot-shape-complex-indic-private.hh |  2 +-
+ src/hb-ot-shape-complex-indic.cc        | 11 ++++++-----
+ 3 files changed, 11 insertions(+), 10 deletions(-)
+
+commit c52ddab72e025d1bee8274c8f3416208b12f68f1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 16 13:42:38 2013 +0200
+
+    [arabic] Make ZWJ prevent ligatures instead of facilitating it
+
+    Unicode 6.2.0 Section 16.2 / Figure 16.3 says:
+
+    "For backward compatibility, between Arabic characters a ZWJ acts just
+    like the sequence <ZWJ, ZWNJ, ZWJ>, preventing a ligature from forming
+    instead of requesting the use of a ligature that would not normally be
+    used. As a result, there is no plain text mechanism for requesting the
+    use of a ligature in Arabic text."
+
+    As such, we flip internal zwj to zwnj flags for GSUB matching, which
+    means it will block ligation in all features, unless the font
+    explicitly matches U+200D glyph.  This doesn't affect joining
+    behavior.
+
+ src/hb-ot-layout-private.hh      |  6 ++++++
+ src/hb-ot-shape-complex-arabic.cc | 18 ++++++++++++++++++
+ 2 files changed, 24 insertions(+)
+
+commit 1a31f9f820c4538015ddaf4ca2b790649c5997ed
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 16 13:42:18 2013 +0200
+
+    [otlayout] Minor
+
+ src/hb-ot-layout-private.hh | 23 +++++++++++++++--------
+ 1 file changed, 15 insertions(+), 8 deletions(-)
+
+commit 28d5daec948e1a24f13e492ce301aeb9abff37c8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 16 12:32:12 2013 +0200
+
+    [indic] More granular post-base cluster merging!
+
+ src/hb-ot-shape-complex-indic.cc | 45
+ ++++++++++++++++++++++++++++++++++------
+ 1 file changed, 39 insertions(+), 6 deletions(-)
+
+commit 9cb59d460e80d769087045535a8d54ec9ed7985c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 16 11:34:07 2013 +0200
+
+    [indic] Fix cluster merging of left matras
+
+    The merge_clusters there was totally broken.
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 190c8f2b60af0851bf692f653c1604cfbf0561a5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 16 11:33:18 2013 +0200
+
+    [indic] Adjust cluster merging under uniscribe mode for Tamil
+
+    Apparently Uniscribe Tamil shaper doesn't ship chubby clusters
+    for Tamil. Adjust to that.
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 5c558877da5db8c734ba072f01e5e4797876619c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 16 11:14:15 2013 +0200
+
+    [indic] Allow up to two syllable modifiers
+
+    Bug 70509 - Candrabindu+Visarga doesn't work in Devanagari
+    https://bugs.freedesktop.org/show_bug.cgi?id=70509
+
+    We categorize both bindus and visarga as syllable-modifiers.
+    OT spec doesn't actually say what characters go in the syllable
+    modifier category, and allows one. We just allow up to two now.
+
+    Test case: U+0930,U+0941,U+0901,U+0903
+
+    Uniscribe currently doesn't support that and produces a
+    dotted circle.
+
+ src/hb-ot-shape-complex-indic-machine.rl                               |
+ 2 +-
+ .../texts/in-tree/shaper-indic/indic/script-devanagari/misc/misc.txt   |
+ 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+commit f5299eff5c0065d6329cd536c0ac339abea085b0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 15 18:13:07 2013 +0200
+
+    [indic] Simplify reph logic
+
+    *Shouldn't* break anything.
+
+ src/hb-ot-shape-complex-indic.cc | 11 +++--------
+ 1 file changed, 3 insertions(+), 8 deletions(-)
+
+commit 65a929b1c033e91919c931b495a775f76b6dcbb3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 15 18:08:05 2013 +0200
+
+    [indic] If Malayalam dot-reph formed a ligature, don't move it
+
+    Rachana-0.6 implements dot-reph by ligation, so we shouldn't move it.
+    Uniscribe doesn't either.  Test case:
+
+      U+0D4E,U+0D1A,U+0D4D,U+0D1A,U+0D4D
+
+ src/hb-ot-shape-complex-indic.cc                  | 23
+ ++++++++++++++++------
+ .../indic/script-malayalam/misc/dot-reph.txt      |  3 +++
+ 2 files changed, 20 insertions(+), 6 deletions(-)
+
+commit a01cbf6cbe0021722302cfb58fb638a0a2427b26
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 15 16:37:53 2013 +0200
+
+    [indic] Harmless reordering of Khmer features!
+
+ src/hb-ot-shape-complex-indic.cc | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+commit c46f406973024051877e867b93614942ff80c107
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 15 16:24:21 2013 +0200
+
+    [tests] Remove Myanmar micro-font and test
+
+ .../sha1sum/ceadd106a8205214fbe7337ef9de32a862b59762.ttf | Bin 3040 ->
+ 0 bytes
+ test/shaping/tests/context-matching.tests               |   1 -
+ 2 files changed, 1 deletion(-)
+
+commit eb10233b267909dee0245f126000e117f3b21c35
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 15 15:26:44 2013 +0200
+
+    [indic] Apply 'kern' for all scripts except for Khmer in Uniscribe
+    mode
+
+    Seems to better match Uniscribe.
+
+    Note: NotoSansTelugu-Regular has kern feature, so this fixes most
+    of the
+    positioning failures there, except for the kern pairs blocked by a
+    (non-)joiner, in which case we (correctly) kern, but Uniscribe
+    doesn't.
+
+ src/hb-ot-shape-complex-indic.cc | 11 +++++++++--
+ 1 file changed, 9 insertions(+), 2 deletions(-)
+
+commit 30145272a7d428bc62a903388bd7be43f4da7fc3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 15 13:47:27 2013 +0200
+
+    [indic] Don't apply presentation features across syllables
+
+    More like Uniscribe...  We still allow user-defined features to
+    work across syllables, but not pres,blws,abs,psts,etc.
+
+    This "regressed" Sinhala numbers by 11.  These are cases were
+    there's Consonant followed by Ra,Halant,ZWJ at the of text.
+    The Ra,Halant,ZWJ ends up forming reph, which is wrong...
+    But before we were also ligating that reph with the previous
+    consonant. That's even more wrong.  That's also what Uniscribe
+    does.
+
+    Current numbers:
+
+    BENGALI: 353732 out of 354188 tests passed. 456 failed (0.128745%)
+    DEVANAGARI: 707307 out of 707394 tests passed. 87 failed (0.0122987%)
+    GUJARATI: 366349 out of 366457 tests passed. 108 failed (0.0294714%)
+    GURMUKHI: 60732 out of 60747 tests passed. 15 failed (0.0246926%)
+    KANNADA: 951030 out of 951913 tests passed. 883 failed (0.0927606%)
+    KHMER: 299070 out of 299124 tests passed. 54 failed (0.0180527%)
+    MALAYALAM: 1048140 out of 1048334 tests passed. 194 failed
+    (0.0185056%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271655 out of 271847 tests passed. 192 failed (0.070628%)
+    TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%)
+    TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
+
+ src/hb-ot-shape-complex-indic.cc                   | 21
+ +++++++++++++++++----
+ .../shaper-indic/indic/script-sinhala/misc/misc.txt | 1 +
+ 2 files changed, 18 insertions(+), 4 deletions(-)
+
+commit 3c7b3641cfb00f2c4dcc0768b9854e4f4410d15f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 15 11:21:01 2013 +0200
+
+    [indic] Handle Avagraha
+
+    It can come either at the end(ish!) of the syllable, or independently.
+    When independent, it accepts a few bits and pieces.
+
+ src/hb-ot-shape-complex-indic-machine.rl                  |  5 ++++-
+ src/hb-ot-shape-complex-indic-private.hh                  |  5 +++--
+ src/hb-ot-shape-complex-indic.cc                          | 14
+ +++++++++++++-
+ .../shaper-indic/indic/script-devanagari/misc/misc.txt     |  1 +
+ .../in-tree/shaper-indic/indic/script-telugu/misc/misc.txt |  1 +
+ 5 files changed, 22 insertions(+), 4 deletions(-)
+
+commit 5e7432b8172473aa4dda3d51a79add9e97c2d2c1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 15 12:28:23 2013 +0200
+
+    [myanmar] Apply abvm/blwm
+
+ src/hb-ot-shape-complex-myanmar.cc | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+commit 8acbb6be271817c12d2ee0066b355e2fb0f9a934
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 15 12:15:49 2013 +0200
+
+    [indic] Some scripts like blwf applied to pre-base characters
+
+    ...while some don't!
+
+    Improved Bengali, Devanagari, Gurmukhi, Malayalam.
+
+    Updated numbers:
+
+    BENGALI: 353732 out of 354188 tests passed. 456 failed (0.128745%)
+    DEVANAGARI: 707307 out of 707394 tests passed. 87 failed (0.0122987%)
+    GUJARATI: 366349 out of 366457 tests passed. 108 failed (0.0294714%)
+    GURMUKHI: 60732 out of 60747 tests passed. 15 failed (0.0246926%)
+    KANNADA: 951030 out of 951913 tests passed. 883 failed (0.0927606%)
+    KHMER: 299070 out of 299124 tests passed. 54 failed (0.0180527%)
+    MALAYALAM: 1048134 out of 1048334 tests passed. 200 failed
+    (0.0190779%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271666 out of 271847 tests passed. 181 failed (0.0665816%)
+    TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%)
+    TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
+
+ src/hb-ot-shape-complex-indic.cc | 33 ++++++++++++++++++++-------------
+ 1 file changed, 20 insertions(+), 13 deletions(-)
+
+commit 2c85a3df0983f28aed77a0ea3bf2417ef65d4b84
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 14 19:41:52 2013 +0200
+
+    Fix issue with automake
+
+ test/shaping/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 6b65a76b40522a4f57a6fedcbdfc5a4d736f1d3c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 14 18:51:39 2013 +0200
+
+    [otlayout] Fix (Chain)Context recursion!
+
+    Previously we only supported recursive sublookups with
+    ascending indices. We were also not correctly handling
+    non-1-to-1 recursed lookups.
+
+    Fix all that!
+
+    Fixes the three tests in test/shaping/tests/context-matching.tests,
+    which were derived from NotoSansBengali and NotoSansDevanagari
+    among others.
+
+ src/hb-buffer-private.hh            |   4 +
+ src/hb-buffer.cc                    |  46 ++++++++++
+ src/hb-ot-layout-common-private.hh   |   1 +
+ src/hb-ot-layout-gsub-table.hh       |   1 +
+ src/hb-ot-layout-gsubgpos-private.hh | 157
+ +++++++++++++++++------------------
+ 5 files changed, 127 insertions(+), 82 deletions(-)
+
+commit 841e20d083aec8d814cd8d90aa6ab60127c0d1f2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 14 18:47:51 2013 +0200
+
+    Add test suite for shaping results
+
+    The new test suite runs tests included under
+    hb/test/shaping/tests/*.tests, which themselves reference
+    font files stored by sha1sum under hb/test/shaping/fonts/sha1sum.
+    The fonts are produced using a subsetter to only include glyphs
+    needed to run the test.
+
+    Four initial tests are added for (Chain)Context matching,
+    of which three currently fail.
+
+ test/shaping/Makefile.am                          |  10 +++++-
+ .../4cce528e99f600ed9c25a2b69e32eb94a03b4ae8.ttf   | Bin 0 -> 1320 bytes
+ .../ceadd106a8205214fbe7337ef9de32a862b59762.ttf   | Bin 0 -> 3040 bytes
+ .../d629e7fedc0b350222d7987345fe61613fa3929a.ttf   | Bin 0 -> 1768 bytes
+ .../f499fbc23865022234775c43503bba2e63978fe1.ttf   | Bin 0 -> 3564 bytes
+ test/shaping/run-tests.sh                         |  34
+ +++++++++++++++++++++
+ test/shaping/tests/MANIFEST                       |   1 +
+ test/shaping/tests/context-matching.tests         |   4 +++
+ 8 files changed, 48 insertions(+), 1 deletion(-)
+
+commit e2dab69291a5d86fc90a8c273c458c16574eafb5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 14 16:44:44 2013 +0200
+
+    Minor
+
+ test/shaping/hb_test_tools.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4e6e53db5da0a5da87ae732c3f9d01babf4ae6c2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 14 13:06:36 2013 +0200
+
+    [otlayout] "Minor"
+
+ src/hb-ot-layout.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 9326d48e4309901e7e0b0e15230936a21ee3df72
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 10 20:04:42 2013 +0200
+
+    Don't use g_mapped_file_unref()
+
+    Was introduced in glib 2.22.
+
+ src/test-buffer-serialize.cc | 2 +-
+ src/test-size-params.cc      | 2 +-
+ src/test-would-substitute.cc | 2 +-
+ src/test.cc                 | 2 +-
+ util/options.cc             | 4 ++--
+ 5 files changed, 6 insertions(+), 6 deletions(-)
+
+commit e152d1a27891bd1d9d46a9c028c026843bad384a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 3 15:09:37 2013 -0400
+
+    0.9.22
+
+ NEWS        | 13 +++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 14 insertions(+), 1 deletion(-)
+
+commit 27674b4bb351e501373bd9994e4ba6546e465cf7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 3 14:54:50 2013 -0400
+
+    [OTLayout] Protect against out-of-range lookup indices
+
+    Filter them out when compiling map.
+
+ src/hb-ot-layout.cc | 17 +++++++++++++++++
+ src/hb-ot-layout.h  | 5 +++++
+ src/hb-ot-map.cc    | 8 +++++++-
+ 3 files changed, 29 insertions(+), 1 deletion(-)
+
+commit 6b4fdded94b7efb96c6e41cca4350878ed859ff1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 30 13:48:19 2013 -0400
+
+    Update git.mk
+
+ git.mk | 20 +++++++++++++-------
+ 1 file changed, 13 insertions(+), 7 deletions(-)
+
+commit 2a2b5b89ef3a606ba2996bc89fd1c577a6c98f40
+Author: M1cha <sigmaepsilon92@gmail.com>
+Date:  Mon Sep 30 08:55:52 2013 +0000
+
+    Cleanup Android.mk
+    - use common src files for both static and shared libs
+    - remove empty LOCAL_SHARED_LIBRARIES
+
+ Android.mk | 58
+ +++++++++++++++++-----------------------------------------
+ 1 file changed, 17 insertions(+), 41 deletions(-)
+
+commit 622bc3d829cab84c3a4148b88f2c91fee491ef39
+Merge: 3d2c4f0 d583df1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Sep 29 13:31:58 2013 -0700
+
+    Merge pull request #4 from amarullz/master
+
+    Add build static library on Android.mk
+
+commit 3d2c4f0c2ff8fab4262988aad65b170e5b479b20
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 27 17:06:29 2013 -0400
+
+    Fix hiding of default_ignorables if font doesn't have space glyph
+
+    Based on patch from Jonathan Kew.  See discussion on the list.
+
+ src/hb-ot-shape.cc | 40 ++++++++++++++++++++++++++++++----------
+ 1 file changed, 30 insertions(+), 10 deletions(-)
+
+commit d583df1e78003f8f1039ad72331bf877b13d1ae5
+Author: Ahmad Amarullah <support@amarullz.com>
+Date:  Fri Sep 27 19:04:32 2013 +0700
+
+    Add build static library on Android.mk
+
+    Use UCDN instead ICU
+    HAVE Freetype
+
+ Android.mk | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 50 insertions(+)
+
+commit 078de49ca10285f6cd1452abd40f831a17af5d1a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 26 18:26:43 2013 -0400
+
+    [util] Don't use g_array_unref()
+
+    Was introduced in glib 2.22.
+
+ util/view-cairo.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 48360ec03b225dfec5f90bc5cb93122203d2dd6b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 26 16:48:42 2013 -0400
+
+    Bug 68990 - test-common fails on i686-linux
+
+    Fix use-after-end-of-scope.
+
+ src/hb-common.cc | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit b61f97d544ce43d85f5fe93e682c324e042c0770
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 16 22:07:22 2013 -0400
+
+    0.9.21
+
+ NEWS        | 12 ++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 13 insertions(+), 1 deletion(-)
+
+commit 2af826296315d89f3a433952903c5968e56044ea
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 16 21:49:56 2013 -0400
+
+    Improve library checks
+
+ src/Makefile.am      |  1 +
+ src/check-defs.sh    | 44 ++++++++++++++++++++++++++++++++++++++++++++
+ src/check-symbols.sh | 37 ++++++++++++-------------------------
+ 3 files changed, 57 insertions(+), 25 deletions(-)
+
+commit 882edce48e507a1c76c908ec2db04aac218b67d6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 13 20:36:43 2013 -0400
+
+    [graphite2] Fix include
+
+ src/hb-graphite2.cc | 5 ++---
+ src/hb-graphite2.h  | 2 ++
+ 2 files changed, 4 insertions(+), 3 deletions(-)
+
+commit ace5c7eb4c2302a6a7eb3576e6dbc3bc026e569c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 13 20:34:42 2013 -0400
+
+    [introspection] hb-ft annotations
+
+ src/hb-face.cc |  2 +-
+ src/hb-ft.cc  | 30 +++++++++++++++++++++++++++++-
+ 2 files changed, 30 insertions(+), 2 deletions(-)
+
+commit a8949df48780e680e03b9afbbafb3628a0acef52
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 13 20:23:51 2013 -0400
+
+    [introspection] Annotate Unicode / font callbacks
+
+    Should move these out of the public header...
+
+    We're "clean" of introspection warnings now.  Remaining ones are about
+    graphite2 / freetype types not being introspectable.
+
+ src/hb-blob.cc   |   4 +-
+ src/hb-face.cc   |   2 +-
+ src/hb-font.cc   |   4 +-
+ src/hb-font.h   | 132
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++--
+ src/hb-unicode.h | 106 ++++++++++++++++++++++++++++++++++++++++----
+ 5 files changed, 231 insertions(+), 17 deletions(-)
+
+commit 4b011094d5e90cf93df2891e47aeab1bffad5bbf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 13 20:17:42 2013 -0400
+
+    Move code around
+
+    I believe I didn't break anything...
+
+ src/hb-ot-shape.cc | 22 +++++++++++-----------
+ 1 file changed, 11 insertions(+), 11 deletions(-)
+
+commit 4878db218202ed804c9f76edb7e4aa220de8a8d8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 12 20:56:32 2013 -0400
+
+    Remove contrib/ Python hand-coded binding stuff
+
+    gobject-introspection coming together.
+
+ contrib/README                           |   2 -
+ contrib/python/README            |  10 --
+ contrib/python/lib/fontconfig.pyx |  47 ---------
+ contrib/python/lib/harfbuzz.pyx   | 213
+ --------------------------------------
+ contrib/python/scripts/hbtestfont | 116 ---------------------
+ contrib/python/setup.py          |  39 -------
+ 6 files changed, 427 deletions(-)
+
+commit e478ebe4d3f74dc271ffe88680fd29f6b1924c93
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 12 20:53:07 2013 -0400
+
+    [introspection] Add sample.py
+
+ src/sample.py | 13 +++++++++++++
+ 1 file changed, 13 insertions(+)
+
+commit dfdbe7f932daffcf73911ff4e4a36f749164d960
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 12 20:52:20 2013 -0400
+
+    [introspection] Make hb_blob_create() introspectable
+
+ src/Makefile.am | 2 ++
+ src/hb-blob.cc  | 2 +-
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+commit 085d4291a9f253a4b8e2eec8003ac11d02a9394f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 12 17:14:33 2013 -0400
+
+    [introspection] Disable constructors for now
+
+    Since our types are not associated with their methods, marking
+    constructors makes them inaccessible from bindings.  Undo for now.
+
+ src/hb-blob.cc       | 2 +-
+ src/hb-buffer.cc     | 2 +-
+ src/hb-face.cc       | 2 +-
+ src/hb-font.cc       | 4 ++--
+ src/hb-set.cc       | 2 +-
+ src/hb-shape-plan.cc | 2 +-
+ src/hb-unicode.cc    | 2 +-
+ 7 files changed, 8 insertions(+), 8 deletions(-)
+
+commit 6c48f20eea22c6e686416ab4ec8388be3e8cd0b5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 9 15:43:10 2013 -0400
+
+    [otlayout] Add structs for JSTF table
+
+ src/Makefile.am               |   1 +
+ src/hb-ot-head-table.hh       |   2 +-
+ src/hb-ot-hhea-table.hh       |   2 +-
+ src/hb-ot-hmtx-table.hh       |   2 +-
+ src/hb-ot-layout-gdef-table.hh |   2 +-
+ src/hb-ot-layout-gpos-table.hh |   2 +-
+ src/hb-ot-layout-gsub-table.hh |   2 +-
+ src/hb-ot-layout-jstf-table.hh | 229
+ +++++++++++++++++++++++++++++++++++++++++
+ src/hb-ot-layout.cc           |   1 +
+ src/hb-ot-layout.h            |   1 +
+ src/hb-ot-maxp-table.hh       |   2 +-
+ src/hb-ot-name-table.hh       |   2 +-
+ src/main.cc                   |   2 +-
+ 13 files changed, 241 insertions(+), 9 deletions(-)
+
+commit 70303cf23b22647bf641be22c8650310128322a9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 6 17:35:57 2013 -0400
+
+    [docs/introspection] Some more annotations
+
+ src/hb-common.cc    | 151
+ ++++++++++++++++++++++++++++++++++++++++++++++++++--
+ src/hb-font.cc      | 16 +++---
+ src/hb-version.h.in | 19 -------
+ 3 files changed, 155 insertions(+), 31 deletions(-)
+
+commit 288f2899979bcc9e68f8115cb76e3271ed0e17bc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 6 15:40:22 2013 -0400
+
+    [docs/introspection] More annotations
+
+ src/hb-blob.cc                    |  63 +++---
+ src/hb-buffer-serialize.cc |  63 ++++++
+ src/hb-buffer.cc          | 307 ++++++++++++++++++++++++++-
+ src/hb-face.cc                    | 171 +++++++++++++++
+ src/hb-font-private.hh     |  4 +-
+ src/hb-font.cc                    | 504
+ ++++++++++++++++++++++++++++++++++++++++++++-
+ src/hb-set.cc             |   2 +-
+ src/hb-shape-plan.cc      | 104 ++++++++++
+ src/hb-shape.cc           |  56 +++++
+ src/hb-unicode.cc         | 128 ++++++++++++
+ 10 files changed, 1355 insertions(+), 47 deletions(-)
+
+commit 17905c54f1bab9e6dfe13f59f5ec208de12832f7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 6 16:57:01 2013 -0400
+
+    [introspection] Work around g-i limitation with hb_language_t
+
+ src/hb-gobject-structs.cc | 15 +++++++++++----
+ src/hb-gobject-structs.h  |  8 ++++++++
+ 2 files changed, 19 insertions(+), 4 deletions(-)
+
+commit cd361c3cbe4a288e3019b9a029f44e4c5f24436c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 6 16:20:21 2013 -0400
+
+    Minor change to hb_language_t
+
+    Let me know if this breaks anyone's anything.
+
+ src/hb-common.cc | 2 +-
+ src/hb-common.h  | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit 20cbc1f8eb0811e6cefa3be3550e80df9c372782
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 6 15:29:22 2013 -0400
+
+    Annotate hb-set a bit; add HB_SET_VALUE_INVALID
+
+ src/hb-set-private.hh |  20 +++--
+ src/hb-set.cc        | 244
+ ++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-set.h         |   2 +
+ src/hb-version.h.in   |   6 +-
+ test/api/test-set.c   |  26 +++---
+ 5 files changed, 276 insertions(+), 22 deletions(-)
+
+commit c44b81833d5bfb9a926d348a76463314c3ec2018
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 6 15:13:16 2013 -0400
+
+    Whitespace
+
+ src/hb-buffer.cc | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+commit ae9dc717d37d58efdd3fabbe4a9c3c2bf9dc3568
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 5 16:40:37 2013 -0400
+
+    [gtk-doc] Pass source files to gtk-doc
+
+ docs/reference/Makefile.am | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit 5f512017ba615ba6ac8e5da2ea0c57a72db2c26b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 4 18:28:39 2013 -0400
+
+    [docs] Document a few symbols
+
+ src/hb-blob.cc      | 160
+ +++++++++++++++++++++++++++++++++++++++++++++++++++-
+ src/hb-buffer.cc    | 78 ++++++++++++++++++++++++-
+ src/hb-version.h.in | 17 ++++++
+ 3 files changed, 251 insertions(+), 4 deletions(-)
+
+commit e0dbf99b4497be305d689a528282fd37214e7f1c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 5 16:00:47 2013 -0400
+
+    [introspection] Pass source files to scanner
+
+ src/Makefile.am | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit 5a5350b39b81e0128d36ebc81307a6d698a4dc50
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 3 20:11:01 2013 -0400
+
+    Revert "Round when scaling values"
+
+    This reverts commit 10f964623f003c70f6bdd33423420abda3820ce0.
+
+    See discussion with Khaled Hosny on mailing list.  In short, since
+    integers here can be negative, and int division is "round towards
+    zero", proper rounding should take sign into account.  Just skip
+    doing it again, has been serving us well before.
+
+ TODO                  | 2 ++
+ src/hb-font-private.hh | 6 +-----
+ 2 files changed, 3 insertions(+), 5 deletions(-)
+
+commit 74ff41c3a573bdf74b60623065eb92a49f055893
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 3 20:09:14 2013 -0400
+
+    Minor
+
+ Makefile.am | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 63dd4b0ac2076fe9cc3dfe5d31ef3616d4ed01e5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 3 20:01:40 2013 -0400
+
+    [gtk-doc] Remove hack for deleting tmpl/
+
+    This was introduced in 029f46bde7e39094d3decb46525e91a97c5cc02c
+    and was in fact a bug in gtk-doc master:
+
+      https://bugzilla.gnome.org/show_bug.cgi?id=707426
+
+ docs/reference/Makefile.am | 5 -----
+ 1 file changed, 5 deletions(-)
+
+commit 213001aa99003422199245e96878f9fe348c55b4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 3 20:00:16 2013 -0400
+
+    [build] Fix EXTRA_DIST
+
+    I was under the impression that EXTRA_DISTs will happen regardless of
+    automake conditionals.  Apparently I was wrong.
+
+ src/Makefile.am | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+commit 1e994a8fcc94dfea42a6cbfe23a401142d79a1a6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 3 18:11:47 2013 -0400
+
+    [gtk-doc] Copy makefile
+
+ autogen.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 81a007ffad683e53f12093a0c9e30112106f415d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 30 19:45:13 2013 -0400
+
+    [TODO] Update
+
+ TODO | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+commit a2a28235e8131a1e1d4b8c3d0933df5cf056bbc6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 30 19:38:47 2013 -0400
+
+    [gtk-doc] Generate version.xml from configure
+
+    Even though this is not what autoconf recommends, it reduces doc
+    rebuilds when version doesn't change but configure changes.
+
+ configure.ac                 |  1 +
+ docs/reference/Makefile.am    | 11 +++--------
+ docs/reference/version.xml.in |  1 +
+ 3 files changed, 5 insertions(+), 8 deletions(-)
+
+commit ac1b723917d9b8f247a350f8d3e1bc5d1e472073
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 30 19:32:10 2013 -0400
+
+    Remove hb-old and hb-icu-le test shapers
+
+    They've been disabled for a while and no one cared.  We're past
+    the point to need them for testing, and if we ever need to
+    resurrect them again, well, they're in git graveyard somewhere.
+
+ configure.ac                          |   23 +-
+ src/Makefile.am                       |   28 +-
+ src/hb-icu-le.cc                      |  265 --
+ src/hb-icu-le/COPYING                 |    2 -
+ src/hb-icu-le/FontTableCache.cpp      |   91 -
+ src/hb-icu-le/FontTableCache.h                |   48 -
+ src/hb-icu-le/Makefile.am             |   25 -
+ src/hb-icu-le/PortableFontInstance.cpp |  275 --
+ src/hb-icu-le/PortableFontInstance.h  |  119 -
+ src/hb-icu-le/README                  |    3 -
+ src/hb-icu-le/cmaps.cpp               |  200 --
+ src/hb-icu-le/cmaps.h                 |   87 -
+ src/hb-icu-le/letest.h                        |   63 -
+ src/hb-icu-le/license.html            |   51 -
+ src/hb-icu-le/sfnt.h                  |  453 ---
+ src/hb-old.cc                         |  410 ---
+ src/hb-old/COPYING                    |   24 -
+ src/hb-old/Makefile.am                        |   56 -
+ src/hb-old/README                     |    7 -
+ src/hb-old/harfbuzz-arabic.c          | 1150 ------
+ src/hb-old/harfbuzz-buffer-private.h  |  107 -
+ src/hb-old/harfbuzz-buffer.c          |  383 --
+ src/hb-old/harfbuzz-buffer.h          |  102 -
+ src/hb-old/harfbuzz-external.h                |  106 -
+ src/hb-old/harfbuzz-gdef-private.h    |  135 -
+ src/hb-old/harfbuzz-gdef.c            | 1163 ------
+ src/hb-old/harfbuzz-gdef.h            |  140 -
+ src/hb-old/harfbuzz-global.h          |  125 -
+ src/hb-old/harfbuzz-gpos-private.h    |  729 ----
+ src/hb-old/harfbuzz-gpos.c            | 6094
+ --------------------------------
+ src/hb-old/harfbuzz-gpos.h            |  155 -
+ src/hb-old/harfbuzz-greek.c           |  447 ---
+ src/hb-old/harfbuzz-gsub-private.h    |  483 ---
+ src/hb-old/harfbuzz-gsub.c            | 4329 -----------------------
+ src/hb-old/harfbuzz-gsub.h            |  148 -
+ src/hb-old/harfbuzz-hangul.c          |  268 --
+ src/hb-old/harfbuzz-hebrew.c          |  187 -
+ src/hb-old/harfbuzz-impl.c            |   84 -
+ src/hb-old/harfbuzz-impl.h            |  135 -
+ src/hb-old/harfbuzz-indic.cpp         | 1868 ----------
+ src/hb-old/harfbuzz-khmer.c           |  642 ----
+ src/hb-old/harfbuzz-myanmar.c         |  511 ---
+ src/hb-old/harfbuzz-open-private.h    |  102 -
+ src/hb-old/harfbuzz-open.c            | 1433 --------
+ src/hb-old/harfbuzz-open.h            |  288 --
+ src/hb-old/harfbuzz-shaper-all.cpp    |   37 -
+ src/hb-old/harfbuzz-shaper-private.h  |  159 -
+ src/hb-old/harfbuzz-shaper.cpp                |  996 ------
+ src/hb-old/harfbuzz-shaper.h          |  265 --
+ src/hb-old/harfbuzz-stream-private.h  |   81 -
+ src/hb-old/harfbuzz-stream.c          |  114 -
+ src/hb-old/harfbuzz-stream.h          |   51 -
+ src/hb-old/harfbuzz-tibetan.c         |  249 --
+ src/hb-old/harfbuzz.h                 |   38 -
+ 54 files changed, 2 insertions(+), 25532 deletions(-)
+
+commit b94243d6a9457864ad8ef3ad47ad01985b138862
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 30 18:41:33 2013 -0400
+
+    [g-i] Rename library from harfbuzz to HarfBuzz
+
+ src/Makefile.am | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+commit f730b5d1e2369762952481f1a2d3db26a2b48015
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 29 15:53:33 2013 -0400
+
+    0.9.20
+
+ NEWS        | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 49 insertions(+), 1 deletion(-)
+
+commit b0e03508bad04d7dcf2c50ac81f6261425b34c5f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 29 15:56:32 2013 -0400
+
+    Dist with gobject and introspection enabled
+
+ Makefile.am | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit e4ce6745e15eab33ed693874e7a56981f4d6f79a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 29 15:56:16 2013 -0400
+
+    [gtk-doc] Fix build without gobject
+
+ docs/reference/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 263372f15ffdf4c0e4386133f64ff389ba73de33
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 28 13:43:54 2013 -0400
+
+    Remove gtk-doc.make
+
+    It's copied by gtk-docize.
+
+ gtk-doc.make | 302
+ -----------------------------------------------------------
+ 1 file changed, 302 deletions(-)
+
+commit 79d754efeef89543d51775b110e8bd49cf7e699b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 28 13:43:35 2013 -0400
+
+    Fix build
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 71ef22b04d466803076af1da6763fecab95ce5bb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 28 12:52:55 2013 -0400
+
+    Turn hb-gobject, and introspection off by default
+
+    Also enable bootstrapping without them.
+
+ configure.ac   | 39 ++++++++++++++++++++++++++++++++++-----
+ src/Makefile.am |  5 +++--
+ 2 files changed, 37 insertions(+), 7 deletions(-)
+
+commit d8f507099b9ae5f0c643fb8dddbb069df6f62a94
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 26 21:26:24 2013 -0400
+
+    Hookup harfbuzz-gobject to introspection
+
+ src/Makefile.am | 16 +++++++++++++---
+ 1 file changed, 13 insertions(+), 3 deletions(-)
+
+commit 71439a8c7ae9df25193bc3ad0f203117d2884a19
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 26 20:56:58 2013 -0400
+
+    [gobject] Flesh out hb-gobject
+
+    Move it to new harfbuzz-gobject library.  Implement enums and
+    boxed types for object-types.  Still have to do boxed types for
+    value types.
+
+ configure.ac                        | 12 ++++-
+ docs/reference/Makefile.am          | 12 ++++-
+ docs/reference/harfbuzz-docs.xml     |  3 ++
+ docs/reference/harfbuzz-sections.txt | 48 +++++++++++++++++++-
+ src/Makefile.am                     | 48 +++++++++++++-------
+ src/harfbuzz-gobject.pc.in          | 12 +++++
+ src/hb-gobject-enums.cc.tmpl        | 11 +++--
+ src/hb-gobject-enums.h.tmpl         | 55 +++++++++++++++++++++++
+ src/hb-gobject-structs.cc           | 84
+ +++++++++++++++++++++++++++-------
+ src/hb-gobject-structs.h            | 87
+ ++++++++++++++++++++++++++++++++++++
+ src/hb-gobject.h                    | 38 ++--------------
+ 11 files changed, 333 insertions(+), 77 deletions(-)
+
+commit 23027f7611b53b594e4b4008e916e42b5154f6ac
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 22 19:03:21 2013 -0400
+
+    [introspection] Enable gobject-introspection again
+
+ configure.ac   |  7 ++++---
+ src/Makefile.am | 49 ++++++++++++++++++++++++++++---------------------
+ 2 files changed, 32 insertions(+), 24 deletions(-)
+
+commit 757a7a9018577dcc399be03dc45a59589585d2fb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 28 12:35:13 2013 -0400
+
+    [uniscribe] Fixed build with wide chars
+
+    https://github.com/blinkseb/harfbuzz/commit/f65dafa4138e1fb4395bf646fa33bb01a86a7e9a
+
+ src/hb-uniscribe.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4dc798de19c767b91fd3025c85593fa6809d1340
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 26 20:39:00 2013 -0400
+
+    Add hb-deprecated.h, and rename a couple enum values
+
+    Add deprecated alias for old name.
+
+ src/Makefile.am             |  1 +
+ src/hb-buffer.cc            |  4 ++--
+ src/hb-buffer.h             |  8 +++----
+ src/hb-common.h             |  5 -----
+ src/hb-deprecated.h         | 51
+ ++++++++++++++++++++++++++++++++++++++++++++
+ src/hb.h                    |  1 +
+ src/test-buffer-serialize.cc |  2 +-
+ test/api/test-buffer.c       |  2 +-
+ util/Makefile.am            |  1 +
+ util/hb-shape.cc            |  2 +-
+ util/options.hh             |  2 +-
+ 11 files changed, 64 insertions(+), 15 deletions(-)
+
+commit 2e3a07abdf97b0ad2105c3a52f3ff0e0b60b29c4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 26 18:49:07 2013 -0400
+
+    Separate face source code from font
+
+    Makes documentation / introspection easier.
+
+ Android.mk                          |   1 +
+ docs/reference/harfbuzz-docs.xml     |   1 +
+ docs/reference/harfbuzz-sections.txt |   6 +-
+ src/Makefile.am                     |   3 +
+ src/hb-face-private.hh                      | 108 ++++++++++++
+ src/hb-face.cc                              | 311
+ +++++++++++++++++++++++++++++++++++
+ src/hb-face.h                       | 117 +++++++++++++
+ src/hb-font-private.hh                      |  67 +-------
+ src/hb-font.cc                              | 269 ------------------------------
+ src/hb-font.h                       |  75 +--------
+ src/hb.h                            |   1 +
+ 11 files changed, 549 insertions(+), 410 deletions(-)
+
+commit d3490761e11ae308fbd8aaf02059653f579035c5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 26 21:15:29 2013 -0400
+
+    Improve check-includes.sh
+
+ src/check-includes.sh | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+commit 381f2fb5e664715d67ffc9a234b0fd8aa540fada
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 26 19:20:38 2013 -0400
+
+    Minor
+
+ docs/reference/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ac1f09b53e2c5d14c874e4d9f1b25b03ea1d1c44
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 26 18:50:12 2013 -0400
+
+    [gtk-doc] Fix maintainer-clean rule
+
+ docs/reference/Makefile.am | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit 38b8b40526a85f33521542e24d1e0c82588efc85
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 27 11:44:09 2013 -0400
+
+    Fix possible snprintf OOM
+
+    https://bugzilla.redhat.com/show_bug.cgi?id=1001645
+
+ src/hb-buffer-serialize.cc | 14 +++++++-------
+ src/hb-font-private.hh     |  3 ++-
+ src/hb-shape.cc           |  6 +++---
+ 3 files changed, 12 insertions(+), 11 deletions(-)
+
+commit d22548c0e362cc9447557440af9ecbb11badfa78
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 26 18:46:21 2013 -0400
+
+    [check-*] Minor
+
+ src/check-c-linkage-decls.sh | 4 ++--
+ src/check-header-guards.sh   | 4 ++--
+ src/check-includes.sh       | 4 ++--
+ 3 files changed, 6 insertions(+), 6 deletions(-)
+
+commit 029f46bde7e39094d3decb46525e91a97c5cc02c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 26 18:11:07 2013 -0400
+
+    [gtk-doc] Remove tmpl in make maintainer-clean
+
+ docs/reference/Makefile.am | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit dddf990c3687a47297eafc82b54fa96842e68003
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 26 17:58:25 2013 -0400
+
+    [git.mk] Update
+
+ git.mk | 17 +++++++++++++----
+ 1 file changed, 13 insertions(+), 4 deletions(-)
+
+commit 700a15fe4b80da9c67befd85ae10a166f5b65962
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 26 17:49:36 2013 -0400
+
+    Add HB_DISABLE_DEPRECATED
+
+    That moment that you have to accept that you made API mistakes...
+
+ docs/reference/Makefile.am          | 2 +-
+ docs/reference/harfbuzz-sections.txt | 8 +++++---
+ src/hb-common.h                     | 4 +++-
+ 3 files changed, 9 insertions(+), 5 deletions(-)
+
+commit ddc456a519a9a59e96f9d7fcad988369e0a8842b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 26 17:34:18 2013 -0400
+
+    [travis] Add graphite2
+
+ .travis.yml | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit f7c72b42efb8d42859023659fd2e3d589523436d
+Author: Anthony Carrico <acarrico@memebeam.org>
+Date:  Sun Feb 24 13:00:33 2013 -0500
+
+    [gtk-doc] Initial setup
+
+    Initial setup of gtk-doc. Straight forward setup following the gtk-doc
+    instructions. Ignore some troublesome types in src/hb-gobject.h. To
+    build use "./autogen.sh --enable-gtk-doc" then "make". Docs are in
+    harfbuzz/docs/reference/html/index.html.
+
+ .travis.yml                          |  10 +-
+ Makefile.am                          |   7 +-
+ autogen.sh                           |   7 +
+ configure.ac                         |   7 +-
+ docs/Makefile.am                     |   1 +
+ docs/reference/Makefile.am           | 109 +++++++++
+ docs/reference/harfbuzz-docs.xml      |  61 +++++
+ docs/reference/harfbuzz-overrides.txt |   0
+ docs/reference/harfbuzz-sections.txt  | 431
+ ++++++++++++++++++++++++++++++++++
+ gtk-doc.make                         | 302 ++++++++++++++++++++++++
+ src/Makefile.am                      |   2 +-
+ src/hb-gobject.h                     |   3 +-
+ 12 files changed, 931 insertions(+), 9 deletions(-)
+
+commit 3409fb1c767118067cf7edfb97068936b6f4b717
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 21 17:22:21 2013 -0400
+
+    [uniscribe] Ask Uniscribe to return shaping results in logical order
+
+    See discussion on the list in the thread "Arabic presentation forms
+    and the uniscribe backend".
+
+    Based on patch from Jonathan Kew.
+
+ src/hb-uniscribe.cc | 24 ++++++++++++------------
+ 1 file changed, 12 insertions(+), 12 deletions(-)
+
+commit 1d05fdd09fa271b641f30a2138171e6fafcd8db7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 20 13:22:21 2013 -0400
+
+    [uniscribe] Print run info
+
+ src/hb-uniscribe.cc | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 3613696b57225111507a3f4263f5fa6937d0bc72
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 12 00:33:28 2013 -0400
+
+    [coretext] Fully support user features
+
+    Based on patch from Jonathan Kew and data from Apple.
+
+    It's not working correctly though, and I suspect I'm hitting a bug in
+    CoreText.  When I do this:
+
+    hb-shape /Library/Fonts/Zapfino.ttf ZapfinoZapfino --shaper coretext \
+    --features=-liga
+
+    I expect both ligatures to turn off, but only the second one does:
+
+    [Z_a_p_f_i_n_o=0+2333|Z=7+395|a=8+285|p_f=9+433|i=11+181|n=12+261|o=13+250]
+
+    whereas if I disable 'dlig' instead of 'liga', both are turned off.
+    Smells...
+
+    Doesn't resolve conflicting feature settings.
+
+ src/hb-coretext.cc  | 446
+ +++++++++++++++++++++++++++++++++++++++++++++++-----
+ src/hb-uniscribe.cc |  2 +-
+ 2 files changed, 404 insertions(+), 44 deletions(-)
+
+commit 54e6f6c588a164f7de62ff88b3eff4f25adb8f17
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 9 14:34:54 2013 -0400
+
+    Clean up list of Unicode scripts
+
+    Rename HB_SCRIPT_CANADIAN_ABORIGINAL to HB_SCRIPT_CANADIAN_SYLLABICS
+    and a macro for the old name.
+
+ src/hb-common.h                   | 277
+ ++++++++++++++++++++-----------------
+ src/hb-glib.cc                            |   2 +-
+ src/hb-ot-shape-complex-private.hh |  2 +
+ src/hb-ucdn.cc                            |   2 +-
+ test/api/test-unicode.c           |   2 +-
+ 5 files changed, 153 insertions(+), 132 deletions(-)
+
+commit 7cd4a715848c44be9aec6b6b622cfc2a60b1a5a9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 9 09:41:48 2013 -0400
+
+    Update TODO
+
+ TODO | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 515a0ac81e531c95b1bb7f1a3c5df73a9e64b14f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 9 09:40:59 2013 -0400
+
+    Fix compiler warning
+
+ src/hb-ot-layout-common-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 10f964623f003c70f6bdd33423420abda3820ce0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 9 09:40:01 2013 -0400
+
+    Round when scaling values
+
+    Doesn't matter for most users since they should be working in a
+    fixed sub-pixel scale anyway (ie. 22.10, 26.6, 16.16, etc).
+
+ TODO                  | 2 --
+ src/hb-font-private.hh | 6 +++++-
+ 2 files changed, 5 insertions(+), 3 deletions(-)
+
+commit df8f70ae5de6181d56efa3f076f14e4d52119a5e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 9 09:35:10 2013 -0400
+
+    Minor
+
+ src/hb-font-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ce8badf1808f9fbdd9a22e9215c7475d3afde5ed
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 9 09:31:06 2013 -0400
+
+    Minor
+
+ src/hb-font-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit d71c0df2d17f4590d5611239577a6cb532c26528
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 9 09:28:32 2013 -0400
+
+    Remove vrt2, vkrn, vpal, and valt from default vertical features
+
+    See thread by John Dagget on the list.
+
+ TODO              | 2 --
+ src/hb-ot-shape.cc | 9 ---------
+ 2 files changed, 11 deletions(-)
+
+commit a782a5e9a37c8733ac2830410a514d38635b543a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 7 21:08:54 2013 -0400
+
+    [coretext] Start adding support for features
+
+    Unlike AAT, looks like with CoreText very few OT features can
+    be mapped.
+    :(
+
+ src/hb-coretext.cc | 65
+ +++++++++++++++++++++++++++++++++++++++++++++---------
+ 1 file changed, 54 insertions(+), 11 deletions(-)
+
+commit bdd8873fd8ae5c794018f6edac242b0a8b62ff31
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 7 17:58:25 2013 -0400
+
+    Revert "[Indic] don't apply 'calt' by default in Indic shaper"
+
+    This reverts commit 952121007c6f6f374e4cf1734ebcfe2d2d71c71c.
+
+    In light of discussion on the mailing list...
+
+ src/hb-ot-shape-complex-indic.cc | 4 ----
+ 1 file changed, 4 deletions(-)
+
+commit 9a175914d72187d0c3f50ddad50c9569649c3072
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 7 17:26:13 2013 -0400
+
+    [uniscribe] Support feature ranges
+
+    As Khaled pointed out, right now setting any features, turns kern
+    and possibly other features off.
+
+ src/hb-uniscribe.cc | 232
+ ++++++++++++++++++++++++++++++++++++++++++++--------
+ 1 file changed, 199 insertions(+), 33 deletions(-)
+
+commit 627af695e48ef10b6e634c34b723f7e7013467f6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 6 16:53:56 2013 -0400
+
+    More git.mk updates
+
+ git.mk | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit 722252743d59e4cd53cb71720d823ea00b708ad8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 6 15:19:23 2013 -0400
+
+    Update git.mk
+
+ git.mk | 37 +++++++++++++++++++++++--------------
+ 1 file changed, 23 insertions(+), 14 deletions(-)
+
+commit 38d5c58d23fce38221689cda98cea1c3e42ed615
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 6 14:45:36 2013 -0400
+
+    [uniscribe] Half-support user features
+
+    Turning features on globally works now.
+
+ src/hb-uniscribe.cc | 54
+ ++++++++++++++++++++++++++++++++++++++++++-----------
+ 1 file changed, 43 insertions(+), 11 deletions(-)
+
+commit 639afdc690c681a302080239a1967ce735ba5be5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 6 14:28:12 2013 -0400
+
+    Minor
+
+ src/hb-private.hh | 14 +++++++++++---
+ 1 file changed, 11 insertions(+), 3 deletions(-)
+
+commit 952121007c6f6f374e4cf1734ebcfe2d2d71c71c
+Author: Jonathan Kew <jfkthame@gmail.com>
+Date:  Tue Aug 6 10:36:14 2013 -0400
+
+    [Indic] don't apply 'calt' by default in Indic shaper
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 625678436c29100eef82d87e635b251030a18f60
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 5 22:44:18 2013 -0400
+
+    Fix glyph closure with class==0
+
+    As reported by cibu.  Untested.
+
+ src/hb-ot-layout-common-private.hh | 29 +++++++++++++++++++++++++++++
+ 1 file changed, 29 insertions(+)
+
+commit 580d5eb93af5bbbc64994b626d5e011e2c256d74
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 4 16:55:21 2013 -0400
+
+    Don't apply 'dlig' by default
+
+    Windows 8 doesn't, and the spec will be fixed.
+
+ src/hb-ot-shape-complex-arabic.cc | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 48382e2f41499a91181bea0acc5792989d2485bb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 30 18:25:39 2013 -0400
+
+    Minor
+
+ src/hb-ot-layout-common-private.hh | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+commit c461371419d186811d4bfc768e26535f48a807f4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 30 14:48:23 2013 -0400
+
+    [CoreText] Don't leak the CTLine object (and everything that hangs
+    off it)
+
+    Patch from Jonathan Kew.
+
+ src/hb-coretext.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 5fbc952524ac8840f007dc0136823a4ab6e25f70
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 29 14:34:40 2013 -0400
+
+    Fix glyph name printing in hb-ot-shape-closure
+
+ util/hb-ot-shape-closure.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 6fadd9dd7cc220f131c29946285831635afc8044
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 26 10:33:06 2013 -0400
+
+    Apply 'mark' to Myanmar
+
+    According to Andrew Glass: "The issue with Myanmar <mark> feature was
+    fixed via a servicing patch as soon as Windows 8 became available."
+
+ src/hb-ot-shape-complex-myanmar.cc | 11 -----------
+ 1 file changed, 11 deletions(-)
+
+commit 86522e493d071f395b5abf64289232bf8867ac29
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 22 19:07:53 2013 -0400
+
+    Fix glyph closure recursion!
+
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 74439d0aa10184451adc6c6469f5119be352ecbb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 22 19:02:29 2013 -0400
+
+    Minor
+
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 8b427c78efa988ed27a2a394146d73f59688707b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 22 10:57:05 2013 -0400
+
+    [uniscribe] Sanitize font file
+
+ src/hb-uniscribe.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 12ff69df21ac91ae21860db7000d9f9973d3da1a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 22 10:52:12 2013 -0400
+
+    [uniscribe] Handle TTC when renaming font
+
+ src/hb-uniscribe.cc | 31 ++++++++++++++++++-------------
+ 1 file changed, 18 insertions(+), 13 deletions(-)
+
+commit 05bad3b8c25a89bc0f20f99f9215e492f48f03fe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 21 17:05:02 2013 -0400
+
+    [uniscribe] Use OT::* types
+
+ src/hb-open-type-private.hh | 10 ++++-
+ src/hb-ot-name-table.hh     |  4 +-
+ src/hb-uniscribe.cc        | 107
+ +++++++++++++++++++++++---------------------
+ 3 files changed, 66 insertions(+), 55 deletions(-)
+
+commit bdeea605fe597bff4430eaae3317189bb81ec76e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 21 16:22:10 2013 -0400
+
+    [uniscribe] Move name generation into separate function
+
+ src/hb-uniscribe.cc | 34 ++++++++++++++++++++++------------
+ 1 file changed, 22 insertions(+), 12 deletions(-)
+
+commit 73f947e2a7bc5b29d731da2e9d1fafe958be839e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 21 16:16:35 2013 -0400
+
+    [uniscribe] Use blob to pass data around
+
+ src/hb-uniscribe.cc | 28 ++++++++++++++--------------
+ 1 file changed, 14 insertions(+), 14 deletions(-)
+
+commit 8ac2e88deff3d069c19fd59d0fbbfb88a762b113
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 21 16:06:49 2013 -0400
+
+    [uniscribe] Use unique font name
+
+    When installing per-process fonts using AddFontMemResourceEx(),
+    if a font with the same family name is already installed, sometimes
+    that one gets used.  Which is problematic for us.  As such, we
+    now mangle the font to install a new 'name' table with a unique
+    name, which we then use to choose the font.
+
+    Patch from Jonathan Kew.
+
+ configure.ac       |   2 +-
+ src/hb-uniscribe.cc | 136
+ ++++++++++++++++++++++++++++++++++++++++++++--------
+ 2 files changed, 116 insertions(+), 22 deletions(-)
+
+commit 8751de50831338ce550601c34c17d152ad89c1fd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 18 16:29:50 2013 -0400
+
+    Followup fix for 3f9e2dced298c3d00f31b2dfc38685bb071a3a22
+
+    During GSUB, if a ligation happens, subsequence context input matching
+    matches the new indexing.  During GPOS however, the indices never
+    change.  So just go one by one.
+
+    Fixes 'dist' positioning with mmrtext.ttf and the following sequence:
+
+      U+1014,U+1039,U+1011,U+1014,U+1039,U+1011,U+1014,U+1039,U+1011
+
+    Reported by Jonathan Kew.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 2b78d67e9f38f77086fbd9c3fd6f1c8c73927a51
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 16 16:06:27 2013 -0400
+
+    0.9.19
+
+ NEWS        | 11 +++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 12 insertions(+), 1 deletion(-)
+
+commit e509d35cf1160f1449bc736b9445cdf61ab81d06
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 11 14:56:45 2013 -0400
+
+    [ft] hb_ft_get_glyph_from_name fails for the name of glyph id 0
+
+    Based on patch from Jonathan Kew, as reported on the mailing list.
+
+ src/hb-ft.cc | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+commit 29b596ac67806c44441e65f3ece227df0fe2bb63
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 8 08:37:15 2013 -0600
+
+    [uniscribe] Fix buffer allocation
+
+    Email from Jonathan Kew:
+
+    My cygwin build kept aborting on certain test words when run with the
+    uniscribe backend. Turned out this was caused by a bug in the
+    allocation
+    of scratch buffers in hb-uniscribe.cc.
+
+    Commit 2a17f9568d9724e045d2c1d660e007f3acd747d9 introduced a new line
+
+      ALLOCATE_ARRAY (SCRIPT_VISATTR, vis_attr, glyphs_size);
+
+    but it failed to account for this in the computation of glyphs_size
+    (the number of glyphs for which scratch buffer space is available),
+    with the result that the vis_clusters array ends up overrunning the
+    end of the scratch buffer and clobbering the beginning of the buffer's
+    info[].
+
+    AFAICS, the vis_attr array is not actually used, so the simple fix is
+    to remove the line that allocates it. (If/when we -do- need to use
+    vis_attr for something, we'll need to add another term to the earlier
+    calculation of glyphs_size.)
+
+    With this patch, the uniscribe backend runs reliably again.
+
+    JK
+
+ src/hb-uniscribe.cc | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 9245e98742667dfffe06523e8051beda1bc04811
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 26 20:57:58 2013 -0400
+
+    [Indic] Add Javanese config
+
+    We should add for other scripts too, send me the virama codepoint
+    and script name...
+
+ src/hb-ot-shape-complex-indic.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 5f85c80a07dd2d18348824866bf4e984ac711a24
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 26 20:14:18 2013 -0400
+
+    [OT] Collect requiredFeature only if features are not provided
+
+    As per Werner's report on the list.
+
+ src/hb-ot-layout.cc | 22 +++++++++++-----------
+ 1 file changed, 11 insertions(+), 11 deletions(-)
+
+commit 3f9e2dced298c3d00f31b2dfc38685bb071a3a22
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 26 19:46:55 2013 -0400
+
+    Fix contextual lookup recursion indexing
+
+    See email thread "Skipping Control for Attaching Marks using OpenType"
+    from earlier this month.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 10 ++--------
+ 1 file changed, 2 insertions(+), 8 deletions(-)
+
+commit f5da11e0fa5adf8f782883dc5c30d8faaafc9c27
+Merge: 79d1007 89312b7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 22 08:04:05 2013 -0700
+
+    Merge pull request #3 from LogosBible/master
+
+    Destroy lookups before blobs.
+
+commit 89312b7417c0198a0635ca6b7e8ea11f6af2a4f8
+Author: Bradley Grainger <bgrainger@gmail.com>
+Date:  Fri Jun 21 15:02:18 2013 -0700
+
+    Destroy lookups before blobs.
+
+    'layout->gsub' may depend on data owned by 'layout->gsub_blob',
+    so it must
+    be deinitialized before the blob is destroyed.
+
+ src/hb-ot-layout.cc | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 79d1007a501fd63c0ba4d51038c513e6b8b94740
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 13 19:01:07 2013 -0400
+
+    If variation selector is not consumed by cmap, pass it on to GSUB
+
+    This changes the semantics of get_glyph() callback and expect that
+    callbacks return false if the requested variant is not available, and
+    then we will call them back with variation_selector=0 and will retain
+    the glyph for the selector in the glyph stream.
+
+    Apparently most Mongolian fonts implement the Mongolian Variation
+    Selectors using GSUB, not cmap.
+
+    https://bugs.freedesktop.org/show_bug.cgi?id=65258
+
+    Note that this doesn't fix the Mongolian shaping yet, because the way
+    that's implemented is that the, say, 'init' feature ligates the letter
+    and the variation-selector.  However, since currently the variation
+    selector doesn't have the 'init' mask on, it will not be matched...
+
+ src/hb-ft.cc                |  3 +--
+ src/hb-ot-shape-normalize.cc | 14 ++++++++++++--
+ 2 files changed, 13 insertions(+), 4 deletions(-)
+
+commit c7a84917208528040aaf9ad0a9a0b26aabeabc9c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 6 20:17:32 2013 -0400
+
+    Skip over multiple variation selectors in a row
+
+ src/hb-ot-shape-normalize.cc | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+commit 7235f33f9e5e031622a00a84f4b2e98f16803579
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jun 10 14:39:51 2013 -0400
+
+    Fix misc warnings reported by cppcheck
+
+    https://bugs.freedesktop.org/show_bug.cgi?id=65544
+
+ src/hb-common.cc           |  2 +-
+ src/hb-coretext.cc         |  3 ---
+ src/hb-font-private.hh      | 17 +++++++++++------
+ src/hb-private.hh          |  2 +-
+ src/hb-shape.cc            |  2 +-
+ test/api/test-font.c       |  1 -
+ util/ansi-print.cc         |  1 +
+ util/hb-ot-shape-closure.cc | 5 +++--
+ util/hb-shape.cc           |  5 ++++-
+ util/shape-consumer.hh      | 6 ++++--
+ util/view-cairo.hh         |  6 ++++--
+ 11 files changed, 30 insertions(+), 20 deletions(-)
+
+commit 570bcccd3f41b9aecd51765a401299833a6d8ebd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jun 10 13:56:51 2013 -0400
+
+    Fix PKG_CHECK_MODULES usage
+
+    Oops.
+
+    Bug 65246 - Fix build without graphite2
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 270cfd7a9c01dfb1b1789929f020943ad63aca99
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 6 18:57:15 2013 -0400
+
+    Fix PKG_CHECK_MODULES usage
+
+    Bug 65246 - Fix build without graphite2
+
+    If we don't provide ACTION-IF-NOT-FOUND, configure aborts if it can't
+    find the libraries.  We handle that ourselves so we don't want the
+    macro to abort.
+
+ configure.ac | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+commit 2fd0e02706857bcaf61bf5151657eac96cfa73b9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 6 17:16:01 2013 -0400
+
+    Minor
+
+ src/Makefile.am | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+commit b4c5c52944a44ba863a22a53035ff561af7318ca
+Author: Chun-wei Fan <fanchunwei@src.gnome.org>
+Date:  Mon Jun 3 17:55:29 2013 +0800
+
+    util/ansi-print.cc: Use fallback implementation for lround on MSVC
+
+    Unfortuately Visual Studio (still) does not support the C99 function
+    lround, so provide a fallback implementation for it.
+
+ util/ansi-print.cc | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+commit a4446b10bfe0a9e7236bf941fa69a96697939e11
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jun 3 18:39:14 2013 -0400
+
+    Fix build for C89 compilers
+
+ test/api/test-buffer.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4ddf937242048c4a044ada4559e26664a0c09b48
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jun 3 18:36:26 2013 -0400
+
+    Remove unnecessary stdint.h include
+
+ src/hb-ucdn/ucdn.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 93a04b8b5e6d8067cb925fdf532aadc24c1d4861
+Author: Chun-wei Fan <fanchunwei@src.gnome.org>
+Date:  Mon Jun 3 17:49:37 2013 +0800
+
+    hb-uniscribe.cc: Re-enable build under Visual Studio
+
+    -Declare hinstLib at the top of block
+    -Fix the definitions of the typedefs of ScriptItemizeOpenType,
+     ScriptShapeOpenType and ScriptPlaceOpenType
+
+ src/hb-uniscribe.cc | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+commit 280e52ae95df0cbee0bb305f5354381bc1d563f4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 30 18:04:24 2013 -0400
+
+    Fix ChangeLog regen
+
+ Makefile.am | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit c1824daefa1253507636e4bfdf46374f835f10b3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 29 15:30:54 2013 -0400
+
+    Update TODO
+
+ TODO | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+commit 2966d3603259430800cb5880491d28a1c5ea2314
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 28 17:34:37 2013 -0400
+
+    Fix test build
+
+ test/api/Makefile.am | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 6873f6cc42aa1405e71be903bd0f39a7a15320ce
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 28 17:33:16 2013 -0400
+
+    Minor
+
+ TODO | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 4014aa4e53bddb29d939a168bd733942d3683732
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 28 17:28:59 2013 -0400
+
+    0.9.18
+
+ NEWS        | 28 ++++++++++++++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 29 insertions(+), 1 deletion(-)
+
+commit d70be29831bb99e34fe18744129088f45d5b2023
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 28 17:23:56 2013 -0400
+
+    Fix dist
+
+ src/Makefile.am | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 22ce0961742df0a213f2cc86ca3d5a72453c00b1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 28 17:18:30 2013 -0400
+
+    Generate harfbuzz-icu.pc
+
+    Currently it only works with ICU that has .pc files.  I'll
+    wait till someone complains before fixing it for icu-config
+    systems.
+
+ Makefile.am           |  3 ---
+ configure.ac          |  5 ++---
+ harfbuzz.pc.in                | 11 -----------
+ src/Makefile.am       | 13 +++++++++++++
+ src/harfbuzz-icu.pc.in | 13 +++++++++++++
+ src/harfbuzz.pc.in    | 11 +++++++++++
+ 6 files changed, 39 insertions(+), 17 deletions(-)
+
+commit d9afa111330771461b6182ada9f4edd68bcfce77
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 28 15:27:40 2013 -0400
+
+    Build hb-icu into libharfbuzz-icu.so
+
+ src/Makefile.am      | 29 +++++++++++++++--------------
+ src/hb-unicode.cc    |  2 +-
+ test/api/Makefile.am |  1 +
+ 3 files changed, 17 insertions(+), 15 deletions(-)
+
+commit 7d395c2a255a44fd0d65365ea9b525dba70c062c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 28 15:25:06 2013 -0400
+
+    Minor
+
+ test/api/test-c.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 2a17f9568d9724e045d2c1d660e007f3acd747d9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 28 13:10:51 2013 -0400
+
+    Bug 55494 - ScriptItemizeOpenType doesn't exists under Windows XP
+
+    Fallback to older API if OpenType variants are not available.
+
+ configure.ac       |  14 +--
+ src/hb-uniscribe.cc | 322
+ +++++++++++++++++++++++++++++++++++++++++++---------
+ 2 files changed, 271 insertions(+), 65 deletions(-)
+
+commit f8087ffbadc83a15d59367ba82976eae675736a7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 27 19:43:48 2013 -0400
+
+    Add --with-cairo
+
+ configure.ac | 17 +++++++++++++++--
+ 1 file changed, 15 insertions(+), 2 deletions(-)
+
+commit 82eddfe5d658ef791d6ef6a566401c50601dfb1c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 27 19:33:36 2013 -0400
+
+    Add --with-freetype
+
+    Defaults to auto.
+
+ configure.ac | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+commit 5e25eb77a49e7f95b6a6d540b26d60d430f89d4c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 27 19:30:48 2013 -0400
+
+    Default glib to auto again
+
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit eb63e786f37468867c81707504128cf8a4016e5b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 27 19:29:09 2013 -0400
+
+    Add --with-coretext
+
+    Defaults to no.
+
+ configure.ac | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+commit ab2af17bc6faa8394656e6e82948dc3e9f437626
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 27 19:27:43 2013 -0400
+
+    Add --with-uniscribe
+
+    Defaults to no.
+
+ configure.ac | 55 +++++++++++++++++++++++++++++++++++++++----------------
+ 1 file changed, 39 insertions(+), 16 deletions(-)
+
+commit 58db2c2542717858acbdf480b3f19a8aef4918cd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 27 19:10:33 2013 -0400
+
+    Disable UCDN if glib is available
+
+    We only want UCDN if we don't have any other Unicode provider.
+    I'm going to remove ICU from the list of default Unicode providers
+    as part of moving hb-icu into its own library.  As such, the only
+    providers will be UCDN and glib.
+
+ configure.ac | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit ca65326cbd49b48792c4e3125af6c5006364f194
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 27 19:09:50 2013 -0400
+
+    Minor
+
+ configure.ac | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+commit 7ae14973ecb4614a83769d2bbd01f33d8474ffc0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 27 19:06:50 2013 -0400
+
+    Disable icu_le shaper
+
+    Will add a way to enable it later.
+
+ configure.ac | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 7e6ebf76236cc5ea69302e68186bdf8166d04a98
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 27 19:05:23 2013 -0400
+
+    Remove icu-config fallback for icu_le shaper
+
+    Bug 64878 - compile error with ICU but not ICU
+
+ configure.ac | 18 ------------------
+ 1 file changed, 18 deletions(-)
+
+commit 932b7471479c639244051b4dbae678e7d47ae99f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 27 19:04:40 2013 -0400
+
+    Bug 65053 - Add configure option to enable/disable ICU support
+
+ configure.ac | 46 ++++++++++++++++++++++++++++------------------
+ 1 file changed, 28 insertions(+), 18 deletions(-)
+
+commit cf2c1c7eb81b54a344ed5cf36d5fbd3cd297eed1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 27 18:54:30 2013 -0400
+
+    Disable hb-old shaper
+
+    Will add proper way to enable it later.
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 5a78d23f255a649353044af8e5df315f62907b7f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 27 18:47:58 2013 -0400
+
+    Bug 65054 - Add configure option to enable/disable Graphite2
+
+    Add --with-graphite2.  Defaults to off.
+
+ configure.ac | 20 +++++++++++++++-----
+ 1 file changed, 15 insertions(+), 5 deletions(-)
+
+commit 61e7775fa75c7c1bdc29a6992c8c215897364600
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 27 18:24:56 2013 -0400
+
+    Remove hb-icu dependency from hb-icu-le shaper
+
+ src/hb-icu-le.cc | 33 +++++++++++++++++++++++++++++----
+ 1 file changed, 29 insertions(+), 4 deletions(-)
+
+commit 7e08f1258da229dfaf7e1c4b5c41e5bb83906cb0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 27 14:48:34 2013 -0400
+
+    Don't zero advance of mark-non-mark ligatures
+
+    If there's a mark ligating forward with non-mark, they were
+    inheriting the GC of the mark and later get advance-zeroed.
+    Don't do that if there's any non-mark glyph in the ligature.
+
+    Sample test: U+1780,U+17D2,U+179F with Kh-Metal-Chrieng.ttf
+
+    Also:
+    Bug 58922 - Issue with mark advance zeroing in generic shaper
+
+ src/hb-ot-layout-gsubgpos-private.hh | 4 ++++
+ src/hb-ot-layout-private.hh         | 6 ++++++
+ 2 files changed, 10 insertions(+)
+
+commit cf059ac69d10d9eb09f0d2a29b1bd989647bd800
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 24 15:28:11 2013 -0400
+
+    [icu_le] Support non-BMP text
+
+ src/hb-icu-le.cc | 35 ++++++++++++++++++++++++++++-------
+ 1 file changed, 28 insertions(+), 7 deletions(-)
+
+commit a447c528e68cabc9ca6e24e2c436f3d605ef9aaa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 23 17:05:39 2013 -0400
+
+    [icu_le] A bit better scaling
+
+ src/hb-icu-le.cc | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+commit fb502a22787f4110472771ef771619342e64577a
+Merge: b9408d2 9d9e72e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 23 15:54:52 2013 -0400
+
+    Merge commit '9d9e72e94e7914f82ce62a304e7242f79c13edaf'
+
+commit b9408d24f3029f5287b17779235b1c750ff5158a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 23 15:43:02 2013 -0400
+
+    [icu_le] Fix scaling
+
+    Seems to work...
+
+ src/hb-icu-le.cc                      |  2 ++
+ src/hb-icu-le/PortableFontInstance.cpp | 23 +++++++++++++++--------
+ src/hb-icu-le/PortableFontInstance.h  |  9 ++++++++-
+ 3 files changed, 25 insertions(+), 9 deletions(-)
+
+commit 601526392dec5d8432f147c91658ba50ed6a4322
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 21 17:22:13 2013 -0400
+
+    Copy stdint.h boilerplate to ucdn
+
+ src/hb-ucdn/ucdn.h | 24 +++++++++++++++++++++++-
+ 1 file changed, 23 insertions(+), 1 deletion(-)
+
+commit f1b02f4f3c0db9fbfa6747188429df828b000010
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 20 09:23:58 2013 -0400
+
+    0.9.17
+
+ NEWS        | 8 ++++++++
+ configure.ac | 2 +-
+ 2 files changed, 9 insertions(+), 1 deletion(-)
+
+commit d785fa0c45f7f25f5e5f352b933a5f6fa29be5c0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 20 09:18:52 2013 -0400
+
+    Minor refactoring
+
+ src/hb-ot-shape.cc | 54
+ ++++++++++++++++++++++++++++--------------------------
+ 1 file changed, 28 insertions(+), 26 deletions(-)
+
+commit 127daf15e0b2f509ebd29a104236c8b38884efb0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 20 09:11:35 2013 -0400
+
+    Arabic mark width-zeroing regression
+
+    Mozilla Bug 873902 - Display Arabic text with diacritics is bad
+    https://bugzilla.mozilla.org/show_bug.cgi?id=873902
+
+ src/hb-ot-shape-complex-arabic.cc  |  2 +-
+ src/hb-ot-shape-complex-default.cc |  2 +-
+ src/hb-ot-shape-complex-myanmar.cc |  2 +-
+ src/hb-ot-shape-complex-private.hh |  6 ++++--
+ src/hb-ot-shape-complex-thai.cc    |  2 +-
+ src/hb-ot-shape.cc                | 36
+ ++++++++++++++++++++++++++++--------
+ 6 files changed, 36 insertions(+), 14 deletions(-)
+
+commit fa3d0a0ce60a9fcf2b7f906dec916463b1319eda
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 14 15:30:55 2013 -0400
+
+    Bug 64476 - Typo in hb_set_t.get_min()
+
+    Fixes previous commit's test.
+
+ src/hb-set-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit dfbd115e6c1a86a5f1b8d15200672f1e9410b5de
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 14 15:30:17 2013 -0400
+
+    [test] Add test for hb_set_get_min() bug
+
+    Failing now.
+
+    Bug 64476 - Typo in hb_set_t.get_min()
+
+ test/api/test-set.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 9d9e72e94e7914f82ce62a304e7242f79c13edaf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 3 18:10:10 2013 -0400
+
+    [OTLayout] Use is_inplace() when flipping buffers
+
+ src/hb-ot-layout.cc | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+commit 45f3d980c9503bd94e64f6e3f67f97688347d00c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 3 17:49:44 2013 -0400
+
+    [OTLayout] Merge / templateize apply_string()
+
+ src/hb-ot-layout-gpos-table.hh | 25 ---------------
+ src/hb-ot-layout-gsub-table.hh | 48 ----------------------------
+ src/hb-ot-layout.cc           | 72
+ ++++++++++++++++++++++++++++++++++++++++--
+ 3 files changed, 69 insertions(+), 76 deletions(-)
+
+commit e015b8f2187d1102b9c34d1a63504e7b05ee20ee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 3 17:34:29 2013 -0400
+
+    [OTLayout] Minor
+
+ src/hb-ot-layout-gpos-table.hh | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+commit 780cd930a974165d76dbf7a87701d11b7f15db06
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 3 17:33:16 2013 -0400
+
+    [OTLayout] Minor
+
+ src/hb-ot-layout-gpos-table.hh | 2 +-
+ src/hb-ot-layout-gsub-table.hh | 2 +-
+ src/hb-ot-layout.cc           | 4 ++--
+ 3 files changed, 4 insertions(+), 4 deletions(-)
+
+commit 2e0c44f4bedd3e24c731c0e9e23358e9a4891a35
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 24 16:42:05 2013 -0400
+
+    [OTLayout] Add is_inplace() method to GSUB
+
+ src/hb-ot-layout-gpos-table.hh       |   8 +-
+ src/hb-ot-layout-gsub-table.hh       |  58 ++++++++++++-
+ src/hb-ot-layout-gsubgpos-private.hh | 158
+ +++++++++++++++++++++++++++++++++++
+ 3 files changed, 222 insertions(+), 2 deletions(-)
+
+commit bac1dd6a0ff4d4fae4254506d38ae662b7e9dda7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 2 18:52:24 2013 -0400
+
+    [OTLayout] Refactor a bit more
+
+ src/hb-ot-layout-gsubgpos-private.hh      |  10 +--
+ src/hb-ot-layout-private.hh               |  26 ++++----
+ src/hb-ot-layout.cc                       | 100
+ ++++++++++++++---------------
+ src/hb-ot-map-private.hh                  |   7 +-
+ src/hb-ot-shape-complex-arabic-fallback.hh |  7 +-
+ src/hb-ot-shape-fallback.cc               |   3 +-
+ 6 files changed, 78 insertions(+), 75 deletions(-)
+
+commit d2c96819de9a7428b65ef0adf794416224221f36
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 2 18:18:24 2013 -0400
+
+    Move code around
+
+ src/hb-ot-layout.cc | 52
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-ot-map.cc    | 43 -------------------------------------------
+ 2 files changed, 52 insertions(+), 43 deletions(-)
+
+commit 45fd9424c723f115ca98995b8f8a25185a6fc71d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 2 18:06:51 2013 -0400
+
+    [OTLayout] Add hb_ot_layout_lookup_accelerator_t
+
+ src/hb-ot-layout-private.hh               | 21 +++++++++++++++++--
+ src/hb-ot-layout.cc                       | 33
+ +++++++++++++++---------------
+ src/hb-ot-shape-complex-arabic-fallback.hh | 10 +++++----
+ 3 files changed, 41 insertions(+), 23 deletions(-)
+
+commit 76ea563673d24ae1673a5aa3a21da6014479d433
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 4 16:01:20 2013 -0400
+
+    [OTLayout] Add note about collect_glyphs() and recursive lookups
+
+ src/hb-ot-layout-gsubgpos-private.hh | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+commit a8bf0e91f18341e1e20f4e3341fc7dcdd0c990e1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 3 14:45:04 2013 -0400
+
+    Add U+061C ARABIC LETTER MARK to Default_Ignorable
+
+ src/hb-unicode-private.hh | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 5d59f999204aedfc433ab4989664d875f96b0364
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 2 14:44:45 2013 -0400
+
+    [OTLayout] Make MultipleSubst in-place for sequences of len=1
+
+ src/hb-ot-layout-gsub-table.hh | 15 +++++++++++----
+ 1 file changed, 11 insertions(+), 4 deletions(-)
+
+commit 54f84a6b8571ac7aaaa66f3eff562d23d69d7552
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 2 15:27:53 2013 -0400
+
+    [OTLayout] Whitespace
+
+ src/hb-ot-layout-gsub-table.hh | 56
+ +++++++++++++++++++++---------------------
+ 1 file changed, 28 insertions(+), 28 deletions(-)
+
+commit 3276c354daaff3acabecff11f8e4b5c54d53fc25
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 2 15:16:59 2013 -0400
+
+    [OTLayout] Minor refactoring
+
+ src/hb-ot-map-private.hh |  4 ++++
+ src/hb-ot-map.cc        | 46
+ +++++++++++++++++++++++++---------------------
+ 2 files changed, 29 insertions(+), 21 deletions(-)
+
+commit ea86efa486a5076e9bf844239bccf86d67577f88
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 2 14:41:39 2013 -0400
+
+    Minor
+
+ src/hb-ot-map-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 8b63efb6f80b2e9b2de5ec6ab24d6e15826565cb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 2 14:29:32 2013 -0400
+
+    Minor
+
+ src/hb-buffer-private.hh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 2265be0a620bc76ab65f12fedde67791beb51314
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 2 14:25:09 2013 -0400
+
+    Minor
+
+ src/hb-ot-map-private.hh   | 17 ++++++++++-------
+ src/hb-ot-map.cc          |  2 ++
+ src/hb-ot-shape-private.hh |  3 +--
+ 3 files changed, 13 insertions(+), 9 deletions(-)
+
+commit e6f19af08717a6a63ad0b5bf4bf368778edc63f0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 2 13:59:46 2013 -0400
+
+    Minor
+
+ src/hb-set-private.hh | 16 +++++++++-------
+ 1 file changed, 9 insertions(+), 7 deletions(-)
+
+commit 6c15ddfe2b45383824b64058ae69939d002183a6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 30 11:34:00 2013 -0400
+
+    Renamed DEBUG to something else
+
+    Some infrastructures use DEBUG as a generic symbol.
+
+ src/hb-buffer.cc  | 6 +++---
+ src/hb-private.hh | 4 ++--
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+commit 00b93f6610f36d8d14ca65fb99864be6d5bdb1ea
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 29 13:48:49 2013 -0400
+
+    Fix icu linking by requesting the library searchpath from icu-config
+
+    This is not ideal as we don't like -L/usr/lib in our linker line.
+    But this is only relevant to environments that don't have pkgconfig
+    files for ICU...
+
+    https://github.com/behdad/harfbuzz/pull/2
+
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 03adf38b22a37216dffac50d075ea9c881f1a22d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 29 13:40:52 2013 -0400
+
+    Make both old autoconf and new automake happy
+
+    Sigh..
+
+    Bug 64039 - undefined macro AM_PROG_AR
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ed79dff517bacfc87279079d5d42d079c21a0373
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Apr 21 15:39:25 2013 -0400
+
+    Minor
+
+ src/hb-ot-layout-gpos-table.hh | 5 -----
+ 1 file changed, 5 deletions(-)
+
+commit 893f57b32f01da3411b5596d59170bc340e9fa39
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Apr 21 15:21:49 2013 -0400
+
+    Minor renaming
+
+ src/hb-ot-map-private.hh | 10 +++++-----
+ src/hb-ot-map.cc        | 22 +++++++++++-----------
+ 2 files changed, 16 insertions(+), 16 deletions(-)
+
+commit 8ac3c9c0b6b8e76bce282825b9bb706c0c78c2a6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Apr 21 15:19:38 2013 -0400
+
+    Rename "pause" to "stage"
+
+    The compile() function is starting to become illegible...
+
+ src/hb-ot-map-private.hh | 24 ++++++++++++------------
+ src/hb-ot-map.cc        | 38 +++++++++++++++++++-------------------
+ 2 files changed, 31 insertions(+), 31 deletions(-)
+
+commit dd0641a432691f9b6186b081c38053858c8bc5c1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Apr 21 15:13:57 2013 -0400
+
+    Minor
+
+ src/hb-ot-map.cc | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit 06a44e859328f5f1e2f6034e711b474116d22e22
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Apr 21 15:13:08 2013 -0400
+
+    Remove unneeded code
+
+    We always push a pause at the end such that each lookup falls
+    in exactly
+    one pause_map_t.  Now, only if I can find a better name for that...
+
+ src/hb-ot-map-private.hh |  2 +-
+ src/hb-ot-map.cc        | 12 +-----------
+ 2 files changed, 2 insertions(+), 12 deletions(-)
+
+commit a408d2375aa2ad96b58e56aef18e5000daf2516b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 19 16:32:06 2013 -0400
+
+    0.9.16
+
+ NEWS        | 13 ++++++++++++-
+ configure.ac |  2 +-
+ 2 files changed, 13 insertions(+), 2 deletions(-)
+
+commit 8659c636087e433f56da458351e8b4d85fdb347c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 19 14:33:17 2013 -0400
+
+    Hand-code bsearch in the hot inner loop.
+
+    Saves another 3 / 4 percent with Amiri.
+
+ src/hb-open-type-private.hh | 29 +++++++++++++++--------------
+ 1 file changed, 15 insertions(+), 14 deletions(-)
+
+commit 797d76d07f80d796a825d850772087104e5a2575
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 18 19:04:12 2013 -0400
+
+    Minor
+
+ src/hb-ot-layout-common-private.hh | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit e4046080c5d785c8dbf9ec9e3478ab9acc83e479
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 17 23:49:54 2013 -0400
+
+    [util] Unbreak --show-text / --show-unicode
+
+ util/shape-consumer.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 0dc3a4e0349d28f387a3b4c60a2f51962742738e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 17 23:04:03 2013 -0400
+
+    Obssesive optimization
+
+    Not measurable by any means, but conceptually this is faster since
+    the mask matches more often than the digest.
+
+ src/hb-ot-layout-gpos-table.hh | 4 ++--
+ src/hb-ot-layout-gsub-table.hh | 8 ++++----
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+commit f9a611026785a80baa4cbff31ad0847beb70ca9a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 17 19:01:49 2013 -0400
+
+    Remove HB_DEBUG_SET_DIGESTS
+
+    Wasn't correct with the new combiner.  I should add it back somehow,
+    but for now the digests seem to be working very well...
+
+ src/hb-set-private.hh | 16 +---------------
+ src/hb-set.cc        | 14 --------------
+ 2 files changed, 1 insertion(+), 29 deletions(-)
+
+commit f7466ee76f2bd3812209426e2c39fe517227406d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 17 18:20:44 2013 -0400
+
+    Remove hb_set_digest_common_bits_t
+
+    Was unused.
+
+ src/hb-set-private.hh | 38 --------------------------------------
+ 1 file changed, 38 deletions(-)
+
+commit 0d5798a137b52d9be7ef88c79e59f9bf01d54f3b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 17 18:19:21 2013 -0400
+
+    Improve hb_set_digest_t
+
+    Make Amiri rendering faster a whopping 45% again!  Speends up pretty
+    much anything I tested.
+
+ src/hb-set-private.hh | 28 +++++++++++++++++++++++-----
+ 1 file changed, 23 insertions(+), 5 deletions(-)
+
+commit c7851efcd3a1e5317ab4ea57535cb755bace0848
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 17 17:45:39 2013 -0400
+
+    Templatize hb_set_digest_lowest_bits_t filter
+
+ src/hb-set-private.hh | 21 +++++++++++++++++----
+ 1 file changed, 17 insertions(+), 4 deletions(-)
+
+commit 0edd0fd255790471118fae1fd7a1309a2b77cf62
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 17 17:26:56 2013 -0400
+
+    Add comment
+
+ src/hb-set-private.hh | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit b40f2c0372acbc51b13be5cda7dd013e74e3e11a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 16 23:21:38 2013 -0400
+
+    Add hb_set_digest_combiner_t
+
+ src/hb-set-private.hh | 33 ++++++++++++++++++++-------------
+ 1 file changed, 20 insertions(+), 13 deletions(-)
+
+commit 02e5e583688999c4dc04f11b3924da65f99af7e3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 16 23:13:10 2013 -0400
+
+    Speed up Speed up hb_set_digest_common_bits_t calcs
+
+    Correctly this time.
+
+ src/hb-set-private.hh | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+commit 893991fc9d2d3a57c4c148f3a9c3b98263cf3aed
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 16 21:50:33 2013 -0400
+
+    Initialize set digests
+
+    We were not initializing the digests properly and as a result
+    they were
+    being initialized to zero, making digest1 to never do any useful work.
+
+    Speeds up Amiri shaping significantly.
+
+ src/hb-ot-layout.cc                       | 6 ++++++
+ src/hb-ot-shape-complex-arabic-fallback.hh | 4 +++-
+ 2 files changed, 9 insertions(+), 1 deletion(-)
+
+commit 4d2813d3e980c8e6150caafa604a78cc44bf62a2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 16 21:57:21 2013 -0400
+
+    Print set-digest hit ratio with HB_DEBUG_SET_DIGESTS
+
+ src/hb-set-private.hh | 13 +++++++++++++
+ src/hb-set.cc        | 13 +++++++++++++
+ 2 files changed, 26 insertions(+)
+
+commit 1357c2dd120d005ceecfa83ed328d05dc634d7bc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 16 21:47:40 2013 -0400
+
+    Revert "Speed up hb_set_digest_common_bits_t calcs"
+
+    This reverts commit 3d1b66a35e1ab3be19335705f310b278d76d66d2.
+
+    The calculations were buggy.  It's not worth optimizing right now.
+
+ src/hb-set-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 2b712bba3f7c459653737dfa2f7d26f17f3b9f64
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 16 16:11:09 2013 -0400
+
+    Fix typo in unused macro
+
+ src/hb-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 50067e280f381918b8e90b26df9e7bf20f98f0bd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 11 16:31:01 2013 -0400
+
+    [util] Add --num-iterations
+
+    Useful for profiling shapers.
+
+ util/options.cc       |  1 +
+ util/options.hh       |  2 ++
+ util/shape-consumer.hh | 15 +++++++++------
+ 3 files changed, 12 insertions(+), 6 deletions(-)
+
+commit 08677c250767bfc2c0dd1fc934dea92984741291
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 11 14:45:58 2013 -0400
+
+    [old] Speed up Unicode properties access in hb-old shaper
+
+    Just to be sure it's not punishing the old shaper performance
+    numbers.  Doesn't seem to have a measurable effect.
+
+ src/hb-old/harfbuzz-arabic.c  | 44
+ +++++++++++++++++++++---------------------
+ src/hb-old/harfbuzz-external.h | 18 ++++++++---------
+ src/hb-old/harfbuzz-greek.c   |  2 +-
+ src/hb-old/harfbuzz-hebrew.c  |  2 +-
+ src/hb-old/harfbuzz-indic.cpp | 10 +++++-----
+ src/hb-old/harfbuzz-shaper.cpp |  6 ++++--
+ src/hb-old/harfbuzz-shaper.h  |  1 +
+ 7 files changed, 43 insertions(+), 40 deletions(-)
+
+commit 36a661c0a03d958b95c9ea64a435b55bcd99c3d6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 11 13:38:37 2013 -0400
+
+    [git.mk] Update
+
+ git.mk | 33 ++++++++++++++++++++-------------
+ 1 file changed, 20 insertions(+), 13 deletions(-)
+
+commit ef9e02eddfc9a37d50723e96839635d79191d849
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 9 14:06:54 2013 -0400
+
+    Minor
+
+ src/test.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 22e47456154ca0b8173268486e56ef3a0e1e7150
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 5 18:02:43 2013 -0400
+
+    0.9.15
+
+ NEWS        | 10 ++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+commit 4d4fc920496c95621d5bb4800282ea8c028cdde3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 5 17:58:25 2013 -0400
+
+    [git.mk] Ignore ar-lib
+
+ git.mk | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 587e5753e088b4d0b82c74ddbde790a8369a7517
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 5 12:38:58 2013 -0400
+
+    Add note re Hangul shaping
+
+ src/hb-ot-shape-complex-private.hh | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+commit 269de14dda7a86a20917fa9ea6a5864929c41364
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 4 23:06:54 2013 -0400
+
+    Don't compose Hangul jamo
+
+    See thread "an issue regarding discrepancy between Korean and Unicode
+    standards" on the mailing list for the rationale.  In short: Uniscribe
+    doesn't, so fonts are designed to work without it.
+
+ src/hb-ot-shape-complex-default.cc   |  6 ------
+ src/hb-ot-shape-normalize-private.hh |  1 -
+ src/hb-ot-shape-normalize.cc        | 11 +++++------
+ 3 files changed, 5 insertions(+), 13 deletions(-)
+
+commit 1f970609850bb4999b94e1e11b764ab4279cbd38
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 4 15:02:03 2013 -0400
+
+    Put back MemoryBarrier fallback implementation on MINGW32
+
+    This almost reverts 2761e8a632c14353f286708898be8df6ebad7407,
+    but only if under MINGW32, so it doesn't affect MSVC.
+
+ src/hb-atomic-private.hh | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit f368ba4a9edec4e297616698097546e8e6c89e53
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 4 14:25:36 2013 -0400
+
+    [Arabic] Zero marks by GDEF, not Unicode category
+
+    Testing shows that this is closer to what Uniscribe does.
+
+    Reported by Khaled Hosny:
+
+    """
+    commit 568000274c8edb5f41bc4f876ce21fcc8bdaeed8
+    ...
+    This commit is causing a regression with Amiri, the string
+    “هَٰذ” with
+    Uniscribe and HarfBuzz before this commit, gives:
+
+       [uni0630.fina=3+965|uni0670.medi=0+600|uni064E=0@-256,0+0|uni0647.init=0+926]
+
+    But now it gives:
+
+       [uni0630.fina=3+965|uni0670.medi=0+0|uni064E=0@-256,0+0|uni0647.init=0+926]
+
+    i.e. uni0670.medi is zeroed though it has a base glyph GDEF class.
+    """
+
+    The test case is U+0647,U+064E,U+0670,U+0630 with Amiri.
+
+ src/hb-ot-shape-complex-arabic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 3b80674c50b8c3133848a4034f7106b2b9bfe224
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 4 12:06:46 2013 -0400
+
+    Bug 63107 - FTBFS on ppc64: symbols marked with 'D' on powerpc64
+    instead
+
+ src/check-symbols.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 7148dc1a978610af25b4f490691a62d709c8c463
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 2 14:08:53 2013 -0400
+
+    [graphite2] Don't crash if language is not set
+
+    https://bugs.webkit.org/show_bug.cgi?id=113796
+
+ src/hb-graphite2.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit a88a62f70f87563725d47b9b6824565e5d6b78ab
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Mar 21 21:02:16 2013 -0400
+
+    Minor
+
+ src/hb-ot-shape-normalize.cc | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+commit 0a2b2a505b647f6b4802750c87cd9c5f0baaadef
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Mar 21 16:26:39 2013 -0400
+
+    Remove gthread leftovers
+
+    We don't use gthread anymore, remove leftovers.
+
+ configure.ac        | 6 ------
+ test/api/Makefile.am | 4 ++--
+ test/api/hb-test.h   | 3 ---
+ 3 files changed, 2 insertions(+), 11 deletions(-)
+
+commit b93de1ea085bfc0661ce3ad0e21fb5eba722c951
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Mar 21 16:25:20 2013 -0400
+
+    Minor
+
+ configure.ac | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+commit f872a17462a75a3493623747bf3a3fbe54556c7b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Mar 21 13:38:06 2013 -0400
+
+    0.9.14
+
+ NEWS        | 14 ++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 15 insertions(+), 1 deletion(-)
+
+commit cc50bf5b13bfe88137fa7a42782872c40fb9aefb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Mar 19 06:59:40 2013 -0400
+
+    Remove Hangul filler characters from Default_Ignorable chars
+
+    See discussion on mailing list.
+
+ src/hb-unicode-private.hh                                     |
+ 10 +++++++---
+ .../texts/in-tree/shaper-default/script-hangul/misc/misc.txt  |  1 +
+ 2 files changed, 8 insertions(+), 3 deletions(-)
+
+commit a8cf7b43fa795150ae3d42d64424bb6e0373d0b2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Mar 19 05:53:26 2013 -0400
+
+    [Indic] Futher adjust ZWJ handling in Indic-like shapers
+
+    After the Ngapi hackfest work, we were assuming that fonts
+    won't use presentation features to choose specific forms
+    (eg. conjuncts).  As such, we were using auto-joiner behavior
+    for such features. It proved to be troublesome as many fonts
+    used presentation forms ('pres') for example to form conjuncts,
+    which need to be disabled when a ZWJ is inserted.
+
+    Two examples:
+
+       U+0D2F,U+200D,U+0D4D,U+0D2F with kartika.ttf
+       U+0995,U+09CD,U+200D,U+09B7 with vrinda.ttf
+
+    What we do now is to never do magic to ZWJ during GSUB's main input
+    match for Indic-style shapers.  Note that backtrack/lookahead
+    are still
+    matched liberally, as is GPOS.  This seems to be an acceptable
+    compromise.
+
+    As to the bug that initially started this work, that one needs to
+    be fixed differently:
+
+      Bug 58714 - Kannada u+0cb0 u+200d u+0ccd u+0c95 u+0cbe does not
+      provide same results as Windows8
+      https://bugs.freedesktop.org/show_bug.cgi?id=58714
+
+    New numbers:
+
+    BENGALI: 353689 out of 354188 tests passed. 499 failed (0.140886%)
+    DEVANAGARI: 707305 out of 707394 tests passed. 89 failed (0.0125814%)
+    GUJARATI: 366349 out of 366457 tests passed. 108 failed (0.0294714%)
+    GURMUKHI: 60706 out of 60747 tests passed. 41 failed (0.067493%)
+    KANNADA: 951030 out of 951913 tests passed. 883 failed (0.0927606%)
+    KHMER: 299070 out of 299124 tests passed. 54 failed (0.0180527%)
+    LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
+    MALAYALAM: 1048102 out of 1048334 tests passed. 232 failed
+    (0.0221304%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271666 out of 271847 tests passed. 181 failed (0.0665816%)
+    TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%)
+    TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
+    TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
+
+ src/hb-ot-layout-gsubgpos-private.hh              | 30
+ ++++++++--------------
+ src/hb-ot-layout-private.hh                       |  4 +--
+ src/hb-ot-layout.cc                               |  8 +++---
+ src/hb-ot-map-private.hh                          |  8 +++---
+ src/hb-ot-map.cc                                  | 18 ++++++-------
+ src/hb-ot-shape-complex-arabic-fallback.hh        |  2 +-
+ src/hb-ot-shape-complex-indic.cc                  | 30
+ +++++++++++-----------
+ src/hb-ot-shape-complex-myanmar.cc                |  4 +--
+ src/hb-ot-shape-complex-sea.cc                            |  4 +--
+ src/hb-ot-shape-fallback.cc                       |  2 +-
+ .../indic/script-bengali/misc/misc.txt                    |  1 +
+ .../indic/script-malayalam/misc/misc.txt          |  1 +
+ 12 files changed, 53 insertions(+), 59 deletions(-)
+
+commit 8226fb56f131362db877dc4be6857c684b8fd022
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Mar 19 05:22:27 2013 -0400
+
+    Allow disabling ICU by using a fake icu-config script
+
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit a1f3e8ccbfad0d1148b905ae008ba63a26090cb9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Mar 11 20:18:49 2013 -0400
+
+    [travis] Install libicu
+
+ .travis.yml | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit 14cfab52daa8d22b843110f32ca09af5bbc855a6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Mar 11 19:53:44 2013 -0400
+
+    Add build system fallback to icu-config
+
+    Ubuntu doesn't (or didn't until recently?) ship icu pkg-config
+    files.  That's quite unfortunate.  Work around it.
+
+    Bug 57608 - ICU Detection fallback for non-pkgconfig systems
+
+ configure.ac | 37 +++++++++++++++++++++++++++++++++++++
+ 1 file changed, 37 insertions(+)
+
+commit 190e19e6842875c7a487c66235300ee6b42fb5da
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Mar 9 20:30:22 2013 -0500
+
+    [ft] Remove TODO items that I'm not going to fix
+
+ src/hb-ft.cc | 7 +------
+ 1 file changed, 1 insertion(+), 6 deletions(-)
+
+commit 392ee97431b368ee74e1b521fd539b69d2efadfb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Mar 9 20:27:55 2013 -0500
+
+    [ft] Remove TODO item re FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH
+
+    That flag is redundant, deprecated, and ignored since April 2011.
+    From FreeType git log:
+
+    commit 8c82ec5b17d0cfc9b0876a2d848acc207a62a25a
+    Author: Behdad Esfahbod <behdad@behdad.org>
+    Date:   Thu Apr 21 08:21:37 2011 +0200
+
+       Always ignore global advance.
+
+       This makes FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH redundant,
+       deprecated, and ignored.  The new behavior is what every
+       major user
+       of FreeType has been requesting.  Global advance is broken in many
+       CJK fonts.  Just ignoring it by default makes most sense.
+
+       * src/truetype/ttdriver.c (tt_get_advances),
+       src/truetype/ttgload.c (TT_Get_HMetrics, TT_Get_VMetrics,
+       tt_get_metrics, compute_glyph_metrics, TT_Load_Glyph),
+       src/truetype/ttgload.h: Implement it.
+
+       * docs/CHANGES: Updated.
+
+ src/hb-ft.cc | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit c5d91f39802078fc6f6de71940739ec4d04eca07
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Mar 9 04:34:21 2013 -0500
+
+    Add hb_auto_array_t
+
+ src/hb-private.hh | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit ee5464d17fa4c59f5adaaa13dde70dd5264dbc64
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Mar 9 01:59:30 2013 -0500
+
+    [OTLayout] Move code around
+
+ src/hb-ot-layout-gpos-table.hh |  33 ++++++------
+ src/hb-ot-layout-gsub-table.hh | 115
+ +++++++++++++++++++++--------------------
+ 2 files changed, 75 insertions(+), 73 deletions(-)
+
+commit 9c5a9ee967120c8a968a1160c420e03620d46c24
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Mar 9 01:55:04 2013 -0500
+
+    [OTLayout] Rename process() to dispatch()
+
+ src/hb-open-type-private.hh         |  2 +-
+ src/hb-ot-layout-gpos-table.hh       | 80
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-gsub-table.hh       | 78
+ +++++++++++++++++------------------
+ src/hb-ot-layout-gsubgpos-private.hh | 36 ++++++++--------
+ 4 files changed, 98 insertions(+), 98 deletions(-)
+
+commit 2761e8a632c14353f286708898be8df6ebad7407
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Mar 7 20:51:30 2013 -0500
+
+    [win32] Remove MemoryBarrier() fallback implementation
+
+    I added these because the older mingw32 toolchain didn't have
+    MemoryBarrier().  The newer mingw-w64 toolchain however has.
+    As reported by John Emmas this was causing build failure with
+    MSVC (on glib) because of inline issues.  But that reminded me
+    that we may be taking this path even if the system implements
+    MemoryBarrier as a function, which is a waste.  So, just remove
+    it.
+
+ src/hb-atomic-private.hh | 14 +-------------
+ 1 file changed, 1 insertion(+), 13 deletions(-)
+
+commit ea11abfc5de8bc5cf651b37c9570593eed6a8f9b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 6 20:21:11 2013 -0500
+
+    [build] Port to newer automake recommended syntax
+
+ test/api/Makefile.am | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit c39def9bc71559d59325a2c3282c1cec4286b2ae
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 6 20:20:45 2013 -0500
+
+    Move valgrind suppressions to the correct directory
+
+ test/.valgrind-suppressions    | 0
+ test/api/.valgrind-suppressions | 0
+ 2 files changed, 0 insertions(+), 0 deletions(-)
+
+commit a8ac1d33c731f6200ee472ab6c37a80b72770564
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 6 20:05:34 2013 -0500
+
+    [build] Add AM_PROG_AR
+
+    Newer automake / libtools warns otherwise.
+
+ configure.ac | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 5594c2d112c295147ee69215a2ce9dfd99984aa0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 6 19:37:31 2013 -0500
+
+    [FT] Just return if glyph name not found
+
+    The fallback happens in higher level already.  No need to do here.
+
+ src/hb-ft.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit fb7c182bf92142540bff1ad7fb82de0d115fb2b5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 6 00:53:24 2013 -0500
+
+    [Indic] Minor
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 8144936d072f94104242edf9e7aaa31d315b4094
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Mar 5 20:08:59 2013 -0500
+
+    [Indic] Work around fonts with broken new-spec tables
+
+    See comments, and this thread:
+
+    http://lists.freedesktop.org/archives/harfbuzz/2013-March/002990.html
+
+    Originally reported here:
+
+    https://code.google.com/p/chromium/issues/detail?id=96143
+
+    Doesn't change test suite numbers.
+
+ src/hb-ot-shape-complex-indic.cc | 42
+ +++++++++++++++++++++++++++-------------
+ 1 file changed, 29 insertions(+), 13 deletions(-)
+
+commit dfb799f57572e8123035a42a30f93c7fc4d37692
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Mar 5 17:23:33 2013 -0500
+
+    [travis] Oops.  Run make check, not make test!
+
+ .travis.yml | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 8bdce1cac1be9e79344c1f9a9811d98ed2e5c5fd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Mar 5 02:35:31 2013 -0500
+
+    Run autogen.sh, not configure, in travis-ci
+
+ .travis.yml | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 5f705b437cb116275a8c20366e694d740bce715c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Mar 5 01:37:44 2013 -0500
+
+    Add .travis.yml for continuous building with travis-ci.org
+
+    Notifications sent to IRC channel and mailing list.
+
+ .travis.yml | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+commit cd54d505d1a2467a67e5ff96fe0eb101b953b265
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Mar 4 21:29:38 2013 -0500
+
+    Fix distcheck
+
+ src/Makefile.am | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 22c625a490bbaac52ead2cd29ee49b170e6e9845
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Mar 4 20:56:15 2013 -0500
+
+    [git.mk] Update to commit efc928222179576270c5910416d8055dd7a97896
+
+       Move reusable list of files into variable definitions modules can
+       reuse
+
+ Makefile.am | 22 ++++------------------
+ git.mk      | 59
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
+ 2 files changed, 60 insertions(+), 21 deletions(-)
+
+commit 66f7b3509a121b8f3289ad4c4aed2b5b10a6de2e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Mar 4 18:52:12 2013 -0500
+
+    Add libtool m4 macros to MAINTAINERCLEANFILES
+
+ Makefile.am | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+commit 41732f1fe3ce856d8bb95850635034537b6ba047
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 27 20:40:54 2013 -0500
+
+    [Indic] Help compiler put indic_features table in .rodata
+
+    The overridden "or" operator was preventing the flag expression from
+    being const, and putting the table in .data instead or .rodata.
+
+ src/hb-ot-map-private.hh        |  2 ++
+ src/hb-ot-shape-complex-indic.cc | 24 ++++++++++++------------
+ 2 files changed, 14 insertions(+), 12 deletions(-)
+
+commit 778d7f844cb330289830c95431269db06ba1c969
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 27 18:47:26 2013 -0500
+
+    [buffer] Better parse glyph names
+
+ src/hb-buffer-deserialize-json.rl | 9 ++++++---
+ src/hb-buffer-deserialize-text.rl | 5 ++++-
+ 2 files changed, 10 insertions(+), 4 deletions(-)
+
+commit 20b817ac21147e0a8edbf23ef071c2f4ce6c2b95
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 27 18:39:37 2013 -0500
+
+    [buffer] Implement buffer deserialization for format=json
+
+    Using a ragel machine.
+
+ src/Makefile.am                  |   2 +
+ src/hb-buffer-deserialize-json.rl | 129
+ ++++++++++++++++++++++++++++++++++++++
+ src/hb-buffer-deserialize-text.rl |  52 +--------------
+ src/hb-buffer-serialize.cc       |  45 +++++++++++--
+ src/hb-private.hh                |   6 +-
+ src/hb-shape.cc                  |   2 -
+ src/test-buffer-serialize.cc     |   4 +-
+ 7 files changed, 179 insertions(+), 61 deletions(-)
+
+commit 847794e929831750e97525137ab5e285ccd1064e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 27 17:59:28 2013 -0500
+
+    [buffer] Implement buffer deserialization for format=text
+
+    Using a ragel machine.
+
+ src/Makefile.am                  |   2 +
+ src/hb-buffer-deserialize-text.rl | 169
+ ++++++++++++++++++++++++++++++++++++++
+ src/hb-buffer-private.hh         |   3 +-
+ src/hb-buffer-serialize.cc       |  36 +++-----
+ src/hb-buffer.cc                 |  13 ++-
+ src/hb-buffer.h                  |   2 +-
+ src/hb-private.hh                |   5 +-
+ src/hb-shape.cc                  |   9 +-
+ src/test-buffer-serialize.cc     |  16 +++-
+ 9 files changed, 221 insertions(+), 34 deletions(-)
+
+commit 4ee803b42a3baae4b0f295a07cb7ad591a538e4c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 27 16:09:55 2013 -0500
+
+    [buffer] Fix serializing of buffer with invalid direction
+
+ src/hb-buffer-serialize.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit e54dd26300f50eb19907a9d39269a363279b3e07
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 27 13:01:02 2013 -0500
+
+    [buffer] Start implementing buffer deserialization
+
+ src/Makefile.am             |  12 ++++-
+ src/hb-buffer-serialize.cc   |  64 ++++++++++++++++++++++--
+ src/hb-buffer.h             |   2 +-
+ src/test-buffer-serialize.cc | 114
+ +++++++++++++++++++++++++++++++++++++++++++
+ 4 files changed, 187 insertions(+), 5 deletions(-)
+
+commit bcc8f32b4c46cd73f591924c64a6f63df6eaf9e7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 27 12:02:42 2013 -0500
+
+    [buffer] Minor
+
+ src/hb-buffer-serialize.cc | 10 +++++++---
+ src/hb-buffer.h           |  4 ++--
+ 2 files changed, 9 insertions(+), 5 deletions(-)
+
+commit d3e14aafff60e1314d0ef66e42cdde6bf949bb66
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 27 11:06:36 2013 -0500
+
+    [buffer] Move buffer serialization code to a new file
+
+ Android.mk                |   1 +
+ src/Makefile.am           |   1 +
+ src/hb-buffer-serialize.cc | 251
+ +++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-buffer.cc          | 228 ----------------------------------------
+ 4 files changed, 253 insertions(+), 228 deletions(-)
+
+commit 8da51112696ec8641d7dd9184b7ab1dd48458813
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 27 17:48:31 2013 -0500
+
+    Minor
+
+ src/hb-shape.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 94789fd6012125acc8426dd88df97f03b0948ea5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 26 21:22:37 2013 -0500
+
+    [Indic] Sort pre-base reordering consonants with post-forms
+
+    Before, we were marking them as below-form for initial reordering.
+    However, there is a rule that says "post consonants should follow
+    below consonsnts" for base determination purposes. Malayalam has
+    port-form YA/VA, and RA is pre-base.  As such, for a sequence like
+    YA,Virama,YA,Virama,RA, the correct base is at index 0.  But
+    because the code was seeing RA as a below-base, it was stopping at
+    the second YA as base, instead of jumping it as a post-base.
+
+    By treating prebase-reordering consonants like post-forms, this
+    is fixed.
+
+    MALAYALAM went down from 351 to 265.  Other numbers didn't change:
+
+    BENGALI: 353686 out of 354188 tests passed. 502 failed (0.141733%)
+    DEVANAGARI: 707305 out of 707394 tests passed. 89 failed (0.0125814%)
+    GUJARATI: 366262 out of 366457 tests passed. 195 failed (0.0532122%)
+    GURMUKHI: 60706 out of 60747 tests passed. 41 failed (0.067493%)
+    KANNADA: 950680 out of 951913 tests passed. 1233 failed (0.129529%)
+    KHMER: 299074 out of 299124 tests passed. 50 failed (0.0167155%)
+    LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
+    MALAYALAM: 1048069 out of 1048334 tests passed. 265 failed
+    (0.0252782%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271539 out of 271847 tests passed. 308 failed (0.113299%)
+    TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%)
+    TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
+    TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 6d69a2cec158061ef097c488d08813c9503824b8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 26 19:35:50 2013 -0500
+
+    [tests] Add Malayalam tests frim cibu
+
+ .../indic/script-malayalam/misc/MANIFEST          |   1 +
+ .../indic/script-malayalam/misc/cibu.txt          | 188
+ +++++++++++++++++++++
+ 2 files changed, 189 insertions(+)
+
+commit 1edc6b97b67363d55cfb5914c991ae54d42a6440
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 26 15:01:45 2013 -0500
+
+    Update Android.mk
+
+ Android.mk | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 05d5d3cd63ba2fadfdb62190dd24ef80ee3df40c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 25 23:57:51 2013 -0500
+
+    Fix "comparison between signed and unsigned" warnings
+
+    Patch from Jonathan Kew.
+
+ src/hb-open-type-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 07a52b62115f10caea5c2d174a4272eb9ddb2284
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 25 19:09:57 2013 -0500
+
+    Give up sanitizing after 100 edit requests
+
+    Such fonts are *definitely* really broken. Give up.
+    Limits time spent in sanitize for extremely / deliberately broken
+    fonts.  For example, two fonts with these md5sum / names:
+
+      9343f0a1b8c84b8123e7d201cae62ffd.ttf
+      eb8c978547f09d368fc204194fb34688.ttf
+
+    were spending over a second in sanitize!  Not anymore.
+
+ src/hb-open-type-private.hh | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+commit 29ff25481584e20a2fa39195f295c8eb4bf3bad0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 25 19:04:56 2013 -0500
+
+    Add HB_DEBUG_VERBOSE
+
+    Only affects the verbosity of function name printing right now.
+
+ src/hb-private.hh | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+commit 05686b5f697ed40dd21b330d044c3c286461fb26
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 25 18:19:20 2013 -0500
+
+    0.9.13
+
+ NEWS        | 29 +++++++++++++++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 30 insertions(+), 1 deletion(-)
+
+commit 9e5ac7b8c02c86a4f28c79173a5237503eaa7115
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 25 17:54:10 2013 -0500
+
+    Fix blob test to match c3ba49b6fa1865e8318926eaa6c0f2063d1053bb
+
+ test/api/test-blob.c | 57
+ ++++++++++++++++++++++++++++++++++++++++++++++------
+ 1 file changed, 51 insertions(+), 6 deletions(-)
+
+commit c3ba49b6fa1865e8318926eaa6c0f2063d1053bb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 25 17:06:35 2013 -0500
+
+    Always create sub-blobs in MEMORY_MODE_READONLY
+
+    This fixes a design bug with sanitize and sub-blobs that can
+    cause crashes.  Jonathan and I found and debugged this issue
+    when we tested a corrupt font with the md5sum / filename:
+    ea395483d37af0cb933f40689ff7b60a.  Two hours of intense
+    debugging we found out that the font has overlapping GSUB/GPOS
+    tables, and as such, sanitizing the second table can modify
+    the first one, which can cause all kinds of undefined behavior.
+
+    The correct way to fix this is to make sure sub-blobs are
+    always created readonly, since we consider the parent blob
+    to be a shared resource and can't modify it, even if it *is*
+    writable.
+
+    This essentially makes the READONLY_MAY_MAKE_WRITABLE mode
+    unused...  Maybe we should simply remove / deprecate it.
+
+ src/hb-blob.cc |  2 +-
+ src/hb-blob.h | 26 ++++++++++++++++++++++++++
+ 2 files changed, 27 insertions(+), 1 deletion(-)
+
+commit 57542d7f411c71d9b8110ce6f64090b2c0f6a925
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 21 15:54:05 2013 -0500
+
+    Minor
+
+ src/hb-ot-layout-private.hh | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit d46606e119b48dcca375d6313abd0f93ba5d09c3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 21 15:39:57 2013 -0500
+
+    Port TrueType-kerning to use skippy iterator
+
+    It skips joiners and default ignorables now.  Skips marks too,
+    but only
+    if there is proper GDEF classes for marks.
+
+ src/hb-ot-shape-fallback.cc | 50
+ +++++++++++++++++++++++++--------------------
+ 1 file changed, 28 insertions(+), 22 deletions(-)
+
+commit 722e8b857eafc52e07dee5d9b253b88ed5c5c8ed
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 21 15:37:51 2013 -0500
+
+    Fixup previous commit
+
+    Was not decreasing num_items.  Ouch!
+
+ src/hb-ot-layout-gsubgpos-private.hh | 12 ++++++++----
+ 1 file changed, 8 insertions(+), 4 deletions(-)
+
+commit ba87b8fc89bf745068ccd19264a2631ea0904846
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 21 15:23:39 2013 -0500
+
+    Move code around
+
+ src/hb-ot-shape-fallback-private.hh | 5 +++++
+ src/hb-ot-shape-fallback.cc        | 40
+ +++++++++++++++++++++++++++++++++++++
+ src/hb-ot-shape.cc                 | 38
+ +----------------------------------
+ 3 files changed, 46 insertions(+), 37 deletions(-)
+
+commit 2b2a6e8944144755ab641f2842e36d9a847719f3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 21 15:07:03 2013 -0500
+
+    [OTLayout] Correctly skip Default_Ignorable when match_func not set
+
+    When a match_func was not set on the matcher_t object (ie. from GPOS),
+    then the Default_Ignorables (including joiners) were never skipped.
+    This meant that they were not skipped as they should during GPOS
+    matching.  Fix that.
+
+    A few Indic numbers have "regressed": BENGALI and DEVANAGARI went
+    up from 290 and 58 respectively, but in both cases new results are
+    superior to Uniscribe, as they apply GPOS when we weren't (and
+    Uniscribe isn't) before.
+    BENGALI: 353686 out of 354188 tests passed. 502 failed (0.141733%)
+    DEVANAGARI: 707305 out of 707394 tests passed. 89 failed (0.0125814%)
+    GUJARATI: 366262 out of 366457 tests passed. 195 failed (0.0532122%)
+    GURMUKHI: 60706 out of 60747 tests passed. 41 failed (0.067493%)
+    KANNADA: 950680 out of 951913 tests passed. 1233 failed (0.129529%)
+    KHMER: 299074 out of 299124 tests passed. 50 failed (0.0167155%)
+    LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
+    MALAYALAM: 1047983 out of 1048334 tests passed. 351 failed
+    (0.0334817%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271539 out of 271847 tests passed. 308 failed (0.113299%)
+    TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%)
+    TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
+    TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
+
+ src/hb-ot-layout-gsubgpos-private.hh | 32
+ ++++++++++++++++++++++----------
+ 1 file changed, 22 insertions(+), 10 deletions(-)
+
+commit ff93ac8cb24cbc3d9dc1a2bfb0faa88950f4a507
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 21 14:51:40 2013 -0500
+
+    Minor
+
+ src/hb-ot-layout-gsubgpos-private.hh | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+commit e0486fc1affd3796fb8f664e2e7fc208f1d2106c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 19 00:58:10 2013 -0500
+
+    [tests] Add Myanmar torture tests from Martin Hosken
+
+ .../shaper-myanmar/script-myanmar/misc/MANIFEST    |  1 +
+ .../shaper-myanmar/script-myanmar/misc/torture.txt | 23
+ ++++++++++++++++++++++
+ 2 files changed, 24 insertions(+)
+
+commit a3df9a7bf87aeba7a3d6110cd5e01a65bd0b16d0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 19 00:50:46 2013 -0500
+
+    Minor
+
+    Moving files around
+
+ test/shaping/texts/in-tree/MANIFEST                                   |
+ 2 --
+ test/shaping/texts/in-tree/script-default/MANIFEST                    |
+ 1 -
+ test/shaping/texts/in-tree/script-default/misc/MANIFEST               |
+ 1 -
+ test/shaping/texts/in-tree/script-default/misc/misc.txt               |
+ 1 -
+ test/shaping/texts/in-tree/shaper-default/MANIFEST                    |
+ 2 ++
+ test/shaping/texts/in-tree/shaper-default/script-hangul/MANIFEST      |
+ 1 +
+ test/shaping/texts/in-tree/shaper-default/script-hangul/misc/MANIFEST |
+ 1 +
+ test/shaping/texts/in-tree/shaper-default/script-hangul/misc/misc.txt |
+ 3 +++
+ test/shaping/texts/in-tree/shaper-default/script-tibetan/MANIFEST     |
+ 1 +
+ test/shaping/texts/in-tree/shaper-default/script-tibetan/misc/MANIFEST |
+ 1 +
+ test/shaping/texts/in-tree/shaper-default/script-tibetan/misc/misc.txt |
+ 1 +
+ test/shaping/texts/in-tree/shaper-hangul/MANIFEST                     |
+ 1 -
+ test/shaping/texts/in-tree/shaper-hangul/script-hangul/MANIFEST       |
+ 1 -
+ test/shaping/texts/in-tree/shaper-hangul/script-hangul/misc/MANIFEST  |
+ 1 -
+ test/shaping/texts/in-tree/shaper-hangul/script-hangul/misc/misc.txt  |
+ 3 ---
+ 15 files changed, 10 insertions(+), 11 deletions(-)
+
+commit b1f440759161cb5a54e1b1b910f3a8383b8e8472
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Feb 17 12:12:37 2013 -0500
+
+    [SEA] Fix order of pre-base reordering Ra and left matras
+
+    The code was confused because it was expecting left matra to have
+    POS_PRE_M, like we do in the Myanmar shaper, but that is not what
+    we were doing in this shaper.  Rewrite to rely on category only.
+
+    Test case: U+AA06,U+AA34,U+AA2F
+
+ src/hb-ot-shape-complex-sea.cc                                     | 13
+ +++++++------
+ .../texts/in-tree/shaper-sea/script-cham/misc/misc.txt      | 1 +
+ 2 files changed, 8 insertions(+), 6 deletions(-)
+
+commit 99fa9ea020f26ed2697f38a7690ee1e1b5d946c4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Feb 15 11:47:24 2013 -0500
+
+    Minor
+
+ src/hb-ot-layout-gsub-table.hh | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+commit 27589620ba2dcf356fd7fa21cd80221a07803202
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Feb 15 11:47:09 2013 -0500
+
+    [OTLayout] Remove unused code
+
+ src/hb-open-type-private.hh | 5 -----
+ 1 file changed, 5 deletions(-)
+
+commit ebb77b9c5e357ff7c9badb0f4bf1c3a965c3e91d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Feb 15 09:33:10 2013 -0500
+
+    Remove TODO items that don't make sense
+
+    The spec says those features need to be disabled by default.
+
+ TODO | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit c2a1cdc4c4cc51f4680ebc4ec2c462cb660f9492
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Feb 15 09:27:02 2013 -0500
+
+    [Arabic] Fix shaping of left-joining 'Phags-Pa U+A872
+
+    This is the first character in Unicode to have Arabic left-joining
+    behavior.  Update the machine to recognize that.
+
+    Test case: U+A840,U+A872,U+A840.
+
+ src/hb-ot-shape-complex-arabic.cc | 40
+ +++++++++++++++++++--------------------
+ 1 file changed, 19 insertions(+), 21 deletions(-)
+
+commit 05ac87813d17d9ebbfa315eee3f80f25b53135c5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Feb 15 09:26:41 2013 -0500
+
+    [tests] Add Syriac Alaph shaping test cases
+
+ .../shaper-arabic/script-syriac/misc/MANIFEST     |  1 +
+ .../shaper-arabic/script-syriac/misc/alaph.txt     | 98
+ ++++++++++++++++++++++
+ 2 files changed, 99 insertions(+)
+
+commit c462b32dcb883a7aca066af24c4d28c7a2b7fa28
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Feb 15 07:51:47 2013 -0500
+
+    Disable automatic segment properties guessing
+
+    Before, if one called hb_shape() without setting script, language, and
+    direction on the buffer, hb_shape() was calling
+    hb_buffer_guess_segment_properties() on the user's behalf to guess
+    these.
+
+    This is very dangerous, since any serious user of HarfBuzz must set
+    these properly (specially important is direction). So now, we don't
+    guess properties by default.  People not setting direction will get
+    an abort() now.  If the old behavior is desired (fragile, good for
+    simple testing only), users can call
+    hb_buffer_guess_segment_properties() on the buffer just before calling
+    hb_shape().
+
+ src/hb-fallback-shape.cc | 1 -
+ src/hb-ot-shape.cc      | 2 --
+ src/hb-shape.cc         | 2 --
+ util/options.hh         | 1 +
+ 4 files changed, 1 insertion(+), 5 deletions(-)
+
+commit 7abddbb47a489aaac8e76ac6e700cd815739b1d2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Feb 15 07:46:57 2013 -0500
+
+    Add assertions for a couple programmer errors
+
+ src/hb-shape-plan.cc | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+commit 038c98f6866fe1177b04bd2ae3bb461b2f0fd1ed
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Feb 15 07:41:07 2013 -0500
+
+    Allow disabling of TrueType kerning
+
+    Responds to the same feature tag that GPOS kerning does:
+    'kern' for horizontal and 'vkrn' for vertical.
+
+ TODO              |  2 --
+ src/hb-ot-shape.cc | 55
+ ++++++++++++++++++++++++++++++++++--------------------
+ 2 files changed, 35 insertions(+), 22 deletions(-)
+
+commit 398238a2526d322eb79e255c24634a275473920f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Feb 15 07:40:10 2013 -0500
+
+    Fix partial disabling of default-on features
+
+    Surprisingly, if user ever tried to turn a default feature off
+    partially
+    (say, disable liga for a range), the feature was being turned off
+    globally!  Fixed now.
+
+ src/hb-ot-map.cc | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+commit cb90b1bbe6d27ca6968b70d2dbfea7ab7fb73293
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Feb 15 07:02:08 2013 -0500
+
+    [OTLayout] Respect syllable boundaries for backtrack/lookahead
+    matching
+
+    Originally we meant to match backtrack/lookahead across syllable
+    boundaries.  But a bug in the code meant that this was NOT done for
+    backtrack. We "fixed" that in
+    2c7d0b6b80d412de3fddd443ed1a485ea1cbb03c,
+    but that broke Myanmar shaping.
+
+    We now believe that for Indic-like shapers (which is where syllables
+    are
+    used), all basic shaping forms should be fully contained within their
+    syllables, so now we limit backtrack/lookahead matching to the
+    syllable
+    too.  Unbreaks Myanmar.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit ee9c3a17d0bf263c5eee479fd778db97cff8e189
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Feb 15 06:22:26 2013 -0500
+
+    Minor refactoring
+
+ src/hb-ot-shape-complex-myanmar.cc | 36
+ ++++++++++--------------------------
+ src/hb-ot-shape-complex-sea.cc     | 37
+ ++++++++++---------------------------
+ src/hb-ot-shape.cc                | 17 ++++++-----------
+ 3 files changed, 26 insertions(+), 64 deletions(-)
+
+commit cfc507c5432e6327e8484b07b9e091212653bc92
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 14 10:40:12 2013 -0500
+
+    [Indic-like] Disable automatic joiner handling for basic shaping
+    features
+
+    Not for Arabic, but for Indic-like scripts.  ZWJ/ZWNJ have special
+    meanings in those scripts, so let font lookups take full control.
+
+    This undoes the regression caused by automatic-joiners handling
+    introduced two commits ago.
+
+    We only disable automatic joiner handling for the "basic shaping
+    features" of Indic, Myanmar, and SEAsian shapers.  The "presentation
+    forms" and other features are still applied with automatic-joiner
+    handling.
+
+    This change also changes the test suite failure statistics, such that
+    a few scripts show more "failures".  The most affected is Kannada.
+    However, upon inspection, we believe that in most, if not all, of the
+    new failures, we are producing results superior to Uniscribe.  Hard to
+    count those!
+
+    Here's an example of what is fixed by the recent joiner-handling
+    changes:
+
+      https://bugs.freedesktop.org/show_bug.cgi?id=58714
+
+    New numbers, for future reference:
+
+    BENGALI: 353892 out of 354188 tests passed. 296 failed (0.0835714%)
+    DEVANAGARI: 707336 out of 707394 tests passed. 58 failed (0.00819911%)
+    GUJARATI: 366262 out of 366457 tests passed. 195 failed (0.0532122%)
+    GURMUKHI: 60706 out of 60747 tests passed. 41 failed (0.067493%)
+    KANNADA: 950680 out of 951913 tests passed. 1233 failed (0.129529%)
+    KHMER: 299074 out of 299124 tests passed. 50 failed (0.0167155%)
+    LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
+    MALAYALAM: 1047983 out of 1048334 tests passed. 351 failed
+    (0.0334817%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271539 out of 271847 tests passed. 308 failed (0.113299%)
+    TAMIL: 1091753 out of 1091754 tests passed. 1 failed (9.15957e-05%)
+    TELUGU: 970555 out of 970573 tests passed. 18 failed (0.00185457%)
+    TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
+
+ src/hb-ot-layout-gsubgpos-private.hh      | 35
+ +++++++++++++++++++-----------
+ src/hb-ot-layout-private.hh               |  6 +++--
+ src/hb-ot-layout.cc                       | 10 +++++----
+ src/hb-ot-map-private.hh                  | 12 ++++++----
+ src/hb-ot-map.cc                          | 32
+ +++++++++++++++++++++------
+ src/hb-ot-shape-complex-arabic-fallback.hh |  2 +-
+ src/hb-ot-shape-complex-indic.cc          | 29 +++++++++++++------------
+ src/hb-ot-shape-complex-myanmar.cc        |  4 ++--
+ src/hb-ot-shape-complex-sea.cc                    |  4 ++--
+ 9 files changed, 85 insertions(+), 49 deletions(-)
+
+commit 0b45479198d61d5135dad771e9c68408eb13f930
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 14 10:46:52 2013 -0500
+
+    [OTLayout] Add fine-grained control over ZWJ matching
+
+    Not used yet.  Next commit...
+
+ src/hb-ot-layout-gsubgpos-private.hh | 10 ++++++++--
+ src/hb-ot-layout-private.hh         | 11 +++++++++--
+ 2 files changed, 17 insertions(+), 4 deletions(-)
+
+commit 607feb7cff0e50f8738d2e49ca463fc9d7d494de
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 14 07:43:13 2013 -0500
+
+    [OTLayout] Ignore default-ignorables when matching GSUB/GPOS
+
+    When matching lookups, be smart about default-ignorable characters.
+    In particular:
+
+    Do nothing specific about ZWNJ, but for the other default-ignorables:
+
+    If the lookup in question uses the ignorable character in a sequence,
+    then match it as we used to do.  However, if the sequence match will
+    fail because the default-ignorable blocked it, try skipping the
+    ignorable character and continue.
+
+    The most immediate thing it means is that if Lam-Alef forms a
+    ligature,
+    then Lam-ZWJ-Alef will do to.  Finally!
+
+    One exception: when matching for GPOS, or for backtrack/lookahead of
+    GSUB, we ignore ZWNJ too.  That's the right thing to do.
+
+    It certainly is possible to build fonts that this feature will result
+    in undesirable glyphs, but it's hard to think of a real-world case
+    that that would happen.
+
+    This *does* break Indic shaping right now, since Indic Unicode has
+    specific rules for what ZWJ/ZWNJ mean, and skipping ZWJ is breaking
+    those rules.  That will be fixed in upcoming commits.
+
+ src/hb-ot-layout-gpos-table.hh       |   1 +
+ src/hb-ot-layout-gsub-table.hh       |   2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 279
+ ++++++++++++++++++++++++-----------
+ src/hb-ot-layout-private.hh         |  45 ++++++
+ src/hb-ot-shape-private.hh          |  44 ------
+ 5 files changed, 237 insertions(+), 134 deletions(-)
+
+commit ec5448667b30ad662401c2b4f5fc0da524c013fd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 14 11:25:10 2013 -0500
+
+    Add hb_ot_map_feature_flags_t
+
+    Code cleanup.  No (intended) functional change.
+
+ src/hb-ot-map-private.hh          | 29 +++++++++++++++++---
+ src/hb-ot-map.cc                  | 24 ++++++++---------
+ src/hb-ot-shape-complex-arabic.cc  |  4 +--
+ src/hb-ot-shape-complex-indic.cc   | 55
+ +++++++++++++++++++-------------------
+ src/hb-ot-shape-complex-myanmar.cc |  4 +--
+ src/hb-ot-shape-complex-sea.cc     |  2 +-
+ src/hb-ot-shape.cc                |  6 +++--
+ 7 files changed, 74 insertions(+), 50 deletions(-)
+
+commit e7ffcfafb1108801ac504f18f820e497226bf07f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 14 11:05:56 2013 -0500
+
+    Clean-up add_bool_feature
+
+ src/hb-ot-map-private.hh          |  4 ++--
+ src/hb-ot-shape-complex-arabic.cc  | 16 ++++++++--------
+ src/hb-ot-shape-complex-default.cc |  2 +-
+ src/hb-ot-shape-complex-indic.cc   |  8 ++++----
+ src/hb-ot-shape-complex-myanmar.cc |  8 ++++----
+ src/hb-ot-shape-complex-sea.cc     |  8 ++++----
+ src/hb-ot-shape.cc                | 10 +++++-----
+ 7 files changed, 28 insertions(+), 28 deletions(-)
+
+commit e7562f53fe6a506d2c6d59d6688e4fa468bba462
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 14 11:05:36 2013 -0500
+
+    Fix compile warnings for ragel-generated machines
+
+ src/hb-ot-shape-complex-indic-machine.rl   | 2 +-
+ src/hb-ot-shape-complex-myanmar-machine.rl | 2 +-
+ src/hb-ot-shape-complex-sea-machine.rl     | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+commit 4e51df73a337f7232a7dfa85df78a4f19b24771b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 14 07:42:42 2013 -0500
+
+    [OTLayout] Remove unused function
+
+ src/hb-ot-layout-gsubgpos-private.hh | 5 -----
+ 1 file changed, 5 deletions(-)
+
+commit 8820bb235b1f63e4d93c8a2f5c08b44d89e06b78
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 14 07:41:03 2013 -0500
+
+    [OTLayout] Port apply_lookup to skippy_iter
+
+ src/hb-ot-layout-gsubgpos-private.hh | 50
+ +++++++++++++++++++++++++-----------
+ 1 file changed, 35 insertions(+), 15 deletions(-)
+
+commit dfca269f069dae2f99990dac24da15d316eccb9f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 14 07:20:52 2013 -0500
+
+    [OTLayout] Port ligate_input to skippy_iter
+
+ src/hb-ot-layout-gsubgpos-private.hh | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit 7e53415c2d8859e8b5948a2edb38c39a8f78b825
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 14 06:24:30 2013 -0500
+
+    [OTLayout] Minor fix for apply_lookup()
+
+    Should NOT change behavior, since first glyph is a match.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 16 +++++++++-------
+ 1 file changed, 9 insertions(+), 7 deletions(-)
+
+commit 6880f7e19d44c50e45ecb86d26381aad956d9acb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 13 12:17:25 2013 -0500
+
+    [OTLayout] Make table type known to apply context
+
+ src/hb-ot-layout-gsubgpos-private.hh      | 5 ++++-
+ src/hb-ot-layout.cc                       | 4 ++--
+ src/hb-ot-shape-complex-arabic-fallback.hh | 2 +-
+ 3 files changed, 7 insertions(+), 4 deletions(-)
+
+commit 2c7d0b6b80d412de3fddd443ed1a485ea1cbb03c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 13 12:10:08 2013 -0500
+
+    [OTLayou] Unbreak backtrack matching
+
+    Was introduced by 28b9d502bb69a8045818d5f6113ded9c59a56bd7.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+
+commit c074ebc466dcc9bcc0d8a5dd7e942dea974ff718
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 13 11:22:42 2013 -0500
+
+    [OTLayout] Minor refactoring
+
+ src/hb-ot-layout-gpos-table.hh       |  9 ++++++---
+ src/hb-ot-layout-gsubgpos-private.hh | 30 +++++++++++++++++-------------
+ 2 files changed, 23 insertions(+), 16 deletions(-)
+
+commit 407fc12466ef460d0edf11b89f0d04c4d724875f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 13 11:13:06 2013 -0500
+
+    [OTLayout] Remove bogus caching of glyph property
+
+ src/hb-ot-layout-gpos-table.hh       | 21 ++++++++-----------
+ src/hb-ot-layout-gsub-table.hh       |  7 +++----
+ src/hb-ot-layout-gsubgpos-private.hh | 40
+ ++++++++++++++----------------------
+ 3 files changed, 26 insertions(+), 42 deletions(-)
+
+commit 6b1e3502e23c110dd810f854ba021f83baab1548
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 13 11:02:54 2013 -0500
+
+    Remember ZWNJ
+
+    To be used in upcoming changes.
+
+ src/hb-ot-shape-private.hh | 11 +++++++++--
+ 1 file changed, 9 insertions(+), 2 deletions(-)
+
+commit 1f91c39677f840a1f630696d16d083060069abf5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 13 09:38:40 2013 -0500
+
+    Indent
+
+ src/hb-ot-shape-complex-indic.cc | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+commit a0cb9f33ee064628debe8e848094dfd661334640
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 13 09:26:55 2013 -0500
+
+    [Indic] Improve base finding in final_reordering
+
+    Fixes 5 Malayalam failures!
+
+    MALAYALAM: 1048016 out of 1048334 tests passed. 318 failed
+    (0.0303338%)
+
+ src/hb-ot-shape-complex-indic.cc | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+commit 126f39cd16cea87b2696f66467c83a585bd4c2cf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 13 08:29:21 2013 -0500
+
+    Add more dot-reph tests
+
+ .../shaper-indic/indic/script-malayalam/misc/dot-reph.txt     |
+ 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+commit f22b7e77783fa2f44365e0fe6413c4474c07048d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 13 07:32:46 2013 -0500
+
+    [Indic] Track base position when reordering things
+
+    Ouch, how did things ever work without this?!  The added test that
+    has a
+    dot-reph as well as a pre-base reordering Ra perfectly demonstrates
+    the
+    bug (tested with Nirmala font from Win8 for example).  Testing
+    suggests
+    that Win8 shaper has the *exact* same bug / behavior that we used to
+    have.  Odd.
+
+ src/hb-ot-shape-complex-indic.cc                                   |
+ 6 ++++++
+ .../in-tree/shaper-indic/indic/script-malayalam/misc/dot-reph.txt   | 1 +
+ 2 files changed, 7 insertions(+)
+
+commit bc11de144c0a7a95fa0945aa7f053d8117af282a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 13 05:59:06 2013 -0500
+
+    [SEA] Don't zero any mark advances
+
+    Keep the logic simple, easier to explain to font developers.
+
+ src/hb-ot-shape-complex-sea.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 0291a6528685f1f593707655943fb2360579cb9e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 13 05:57:24 2013 -0500
+
+    Further adjust mark advance zeroing
+
+    This is a followup to 568000274c8edb5f41bc4f876ce21fcc8bdaeed8.
+    Looks like in the Latin shaper, Uniscribe zeroes all Unicode NSM
+    advances *after* GPOS, not before. Match that.
+
+    Can be tested using DejaVu Sans Mono, since that font has GPOS
+    rules to zero the mark advances on its own.
+
+ src/hb-ot-shape.cc | 33 +++++++++++++++++++++++----------
+ 1 file changed, 23 insertions(+), 10 deletions(-)
+
+commit 85c51ec2e1d518019e32801ae38659c74fc20d80
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 18:17:39 2013 -0500
+
+    [Indic] Fix Eyelash Ra with old Devanagari spec
+
+ src/hb-ot-shape-complex-indic.cc | 32 ++++++++++++++++++++++++++++++++
+ 1 file changed, 32 insertions(+)
+
+commit cc5f24cde079b451799562b3af7ce06d932cbe6b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 18:17:12 2013 -0500
+
+    [tests] Add tests for Devanagary Eyelash Ra
+
+    Currently broken with Sanskrit 2003 font.
+
+ .../texts/in-tree/shaper-indic/indic/script-devanagari/misc/MANIFEST  |
+ 1 +
+ .../in-tree/shaper-indic/indic/script-devanagari/misc/eyelash.txt     |
+ 3 +++
+ 2 files changed, 4 insertions(+)
+
+commit 63e48bc33b68f940c351af623a55a4cf650db102
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 17:57:49 2013 -0500
+
+    [Indic] Apply 'blwf' before 'half'
+
+    This reverts 167b625d988b74572d6b2f646c285b666b650d49.  It didn't
+    matter before, but that's going to change with next commit.
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 70d656571194d2bd32671244530edbe159722cec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 18:01:21 2013 -0500
+
+    [Indic] Apply 'vatu' before 'cjct'
+
+    This essentially reverts 1d6846db9ebf84561bb30a4e48c6c43184914099,
+    but that commit is from way back when.  We should be better
+    following the spec order now again.
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 64bb2ae857cfda35dd71c7f1e962722069674ec6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 16:29:25 2013 -0500
+
+    Didn't mean to push this out
+
+    Ouch!
+
+ test/shaping/hb_test_tools.py | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit f9b660534c269d2257d6b5e8ec2173ee71668f2f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 16:13:56 2013 -0500
+
+    [Myanmar] Use master Indic table for syllable data
+
+ src/hb-ot-shape-complex-myanmar.cc | 144
+ +++++++++----------------------------
+ test/shaping/hb_test_tools.py     |   1 +
+ 2 files changed, 35 insertions(+), 110 deletions(-)
+
+commit f60793e854393c32337a483c5d1700bf17d767fd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 15:45:59 2013 -0500
+
+    [tests] Add Cham sample
+
+ test/shaping/texts/in-tree/shaper-sea/script-cham/misc/misc.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit e2aab4b5db88c368c11cee81368b9ad41399e585
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 15:35:32 2013 -0500
+
+    Improve checks for setmode()
+
+    As reported by Jonathan, OS X has setmode() that is something other
+    than what setmode() is on Win32.  So, limit invocation to Windows
+    platforms only.
+
+ configure.ac   | 4 ++--
+ util/options.cc | 4 ++--
+ util/options.hh | 2 +-
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+commit a6c1e040e594faeefd61b456ef995c7886cdea78
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 15:31:58 2013 -0500
+
+    Improve check for Windows platforms
+
+    Instead of checking for compiler, check for platform.
+
+ src/hb-atomic-private.hh | 2 +-
+ src/hb-mutex-private.hh  | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit 9e1f80ab3eea4a74cdaa6a390e4925a479ece1c5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 15:28:21 2013 -0500
+
+    [SEA] Treat Consonant_Final like Consonant_Medial
+
+ src/hb-ot-shape-complex-indic-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit bab02d339f39ed5168daaef9461227f78e596a2f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 15:26:45 2013 -0500
+
+    Rename HB_OT_INDIC_OPTIONS env var to HB_OPTIONS
+
+    The Myanmar shaper now respects the uniscribe-bug-compatibility
+    option too.
+
+ src/hb-common.cc                  | 20 ++++++++++++--
+ src/hb-ot-shape-complex-indic.cc   | 53
+ ++++----------------------------------
+ src/hb-ot-shape-complex-myanmar.cc |  7 ++---
+ src/hb-private.hh                 | 29 +++++++++++++++++++++
+ 4 files changed, 54 insertions(+), 55 deletions(-)
+
+commit 3a83d33ec0b1be6f5992816ff5ebb0f43c8dff00
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 12:14:10 2013 -0500
+
+    Add South-East Asian shaper
+
+    Handles Tai Tham, Cham, and New Tai Lue for now.
+
+ src/Makefile.am                                   |  12 +-
+ src/gen-indic-table.py                                    |   9 +-
+ src/hb-ot-shape-complex-indic-private.hh          | 241 +-----
+ src/hb-ot-shape-complex-indic-table.cc                    | 869
+ ++++++++++++++++++++
+ src/hb-ot-shape-complex-indic-table.hh                    | 872
+ ---------------------
+ src/hb-ot-shape-complex-indic.cc                  | 239 ++++++
+ src/hb-ot-shape-complex-myanmar.cc                |   2 +-
+ src/hb-ot-shape-complex-private.hh                |  28 +-
+ src/hb-ot-shape-complex-sea-machine.rl                    | 102 +++
+ src/hb-ot-shape-complex-sea.cc                            | 400 ++++++++++
+ test/shaping/texts/in-tree/MANIFEST               |   1 +
+ .../in-tree/shaper-indic/south-east-asian/MANIFEST |  1 -
+ .../south-east-asian/script-new-tai-lue/MANIFEST   |  1 -
+ .../script-new-tai-lue/misc/MANIFEST              |   1 -
+ .../script-new-tai-lue/misc/misc.txt              |   1 -
+ test/shaping/texts/in-tree/shaper-myanmar/MANIFEST |  1 +
+ test/shaping/texts/in-tree/shaper-sea/MANIFEST     |  3 +
+ .../texts/in-tree/shaper-sea/script-cham/MANIFEST  |  1 +
+ .../in-tree/shaper-sea/script-cham/misc/MANIFEST   |  1 +
+ .../in-tree/shaper-sea/script-cham/misc/misc.txt   |  1 +
+ .../in-tree/shaper-sea/script-new-tai-lue/MANIFEST |  1 +
+ .../shaper-sea/script-new-tai-lue/misc/MANIFEST    |  1 +
+ .../shaper-sea/script-new-tai-lue/misc/misc.txt    |  1 +
+ .../in-tree/shaper-sea/script-tai-tham/MANIFEST    |  1 +
+ .../shaper-sea/script-tai-tham/misc/MANIFEST      |   1 +
+ .../shaper-sea/script-tai-tham/misc/misc.txt      |   2 +
+ 26 files changed, 1661 insertions(+), 1132 deletions(-)
+
+commit fb960212063016656dfaba83f072c81d1efc3202
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 10:33:58 2013 -0500
+
+    Minor test reshufflings
+
+ test/shaping/texts/in-tree/MANIFEST
+ | 1 +
+ test/shaping/texts/in-tree/script-default/MANIFEST
+ | 1 +
+ test/shaping/texts/in-tree/script-default/misc/MANIFEST
+ | 1 +
+ test/shaping/texts/in-tree/script-default/misc/misc.txt
+ | 1 +
+ test/shaping/texts/in-tree/shaper-indic/MANIFEST
+ | 1 -
+ test/shaping/texts/in-tree/shaper-indic/south-asian/MANIFEST
+ | 1 -
+ .../texts/in-tree/shaper-indic/south-asian/script-tibetan/MANIFEST
+ | 1 -
+ .../texts/in-tree/shaper-indic/south-asian/script-tibetan/misc/MANIFEST
+ | 1 -
+ .../texts/in-tree/shaper-indic/south-asian/script-tibetan/misc/misc.txt
+ | 1 -
+ test/shaping/texts/in-tree/shaper-indic/south-east-asian/MANIFEST
+ | 1 -
+ .../texts/in-tree/shaper-indic/south-east-asian/script-thai/MANIFEST
+ | 1 -
+ .../in-tree/shaper-indic/south-east-asian/script-thai/misc/MANIFEST
+ | 0
+ 12 files changed, 4 insertions(+), 7 deletions(-)
+
+commit 5676d5d52784e16068ae483103d59111a8081854
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 10:31:14 2013 -0500
+
+    [Indic] Make sure New Tai Lue works!
+
+ src/hb-ot-shape-complex-private.hh                          | 12
+ ++++++++----
+ .../texts/in-tree/shaper-indic/south-east-asian/MANIFEST     |  1 +
+ .../south-east-asian/script-new-tai-lue/MANIFEST            |  1 +
+ .../south-east-asian/script-new-tai-lue/misc/MANIFEST       |  1 +
+ .../south-east-asian/script-new-tai-lue/misc/misc.txt       |  1 +
+ 5 files changed, 12 insertions(+), 4 deletions(-)
+
+commit 568000274c8edb5f41bc4f876ce21fcc8bdaeed8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 09:44:57 2013 -0500
+
+    Adjust mark advance-width zeroing logic for Myanmar
+
+    Before, we were zeroing advance width of attached marks for
+    non-Indic scripts, and not doing it for Indic.
+
+    We have now three different behaviors, which seem to better
+    reflect what Uniscribe is doing:
+
+      - For Indic, no explicit zeroing happens whatsoever, which
+       is the same as before,
+
+      - For Myanmar, zero advance width of glyphs marked as marks
+       *in GDEF*, and do that *before* applying GPOS.  This seems
+       to be what the new Win8 Myanmar shaper does,
+
+      - For everything else, zero advance width of glyphs that are
+       from General_Category=Mn Unicode characters, and do so
+       before applying GPOS.  This seems to be what Uniscribe does
+       for Latin at least.
+
+    With these changes, positioning of all tests matches for Myanmar,
+    except for the glitch in Uniscribe not applying 'mark'.  See preivous
+    commit.
+
+ src/hb-ot-layout-gpos-table.hh     | 12 ++++--------
+ src/hb-ot-layout-private.hh       |  3 +--
+ src/hb-ot-layout.cc               |  4 ++--
+ src/hb-ot-shape-complex-arabic.cc  |  2 +-
+ src/hb-ot-shape-complex-default.cc |  2 +-
+ src/hb-ot-shape-complex-indic.cc   |  2 +-
+ src/hb-ot-shape-complex-myanmar.cc |  2 +-
+ src/hb-ot-shape-complex-private.hh |  9 ++++++++-
+ src/hb-ot-shape-complex-thai.cc    |  2 +-
+ src/hb-ot-shape.cc                | 31 +++++++++++++++++++++++++++++--
+ 10 files changed, 49 insertions(+), 20 deletions(-)
+
+commit 99749ca8e0c4c8dbea4620f07c4d0e6d1515cc65
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 12 09:44:35 2013 -0500
+
+    [Myanmar] Add note re Uniscribe NOT applying 'mark'
+
+ src/hb-ot-shape-complex-myanmar.cc | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+commit b8427801381180da9611b2e3e0f0b3514274de81
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 11 17:02:17 2013 -0500
+
+    Minor
+
+ src/hb-atomic-private.hh | 2 +-
+ src/hb-mutex-private.hh  | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit 419c933ed1b5d97c7561546536ef5810a7b0ebd0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 11 16:16:16 2013 -0500
+
+    [Myanmar] Fix handling of Punctuation and Symbol types
+
+    Testing with "clusters" now on par with testing without them.  15
+    failures both.
+
+ src/hb-ot-shape-complex-myanmar.cc | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+commit 0572c1410a9cb0ac5dd5dc84a8034698cc5c4892
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 11 16:06:02 2013 -0500
+
+    [Myanmar] Fixup handling of joiners and GB characters
+
+ src/hb-ot-shape-complex-myanmar-machine.rl |  6 ++----
+ src/hb-ot-shape-complex-myanmar.cc        | 19 +++++++++++++++++--
+ 2 files changed, 19 insertions(+), 6 deletions(-)
+
+commit 1c8654ead41ca746d577549c92d2a41c594ab639
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 11 14:27:02 2013 -0500
+
+    [Myanmar] Prevent reordering between Asat and Dot below
+
+    Implemented as a hack for now.  Myanmar failures down from 23 to 15.
+
+    MYANMAR: 1123868 out of 1123883 tests passed. 15 failed (0.00133466%)
+
+    The remaining 15 cases are all where the syllable is wrong according
+    to
+    the OpenType spec. We insert dottedcircle.  Uniscribe fails to
+    do that,
+    but it also fails to reorder the prebase-reordering medial-Ra.  So it
+    gets it wrong.
+
+ src/hb-unicode-private.hh | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit bed687f886b8def06642ad986648e9149a935add
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 11 14:24:03 2013 -0500
+
+    Shuffle test data around
+
+ test/shaping/texts/in-tree/MANIFEST               |  1 +
+ .../in-tree/shaper-indic/south-east-asian/MANIFEST |  1 -
+ .../south-east-asian/script-myanmar/MANIFEST      |  1 -
+ .../south-east-asian/script-myanmar/misc/MANIFEST  |  2 --
+ .../south-east-asian/script-myanmar/misc/misc.txt  |  1 -
+ .../south-east-asian/script-myanmar/misc/utn11.txt | 34
+ ----------------------
+ .../south-east-asian/script-thai/misc/MANIFEST     |  1 -
+ .../south-east-asian/script-thai/misc/misc.txt     | 11 -------
+ .../in-tree/shaper-myanmar/script-myanmar/MANIFEST |  1 +
+ .../shaper-myanmar/script-myanmar/misc/MANIFEST    |  2 ++
+ .../shaper-myanmar/script-myanmar/misc/misc.txt    |  1 +
+ .../shaper-myanmar/script-myanmar/misc/utn11.txt   | 34
+ ++++++++++++++++++++++
+ .../in-tree/shaper-thai/script-thai/misc/MANIFEST  |  1 +
+ .../in-tree/shaper-thai/script-thai/misc/misc.txt  | 11 +++++++
+ 14 files changed, 51 insertions(+), 51 deletions(-)
+
+commit 98628cac9f733f2674d6409954cddb7d0634c233
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 11 13:36:23 2013 -0500
+
+    Add Win8-style Myanmar shaper
+
+    Myanmar failures down from 51% to 0.00204648%!
+
+    MYANMAR: 1123860 out of 1123883 tests passed. 23 failed (0.00204648%)
+
+ src/Makefile.am                           |  14 +-
+ src/hb-ot-shape-complex-indic.cc          |   2 -
+ src/hb-ot-shape-complex-myanmar-machine.rl | 127 ++++++
+ src/hb-ot-shape-complex-myanmar.cc        | 599
+ +++++++++++++++++++++++++++++
+ src/hb-ot-shape-complex-private.hh        |   5 +-
+ 5 files changed, 740 insertions(+), 7 deletions(-)
+
+commit 1df56449586bd32275a6fa69dcadd5fb77a84f82
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 11 14:17:54 2013 -0500
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 3 ---
+ 1 file changed, 3 deletions(-)
+
+commit 54f7b4d9ec13f8454aa298534da318c023fa3c63
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 11 13:27:17 2013 -0500
+
+    [OTLayout] Respect lookup-flags skipping over non-mark glyphs
+
+    Before, when matching ligatures, we never skipping over base / liga
+    glyphs even if that was what the LookupFlags asked for.
+
+    Fixed now. We carefully reviewed all instances of this, and
+    tested with
+    Amiri as well as some Indic scripts, and are confident that this
+    should
+    NOT break anyone's fonts.  It's also how Uniscribe does it, from what
+    we can tell.
+
+ src/hb-ot-layout-gpos-table.hh       |  2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 25 ++++++++++---------------
+ 2 files changed, 11 insertions(+), 16 deletions(-)
+
+commit 9082efc4aacb34de8574d6a4a3c037987df58bd8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 11 13:14:15 2013 -0500
+
+    [OTLayout] s/mark_skipping/skipping/
+
+    In aticipation of upcoming changes.
+
+ src/hb-ot-layout-gpos-table.hh       | 12 ++++++------
+ src/hb-ot-layout-gsubgpos-private.hh | 28 ++++++++++++++--------------
+ 2 files changed, 20 insertions(+), 20 deletions(-)
+
+commit 9621e0ba294c9cc6d458bbf632e63e92fda71e10
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 11 06:58:27 2013 -0500
+
+    [Indic] Fix bug introduced in 8b217f5ac54aa0dcbba2dd6d59aa89dde33e56c2
+
+    Was breaking reph formation logic when the Ra is the only consonant.
+    Devanagari regression fixed.  Down to 57 failures again.  Ouch.
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 6e74c64211b6aaac48bae8c87f9420d8dc03fd93
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 11 06:50:17 2013 -0500
+
+    Improve normalization heuristic
+
+    Before, for most scripts, we were not trying to recompose two
+    characters
+    if the second one had ccc=0.  That fails for Myanmar where U+1026
+    decomposes to U+1025,U+102E, both of which have ccc=0.  However, we do
+    want to try to recompose those.  We now check whether the second is a
+    mark, using general category instead.
+
+    At the same time, remove optimization that was conflicting with this.
+
+    [Let the Ngapi hackfest begin!]
+
+ src/hb-ot-shape-normalize.cc | 39 +++++++++++++--------------------------
+ 1 file changed, 13 insertions(+), 26 deletions(-)
+
+commit 614242efb043f2ed78916377138d456279a20a54
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 6 23:45:27 2013 -0500
+
+    Revert "Include config.h.in in tree"
+
+    This reverts commit 01013a0f5c58d5d54a37e5b4d6692e0bbd4baf80.
+
+    Conflicts:
+       config.h.in
+
+    Same argument as previous commit.
+
+ Makefile.am |  1 +
+ config.h.in | 153
+ ------------------------------------------------------------
+ 2 files changed, 1 insertion(+), 153 deletions(-)
+
+commit adff3778155facb7b149ce66ab7d573368e048de
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 6 23:43:27 2013 -0500
+
+    Revert "[Indic] Import ragel-generated Indic machine in git"
+
+    This reverts commit fab7a71f110ed646745d54b23284537c50058c21.
+
+    Conflicts:
+       src/hb-ot-shape-complex-indic-machine.hh
+
+    Keeping that generated file in-tree causes problems with processes
+    like
+    tinderbox  that automatically fetch and build harfbuzz.  It's harder
+    to
+    bootstrap harfbuzz now (as was previously), but I'm willing to
+    give this
+    another chance and see how it goes.
+
+ autogen.sh                              |    6 +
+ src/Makefile.am                         |    1 +
+ src/hb-ot-shape-complex-indic-machine.hh | 1443
+ ------------------------------
+ 3 files changed, 7 insertions(+), 1443 deletions(-)
+
+commit 5898fa94d12b19686f649104bd6efe8daa1ba0c9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 6 15:29:07 2013 -0500
+
+    Don't use $(ENV)
+
+    As reported by Peter Breitenlohner:
+
+    I think this is a very bad idea because ENV is used to specify
+    a startup
+    file to be read by some/all shells.
+
+ test/api/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 52d66c26a2102bd1a49463b8e8f04612598f8ac1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 4 23:31:24 2013 -0500
+
+    Add color-tests automake option
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 9de5f98f363d96f308adc33f1c2286e5c33117de
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 4 23:28:22 2013 -0500
+
+    Bug 60035 - intermittent make install failure on hb-version.h
+
+ src/Makefile.am | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+commit 6c1e8b614cfd6ed016fba6bf20af1e422e79eb71
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 4 23:24:16 2013 -0500
+
+    Bug 59637 - check-exported-symbols.sh & check-internal-symbols.sh
+    fail on mips/mipsel
+
+ src/check-symbols.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit bafdf3d983dcc277d6e7e322277c0bb25b41a173
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 4 23:06:50 2013 -0500
+
+    Merge check-internal-symbols.sh and check-exported-symbols.sh
+
+ src/Makefile.am              |  3 +--
+ src/check-exported-symbols.sh | 40 ----------------------------------
+ src/check-internal-symbols.sh | 34 -----------------------------
+ src/check-symbols.sh         | 50
+ +++++++++++++++++++++++++++++++++++++++++++
+ 4 files changed, 51 insertions(+), 76 deletions(-)
+
+commit ceeae30f47b9d628484ae398bc38f3f60ee8eab4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 31 19:27:36 2013 -0500
+
+    Really fix setmode this time
+
+    Thanks to Khaled for spotting it.
+
+ util/options.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 7cba8a673b4b436a737fc4ffe85dc84ddd2bf41f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 31 18:37:10 2013 -0500
+
+    Fixup previous commit
+
+    Now, it looks like this breaks Cygwin again.  Have to figure out
+    what's
+    going on.
+
+ util/options.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit bc76449f51f20491a4540b4f240f5a3e0dcb20fe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 31 18:18:05 2013 -0500
+
+    Use setmode() instead of _setmode()
+
+    Looks like Cygwin / MSVC declare it that way, and it still works on
+    MinGW32 cross.
+
+ config.h.in    | 6 +++---
+ configure.ac   | 2 +-
+ util/options.cc | 2 +-
+ util/options.hh | 2 +-
+ 4 files changed, 6 insertions(+), 6 deletions(-)
+
+commit e9171af55cc6a402eb20db4ea74c86a0b1e70e85
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jan 29 22:45:00 2013 -0500
+
+    Bug 60053 - hb-common.cc:181:6: warning: ‘void free_langs()’
+    defined but not used
+
+ src/hb-common.cc | 2 +-
+ src/hb-ft.cc    | 2 +-
+ src/hb-shape.cc  | 2 +-
+ src/hb-shaper.cc | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+commit 09b5393874e56fcfd63a92d28e6c1c2ddeee0942
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 18 17:10:47 2013 -0600
+
+    0.9.12
+
+ NEWS        | 7 +++++++
+ configure.ac | 2 +-
+ 2 files changed, 8 insertions(+), 1 deletion(-)
+
+commit eb45c0a2fbaeeb34e77a2935934e8d1302728ec8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 16 22:07:50 2013 -0600
+
+    Minor
+
+ src/hb-ot-layout.cc | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+commit 52c8d1226f3509276b11a1fadbd29e5363c0ecd7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 14 13:51:46 2013 -0600
+
+    Minor
+
+ src/hb-blob.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit f88d3bd7e407d332bb04688344c54756d24128c9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 14 00:33:58 2013 -0600
+
+    Fix build with Sun compiler
+
+ src/hb-blob.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 08b29c08094097f1c23ec53b10084bc390cea833
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 14 00:32:12 2013 -0600
+
+    Revert "Minor"
+
+    This reverts commit 0a492357016bc9a614d2a726f2006c10af68ca58.
+
+    Enables code on more compilers.
+
+ src/hb-warning.cc | 33 ++++++++++++++++++++++++++++++---
+ 1 file changed, 30 insertions(+), 3 deletions(-)
+
+commit e78463211e7d85f237bd55afab7e8e5dae42346c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 14 00:27:21 2013 -0600
+
+    Fix linking with non-gcc compilers
+
+ configure.ac   | 2 ++
+ src/Makefile.am | 6 +++++-
+ 2 files changed, 7 insertions(+), 1 deletion(-)
+
+commit de649f07f1f8fdeb998a0b049759f4f7363e25d2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 14 00:26:43 2013 -0600
+
+    Fix residuals from fontconfig changes
+
+ src/hb-atomic-private.hh | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit cf81fb3624466b9df2250b58b27a92187c5b5b5c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 10 09:06:34 2013 -0600
+
+    0.9.11
+
+ NEWS        | 14 ++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 15 insertions(+), 1 deletion(-)
+
+commit 2dcb333f52492018816f0d5d67a47634a612e49c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 10 01:17:59 2013 -0600
+
+    Add atomic ops for Solaris
+
+    Based on fontconfig patch from Raimund Steger.
+
+ config.h.in             |  5 ++++-
+ configure.ac            | 27 +++++++++++++++++++++++++--
+ src/hb-atomic-private.hh | 12 ++++++++++++
+ 3 files changed, 41 insertions(+), 3 deletions(-)
+
+commit 69fd6e157c7ec83a5d5d8731fc14675ce4509b09
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 10 00:03:36 2013 -0600
+
+    Fix crasher during multi-thread shaper data creation
+
+    Sample crash:
+
+    0  _hb_graphite2_shaper_face_data_destroy (data=0xffffffffffffffff)
+       at ../../src/hb-graphite2.cc:129
+    1  0x00007ffff4271d7d in hb_graphite2_shaper_face_data_ensure (
+       face=<optimized out>) at ../../src/hb-shaper-list.hh:35
+    2  hb_shape_plan_plan (shaper_list=<optimized out>,
+    num_user_features=0,
+       user_features=0x0, shape_plan=0xf7b490) at
+       ../../src/hb-shaper-list.hh:35
+    3  hb_shape_plan_create (face=<optimized out>, props=<optimized out>,
+       user_features=0x0, num_user_features=0, shaper_list=<optimized
+       out>)
+       at ../../src/hb-shape-plan.cc:108
+    4  0x00007ffff4272c93 in hb_shape_plan_create_cached (face=0x10cf2b0,
+       props=0x11980d8, user_features=0x0, num_user_features=<optimized
+       out>,
+       shaper_list=0x0) at ../../src/hb-shape-plan.cc:283
+
+ src/hb-shaper-private.hh | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit ecd454b3cd75050e0c95e1d2aa55744559338ec8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jan 8 18:09:46 2013 -0600
+
+    [Indic] In old-spec shaping, don't move viramas around if seq ends
+    with one
+
+    For example: u0c9a u0ccd u0c9a u0ccd with Lohit.  See:
+
+    https://bugs.freedesktop.org/show_bug.cgi?id=59118
+
+ src/hb-ot-shape-complex-indic.cc                                  |
+ 7 ++++---
+ .../texts/in-tree/shaper-indic/indic/script-kannada/misc/misc.txt  | 1 +
+ 2 files changed, 5 insertions(+), 3 deletions(-)
+
+commit e95e031b5682809488cc965883e15404cb9cfb6a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jan 8 16:15:46 2013 -0600
+
+    [GPOS] If an Anchor offset is NULL, return false
+
+    If in a MarkPos table, a base has no anchor for a particular mark
+    class,
+    return NULL such that the subsequent subtables get a chance at it.
+
+    Test case:
+    hb-shape ./EBGaramond12-Regular.otf ἂ --features="ss20","smcp"
+
+ src/hb-open-type-private.hh   | 14 ++++++++++++--
+ src/hb-ot-layout-gpos-table.hh | 10 ++++++++--
+ 2 files changed, 20 insertions(+), 4 deletions(-)
+
+commit e5dbf39900fa63051f64cc447a6742665cbee339
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 7 17:34:24 2013 -0600
+
+    Bug 58638 - Building fails with ICU due to not passing required flags
+
+ configure.ac | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 1172dc736280566426eb6dade1a886b2a0ca9aa4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 7 16:46:37 2013 -0600
+
+    Rename hb_buffer_clear() to hb_buffer_clear_contents()
+
+    The previous name was clashing with harfbuzz.old.  There are systems
+    that need to link both...
+
+    Clash-free now again.
+
+ src/hb-buffer.cc      | 2 +-
+ src/hb-buffer.h       | 2 +-
+ test/api/test-buffer.c | 2 +-
+ util/options.hh       | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+commit 7b912c1936c3e8a7df27a30782ca127d0a83822d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 4 01:25:27 2013 -0600
+
+    Remove a few unnecessary const's
+
+    Apparently helps with MSVC compilation.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 34e6c3e3e452bdf6f93df565a70453a6e74d4c6e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 3 00:14:24 2013 -0600
+
+    0.9.10
+
+ NEWS        | 24 ++++++++++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 25 insertions(+), 1 deletion(-)
+
+commit f0c82410dbe800cb6429ba4aa7cfd9f5a11cc70c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 3 00:07:16 2013 -0600
+
+    [OTLayout] Always collect default language system in collect_lookups
+
+    Not sure if this is the most desired behavior.  It's the most easily
+    defined though.
+
+ src/hb-ot-layout.cc | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+commit 15e9e4e1ddaad655988144e7a56a765e8adf8782
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 3 00:04:40 2013 -0600
+
+    [OTLayout] Fix feature iteration in collect_lookups
+
+    Previous logic was just wrong.
+
+ src/hb-ot-layout.cc | 46 ++++++++++++++++++++++++++++++++--------------
+ 1 file changed, 32 insertions(+), 14 deletions(-)
+
+commit 733e8c0d7bf0765884f2cc953c8edcd7ab7fb49b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 3 00:00:23 2013 -0600
+
+    [OTLayout] Whitespace
+
+ src/hb-ot-layout.cc | 82
+ ++++++++++++++++++++++++++++++++++++++++++++---------
+ 1 file changed, 68 insertions(+), 14 deletions(-)
+
+commit d37ae38047bee12639741af9bb083b857fab950d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 2 23:57:36 2013 -0600
+
+    [OTLayout] Handle required_feature_index in collect_lookups
+
+ src/hb-ot-layout.cc | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 11fba79ee9383eb995ddf7eb924dd64c67e2df63
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 2 23:36:37 2013 -0600
+
+    [OTLayout] Fix various introspection issues with ClassDef's
+
+    As reported by Jonathan Kew.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 19 +++++++++++++++----
+ 1 file changed, 15 insertions(+), 4 deletions(-)
+
+commit e81aff9ef785be28751aab1fcd484af550656181
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 2 23:22:54 2013 -0600
+
+    [tests] Finish test-set.c
+
+    All passing now.
+
+ test/api/test-set.c | 373
+ +++++++++++++++++++++-------------------------------
+ 1 file changed, 149 insertions(+), 224 deletions(-)
+
+commit 7b1b720a8da69b68b775ce17104a40d55401b7ef
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 2 23:02:59 2013 -0600
+
+    Protect sets in-error from further modication
+
+    Fixes test-set.c
+
+ src/hb-set-private.hh | 13 +++++++++++++
+ 1 file changed, 13 insertions(+)
+
+commit 8165f2765b93e99577ecc79b7956ae38c614bc78
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 2 22:50:36 2013 -0600
+
+    [tests] Start adding tests for hb-set.h
+
+    Fails now. Fixing.
+
+ TODO                 |   2 -
+ src/hb-set-private.hh |   6 +
+ src/hb-set.cc        |   9 +-
+ src/hb-set.h         |   3 +
+ test/api/Makefile.am  |   1 +
+ test/api/test-set.c   | 312
+ ++++++++++++++++++++++++++++++++++++++++++++++++++
+ 6 files changed, 330 insertions(+), 3 deletions(-)
+
+commit b9d28f696c433b94c5ffbad8d7c87cf3acff4056
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 2 22:49:58 2013 -0600
+
+    [tests] Add set object to test-object.c
+
+ test/api/test-object.c | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+commit 11d2956553f0d4a0086166a04ffc352fcfacf56e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 2 17:41:27 2013 -0600
+
+    Minor
+
+ src/hb-atomic-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 596740db04e7c1dadae0d8be6e401089fcaffc2d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Dec 21 19:41:04 2012 -0500
+
+    [Indic] Insert dottedcircle after a lone Malayalam dot-reph
+
+ src/hb-ot-shape-complex-indic-machine.hh | 1617
+ ++++++++++++++++--------------
+ src/hb-ot-shape-complex-indic-machine.rl |    2 +-
+ src/hb-ot-shape-complex-indic.cc        |   13 +-
+ 3 files changed, 881 insertions(+), 751 deletions(-)
+
+commit 3cdce6497b2b9aeb2841bf077daa9dd9b196429d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Dec 21 16:54:22 2012 -0500
+
+    Remove TODO that I don't intend to fix
+
+ TODO | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 6f69fa283e0a488da811df78bc83c41ed248b688
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Dec 21 16:51:15 2012 -0500
+
+    Minor
+
+ src/hb-shape.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit f4abcbfc628718bb276363746440df06e7658f6e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Dec 21 16:48:51 2012 -0500
+
+    Minor
+
+ src/hb-buffer.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 4a765f092d71bb4adeb468c004987a9121d39db5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Dec 21 16:48:47 2012 -0500
+
+    Minor
+
+ util/hb-shape.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 9815a88111072aa51e78e258c5f660993b47d4df
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Dec 21 16:46:53 2012 -0500
+
+    [util] List supported output formats in --help output
+
+ util/hb-shape.cc     | 6 +++---
+ util/helper-cairo.cc | 2 +-
+ util/helper-cairo.hh | 1 +
+ util/options.cc      | 9 ++++++++-
+ util/options.hh      | 5 ++++-
+ util/view-cairo.hh   | 2 +-
+ 6 files changed, 18 insertions(+), 7 deletions(-)
+
+commit f95a87b7b813f588c7910ad4785ee68bb452e864
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Dec 21 16:35:28 2012 -0500
+
+    [util] List supported output formats in hb-view
+
+ TODO                |  1 -
+ util/helper-cairo.cc | 30 +++++++++++++++++++++++++++++-
+ 2 files changed, 29 insertions(+), 2 deletions(-)
+
+commit 6bad092aa87bc3e6bbf0b9faf07693e6ebbe55f2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Dec 21 16:01:52 2012 -0500
+
+    [util] Default to "text" output format in hb-shape
+
+    If you say:
+
+      hb-shape font.ttf text --output-file out.txt
+
+    This was previously failing:
+
+      Unknown output format `txt'; supported formats are: TEXT / JSON
+
+    Now we simply fallback to TEXT if no explicit format was requested.
+
+ util/hb-shape.cc | 11 ++++++++---
+ util/options.hh  |  5 +++++
+ 2 files changed, 13 insertions(+), 3 deletions(-)
+
+commit 8b217f5ac54aa0dcbba2dd6d59aa89dde33e56c2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Dec 21 15:48:32 2012 -0500
+
+    [Indic] Reorder Malayalam dot-reph to after base
+
+    Test sequence is simple: U+0D4E,U+0D15.  The doth-reph should be
+    reordered to after the Ka.
+
+    https://bugzilla.redhat.com/show_bug.cgi?id=799565
+
+ src/hb-ot-shape-complex-indic.cc                           | 13
+ ++++++++++---
+ .../shaper-indic/indic/script-malayalam/misc/MANIFEST      |  1 +
+ .../shaper-indic/indic/script-malayalam/misc/dot-reph.txt   | 1 +
+ 3 files changed, 12 insertions(+), 3 deletions(-)
+
+commit 742c4ee97e1311e000ebcdf9f33361c4dc6400a4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Dec 21 15:35:03 2012 -0500
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 94afeb6ebe27534fc80d7173cc6f67375c3aaca6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Dec 21 11:54:50 2012 -0500
+
+    Add Android.mk
+
+ Android.mk  | 74
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Makefile.am | 1 +
+ 2 files changed, 75 insertions(+)
+
+commit d16ddbcbbee39b07a028776995c635119fe3cd98
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Dec 20 01:02:36 2012 -0500
+
+    Add build confirmation notice to configure
+
+ configure.ac | 25 +++++++++++++++++++++++++
+ 1 file changed, 25 insertions(+)
+
+commit e24d8dab749a1a796e7484e18572da5f7a733bd4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 19 15:23:02 2012 -0500
+
+    [TODO] Remove done items
+
+ TODO | 7 -------
+ 1 file changed, 7 deletions(-)
+
+commit 044d38527664d933c18c751c38fcf6fb4b5f888e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 19 13:00:16 2012 -0500
+
+    Bug 58498 - Tests fail with gold linker on ARM
+
+ src/check-exported-symbols.sh | 2 +-
+ src/check-internal-symbols.sh | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit b68b86daf1a8478b86aeae44a8c39a606ed873cb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 18 20:39:40 2012 -0500
+
+    Use C++ linker if ICU is disabled
+
+    Bug 54948 - Undefined symbols: "operator delete(void*)" "operator
+    new(unsigned long)" "___cxa_pure_virtual"
+
+ src/Makefile.am | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 1ffd23cb47a61465d52a7aeebb9c1b676e7c9a7e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 17 23:29:15 2012 -0500
+
+    [OTLayout] Limit alternate-location FeatureParams to 'size' feature
+
+ src/hb-ot-layout-common-private.hh | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+commit efe252e6000558f78075adadb2a3dba25ab67c04
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 17 23:21:05 2012 -0500
+
+    [OTLayout] Fix 'size' featureParams implementation
+
+    Looks at alternate location now.
+
+ src/hb-ot-layout-common-private.hh | 133
+ ++++++++++++++++++++++++++++---------
+ src/hb-ot-layout.cc               |  93 ++++----------------------
+ 2 files changed, 117 insertions(+), 109 deletions(-)
+
+commit e77b4425746ac9eb407ca4e742d962f1955971b4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 17 18:42:59 2012 -0500
+
+    [OTLayout] Fix tracing
+
+ src/hb-open-type-private.hh | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 9b54562d63f1a9e0e5b33d71c32bd1588759ebf1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 17 13:55:36 2012 -0500
+
+    [OTLayout] Towards correct FeatureParams handling
+
+ src/hb-open-type-private.hh       |  8 +++++++-
+ src/hb-ot-layout-common-private.hh | 25 +++++++++++++++++++++++--
+ 2 files changed, 30 insertions(+), 3 deletions(-)
+
+commit 87e43b7f2be25840748f920ca33ff553833da45f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Dec 14 17:48:23 2012 -0500
+
+    [OTLayout] Wire tag and list start all the way to Feature
+
+    To fix FeatureParam issues.  No actual fix yet, just plumbing.
+
+ src/hb-ot-layout-common-private.hh | 16 ++++++++++++----
+ 1 file changed, 12 insertions(+), 4 deletions(-)
+
+commit 85bc44b90a19c6a669ed567a9cd8513448600afe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 12 11:38:49 2012 -0500
+
+    [OTLayout] More 'size' feature sanity checking
+
+    We still don't look for the old incorrect place of the featureParams.
+    I'll wait till someone actually complains about it...
+
+ src/hb-ot-layout.cc | 99
+ ++++++++++++++++++++++++++++++++++++++++++-----------
+ 1 file changed, 79 insertions(+), 20 deletions(-)
+
+commit 0bae50a36f3022f9bb6b2c001c191eeaaa4ef954
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 11 16:01:31 2012 -0500
+
+    [OTLayout] Add FeatureParamsCharacterVariants struct
+
+    No API yet.
+
+ src/hb-ot-layout-common-private.hh | 52
+ +++++++++++++++++++++++++++++++++++---
+ 1 file changed, 49 insertions(+), 3 deletions(-)
+
+commit bd61bc13ea8ff350ada5449b2cfeb612e66ecafa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 11 16:00:43 2012 -0500
+
+    [OTLayout] Add UINT24 type
+
+ src/hb-open-type-private.hh | 33 ++++++++++++++++++++++-----------
+ src/hb-private.hh          |  4 ++++
+ 2 files changed, 26 insertions(+), 11 deletions(-)
+
+commit 9cf7f9d4f61741932570afbefdee5edf61f79ae4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 11 14:31:13 2012 -0500
+
+    Make test-size-params write size in points
+
+ src/test-size-params.cc | 18 ++++--------------
+ 1 file changed, 4 insertions(+), 14 deletions(-)
+
+commit 372fe2b67b1757e809bf33e1e9055a00c5bed304
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 11 14:30:57 2012 -0500
+
+    [OTLayout] Make hb_ot_layout_get_size_params() do some checks
+
+ src/hb-ot-layout.cc | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+commit 875a5cbc9c37f4264241c43b80afad2628eab749
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 11 14:17:01 2012 -0500
+
+    [OTLayout] Change hb_ot_layout_get_params() API
+
+    And add implementation for StylisticSet UINameID.  No API yet.
+
+ src/hb-ot-layout-common-private.hh | 85
+ ++++++++++++++++++++++++++++++++++++--
+ src/hb-ot-layout.cc               | 28 +++++++++----
+ src/hb-ot-layout.h                |  8 +++-
+ src/test-size-params.cc           |  9 +++-
+ 4 files changed, 115 insertions(+), 15 deletions(-)
+
+commit 5e7e52ddf2b0c4fbc9d933d24336100368d39a5c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 10 17:44:22 2012 -0500
+
+    [uniscribe] Enable Uniscribe backend only if it has
+    ScriptShapeOpenType()
+
+    Bug 55494 - ScriptItemizeOpenType doesn't exists under Windows XP
+
+ config.h.in  |  6 ------
+ configure.ac | 14 +++++++++++++-
+ 2 files changed, 13 insertions(+), 7 deletions(-)
+
+commit d41c0c955b8ad9b52191ca47e1f3b1bfe606deb1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 10 16:41:20 2012 -0500
+
+    Update config template
+
+ config.h.in | 4 ----
+ 1 file changed, 4 deletions(-)
+
+commit c48a04e5ea899b82465a0f3f2cfdcffb3bf38f61
+Author: John Ralls <jralls@ceridwen.fremont.ca.us>
+Date:  Mon Dec 10 16:24:24 2012 -0500
+
+    [coretext] Better test for CoreText
+
+    Instead of checking for ApplicationServices.h, which is present in all
+    versions of MacOSX, check for CTFontRef, a CoreText basic type.
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 0e9f0f3e5f16a45951423a1229af42dc2fd798c3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 10 15:25:21 2012 -0500
+
+    Fix atomic ops on iOS
+
+    Patch from John Ralls.
+
+ src/hb-atomic-private.hh | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+commit 5f9569c1391c65d7addff363ad6e5ec9b087f01a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 10 13:38:42 2012 -0500
+
+    Make older MSVC happy
+
+ src/hb-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 071d5b831e6de5f3b24160dc77b139cb040ab886
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 10 00:57:00 2012 -0500
+
+    Work around missing OSAtomicCompareAndSwapPtrBarrier() on OS X 10.4
+
+    Not sure how to handle iOS.
+
+ src/hb-atomic-private.hh | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+commit e923e6487b25ab86f6f629af480b291e8e5407b5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 9 19:39:40 2012 -0500
+
+    [coretext] Fixed typo
+
+    Oops.  Thanks Khaled for catching this.
+
+ src/hb-coretext.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 9a8395824bf51c2ff2cfe0887ecad52b3d2c02e2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 9 18:47:36 2012 -0500
+
+    [coretext] Add hb_coretext_face_get_cg_font()
+
+    Not sure if it's useful, but it was missing.
+
+ src/hb-coretext.cc | 20 ++++++++++++++------
+ src/hb-coretext.h  |  3 +++
+ 2 files changed, 17 insertions(+), 6 deletions(-)
+
+commit 86112356885fde32163882b6c9dd19a494304f7a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 9 18:47:09 2012 -0500
+
+    [coretext] Remove hack around GlyphID
+
+    We not namespace our types, so the hack is not needed anymore.
+
+ src/hb-coretext.cc | 4 ----
+ 1 file changed, 4 deletions(-)
+
+commit 8e58459aeb949591bb5bca340ef9bdd5cfd54e47
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 9 18:45:47 2012 -0500
+
+    [graphite2] "Update to new API"
+
+    Part of patch from Martin Hosken.  I believe he knows what he's doing
+    :).
+
+ src/hb-graphite2.cc | 14 +++++++++++---
+ 1 file changed, 11 insertions(+), 3 deletions(-)
+
+commit a5a4ab3846ef06769784e6469d76eace35e68805
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 9 18:44:41 2012 -0500
+
+    [graphite2] Add hb_graphite2_face_get_gr_face and
+    hb_graphite2_font_get_gr_font
+
+    Based on patch from Martin Hosken. I believe it returns NULL if the
+    font doesn't have graphite tables, but have not tested.
+
+ src/hb-graphite2.cc | 14 ++++++++++++++
+ src/hb-graphite2.h  | 8 +++++++-
+ 2 files changed, 21 insertions(+), 1 deletion(-)
+
+commit 737ba156442f723d126c7c58c73729786b67c17a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 9 18:43:03 2012 -0500
+
+    [graphite2] Preload all tables
+
+    Part of patch from Martin Hosken.
+
+ src/hb-graphite2.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 0ae6dbf1b4de8a0326b8a2f201597427cecfb6db
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 9 18:37:38 2012 -0500
+
+    Minor
+
+ src/hb-uniscribe.cc | 32 ++++++++++++++++----------------
+ 1 file changed, 16 insertions(+), 16 deletions(-)
+
+commit 3fe5c159d3532f8ce8a85d217a00681225dd8ed1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 9 18:20:19 2012 -0500
+
+    Remove excess return
+
+    Oops!
+
+ src/hb-uniscribe.cc | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit ba2d543004573e8e4e56df70b7fe2a66a42bc83f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Dec 8 19:28:41 2012 -0500
+
+    Update OT language tags
+
+    Patch from Roozbeh Pournader.
+
+ src/hb-ot-tag.cc | 212
+ +++++++++++++++++++++++++++++--------------------------
+ 1 file changed, 110 insertions(+), 102 deletions(-)
+
+commit aba38173c6b464c2884b73ef6cd4577d4efcebbc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 5 19:54:48 2012 -0500
+
+    Minor
+
+ src/hb-ot-tag.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 61865745e35eb60aeb59968e7826e37059090780
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 5 19:42:10 2012 -0500
+
+    Fix test with gold linker
+
+    Bug 57633 - Symbol tests should ignore __bss_start, _edata, _end
+
+ src/check-exported-symbols.sh | 2 +-
+ src/check-internal-symbols.sh | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit b71b0bd9ee64feadd7289e195bc58f6361ce707a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 5 19:20:31 2012 -0500
+
+    [Indic] Add link to Sinhala split matra section of the Sinhala spec
+
+ src/hb-ot-shape-complex-indic.cc | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+commit 9a34a50daac3563464e0031f377e85f0c704f2d6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 5 19:18:18 2012 -0500
+
+    Fix build with C++11
+
+ util/options.cc | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 0beb66e3a61ae8bb1fa66e54b1ff1abb2f8711e9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 5 18:46:04 2012 -0500
+
+    Fix warnings
+
+ src/hb-fallback-shape.cc                  | 10 +++++-----
+ src/hb-glib.cc                                    |  2 +-
+ src/hb-icu-le.cc                          |  6 +++---
+ src/hb-old.cc                             | 14 +++++++-------
+ src/hb-open-type-private.hh               |  4 +---
+ src/hb-ot-layout-gsubgpos-private.hh      | 24 ++++++++++++------------
+ src/hb-ot-shape-complex-arabic-fallback.hh |  4 ++--
+ src/hb-ot-shape-complex-arabic.cc         |  2 +-
+ src/hb-ot-shape-complex-indic-machine.hh   |  2 +-
+ src/hb-ot-shape-complex-indic-machine.rl   |  2 +-
+ src/hb-ot-shape-complex-indic.cc          |  6 +++---
+ src/hb-ot-shape-complex-thai.cc           |  2 +-
+ src/hb-ot-shape-fallback.cc               |  4 ++--
+ src/hb-private.hh                         |  8 ++++----
+ src/hb-ucdn.cc                                    | 27
+ +++++++++++++++------------
+ src/hb-utf-private.hh                     |  4 ++--
+ 16 files changed, 61 insertions(+), 60 deletions(-)
+
+commit c6408a1009d2370fbdcfa694898819d99d53c3df
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 5 17:36:52 2012 -0500
+
+    0.9.9
+
+ NEWS        | 8 ++++++++
+ configure.ac | 2 +-
+ 2 files changed, 9 insertions(+), 1 deletion(-)
+
+commit 130bb3f6144afe5c88bb5b4e4c98e7cba03b1e26
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 5 16:49:47 2012 -0500
+
+    Rename VOID and void_t to have HarfBuzz prefix
+
+    Fixes build on Windows.  Ouch!
+
+ src/hb-ot-layout-gsubgpos-private.hh | 22 +++++++++++-----------
+ src/hb-private.hh                   | 12 ++++++------
+ 2 files changed, 17 insertions(+), 17 deletions(-)
+
+commit 4a350d0eb25db60d95638664c892d4c8dacf050b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 4 17:13:09 2012 -0500
+
+    [OTLayout] Reuse context in collect_glyphs() recursion
+
+ src/hb-ot-layout-gsubgpos-private.hh | 19 +++++++++++++++----
+ 1 file changed, 15 insertions(+), 4 deletions(-)
+
+commit 8303593ba1db06e402eab52df47f21f13049112d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 4 17:08:41 2012 -0500
+
+    Minor
+
+    Use pointers instead of references, in preparation for upcoming
+    change.
+
+ src/hb-ot-layout-gpos-table.hh       | 28 +++++++++++++-------------
+ src/hb-ot-layout-gsub-table.hh       | 30 ++++++++++++++--------------
+ src/hb-ot-layout-gsubgpos-private.hh | 38
+ ++++++++++++++++++------------------
+ 3 files changed, 48 insertions(+), 48 deletions(-)
+
+commit 1bcfa06d1173f219809542a7380ce77f1c907bec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 4 16:58:09 2012 -0500
+
+    [OTLayout] Don't recurse in collect_glyphs() for GPOS
+
+ src/hb-ot-layout-gpos-table.hh       | 2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 4 ++++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+commit b5e04c7dc6b78e311d1a14f1f808fac76a64c889
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 4 15:57:02 2012 -0500
+
+    [ucdn] Match upstream changes
+
+ src/hb-ucdn/ucdn.c | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+commit a52f51b21635c626f6e5ccdba505c4df19bcff2c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 4 15:43:38 2012 -0500
+
+    0.9.8
+
+ NEWS        | 16 ++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 17 insertions(+), 1 deletion(-)
+
+commit 7babfe5a7904c26060c5b8441ca1bf23e1444f35
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 4 00:35:54 2012 +0200
+
+    Move object mutext into the user-data array
+
+    We are not using it for anything lse it seems.
+
+ src/hb-common.cc        | 12 ++----------
+ src/hb-object-private.hh | 24 ++++++++++--------------
+ 2 files changed, 12 insertions(+), 24 deletions(-)
+
+commit a1900114770952778563dd6f3bc79334b0ca8df5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 4 00:29:35 2012 +0200
+
+    Remove unused functions
+
+ src/hb-object-private.hh | 20 --------------------
+ 1 file changed, 20 deletions(-)
+
+commit 88b7564183ae1cf59500b13c7e48756fe200c7cd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 2 19:14:29 2012 +0200
+
+    "Update" to Unicode 6.2.0 tables
+
+    Nothing changed...
+
+ src/hb-ot-shape-complex-arabic-table.hh |  4 ++--
+ src/hb-ot-shape-complex-indic-table.hh  | 12 ++++++------
+ 2 files changed, 8 insertions(+), 8 deletions(-)
+
+commit 4ab99fb8c363cfc6a4f5952e69a19757f0cab344
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 30 15:02:04 2012 +0200
+
+    Minor
+
+ src/hb-ot-layout.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 6748b96d27477b35dd69129e55d861259d66bf9f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 30 12:02:21 2012 +0200
+
+    Minor
+
+ src/hb-ot-layout.cc | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 624933f67642997ee0a46d5acea285362e837142
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 30 11:46:35 2012 +0200
+
+    Add Persian test cases from Mehran Mehr
+
+ test/shaping/texts/in-tree/shaper-arabic/script-arabic/MANIFEST   | 1 +
+ .../in-tree/shaper-arabic/script-arabic/language-persian/MANIFEST | 1 +
+ .../shaper-arabic/script-arabic/language-persian/mehran.txt      |
+ 8 ++++++++
+ 3 files changed, 10 insertions(+)
+
+commit 0f3f5299047e3cfc4d1202fee83d484b871279ad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 30 09:06:59 2012 +0200
+
+    Add test-size-params
+
+    Eventually this will become part of a yet-to-be-written hb-ot cmdline
+    tool.
+
+ src/Makefile.am        | 10 ++++-
+ src/test-size-params.cc | 98
+ +++++++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 107 insertions(+), 1 deletion(-)
+
+commit 8465a05a89742295d4b009a9b4442eb0a899fd80
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 30 08:46:43 2012 +0200
+
+    Fix hb_buffer_guess_segment_properties() for empty buffer
+
+    Was causing assertion failure in shape_plan().
+
+ src/hb-buffer.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit e75943de803f571b7ad2cf2f777119753a209656
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 30 08:38:24 2012 +0200
+
+    [OTLayout] Fix collect_glyphs() recursion in ContextFormat3
+
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 3038ae6adbb61e55d6c665dea0c5271e0c9f0ed8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 30 08:24:13 2012 +0200
+
+    [OTLayout] Minor
+
+ src/hb-ot-layout-gpos-table.hh | 4 ----
+ src/hb-ot-layout-gsub-table.hh | 4 ----
+ src/hb-ot-layout.cc           | 4 ++--
+ 3 files changed, 2 insertions(+), 10 deletions(-)
+
+commit 0dff11f6bfbda444a153ca75ff2b947f94e9b3c5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 30 08:14:20 2012 +0200
+
+    [OTLayout] Look for any 'size' feature, not only in DFLT script
+
+    The old code doesn't work with all fonts, as Khaled has reported.
+
+ src/hb-ot-layout.cc | 14 +++++---------
+ 1 file changed, 5 insertions(+), 9 deletions(-)
+
+commit e9ad71dee845407da74ccacfbb53ad7ededf07fd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 30 08:10:26 2012 +0200
+
+    [OTLayout] Rename hb_ot_layout_position_get_size() to
+    hb_ot_layout_get_size_params()
+
+ src/hb-ot-layout.cc | 4 ++--
+ src/hb-ot-layout.h  | 7 ++++---
+ 2 files changed, 6 insertions(+), 5 deletions(-)
+
+commit f18ff5a84d9fe859c40a7a0c9a207cb40df0e84a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 30 08:07:06 2012 +0200
+
+    [OTLayout] Return correct value from recursion
+
+    Commit 4c4e8f0e754b79ac6190d21878eaaf0b790c7579 broke contextual
+    lookups
+    by making the recurse() function always return false.
+
+    Reported by Khaled.  Test case: لا in Amiri.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+commit f54cce3c6a0432268ce159dbe6c5c6b7f583b87a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 26 14:02:31 2012 +0200
+
+    [OTLayout] Implement 'size' feature
+
+ src/hb-ot-layout-common-private.hh | 36
+ ++++++++++++++++++++++++++++++++++--
+ src/hb-ot-layout.cc               | 31 +++++++++++++++++++++++++++++++
+ src/hb-ot-layout.h                |  5 +++++
+ 3 files changed, 70 insertions(+), 2 deletions(-)
+
+commit 2dc1141d7d0a9f5818862b09d6b9cfe0a27f1fc1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Nov 24 19:16:34 2012 -0500
+
+    [OTLayout] Remove operator() from ClassDef
+
+ src/hb-ot-layout-common-private.hh   | 2 --
+ src/hb-ot-layout-gpos-table.hh       | 4 ++--
+ src/hb-ot-layout-gsubgpos-private.hh | 8 ++++----
+ 3 files changed, 6 insertions(+), 8 deletions(-)
+
+commit b67881b171a7cf865af58df146da52fc1e27b160
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Nov 24 19:13:55 2012 -0500
+
+    [OTLayout] Remove operator() from Coverage
+
+ src/hb-ot-layout-common-private.hh   |  2 --
+ src/hb-ot-layout-gdef-table.hh       |  4 ++--
+ src/hb-ot-layout-gpos-table.hh       | 24 ++++++++++++------------
+ src/hb-ot-layout-gsub-table.hh       | 24 ++++++++++++------------
+ src/hb-ot-layout-gsubgpos-private.hh | 16 ++++++++--------
+ 5 files changed, 34 insertions(+), 36 deletions(-)
+
+commit a88e7160217b9f44e4e5b4b814d0ca98c457ee40
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Nov 24 02:31:02 2012 -0500
+
+    [OTLayout] Implement hb_ot_layout_collect_lookups()
+
+    Untested.
+
+ src/hb-ot-layout.cc | 97
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-ot-layout.h  | 4 +--
+ 2 files changed, 98 insertions(+), 3 deletions(-)
+
+commit 1ea375da446bf68f705a70ce4a480db9fb9d13f3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Nov 24 02:05:52 2012 -0500
+
+    [OTLayout] Only collect output glyphs during recursion in
+    collect_glyphs()
+
+ src/hb-ot-layout-gsubgpos-private.hh | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit f1b12781d279a73b5754afee31e930b5cd87aac6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Nov 24 01:55:34 2012 -0500
+
+    [OTLayout] Implement ChainContext collect_glyphs()
+
+    All of collect_glyphs() complete and untested now.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 103
+ ++++++++++++++++++++++++++++++++---
+ 1 file changed, 96 insertions(+), 7 deletions(-)
+
+commit cdd756b9f40665a201f5c4e65a87b9a27c390601
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Nov 24 01:38:41 2012 -0500
+
+    [OTLayout] Implement GPOS collect_glyphs()
+
+ src/hb-ot-layout-gpos-table.hh | 95
+ +++++++++++++++++++++++++++++++++++++++++-
+ src/hb-ot-layout.cc           |  9 ++--
+ 2 files changed, 99 insertions(+), 5 deletions(-)
+
+commit 4c4e8f0e754b79ac6190d21878eaaf0b790c7579
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Nov 24 01:13:20 2012 -0500
+
+    [OTLayout] Reuse apply context for recursion
+
+ src/hb-ot-layout-gpos-table.hh       | 7 ++++++-
+ src/hb-ot-layout-gsub-table.hh       | 7 ++++++-
+ src/hb-ot-layout-gsubgpos-private.hh | 8 ++++----
+ 3 files changed, 16 insertions(+), 6 deletions(-)
+
+commit 53a69f49e58ef4c4226958e0496fc22455ee6c87
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Nov 24 01:03:05 2012 -0500
+
+    [OTLayout] Remove unused members
+
+ src/hb-ot-layout-gsubgpos-private.hh | 3 ---
+ 1 file changed, 3 deletions(-)
+
+commit d0a5233785eb327c4080432f597fe470a1046af3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 18:54:59 2012 -0500
+
+    [OTLayout] Implement Context::collect_glyphs()
+
+ src/hb-ot-layout-gsubgpos-private.hh | 122
+ +++++++++++++++++++++++++++++++----
+ 1 file changed, 111 insertions(+), 11 deletions(-)
+
+commit 26514d51b6669f092d9ccb7523443a5ece74169a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 18:13:48 2012 -0500
+
+    [OTLayout] More collect_glyphs()
+
+ src/hb-ot-layout-gpos-table.hh       |  6 ++---
+ src/hb-ot-layout-gsub-table.hh       | 32 +++++++++++++++-------
+ src/hb-ot-layout-gsubgpos-private.hh | 51
+ ++++++++++++++++++++++++++++++++----
+ 3 files changed, 71 insertions(+), 18 deletions(-)
+
+commit c6fb843f2a1c26322c6f4c85d1589f01a9e7a2ef
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 18:04:08 2012 -0500
+
+    [OTLayout] Templatize process_recurse_func
+
+ src/hb-ot-layout-gpos-table.hh | 10 ++++++++++
+ src/hb-ot-layout-gsub-table.hh |  8 +++++---
+ 2 files changed, 15 insertions(+), 3 deletions(-)
+
+commit 9b34677f362fb0ef5a7cb8a284a9e06d1a4cc03b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 17:55:40 2012 -0500
+
+    [OTLayout] Clean up closure() a bit
+
+ src/hb-ot-layout-gsub-table.hh       | 29 ++++++++++++++---------------
+ src/hb-ot-layout-gsubgpos-private.hh |  7 ++++---
+ src/hb-ot-layout.cc                 |  6 +++++-
+ 3 files changed, 23 insertions(+), 19 deletions(-)
+
+commit adf7758a27a11fb1a8a14a2673867589437d22a3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 17:32:00 2012 -0500
+
+    Improve debug log format in presence of templates
+
+ src/hb-private.hh | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+commit 2c53bd3c3ec4f81eff126c5bf84b7f2ddf2f0fef
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 17:29:05 2012 -0500
+
+    [OTLayout] Start porting sanitize() to process()
+
+ src/hb-open-type-private.hh         | 12 +++++++++++-
+ src/hb-ot-layout-gsubgpos-private.hh |  8 ++++----
+ 2 files changed, 15 insertions(+), 5 deletions(-)
+
+commit f48ec0e83432c038b50d9715a38ba1469e82e1e4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 17:23:41 2012 -0500
+
+    [OTLayout] Add process() tracing
+
+ src/hb-ot-layout-gpos-table.hh       | 60
+ ++++++++++++++++++++----------------
+ src/hb-ot-layout-gsub-table.hh       | 51 +++++++++++++++++-------------
+ src/hb-ot-layout-gsubgpos-private.hh | 17 +++++-----
+ 3 files changed, 72 insertions(+), 56 deletions(-)
+
+commit ed2e13594479c6ed7909401509962ea2f03f9a6e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 17:10:40 2012 -0500
+
+    [OTLayout] More Extension templatizing
+
+ src/hb-ot-layout-gpos-table.hh       | 11 -----------
+ src/hb-ot-layout-gsub-table.hh       | 11 -----------
+ src/hb-ot-layout-gsubgpos-private.hh | 12 ++++++++++--
+ 3 files changed, 10 insertions(+), 24 deletions(-)
+
+commit 7dddd4e72bc35be962d93dc1b76c7e26c63aaa6d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 17:04:55 2012 -0500
+
+    [OTLayout] More templatizing Extension
+
+ src/hb-ot-layout-gpos-table.hh       |  7 +------
+ src/hb-ot-layout-gsub-table.hh       |  9 ++-------
+ src/hb-ot-layout-gsubgpos-private.hh | 10 +++++++++-
+ 3 files changed, 12 insertions(+), 14 deletions(-)
+
+commit 653eeb26450053b731b46346606931f5ae88db72
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 16:57:36 2012 -0500
+
+    Make Extension a template
+
+ src/hb-ot-layout-gpos-table.hh       | 11 +----------
+ src/hb-ot-layout-gsub-table.hh       | 11 +----------
+ src/hb-ot-layout-gsubgpos-private.hh |  7 +++++++
+ 3 files changed, 9 insertions(+), 20 deletions(-)
+
+commit 08f1eede1bbc01ece2adf89847614a0670e50443
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 16:51:43 2012 -0500
+
+    Minor
+
+ src/hb-ot-layout-gpos-table.hh | 19 ++-----------------
+ src/hb-ot-layout-gsub-table.hh | 19 ++-----------------
+ 2 files changed, 4 insertions(+), 34 deletions(-)
+
+commit 2c9d6485a1f89c11f84e720d3c7978dc11a5039a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 16:49:19 2012 -0500
+
+    More tracing fixup
+
+ src/hb-private.hh | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+commit a1733db1c6ff40aae71fa142a12b1fea7b53dd37
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 16:40:04 2012 -0500
+
+    [OTLayout] Start adding process() tracing
+
+ src/hb-ot-layout-gsubgpos-private.hh | 44
+ +++++++++++++++++++++++++++---------
+ src/hb-private.hh                   |  6 +++--
+ 2 files changed, 37 insertions(+), 13 deletions(-)
+
+commit 73c18ae1b982a4e65086afe5177afa79e721e2c0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 15:34:11 2012 -0500
+
+    Cleanup
+
+ src/hb-ot-layout-gsubgpos-private.hh | 16 ++++------------
+ 1 file changed, 4 insertions(+), 12 deletions(-)
+
+commit be218c688cbb037a99c8c64bb835f3c980040c0b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 15:32:14 2012 -0500
+
+    Pass this object to trace macros
+
+ src/hb-open-file-private.hh         |  10 +--
+ src/hb-open-type-private.hh         |  34 +++++-----
+ src/hb-ot-head-table.hh             |   2 +-
+ src/hb-ot-hhea-table.hh             |   2 +-
+ src/hb-ot-hmtx-table.hh             |   2 +-
+ src/hb-ot-layout-common-private.hh   |  36 +++++------
+ src/hb-ot-layout-gdef-table.hh       |  20 +++---
+ src/hb-ot-layout-gpos-table.hh       |  80 +++++++++++------------
+ src/hb-ot-layout-gsub-table.hh       | 122
+ +++++++++++++++++------------------
+ src/hb-ot-layout-gsubgpos-private.hh | 100 ++++++++++++++--------------
+ src/hb-ot-maxp-table.hh             |   2 +-
+ src/hb-ot-name-table.hh             |   6 +-
+ 12 files changed, 208 insertions(+), 208 deletions(-)
+
+commit 902cc8aca0b3ff25eeee50b3a84d729e31731ef3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 15:06:59 2012 -0500
+
+    [OTLayout] Start unbreaking tracing
+
+ src/hb-open-type-private.hh         | 37
+ +++++++++++++++++++++---------------
+ src/hb-ot-layout-gsubgpos-private.hh | 37
+ +++++++++++++++++++++++++-----------
+ src/hb-private.hh                   | 30 +++++++++++++++++++----------
+ 3 files changed, 68 insertions(+), 36 deletions(-)
+
+commit dabe698fcbeb02911128b17aa8e3b2d864795960
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 14:21:35 2012 -0500
+
+    Minor
+
+ src/hb-open-type-private.hh         |  5 -----
+ src/hb-ot-layout-gsubgpos-private.hh | 10 ++++------
+ src/hb-private.hh                   | 27 +++++++++++++++++++++++++--
+ 3 files changed, 29 insertions(+), 13 deletions(-)
+
+commit c779d82b2fc801eec0d349a106c0e860448fcf4e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 14:07:24 2012 -0500
+
+    Fix warnings
+
+ src/hb-ot-layout-gpos-table.hh       | 2 --
+ src/hb-ot-layout-gsub-table.hh       | 8 +++-----
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ src/hb-private.hh                   | 2 +-
+ 4 files changed, 5 insertions(+), 9 deletions(-)
+
+commit 81822528efc63d867cb2343a8ff7af64fac1c70d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 23 13:27:16 2012 -0500
+
+    Minor
+
+ src/hb-open-type-private.hh         | 6 ++++++
+ src/hb-ot-layout-gsubgpos-private.hh | 3 ---
+ 2 files changed, 6 insertions(+), 3 deletions(-)
+
+commit 1d67ef980f35ae30d4f8975f65ee07b8cc5deeea
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 22 16:47:53 2012 -0500
+
+    Move code around
+
+ src/hb-ot-layout-gsubgpos-private.hh | 44
+ ++++++++++++++++++------------------
+ 1 file changed, 22 insertions(+), 22 deletions(-)
+
+commit ec35a72a44301934b8f123ab2833f59d8c875a09
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 22 16:05:59 2012 -0500
+
+    [OTLayout] Port apply() operator to process() template
+
+ src/hb-ot-layout-gpos-table.hh       | 117
+ ++++-------------------------------
+ src/hb-ot-layout-gsub-table.hh       | 108
+ +++-----------------------------
+ src/hb-ot-layout-gsubgpos-private.hh |  99 +++++++++++++----------------
+ src/hb-ot-layout.cc                 |   2 +-
+ 4 files changed, 65 insertions(+), 261 deletions(-)
+
+commit 2005fa5340fc528c32dc2af945ad2431964a47d2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 22 14:38:10 2012 -0500
+
+    [OTLayout] Port would_apply() and get_coverage() to process()
+    templates
+
+ src/hb-ot-layout-gpos-table.hh       | 175
+ +++++++++++--------------------
+ src/hb-ot-layout-gsub-table.hh       | 198
+ ++++++++++++-----------------------
+ src/hb-ot-layout-gsubgpos-private.hh |  76 +++++---------
+ 3 files changed, 156 insertions(+), 293 deletions(-)
+
+commit 44fc237b53ebfbaf8a539de16ad735d2c6afc52b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 21 23:33:13 2012 -0500
+
+    [OTLayout] Port closure() to process() template
+
+ src/hb-ot-layout-gsub-table.hh       | 297
+ ++++++++---------------------------
+ src/hb-ot-layout-gsubgpos-private.hh | 209 ++++++++++++------------
+ src/hb-ot-layout.cc                 |  10 +-
+ 3 files changed, 171 insertions(+), 345 deletions(-)
+
+commit 5be86b1bb4fbb37b50a1e2798df0c9a3a528b6b2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 22 16:26:22 2012 -0500
+
+    [ucdn] Make data tables const!
+
+ src/hb-ucdn/ucdn.c          | 16 ++++++++--------
+ src/hb-ucdn/unicodedata_db.h | 28 ++++++++++++++--------------
+ 2 files changed, 22 insertions(+), 22 deletions(-)
+
+commit 7c5b7fe686c9163afe2f31fbeac6f8c8512f5516
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 22 14:15:08 2012 -0500
+
+    Fix hb_shape_plan_get_shaper()
+
+ src/hb-shape-plan.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 4c8963576573483269b327c6465f6ec99f489e05
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 21 01:20:56 2012 -0500
+
+    0.9.7
+
+ NEWS        | 86
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 87 insertions(+), 1 deletion(-)
+
+commit ac064a2db2b7a010d99527e183145286215aea81
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 21 01:14:19 2012 -0500
+
+    Rename hb_set_population() to hb_set_get_population()
+
+ src/hb-set.cc | 2 +-
+ src/hb-set.h  | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit 16c914c2a6efeb6999054333985b1f711e33cf94
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 21 01:04:15 2012 -0500
+
+    [Indic] One more try at unbreaking Khmer fonts
+
+    See comments and discussion on the list.
+
+ src/hb-ot-shape-complex-private.hh | 16 ++++++++++------
+ 1 file changed, 10 insertions(+), 6 deletions(-)
+
+commit e8cfdd7fa8d0fb66e0a261f3547e5824897e5131
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 16 19:07:06 2012 -0800
+
+    Start implementing collect_glyphs() operation
+
+    Not functional yet.
+
+ src/hb-ot-layout-gsub-table.hh       | 185
+ +++++++++++++++++++++++++++++++++++
+ src/hb-ot-layout-gsubgpos-private.hh |  57 +++++++++++
+ src/hb-ot-layout.cc                 |  29 ++++++
+ src/hb-ot-layout.h                  |   4 +-
+ 4 files changed, 272 insertions(+), 3 deletions(-)
+
+commit 7d52e6601f0e695690cd168a288466746cf25300
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 16 18:49:54 2012 -0800
+
+    Whitespace
+
+ src/hb-coretext.cc                  |  32 +++++-----
+ src/hb-icu-le.cc                    |   2 +-
+ src/hb-old.cc                       |  10 ++--
+ src/hb-open-file-private.hh         |   2 +-
+ src/hb-open-type-private.hh         |   2 +-
+ src/hb-ot-head-table.hh             |   2 +-
+ src/hb-ot-hhea-table.hh             |   2 +-
+ src/hb-ot-hmtx-table.hh             |   2 +-
+ src/hb-ot-layout-common-private.hh   |   2 +-
+ src/hb-ot-layout-gdef-table.hh       |   2 +-
+ src/hb-ot-layout-gpos-table.hh       |   2 +-
+ src/hb-ot-layout-gsub-table.hh       |   2 +-
+ src/hb-ot-layout-gsubgpos-private.hh |   2 +-
+ src/hb-ot-maxp-table.hh             |   2 +-
+ src/hb-ot-name-table.hh             |   2 +-
+ src/hb-ot-shape-complex-default.cc   | 109
+ ++++++++++++++++++-----------------
+ src/hb-tt-font.cc                   |   2 +-
+ 17 files changed, 87 insertions(+), 92 deletions(-)
+
+commit 51bb498b7b07bff4a447405b72f09b68d07a3e95
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 16 14:08:05 2012 -0800
+
+    Minor
+
+ src/hb-ot-shape.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 89ca8eeb83fedde06727d386369a0a39d410f12b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 16 13:53:40 2012 -0800
+
+    Implement hb_ot_layout_get_glyphs_in_class()
+
+ src/hb-ot-layout-common-private.hh | 24 ++++++++++++++++++++++++
+ src/hb-ot-layout-gdef-table.hh     |  2 ++
+ src/hb-ot-layout.cc               |  8 ++++++++
+ src/hb-ot-layout.h                |  5 ++---
+ 4 files changed, 36 insertions(+), 3 deletions(-)
+
+commit 5a08ecf9200a6ac9b4ebb7ec5c13dcb42d8820ce
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 16 13:34:29 2012 -0800
+
+    Implement hb_ot_layout_get_glyph_class()
+
+ src/hb-ot-layout-gdef-table.hh       | 10 +++++-----
+ src/hb-ot-layout-gpos-table.hh       |  8 ++++----
+ src/hb-ot-layout-gsub-table.hh       |  2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 10 +++++-----
+ src/hb-ot-layout-private.hh         | 10 +++++++++-
+ src/hb-ot-layout.cc                 |  6 ++++++
+ src/hb-ot-layout.h                  | 14 ++++++--------
+ src/hb-ot-shape.cc                  |  4 ++--
+ 8 files changed, 38 insertions(+), 26 deletions(-)
+
+commit f9edd5d56bd219625f5b16b23eac53b4c4a8b194
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 16 13:23:37 2012 -0800
+
+    Implement hb_shape_plan_get_shaper()
+
+    Untested.
+
+ src/hb-shape-plan-private.hh | 1 +
+ src/hb-shape-plan.cc        | 7 +++++++
+ src/hb-shape-plan.h         | 4 +---
+ 3 files changed, 9 insertions(+), 3 deletions(-)
+
+commit 43b653150081a2f9dc6b7481229ac4cd952575dc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 16 13:12:35 2012 -0800
+
+    [Indic] Another try to unbreak Sinhala split matras
+
+    Just read the comments...
+
+ src/hb-ot-shape-complex-indic.cc                  | 43
+ ++++++++++++++++++----
+ .../indic/script-sinhala/misc/MANIFEST                    |  1 +
+ .../indic/script-sinhala/misc/split-matras.txt     |  4 ++
+ 3 files changed, 40 insertions(+), 8 deletions(-)
+
+commit 977f1740ace730dcdff8221a17f2a592c2ec7c74
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 16 13:10:07 2012 -0800
+
+    Unbreak tests
+
+ src/hb-ot-layout.h  | 14 +++++++-------
+ src/hb-shape-plan.h | 2 +-
+ 2 files changed, 8 insertions(+), 8 deletions(-)
+
+commit eba312c8d1b2bbe8cb9b6414e843e78d2c521aa4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 16 12:39:23 2012 -0800
+
+    Plumbing to get shape plan and font into complex decompose function
+
+    So we can handle Sinhala split matras smartly...  Coming soon.
+
+ src/hb-ot-shape-complex-default.cc   |  6 ++--
+ src/hb-ot-shape-complex-indic.cc     | 14 ++++-----
+ src/hb-ot-shape-complex-private.hh   | 16 +++++------
+ src/hb-ot-shape-normalize-private.hh | 22 ++++++++++++--
+ src/hb-ot-shape-normalize.cc        | 56
+ ++++++++++++++----------------------
+ src/hb-ot-shape.cc                  |  2 +-
+ 6 files changed, 61 insertions(+), 55 deletions(-)
+
+commit 3f82f8ff07a9d16a7c047129658c1bbedfdb5436
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 15 18:45:31 2012 -0800
+
+    Rename hb_buffer_guess_properties() to
+    hb_buffer_guess_segment_properties()
+
+ src/hb-buffer-private.hh | 2 +-
+ src/hb-buffer.cc        | 6 +++---
+ src/hb-buffer.h         | 2 +-
+ src/hb-fallback-shape.cc | 2 +-
+ src/hb-ot-shape.cc      | 2 +-
+ src/hb-shape.cc         | 2 +-
+ 6 files changed, 8 insertions(+), 8 deletions(-)
+
+commit f30641038ba96e83950729b1bd9d86d2e98e46c5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 15 18:39:46 2012 -0800
+
+    Bunch of independent changes (ouch)
+
+    API additions:
+
+       hb_segment_properties_t
+       HB_SEGMENT_PROPERTIES_DEFAULT
+       hb_segment_properties_equal()
+       hb_segment_properties_hash()
+
+       hb_buffer_set_segment_properties()
+       hb_buffer_get_segment_properties()
+
+       hb_ot_layout_glyph_class_t
+
+       hb_shape_plan_t
+       hb_shape_plan_create()
+       hb_shape_plan_create_cached()
+       hb_shape_plan_get_empty()
+       hb_shape_plan_reference()
+       hb_shape_plan_destroy()
+       hb_shape_plan_set_user_data()
+       hb_shape_plan_get_user_data()
+       hb_shape_plan_execute()
+
+       hb_ot_shape_plan_collect_lookups()
+
+    API changes:
+
+       Rename hb_ot_layout_feature_get_lookup_indexes() to
+       hb_ot_layout_feature_get_lookups().
+
+    New header file:
+
+       hb-shape-plan.h
+
+    And a bunch of prototyped but not implemented stuff.  Coming soon.
+    (Tests fail because of the prototypes right now.)
+
+ src/Makefile.am             |   2 +-
+ src/hb-buffer-private.hh     |  37 ---------------
+ src/hb-buffer.cc            |  45 +++++++++++++++++-
+ src/hb-buffer.h             |  47 +++++++++++++++++--
+ src/hb-ot-layout-private.hh  |   8 ----
+ src/hb-ot-layout.cc         |  12 ++---
+ src/hb-ot-layout.h          | 108
+ ++++++++++++++++++++++++++++++++++++++++---
+ src/hb-ot-map-private.hh     |   2 +-
+ src/hb-ot-map.cc            |  15 +++---
+ src/hb-ot-shape-private.hh   |  11 ++++-
+ src/hb-ot-shape.cc          |  52 ++++++++++++++-------
+ src/hb-ot.h                 |   1 +
+ src/hb-shape-plan-private.hh |   3 +-
+ src/hb-shape-plan.cc        |  23 +++++++--
+ src/hb-shape-plan.h         |  50 +++++++++++++-------
+ src/hb-shaper-private.hh     |   2 -
+ src/hb-shaper.cc            |   2 +-
+ src/hb.h                    |   1 +
+ 18 files changed, 304 insertions(+), 117 deletions(-)
+
+commit 75da37dcb17aacc0be6bb006683a84aa31155938
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 15 18:39:23 2012 -0800
+
+    Minor
+
+ util/hb-ot-shape-closure.cc | 24 ++++++++++++------------
+ 1 file changed, 12 insertions(+), 12 deletions(-)
+
+commit e05a999495e6575f7cebd7f35db087d964f11ef6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 15 16:23:21 2012 -0800
+
+    Add hb_face_[sg]et_glyph_count()
+
+ src/hb-font-private.hh |  9 +++++++++
+ src/hb-font.cc                | 29 ++++++++++++++++++++++++++++-
+ src/hb-font.h         |  7 +++++++
+ 3 files changed, 44 insertions(+), 1 deletion(-)
+
+commit aec89de5641fbe1c3031d63dd5f40ec99bf2a538
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 15 16:15:42 2012 -0800
+
+    Add / modify set API a bit
+
+ src/hb-ot-shape.cc         |  2 +-
+ src/hb-set-private.hh      | 35 ++++++++++++++++--
+ src/hb-set.cc              | 86
+ ++++++++++++++++++++++++++++++---------------
+ src/hb-set.h               | 55 +++++++++++++++++++----------
+ util/hb-ot-shape-closure.cc | 2 +-
+ 5 files changed, 128 insertions(+), 52 deletions(-)
+
+commit c54599ad269380c7aa28d885fcfd660fc2c10a7b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 15 16:14:23 2012 -0800
+
+    Minor
+
+ src/hb-buffer.cc | 2 +-
+ src/hb-buffer.h  | 8 +++-----
+ 2 files changed, 4 insertions(+), 6 deletions(-)
+
+commit d1aa143ca434fe272de21d2002768c83387b583b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 15 15:38:08 2012 -0800
+
+    [Thai] Remove U+0E2C from "AC" consonants
+
+    WinXP doesn't include it.
+
+ src/hb-ot-shape-complex-thai.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 362a990b2246f5448ecb9d600761f710aea7d42d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 15 14:57:31 2012 -0800
+
+    Rename hb_ot_layout_would_substitute_lookup() and
+    hb_ot_layout_substitute_closure_lookup()
+
+    To match upcoming API.
+
+ src/hb-ot-layout-private.hh     | 2 +-
+ src/hb-ot-layout.cc             | 8 ++++----
+ src/hb-ot-layout.h              | 4 ++--
+ src/hb-ot-map.cc                | 2 +-
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ src/test-would-substitute.cc    | 2 +-
+ 6 files changed, 10 insertions(+), 10 deletions(-)
+
+commit a4bef84e375b090c1bc7e4221b8e0ee435dfcbba
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 15 13:29:51 2012 -0800
+
+    [util] Make hb-shape err if output-format is not understood
+
+    And list supported formats.
+
+ util/hb-shape.cc | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+commit 3cec819d39e45470d03085bb6fa132882cc85943
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 15 13:15:39 2012 -0800
+
+    Make the OT shaper default, even if CoreText or Uniscribe is enabled
+
+ src/hb-shaper-list.hh | 15 ++++++++-------
+ 1 file changed, 8 insertions(+), 7 deletions(-)
+
+commit 072ae7a982bf640804eee0b41525e7c328806bf5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 15 13:14:12 2012 -0800
+
+    Add hb_buffer_serialize_list_formats()
+
+ src/hb-buffer.cc | 6 ++++++
+ src/hb-buffer.h  | 3 +++
+ 2 files changed, 9 insertions(+)
+
+commit f9edf1672511c3bcc3796cc79578ffea43b2bda1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 15 12:14:09 2012 -0800
+
+    Add buffer serialization / deserialization API
+
+    Two output formats for now: TEXT, and JSON.  For example:
+
+      hb-shape --output-format=json
+
+    Deserialization API is added, but not implemented yet.
+
+ src/hb-buffer.cc | 222
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-buffer.h  |  42 +++++++++++
+ util/hb-shape.cc |  21 +++++-
+ util/options.cc  |  57 +++++---------
+ util/options.hh  |   7 +-
+ 5 files changed, 304 insertions(+), 45 deletions(-)
+
+commit fd0de881f4fc004da6f36d50a91d0e62f8eb4d8c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 15 10:47:14 2012 -0800
+
+    Avoid C++ undefined behavior
+
+    https://bugzilla.mozilla.org/show_bug.cgi?id=810823
+
+ src/hb-open-type-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit f41dc2d35b23220d59d38990bb66f1cbd66a55b3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 15 10:36:43 2012 -0800
+
+    Fix undefined behavior in Indic dottedcircle
+
+    Chromium Issue 158998:     Conditional jump in harfbuzz-ng
+    http://code.google.com/p/chromium/issues/detail?id=158998
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 1eb3e94fe99a072ce422e60ac4d4d89ef489b08a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 14 17:25:03 2012 -0800
+
+    [Thai] Implement PUA-based fallback shaping
+
+    As explained here:
+
+      http://linux.thai.net/~thep/th-otf/shaping.html
+
+    Our output now matches Uniscribe for old fonts (eg. XP Tahoma) with no
+    Thai GSUB table.
+
+ src/hb-ot-shape-complex-thai.cc | 217
+ ++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 217 insertions(+)
+
+commit 851784f8372004e0a40b698c0cdc2d7db8629aa2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 14 16:24:05 2012 -0800
+
+    Improve shaper selection
+
+ src/hb-ot-map-private.hh          |  8 ++++----
+ src/hb-ot-map.cc                  |  6 ++++--
+ src/hb-ot-shape-complex-indic.cc   |  2 +-
+ src/hb-ot-shape-complex-private.hh | 13 ++++++++-----
+ src/hb-ot-shape-complex-thai.cc    | 24 ++++++++++++++++++++++--
+ 5 files changed, 39 insertions(+), 14 deletions(-)
+
+commit f3584d3a3a627e38dfd7769975a670db340d2a48
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 14 15:55:17 2012 -0800
+
+    Add test cases for Thai PUA shaping
+
+ .../texts/in-tree/shaper-thai/script-thai/misc/MANIFEST       |  1 +
+ .../in-tree/shaper-thai/script-thai/misc/pua-shaping.txt      |
+ 11 +++++++++++
+ 2 files changed, 12 insertions(+)
+
+commit 43f04a7456419153cb03e610a825056a47824780
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 14 15:51:54 2012 -0800
+
+    Move Thai shaper into a separate file
+
+ src/Makefile.am                   |   3 +-
+ src/hb-ot-shape-complex-default.cc | 225 ++++++++++++++++++++++++
+ src/hb-ot-shape-complex-misc.cc    | 339
+ -------------------------------------
+ src/hb-ot-shape-complex-thai.cc    | 141 +++++++++++++++
+ 4 files changed, 368 insertions(+), 340 deletions(-)
+
+commit ba82325b7a6311b787ae47f41a56964e2f2cba9f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 14 15:36:53 2012 -0800
+
+    Add note re 'Phags-pa letter U+A872, which is Joining_Type=L
+
+ src/hb-ot-shape-complex-arabic.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit d469fadce8290c7dda559c5927dd19df65f91c1a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 14 15:07:36 2012 -0800
+
+    [Indic] Exchange abort() for assert()
+
+ src/hb-ot-shape-complex-indic.cc | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+commit 0f80a89de99293ddbf0b8b815fe360677d057e38
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 14 15:05:19 2012 -0800
+
+    Don't route Kharoshthi through the Indic shaper
+
+    It's a simple, right-to-left, script.
+
+ src/hb-ot-shape-complex-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit e67072bb179a5c17db04075de74215597fb43c82
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 14 15:00:53 2012 -0800
+
+    [Indic] Handle overstruck matra position
+
+ src/hb-ot-shape-complex-indic-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 7e99e4f0740e47efda5882604954cb7d12700a4b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 14 14:09:46 2012 -0800
+
+    Reposition Lao marks
+
+    Lao marks are center-aligned, unlike Thai ones.
+
+ src/hb-ot-shape-fallback.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 865745b5b87236651f5663cae3461db9cb505eed
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 14 13:48:26 2012 -0800
+
+    Don't do fallback positioning for Indic and Thai shapers
+
+ src/hb-ot-shape-complex-arabic.cc  |  1 +
+ src/hb-ot-shape-complex-indic.cc   |  1 +
+ src/hb-ot-shape-complex-misc.cc    |  2 ++
+ src/hb-ot-shape-complex-private.hh |  1 +
+ src/hb-ot-shape.cc                | 20 +++++---------------
+ 5 files changed, 10 insertions(+), 15 deletions(-)
+
+commit 981748cb2e9b48b77177b19ec1f972cab7afda89
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 14 13:38:16 2012 -0800
+
+    [Indic] If Khmer fonts have a 'liga' feature, use generic shaper
+
+    Seems to produce more coherent results than trying the Indic shaper on
+    them.  I'm looking at you, Kh-* fonts...
+
+ src/hb-ot-shape-complex-private.hh | 21 +++++++++++++++++----
+ 1 file changed, 17 insertions(+), 4 deletions(-)
+
+commit 6b19fa48621dbf36d471d5005f6ae20df350954f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 14 11:38:50 2012 -0800
+
+    Adjust diff rule for the new hb-shape output format
+
+ test/shaping/hb_test_tools.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit dde5506fd963e3cec27c3389bb1fc092f86d1e06
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 14 11:37:04 2012 -0800
+
+    [Indic] Don't move virama with left matra
+
+    This is important for the Sinhala U+0DDA split matra since it
+    decomposes
+    to U+0DD9,U+0DCA where U+0DD9 is a left matra and U+0DCA is the
+    virama.
+    We don't want to move the virama with the left matra.
+    TEST: U+0D9A,U+0DDA
+
+    Note that we were already doing this in the Uniscribe bug
+    compatibility
+    mode.  We now do it all the time.
+
+ src/hb-ot-shape-complex-indic.cc | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+commit 82c4d9880a2cd321f6426888511c5f0318f96ad5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 14 10:56:02 2012 -0800
+
+    Add Sinhala test case for split matra U+0DDA
+
+ .../texts/in-tree/shaper-indic/indic/script-sinhala/misc/misc.txt
+ | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit d04b12853167d756a8cccaf4154f0fd894bce6de
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 14 10:53:10 2012 -0800
+
+    Fix test
+
+ test/api/test-buffer.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 92f9bfed42f720c1fd78e795845542661aaf4f8a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 13 16:50:45 2012 -0800
+
+    Minor
+
+ src/hb-buffer.h | 26 ++++++++++++++------------
+ 1 file changed, 14 insertions(+), 12 deletions(-)
+
+commit 66ac2ff32e24f0d5658ca172147613081a133847
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 13 16:26:32 2012 -0800
+
+    API change: Remove "mask" from hb_buffer_add()
+
+    I don't expect anybody using hb_buffer_add(), so this shouldn't break
+    anyone's code.
+
+ src/hb-buffer-private.hh | 1 -
+ src/hb-buffer.cc        | 8 +++-----
+ src/hb-buffer.h         | 1 -
+ 3 files changed, 3 insertions(+), 7 deletions(-)
+
+commit 407f80d62589774f845ef1a6a0a7d841b09d57c6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 13 15:33:27 2012 -0800
+
+    [util] Add --bot / --eot / --preserve-default-ignorables
+
+ util/options.cc |  3 +++
+ util/options.hh | 12 ++++++++++++
+ 2 files changed, 15 insertions(+)
+
+commit 78d41d8d69142ae95928b51215c0c0c5e3f5b3f0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 13 15:15:09 2012 -0800
+
+    Minor
+
+ util/options.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 321f73c16efa0730c96e001d65268f4927a0f735
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 13 15:12:24 2012 -0800
+
+    [util] Add --text-before and --text-after to hb-shape / hb-view
+
+    Use with Arabic, for example, to see the effect on joining.
+
+ util/hb-ot-shape-closure.cc | 4 +++-
+ util/main-font-text.hh      | 2 +-
+ util/options.cc            |  2 ++
+ util/options.hh            | 18 ++++++++++++++++--
+ util/shape-consumer.hh      | 6 ++++--
+ 5 files changed, 26 insertions(+), 6 deletions(-)
+
+commit e13f8d280bafc6a6b6e31e2eee587660b8333c56
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 13 15:12:06 2012 -0800
+
+    Fix UTF-8 backward iteration
+
+    Ouch!
+
+ src/hb-utf-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 5669a6cf418f3a8b9281c36e9d662d843be80433
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 13 15:11:51 2012 -0800
+
+    [Arabic] Fix post-context handling
+
+    Ouch!
+
+ src/hb-ot-shape-complex-arabic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 0c7df2222862122ebbdc8665a21d6771ef5e0252
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 13 14:42:35 2012 -0800
+
+    Add buffer flags
+
+    New API:
+
+       hb_buffer_flags_t
+
+       HB_BUFFER_FLAGS_DEFAULT
+       HB_BUFFER_FLAG_BOT
+       HB_BUFFER_FLAG_EOT
+       HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES
+
+       hb_buffer_set_flags()
+       hb_buffer_get_flags()
+
+    We use the BOT flag to decide whether to insert dottedcircle if the
+    first char in the buffer is a combining mark.
+
+    The PRESERVE_DEFAULT_IGNORABLES flag prevents removal of characters
+    like
+    ZWNJ/ZWJ/...
+
+ src/hb-buffer-private.hh         |  1 +
+ src/hb-buffer.cc                 | 18 ++++++++++++++++++
+ src/hb-buffer.h                  | 13 +++++++++++++
+ src/hb-ot-shape-complex-arabic.cc | 40
+ ++++++++++++++++++++-------------------
+ src/hb-ot-shape.cc               |  9 ++++++---
+ test/api/test-buffer.c                   |  9 +++++++++
+ 6 files changed, 68 insertions(+), 22 deletions(-)
+
+commit 1c7e55511a870f2689680ca8f977e00879f3b3e3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 13 14:42:22 2012 -0800
+
+    Minor fix
+
+    Ouch
+
+ src/hb-shape.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit c8d4f8b0fe56ce909e3ca07f8a30cb4fb940868b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 13 14:10:19 2012 -0800
+
+    Minor
+
+ test/api/test-object.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 82ecaff736e245e117d70b6ec1497508c6eb08d2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 13 13:57:52 2012 -0800
+
+    Add hb_buffer_clear()
+
+    Which is like _reset(), but does NOT clear unicode-funcs.
+
+ src/hb-buffer-private.hh |  1 +
+ src/hb-buffer.cc        | 15 +++++++++++++++
+ src/hb-buffer.h         |  4 ++++
+ test/api/test-buffer.c   | 22 +++++++++++++++++++++-
+ 4 files changed, 41 insertions(+), 1 deletion(-)
+
+commit da43a92b04929e93356ae393803ef101154d2267
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 13 13:48:26 2012 -0800
+
+    0.9.6
+
+ NEWS        | 28 ++++++++++++++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 29 insertions(+), 1 deletion(-)
+
+commit 0736915b8ed789a209205fec762997af3a8af89c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 13 12:35:35 2012 -0800
+
+    [Indic] Decompose Sinhala split matras the way old HarfBuzz /
+    Pango did
+
+    Had to do some refactoring to make this happen...
+
+    Under uniscribe bug compatibility mode, we still plit them
+    Uniscrie-style, but Jonathan and I convinced ourselves that there
+    is no
+    harm doing this the Unicode way.  This change makes that happen, and
+    unbreaks free Sinhala fonts.
+
+ src/hb-ot-shape-complex-arabic.cc    |   2 +
+ src/hb-ot-shape-complex-indic.cc     |  74 +++++++++-
+ src/hb-ot-shape-complex-misc.cc      | 133 ++++++++++++++++-
+ src/hb-ot-shape-complex-private.hh   |  28 +++-
+ src/hb-ot-shape-normalize-private.hh |   6 +-
+ src/hb-ot-shape-normalize.cc        | 278
+ ++++++++++-------------------------
+ src/hb-ot-shape.cc                  |   5 +-
+ 7 files changed, 312 insertions(+), 214 deletions(-)
+
+commit c8149ca85ed97112778590bc9f090f3ee0254100
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 13 11:07:20 2012 -0800
+
+    [hb-shape] Adjust postioning output format
+
+    1. If there is any offset (x or y), print out both x and y offsets.
+
+    2. Always print out the advance in the major direction of the buffer.
+    Ie. even for zero-advance glyphs, print a "+0".  This is more
+    intuitive.
+
+ util/options.cc | 13 +++++++------
+ 1 file changed, 7 insertions(+), 6 deletions(-)
+
+commit 6fd5335622087e87739684f581aa9f88635ff970
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 18:42:18 2012 -0800
+
+    [Indic] Update auto-generated Indic machine to reflect previous commit
+
+ src/hb-ot-shape-complex-indic-machine.hh | 1126
+ +++++++++++++++---------------
+ 1 file changed, 567 insertions(+), 559 deletions(-)
+
+commit 9cac1338c4bc3e9034cbfa104291ed0329debefe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 18:41:22 2012 -0800
+
+    [Indic] Allow Consonant_Medial's after Consonant's
+
+    Mostly affects Myanmar, but also Tai Tham, Javanese, and Cham.  The
+    latter three are untested (no fonts!).
+
+ src/hb-ot-shape-complex-indic-machine.rl | 3 ++-
+ src/hb-ot-shape-complex-indic-private.hh | 7 ++++---
+ 2 files changed, 6 insertions(+), 4 deletions(-)
+
+commit d187099cbab8e75f870a2bc9c23b6a1cf226905e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 18:38:06 2012 -0800
+
+    [Indic] Categorize Myanmar "tone marks" as nuktas
+
+ src/hb-ot-shape-complex-indic-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 8173f23f3f16972c2e8e0a120724533100acfda2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 18:37:20 2012 -0800
+
+    [Indic] Add config for Myanmar
+
+ src/hb-ot-shape-complex-indic.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 9e92978c8aa3d3cdab4d20c81698c56adbb3dbdd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 18:36:10 2012 -0800
+
+    [Indic] Route "new" Myanmar tag through the Indic shaper
+
+    Windows 8 adds a Myanmar shaper using the 'mym2' tag.  Route that
+    through the Indic shaper.  It's still very broken, but at least this
+    does NOT break old-style Myanmar shaping using the generic shaper.
+
+ src/hb-ot-shape-complex-private.hh | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+commit 5ab3855f8106158ee7e68797e8c35e63e9216e5d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 18:27:42 2012 -0800
+
+    Choose shaper based on chosen OT script tag
+
+    For Arabic and Indic shapers, if the font doesn't have a script system
+    for the script, use default shaper.
+
+    Make an exception for Arabic script since we have fallback logic for
+    that one.
+
+ src/hb-ot-map-private.hh          |  4 ++++
+ src/hb-ot-shape-complex-private.hh | 11 +++++++++--
+ 2 files changed, 13 insertions(+), 2 deletions(-)
+
+commit 9b37b4c5800b158f61602d2aba8a01349e24d251
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 18:23:38 2012 -0800
+
+    Make planner available to complex shaper choosing logic
+
+ src/hb-ot-shape-complex-private.hh | 4 ++--
+ src/hb-ot-shape.cc                | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+commit 6fddf2d7397411bba8a23ac535e8b851495d3105
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 17:57:24 2012 -0800
+
+    Refactoring ot-map building to make chosen script available earlier
+
+ src/hb-ot-map-private.hh   | 13 ++++++++----
+ src/hb-ot-map.cc          | 51
+ ++++++++++++++++++++++++++--------------------
+ src/hb-ot-shape-private.hh |  4 ++--
+ 3 files changed, 40 insertions(+), 28 deletions(-)
+
+commit f17ed8116e7b6429af3fa60bb43d5f4fac66eae3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 17:48:26 2012 -0800
+
+    Minor TODO
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit de796a6fb98f4deda276caa82266b7c830978e0b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 17:27:51 2012 -0800
+
+    Add "new" Myanmar OT Script tag
+
+    Windows 8 added support for Myanmar shaping using the "mym2"
+    script tag,
+    even though Windows never supported the old "mymr" tag.
+
+ src/hb-ot-tag.cc      | 2 ++
+ test/api/test-ot-tag.c | 1 +
+ 2 files changed, 3 insertions(+)
+
+commit 27f52dc3f6bbb97594a44f27b180aed73d9e5608
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 16:54:03 2012 -0800
+
+    Add Myanmar tests from UTN#11
+
+ .../south-east-asian/script-myanmar/misc/MANIFEST  |  1 +
+ .../south-east-asian/script-myanmar/misc/utn11.txt | 34
+ ++++++++++++++++++++++
+ 2 files changed, 35 insertions(+)
+
+commit e9334ce97bb7f1de87fb211bb5a8168033629b14
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 14:57:02 2012 -0800
+
+    Break build when ragel is needed and missing
+
+ src/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit dba186711e3f5e723f917b7104e849c4c525d3b8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 14:48:33 2012 -0800
+
+    [Indic] Make more room in the table
+
+    To be used in upcoming commits.
+
+ src/hb-ot-shape-complex-indic-private.hh | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit c4be9917438c45b972ec76dc68409014110f0837
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 14:27:33 2012 -0800
+
+    Typo
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 56be677781736bbedc80df6f6aaa2b5f0bc4041c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 14:09:40 2012 -0800
+
+    [Indic] Port 'pref' logic to look into font tables
+
+    ...instead of using a hardcoded list of Ra characters.
+
+ src/hb-ot-shape-complex-indic.cc | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+commit f2c0f59043c93c225274fc0c8177077d16c89d61
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 14:02:02 2012 -0800
+
+    [Indic] Port reph handling logic to look into font features
+
+    ...instead of using a hardcoded list of Ra characters.
+
+ src/hb-ot-shape-complex-indic.cc | 48
+ +++++++++++++++++++++++++---------------
+ 1 file changed, 30 insertions(+), 18 deletions(-)
+
+commit 43149afbc0007ea075a7017c0e56056c3c0f3614
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 13:34:17 2012 -0800
+
+    Route MEETEI_MAYEK through the Indic shaper
+
+    Since it has a couple of left-"matras".
+
+ src/hb-ot-shape-complex-private.hh | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+commit d0905c3400085f9c0901c558ba1b81b5039510e4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 13:02:20 2012 -0800
+
+    Minor
+
+ src/hb-ot-head-table.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 365f27ab5ba025bf1be6a882ed213c695cbfed7e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 11:16:57 2012 -0800
+
+    Work around older compilers
+
+    As reported on the list:
+
+    I am seeing a similar problem building harfbuzz 0.9.5 with Apple gcc
+    4.0.1 on OS X 10.5 Leopard:
+
+    hb-ot-layout-common-private.hh:406: error: 'struct
+    OT::CoverageFormat1::Iter' is private
+    hb-ot-layout-common-private.hh:646: error: within this context
+    hb-ot-layout-common-private.hh:500: error: 'struct
+    OT::CoverageFormat2::Iter' is private
+    hb-ot-layout-common-private.hh:647: error: within this context
+    make[4]: *** [libharfbuzz_la-hb-ot-layout.lo] Error 1
+
+    Also reported as happening with MSVC 2005.
+
+ src/hb-ot-layout-common-private.hh | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+commit 6b389ddc3623d042ded4731f4d62dc354002fdd0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 11:02:56 2012 -0800
+
+    [Indic] Don't apply 'liga'
+
+    Uniscribe doesn't. And some fonts abuse this feature to get Indic
+    shaping working in non-complex applications like Adobe's apps.
+
+    No change in numbers:
+
+    BENGALI: 353897 out of 354188 tests passed. 291 failed (0.0821598%)
+    DEVANAGARI: 707337 out of 707394 tests passed. 57 failed (0.00805774%)
+    GUJARATI: 366440 out of 366457 tests passed. 17 failed (0.00463902%)
+    GURMUKHI: 60704 out of 60747 tests passed. 43 failed (0.0707854%)
+    KANNADA: 951046 out of 951913 tests passed. 867 failed (0.0910798%)
+    KHMER: 299074 out of 299124 tests passed. 50 failed (0.0167155%)
+    LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
+    MALAYALAM: 1048011 out of 1048334 tests passed. 323 failed
+    (0.0308108%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271666 out of 271847 tests passed. 181 failed (0.0665816%)
+    TAMIL: 1091754 out of 1091754 tests passed. 0 failed (0%)
+    TELUGU: 970557 out of 970573 tests passed. 16 failed (0.00164851%)
+    TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
+
+ src/hb-ot-shape-complex-indic.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit d05ac7dc3f2949e85f1fe996315b31b7aae370fe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 10:26:50 2012 -0800
+
+    Fix hb-ft glyph name for broken fonts that return empty glyph names
+
+ src/hb-ft.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 3bc22eb7b843c77706bb13fc332009097f247813
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 12 10:07:28 2012 -0800
+
+    Minor
+
+ util/options.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4899801155cc0fef7a8aa58c33ac2d30ba34bcc3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 8 15:08:26 2012 -0800
+
+    U+A872 PHAGS-PA SUPERFIXED LETTER RA is "Right"-Joining
+
+ src/hb-ot-shape-complex-arabic.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 22a685836a59d1c02914761c02d3852810b83ec5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 5 15:20:10 2012 -0800
+
+    Adjust Mongolian shaping
+
+    For U+1880..U+1886 Uniscribe thinks they are non-joining.
+    For U+1887 Uniscribe thinks it's joining, but looks wrong to me.
+    For now, match Uniscribe.
+
+ src/hb-ot-shape-complex-arabic.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit e6b86c8519f894bf7fe18d5c143276521fcacece
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 5 15:18:49 2012 -0800
+
+    Add test for non-joining Mongolian letters
+
+    For U+1880..U+1886 Uniscribe thinks they are non-joining.
+    For U+1887 Uniscribe thinks it's joining, but looks wrong to me.
+
+ .../texts/in-tree/shaper-arabic/script-mongolian/misc/MANIFEST    | 1 +
+ .../in-tree/shaper-arabic/script-mongolian/misc/non-joining.txt   |
+ 8 ++++++++
+ 2 files changed, 9 insertions(+)
+
+commit c26a52fbe62e5ba4d0e1e2ba13bfb6ceb3f773dc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Nov 4 16:48:45 2012 -0800
+
+    Minor
+
+ src/hb-ot-shape-fallback.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit f60d3ed35d94f1adcfd73ca05d03d7e81fb5de03
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Nov 4 16:44:47 2012 -0800
+
+    Minor
+
+ src/hb-set-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit f5e55754f962184d2fb7dcab837cdba56e8c7731
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 2 13:53:18 2012 -0700
+
+    Add Tifinagh test data
+
+ test/shaping/texts/in-tree/shaper-default/MANIFEST           |  2 ++
+ .../texts/in-tree/shaper-default/script-tifinagh/MANIFEST     |  1 +
+ .../in-tree/shaper-default/script-tifinagh/misc/MANIFEST      |  1 +
+ .../in-tree/shaper-default/script-tifinagh/misc/misc.txt      |
+ 11 +++++++++++
+ 4 files changed, 15 insertions(+)
+
+commit 10a33296e674ee84b9ed2df25cf373de7d020b8d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 2 13:38:55 2012 -0700
+
+    Minor
+
+ src/hb-ot-tag.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit c21498afd857e78230f761ee5c9e73adece89dd0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 2 10:21:26 2012 -0700
+
+    Add Mongolian and 'Phags-pa joining test cases
+
+ test/shaping/texts/in-tree/shaper-arabic/MANIFEST         |  1 +
+ .../in-tree/shaper-arabic/script-mongolian/misc/misc.txt   |  3 +++
+ .../texts/in-tree/shaper-arabic/script-phags-pa/MANIFEST   |  1 +
+ .../in-tree/shaper-arabic/script-phags-pa/misc/MANIFEST    |  1 +
+ .../in-tree/shaper-arabic/script-phags-pa/misc/misc.txt    | 14
+ ++++++++++++++
+ 5 files changed, 20 insertions(+)
+
+commit 3ba7bc14ea652d27639f34109e51a497a678a54a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 1 20:05:04 2012 -0700
+
+    Implement 'Phags-pa shaping
+
+    Through the Arabic shaper. It's similar to Mongolian.
+
+ src/hb-ot-shape-complex-arabic.cc  | 15 ++++++++++++---
+ src/hb-ot-shape-complex-private.hh |  4 +---
+ 2 files changed, 13 insertions(+), 6 deletions(-)
+
+commit 431bef2e16c7888ca3960f5797432d3a20903550
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 1 16:26:01 2012 -0700
+
+    Minor build fix
+
+ test/api/Makefile.am | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+commit da70111ab234e8b740ce6fb1789a1809fbec0c44
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 31 13:45:30 2012 -0700
+
+    Don't clear buffer pre-context if no new context is being provided
+
+    Patch from Jonathan Kew.
+
+    Part of fixing:
+
+    Mozilla Bug 801410 - avoid inserting dotted-circle for run-initial
+    Unicode combining characters in "simple" scripts such as Latin
+
+    https://bugzilla.mozilla.org/show_bug.cgi?id=801410
+
+ src/hb-buffer.cc | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+commit 0bc7a38463bfb37f12efeb1b8cb2024cf4a347bc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 29 22:02:45 2012 -0700
+
+    [OT] Fix ReverseChainingSubst
+
+    We should make it clear that we don't want output buffer in this case,
+    otherwise buffer->backtrack_len() would be wrong.
+
+ src/hb-buffer-private.hh      |  1 +
+ src/hb-buffer.cc              | 13 +++++++++++++
+ src/hb-ot-layout-gsub-table.hh |  1 +
+ 3 files changed, 15 insertions(+)
+
+commit 2616689d159024d2b1cb1e68f9936b2129bf9be6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 29 21:51:56 2012 -0700
+
+    More tracing fixups
+
+ src/hb-ot-layout-gsubgpos-private.hh | 13 +++++++------
+ 1 file changed, 7 insertions(+), 6 deletions(-)
+
+commit 937f8d3871863b8b1ed1d8900cf41999d92ba30f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 29 21:49:33 2012 -0700
+
+    [Arabic] Enable dlig and mset for Arabic
+
+    That's what the spec says, and what Uniscribe does.
+
+ src/hb-ot-shape-complex-arabic.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 911ed096980630fd4a37bf2024036daae13a6056
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 29 19:42:19 2012 -0700
+
+    Ignore gid0 in test results
+
+ test/shaping/hb_test_tools.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit bc513add7999baf32f126ceebbd318105ee66985
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 29 19:03:55 2012 -0700
+
+    Add missing TRACE_RETURN
+
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 10b88d89ef1efcfddbbfabd3669399b472c8a900
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 29 18:18:24 2012 -0700
+
+    Add Ethiopic test case
+
+    This sequence: U+120B,U+135F,U+120B with the Nyala font from Win7
+    exposes a GPOS bug in Uniscribe, in that the positioned mark is
+    wrongly
+    moved as a result a following kern.
+
+    This is the one "failure" in the Ethiopic test suite :-).
+
+    ETHIOPIC: 118900 out of 118901 tests passed. 1 failed (0.000841036%)
+
+ test/shaping/texts/in-tree/shaper-default/script-ethiopic/MANIFEST     |
+ 1 +
+ test/shaping/texts/in-tree/shaper-default/script-ethiopic/misc/MANIFEST |
+ 1 +
+ test/shaping/texts/in-tree/shaper-default/script-ethiopic/misc/misc.txt |
+ 1 +
+ 3 files changed, 3 insertions(+)
+
+commit 88d3c98e309e14c3115825d1d8d40d0b3eec2d97
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 29 16:27:02 2012 -0700
+
+    [Indic] Position pre-base reordering Ra after Chillus in Malayalam
+
+    The logic for pre-base reordering follows the left matra logic.
+    We had an exception for Malayalam/Tamil in the left matra
+    repositioning
+    which was not reflected in pre-base reordering.
+
+    Malayalam failures down from 337 to 323.
+
+    BENGALI: 353996 out of 354285 tests passed. 289 failed (0.0815727%)
+    DEVANAGARI: 707339 out of 707394 tests passed. 55 failed (0.00777502%)
+    GUJARATI: 366489 out of 366506 tests passed. 17 failed (0.0046384%)
+    GURMUKHI: 60769 out of 60809 tests passed. 40 failed (0.0657797%)
+    KANNADA: 951086 out of 951913 tests passed. 827 failed (0.0868777%)
+    KHMER: 299106 out of 299124 tests passed. 18 failed (0.00601757%)
+    LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
+    MALAYALAM: 1048011 out of 1048334 tests passed. 323 failed
+    (0.0308108%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271726 out of 271847 tests passed. 121 failed (0.0445103%)
+    TAMIL: 1091837 out of 1091837 tests passed. 0 failed (0%)
+    TELUGU: 970558 out of 970573 tests passed. 15 failed (0.00154548%)
+    TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
+
+ src/hb-ot-shape-complex-indic.cc | 35 +++++++++++++++++++++--------------
+ 1 file changed, 21 insertions(+), 14 deletions(-)
+
+commit 21bf796954678d02f136709cade43adef6f8f42b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 29 14:21:09 2012 -0700
+
+    Add missed file
+
+ src/hb-ucdn/COPYING | 13 +++++++++++++
+ 1 file changed, 13 insertions(+)
+
+commit 01013a0f5c58d5d54a37e5b4d6692e0bbd4baf80
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 29 10:56:04 2012 -0700
+
+    Include config.h.in in tree
+
+    I typically don't like including generating files in tree.
+    But like to
+    make an exception for this, since this forms the canonical list of
+    options one would need to go through when building with alternative
+    build systems.
+
+ Makefile.am |  1 -
+ config.h.in | 160
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 160 insertions(+), 1 deletion(-)
+
+commit 02ed52169ad3bb48f4989f721b0c6572e064a712
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Oct 28 21:26:19 2012 -0700
+
+    Improve license information
+
+ COPYING                  | 2 ++
+ src/hb-icu-le/COPYING    | 2 ++
+ src/hb-icu-le/Makefile.am | 2 +-
+ src/hb-ucdn/Makefile.am   | 2 +-
+ src/hb-ucdn/README       | 7 +++++++
+ 5 files changed, 13 insertions(+), 2 deletions(-)
+
+commit 4c1d9244617e472464722e64d2cdbc1f9e8827f6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Oct 28 20:27:25 2012 -0700
+
+    Minor
+
+ src/hb-icu-le.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 38b015e57ffa75d3b078a368c23685beb7c3f946
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Oct 28 20:11:47 2012 -0700
+
+    Fix hb_buffer_set_length(buffer, 0)
+
+    Was causing invalid realloc()s.
+
+ src/hb-buffer.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b7115b63be72e109b51f538ba581aed1017b2d55
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Oct 28 20:11:42 2012 -0700
+
+    Add XXX
+
+ src/hb-icu-le.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 71ee1f24503cd066ffc1a36cc5dd9a3c1d1a6dfd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Oct 28 19:18:11 2012 -0700
+
+    Port to ICU LayoutEngine C API
+
+    Incidentally, this makes it not crash with icu-le-hb anymore...
+    I'm not smart / stupid enough to spend two more days debugging C++
+    linking issues, and this is ABI-stable at least.
+
+ src/hb-icu-le.cc | 31 ++++++++++++++++---------------
+ 1 file changed, 16 insertions(+), 15 deletions(-)
+
+commit 0144f05e57088b30ac894cdae8b04b265d4dfbe7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 26 13:48:06 2012 -0700
+
+    Remove unused members
+
+ src/hb-icu-le/PortableFontInstance.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+commit cf3afd8979b1db76d437f428cbd51cb363e0d18e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 25 16:32:54 2012 -0700
+
+    Rename and revamp is_zero_width() to be is_default_ignorable()
+
+    That's really the logic desired.  Except that MONGOLIAN VOWEL
+    SEPARATOR
+    is not default_ignorable but it really should be.  Reported to
+    Unicode.
+
+    Based on suggestion from Konstantin Ritt.
+
+ src/hb-fallback-shape.cc   |  2 +-
+ src/hb-ot-shape-private.hh |  4 +--
+ src/hb-ot-shape.cc        |  2 +-
+ src/hb-unicode-private.hh  | 90
+ +++++++++++++++++++++++++++++-----------------
+ 4 files changed, 62 insertions(+), 36 deletions(-)
+
+commit a724139e641bf1592b1ff786a75a9de2ea8163cf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 24 14:02:15 2012 -0700
+
+    Update TODO
+
+ TODO | 14 ++++++++++----
+ 1 file changed, 10 insertions(+), 4 deletions(-)
+
+commit 13c058472913b7b6d689f9022226079da65420b0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Oct 14 18:37:09 2012 -0500
+
+    0.9.5
+
+ NEWS        | 23 +++++++++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 24 insertions(+), 1 deletion(-)
+
+commit fecdfa95daf4916695f23e7dab89ab363be11b89
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Oct 7 17:19:58 2012 -0400
+
+    Fixup hb_ot_shape_closure()
+
+    Broke it when merged cmap mapping and normalizer.  Ouch!
+
+ src/hb-ot-shape.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 2d1dcb3ce3354c2d5e2b4d1d291beb8d23cdea22
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Oct 7 17:13:46 2012 -0400
+
+    Mark debug message functions static
+
+ src/hb-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 9947bd6daffb5ec76b67536575e7617ba4f10b1e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 2 20:44:43 2012 -0400
+
+    Update UCDN to upstream commit
+    3f159c87824230b59af56e40e2db32caf6afa51a
+
+    - Unicode 6.2.0 goodness,
+    - Unassigned codepoints now have correct properties.  Passes test
+    suite.
+
+ src/hb-ucdn/unicodedata_db.h | 1966
+ ++++++++++++++++++++++--------------------
+ 1 file changed, 1036 insertions(+), 930 deletions(-)
+
+commit 32dbfcf763d1ae497d3c95de986a83441331678f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 2 17:42:13 2012 -0400
+
+    Fix visibility of UCDN symbols
+
+ src/hb-ucdn.cc     |  2 --
+ src/hb-ucdn/ucdn.h | 19 +++++++++++++++++++
+ 2 files changed, 19 insertions(+), 2 deletions(-)
+
+commit 3f33f0d1f2603f22e86adffe3c3836136ba5e5fd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 2 16:03:18 2012 -0400
+
+    Import UCDN into source tree
+
+    https://github.com/grigorig/ucdn
+
+ configure.ac                |   11 +-
+ src/Makefile.am             |    7 +
+ src/hb-ucdn.cc                      |  207 ++
+ src/hb-ucdn/Makefile.am      |   18 +
+ src/hb-ucdn/README          |   33 +
+ src/hb-ucdn/ucdn.c          |  282 +++
+ src/hb-ucdn/ucdn.h          |  290 +++
+ src/hb-ucdn/unicodedata_db.h | 4648
+ ++++++++++++++++++++++++++++++++++++++++++
+ src/hb-unicode.cc           |    3 +
+ 9 files changed, 5498 insertions(+), 1 deletion(-)
+
+commit 0e292eb2a2abbac152eeea2060e58b7a66449745
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 2 14:59:00 2012 -0400
+
+    Remove Glib thread-safety support
+
+    Now that we have pthread detection in configure, we don't need Glib
+    anymore.  Glib will only be a Unicode data provider.
+
+ configure.ac            |  8 ++++----
+ src/hb-atomic-private.hh | 13 -------------
+ src/hb-mutex-private.hh  | 20 --------------------
+ 3 files changed, 4 insertions(+), 37 deletions(-)
+
+commit 66efe896483c58f3ef9bd218c02bb7ea604f68ee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 2 14:55:32 2012 -0400
+
+    Check for pthreads
+
+ configure.ac   | 7 +++++++
+ src/Makefile.am | 5 +++++
+ 2 files changed, 12 insertions(+)
+
+commit 10a8162dddb8b39ae130fe5bb7d1819471fa7e06
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 2 14:46:34 2012 -0400
+
+    Add ax_pthread.m4
+
+ m4/ax_pthread.m4 | 309
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 309 insertions(+)
+
+commit 8ac34bc6ff1d0646503a45659b1846d8cf9c0603
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 2 14:46:04 2012 -0400
+
+    Add pkg.m4 to git repo
+
+ m4/pkg.m4 | 157
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 157 insertions(+)
+
+commit c7afac0aa6e51e6a49ebf13f72537398698c9e49
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 2 14:44:47 2012 -0400
+
+    Add AC_CONFIG_MACRODIR
+
+ Makefile.am  | 2 ++
+ configure.ac | 2 ++
+ 2 files changed, 4 insertions(+)
+
+commit f2eb3fa9dca8d21fae20c9b9dddad3245df74a05
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 25 21:35:35 2012 -0400
+
+    [OT] Only insert dottedcircle if at the beginning of paragraph
+
+    If the first char in the run is a combining mark, but there is text
+    before the run, don't insert dottedcircle.
+
+    Part of addressing:
+    https://bugzilla.redhat.com/show_bug.cgi?id=858736
+
+ src/hb-ot-shape.cc | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+commit bdc2fc8294da7f374701aafe9f5a82d60633946f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 25 21:32:35 2012 -0400
+
+    [Arabic] Respect Arabic joining from neighboring context
+
+    Now we respect Arabic joining across runs.
+
+ src/hb-ot-shape-complex-arabic.cc | 31 +++++++++++++++++++++++++++++--
+ 1 file changed, 29 insertions(+), 2 deletions(-)
+
+commit 05207a79e0ae1769c5feaebe3fd99bdf9cfcf834
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 25 17:44:53 2012 -0400
+
+    [buffer] Save pre/post textual context
+
+    To be used for a variety of purposes.  We save up to five characters
+    in each direction. No public API changes, everything is taken care
+    of already.  All clients need to do is to call hb_buffer_add_utf* with
+    the full text + segment info (or at least some context) instead of
+    just passing in the segment.
+
+    Various operations (hb_buffer_reset, hb_buffer_set_length,
+    hb_buffer_add*) automatically reset the relevant contexts.
+
+ src/hb-buffer-private.hh | 13 ++++++++++++-
+ src/hb-buffer.cc        | 44
+ ++++++++++++++++++++++++++++++++++++++++----
+ src/hb-buffer.h         |  2 +-
+ 3 files changed, 53 insertions(+), 6 deletions(-)
+
+commit 89ac39dbbe028e6379f64392f2e590e3f1fdd847
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 25 13:59:24 2012 -0400
+
+    Add hb_utf_prev()
+
+ src/hb-utf-private.hh | 71
+ +++++++++++++++++++++++++++++++++++++++++++++++++--
+ 1 file changed, 69 insertions(+), 2 deletions(-)
+
+commit 70ea4ac6887c7057113d714a98e55738b6196562
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 25 12:30:16 2012 -0400
+
+    Slightly optimize UTF-8 parsing
+
+ src/hb-utf-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 4445e5e2ecc257a5d0fa2f2715bb7181a47346da
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 25 12:26:12 2012 -0400
+
+    [buffer] Cleanup / optimize UTF-16 parsing a bit
+
+ src/hb-utf-private.hh | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+commit 1f66c3c1a0eb869c0d85a015235313177e0cec62
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 25 11:42:16 2012 -0400
+
+    Add hb_utf_strlen()
+
+    Speeds up UTF-8 parsing by calling strlen().
+
+ src/hb-buffer.cc      | 13 ++-----------
+ src/hb-utf-private.hh | 22 ++++++++++++++++++++++
+ 2 files changed, 24 insertions(+), 11 deletions(-)
+
+commit 7f19ae7b9f806a2e35206b2ad41651c5f80b2537
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 25 11:22:28 2012 -0400
+
+    [buffer] Templatize UTF handling
+
+    Also move UTF routines into a separate file, to be reused from shapers
+    that need it.
+
+ src/Makefile.am       |   1 +
+ src/hb-buffer.cc      | 157
+ +++++++++++++-------------------------------------
+ src/hb-utf-private.hh | 113 ++++++++++++++++++++++++++++++++++++
+ 3 files changed, 155 insertions(+), 116 deletions(-)
+
+commit 0e0a4da9b7677a09e00d27313236e1f333864dd6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 25 11:09:04 2012 -0400
+
+    [buffer] Towards template'izing different UTF adders
+
+ src/hb-buffer.cc | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+commit 7d37280600c157f3c4eae8746e99511702a58e8f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 25 11:04:41 2012 -0400
+
+    Minor
+
+ src/hb-buffer.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 54d5da4ee9d902ff36473cec558137eef8f23825
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 25 10:50:41 2012 -0400
+
+    Remove unused indic.cc
+
+ src/Makefile.am |  6 +-----
+ src/indic.cc   | 51 ---------------------------------------------------
+ 2 files changed, 1 insertion(+), 56 deletions(-)
+
+commit fab7a71f110ed646745d54b23284537c50058c21
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 24 21:51:13 2012 -0400
+
+    [Indic] Import ragel-generated Indic machine in git
+
+    I don't expect ragel to be creating too much noise in its generated
+    output, and including this in-tree helps users right now.  We can
+    revisit this later if it proved to be too much trouble.
+
+ autogen.sh                              |    6 -
+ src/Makefile.am                         |    1 -
+ src/hb-ot-shape-complex-indic-machine.hh | 1314
+ ++++++++++++++++++++++++++++++
+ 3 files changed, 1314 insertions(+), 7 deletions(-)
+
+commit 20a840c7cd08069720050782b4533cde505df09a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 24 20:23:00 2012 -0400
+
+    Use a C++ linker on Windows
+
+    On Windows we don't care whether or not we link to libstdc++.
+    Seems to fix build with mingw32 on msys, as reported by Werner.
+
+ src/Makefile.am | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit eb7669a38072b66eef3bd905a93c4815bef3f0e5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 18 19:42:06 2012 -0400
+
+    Better autofoo
+
+ src/Makefile.am | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+commit d00f7d83750258eff915a3826700c4819e63e481
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 17 20:59:09 2012 -0400
+
+    Fix dependencies
+
+ src/Makefile.am | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit 811eefe225d20b20f1de20c6e62a0ebd6d89102a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 10 09:56:27 2012 -0400
+
+    Return NULL, not false
+
+    Oh well...
+
+ src/hb-open-type-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 166b5cf7ec2d37fb54a909c437ccdec1edaf37aa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 7 14:55:07 2012 -0400
+
+    [Indic] Find syllables before any features are applied
+
+    With FreeSerif, it seems that the 'ccmp' feature does ligature
+    substituttions.  That was then causing syllable match failures.
+    We now
+    find syllables before any features have been applied.
+
+    Test sequence: U+0D9A,U+0DCA,U+200D,U+0DBB,U+0DCF
+
+ src/hb-ot-shape-complex-indic-machine.rl          |  4 +-
+ src/hb-ot-shape-complex-indic.cc                  | 56
+ +++++++++++++++-------
+ .../indic/script-sinhala/misc/misc.txt                    |  1 +
+ 3 files changed, 43 insertions(+), 18 deletions(-)
+
+commit 96fdc04e5c6daafce3d45e7508418e4db94df44c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 6 22:26:16 2012 -0400
+
+    Add hb_buffer_[sg]et_content_type
+
+    And hb_buffer_content_type_t and enum values.
+
+ TODO                    |  1 +
+ src/hb-buffer-private.hh |  2 ++
+ src/hb-buffer.cc        | 34 ++++++++++++++++++++++++++++++++++
+ src/hb-buffer.h         | 14 ++++++++++++++
+ src/hb-shape.cc         |  5 +++++
+ 5 files changed, 56 insertions(+)
+
+commit e30ebd2794b37bd8ec716a258d5cb017fb1dfadc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 6 22:09:06 2012 -0400
+
+    Add hb_feature_to/from_string()
+
+ TODO            |   4 +-
+ src/hb-common.cc |   9 +++
+ src/hb-common.h  |   6 +-
+ src/hb-shape.cc  | 168
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-shape.h   |  13 +++++
+ util/options.cc  | 132 ++-----------------------------------------
+ 6 files changed, 201 insertions(+), 131 deletions(-)
+
+commit f67917161bbe317a33d6407fbc62ebffcafe7154
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 6 17:22:31 2012 -0400
+
+    [OT] Do per-ligature-component fallback mark positioning
+
+    With this in place, you can remove GDEF/GSUB/GPOS tables from Arabic
+    fonts and still get per-component marks positioned on
+    oh-yeah-fallback-formed LAM-ALEF ligatures with marks in between
+    the LAM
+    and ALEF.
+
+    Now *that*'s pretty cool, if a bit anachronistic...
+
+ src/hb-ot-shape-fallback.cc | 43
+ ++++++++++++++++++++++++++++++++++++-------
+ 1 file changed, 36 insertions(+), 7 deletions(-)
+
+commit 525c6855783a018d52867b9ece2ee90868ff1f91
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 6 16:02:07 2012 -0400
+
+    [OT] Make fallback mark positioning more robust
+
+    ...with clusters spanning multiple base characters.
+
+ src/hb-ot-shape-fallback.cc | 11 +++++++++--
+ 1 file changed, 9 insertions(+), 2 deletions(-)
+
+commit 5d502443f5a07cbd0aa860dd71a0fa4ea8b6ff9f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 6 15:29:29 2012 -0400
+
+    [old] Clear offset array
+
+ src/hb-old.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 9433c218b4853442dd9ad53d0588a837a33dbf1e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 6 14:27:15 2012 -0400
+
+    [OT] Simplify fallback positioning condition
+
+ src/hb-ot-shape-fallback.cc | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit 028a1706f898bfcee0d14acfba47ebe1de09f0c4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 6 14:25:48 2012 -0400
+
+    Refactor common macro
+
+ src/hb-ot-shape-fallback.cc  | 5 +----
+ src/hb-ot-shape-normalize.cc | 5 +----
+ src/hb-ot-shape.cc          | 5 +----
+ src/hb-unicode-private.hh    | 9 +++++++++
+ 4 files changed, 12 insertions(+), 12 deletions(-)
+
+commit 07cfbe21b511056d5c3c75cbfe84e4e982c3e8fb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 6 01:16:39 2012 -0400
+
+    [OT] Streamline Arabic fallback shaping table
+
+ src/gen-arabic-table.py                   |   6 +-
+ src/hb-ot-shape-complex-arabic-fallback.hh |  2 +-
+ src/hb-ot-shape-complex-arabic-table.hh    | 266
+ ++++++++++++++---------------
+ 3 files changed, 137 insertions(+), 137 deletions(-)
+
+commit 82f6b6f388b801a1483854cb56a2cadbb94e0f2b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 6 01:12:50 2012 -0400
+
+    Minor
+
+ src/hb-ot-shape-complex-arabic-fallback.hh | 13 +++++++------
+ 1 file changed, 7 insertions(+), 6 deletions(-)
+
+commit fabd3113a98c5f4114f48920fa7ea38bd65a8d32
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 5 22:19:28 2012 -0400
+
+    [OT] Port Arabic fallback shaping to synthetic GSUB
+
+    All of init/medi/fina/isol and rlig implemented.
+
+    Let there be dragons... ⻯
+
+ src/Makefile.am                           |   1 +
+ src/hb-open-type-private.hh               |  69 +++++---
+ src/hb-ot-layout-common-private.hh        |   9 +-
+ src/hb-ot-layout-gsub-table.hh                    |  11 +-
+ src/hb-ot-map-private.hh                  |   6 +
+ src/hb-ot-map.cc                          |   1 +
+ src/hb-ot-shape-complex-arabic-fallback.hh | 252
+ +++++++++++++++++++++++++++++
+ src/hb-ot-shape-complex-arabic.cc         | 158 ++++++------------
+ src/hb-ot-shape.cc                        |   7 +-
+ src/hb-private.hh                         |  11 +-
+ 10 files changed, 369 insertions(+), 156 deletions(-)
+
+commit f0b8ed1b6dd9f1d2b9084c101a6fc5dee0cc22a8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 5 17:32:57 2012 -0400
+
+    [Indic] Allow "H,ZWJ,M"
+
+    Uniscribe accepts a Halant,ZWJ before matras.  Allow that.
+
+    BENGALI down from 295 to 291
+    DEVANAGARI down from 69 to 57
+    GUJARATI down from 19 to 17
+    KANNADA down from 871 to 867
+    MALAYALAM down from 340 to 337
+    TELUGU down from 20 to 16
+
+    Currently at:
+
+    BENGALI: 353897 out of 354188 tests passed. 291 failed (0.0821598%)
+    DEVANAGARI: 707337 out of 707394 tests passed. 57 failed (0.00805774%)
+    GUJARATI: 366440 out of 366457 tests passed. 17 failed (0.00463902%)
+    GURMUKHI: 60704 out of 60747 tests passed. 43 failed (0.0707854%)
+    KANNADA: 951046 out of 951913 tests passed. 867 failed (0.0910798%)
+    KHMER: 299077 out of 299124 tests passed. 47 failed (0.0157125%)
+    LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
+    MALAYALAM: 1047997 out of 1048334 tests passed. 337 failed
+    (0.0321462%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271666 out of 271847 tests passed. 181 failed (0.0665816%)
+    TAMIL: 1091754 out of 1091754 tests passed. 0 failed (0%)
+    TELUGU: 970557 out of 970573 tests passed. 16 failed (0.00164851%)
+    TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
+
+ src/hb-ot-shape-complex-indic-machine.rl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4ed717ef61813fa16cf74f2874848e9feb81568f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 5 17:21:17 2012 -0400
+
+    [Indic] Relax grammar
+
+    Now that we insert dotted-circle, tests break more easily when
+    our indic
+    machine breaks.
+
+    In particular, a few Devanagari tests were having sequences like
+    "C,H,ZWJ,N", and because of the ZWJ the Nukta does NOT get reordered
+    to
+    before the Halant as the grammar used to expect... Fixup.
+
+    Another case is as simple as "C,ZWJ,SM".
+
+    Fixes 10 out of 79 failures:
+
+    DEVANAGARI: 707325 out of 707394 tests passed. 69 failed (0.00975411%)
+
+ src/hb-ot-shape-complex-indic-machine.rl | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit aa7141efe49991a1160489106984e95163fe2ab8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 5 15:54:21 2012 -0400
+
+    [Indic] Fix Khmer syllable-final coeng-consonant
+
+    Brings down Khmer failures from 162 to 47.
+
+    KHMER: 299077 out of 299124 tests passed. 47 failed (0.0157125%)
+
+    Also rebaselined some of the test files that had only-inherited lines.
+    Removing those, the stats are:
+
+    BENGALI: 353893 out of 354188 tests passed. 295 failed (0.0832891%)
+    DEVANAGARI: 707315 out of 707394 tests passed. 79 failed (0.0111678%)
+    GUJARATI: 366438 out of 366457 tests passed. 19 failed (0.00518478%)
+    GURMUKHI: 60704 out of 60747 tests passed. 43 failed (0.0707854%)
+    KANNADA: 951042 out of 951913 tests passed. 871 failed (0.0915%)
+    KHMER: 299077 out of 299124 tests passed. 47 failed (0.0157125%)
+    LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
+    MALAYALAM: 1047994 out of 1048334 tests passed. 340 failed
+    (0.0324324%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271666 out of 271847 tests passed. 181 failed (0.0665816%)
+    TAMIL: 1091754 out of 1091754 tests passed. 0 failed (0%)
+    TELUGU: 970553 out of 970573 tests passed. 20 failed (0.00206064%)
+    TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
+
+    Still some regressions, but some of the more egregious cases are
+    addressed.
+
+ src/hb-ot-shape-complex-indic-machine.rl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit efb8d3eb713bca7cbfca41380a012bdb4d380e5c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 5 15:50:47 2012 -0400
+
+    Fixup test failure reporting
+
+    After we implemented dotted-circle, we were still ignoring any tests
+    that had dottedcircle in it for any of the shapers.  That meant
+    that if
+    we wrongly outputted dottedcircle, the test was being ignored.  Ouch!
+
+    Fixing that shows regressions across the board.  Most are Uniscribe
+    bugs: NOT inserting dotted-circle when it should.  Some are arou
+    machine bugs.  This is in fact a nice way to catch Indic-machine
+    deficiencies and when I fix the regressions, our clusters should be
+    much closer to Uniscribe.  For now, we regressed from:
+
+    BENGALI: 353997 out of 354285 tests passed. 288 failed (0.0812905%)
+    DEVANAGARI: 707339 out of 707394 tests passed. 55 failed (0.00777502%)
+    GUJARATI: 366489 out of 366506 tests passed. 17 failed (0.0046384%)
+    GURMUKHI: 60769 out of 60809 tests passed. 40 failed (0.0657797%)
+    KANNADA: 951086 out of 951913 tests passed. 827 failed (0.0868777%)
+    KHMER: 299106 out of 299124 tests passed. 18 failed (0.00601757%)
+    LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
+    MALAYALAM: 1048104 out of 1048416 tests passed. 312 failed
+    (0.0297592%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271747 out of 271847 tests passed. 100 failed (0.0367854%)
+    TAMIL: 1091837 out of 1091837 tests passed. 0 failed (0%)
+    TELUGU: 970558 out of 970573 tests passed. 15 failed (0.00154548%)
+    TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
+
+    To:
+
+    BENGALI: 353990 out of 354285 tests passed. 295 failed (0.0832663%)
+    DEVANAGARI: 707315 out of 707394 tests passed. 79 failed (0.0111678%)
+    GUJARATI: 366447 out of 366506 tests passed. 59 failed (0.016098%)
+    GURMUKHI: 60707 out of 60809 tests passed. 102 failed (0.167738%)
+    KANNADA: 951042 out of 951913 tests passed. 871 failed (0.0915%)
+    KHMER: 298962 out of 299124 tests passed. 162 failed (0.0541581%)
+    LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
+    MALAYALAM: 1048074 out of 1048416 tests passed. 342 failed
+    (0.0326206%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271666 out of 271847 tests passed. 181 failed (0.0665816%)
+    TAMIL: 1091835 out of 1091837 tests passed. 2 failed (0.000183178%)
+    TELUGU: 970553 out of 970573 tests passed. 20 failed (0.00206064%)
+    TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
+
+    Investigating.
+
+ test/shaping/hb_test_tools.py | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+commit 27bd55bd2ca599d501f10c2fae81861137517e46
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 5 15:11:14 2012 -0400
+
+    [Indic] Tamil does not have half-forms either
+
+    The Win7 Tamil font does not realy on this behavior, but the WinXP
+    version does.  Handle Tamil like Malayalam: Matras always move to
+    before base.
+
+    WinXP Tamil failures went down from 168964 (15.4752%) to 167
+    (0.0152953%) (two orders of magnitude reduction!).
+
+    Included in this is a minor fixup that actually fixed a few tests
+    with non-Tamil too.  Numbers at:
+
+    BENGALI: 353997 out of 354285 tests passed. 288 failed (0.0812905%)
+    DEVANAGARI: 707339 out of 707394 tests passed. 55 failed (0.00777502%)
+    GUJARATI: 366489 out of 366506 tests passed. 17 failed (0.0046384%)
+    GURMUKHI: 60769 out of 60809 tests passed. 40 failed (0.0657797%)
+    KANNADA: 951086 out of 951913 tests passed. 827 failed (0.0868777%)
+    KHMER: 299106 out of 299124 tests passed. 18 failed (0.00601757%)
+    LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
+    MALAYALAM: 1048104 out of 1048416 tests passed. 312 failed
+    (0.0297592%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271747 out of 271847 tests passed. 100 failed (0.0367854%)
+    TAMIL: 1091837 out of 1091837 tests passed. 0 failed (0%)
+    TELUGU: 970558 out of 970573 tests passed. 15 failed (0.00154548%)
+    TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
+
+ src/hb-ot-shape-complex-indic.cc | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit 87b75d0a4aa03fe7a03e3bf7baf8ece131aec1bb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 4 23:06:38 2012 -0400
+
+    [OT] Allow adding features with fallback implementation
+
+ src/hb-ot-map-private.hh | 7 ++++---
+ src/hb-ot-map.cc        | 6 ++++--
+ 2 files changed, 8 insertions(+), 5 deletions(-)
+
+commit 1d3947a6bda6986c9c7d993589053051c119cc81
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 4 22:42:17 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-gpos-table.hh | 2 +-
+ src/hb-ot-layout-gsub-table.hh | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit b3b89b66586897a69b410ef02e7434691de84ae6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 4 21:13:17 2012 -0400
+
+    [OT] Add SubstLookup serialize API
+
+ src/hb-ot-layout-common-private.hh |  2 +-
+ src/hb-ot-layout-gsub-table.hh     | 65
+ +++++++++++++++++++++++++++++++++++++-
+ 2 files changed, 65 insertions(+), 2 deletions(-)
+
+commit 715e03bc21d6adaa8e1f647235843839dc47dad1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 4 20:10:17 2012 -0400
+
+    Minor
+
+ src/hb-open-type-private.hh | 7 ++-----
+ 1 file changed, 2 insertions(+), 5 deletions(-)
+
+commit 652d1e0d64e47313ead2fc8318d1236f0e0d80ca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 4 20:00:44 2012 -0400
+
+    [OT] Start adding Lookup-level serialize API
+
+ src/hb-ot-layout-common-private.hh | 20 +++++++++++++++++++-
+ 1 file changed, 19 insertions(+), 1 deletion(-)
+
+commit a930c68e9c50aade78c1eb0eef075c9c117e4ef6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 4 18:17:57 2012 -0400
+
+    [OT] More serialize.  Implements all basic GSUB subtables
+
+ src/hb-open-type-private.hh       |  53 +++++++++++++++-
+ src/hb-ot-layout-common-private.hh |  8 ++-
+ src/hb-ot-layout-gsub-table.hh     | 125
+ +++++++++++++++++++++++++++++--------
+ 3 files changed, 156 insertions(+), 30 deletions(-)
+
+commit 1b38b4e817d871b9549be65af6030bd0eea7f775
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 4 18:17:21 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-gsub-table.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit f7e81ce0b882aa942ae33c787e741c5e8e5a0173
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 4 15:32:37 2012 -0400
+
+    0.9.4
+
+ NEWS        | 18 ++++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 19 insertions(+), 1 deletion(-)
+
+commit 2bd9fe359839a653f7caae534bf768af1735f155
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 4 15:15:19 2012 -0400
+
+    Refactor
+
+ src/hb-ot-layout-gpos-table.hh       |  7 ++-----
+ src/hb-ot-layout-gsub-table.hh       | 16 +++++-----------
+ src/hb-ot-layout-gsubgpos-private.hh | 13 +++----------
+ src/hb-ot-layout.cc                 | 23 +++++++++++++++++------
+ src/hb-ot-shape-complex-arabic.cc    |  4 +---
+ 5 files changed, 28 insertions(+), 35 deletions(-)
+
+commit a5ddd9e31cd7906c4b559aa5b2fafdae4b9c8935
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 4 14:55:00 2012 -0400
+
+    [OT] Really fix possible NULL dereference this time
+
+ src/hb-ot-layout-gsubgpos-private.hh | 8 ++++----
+ src/hb-ot-layout.cc                 | 6 +++---
+ src/hb-ot-shape-complex-arabic.cc    | 4 +++-
+ 3 files changed, 10 insertions(+), 8 deletions(-)
+
+commit 29416833584d7831ece84aaeada6f5ebba7828c0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 3 23:31:14 2012 -0400
+
+    [OT] Implement serialize() for AlternateSubst
+
+ src/hb-ot-layout-gsub-table.hh | 33 +++++++++++++++++++++++++++++++++
+ 1 file changed, 33 insertions(+)
+
+commit 1f07e3382a1608b054cbf88b89fef74f6c485434
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 3 23:28:34 2012 -0400
+
+    [OT] Implement serialize() for MultiSubst
+
+ src/hb-open-type-private.hh   | 10 ++++++++++
+ src/hb-ot-layout-gsub-table.hh | 43
+ ++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 53 insertions(+)
+
+commit 4912030dfba740c822e200d33cbb5c6dbbeaf79e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 3 20:58:03 2012 -0400
+
+    Minor
+
+ src/hb-open-type-private.hh   | 4 ++--
+ src/hb-ot-layout-gsub-table.hh | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+commit f8fa2b5cf67b02d74514dec7885d03de73ec7349
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 3 20:19:46 2012 -0400
+
+    Fix possible NULL dereference
+
+    As reported by Kenichi Ishibashi.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4b312fb288faa383a2c5bd3be0428f0e58e02699
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Sep 1 21:56:06 2012 -0400
+
+    [OT] Remove serialize alignment
+
+    Will reintroduce in a different way when we actually need it.
+
+ src/hb-open-type-private.hh | 24 +++++++++++-------------
+ 1 file changed, 11 insertions(+), 13 deletions(-)
+
+commit c61be03d6df122f18eebda3b29e42c9e768d45b9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Sep 1 21:43:38 2012 -0400
+
+    [OT] A bit more serialize
+
+ src/hb-open-type-private.hh       | 14 +++++++++++++
+ src/hb-ot-layout-common-private.hh |  2 +-
+ src/hb-ot-layout-gsub-table.hh     | 43
+ ++++++++++++++++++++++++++++++++++++--
+ 3 files changed, 56 insertions(+), 3 deletions(-)
+
+commit abcc5ac1fde1c493e4055dd2f27b8aade7713156
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Sep 1 21:30:17 2012 -0400
+
+    [OT] Improve serialize syntax
+
+    For some definition of improvement...
+
+ src/hb-open-type-private.hh   | 6 ++++--
+ src/hb-ot-layout-gsub-table.hh | 3 +--
+ 2 files changed, 5 insertions(+), 4 deletions(-)
+
+commit bc5be24014371ceb811b9ffd37062ede63d87bb1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Sep 1 20:48:22 2012 -0400
+
+    [OT] Restart work on serialize()
+
+ src/hb-open-type-private.hh       | 39 ++++++++++++++++++------
+ src/hb-ot-layout-common-private.hh | 61
+ +++++++++++++++++++-------------------
+ src/hb-ot-layout-gsub-table.hh     | 13 ++++++++
+ 3 files changed, 73 insertions(+), 40 deletions(-)
+
+commit 6912e476dd92639c3ddf07ca51c8d4a262c8b3a5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Sep 1 20:38:45 2012 -0400
+
+    [OT] Insert dotted-circle for run-initial marks
+
+    Unfortunately if the font has GPOS and 'mark' feature does
+    not position mark on dotted-circle, our inserted dotted-circle
+    will not get the mark repositioned to itself.  Uniscribe cheats
+    here.
+
+    If there is no GPOS however, the fallback positioning kicks in
+    and sorts this out.
+
+    I'm not willing to address the first case.
+
+ src/hb-ot-shape.cc | 32 ++++++++++++++++++++++++++++++++
+ 1 file changed, 32 insertions(+)
+
+commit 1d581ec384bc1780995e32e1c44103af57596eda
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Sep 1 20:06:26 2012 -0400
+
+    [OT] Fallback-position ccc=0 Thai / Lao marks
+
+    Not perfect, but so is fallback positioning in 2012...
+
+ src/hb-ot-shape-fallback.cc | 56
+ +++++++++++++++++++++++++++++++++++++--------
+ 1 file changed, 46 insertions(+), 10 deletions(-)
+
+commit 3992b5ec4cb43d114d87ff7ee2b992bcf819c9cd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Sep 1 19:20:41 2012 -0400
+
+    Move code around
+
+ src/hb-ot-shape-fallback-private.hh | 5 ++++
+ src/hb-ot-shape-fallback.cc        | 46
+ +++++++++++++++++++++++++------------
+ src/hb-ot-shape-private.hh         |  6 +++++
+ src/hb-ot-shape.cc                 |  4 ++++
+ 4 files changed, 46 insertions(+), 15 deletions(-)
+
+commit b85800f9de8976a7418ef9df467d3080c6ab0199
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 31 18:12:01 2012 -0400
+
+    [Indic] Implement dotted-circle insertion for broken clusters
+
+    No panic, we reeally insert dotted circle when it's absolutely broken.
+
+    Fixes most of the dotted-circle cases against Uniscribe. (for
+    Devanagari
+    fixes 80% of them, for Khmer 70%; the rest look like Uniscribe being
+    really bogus...)
+
+    I had to make a decision.  Apparently Uniscribe adds one dotted circle
+    to each broken character.  I tried that, but that goes wrong
+    easily with
+    split matras.  So I made it add only one dotted circle to an entire
+    broken syllable tail.  As in: "if there was a dotted circle here, this
+    would have formed a correct cluster."  That works better for split
+    stuff, and I like it more.
+
+ src/hb-buffer-private.hh                |  1 +
+ src/hb-buffer.cc                        | 10 +++++
+ src/hb-ot-shape-complex-indic-machine.rl |  4 +-
+ src/hb-ot-shape-complex-indic-private.hh |  2 +-
+ src/hb-ot-shape-complex-indic.cc        | 67
+ +++++++++++++++++++++++++++++---
+ src/hb-ot-shape-normalize-private.hh    |  1 +
+ src/hb-ot-shape-normalize.cc            | 11 +++---
+ 7 files changed, 83 insertions(+), 13 deletions(-)
+
+commit 327d14ef188396006d54af976506ab6f8bb2869a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 31 16:49:34 2012 -0400
+
+    [Indic] Start adding dotted-circle instrastructure
+
+ src/hb-ot-shape-complex-indic-machine.rl | 19 +++++++------
+ src/hb-ot-shape-complex-indic.cc        | 46
+ +++++++++++++++++++++++++++++---
+ 2 files changed, 51 insertions(+), 14 deletions(-)
+
+commit 1be368e96fb7de8c77bf992874e0d5bd6b272ebe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 31 16:29:17 2012 -0400
+
+    Minor
+
+ src/hb-buffer-private.hh | 16 +++++++++++++++-
+ src/hb-buffer.cc        | 15 ---------------
+ 2 files changed, 15 insertions(+), 16 deletions(-)
+
+commit 784f29d061a2939562eca0c4943feb01174aee00
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 31 14:06:26 2012 -0400
+
+    Minor
+
+ src/hb-ot-shape.cc | 12 ++++++++----
+ 1 file changed, 8 insertions(+), 4 deletions(-)
+
+commit 5a7f18767a87a3f07269d0814f984a98f86ab852
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 30 22:53:29 2012 -0400
+
+    [OT] Better fallback-position Thai / Lao ccc!=0 marks
+
+ src/hb-ot-shape-fallback.cc | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 9f2348de58f0f85593027378169bc03c4dd64e59
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 29 21:08:59 2012 -0400
+
+    [OT] Add serialize() for Coverage
+
+ src/hb-open-type-private.hh       | 34 +++++++++++++++++----
+ src/hb-ot-layout-common-private.hh | 62
+ ++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 90 insertions(+), 6 deletions(-)
+
+commit e901b954c6ec44ac3ae7fb3c326e6e7a40718e4b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 29 20:26:08 2012 -0400
+
+    [OT] Start adding serialize() API
+
+ src/hb-open-type-private.hh | 77
+ +++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 77 insertions(+)
+
+commit 965c280de09b49d711cb78d629da321c802084de
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 29 13:59:16 2012 -0400
+
+    Add HB_BUFFER_ASSERT_VAR
+
+    To be used in places we access buffer vars...
+
+ src/hb-buffer-private.hh |  3 +++
+ src/hb-buffer.cc        | 16 ++++++++++++++++
+ 2 files changed, 19 insertions(+)
+
+commit 0ccf9b64736559a230425fd131c9eb8aa3048221
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 29 11:53:26 2012 -0400
+
+    Move code around
+
+ src/hb-ot-shape.cc | 21 ++++++++++-----------
+ 1 file changed, 10 insertions(+), 11 deletions(-)
+
+commit 2fcbbdb41a322f54b61d9ce983ab54434504c5ed
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 29 11:11:54 2012 -0400
+
+    Port Arabic fallback ligating to share code with GSUB
+
+    This will eventually allow us to skip marks, as well as (fallback)
+    attach marks to ligature components of fallback-shaped Arabic.
+    That would be pretty cool. I kludged GDEF props in, so mark-skipping
+    works, but the produced ligature id/components will be cleared later
+    by substitute_start() et al.
+
+    Perhaps using a synthetic table for Arabic fallback shaping was
+    a better
+    idea.  The current approach has way too many layering violations...
+
+ src/hb-ot-layout-gsubgpos-private.hh |  4 ++
+ src/hb-ot-shape-complex-arabic.cc    | 72
+ ++++++++++++++++++++++++------------
+ src/hb-ot-shape.cc                  |  4 +-
+ 3 files changed, 56 insertions(+), 24 deletions(-)
+
+commit 5e399a8a45bddb49e06e2ca39df1ed04398c0aff
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 29 10:40:49 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-gsub-table.hh       | 1 -
+ src/hb-ot-layout-gsubgpos-private.hh | 1 -
+ 2 files changed, 2 deletions(-)
+
+commit a177d027d1d0ad9539e30ed75d8652e0e8da20ff
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 28 23:18:22 2012 -0400
+
+    [GSUB] Move ligation logic over
+
+ src/hb-ot-layout-gsub-table.hh       | 78
+ ++++-------------------------------
+ src/hb-ot-layout-gsubgpos-private.hh | 80
+ ++++++++++++++++++++++++++++++++++++
+ 2 files changed, 89 insertions(+), 69 deletions(-)
+
+commit 191fa885d9e0a2dce92dd8727cddd18495e62409
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 28 22:58:55 2012 -0400
+
+    [GSUB] Merge Ligature and context input matching
+
+    Looks better now...
+
+ TODO                                |  4 --
+ src/hb-ot-layout-gsub-table.hh       | 71
+ +++++++-----------------------------
+ src/hb-ot-layout-gsubgpos-private.hh | 29 ++++++++++++++-
+ 3 files changed, 40 insertions(+), 64 deletions(-)
+
+commit 93814ca7dc2a7251f861c1c47ba155ba6e6bdf19
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 28 22:24:51 2012 -0400
+
+    Start converging Ligature and match_input
+
+ src/hb-ot-layout-gsub-table.hh       | 58
+ +++++++++++++++++----------------
+ src/hb-ot-layout-gsubgpos-private.hh | 62
+ ++++++++++++++++++++++++++++--------
+ 2 files changed, 78 insertions(+), 42 deletions(-)
+
+commit 2eef71737ea29ffadbb5a2be4a898b44f53f66ac
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 28 19:16:38 2012 -0400
+
+    [hb-icu-le] Add visbility
+
+ src/hb-icu-le/FontTableCache.h                |  6 +++++-
+ src/hb-icu-le/PortableFontInstance.cpp | 39
+ ----------------------------------
+ src/hb-icu-le/PortableFontInstance.h  |  7 ++++--
+ src/hb-icu-le/cmaps.cpp               |  2 +-
+ src/hb-icu-le/cmaps.h                 |  5 ++++-
+ src/hb-icu-le/letest.h                        | 14 ++++++++++++
+ src/hb-icu-le/sfnt.h                  |  6 +++++-
+ 7 files changed, 34 insertions(+), 45 deletions(-)
+
+commit d59e28e49204ed609d8a1bf3c0f21ab5fc178337
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 28 19:08:36 2012 -0400
+
+    Minor
+
+ src/Makefile.am          | 6 +++++-
+ src/check-libstdc++.sh    | 2 +-
+ src/check-static-inits.sh | 4 ++--
+ 3 files changed, 8 insertions(+), 4 deletions(-)
+
+commit af169d2813ff8075288cd4a7811f0715e4fea3da
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 28 19:08:22 2012 -0400
+
+    Minor
+
+ src/hb-icu-le/PortableFontInstance.h | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 52ff2681d88886e2165ced397966ba29c2073583
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 28 18:03:35 2012 -0400
+
+    Use VisualStudio-style atomic intrinsics on mingw32
+
+ src/hb-atomic-private.hh | 25 ++++++++++++++++++-------
+ 1 file changed, 18 insertions(+), 7 deletions(-)
+
+commit 7c8e844d92aa604fc4b396343721ea90eb83adb8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 28 17:57:49 2012 -0400
+
+    Use namespace for OpenType tables
+
+    Avoids USHORT, SHORT, ULONG, LONG clashes with Windows API.
+
+ src/hb-font.cc                              | 12 ++---
+ src/hb-open-file-private.hh         |  4 ++
+ src/hb-open-type-private.hh         |  9 ++--
+ src/hb-ot-head-table.hh             |  4 ++
+ src/hb-ot-hhea-table.hh             |  5 ++
+ src/hb-ot-hmtx-table.hh             |  6 +++
+ src/hb-ot-layout-common-private.hh   |  5 ++
+ src/hb-ot-layout-gdef-table.hh       |  4 ++
+ src/hb-ot-layout-gpos-table.hh       |  4 ++
+ src/hb-ot-layout-gsub-table.hh       |  4 ++
+ src/hb-ot-layout-gsubgpos-private.hh |  4 ++
+ src/hb-ot-layout-private.hh         | 12 +++--
+ src/hb-ot-layout.cc                 | 91
+ ++++++++++++++++++------------------
+ src/hb-ot-maxp-table.hh             |  4 ++
+ src/hb-ot-name-table.hh             |  4 ++
+ src/hb-uniscribe.cc                 |  8 ++--
+ src/main.cc                         |  2 +
+ 17 files changed, 117 insertions(+), 65 deletions(-)
+
+commit dc5df5af6b349c3d9e4ab876864d9dec8096401f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 28 16:31:23 2012 -0400
+
+    Revert "Minor"
+
+    This reverts commit 3e0a03978b91994bb7fa7922593cbdfc50878dfc.
+
+    I know remember why that line is there :).
+
+ src/hb-ot-shape-complex-arabic.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 3e0a03978b91994bb7fa7922593cbdfc50878dfc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 27 17:10:02 2012 -0400
+
+    Minor
+
+ src/hb-ot-shape-complex-arabic.cc | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 667218a5b134728863a318c73070f4e323590bbd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 27 17:00:44 2012 -0400
+
+    Minor
+
+ src/hb-ot-shape-fallback.cc | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+commit 30dd62251fcd04c2cbaa9b979d47ddbf62c6d460
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 27 16:54:34 2012 -0400
+
+    Only fallback-position glyphs if we have the ccc
+
+    Previously, ccc=0 Thai / Lao marks were being
+    mispositioned.  Don't touch them.
+
+ src/hb-ot-shape-fallback.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit e1ba62811a61afb046d349e578cd141363c7fb34
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 27 16:28:05 2012 -0400
+
+    Center unknown marks horizontally
+
+ src/hb-ot-shape-fallback.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit a4e75e4128751bb902117abc1a59dce4f2147672
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 27 15:54:15 2012 -0400
+
+    Minor
+
+ test/shaping/hb_test_tools.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 23b0e9d7dc801e11640979af3c2b00649a519bb1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 26 14:30:18 2012 -0400
+
+    [Indic] Fix switch
+
+    D'oh.  Was working by pure chance :)).
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ae4d4e1de6b4512576080e95896383887b30982f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 26 14:27:44 2012 -0400
+
+    Bug 53815 - CoreText backend doesn't link
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ec0e46376a2afec4ff7606f95582b0ec49c2a44a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 24 00:44:53 2012 -0400
+
+    Remove TODO items
+
+ TODO | 4 ----
+ 1 file changed, 4 deletions(-)
+
+commit 56e878ab875ff06d74702145e380e198be967bd6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 24 00:41:51 2012 -0400
+
+    [graphite2] Cleanup scratch buffer allocation
+
+ src/hb-graphite2.cc | 77
+ ++++++++++++++++++++++++++++++-----------------------
+ 1 file changed, 44 insertions(+), 33 deletions(-)
+
+commit 2f7586c6229096143ca0a96712a27416ee0d3c85
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 23 23:59:55 2012 -0400
+
+    [icu-le] Implement icu layout engine shaper
+
+ configure.ac         |   2 +-
+ src/hb-icu-le.cc      | 113
+ +++++++++++++++++++++++++++++++++++++++++++++-----
+ src/hb-icu-le/cmaps.h |   1 -
+ src/hb-shaper-list.hh |   4 ++
+ 4 files changed, 108 insertions(+), 12 deletions(-)
+
+commit ba7f6c3797e5b440557bacd9b666bf09713dca76
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 23 21:52:44 2012 -0400
+
+    [icu-le] Hook up to hb_face_t
+
+ src/hb-icu-le.cc                      |  17 +++-
+ src/hb-icu-le/FontTableCache.cpp      |  34 ++++----
+ src/hb-icu-le/FontTableCache.h                |   9 ++-
+ src/hb-icu-le/PortableFontInstance.cpp | 144
+ +++------------------------------
+ src/hb-icu-le/PortableFontInstance.h  |  21 ++---
+ src/hb-icu-le/README                  |   1 +
+ 6 files changed, 57 insertions(+), 169 deletions(-)
+
+commit e96bb36995b2a5321b4d32bb11906e1701aaf115
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 23 21:37:51 2012 -0400
+
+    [icu-le] Actually use the FontTableCache
+
+ src/hb-icu-le/PortableFontInstance.cpp | 25 ++++++++-----------------
+ 1 file changed, 8 insertions(+), 17 deletions(-)
+
+commit 7d242364ea647f655a7092bda25f9a10774c57f5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 23 21:23:41 2012 -0400
+
+    [icu-le] Start adding a icu-layout-engine backend
+
+    Import PortableFontInstance and add shaper stub.
+
+ configure.ac                          |   9 +
+ src/Makefile.am                       |   8 +
+ src/hb-icu-le.cc                      | 111 ++++++++
+ src/hb-icu-le/FontTableCache.cpp      |  91 +++++++
+ src/hb-icu-le/FontTableCache.h                |  41 +++
+ src/hb-icu-le/Makefile.am             |  25 ++
+ src/hb-icu-le/PortableFontInstance.cpp | 436
+ ++++++++++++++++++++++++++++++++
+ src/hb-icu-le/PortableFontInstance.h  | 117 +++++++++
+ src/hb-icu-le/README                  |   2 +
+ src/hb-icu-le/cmaps.cpp               | 200 +++++++++++++++
+ src/hb-icu-le/cmaps.h                 |  85 +++++++
+ src/hb-icu-le/letest.h                        |  49 ++++
+ src/hb-icu-le/license.html            |  51 ++++
+ src/hb-icu-le/sfnt.h                  | 449
+ +++++++++++++++++++++++++++++++++
+ 14 files changed, 1674 insertions(+)
+
+commit b5584ee4be46b47e1678acf28426970a6d670b4f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 23 16:26:07 2012 -0400
+
+    [Indic] For old-spec, match non-zero context
+
+    Fixes consonant-position with old-spec Malayalam.  Uniscribe seem
+    to be
+    doing this.  Fixes below-base La (eg. Pa,H,La) with AnjaliNewLipi.ttf.
+    Doesn't regress new-spec or other scripts.
+
+ src/hb-ot-shape-complex-indic.cc | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+commit d9b204d3d24cde165167714728bf380267903d6a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 23 16:22:28 2012 -0400
+
+    [GSUB] Allow non-zero-context matching in would_apply()
+
+    To be used in the next patch.
+
+ src/hb-ot-layout-gsubgpos-private.hh |  6 ++++--
+ src/hb-ot-layout-private.hh         |  3 ++-
+ src/hb-ot-layout.cc                 | 14 ++++++++------
+ src/hb-ot-layout.h                  |  7 ++++---
+ src/hb-ot-map.cc                    | 12 ++----------
+ src/hb-ot-shape-complex-indic.cc     |  2 +-
+ src/test-would-substitute.cc        |  2 +-
+ 7 files changed, 22 insertions(+), 24 deletions(-)
+
+commit 1f2bb172fe9a173ecfd61054f1fdd850943ef059
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 23 16:10:37 2012 -0400
+
+    Revert "[Indic/GSUB] Ignore context when matching would_apply()"
+
+    This reverts commit 24dd4e56743c6ce5e01cb710ca9e01b3e527af58.
+
+    Oops.  My bad.  The change _regressed_ Malayalam test suite, not
+    improved it.  I'll redo it, differentiating between old-spec and
+    new-spec cases.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 8 +++-----
+ 1 file changed, 3 insertions(+), 5 deletions(-)
+
+commit 24dd4e56743c6ce5e01cb710ca9e01b3e527af58
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 23 15:47:10 2012 -0400
+
+    [Indic/GSUB] Ignore context when matching would_apply()
+
+    The MS Indic specs say "...all classifications are determined
+    ... using
+    context-free substitutions."  However, testing shows that MS's
+    Malayalam
+    shapers (both old and new), "match" even if there is no zero-context
+    rule.
+    We follow.
+
+    Fixes below-base La (eg. Pa,H,La) with AnjaliNewLipi.ttf (old spec).
+    Moreover, test suite Malayalam failures are down to 312 from 875!  No
+    change in other scripts.
+
+    Current numbers:
+
+    BENGALI: 353996 out of 354285 tests passed. 289 failed (0.0815727%)
+    DEVANAGARI: 707339 out of 707394 tests passed. 55 failed (0.00777502%)
+    GUJARATI: 366489 out of 366506 tests passed. 17 failed (0.0046384%)
+    GURMUKHI: 60769 out of 60809 tests passed. 40 failed (0.0657797%)
+    KANNADA: 951086 out of 951913 tests passed. 827 failed (0.0868777%)
+    KHMER: 299106 out of 299124 tests passed. 18 failed (0.00601757%)
+    LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
+    MALAYALAM: 1047541 out of 1048416 tests passed. 875 failed
+    (0.0834592%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271726 out of 271847 tests passed. 121 failed (0.0445103%)
+    TAMIL: 1091837 out of 1091837 tests passed. 0 failed (0%)
+    TELUGU: 970558 out of 970573 tests passed. 15 failed (0.00154548%)
+    TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
+
+ src/hb-ot-layout-gsubgpos-private.hh | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+commit 6732d62e78b13842ead9549c97bede25c73976cb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 23 15:19:45 2012 -0400
+
+    [Indic] Implement pre-base reordering Ra for old-spec Malayalam
+
+    Fixes Pa,H,Ra sequence with AnjaliNewLipi.ttf.
+
+ src/hb-ot-shape-complex-indic.cc | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+commit 80cd92326f8a3f48a7821e720e8ecb2072e73286
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 23 12:06:14 2012 -0400
+
+    [Indic] Only apply basic features per-syllable
+
+    Free up syllables and let features work across syllables for the
+    presentation forms features and GPOS.
+
+    Fixed:
+    - 1 GURMUKHI test (remains 40)
+    - 12 KHMER tests (remains 18)
+    - 11 SINHALA tests (remains 121)
+
+    Regresses:
+    - 5 MALAYALAM tests (up to 312)
+
+    Current numbers:
+
+    BENGALI: 353996 out of 354285 tests passed. 289 failed (0.0815727%)
+    DEVANAGARI: 707339 out of 707394 tests passed. 55 failed (0.00777502%)
+    GUJARATI: 366489 out of 366506 tests passed. 17 failed (0.0046384%)
+    GURMUKHI: 60769 out of 60809 tests passed. 40 failed (0.0657797%)
+    KANNADA: 951086 out of 951913 tests passed. 827 failed (0.0868777%)
+    KHMER: 299106 out of 299124 tests passed. 18 failed (0.00601757%)
+    LAO: 53611 out of 53644 tests passed. 33 failed (0.0615167%)
+    MALAYALAM: 1048104 out of 1048416 tests passed. 312 failed
+    (0.0297592%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271726 out of 271847 tests passed. 121 failed (0.0445103%)
+    TAMIL: 1091837 out of 1091837 tests passed. 0 failed (0%)
+    TELUGU: 970558 out of 970573 tests passed. 15 failed (0.00154548%)
+    TIBETAN: 208469 out of 208469 tests passed. 0 failed (0%)
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit df5d5c68f3a5cab17bf4a429802a1a1a834c3456
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 23 09:33:30 2012 -0400
+
+    Whitespace
+
+ src/hb-ot-layout-gpos-table.hh | 20 ++++++++++----------
+ 1 file changed, 10 insertions(+), 10 deletions(-)
+
+commit 7fe00d15da20193ca94a8ead9aee60df24074a9e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 18 13:59:46 2012 -0400
+
+    Release 0.9.3
+
+ NEWS        | 16 ++++++++++++++++
+ configure.ac |  2 +-
+ 2 files changed, 17 insertions(+), 1 deletion(-)
+
+commit 7068e534c4ef7ed2eb7ef8e1370fd4a449556ce8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 18 13:56:10 2012 -0400
+
+    Fix ChangeLog generation rule
+
+ Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 2f1747ed7d28148807ad07eb8e22db3ab5c54966
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 16 11:46:46 2012 -0400
+
+    Add comment
+
+ src/hb-ot-shape-complex-arabic.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit bd08d5d126aa878d1dbf7bfd4b1a764c170cd9ad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 16 11:35:50 2012 -0400
+
+    [OT] Fix Arabic shaper OOB access
+
+    https://bugzilla.mozilla.org/show_bug.cgi?id=782908
+
+ src/hb-ot-shape-complex-arabic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b161bfc4f6f2db0edea780b95b798ff7b559cf33
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 16 08:09:44 2012 -0400
+
+    [configure] Cleanup check for ICU
+
+    Check for upstream-provided 'icu-uc' pkgconfig package.
+
+ configure.ac | 21 +--------------------
+ 1 file changed, 1 insertion(+), 20 deletions(-)
+
+commit daf0731865f91da960446928667d4095bde471ea
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 16 07:32:59 2012 -0400
+
+    [ICU] Fix includes
+
+    As reported by Steven Loomis, including uversion.h works everywhere.
+
+ src/hb-icu.cc | 6 ------
+ 1 file changed, 6 deletions(-)
+
+commit a67ba9c0fe6798a3500af9f4acee8d678f5144ee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 15 18:52:17 2012 -0400
+
+    Whitespace
+
+ src/hb-old/Makefile.am | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 9fe76051f7003d6b6a10486c5595bf1a4dbf5fe6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 15 17:24:28 2012 -0400
+
+    [NEWS] Fix date
+
+    Oops!
+
+ NEWS | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 45c1383cc7315f89c23c0ed388b99e87224884e7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 14 09:33:18 2012 -0400
+
+    Minor
+
+ src/hb-coretext.cc      | 8 ++++----
+ src/hb-fallback-shape.cc | 8 ++++----
+ src/hb-graphite2.cc     | 8 ++++----
+ src/hb-uniscribe.cc     | 8 ++++----
+ 4 files changed, 16 insertions(+), 16 deletions(-)
+
+commit 4ac4c6f2e12ddc8bf5e750671321458218b6e0c8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 13 10:52:52 2012 -0400
+
+    Fix ICU build with older ICUs
+
+ src/hb-icu.cc | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+commit 883cbf5ed79d2b60191f803a5ee3f3e4496f3441
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 12 17:11:27 2012 -0400
+
+    Minor
+
+ contrib/README | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit b7a4d37d0b162f2222b65d09b9271b8c636086f8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 11 21:32:23 2012 -0400
+
+    minor
+
+ configure.ac | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit d5045a5f4017631a4660f985fe451c5a64c42ca0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 11 21:26:25 2012 -0400
+
+    [ICU] Use new normalizer2 compose/decompose API
+
+    It's considerably faster than the fallback implementation we had
+    previously!
+
+ src/hb-buffer.cc         |  9 +++---
+ src/hb-glib.cc                   | 26 +++++++---------
+ src/hb-icu.cc            | 75
+ +++++++++++++++++++++++++++++++++++++----------
+ src/hb-unicode-private.hh | 13 ++------
+ src/hb-unicode.cc        | 35 ++++++++++++++++++++--
+ src/hb-warning.cc        |  8 -----
+ 6 files changed, 110 insertions(+), 56 deletions(-)
+
+commit 2b73a1f112c489c2553743c08dc03cd89f60cb2d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 11 19:17:54 2012 -0400
+
+    Add TODO
+
+ TODO | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 9f9f04c2229227bb0712166e824157bbbf5cef80
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 11 18:34:13 2012 -0400
+
+    [OT] Unbreak Thai shaping and fallback Arabic shaping
+
+    The merger of normalizer and glyph-mapping broke shapers that
+    modified text stream.  Unbreak them by adding a new preprocess_text
+    shaping stage that happens before normalizing/cmap and disallow
+    setup_mask modification of actual text.
+
+ src/hb-ot-shape-complex-arabic.cc  | 42
+ ++++++++++++++++++++++++++++----------
+ src/hb-ot-shape-complex-indic.cc   |  1 +
+ src/hb-ot-shape-complex-misc.cc    | 12 ++++++-----
+ src/hb-ot-shape-complex-private.hh | 15 +++++++++++---
+ src/hb-ot-shape.cc                |  3 +++
+ 5 files changed, 54 insertions(+), 19 deletions(-)
+
+commit e9f28a38f54b98fa59f9159ccaaa3be6027e1378
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 11 18:20:28 2012 -0400
+
+    [OT] Add shape_plan to Arabic shaper
+
+ src/hb-ot-shape-complex-arabic.cc | 82
+ +++++++++++++++++++++++++--------------
+ 1 file changed, 53 insertions(+), 29 deletions(-)
+
+commit 344cc56698a8c84c4c1a05a71d829e5171aa3a60
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 11 17:36:23 2012 -0400
+
+    Add TODO
+
+ TODO | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit daf13afb0801740dcc7900c4af190e24b80a05c0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 10 16:38:44 2012 -0400
+
+    [OT] Implement fallback mark positioning for "double" combining marks
+
+ src/hb-ot-shape-fallback.cc | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+commit d345313104d9e3c8a8533ccdebd74e0648d0bee3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 10 16:34:04 2012 -0400
+
+    [OT] Fix fallback mark positioning with left-to-right text
+
+    Ouch!
+
+ src/hb-ot-shape-fallback.cc | 13 +++++++++++--
+ 1 file changed, 11 insertions(+), 2 deletions(-)
+
+commit e297ee4acd6f9d950f8542fc6ad71fd580b69284
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 10 14:49:37 2012 -0400
+
+    Bump version to 0.9.2
+
+    A *real* release this time, with NEWS, ChangeLog, etc.
+
+ AUTHORS      |   8 ++++
+ COPYING      |   9 ++--
+ Makefile.am  |  13 +++---
+ NEWS        | 136
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ THANKS       |   7 +++
+ configure.ac |   4 +-
+ 6 files changed, 165 insertions(+), 12 deletions(-)
+
+commit 6efe1200b97cefe019857b0b5951a4a87deeb02b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 10 13:49:32 2012 -0400
+
+    Bump version to 0.9.1
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 206ab6057303273590a3d005660e075bdcee0f5f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 10 09:06:30 2012 -0400
+
+    [test] Move around
+
+ .../in-tree/shaper-arabic/script-arabic/MANIFEST   |   2 +-
+ .../shaper-arabic/script-arabic/crulp/MANIFEST     |   1 -
+ .../script-arabic/crulp/ligatures/2grams.txt      |  601 --
+ .../script-arabic/crulp/ligatures/3grams.txt      | 3415 -----------
+ .../script-arabic/crulp/ligatures/4grams.txt      | 6316
+ --------------------
+ .../script-arabic/crulp/ligatures/5grams.txt      | 5029
+ ----------------
+ .../script-arabic/crulp/ligatures/6grams.txt      | 1542 -----
+ .../script-arabic/crulp/ligatures/7grams.txt      |  354 --
+ .../script-arabic/crulp/ligatures/8grams.txt      |   26 -
+ .../script-arabic/crulp/ligatures/LICENSE         |    3 -
+ .../script-arabic/crulp/ligatures/MANIFEST        |    7 -
+ .../script-arabic/crulp/ligatures/README          |   16 -
+ .../script-arabic/crulp/ligatures/SOURCES         |    4 -
+ .../script-arabic/language-urdu/MANIFEST          |    1 +
+ .../script-arabic/language-urdu/crulp/MANIFEST     |   1 +
+ .../language-urdu/crulp/ligatures/2grams.txt      |  601 ++
+ .../language-urdu/crulp/ligatures/3grams.txt      | 3415 +++++++++++
+ .../language-urdu/crulp/ligatures/4grams.txt      | 6316
+ ++++++++++++++++++++
+ .../language-urdu/crulp/ligatures/5grams.txt      | 5029
+ ++++++++++++++++
+ .../language-urdu/crulp/ligatures/6grams.txt      | 1542 +++++
+ .../language-urdu/crulp/ligatures/7grams.txt      |  354 ++
+ .../language-urdu/crulp/ligatures/8grams.txt      |   26 +
+ .../language-urdu/crulp/ligatures/LICENSE         |    3 +
+ .../language-urdu/crulp/ligatures/MANIFEST        |    7 +
+ .../language-urdu/crulp/ligatures/README          |   16 +
+ .../language-urdu/crulp/ligatures/SOURCES         |    4 +
+ 26 files changed, 17316 insertions(+), 17315 deletions(-)
+
+commit 7a484c601e0958533eb85a6902296733c39537fe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 10 09:05:29 2012 -0400
+
+    [test] Add Urdu ligature sequences from CRULP
+
+ .../in-tree/shaper-arabic/script-arabic/MANIFEST   |   1 +
+ .../shaper-arabic/script-arabic/crulp/MANIFEST     |   1 +
+ .../script-arabic/crulp/ligatures/2grams.txt      |  601 ++
+ .../script-arabic/crulp/ligatures/3grams.txt      | 3415 +++++++++++
+ .../script-arabic/crulp/ligatures/4grams.txt      | 6316
+ ++++++++++++++++++++
+ .../script-arabic/crulp/ligatures/5grams.txt      | 5029
+ ++++++++++++++++
+ .../script-arabic/crulp/ligatures/6grams.txt      | 1542 +++++
+ .../script-arabic/crulp/ligatures/7grams.txt      |  354 ++
+ .../script-arabic/crulp/ligatures/8grams.txt      |   26 +
+ .../script-arabic/crulp/ligatures/LICENSE         |    3 +
+ .../script-arabic/crulp/ligatures/MANIFEST        |    7 +
+ .../script-arabic/crulp/ligatures/README          |   16 +
+ .../script-arabic/crulp/ligatures/SOURCES         |    4 +
+ 13 files changed, 17315 insertions(+)
+
+commit f4cb4762986a28634fa7de9b706f9d37859b881e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 10 03:51:44 2012 -0400
+
+    [OT] Slightly adjust normalizer
+
+    The change is very subtle. If we have a single-char cluster that
+    decomposes to three or more characters, then try recomposition, in
+    case the farther mark may compose with the base.
+
+ src/hb-ot-shape-normalize.cc | 81
+ +++++++++++++++++++++++++++++---------------
+ 1 file changed, 54 insertions(+), 27 deletions(-)
+
+commit 07d682806349aee81f53114778ce0beb23909ed7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 10 03:28:50 2012 -0400
+
+    Minor
+
+ src/hb-ot-shape-normalize.cc | 25 ++++++++-----------------
+ src/hb-ot-shape.cc          |  2 +-
+ 2 files changed, 9 insertions(+), 18 deletions(-)
+
+commit b00321ea78793d9b3592b5173a9800e6322424fe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 9 22:33:32 2012 -0400
+
+    [OT] Avoid calling get_glyph() twice
+
+    Essentially move the glyph mapping to normalization process.
+    The effect on Devanagari is small (but observable).  Should be more
+    observable in simple text, like ASCII.
+
+ src/hb-ot-shape-normalize-private.hh |  2 +
+ src/hb-ot-shape-normalize.cc        | 76
+ +++++++++++++++++++++++++-----------
+ src/hb-ot-shape.cc                  | 44 ++++++++++-----------
+ 3 files changed, 77 insertions(+), 45 deletions(-)
+
+commit 12c0875eafa4bd92db650e5acca046d99594d1e6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 9 22:00:53 2012 -0400
+
+    [OT] Remove redundant check
+
+ src/hb-ot-shape.cc | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+commit 5c60b70c89b4e0a6512d9fd1ab5394dd76feb742
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 9 21:58:07 2012 -0400
+
+    [OT] More code shuffling around
+
+    Preparing for merging map_glyphs() and normalize().
+
+ src/hb-ot-shape.cc | 167
+ +++++++++++++++++++++++++++--------------------------
+ 1 file changed, 86 insertions(+), 81 deletions(-)
+
+commit cd0c6e148f6d078b364370cb2f808b793b921be2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 9 21:48:55 2012 -0400
+
+    Shuffle buffer variable allocations around
+
+    To room for more allocations, coming.
+
+ src/hb-ot-layout-private.hh             | 6 +++---
+ src/hb-ot-shape-complex-arabic.cc       | 2 +-
+ src/hb-ot-shape-complex-indic-private.hh | 4 ++--
+ src/hb-ot-shape-complex-private.hh      | 5 ++---
+ src/hb-ot-shape-private.hh              | 4 ++--
+ 5 files changed, 10 insertions(+), 11 deletions(-)
+
+commit 8d1eef3f32fb539de2a72804fa3834acc18daab5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 9 21:31:52 2012 -0400
+
+    Minor
+
+ src/hb-ot-shape-normalize.cc | 50
+ +++++++++++++++++++++++++++-----------------
+ 1 file changed, 31 insertions(+), 19 deletions(-)
+
+commit 56c9e7c004e802ddcb8c704346026f1d7a812f9f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 9 21:12:30 2012 -0400
+
+    Fill out combining class resetting for fallback shaping
+    Thai/Lao/Tibetan
+
+ src/hb-ot-shape-fallback.cc | 38 +++++++++++++++++++++++++++++++++++++-
+ src/hb-unicode-private.hh   | 7 ++++---
+ src/hb-unicode.cc          |  2 +-
+ 3 files changed, 42 insertions(+), 5 deletions(-)
+
+commit a321e1d51e0e7fa02738410e8d6e77c841bc6b13
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 9 18:30:34 2012 -0400
+
+    Revert "Reject lookups with no subTable"
+
+    This reverts commit 30ec9002d84e8b49290e782e6192069821ffa942.
+
+    See previous commit.
+
+ src/hb-ot-layout-common-private.hh | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 2eaf482b371034ce6ebfaedee98049b036fd3493
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 9 18:30:05 2012 -0400
+
+    Revert "[GSUB/GPOS] Reject Context/ChainContext lookups with zero
+    input"
+
+    This reverts commit 0981068b75710397f08e0d2d776a0a2ea68d7117.
+
+    I was confused.  Even if we access coverage[0] unconditionally,
+    we don't
+    need bound checks since the array machinary already handles that.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit a02d86484be870615297abfc7be9f94645434762
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 8 18:04:29 2012 -0400
+
+    Add check-exported-symbols.sh
+
+    And misc linking fixes.
+
+ src/Makefile.am                 |  1 +
+ src/check-exported-symbols.sh   | 40
+ ++++++++++++++++++++++++++++++++++++++++
+ src/check-internal-symbols.sh   |  2 +-
+ src/hb-ot-shape-complex-indic.cc |  2 +-
+ src/hb-ot-shape.cc              |  6 +++---
+ 5 files changed, 46 insertions(+), 5 deletions(-)
+
+commit 4c8ac4f47e95d2b266b2f64e75c55af8233b6b91
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 8 17:44:19 2012 -0400
+
+    Misc minor fixes
+
+ src/check-internal-symbols.sh |  10 +--
+ src/hb-font-private.hh        |  29 +++++++-
+ src/hb-font.cc                       |  63 +++++++---------
+ src/hb-font.h                |   2 +-
+ src/hb-graphite2.cc          |   4 +-
+ src/hb-old.cc                |   2 +-
+ src/hb-ot-layout.cc          |   6 +-
+ src/hb-ot-shape-fallback.cc   |  10 +--
+ src/hb-ot-shape.cc           |   2 +-
+ src/hb-shape-plan.cc         |   2 +-
+ src/hb-shape-plan.h          |   2 +-
+ src/hb-tt-font.cc            | 166
+ +-----------------------------------------
+ 12 files changed, 72 insertions(+), 226 deletions(-)
+
+commit 560d68af8168d1baff607b9616a3590af70fe9ec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 8 17:16:01 2012 -0400
+
+    Use a export-file for Windows builds
+
+    Apparently even that doesn't make check-internal-symbols.sh happy with
+    mingw32.  Going to disable that for DLLs again, but hopefully the
+    export-file is doing *something*.
+
+ configure.ac   | 14 +++++++++++++-
+ src/Makefile.am | 22 +++++++++++++++++++++-
+ src/hb-buffer.h |  4 ++--
+ 3 files changed, 36 insertions(+), 4 deletions(-)
+
+commit f8751cf8e0a16125d63a88da65fdbfa76a19453f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 8 17:15:44 2012 -0400
+
+    [hb-old] speed-up build
+
+ src/hb-old/harfbuzz-external.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 5f4c52867ce67faa15f5d26b59c18c8d068e9261
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 8 16:53:37 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout.h | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit fe2b8a7777ab1c84980424ede713cb0d6701f987
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 8 15:27:14 2012 -0400
+
+    Minor
+
+ TODO | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 7e7d245b332306949a19c628bacd920717434769
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 8 15:23:48 2012 -0400
+
+    Make default_language threadsafe
+
+ src/hb-common.cc | 15 +++++----------
+ 1 file changed, 5 insertions(+), 10 deletions(-)
+
+commit 06b192c458010c847362d809673209c87ea29949
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 8 15:23:45 2012 -0400
+
+    Minor
+
+ src/hb-common.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 37191ede7583fdb864db32a8f4d90956657926c7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 8 14:59:09 2012 -0400
+
+    Minor
+
+ src/hb-common.h | 4 ++--
+ src/hb-icu.h   | 1 -
+ 2 files changed, 2 insertions(+), 3 deletions(-)
+
+commit 6d9a329a8a0f11f4b175e407de59c55924de1ef6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 8 14:48:41 2012 -0400
+
+    Adjust a couple source checks
+
+ src/check-internal-symbols.sh |  4 ++--
+ src/check-static-inits.sh     | 10 ++++++++--
+ 2 files changed, 10 insertions(+), 4 deletions(-)
+
+commit 9c929abdcfef44c0193a2917b20981df37ade21c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 8 14:33:37 2012 -0400
+
+    Minor renaming
+
+ src/Makefile.am                             |   4 +-
+ src/hb-ot-shape-fallback-private.hh         |  39 ++++
+ src/hb-ot-shape-fallback.cc                 | 276
+ +++++++++++++++++++++++++++
+ src/hb-ot-shape-position-fallback-private.hh |  39 ----
+ src/hb-ot-shape-position-fallback.cc        | 276
+ ---------------------------
+ src/hb-ot-shape.cc                          |   4 +-
+ 6 files changed, 319 insertions(+), 319 deletions(-)
+
+commit 801298b590effd768607bb532dc83c73ba65d16b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 8 14:26:36 2012 -0400
+
+    Fix cast
+
+    https://bugs.freedesktop.org/show_bug.cgi?id=53233
+
+ src/hb-buffer-private.hh | 10 ++++++----
+ src/hb-shape-plan.cc    |  4 ++--
+ 2 files changed, 8 insertions(+), 6 deletions(-)
+
+commit 21756934a15e31dc243e2b6d80adec5752477652
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 8 01:20:45 2012 -0400
+
+    [OT] Implement fallback positioning
+
+    Implemented for Arabic, Hebrew, and generic marks.
+    Activated if no GPOS table present.
+
+ src/hb-font.h                       |   3 +-
+ src/hb-ft.cc                        |   3 +-
+ src/hb-old.cc                       |   2 +-
+ src/hb-ot-shape-position-fallback.cc | 237
+ ++++++++++++++++++++++++++++++++++-
+ src/hb-unicode-private.hh           |  81 ++++++++++++
+ src/hb-unicode.cc                   | 107 ++++++----------
+ 6 files changed, 356 insertions(+), 77 deletions(-)
+
+commit fb56e7628362a73e20f7f0b49fe31e802dc01f4f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 7 23:44:47 2012 -0400
+
+    [hb-old] Fix warnings
+
+ src/hb-old/harfbuzz-shaper.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit affaf8a0e5aa38e5820455f789eebf916e02eb7b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 7 22:41:38 2012 -0400
+
+    [OT] Start adding fallback positioning
+
+    Used when there is no GPOS.
+
+ src/Makefile.am                             |  2 ++
+ src/hb-ot-shape-position-fallback-private.hh | 39 +++++++++++++++++++++++
+ src/hb-ot-shape-position-fallback.cc        | 47
+ ++++++++++++++++++++++++++++
+ src/hb-ot-shape.cc                          | 23 +++-----------
+ 4 files changed, 93 insertions(+), 18 deletions(-)
+
+commit 7e4920fd1577987bf6804f67765e22a84983e057
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 7 22:32:23 2012 -0400
+
+    Minor
+
+ src/hb-ot-shape.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 472f229a63f0d1bb21b02179ef430b7698df8f12
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 7 22:25:24 2012 -0400
+
+    [GSUB] Generalize would_apply()
+
+    Fixes logic also, where before we were always matching if
+    glyphs_len==1
+    and a ligature started with the glyph.
+
+ src/hb-ot-layout-gsub-table.hh       | 26 ++++++++++++++++++++-----
+ src/hb-ot-layout-gsubgpos-private.hh | 37
+ ++++++++++++++++++------------------
+ src/hb-ot-layout.cc                 |  3 +--
+ 3 files changed, 40 insertions(+), 26 deletions(-)
+
+commit 6f3a300138f659020c21c3e08b7981c78df5f332
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 7 22:13:25 2012 -0400
+
+    Add hb_font_glyph_from/to_string
+
+ src/hb-font-private.hh       | 43
+ +++++++++++++++++++++++++++++++++++++++++++
+ src/hb-font.cc                      | 24 ++++++++++++++++++++----
+ src/hb-font.h               | 11 +++++++++++
+ src/hb-private.hh           | 16 ++++++++++++++++
+ src/test-would-substitute.cc | 11 ++++++++++-
+ util/options.cc             |  2 +-
+ 6 files changed, 101 insertions(+), 6 deletions(-)
+
+commit eb56f6ae96260c5b4bcd4e1dfb7ab733a230f3a8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 7 21:44:25 2012 -0400
+
+    Minor
+
+ src/hb-mutex-private.hh | 1 +
+ src/hb-uniscribe.cc    | 1 +
+ src/hb-uniscribe.h     | 2 ++
+ 3 files changed, 4 insertions(+)
+
+commit f4e48adcdd4315ce09e755f87a0f801d88194f42
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 7 21:12:49 2012 -0400
+
+    [OT] Apply 'rclt' feature in horizontal mode
+
+    'rclt' is "Required Contextual Forms" being proposed by Microsoft.
+    It's like 'calt', but supposedly always on.  We apply 'calt' anyway,
+    and now apply this too.
+
+ src/hb-ot-shape.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit b1914b8bd08ecdea79930dda7e3bb2ae9e6134a1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 7 16:57:48 2012 -0400
+
+    Fix warnings
+
+ src/hb-icu.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 0f8881d6bbf6cd59938315eeff9b71cfc736aa4e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 7 16:57:02 2012 -0400
+
+    More refactoring
+
+ src/hb-ot-shape-normalize.cc | 161
+ +++++++++++++++++++++++++++++++++++++++++-
+ src/hb-unicode-private.hh    | 164
+ +------------------------------------------
+ 2 files changed, 162 insertions(+), 163 deletions(-)
+
+commit 428dfcab6634ff264570a0a5d715efb8048c3db5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 7 16:51:48 2012 -0400
+
+    Minor refactoring
+
+ src/hb-ot-shape-normalize.cc | 27 +++++++++++++++++++++++----
+ 1 file changed, 23 insertions(+), 4 deletions(-)
+
+commit 61f41849af6ff9edf8b55cf9610066d1bfb4a8df
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 7 16:45:27 2012 -0400
+
+    Add Hebrew presentation forms shaping
+
+    Lifted from https://bugzilla.mozilla.org/show_bug.cgi?id=728866
+
+ src/hb-unicode-private.hh | 121
+ +++++++++++++++++++++++++++++++++++++++++++++-
+ 1 file changed, 120 insertions(+), 1 deletion(-)
+
+commit 32d71dc13317b322e2c5de00d767b2cb15fddd8b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 7 14:11:16 2012 -0400
+
+    [Graphite] Minor
+
+ src/hb-graphite2.cc | 60
+ +++++++++++++++++++++++++----------------------------
+ 1 file changed, 28 insertions(+), 32 deletions(-)
+
+commit 030ac5022e8a43b9329c26e72527bafc582ef44b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 7 13:01:12 2012 -0400
+
+    Remove enum trailing comma
+
+    ...again.
+
+ src/hb-ot-shape-normalize-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 368b4e7649f9bc8c6bebf7c7ff03c9b9ec425a25
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 6 23:06:04 2012 -0400
+
+    Minor
+
+ src/hb-font.cc | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit ade7459ea7c75b4f33f7cfa43dd5bdfa0c18d6d5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 6 19:42:47 2012 -0700
+
+    [util] Fix leaks
+
+ src/hb-graphite2.cc | 18 ++++++++++++++----
+ util/options.cc     | 2 +-
+ util/options.hh     | 2 +-
+ 3 files changed, 16 insertions(+), 6 deletions(-)
+
+commit 2fef993460dcfd94c92ab35413bdde18ad2b0ceb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 6 19:35:04 2012 -0700
+
+    [Graphite] Fix graphite2 backend with RTL text
+
+    Patch from Martin Hosken.
+
+ src/hb-graphite2.cc | 33 ++++++++++++++++++---------------
+ 1 file changed, 18 insertions(+), 15 deletions(-)
+
+commit e4992e13e19877a73ea05fc1d31005a262c685ad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 6 19:25:39 2012 -0700
+
+    [Graphite] Port graphite2 backend to new shaper infrastructure
+
+ src/hb-graphite2.cc   | 234
+ +++++++++++++++++++++++---------------------------
+ src/hb-graphite2.h    |   2 +-
+ src/hb-shaper-list.hh |   2 +-
+ 3 files changed, 109 insertions(+), 129 deletions(-)
+
+commit 66591ececfba9791de06c814f5f30131e95e5fd2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 6 17:07:19 2012 -0700
+
+    Remove unnecessary lifecycle bits
+
+    We already set recount to INVALID when destroying.
+    This block was not necessary.
+
+ src/hb-font.cc | 3 ---
+ 1 file changed, 3 deletions(-)
+
+commit e3320ecc1b5a7eaccc7c9370b2d1b76850f054be
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 6 11:44:10 2012 -0700
+
+    Fix compiler warnings
+
+ configure.ac | 12 +++++++++---
+ 1 file changed, 9 insertions(+), 3 deletions(-)
+
+commit 167b625d988b74572d6b2f646c285b666b650d49
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 5 21:16:26 2012 -0700
+
+    [Indic] Minor, move 'blwf' after 'half'
+
+    We don't apply them together anyway.  Should not make any difference
+    right now.
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 048e3b596fb7fccd3fb5f48de98b6b67788f774a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 4 18:04:57 2012 -0700
+
+    Speed up hb_set_digest_lowest_bits_t calcs
+
+ src/hb-set-private.hh | 10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
+
+commit 3d1b66a35e1ab3be19335705f310b278d76d66d2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 4 17:42:28 2012 -0700
+
+    Speed up hb_set_digest_common_bits_t calcs
+
+ src/hb-set-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit bdc48a879a1900138d8caaa8d90fb9fe1e768d1d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 4 17:08:38 2012 -0700
+
+    Enlarge glyph_name buffer
+
+    Lohit Devanagari has a glyph named:
+    u0924_u094D.half_u0930_u094D.blwf.vatu
+
+ util/options.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 25326c2359b0a3e25222b94acd142bc36eff78a4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 4 16:43:18 2012 -0700
+
+    Rewrite ARRAY_LENGTH as a template function
+
+    Such it wouldn't apply to pointers accidentally.
+
+ src/hb-ot-shape-complex-arabic-table.hh | 4 ++--
+ src/hb-private.hh                      | 9 ++++++---
+ 2 files changed, 8 insertions(+), 5 deletions(-)
+
+commit 8ba8042821e4581fe4e87419e58c823520441205
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 3 18:54:54 2012 -0700
+
+    [Indic] Fix consonant position font lookup logic
+
+    Oops.  I broken this badly and the test suite did not notice.  That
+    worries me.  Have to investigate.
+
+ src/hb-ot-shape-complex-indic.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit abd0c05f1f7f0546593bb2f1c4d59db12cb32e46
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 3 18:45:05 2012 -0700
+
+    Minor
+
+ src/test-would-substitute.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 46ee108ef80f5d4675899862698a8c34d8fcfab5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 3 18:21:13 2012 -0700
+
+    Fix leak
+
+ src/hb-shape-plan.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 71baea0062da4d7f143d62da38492a0813814e49
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 3 17:40:07 2012 -0700
+
+    [OT] Use general-category, not GDEF class, to decide to zero mark
+    advances
+
+    At this point, the GDEF glyph synthesis looks pointless.  Not that I
+    have many fonts without GDEF lying around.
+
+    As for mark advance zeroing when GPOS not available, that also
+    is being
+    replaced by proper fallback mark positioning soon.
+
+ src/hb-ot-shape.cc | 7 ++-----
+ 1 file changed, 2 insertions(+), 5 deletions(-)
+
+commit 3a7e137a68ec8f723dc3afa89c918ca2df7ff6bf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 3 17:23:40 2012 -0700
+
+    Dn't use gint
+
+ src/hb-glib.cc | 4 ++--
+ src/hb-icu.cc | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+commit 11b0e20ba42bf0b17133c3e1087732802bb4f230
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 14:21:40 2012 -0400
+
+    [Indic] Add per-script configuration tables
+
+    This concludes the Indic shape_plan work.  May do for Arabic also...
+
+ src/hb-ot-shape-complex-indic-private.hh |  16 +-
+ src/hb-ot-shape-complex-indic.cc        | 309
+ +++++++++++++++----------------
+ 2 files changed, 159 insertions(+), 166 deletions(-)
+
+commit 85fc6c483f6d734febbe39270e84701a651f01f1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 12:21:44 2012 -0400
+
+    [Indic] Move more stuff to the shape_plan
+
+    Almost done.  Need to add per-script static tables.
+
+ src/hb-ot-shape-complex-indic-machine.rl |   4 +-
+ src/hb-ot-shape-complex-indic.cc        | 216
+ ++++++++++++++++---------------
+ 2 files changed, 116 insertions(+), 104 deletions(-)
+
+commit 914ffaa40fcca020f65bacdd709421e9047afd83
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 11:03:39 2012 -0400
+
+    [Indic] Move more repeated work into shape_plan
+
+ src/hb-ot-shape-complex-indic.cc | 63
+ ++++++++++++++++++++++++++--------------
+ 1 file changed, 42 insertions(+), 21 deletions(-)
+
+commit a8c6da90f4c6e8d27a3a1b758a55476776d9f750
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 10:46:34 2012 -0400
+
+    [OT] Add per-complex-shaper shape_plan data
+
+    Hookup some Indic data to it.  More to come.
+
+ src/hb-ot-shape-complex-arabic.cc  |  2 +
+ src/hb-ot-shape-complex-indic.cc   | 128
+ ++++++++++++++++++++++---------------
+ src/hb-ot-shape-complex-misc.cc    |  4 ++
+ src/hb-ot-shape-complex-private.hh |  16 ++++-
+ src/hb-ot-shape-private.hh        |   1 +
+ src/hb-ot-shape.cc                |  23 +++++--
+ 6 files changed, 113 insertions(+), 61 deletions(-)
+
+commit 8bb5deba9630d35878eb6edb4643ecfabf99f15f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 10:07:58 2012 -0400
+
+    [OT] Pipe shape_plan down to pause_callbacks
+
+ src/hb-ot-map-private.hh                |  8 ++---
+ src/hb-ot-map.cc                        | 11 ++++---
+ src/hb-ot-shape-complex-indic-machine.rl |  4 +--
+ src/hb-ot-shape-complex-indic.cc        | 50
+ +++++++++++++++-----------------
+ src/hb-ot-shape-private.hh              |  6 ++++
+ src/hb-ot-shape.cc                      | 28 ++++++++++--------
+ 6 files changed, 57 insertions(+), 50 deletions(-)
+
+commit 3e38c0f2886c38d2f0a9d80a97a36edf2479d2c7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 09:44:18 2012 -0400
+
+    More massaging
+
+ src/hb-ot-map-private.hh         | 20 ++++++++------------
+ src/hb-ot-map.cc                 | 17 ++++++++---------
+ src/hb-ot-shape-complex-arabic.cc |  8 ++++----
+ src/hb-ot-shape-complex-indic.cc  | 18 +++++++-----------
+ 4 files changed, 27 insertions(+), 36 deletions(-)
+
+commit 16c6a27b4bffc19026944c7bea9cf0a3a8ff1d8f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 09:38:28 2012 -0400
+
+    [OT] Port complex_shaper to planner/plan
+
+ src/hb-ot-shape-complex-arabic.cc  | 17 ++++++++---------
+ src/hb-ot-shape-complex-indic.cc   | 19 ++++++++-----------
+ src/hb-ot-shape-complex-misc.cc    | 20 ++++++++------------
+ src/hb-ot-shape-complex-private.hh | 32 +++++++++++---------------------
+ src/hb-ot-shape-private.hh        | 14 +++++++++++---
+ src/hb-ot-shape.cc                |  9 +++++----
+ 6 files changed, 51 insertions(+), 60 deletions(-)
+
+commit 5393e3a62ba09fd7bcf3767b36225c8f49badb9d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 09:24:35 2012 -0400
+
+    [OT] Minor refactoring
+
+ src/hb-ot-map.cc          |  4 ----
+ src/hb-ot-shape-private.hh | 26 ++++++++++++++++++++++++++
+ src/hb-ot-shape.cc        | 26 ++------------------------
+ src/hb-shape-plan.cc      |  2 ++
+ src/hb-shape.cc           |  2 --
+ 5 files changed, 30 insertions(+), 30 deletions(-)
+
+commit 24eacf17c801c66a2d466e8ae02b73f501a26b25
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 08:42:11 2012 -0400
+
+    [Indic] Move consonant-position-setting into initial_reordering()
+
+ src/hb-ot-shape-complex-indic.cc | 65
+ +++++++++++++++++++++-------------------
+ 1 file changed, 35 insertions(+), 30 deletions(-)
+
+commit afbcc24be01a64bdb5c05c63880269145fa1d3c8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 08:36:40 2012 -0400
+
+    [GSUB] Wire the font, not just the face, down to substitute()
+
+    We need the font for glyph lookup during GSUB pauses in Indic shaper.
+    Could perhaps be avoided, but at this point, we don't mean to support
+    separate substitute()/position() entry points (anymore), so there is
+    no point in not providing the font to GSUB.
+
+ src/hb-ot-layout-gsub-table.hh       | 13 +++++--------
+ src/hb-ot-layout-gsubgpos-private.hh |  7 ++-----
+ src/hb-ot-layout-private.hh         |  6 +++---
+ src/hb-ot-layout.cc                 | 18 +++++++++---------
+ src/hb-ot-map-private.hh            | 15 ++++++---------
+ src/hb-ot-map.cc                    |  8 ++++----
+ src/hb-ot-shape-complex-indic.cc     |  8 ++++----
+ src/hb-ot-shape.cc                  |  6 +++---
+ 8 files changed, 36 insertions(+), 45 deletions(-)
+
+commit b0e6a26a10ccca70ebc88a9e158a89ccfab0add5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 08:11:14 2012 -0400
+
+    [OT] Hide some API
+
+    It was impossible to meaningfully use them from the outside these
+    days.
+
+ src/hb-ot-layout-private.hh | 40 ++++++++++++++++++++++++++++++++--------
+ src/hb-ot-layout.cc        | 20 --------------------
+ src/hb-ot-layout.h         | 34 ----------------------------------
+ src/hb-ot-map.cc           |  8 ++++----
+ 4 files changed, 36 insertions(+), 66 deletions(-)
+
+commit 305246744ed178f116e01498b7f9d1af6950ca30
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 08:08:04 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 8ef3d53255ae9fbb0e46c22909e50009d1e7eeb0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 07:53:18 2012 -0400
+
+    [Indic] More refactoring of consonant position peeking in the font
+
+    To be moved to initial_reordering next...
+
+ src/hb-ot-shape-complex-indic.cc | 59
+ ++++++++++++++++++++++++++++------------
+ 1 file changed, 41 insertions(+), 18 deletions(-)
+
+commit 3eb6f81fd3f1e56679eec10d08f5e2303121753f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 07:37:46 2012 -0400
+
+    [Indic] Refactor
+
+    Move all the logic that needs to eventually move into the indic table
+    into hb-ot-shape-complex-indic-private.hh.
+
+ src/hb-ot-shape-complex-indic-private.hh | 210
+ ++++++++++++++++++++++++++++
+ src/hb-ot-shape-complex-indic.cc        | 227
+ ++-----------------------------
+ 2 files changed, 218 insertions(+), 219 deletions(-)
+
+commit 3614ba242fc7d338761acdda365a134706035b6d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 07:13:55 2012 -0400
+
+    [Indic] Rename
+
+ src/hb-ot-shape-complex-indic.cc | 40
+ +++++++++++++++++++++-------------------
+ 1 file changed, 21 insertions(+), 19 deletions(-)
+
+commit 610e5e8f713bb2a68939b72cb2b801a7aaede4f9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 05:27:46 2012 -0400
+
+    [Indic] Streamline feature would_apply()
+
+    Comes with some 10% speedup for Devanagari even!
+
+ src/hb-ot-map-private.hh        | 85
+ +++++++++++++++++++++++++---------------
+ src/hb-ot-map.cc                | 18 ++++-----
+ src/hb-ot-shape-complex-indic.cc | 85
+ +++++++++++++++++++++++-----------------
+ 3 files changed, 110 insertions(+), 78 deletions(-)
+
+commit 1d002048d5afcd45abbb09fdf0419f13b2e2265c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 05:01:11 2012 -0400
+
+    [Indic] Minor
+
+ src/hb-ot-shape-complex-indic-private.hh | 16 --------
+ src/hb-ot-shape-complex-indic.cc        | 64
+ +++++++++++++++++++++-----------
+ 2 files changed, 43 insertions(+), 37 deletions(-)
+
+commit 6f7611375521c6d285a9aa763f2ea5cb44cd0d39
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 04:00:31 2012 -0400
+
+    [GSUB/GPOS] Check array size before accessing digests
+
+ src/hb-ot-layout-private.hh | 3 +++
+ src/hb-ot-layout.cc        | 32 ++++++++++++++++----------------
+ 2 files changed, 19 insertions(+), 16 deletions(-)
+
+commit 22148b8c4af3ed296d96e969cdd47bac97b32307
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 03:51:51 2012 -0400
+
+    Use Coverage digests in would_apply
+
+ src/hb-ot-layout-gsub-table.hh       | 1 +
+ src/hb-ot-layout-gsubgpos-private.hh | 6 +++++-
+ src/hb-ot-layout.cc                 | 4 ++--
+ 3 files changed, 8 insertions(+), 3 deletions(-)
+
+commit 6c459c8fef85bc44f45d7b58c28a34abfb2c33fc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 2 03:45:53 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-gpos-table.hh       | 2 +-
+ src/hb-ot-layout-gsub-table.hh       | 4 ++--
+ src/hb-ot-layout-gsubgpos-private.hh | 4 ++--
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+commit e2b8d75fa6e847ecf5c040f4e1e16a565c5d8aaf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 1 22:17:48 2012 -0400
+
+    Use wider set digests on 64-bit archs
+
+ src/hb-set-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 0120ce9679aab3ac936aeb18f6709529eef000a4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 1 21:56:35 2012 -0400
+
+    [GSUB/GPOS] Remove unused get_coverage() methods
+
+ src/hb-ot-layout-gpos-table.hh | 11 -----------
+ src/hb-ot-layout-gsub-table.hh | 11 -----------
+ 2 files changed, 22 deletions(-)
+
+commit 1336ecdf8e4e9879b96b26ecfbf5c9ba6c49e2b9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 1 21:46:36 2012 -0400
+
+    [GSUB/GPOS] Use Coverage digests as gatekeeper
+
+    Gives me a good 10% speedup for the Devanagari test case.  Less so
+    for less lookup-intensive tests.
+
+    For the Devanagari test case, the false positive rate of the GSUB
+    digest
+    is 4%.
+
+ src/hb-ot-layout-gpos-table.hh       | 30 +++++++++---------------------
+ src/hb-ot-layout-gsub-table.hh       | 35
+ ++++++++++++-----------------------
+ src/hb-ot-layout-gsubgpos-private.hh |  8 ++++++--
+ src/hb-ot-layout-private.hh         |  4 ++++
+ src/hb-ot-layout.cc                 | 29 +++++++++++++++++++++++++----
+ 5 files changed, 56 insertions(+), 50 deletions(-)
+
+commit a878c58a8fc1500986d713b2bcedfeb90a0087b0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 1 21:18:54 2012 -0400
+
+    [GSUB/GPOS] Add add_coverage()
+
+ src/hb-ot-layout-gpos-table.hh | 18 ++++++++++++++++++
+ src/hb-ot-layout-gsub-table.hh | 18 ++++++++++++++++++
+ 2 files changed, 36 insertions(+)
+
+commit 60a3035ac5ec8227e4cc0e6708732bb139c9e0b8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 1 21:06:27 2012 -0400
+
+    Add hb_set_digest_t
+
+    Implement two set digests, and one that combines the two.
+
+ src/hb-set-private.hh | 95
+ +++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 95 insertions(+)
+
+commit c8accf1dd2d92cc4f714393eb0ea46f69bb182a6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 1 21:05:57 2012 -0400
+
+    [OT] Templatize Coverage::add_coverage()
+
+ src/hb-ot-layout-common-private.hh | 12 ++++++++----
+ 1 file changed, 8 insertions(+), 4 deletions(-)
+
+commit 8fbfda920e0b3bb4ab7afb732826026964b79be9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 1 19:03:46 2012 -0400
+
+    Inline font getters
+
+ src/hb-fallback-shape.cc         |  21 ++--
+ src/hb-font-private.hh                   | 204
+ ++++++++++++++++++++++++++++++++++++++
+ src/hb-font.cc                           | 129 ++++--------------------
+ src/hb-graphite2.cc              |   6 +-
+ src/hb-old.cc                    |  10 +-
+ src/hb-ot-layout-gdef-table.hh    |   2 +-
+ src/hb-ot-layout-gpos-table.hh    |   2 +-
+ src/hb-ot-shape-complex-arabic.cc |   4 +-
+ src/hb-ot-shape-complex-indic.cc  |   6 +-
+ src/hb-ot-shape-normalize.cc     |  12 +--
+ src/hb-ot-shape.cc               |  47 +++++----
+ 11 files changed, 277 insertions(+), 166 deletions(-)
+
+commit 6adf417bc15d4524e280b284e3accd1ae647662e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 1 18:07:42 2012 -0400
+
+    Use a lookup table for modified_combining_class
+
+ src/hb-unicode-private.hh |  10 ++-
+ src/hb-unicode.cc        | 213
+ +++++++++++++++++++++++++++++++---------------
+ src/hb-unicode.h         |   4 +
+ 3 files changed, 157 insertions(+), 70 deletions(-)
+
+commit 208f70f0553d73d2908b21b9552298029482a8b9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 1 17:13:10 2012 -0400
+
+    Inline Unicode callbacks internally
+
+ src/hb-buffer.cc               |   2 +-
+ src/hb-fallback-shape.cc       |   2 +-
+ src/hb-old.cc                  |   2 +-
+ src/hb-ot-shape-complex-misc.cc |   2 +-
+ src/hb-ot-shape-normalize.cc   |  13 +++--
+ src/hb-ot-shape-private.hh     |   6 +--
+ src/hb-ot-shape.cc             |   4 +-
+ src/hb-unicode-private.hh      | 112
+ ++++++++++++++++++++--------------------
+ src/hb-unicode.cc              |   5 +-
+ 9 files changed, 73 insertions(+), 75 deletions(-)
+
+commit 7470315a3e782aa6192bbe64f7a3944266fb1521
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 1 17:01:59 2012 -0400
+
+    Move unicode accessors around
+
+ src/hb-unicode-private.hh | 73
+ ++++++++++++++++++++++++++++++++++++++++++++++-
+ src/hb-unicode.cc        | 65 ++++-------------------------------------
+ 2 files changed, 78 insertions(+), 60 deletions(-)
+
+commit 21fdcee00125b6e1c09f0bed3064d16ccd3a7a5d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 1 16:23:44 2012 -0400
+
+    Add hb_unicode_combining_class_t
+
+ src/hb-common.h          |  38 +-------------
+ src/hb-glib.cc                   |   4 +-
+ src/hb-icu.cc            |   4 +-
+ src/hb-unicode-private.hh |   2 +-
+ src/hb-unicode.cc        |  11 ++--
+ src/hb-unicode.h         | 124
+ +++++++++++++++++++++++++++++++++++++++++++++-
+ 6 files changed, 134 insertions(+), 49 deletions(-)
+
+commit 84186a64004e5dcd2ce98b564d0e0a09aa5d68b2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 1 13:32:39 2012 -0400
+
+    Add commentary on the compatibility decomposition in the normalizer
+
+ src/hb-ot-shape-normalize.cc | 18 +++++++++++++++---
+ 1 file changed, 15 insertions(+), 3 deletions(-)
+
+commit 0834d952017a04c6f4599e574cb75ecf3ca27d3b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 1 00:21:09 2012 -0400
+
+    [hb-old] Adjust mark positioning parameters
+
+    Fallback mark positioning works now...  With hb-ft and hb-view /
+    hb-shape at least.
+
+ src/hb-old.cc                 | 10 +++++-----
+ src/hb-old/harfbuzz-shaper.cpp |  1 +
+ 2 files changed, 6 insertions(+), 5 deletions(-)
+
+commit 4ca743dfb8e09f9fa525061c7f1144d55f72effb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 1 00:03:41 2012 -0400
+
+    [old] Implement fontMetrics
+
+ src/hb-old.cc | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+commit 1e7d860613032e40a3f90e2caa2ee5ac44ab8c8c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 31 23:41:06 2012 -0400
+
+    [GPOS] Adjust mark advance-width zeroing logic
+
+    If there is no GPOS, zero mark advances.
+
+    If there *is* GPOS and the shaper requests so, zero mark advances for
+    attached marks.
+
+    Fixes regression with Tibetan, where the font has GPOS, and marks a
+    glyph as mark where it shouldn't get zero advance.
+
+ src/hb-ot-layout-gpos-table.hh     | 14 ++++++++------
+ src/hb-ot-layout.cc               |  4 ++--
+ src/hb-ot-layout.h                |  3 ++-
+ src/hb-ot-shape-complex-arabic.cc  |  2 +-
+ src/hb-ot-shape-complex-indic.cc   |  2 +-
+ src/hb-ot-shape-complex-misc.cc    |  4 ++--
+ src/hb-ot-shape-complex-private.hh |  2 +-
+ src/hb-ot-shape.cc                |  6 ++----
+ 8 files changed, 19 insertions(+), 18 deletions(-)
+
+commit a8842e4a448efb30f3f2f3c628d6dc4824829726
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 31 23:10:11 2012 -0400
+
+    Remove some TODO items
+
+ TODO           | 27 ---------------------------
+ src/hb-shape.cc |  2 ++
+ 2 files changed, 2 insertions(+), 27 deletions(-)
+
+commit 2bc3b9a616cedbc56ff4a915f9e3439ff3a6bf13
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 31 23:08:25 2012 -0400
+
+    [OT] Zero mark advances if the shaper desires so
+
+    Enabled for all shapers except for Indic.
+
+ src/hb-ot-shape-complex-arabic.cc  |  1 +
+ src/hb-ot-shape-complex-indic.cc   |  1 +
+ src/hb-ot-shape-complex-misc.cc    |  2 ++
+ src/hb-ot-shape-complex-private.hh |  2 ++
+ src/hb-ot-shape.cc                | 15 +++++++++++++++
+ 5 files changed, 21 insertions(+)
+
+commit 5fecd8b0355894ceda14b3d3c654f20c3d5e77f4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 31 22:48:38 2012 -0400
+
+    [OT] Synthesize glyph classes
+
+ TODO              |  2 --
+ src/hb-ot-shape.cc | 20 ++++++++++++++++++--
+ 2 files changed, 18 insertions(+), 4 deletions(-)
+
+commit 03b09214c073ce37eeb8af5218942c85b2d393df
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 31 22:43:58 2012 -0400
+
+    [GSUB] Minor
+
+ src/hb-ot-layout-gsub-table.hh | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit f0fc1df8fc949739b68d55948741016081b69c3a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 31 22:43:32 2012 -0400
+
+    [hb-old] Implement getGlyphMetrics()
+
+    Still working on it.
+
+ src/hb-old.cc | 13 ++++++++++++-
+ 1 file changed, 12 insertions(+), 1 deletion(-)
+
+commit 378d279bbf692195c4654e312dae854ab3be04cf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 31 21:36:16 2012 -0400
+
+    Implement Unicode compatibility decompositions
+
+    Based on patch from Philip Withnall.
+    https://bugs.freedesktop.org/show_bug.cgi?id=41095
+
+ src/hb-glib.cc                      | 30 +++++++++++++++++++++++++
+ src/hb-icu.cc               | 36 +++++++++++++++++++++++++++++-
+ src/hb-ot-shape-normalize.cc | 53
+ +++++++++++++++++++++++++++++---------------
+ src/hb-unicode-private.hh    |  1 +
+ src/hb-unicode.cc           | 27 +++++++++++++++++++++-
+ src/hb-unicode.h            | 37 ++++++++++++++++++++++++++++++-
+ test/api/hb-test.h          |  1 +
+ test/api/test-unicode.c      | 50
+ +++++++++++++++++++++++++++++++++++++++++
+ 8 files changed, 214 insertions(+), 21 deletions(-)
+
+commit 321ec29cc270e7e66a529696b70b2caac553c95f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 31 21:10:16 2012 -0400
+
+    Remove unused function
+
+ src/hb-ot-shape-complex-indic.cc | 7 -------
+ 1 file changed, 7 deletions(-)
+
+commit 69cc492dc120847ed00cae65ec958593ebf550c5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 31 14:51:36 2012 -0400
+
+    [buffer] Minor
+
+ src/hb-buffer-private.hh |  3 ++-
+ src/hb-buffer.cc        | 24 ++++++++++++------------
+ 2 files changed, 14 insertions(+), 13 deletions(-)
+
+commit 693918ef8541014a5ef7dfb91c6ea0ae36d9c368
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 21:08:51 2012 -0400
+
+    [OT] Streamline complex shaper enumeration
+
+    Add a shaper class struct.
+
+ src/hb-ot-shape-complex-arabic.cc    |  37 ++++----
+ src/hb-ot-shape-complex-indic.cc     |  47 ++++++---
+ src/hb-ot-shape-complex-misc.cc      |  67 ++++++-------
+ src/hb-ot-shape-complex-private.hh   | 179
+ ++++++++++-------------------------
+ src/hb-ot-shape-normalize-private.hh |   4 +-
+ src/hb-ot-shape-private.hh          |   2 +-
+ src/hb-ot-shape.cc                  |  16 ++--
+ 7 files changed, 143 insertions(+), 209 deletions(-)
+
+commit c2e42c3db691515f3a458eb4c71fe1e6439d5620
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 19:54:50 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-gpos-table.hh       | 2 +-
+ src/hb-ot-layout-gsub-table.hh       | 4 ++--
+ src/hb-ot-layout-gsubgpos-private.hh | 8 ++++----
+ src/hb-ot-layout-private.hh         | 4 ++--
+ 4 files changed, 9 insertions(+), 9 deletions(-)
+
+commit 03f67bc012f42131b36083a23efc78e1b04b828c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 19:47:53 2012 -0400
+
+    More refactoring glyph class access
+
+ src/hb-ot-layout-gpos-table.hh       |   2 +-
+ src/hb-ot-layout-gsub-table.hh       |   2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 154
+ +++++++++++++++++------------------
+ 3 files changed, 76 insertions(+), 82 deletions(-)
+
+commit 300c7307eb7943ba7416b672345506be1e27c6ba
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 19:37:44 2012 -0400
+
+    [OT] Don't crash if no GDEF available
+
+ src/hb-ot-layout-gsubgpos-private.hh | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+commit 3dcbdc2125c04c173f29f04922fc031929893f4e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 19:31:17 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout.cc | 15 +++++----------
+ 1 file changed, 5 insertions(+), 10 deletions(-)
+
+commit 05bd1b63426e07d1df7a1b40bf845dc94ab995a8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 19:30:01 2012 -0400
+
+    [GSUB/GPOS] Move glyph props matching around
+
+ src/hb-ot-layout-gpos-table.hh       |  11 ++--
+ src/hb-ot-layout-gsub-table.hh       |  18 +++---
+ src/hb-ot-layout-gsubgpos-private.hh |  99
+ +++++++++++++++++++++++++++++----
+ src/hb-ot-layout-private.hh         |  12 ----
+ src/hb-ot-layout.cc                 | 104
+ +++--------------------------------
+ src/hb-ot-layout.h                  |  12 ++--
+ src/hb-ot-shape.cc                  |  10 ++--
+ 7 files changed, 127 insertions(+), 139 deletions(-)
+
+commit 2fca1426ca06cabbe8f027f2dc9dee9c27560c76
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 18:46:41 2012 -0400
+
+    [GSUB] Don't erase glyph classes if GDEF does not have glyph classes
+
+ src/hb-ot-layout-gsubgpos-private.hh | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit fd42257f8c45ff8e036e1c3eb1a788a101be7ead
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 18:40:27 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout.cc | 29 +++++------------------------
+ 1 file changed, 5 insertions(+), 24 deletions(-)
+
+commit 7fbbf86efe675e4c038dfc5985c24bbc544620cd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 18:36:42 2012 -0400
+
+    [GSUB] Minor
+
+ src/hb-ot-layout-gsub-table.hh       | 2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 6 ++++++
+ 2 files changed, 7 insertions(+), 1 deletion(-)
+
+commit 713914d3203109a8e9213f5a1d3b384730703ce9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 17:54:38 2012 -0400
+
+    [Uniscribe] Clean up a bit
+
+ src/hb-uniscribe.cc | 17 +++++------------
+ 1 file changed, 5 insertions(+), 12 deletions(-)
+
+commit 301168dae77a63ee25adfb26ce2b54a708f83791
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 17:48:04 2012 -0400
+
+    [CoreText] Port to shape_plan infrastructure
+
+ src/hb-coretext.cc | 161
+ ++++++++++++++++++++++++++---------------------------
+ 1 file changed, 80 insertions(+), 81 deletions(-)
+
+commit 6cdfd14bb19d60ac3d6b20ff611408432254f273
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 17:22:17 2012 -0400
+
+    Fix build on Mac
+
+ src/hb-ot-layout-gsub-table.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 7e34601dededd521bcef15111e39293df3d0d13d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 14:53:41 2012 -0400
+
+    Unbreak Hangul jamo composition
+
+    When we removed the separate Hangul shaper, the specific normalization
+    preference of Hangul was lost.  Fix that.  Also, the Thai shaper was
+    copied from Hangul, so had the fully-composed normalization behavior,
+    which was unnecessary.  So, fix that too.
+
+ src/hb-ot-shape-complex-arabic.cc  |  2 +-
+ src/hb-ot-shape-complex-indic.cc   |  4 +---
+ src/hb-ot-shape-complex-misc.cc    | 12 +++++++++---
+ src/hb-ot-shape-complex-private.hh |  9 ++++-----
+ src/hb-ot-shape.cc                |  4 +++-
+ 5 files changed, 18 insertions(+), 13 deletions(-)
+
+commit 7afb14407e59dfeaa79c33aca1ffa60e7982e349
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 13:54:46 2012 -0400
+
+    [Indic] Recategorize Telugu length marks
+
+    Fixes 8 more Telugu tests. Failures at 15 (0.00154548%).
+
+ src/hb-unicode.cc |  8 ++++++++
+ src/indic.cc     | 11 ++++++++---
+ 2 files changed, 16 insertions(+), 3 deletions(-)
+
+commit 70b3dc327232b20051b36397aa2b196ab8c62397
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 12:40:18 2012 -0400
+
+    Add Hebrew test
+
+ .../texts/in-tree/shaper-default/script-hebrew/misc/diacritics.txt
+ | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit f2377155e35c15919af4d7db21b6edc6783146b6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 10:50:57 2012 -0400
+
+    [hb-old] Fix misc leaks
+
+    Backport (forward-port?!) from upstream:
+
+    commit 3ab7b37bdebf0f8773493a1fee910b151c4de30f
+    Author: Behdad Esfahbod <behdad@behdad.org>
+    Date:   Mon Jul 30 10:50:22 2012 -0400
+
+       Fix misc leaks
+
+       https://bugs.freedesktop.org/show_bug.cgi?id=31992
+       https://bugs.freedesktop.org/show_bug.cgi?id=31993
+       https://bugs.freedesktop.org/show_bug.cgi?id=31994
+       https://bugs.freedesktop.org/show_bug.cgi?id=31995
+
+ src/hb-old/harfbuzz-arabic.c  | 12 +++++++++---
+ src/hb-old/harfbuzz-gpos.c    |  6 +++---
+ src/hb-old/harfbuzz-gsub.c    |  6 +++---
+ src/hb-old/harfbuzz-tibetan.c |  1 +
+ 4 files changed, 16 insertions(+), 9 deletions(-)
+
+commit 3f4764bb56bb7e42ba8859f1905810bd2f998838
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 10:06:42 2012 -0400
+
+    Don't lock user_data set during destruction if empty
+
+ src/hb-private.hh | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+commit 4ba647eecf0f70917ac4229af1f2dd3c62fcb7d5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 09:53:06 2012 -0400
+
+    Fix leak
+
+ src/hb-ot-shape.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit f860366456d9e59b139a940da6d89c3c4fb9e96e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 02:38:39 2012 -0400
+
+    [OT] Gain back some lost speed
+
+ src/hb-ot-layout-private.hh       | 27 +++++++++++++++-
+ src/hb-ot-layout.cc               | 63
+ ++++++++++++++++++++++++++++++++++----
+ src/hb-ot-map-private.hh          | 26 +++-------------
+ src/hb-ot-map.cc                  | 35 +++++++++++++++------
+ src/hb-ot-shape-complex-indic.cc   |  2 +-
+ src/hb-ot-shape-complex-private.hh |  5 ---
+ 6 files changed, 114 insertions(+), 44 deletions(-)
+
+commit 11f4c87d01924cac43bf40044f67838440e19e42
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 02:36:46 2012 -0400
+
+    [OT] Remove hb_ot_layout_ensure()
+
+    I didn't like it from the beginning.
+
+ src/hb-ot-layout.cc | 9 +++++----
+ src/hb-ot-layout.h  | 5 -----
+ 2 files changed, 5 insertions(+), 9 deletions(-)
+
+commit 578e42182b9b9cf15b4c5426fae36e224160cbd7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 02:35:07 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-private.hh | 2 --
+ src/hb-ot-layout.cc        | 1 -
+ 2 files changed, 3 deletions(-)
+
+commit a973b5ce86051e8ef0d20df362db1a50488842ab
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 01:46:34 2012 -0400
+
+    [GSUB] Further adjustments to mark-attachment vs ligation interaction
+
+    The d1d69ec52e75a78575b620a1c456d528b6078170 change broke Kannada
+    badly,
+    since it was ligating consonants, pushing matra out, and then ligating
+    with the matra.  Adjust for that.  See comments.
+
+ src/hb-ot-layout-gsub-table.hh                                       |
+ 11 ++++++++---
+ .../in-tree/shaper-indic/indic/script-kannada/misc/misc.txt   |  1 +
+ 2 files changed, 9 insertions(+), 3 deletions(-)
+
+commit 0aef425e25e2c58445157057f17ef18f695c5240
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 00:55:15 2012 -0400
+
+    [GSUB] Minor
+
+ src/hb-ot-layout-gpos-table.hh | 15 ++++++---------
+ 1 file changed, 6 insertions(+), 9 deletions(-)
+
+commit d1d69ec52e75a78575b620a1c456d528b6078170
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 00:51:47 2012 -0400
+
+    [GSUB] Don't ligate glyphs attached to different components of
+    ligatures
+
+    This concludes the mark-attachment vs ligating interaction fixes
+    (for now).
+
+ src/hb-ot-layout-gsub-table.hh | 24 ++++++++++++++++++++++++
+ 1 file changed, 24 insertions(+)
+
+commit 4751dec8be05883483fd5f6b474ebd22583ae566
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 00:42:07 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-private.hh | 20 ++++++++++----------
+ 1 file changed, 10 insertions(+), 10 deletions(-)
+
+commit f24bcfbed1f3b4f4f6311246bd870f73ad6ba750
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 00:39:00 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-gsub-table.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit fe20c0f84f5ff518dc471bf22ac5a83ef079eb69
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 30 00:00:59 2012 -0400
+
+    [GSUB] Fix mark component stuff when ligatures form ligatures!
+
+    See comments.
+
+    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=437633
+
+ src/hb-ot-layout-gsub-table.hh       | 117
+ +++++++++++++++++++++++------------
+ src/hb-ot-layout-gsubgpos-private.hh |   8 ---
+ src/hb-ot-layout-private.hh         |   8 +--
+ 3 files changed, 79 insertions(+), 54 deletions(-)
+
+commit 2ec3ba46a3c24469096e901750e38f6ee555479a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 29 22:02:24 2012 -0400
+
+    [GSUB/GPOS] Minor
+
+    Start squeezing more out of lig_id/lig_comp.
+
+ src/hb-ot-layout-gsub-table.hh |  6 +++---
+ src/hb-ot-layout-private.hh   | 35 +++++++++++++++++++++++++++++++----
+ 2 files changed, 34 insertions(+), 7 deletions(-)
+
+commit ef6e9cec3399e4f63f4b662abd77cf6d4683e8a3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 29 21:35:22 2012 -0400
+
+    Fixup bb0e4ba3e9c5a407fc5d73c914e429d24d336380
+
+ src/hb-shape-plan.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit cb3d34063154bf164c61eeba41c6166b0bd304fb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 29 20:37:38 2012 -0400
+
+    [GSUB] Don't set new lig_id on mark ligatures
+
+    If two marks form a ligature, retain their previous lig_id, such that
+    the mark ligature can attach to ligature components...
+
+    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=676343
+
+    In fact, I noticed that we should not let ligatures form between
+    glyphs
+    coming from different components of a previous ligature.  For example,
+    if the sequence is: LAM,SHADDA,LAM,FATHA,HEH, the LAM,LAM,HEH form a
+    ligature, putting SHADDA and FATHA next to eachother.  However,
+    it would
+    be wrong to ligate them.  Uniscribe has this bug also.
+
+ src/hb-ot-layout-gsub-table.hh | 18 ++++++++++++++----
+ 1 file changed, 14 insertions(+), 4 deletions(-)
+
+commit 97a201becf936f62046914b568e5763e27ee936e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 29 20:31:36 2012 -0400
+
+    Add Arabic tests for mark ligature component attachments
+
+ .../script-arabic/misc/diacritics/MANIFEST            |  1 +
+ .../misc/diacritics/ligature-components.txt           | 18
+ ++++++++++++++++++
+ 2 files changed, 19 insertions(+)
+
+commit a15b70a81a609f024083cb04f9819483f4d5cab7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 29 20:09:22 2012 -0400
+
+    [hb-old] Fix cluster formation in RTL
+
+    Unlike Uniscribe, hb-old returns glyphs in logical order, so the logic
+    does not need to duplicated for RTL.
+
+ src/hb-old.cc | 12 +++---------
+ 1 file changed, 3 insertions(+), 9 deletions(-)
+
+commit 8a7e70ef65952fc16b8c1d5f1126c94d9d81e755
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 29 19:56:54 2012 -0400
+
+    [Minor]
+
+ src/test.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit bb0e4ba3e9c5a407fc5d73c914e429d24d336380
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 29 17:34:14 2012 -0400
+
+    Minor
+
+ src/hb-shape-plan.cc        | 2 +-
+ src/test-would-substitute.cc | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit a00ad60bc0fe74bf0e11d73da563239f3392f351
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 28 21:16:08 2012 -0400
+
+    [Uniscribe] Remove hb_uniscribe_font_ensure()
+
+    Wasn't a huge fan of putting the burden on the user.  Just remove
+    it and
+    do what we've got to do transparently.
+
+ src/hb-uniscribe.cc | 6 +++++-
+ src/hb-uniscribe.h  | 4 ----
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+commit 5d874d566fe5d2cc4cfaf02c79b663d8a626ca1e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 28 21:05:25 2012 -0400
+
+    [GPOS] Fix mark-to-mark positioning when one of the marks is
+    a ligature
+
+    This commit: a3313e54008167e415b72c780ca7b9cda958d07e broke
+    MarkMarkPos
+    when one of the marks itself is a ligature.  That regressed 26 Tibetan
+    tests (up from zero!).  Fix that.  Tibetan back to zero.
+
+ src/hb-ot-layout-gpos-table.hh                            | 27
+ ++++++++++++++++------
+ src/hb-ot-layout-private.hh                       |  5 ++--
+ test/shaping/texts/in-tree/shaper-indic/MANIFEST   |  1 +
+ .../indic/script-sinhala/misc/MANIFEST                    |  1 +
+ .../in-tree/shaper-indic/south-asian/MANIFEST     |  1 +
+ .../south-asian/script-tibetan/MANIFEST           |  1 +
+ .../south-asian/script-tibetan/misc/MANIFEST      |  1 +
+ .../south-asian/script-tibetan/misc/misc.txt      |  1 +
+ 8 files changed, 29 insertions(+), 9 deletions(-)
+
+commit 338fe662b50f9309bf0050dd99becb644874195b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 28 18:53:01 2012 -0400
+
+    [GSUB] Minor
+
+ src/hb-ot-layout-gsub-table.hh | 33 ++++++++++++++++-----------------
+ 1 file changed, 16 insertions(+), 17 deletions(-)
+
+commit e6f7479fe34fb4a7cada61d84c2ed70d1fd565c8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 28 18:34:58 2012 -0400
+
+    [GSUB] Simplify would-apply
+
+ src/hb-ot-layout-gsub-table.hh       | 71
+ +++---------------------------------
+ src/hb-ot-layout-gsubgpos-private.hh | 24 +++---------
+ 2 files changed, 11 insertions(+), 84 deletions(-)
+
+commit dadede012e4841f9fcb70d514fdc752f3ea4663d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 28 18:03:20 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-common-private.hh | 7 +++----
+ src/hb-ot-layout-gpos-table.hh     | 2 +-
+ src/hb-ot-layout-gsub-table.hh     | 2 +-
+ 3 files changed, 5 insertions(+), 6 deletions(-)
+
+commit 0b99429ead05ae32b3c210cb499af401b02770a9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 28 17:31:01 2012 -0400
+
+    [GSUB/GPOS] Add get_coverage() and use it to speed up main loop
+
+    And use it to speed up the hotspot by checking coverage directly in
+    the main loop, not 10 functions deep in.
+
+    Gives me a solid 20% boost with Indic test suite.  Less so for less
+    lookup-intensive scenarios.
+
+    Remove the "fast_path" hack from before.
+
+ src/hb-ot-layout-gpos-table.hh       | 179
+ ++++++++++++++++++++++++++++++-----
+ src/hb-ot-layout-gsub-table.hh       | 166
+ ++++++++++++++++++++++++++------
+ src/hb-ot-layout-gsubgpos-private.hh |  26 +++++
+ 3 files changed, 321 insertions(+), 50 deletions(-)
+
+commit 30ec9002d84e8b49290e782e6192069821ffa942
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 28 17:25:20 2012 -0400
+
+    Reject lookups with no subTable
+
+ src/hb-ot-layout-common-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 0981068b75710397f08e0d2d776a0a2ea68d7117
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 28 17:01:59 2012 -0400
+
+    [GSUB/GPOS] Reject Context/ChainContext lookups with zero input
+
+ src/hb-ot-layout-gsubgpos-private.hh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 2f87cebe1062c7007021ebd05c1664e60da80825
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 27 04:02:38 2012 -0400
+
+    Implement shape_plan caching
+
+    Should give us some performance boost.
+
+ TODO                    |   4 ++
+ src/hb-buffer-private.hh |  30 ++++++++++++++
+ src/hb-font-private.hh   |   6 +++
+ src/hb-font.cc                  |  15 ++++++-
+ src/hb-shape-plan.cc    | 100
+ +++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-shape-plan.h     |   7 ++++
+ src/hb-shape.cc         |   2 +-
+ 7 files changed, 162 insertions(+), 2 deletions(-)
+
+commit e9eb9503e97044222f843daacfa47e26e51312b7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 27 03:16:22 2012 -0400
+
+    Add default_shaper_list to shape_plan
+
+ src/hb-shape-plan-private.hh | 1 +
+ src/hb-shape-plan.cc        | 2 ++
+ 2 files changed, 3 insertions(+)
+
+commit 3b7c4e270694ed962e2a2839e44f2a59c26b326c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 27 03:12:23 2012 -0400
+
+    Don't fail choosing shaper on planning failure
+
+    Shapers have a chance to reject a font in face shaper_data creation.
+    No need to allow failing during planning.
+
+ src/hb-shape-plan.cc | 17 ++++++-----------
+ 1 file changed, 6 insertions(+), 11 deletions(-)
+
+commit cfe9882610489e1b917e09a74dfbf6bbba2e4a57
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 27 03:06:30 2012 -0400
+
+    Add hb_ot_layout_ensure() and hb_uniscribe_font_ensure()
+
+ src/hb-ot-layout.cc     |  7 +++++++
+ src/hb-ot-layout.h      |  6 ++++++
+ src/hb-shape-plan.cc    | 22 ++--------------------
+ src/hb-shaper-private.hh | 18 ++++++++++++++++++
+ src/hb-uniscribe.cc     | 11 +++++++++++
+ src/hb-uniscribe.h      |  4 ++++
+ 6 files changed, 48 insertions(+), 20 deletions(-)
+
+commit c5b668fb9239c912d2448280a7176e331ebc9181
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 27 02:49:39 2012 -0400
+
+    Choose one shaper per plan
+
+ src/hb-shape-plan-private.hh |  2 +-
+ src/hb-shape-plan.cc        | 19 +++++++++----------
+ 2 files changed, 10 insertions(+), 11 deletions(-)
+
+commit e82061e8db922f0ddbefd5a184ee2f9f967b9a05
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 27 02:29:32 2012 -0400
+
+    Move ot shaper completely to shape_plan
+
+ src/hb-ot-shape-private.hh |  6 --
+ src/hb-ot-shape.cc        | 181
+ +++++++++++++++++++++------------------------
+ src/hb-uniscribe.cc       |   2 +-
+ 3 files changed, 84 insertions(+), 105 deletions(-)
+
+commit ea278d3895fe0c92801d692cd71d8d9f1de7c048
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 27 02:12:28 2012 -0400
+
+    Partially switch ot shaper to shape_plan
+
+ src/hb-buffer-private.hh      |  1 +
+ src/hb-buffer.cc              |  1 -
+ src/hb-font-private.hh                |  2 --
+ src/hb-font.cc                        | 22 ++++++++++++++--------
+ src/hb-ot-layout-gpos-table.hh |  2 +-
+ src/hb-ot-layout-gsub-table.hh |  4 ++--
+ src/hb-ot-layout-private.hh   |  1 +
+ src/hb-ot-layout.cc           |  9 ++++++---
+ src/hb-ot-shape.cc            |  3 ++-
+ src/hb-shape-plan.cc          | 11 +++++++++++
+ src/hb-shaper-private.hh      |  3 ++-
+ 11 files changed, 40 insertions(+), 19 deletions(-)
+
+commit b6b7ba1313bf686e6ed567183466104c90504a67
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 27 01:26:11 2012 -0400
+
+    Switch old and uniscribe backends to shape_plan
+
+ src/hb-old.cc                |  80 ++------------------------
+ src/hb-shape.cc              |   5 ++
+ src/hb-shaper-impl-private.hh |   3 +-
+ src/hb-shaper-private.hh      |   4 --
+ src/hb-uniscribe.cc          | 130
+ ++++++++++++------------------------------
+ 5 files changed, 48 insertions(+), 174 deletions(-)
+
+commit c32c096a429da3e64896cf42ff5ab8c775d3c2ec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 27 01:13:53 2012 -0400
+
+    Switch to shape_plan
+
+    Not optimized yet. Eats babies.  And no shaper uses the shape_plan.
+
+ src/hb-shape-plan.cc | 37 +++++++++++++++++++++++++++++++++++--
+ src/hb-shape-plan.h  |  8 ++++++++
+ src/hb-shape.cc      | 27 ++++-----------------------
+ 3 files changed, 47 insertions(+), 25 deletions(-)
+
+commit 5b95c148cc485f79fd7018bc4520b4cb5f728a18
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 26 23:46:53 2012 -0400
+
+    Start implementing shape_plan
+
+ src/hb-fallback-shape.cc     |  4 ++-
+ src/hb-font-private.hh       |  4 +++
+ src/hb-old.cc               |  4 ++-
+ src/hb-ot-shape.cc          |  4 ++-
+ src/hb-shape-plan-private.hh |  7 ++++
+ src/hb-shape-plan.cc        | 76
+ ++++++++++++++++++++++++++++++++++++++++++--
+ src/hb-shape.cc             |  4 +++
+ src/hb-shaper-private.hh     |  4 +--
+ src/hb-uniscribe.cc         |  4 ++-
+ 9 files changed, 103 insertions(+), 8 deletions(-)
+
+commit bd26b4d21f59312805d294f46f15182adbcc47da
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 26 22:05:39 2012 -0400
+
+    Minor
+
+ src/Makefile.am             |   1 +
+ src/hb-fallback-shape.cc     |   3 +-
+ src/hb-old.cc               |   3 +-
+ src/hb-ot-shape.cc          |   3 +-
+ src/hb-shape-plan-private.hh |   2 +-
+ src/hb-shape-plan.cc        |   2 +
+ src/hb-shape.cc             |  98 ++++----------------------------------
+ src/hb-shaper-private.hh     |  16 ++++++-
+ src/hb-shaper.cc            | 109
+ +++++++++++++++++++++++++++++++++++++++++++
+ src/hb-uniscribe.cc         |   3 +-
+ 10 files changed, 145 insertions(+), 95 deletions(-)
+
+commit 027857d0412477fb4427dcb8a8c45287c272e143
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 26 17:34:25 2012 -0400
+
+    Start adding a unified shaper access infrastructure
+
+    Add global shape_plan.  Unused so far.
+
+ src/Makefile.am                 |  15 ++--
+ src/hb-coretext-private.hh      |  42 ---------
+ src/hb-coretext.cc              |   6 +-
+ src/hb-fallback-shape-private.hh |  41 ---------
+ src/hb-fallback-shape.cc        |  62 ++++++++++++-
+ src/hb-font-private.hh                  |  12 +++
+ src/hb-font.cc                          |  15 +++-
+ src/hb-graphite2-private.hh     |  42 ---------
+ src/hb-old-private.hh           |  40 ---------
+ src/hb-old.cc                   | 109 ++++++++++++++++++-----
+ src/hb-ot-shape-private.hh      |   8 --
+ src/hb-ot-shape.cc              |  60 ++++++++++++-
+ src/hb-shape-plan-private.hh    |  52 +++++++++++
+ src/hb-shape-plan.cc            |  85 ++++++++++++++++++
+ src/hb-shape-plan.h             |  60 +++++++++++++
+ src/hb-shape.cc                 |  48 ++--------
+ src/hb-shaper-impl-private.hh   |  44 +++++++++
+ src/hb-shaper-list.hh           |  50 +++++++++++
+ src/hb-shaper-private.hh        |  81 +++++++++++++++++
+ src/hb-uniscribe-private.hh     |  42 ---------
+ src/hb-uniscribe.cc             | 186
+ ++++++++++++++++++++++++---------------
+ 21 files changed, 735 insertions(+), 365 deletions(-)
+
+commit fa2dfcd560444d8c54b6349ee106134d3536f79b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 26 16:06:16 2012 -0400
+
+    Fix visibility warnings with MinGW32
+
+ src/hb-old/harfbuzz-global.h | 17 +++++++++++------
+ src/hb-old/harfbuzz-impl.h   |  6 +++++-
+ 2 files changed, 16 insertions(+), 7 deletions(-)
+
+commit ac2085d4b391b0a72473ecac3dd6c22efe66833f
+Author: Jonathan Kew <jfkthame@gmail.com>
+Date:  Thu Jul 26 15:58:45 2012 -0400
+
+    [CoreText] Ensure cluster indices in output buffer are non-decreasing.
+
+    Does not provide Uniscribe-compatible results, but should at least
+    avoid
+    breaking hb-view due to out-of-order cluster values.
+
+    For RTL runs, ensure cluster values are non-increasing (instead of
+    non-decreasing).
+
+ src/hb-coretext.cc | 37 +++++++++++++++++++++++++++++++++++++
+ 1 file changed, 37 insertions(+)
+
+commit 441d3bb7de311d54b9f0a5210344f9a96e97e153
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 26 12:01:12 2012 -0400
+
+    Minor
+
+ src/hb-coretext.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 2e7f223054d310695bdb3498b2b2b5d17b6cce78
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 25 19:30:15 2012 -0400
+
+    [hb-old] Fix Arabic cursive positioning
+
+    Backporting from upstream:
+
+    commit b847f24ce855d24f6822bcd9c0006905e81b94d8
+    Author: Behdad Esfahbod <behdad@behdad.org>
+    Date:   Wed Jul 25 19:29:16 2012 -0400
+
+       [arabic] Fix Arabic cursive positioning
+
+       This was clearly broken in testing.  Who knows...  Fixes for me.
+       Test with a Nastaleeq font, or with Arabic Typesetting.
+
+       Backporting from Chromium.
+
+ src/hb-old/harfbuzz-shaper.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 9550a8c4e8b4e28be60d38c27d59253846ff9569
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 25 19:22:57 2012 -0400
+
+    [hb-old] Fixup not-enough-space handling
+
+ src/hb-old.cc | 15 ++++++++-------
+ 1 file changed, 8 insertions(+), 7 deletions(-)
+
+commit 91e721ea8693205f4f738bca97a5055ee75cf463
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 25 19:20:34 2012 -0400
+
+    [hb-old] Fix clusters
+
+    Unlike its "documentation", hb-old's log_clusters are, well, indeed
+    logical, not visual.  Fixup.  Adapted / copied from hb-uniscribe.
+
+ src/hb-old.cc               | 51
+ ++++++++++++++++++++++++++++++++++----------
+ src/hb-old/harfbuzz-shaper.h |  1 +
+ src/hb-uniscribe.cc         |  5 +++--
+ 3 files changed, 44 insertions(+), 13 deletions(-)
+
+commit a3313e54008167e415b72c780ca7b9cda958d07e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 25 18:37:51 2012 -0400
+
+    [GPOS] Fix MarkMarkPos applied to results of MultipleSubst
+
+    This was broken as a result of
+    7b84c536c10ab90ed96a033d88e9ad232d46c5b8.
+    As Khaled reported, MarkMark positioning was broken with glyphs
+    resulting from a MultipleSubst.  Fixed.  Test with the ALLAH character
+    in Amiri.
+
+ src/hb-ot-layout-gpos-table.hh | 10 +++++-----
+ src/hb-ot-layout-private.hh   | 23 +++++++++++++++++++++--
+ 2 files changed, 26 insertions(+), 7 deletions(-)
+
+commit 35bdab3cf1f0836807160e3ce93766c321b32e8c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 25 11:59:52 2012 -0400
+
+    Minor
+
+ src/hb-unicode-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 8fe4c7405b922cf0f936a46a9baedf4885b05254
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 21:05:12 2012 -0400
+
+    [hb-old] Add HarfBuzz.old shaper
+
+    Choose using shaper name "old".
+
+ configure.ac          |   8 +
+ src/Makefile.am       |  14 +-
+ src/hb-old-private.hh |  40 +++
+ src/hb-old.cc         | 369 ++++++++++++++++++++++++
+ src/hb-old/.gitignore |   7 -
+ src/hb-old/Makefile.am |   2 +
+ src/hb-old/Makefile.in | 762
+ -------------------------------------------------
+ src/hb-shape.cc       |   8 +-
+ 8 files changed, 436 insertions(+), 774 deletions(-)
+
+commit 5e1987005eb1b9af7a4d3d9f90c5768d8cc80015
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 19:53:55 2012 -0400
+
+    [hb-old] Define Unicode funcs in terms of new HarfBuzz
+
+ src/hb-old/Makefile.am                |   4 +
+ src/hb-old/Makefile.in                | 182
+ ++++++++++++++++++++++++++++++++++++-----
+ src/hb-old/harfbuzz-external.h | 100 +++++++++++++---------
+ 3 files changed, 224 insertions(+), 62 deletions(-)
+
+commit 4a31166b2853c1ec052844140e114158f47c2355
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 19:49:48 2012 -0400
+
+    [hb-old] Shovel out the line-breaking / word-segmentation stuff
+
+ src/hb-old/Makefile.am                      |  10 +-
+ src/hb-old/Makefile.in                      |  13 +-
+ src/hb-old/harfbuzz-external.h       |  66 ------
+ src/hb-old/harfbuzz-indic.cpp       |  26 ---
+ src/hb-old/harfbuzz-khmer.c         |  25 ---
+ src/hb-old/harfbuzz-myanmar.c       |  28 ---
+ src/hb-old/harfbuzz-shaper-private.h |  12 --
+ src/hb-old/harfbuzz-shaper.cpp       | 403
+ +++--------------------------------
+ src/hb-old/harfbuzz-shaper.h        |  31 ---
+ src/hb-old/harfbuzz-thai.c          | 111 ----------
+ src/hb-old/harfbuzz-tibetan.c       |  26 ---
+ src/hb-old/harfbuzz.c               |  32 ---
+ 12 files changed, 33 insertions(+), 750 deletions(-)
+
+commit 0bcbe88cf313117f739b98a11dbe698b75784e9d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 19:38:24 2012 -0400
+
+    [hb-old] Add visibility attributes
+
+ src/hb-old/harfbuzz-global.h | 10 ++++++----
+ src/hb-old/harfbuzz-impl.h   |  2 +-
+ 2 files changed, 7 insertions(+), 5 deletions(-)
+
+commit 6a9d43c3178c920672a84382ca3797e3c478b2b0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 19:21:22 2012 -0400
+
+    [hb-old] Remove unused header file
+
+ src/hb-old/harfbuzz-shape.h | 199
+ --------------------------------------------
+ 1 file changed, 199 deletions(-)
+
+commit fb47209c5b3aa992faf18d1a3f78b9d7682cf62f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 19:20:19 2012 -0400
+
+    [hb-old] Rename hb_buffer_* to HB_Buffer_*
+
+ src/hb-old/harfbuzz-buffer.c  | 22 +++++++++++-----------
+ src/hb-old/harfbuzz-buffer.h  |  8 ++++----
+ src/hb-old/harfbuzz-shaper.cpp |  8 ++++----
+ 3 files changed, 19 insertions(+), 19 deletions(-)
+
+commit 1512a7357513b72e2a07dda706a176bb23d694e9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 19:16:56 2012 -0400
+
+    [hb-old] Start adding HarfBuzz-old as a new backend
+
+ configure.ac                        |    1 +
+ src/Makefile.am                     |    5 +
+ src/hb-old/.gitignore               |    7 +
+ src/hb-old/COPYING                  |   24 +
+ src/hb-old/Makefile.am                      |   56 +
+ src/hb-old/Makefile.in                      |  631 ++++
+ src/hb-old/README                   |    7 +
+ src/hb-old/harfbuzz-arabic.c        | 1144 +++++++
+ src/hb-old/harfbuzz-buffer-private.h |  107 +
+ src/hb-old/harfbuzz-buffer.c        |  383 +++
+ src/hb-old/harfbuzz-buffer.h        |  102 +
+ src/hb-old/harfbuzz-external.h       |  151 +
+ src/hb-old/harfbuzz-gdef-private.h   |  135 +
+ src/hb-old/harfbuzz-gdef.c          | 1163 +++++++
+ src/hb-old/harfbuzz-gdef.h          |  140 +
+ src/hb-old/harfbuzz-global.h        |  118 +
+ src/hb-old/harfbuzz-gpos-private.h   |  729 ++++
+ src/hb-old/harfbuzz-gpos.c          | 6094
+ ++++++++++++++++++++++++++++++++++
+ src/hb-old/harfbuzz-gpos.h          |  155 +
+ src/hb-old/harfbuzz-greek.c         |  447 +++
+ src/hb-old/harfbuzz-gsub-private.h   |  483 +++
+ src/hb-old/harfbuzz-gsub.c          | 4329 ++++++++++++++++++++++++
+ src/hb-old/harfbuzz-gsub.h          |  148 +
+ src/hb-old/harfbuzz-hangul.c        |  268 ++
+ src/hb-old/harfbuzz-hebrew.c        |  187 ++
+ src/hb-old/harfbuzz-impl.c          |   84 +
+ src/hb-old/harfbuzz-impl.h          |  131 +
+ src/hb-old/harfbuzz-indic.cpp       | 1894 +++++++++++
+ src/hb-old/harfbuzz-khmer.c         |  667 ++++
+ src/hb-old/harfbuzz-myanmar.c       |  539 +++
+ src/hb-old/harfbuzz-open-private.h   |  102 +
+ src/hb-old/harfbuzz-open.c          | 1433 ++++++++
+ src/hb-old/harfbuzz-open.h          |  288 ++
+ src/hb-old/harfbuzz-shape.h         |  199 ++
+ src/hb-old/harfbuzz-shaper-all.cpp   |   37 +
+ src/hb-old/harfbuzz-shaper-private.h |  171 +
+ src/hb-old/harfbuzz-shaper.cpp       | 1338 ++++++++
+ src/hb-old/harfbuzz-shaper.h        |  294 ++
+ src/hb-old/harfbuzz-stream-private.h |   81 +
+ src/hb-old/harfbuzz-stream.c        |  114 +
+ src/hb-old/harfbuzz-stream.h        |   51 +
+ src/hb-old/harfbuzz-thai.c          |  111 +
+ src/hb-old/harfbuzz-tibetan.c       |  274 ++
+ src/hb-old/harfbuzz.c               |   32 +
+ src/hb-old/harfbuzz.h               |   38 +
+ 45 files changed, 24892 insertions(+)
+
+commit 478fd0529b868b22905a9dedf331ac7cc9721723
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 17:09:01 2012 -0400
+
+    Minor
+
+ src/hb-unicode-private.hh | 27 ++++++++++++++-------------
+ 1 file changed, 14 insertions(+), 13 deletions(-)
+
+commit 8979a7f6f2b44ade4c0198a31ae08561b35ce009
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 17:03:55 2012 -0400
+
+    [Mongolian] Remove Mongolian Vowel Separator at the end of shaping
+
+    Results match Uniscribe now.
+
+ src/hb-unicode-private.hh | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit aa6d849838d5231465ae1a25a4dd5ea1e9380ff9
+Author: Jonathan Kew <jfkthame@gmail.com>
+Date:  Tue Jul 24 15:52:32 2012 -0400
+
+    [CoreText] Add basic Core Text backend for comparison with our
+    native shaping
+
+    Does not attempt to handle clusters in a Uniscribe- or
+    HarfBuzz-compatible way;
+    just returns the original string indexes that CT maintains. These
+    may even be
+    out-of-order in the case of reordrant glyphs.
+
+ configure.ac              |  12 ++
+ src/Makefile.am           |   7 +
+ src/hb-coretext-private.hh |  42 ++++++
+ src/hb-coretext.cc        | 323
+ +++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-coretext.h         |  43 ++++++
+ src/hb-shape.cc           |   6 +
+ 6 files changed, 433 insertions(+)
+
+commit ec8d2494694275dfbbac2dd0d33ca2894b0463d6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 15:40:37 2012 -0400
+
+    Make data members of various OpenType structs protected instead
+    of private
+
+    Should fix warnings generated when building with
+    -Wunused-private-field.
+    Based on patch from Jonathan Kew.
+
+ src/hb-open-file-private.hh         |  8 +++---
+ src/hb-ot-head-table.hh             |  2 +-
+ src/hb-ot-hhea-table.hh             |  2 +-
+ src/hb-ot-hmtx-table.hh             |  2 +-
+ src/hb-ot-layout-common-private.hh   | 14 ++++++-----
+ src/hb-ot-layout-gdef-table.hh       | 20 +++++++--------
+ src/hb-ot-layout-gpos-table.hh       | 48
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-gsub-table.hh       | 30 +++++++++++-----------
+ src/hb-ot-layout-gsubgpos-private.hh | 32 ++++++++++++------------
+ src/hb-ot-maxp-table.hh             |  2 +-
+ src/hb-ot-name-table.hh             |  2 +-
+ 11 files changed, 82 insertions(+), 80 deletions(-)
+
+commit 97aa0b738a33b73a3f9763dd2950f2dd39f596ed
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 15:02:34 2012 -0400
+
+    Minor const correctness shuffling
+
+ src/hb-shape.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 6411e74caf23af7b0545f1fe54d19a1c8da895e8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 13:48:49 2012 -0400
+
+    [Indic] Reposition Gurmukhi top matras to after post
+
+    The font is forming a post-base consonant in some samples, and
+    Uniscribe
+    positions top matra on the post-base.  Do the same.
+
+    Gurmukhi failures down from 59 to 41 (0.0674242%).
+
+ src/hb-ot-shape-complex-indic.cc                                       |
+ 2 +-
+ .../texts/in-tree/shaper-indic/indic/script-gurmukhi/misc/misc.txt     |
+ 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+commit c3f769ba09df319fa69d04f68c57444f95eceee6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 13:26:32 2012 -0400
+
+    [Indic] Ignore Uniscribe output containing two zero-width space glyphs
+
+    Uniscribe is buggy and sometimes /eats/ a mark next to a non-joiner.
+    Most of Malayalam failures where actually hitting this bug.
+
+    Ignore test output with two zero-width space glyphs.  This is a hack
+    until we build up the test suite infrastructure better.
+
+    Bengali went down by 9, Devanagari by 2, Kannada by 130, Malayalm down
+    from 1197 to 307, Sinhala down by 16, Telugu down by 26.  New stats:
+
+    BENGALI: 353996 out of 354285 tests passed. 289 failed (0.0815727%)
+    DEVANAGARI: 693573 out of 693628 tests passed. 55 failed (0.00792932%)
+    GUJARATI: 366489 out of 366506 tests passed. 17 failed (0.0046384%)
+    GURMUKHI: 60750 out of 60809 tests passed. 59 failed (0.0970251%)
+    KANNADA: 951086 out of 951913 tests passed. 827 failed (0.0868777%)
+    KHMER: 299094 out of 299124 tests passed. 30 failed (0.0100293%)
+    MALAYALAM: 1048109 out of 1048416 tests passed. 307 failed
+    (0.0292823%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271715 out of 271847 tests passed. 132 failed (0.0485567%)
+    TAMIL: 1091837 out of 1091837 tests passed. 0 failed (0%)
+    TELUGU: 970550 out of 970573 tests passed. 23 failed (0.00236973%)
+
+ test/shaping/hb_test_tools.py                                          |
+ 1 +
+ .../texts/in-tree/shaper-indic/indic/script-malayalam/misc/misc.txt    |
+ 2 ++
+ 2 files changed, 3 insertions(+)
+
+commit 65c43accdc4d2082282d5cedba8514b8df0c18a2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 03:36:47 2012 -0400
+
+    [Indic] Better position left-matra in Malayalam
+
+    Just put it before base, which is what's expected.
+
+    Malayalam failures down from 1559 to 1197 (0.114172%).
+
+    BENGALI: 353988 out of 354285 tests passed. 297 failed (0.0838308%)
+    DEVANAGARI: 693571 out of 693628 tests passed. 57 failed (0.00821766%)
+    GUJARATI: 366489 out of 366506 tests passed. 17 failed (0.0046384%)
+    GURMUKHI: 60750 out of 60809 tests passed. 59 failed (0.0970251%)
+    KANNADA: 950956 out of 951913 tests passed. 957 failed (0.100534%)
+    KHMER: 299094 out of 299124 tests passed. 30 failed (0.0100293%)
+    MALAYALAM: 1047219 out of 1048416 tests passed. 1197 failed
+    (0.114172%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271699 out of 271847 tests passed. 148 failed (0.0544424%)
+    TAMIL: 1091837 out of 1091837 tests passed. 0 failed (0%)
+    TELUGU: 970524 out of 970573 tests passed. 49 failed (0.00504856%)
+
+ src/hb-ot-shape-complex-indic.cc                  | 41
+ +++++++++++++++-------
+ .../indic/script-malayalam/misc/misc.txt          |  1 +
+ 2 files changed, 29 insertions(+), 13 deletions(-)
+
+commit 88f413b56f2858d149e2fc067685aeecaea779ca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 03:04:36 2012 -0400
+
+    [Indic] Implement Reph+Ya-Phalaa interaction
+
+    The sequence Ra,H,Ya in Bengali is ambigious and Unicode encoded
+    that to
+    get Ya-Phalaa, one would place ZWJ before Halant.  Ie. a ZWJ,H
+    sequence
+    requests subjoining, while a H,ZWJ requests Half form.  Implement
+    that.
+
+    Bengali failures go down from 377 to 297 (0.0838308%).
+    Gujarati is down by 4 to 17 (0.0046384%).
+    Kannada is down by 226 to 957 (0.100534%).
+
+    Current status:
+
+    BENGALI: 353988 out of 354285 tests passed. 297 failed (0.0838308%)
+    DEVANAGARI: 693571 out of 693628 tests passed. 57 failed (0.00821766%)
+    GUJARATI: 366489 out of 366506 tests passed. 17 failed (0.0046384%)
+    GURMUKHI: 60750 out of 60809 tests passed. 59 failed (0.0970251%)
+    KANNADA: 950956 out of 951913 tests passed. 957 failed (0.100534%)
+    KHMER: 299094 out of 299124 tests passed. 30 failed (0.0100293%)
+    MALAYALAM: 1046857 out of 1048416 tests passed. 1559 failed
+    (0.148701%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271699 out of 271847 tests passed. 148 failed (0.0544424%)
+    TAMIL: 1091837 out of 1091837 tests passed. 0 failed (0%)
+    TELUGU: 970524 out of 970573 tests passed. 49 failed (0.00504856%)
+
+ src/hb-ot-shape-complex-indic.cc                              |
+ 10 ++++++++--
+ .../in-tree/shaper-indic/indic/script-bengali/misc/reph.txt   |  4 ++++
+ 2 files changed, 12 insertions(+), 2 deletions(-)
+
+commit dff0ece11d61978c04e839501f179a5c3077f340
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 02:30:38 2012 -0400
+
+    [Indic] Limit matras to 4 per syllable
+
+    Also limit joiners.
+
+    This limits our syllable length to a constant, and is
+    closer to what Uniscribe does anyway.
+
+    Two Devanagari tests regressed, but who cares about tests with 20
+    joiners in a row?! Devanagari at 57 (0.00821766%) now.
+
+ src/hb-ot-shape-complex-indic-machine.rl | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 330b329c8905a37ca88c556dea82c70d74c77458
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 02:25:26 2012 -0400
+
+    [Indic] Unmark U+17D1 KHMER SIGN VIRIAM to NOT be a Virama
+
+    Fixes another 1 Khmer failure.  Down to 30 (0.0100293%) now.
+
+ src/hb-ot-shape-complex-indic.cc                                       |
+ 2 ++
+ .../in-tree/shaper-indic/south-east-asian/script-khmer/misc/misc.txt   |
+ 1 +
+ 2 files changed, 3 insertions(+)
+
+commit 6824a7194e01b77eddb95bd95a9b32e219140912
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 02:22:18 2012 -0400
+
+    [Indic] Recategorize Khmer various signs as top matras
+
+    Khmer failures down from 39 to 31 (0.0103636%).
+
+ src/hb-ot-shape-complex-indic.cc | 23 ++++++++++-------------
+ 1 file changed, 10 insertions(+), 13 deletions(-)
+
+commit d90b8e841e0068a601c96ab184d18b0f48eec9d1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 02:10:20 2012 -0400
+
+    [Indic] Reposition Khmer prebase-reordering Ra around split matras
+
+    In Khmer coeng model, a V,Ra can go *after* matras.  If it goes
+    after a
+    split matra, it should be reordered to *before* the left part of
+    such matra.
+
+    Khmer failures down from 136 to 39 (0.0130381%).
+
+ src/hb-ot-shape-complex-indic.cc                           | 13
+ +++++++++++++
+ .../south-east-asian/script-khmer/misc/misc.txt            |  4 ++++
+ 2 files changed, 17 insertions(+)
+
+commit 0afb84c12567ac35adac657bf8be29999b8c5a50
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 01:44:47 2012 -0400
+
+    [Indic] Fix minor bug in pre-base Ra positioning
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 7573799126e812a047daa5f64121ec959866b3c8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 01:32:07 2012 -0400
+
+    [Indic] Position Khmer U+17CE
+
+    Fixes another 6 Khmer failures.  Now at 136 (0.0454661%).
+
+ src/hb-ot-shape-complex-indic.cc                                   |
+ 6 ++++++
+ .../shaper-indic/south-east-asian/script-khmer/misc/misc.txt       | 1 +
+ 2 files changed, 7 insertions(+)
+
+commit 8d00e8d0e7d10f823e6975fecaffb9d557b1a99a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 01:04:18 2012 -0400
+
+    [Indic] Don't reposition Khmer Bindu
+
+    Khmer Bindu doesn't like to move to syllable end.  Leave it where it
+    was.
+
+    Brings down Khmer failures from 510 to 142 (0.047572%).
+
+ src/hb-ot-shape-complex-indic.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 2278eefcdb3dd0d492b9d07176fbecc1f0516bb7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 00:26:43 2012 -0400
+
+    [Indic] In Sinhala, form forced Reph even if no other consonant found
+
+    Fixes another 10 Sinhala failures. Down to 148 (0.0544424%).
+
+ src/hb-ot-shape-complex-indic.cc                              |
+ 10 +++++-----
+ .../in-tree/shaper-indic/indic/script-sinhala/misc/misc.txt   |  1 +
+ 2 files changed, 6 insertions(+), 5 deletions(-)
+
+commit 71fd5e80ad06c8e85a1112cc89e129d6cd03f82c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 00:21:16 2012 -0400
+
+    [Indic] Further adjust base algorithm for Sinhala
+
+    Apparently if there is C,V,ZWJ,C, the first C will be base, but if
+    it's C,ZWJ,V,C, the second one will be.
+
+    Note that Uniscribe implements this differently, by breaking
+    syllable in
+    the case of C,ZWJ,V,C and putting the first consonant in one syllable
+    and the rest in the next syllable.
+
+    Sinhala failures down from 208 to 158 (0.0581209%).  No changes to
+    Khmer.
+
+ src/hb-ot-shape-complex-indic.cc                             |
+ 11 +++++++----
+ .../in-tree/shaper-indic/indic/script-sinhala/misc/misc.txt   |  3 +++
+ 2 files changed, 10 insertions(+), 4 deletions(-)
+
+commit 73d71cc527d28fd5519c5d965c272ea1fb149a0e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 24 00:09:12 2012 -0400
+
+    [Indic] End Vowel-based syllable at ZWJ
+
+    One Devanagari test regressed, plus 10 Malayalam (at 1545 now).
+
+    Fixed 120 Sinhala failures.  Now at 208 (0.0765136%).
+
+ src/hb-ot-shape-complex-indic-machine.rl                               |
+ 2 +-
+ .../texts/in-tree/shaper-indic/indic/script-sinhala/misc/misc.txt      |
+ 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+commit 34c215036f5fcdc7599b1ab0591b56dbb3811902
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 23 23:51:29 2012 -0400
+
+    [Indic] Improve Sinhala base algorithm and reph positioning
+
+    Sinhala does not have half forms.  And most (all?) consonants can be
+    base, except when preceded by ZWJ, which would request a subjoined
+    form.
+    Hence switch the base algorithm to categorize with Khmer, start search
+    at start, and stop at a ZWJ.
+
+    Also, mark all pos=base consonants after base to be subjoined.  Mark
+    base itself to have pos=base.
+
+    Finally, adjust Sinhala's reph position to after-main.
+
+    Brings down Sinhala failures from 455 to 328 (0.120656%).
+
+ src/hb-ot-shape-complex-indic.cc                      | 18
+ +++++++++++++++++-
+ .../shaper-indic/indic/script-sinhala/misc/misc.txt   |  1 +
+ 2 files changed, 18 insertions(+), 1 deletion(-)
+
+commit 2ec934c6c25423e7af20d909a9c698a149808ea9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 23 23:49:04 2012 -0400
+
+    [Indic] Change "unknown" position to end of syllable
+
+ src/hb-ot-shape-complex-indic-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b70021f7c81a0ed08475b14b07291f662cd9f905
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 23 20:18:17 2012 -0400
+
+    When removing zero-width marks, don't remove ligatures
+
+    If a mark ligated, it probably should NOT be removed.
+
+ src/hb-ot-shape.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 49c5ec51444f27f33e1eb6aa1959c61b08fa89c0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 23 20:14:13 2012 -0400
+
+    Minor refactoring
+
+ src/hb-ot-layout-gsubgpos-private.hh | 32
+ --------------------------------
+ src/hb-ot-layout-private.hh         | 35
+ +++++++++++++++++++++++++++++++++++
+ src/hb-ot-shape-complex-indic.cc     |  2 +-
+ 3 files changed, 36 insertions(+), 33 deletions(-)
+
+commit c3e6fdc3791168cf2b4c9412e751f187d58faa42
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 23 20:11:42 2012 -0400
+
+    [Indic] Improve check on ligatures
+
+    Only skip actual ligatures, not marks in-between ligature components.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 5 +++++
+ src/hb-ot-shape-complex-indic.cc     | 2 +-
+ 2 files changed, 6 insertions(+), 1 deletion(-)
+
+commit 771a8f50289e8fa458cfc3cd84f73a380ce98077
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 23 20:07:50 2012 -0400
+
+    [Indic] exclude ligatures when matching on Indic category
+
+    If, say, a H,ZWJ,C ligature was formed, we don't want the code
+    to detec
+    that as a Halant.  So, ignore ligatures when matching category in
+    final_reordering.
+
+    Sinhala failures down from 514 to 455 (0.167374%).
+
+ src/hb-ot-shape-complex-indic.cc                  | 41
+ ++++++++++++----------
+ .../indic/script-sinhala/misc/misc.txt                    |  1 +
+ 2 files changed, 23 insertions(+), 19 deletions(-)
+
+commit d1af9e82e5309158ed334ab8e21f3a3b64b9540f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 23 19:55:35 2012 -0400
+
+    [GSUB/GPOS] Const correctness
+
+ src/hb-ot-layout-gsubgpos-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit baacd090df97610e3f6d1b2a110dc67b6c6f9f5c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 23 19:51:48 2012 -0400
+
+    [Indic] Minor refactoring
+
+ src/hb-ot-shape-complex-indic.cc | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+commit c7c4de2fb9bba216e37875d79815eef55c0acc01
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 23 18:25:02 2012 -0400
+
+    [Indic] Remove syllable length check before sorting
+
+    We now limit syllable lengths in the machine.  No need to match here.
+
+ src/hb-ot-shape-complex-indic.cc | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 9fa052733eb93a3ce1205f63ff8f74cb295cbe99
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 23 18:19:17 2012 -0400
+
+    [Indic] Limit syllables to at most five consonants
+
+    Seems to be about what Uniscribe does.  Not exactly.  But close
+    enough.
+    More consonants will start a new cluster.
+
+    A few scripts went way down in failures.  In particular:
+
+      - Devanagari failures went down from 490 to 56.
+      - Telugu went down from 113 to 49.
+
+    Other scripts went down slightly or didn't change. New numbers:
+
+    BENGALI: 353908 out of 354285 tests passed. 377 failed (0.106412%)
+    DEVANAGARI: 693572 out of 693628 tests passed. 56 failed (0.00807349%)
+    GUJARATI: 366485 out of 366506 tests passed. 21 failed (0.00572978%)
+    GURMUKHI: 60750 out of 60809 tests passed. 59 failed (0.0970251%)
+    KANNADA: 950730 out of 951913 tests passed. 1183 failed (0.124276%)
+    KHMER: 298613 out of 299124 tests passed. 511 failed (0.170832%)
+    MALAYALAM: 1046881 out of 1048416 tests passed. 1535 failed
+    (0.146411%)
+    ORIYA: 42320 out of 42329 tests passed. 9 failed (0.021262%)
+    SINHALA: 271333 out of 271847 tests passed. 514 failed (0.189077%)
+    TAMIL: 1091837 out of 1091837 tests passed. 0 failed (0%)
+    TELUGU: 970524 out of 970573 tests passed. 49 failed (0.00504856%)
+
+    Some of the remaining Telugu and Devanagari issues seem to be
+    Uniscribe
+    eating Anusvara when placed before a non-joiner.  Ouch!
+
+ src/hb-ot-shape-complex-indic-machine.rl | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 093cd583263a5d427e3377b31585043fb55d2557
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 23 14:04:42 2012 -0400
+
+    [Thai] Fix SARA AM handling
+
+    Oops, thinko.
+
+ src/hb-ot-shape-complex-misc.cc | 6 +++---
+ src/hb-private.hh              | 4 ++--
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+commit 42848453bf260b456b46a07f066e31b8c3aac2f1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 23 13:52:07 2012 -0400
+
+    [Thai] Reorder U+0E3A THAI VOWEL SIGN PHINTHU
+
+    Uniscribe reorders U+0E3A to be after U+0E38 and U+0E39.  We do
+    that by
+    modifying the ccc for U+0E3A.
+
+    Fixes the two remaining Thai failures (see previous commit).
+
+ src/hb-ot-shape-complex-misc.cc                         |  7 +++++++
+ src/hb-unicode.cc                                       |  6 ++++++
+ .../texts/in-tree/shaper-thai/script-thai/misc/MANIFEST  |  1 +
+ .../in-tree/shaper-thai/script-thai/misc/phinthu.txt    | 16
+ ++++++++++++++++
+ 4 files changed, 30 insertions(+)
+
+commit 4a7f4f3e56f8f7640ae7337aa1b3324f31e0d4ab
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 23 13:15:33 2012 -0400
+
+    [Thai] Adjust SARA AM reordering to match Uniscribe
+
+    Adjust the list of marks before SARA AM that get the reordering
+    treatment. Also adjust cluster formation to match Uniscribe.
+
+    With Wikipedia test data, now I see:
+
+      - For Thai, with the Angsana New font from Win7, I see 54
+      failures out
+       of over 4M tests  (0.00129107%).  Of the 54, two are legitimate
+       reordering issues (fix coming soon), and the other 52 are simply
+       Uniscribe using a zero-width space char instead of an unknown
+       character for missing glyphs.  No idea why.  The missing-glyph
+       sequences include one that is a Thai character followed by
+       an Arabic
+       Sokun.  Someone confused it with Nikhahit I assume!
+
+      - For Lao, with the Dokchampa font from Win7, 33 tests fail out of
+       54k (0.0615167%).  All seem to be insignificant mark positioning
+       with two marks on a base.  Have to investigate.
+
+ src/hb-ot-shape-complex-misc.cc                   | 42
+ +++++++++++++---------
+ src/hb-private.hh                                 |  6 ++++
+ test/shaping/texts/in-tree/shaper-thai/MANIFEST    |  1 +
+ .../texts/in-tree/shaper-thai/script-lao/MANIFEST  |  1 +
+ .../in-tree/shaper-thai/script-lao/misc/MANIFEST   |  1 +
+ .../shaper-thai/script-lao/misc/sara-am.txt       | 20 +++++++++++
+ .../shaper-thai/script-thai/misc/sara-am.txt      | 18 +++++++++-
+ 7 files changed, 72 insertions(+), 17 deletions(-)
+
+commit 2cc933aff97916e5d0fe42883f40f0879f848e25
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 23 08:22:55 2012 -0400
+
+    [Indic] Fix cluster formation with left-matras and conjunct forms
+
+    Test case was: <U+0D15,U+0D4D,U+0D15,U+0D4A>.
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit e6b01a878cd2e63cb675e7e0c6ac4d83a8c10f37
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 23 00:11:26 2012 -0400
+
+    [Indic] Further streamline cluster formation
+
+    This should address all possible cluster misformations that I had in
+    mind.
+
+ src/hb-ot-shape-complex-indic.cc | 21 ++++++++++-----------
+ 1 file changed, 10 insertions(+), 11 deletions(-)
+
+commit 7b2a7dadd6c616bbfe1d8358700cab9cee88e584
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 22 23:58:55 2012 -0400
+
+    [Indic] Merge clusters before sorting
+
+    This should fix any instabilities in cluster formation that we were
+    speculating may happen with surrounding syllables. Or most of it
+    perhaps.
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit abb3239ef92cc5dccb4638806d7ae9868b9ac9b3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 22 23:55:19 2012 -0400
+
+    [Indic] Update clusters for left-matra even if matra didn't move
+
+    Fixes crashes reported with left matra under
+    non-uniscribe-bug-compatibilty mode.
+
+ src/hb-ot-shape-complex-indic.cc | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+commit 60554f14d8dca208721f0da8b69d84b92819c54f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 22 23:23:56 2012 -0400
+
+    [Indic] Merge in Malayalam tests
+
+    From:
+    http://silpa.org.in/pub/tests/hb/ml/ml-harfbuzz-testdata.txt
+
+ .../indic/script-malayalam/misc/misc.txt          | 94
+ +++++++++++-----------
+ 1 file changed, 46 insertions(+), 48 deletions(-)
+
+commit 5c7081770c7a611bbe79b451b7b86dec4fa6395d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 22 23:20:27 2012 -0400
+
+    [Indic] Add extensive Sinhala tests
+
+    Generated by:
+    http://git.savannah.gnu.org/cgit/sinhala.git/plain/utils/gen-unicode-sinhala.py
+
+ .../indic/script-sinhala/misc/extensive.txt       | 4390
+ ++++++++++++++++++++
+ 1 file changed, 4390 insertions(+)
+
+commit 2efe4707b1b449962f6e161716477d9775456c46
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 22 23:17:59 2012 -0400
+
+    [Indic] Add Sinhala tests
+
+    Merge tests from:
+    http://git.savannah.gnu.org/cgit/sinhala.git/plain/patches/icu-sinhala-rendering.txt
+
+ .../indic/script-sinhala/misc/misc.txt                    | 26
+ ++++++++++++++++++++--
+ 1 file changed, 24 insertions(+), 2 deletions(-)
+
+commit 3d4c111b7a13700b2f7a0b087eb3992283295f21
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 19:34:39 2012 -0400
+
+    Add a test case
+
+ .../texts/in-tree/shaper-indic/indic/script-bengali/misc/misc.txt
+ | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 92a1ad7bef9efb456ab87bd63818cfbed7da3f6f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 18:38:27 2012 -0400
+
+    [Indic] Stop searching for base if a post form is found before
+    below form
+
+    Improves Bengali and Gurmukhi.  Malayalam regressed a bit. We will
+    deal
+    with that later.
+
+ src/hb-ot-shape-complex-indic.cc | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit 4c450c703f8e4618c587bcd7ef46dcc1f2c7947b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 18:13:04 2012 -0400
+
+    [Indic] Recompose Bengali Ya,Nukta
+
+    This is a bunch of hacks for now.
+
+    Improves Bengali a bit.
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++--
+ src/hb-unicode.cc               | 8 ++++++++
+ 2 files changed, 10 insertions(+), 2 deletions(-)
+
+commit e9c0f152a38cb2e76650a3e43f7fdcda266af696
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 17:05:46 2012 -0400
+
+    [Uniscribe] Fix script fallback
+
+    Gurmukhi failures half now.  Others changed slightly.
+
+ src/hb-uniscribe.cc | 34 ++++++++++++++--------------------
+ 1 file changed, 14 insertions(+), 20 deletions(-)
+
+commit 5791f329159c9863317e2b507514c29321be31a7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 16:26:55 2012 -0400
+
+    [Indic] Allow a ZWNJ after SM's
+
+    Malayalam failures go way down.  Other scripts benefitted slightly
+    too.
+    Sinhala had one or two test regressions, but...
+
+ src/hb-ot-shape-complex-indic-machine.rl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 34ae336f3fae93ef9372881d545c817bce383041
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 16:17:28 2012 -0400
+
+    [Indic] Improve Reph AfterMain positioning
+
+    Fixes 20 out of 48 failing Oriya tests.  Failure rate down to
+    0.066% now.
+
+ src/hb-ot-shape-complex-indic.cc | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit bdd080431a40bc941ece3230f338b94a46bd12a2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 16:03:09 2012 -0400
+
+    [Indic] Reposition Oriya Candrabindu
+
+    Oriya failures down from 0.65% to 0.20%.
+
+ src/hb-ot-shape-complex-indic.cc                                       |
+ 1 +
+ .../shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/MANIFEST |
+ 1 +
+ .../texts/in-tree/shaper-indic/indic/script-oriya/misc/bindu.txt       |
+ 2 ++
+ 3 files changed, 4 insertions(+)
+
+commit 5f0eaaad129ff04d56b8756bebf19fbc242718c9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 15:47:24 2012 -0400
+
+    [Indic] Fix base search in final_reordering
+
+    Fixes most Malayalam failures.  Down from 1.6% to 0.38% now.  Fixes a
+    few more in other scripts too.
+
+ src/hb-ot-shape-complex-indic.cc | 12 ++++++++----
+ 1 file changed, 8 insertions(+), 4 deletions(-)
+
+commit 81202bd860e4034c18d9f80c5a4f33d9f48463a3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 15:10:02 2012 -0400
+
+    [Indic] Don't attach SM/VD to other characters
+
+ src/hb-ot-shape-complex-indic-private.hh |  3 +++
+ src/hb-ot-shape-complex-indic.cc        | 38
+ ++++++++++++++++++--------------
+ 2 files changed, 24 insertions(+), 17 deletions(-)
+
+commit efb4ad735691837a52447bedc1a66a87d0d9af51
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 14:27:38 2012 -0400
+
+    Fix compiler warnings
+
+    If x is not constant, we cannot ASSERT_STATIC on it.
+
+ src/hb-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit f31d97e44eeb6fb141f3de928e27e033fc7b1f47
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 14:13:35 2012 -0400
+
+    [Indic] Form Telugu Reph out of Ra,Virama,ZWJ
+
+    Apparently this was approved in Feb 2012.  No font yet.
+
+ src/hb-ot-shape-complex-indic-private.hh | 2 +-
+ src/hb-ot-shape-complex-indic.cc        | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+commit 2e193b240ec85cab0d4e2f8a375c5a7f0ef99985
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 14:02:35 2012 -0400
+
+    [Indic] Don't split U+0AC9
+
+    Althought IndicMatraCategory.txt classifies it as Top_And_Right matra,
+    it does not have Unicode decomposition, and Uniscribe does not do
+    anything special about it either.
+
+    Gujarati failures down from 0.672% to 0.0130966%.
+
+ src/hb-unicode.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 30c3d5e9fc61b49c2c6ad4e744300edd6f3e0261
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 13:56:32 2012 -0400
+
+    [Indic] Simplify Uniscribe cluster emulation
+
+    Now that we break syllables on Halant,ZWNJ, this code can be
+    simplified.
+
+ src/hb-ot-shape-complex-indic.cc | 11 ++---------
+ 1 file changed, 2 insertions(+), 9 deletions(-)
+
+commit decf6ffca475fe01ff3151b7641f629f031137d2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 13:51:31 2012 -0400
+
+    [Indic] Minor!
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 9e4f94a72cea6d65a6a7ba5a47db92e00dbfbb91
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 13:48:03 2012 -0400
+
+    [Indic] Break syllables at Halant,ZWNJ
+
+    That's really what Uniscribe does, and explains a lot of pecularities
+    of
+    Halant,ZWNJ before the base.
+
+    Sent Telugu from 1% failures to 0.03%.  Improved Kannada and Malayalam
+    slightly.  Fixed half of Bengali, and did NOT break anything!
+
+ src/hb-ot-shape-complex-indic-machine.rl | 5 +++--
+ src/hb-ot-shape-complex-indic.cc        | 5 ++---
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+commit 2c372b80f6befad69e216e3f218b38640b8cc044
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 13:37:48 2012 -0400
+
+    [Indic] Better check for applying 'init'
+
+    Specifically, don't apply 'init' if previous char is a joiner.
+
+    Fixes some more of Bengali.
+
+ src/hb-ot-shape-complex-indic.cc | 9 +--------
+ src/hb-private.hh               | 3 ++-
+ 2 files changed, 3 insertions(+), 9 deletions(-)
+
+commit 34a7440b7c6c6e53394ddbdbedaad57b23f85105
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 12:32:59 2012 -0400
+
+    [GPOS] Don't zero mark advances
+
+    Fixes more of Telugu, Kannada, and Oriya.
+
+    May break things (outside Indic...), but we cannot think of any
+    font relying
+    on this immediately.
+
+ src/hb-ot-layout-gpos-table.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 8ed248de77e5d2ed978e55c0ce1a11727bc9e34c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 11:42:24 2012 -0400
+
+    [Indic] Minor
+
+ src/hb-ot-shape-complex-indic.cc | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit d0e68dbd0b9fc9a42c4280d01c8ffd9c5015d550
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 11:25:41 2012 -0400
+
+    [Indic] Implement reph positioning step 5
+
+    Not tuned, just copied from step 2.  Fixes another 0.5% of Kannada
+    failures.  1% to go.
+
+ src/hb-ot-shape-complex-indic.cc | 12 +++++++++++-
+ 1 file changed, 11 insertions(+), 1 deletion(-)
+
+commit a9e45c32e4a0d6da33c52f8427aa694e57f52eb9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 11:04:15 2012 -0400
+
+    [Indic] Don't let ZWNJ at the end of syllable affect base search
+
+    Fixes a few Devanagari, half of remaining Kannada failures,
+    quarter for
+    Telugu, and others slightly improved or unchanged.
+
+ src/hb-ot-shape-complex-indic.cc | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+commit 20b68e699f73e6ce046c0ec143d40b3d6d48e06b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 10:47:46 2012 -0400
+
+    [Indic] Apply 'cjct' globally
+
+    Fixes 5 Devanagari failures, and no regressions.
+
+ src/hb-ot-shape-complex-indic.cc | 15 +++++++++------
+ 1 file changed, 9 insertions(+), 6 deletions(-)
+
+commit 51e764de441072e7c9f67de23e8ed717b9b8957d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 10:30:24 2012 -0400
+
+    [Indic] Unbreak old scriptures
+
+    Brings down failures with Lohit-Telugu from 57% to 1.40%.
+
+ src/hb-ot-shape-complex-indic.cc | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit 900cf3d449bf36d4f8b1474590cae925fef48fc8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 20 10:18:23 2012 -0400
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 87cd63266e73af316b250573ef57388a0bcc9133
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 21:17:48 2012 -0400
+
+    [Indic] Recategorize some Kannada right matras
+
+    Kannada failures down from 3.5% to 2.93%.
+
+ src/hb-ot-shape-complex-indic.cc                                  | 2 +-
+ .../texts/in-tree/shaper-indic/indic/script-kannada/misc/MANIFEST  | 1 +
+ .../shaper-indic/indic/script-kannada/misc/right-matras.txt       |
+ 7 +++++++
+ 3 files changed, 9 insertions(+), 1 deletion(-)
+
+commit 3604d64ced909ade91998d294a7b4b2ee14d47aa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 21:13:04 2012 -0400
+
+    [Indic] Recategorize GURMUKHI ADDAK
+
+    It's not in IndicSyllabicCategory.txt.  Fixes most of Gurmukhi
+    failures.
+    Failures down from 7.7% to 0.222%!
+
+ src/hb-ot-shape-complex-indic.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 89328581236a53ec16508b95db54c7e5315b178f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 21:02:38 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-gsubgpos-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 47ef931f13778b894090139a64238a5ab9ac1154
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 20:52:44 2012 -0400
+
+    [buffer] Make sure out_info = info during GPOS
+
+ src/hb-buffer.cc | 9 +++++++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
+
+commit ae63cf206291befe3920adfe015e6cd0961580e5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 20:45:41 2012 -0400
+
+    Print line number during return when tracing
+
+ src/hb-private.hh | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 5249f3aee108b0f41770d137e63a625f594418e7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 20:30:22 2012 -0400
+
+    [Indic] Unbreak Khmer
+
+    For Khmer, all consonants are subjoining.  No need to look in
+    the font.
+    We were looking in the wrong order anyway.
+
+ src/hb-ot-shape-complex-indic.cc | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit e0475345d5d7db8dbc8b554beedfa2435c5d7fd1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 20:24:14 2012 -0400
+
+    [Indic] Apply 'akhn' globally
+
+    Fixes 1.5% more failures for Telugu, 2% for Kannada.
+    Breaks one test in Devanagari.
+
+ src/hb-ot-shape-complex-indic.cc | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit c87bcddb10752b407c0471ee5ac4de6f1b00b711
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 20:03:25 2012 -0400
+
+    [Indic] Add failing test for Kannada
+
+ .../texts/in-tree/shaper-indic/indic/script-kannada/misc/misc.txt
+ | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit fa247ebe524f92fa95d344ba912f704262879c13
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 19:52:19 2012 -0400
+
+    [Indic] Better position U+0CD5
+
+    Fixes another 5% of Kannada failures.
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit f055442716ec7543ed156d4789955b19c11a5255
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 16:20:21 2012 -0400
+
+    [Indic] Lookup consonant position in the font
+
+    Fixes most failures of Oriya, and improves others a bit.
+
+ src/hb-ot-map-private.hh                |  13 ++--
+ src/hb-ot-shape-complex-indic-private.hh | 105
+ -------------------------------
+ src/hb-ot-shape-complex-indic.cc        |  63 +++++++++++++------
+ 3 files changed, 54 insertions(+), 127 deletions(-)
+
+commit 74d1d88781e91866a52e27f391e34df03b313442
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 16:14:23 2012 -0400
+
+    [GSUB] Fix would_apply() for LigatureSubst
+
+ src/hb-ot-layout-gsub-table.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 787f7d1e9ba9ad038f24e5a1063d12c7d169ad37
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 15:29:13 2012 -0400
+
+    [TODO] Minor
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit be73a5f9368136ecbdb211b96516ad0c554c8201
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 14:59:15 2012 -0400
+
+    Add src/test-would-substitute tool
+
+ src/Makefile.am             |   6 +-
+ src/test-would-substitute.cc |  94 ++++++++++++++++++++++++++++++
+ src/test.cc                 | 132
+ +++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 231 insertions(+), 1 deletion(-)
+
+commit e72b360ac6381b549249b8836fa3e70b909d3437
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 14:35:23 2012 -0400
+
+    Refactor / finish would_apply() operation
+
+    Untested.
+
+ src/hb-ot-layout-gpos-table.hh       |   6 +-
+ src/hb-ot-layout-gsub-table.hh       | 126 +++++++++----------
+ src/hb-ot-layout-gsubgpos-private.hh | 233
+ ++++++++++++++++++++++++++++++++++-
+ src/hb-ot-layout.cc                 |  11 ++
+ src/hb-ot-layout.h                  |   7 ++
+ 5 files changed, 308 insertions(+), 75 deletions(-)
+
+commit 8c973ebf0f59abb5ee920edd5d64e23d8e47ad75
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 13:25:08 2012 -0400
+
+    [Indic] Implement per-script matra positioning
+
+    Following what the spec says.
+
+    Brings down Telugu failures from 40% to 3.75%, and Kannada failures
+    from
+    44% to 10%.  Does NOT affect other scripts' test results.
+
+ src/hb-ot-shape-complex-indic-private.hh |  2 +-
+ src/hb-ot-shape-complex-indic.cc        | 40
+ +++++++++++++++++++++++++++++---
+ src/hb-unicode.cc                       |  2 +-
+ 3 files changed, 39 insertions(+), 5 deletions(-)
+
+commit 8bb32458f95f13f66688e0811cc91f1bfffb867d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 12:59:06 2012 -0400
+
+    [Indic] More refactoring
+
+ src/hb-ot-shape-complex-indic-private.hh |  9 ++---
+ src/hb-ot-shape-complex-indic.cc        | 65
+ ++++++++++++++++++++++++--------
+ 2 files changed, 54 insertions(+), 20 deletions(-)
+
+commit 9ccc6382ba43760167c134c18c1c4ada4b8c3f22
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 12:32:16 2012 -0400
+
+    [Indic] Minor refactoring
+
+ src/hb-ot-shape-complex-indic.cc | 127
+ ++++++++++++++++++++++-----------------
+ 1 file changed, 71 insertions(+), 56 deletions(-)
+
+commit f83aaa3133de5d807be267a100d6a200e8db9017
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 12:23:23 2012 -0400
+
+    [Indic] Minor
+
+ src/hb-ot-shape-complex-indic-private.hh | 42
+ ++++++++++++++++++++------------
+ 1 file changed, 26 insertions(+), 16 deletions(-)
+
+commit be8b9f5f715f6fb36b98bd33c3303f79cc068f8a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 12:11:12 2012 -0400
+
+    [Indic] Start refactoring different matra positions per script
+
+ src/hb-ot-shape-complex-indic-private.hh | 36
+ +++++++++++++++++++-------------
+ src/hb-ot-shape-complex-indic.cc        |  4 ++--
+ 2 files changed, 24 insertions(+), 16 deletions(-)
+
+commit deeb540a74f8d394db273145b17bf385d14d01bb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 11:30:48 2012 -0400
+
+    [test] Ignore tests with DOTTED CIRCLE in the output
+
+ test/shaping/hb_test_tools.py | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit b01d9b3d90e892341ee4463f2eda4600850b97d8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 19 11:25:49 2012 -0400
+
+    [Indic] Disallow decomposition of a couple characters
+
+    This is a hack for now.  Will be fixed when we do
+    complex-shaper-driven
+    normalization properly.
+
+    The results with or without decomposition are the same, but Uniscribe
+    does not normalize, so this matches better.
+
+ src/hb-unicode.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 422ecd2d3c198a36d07d409341cb82ea57c7ad6b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 23:25:58 2012 -0400
+
+    [Indic] Accept a forced Rakar sequence at the end of syllable
+
+    In Sinhala, Rakar is formed by Al-Lakuna,ZWJ,Ra.  If you put that
+    at the
+    end of a Consonant,Matra syllable, you get a dotted-circle from
+    Uniscribe. Apparently adding a ZWJ before the Al-Lakuna "fixes" that.
+    And people have been encoding that sequence...  So, allow a forced
+    "ZWJ,Virama,ZWJ,Ra" sequence at the of syllables.
+
+    Fixes some 100 or more of Sinhala failures.  Now at 622 only (0.23%).
+
+ src/hb-ot-shape-complex-indic-machine.rl                              |
+ 3 ++-
+ .../texts/in-tree/shaper-indic/indic/script-sinhala/misc/misc.txt     |
+ 2 ++
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+commit 6fc1732003d71cf90d37247482772c3da884687f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 17:49:19 2012 -0400
+
+    [Indic] Allow joiners on both sides of Halant at the same time
+
+    The sequence <ZWJ,Al-Lakuna,ZWJ> is used in Sinhala to explicitly ask
+    for Rakar. Fixes two-thousand Sinhala tests.  Not many left.
+
+ src/hb-ot-shape-complex-indic-machine.rl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 10cdc94eee2225f14c198c015256a5a0063eecad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 17:42:34 2012 -0400
+
+    [Indic] In final reordering, find base, even if it disappeared
+
+    POS_BASE can disappear if base ligated backward.  Define base as last
+    with position not after base.
+
+    Fixes a few hundred of Sinhala failures with Iskoola Pota.
+
+ src/hb-ot-shape-complex-indic.cc                                  |
+ 7 ++-----
+ .../texts/in-tree/shaper-indic/indic/script-sinhala/misc/misc.txt  | 1 +
+ 2 files changed, 3 insertions(+), 5 deletions(-)
+
+commit 9c4d24a3a677a58ec59c7fb0f8b70b8aad30a032
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 17:29:10 2012 -0400
+
+    [Indic] Minor
+
+ src/hb-ot-shape-complex-indic.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 3285e107c9a83aeb552e67f9460680ff6d167d88
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 17:22:14 2012 -0400
+
+    [Indic] Implement Sinhala "Al Lakuna" Reph behavior
+
+    In Sinhala, Reph is formed only explicitly, by the presence of a ZWJ.
+
+ src/hb-ot-shape-complex-indic-private.hh                          | 2 ++
+ src/hb-ot-shape-complex-indic.cc                                  |
+ 7 ++++++-
+ .../texts/in-tree/shaper-indic/indic/script-sinhala/misc/MANIFEST  | 1 +
+ .../texts/in-tree/shaper-indic/indic/script-sinhala/misc/reph.txt  |
+ 3 +++
+ 4 files changed, 12 insertions(+), 1 deletion(-)
+
+commit 91cade755534c42bb826a6aefcbca8a543d94387
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 16:50:41 2012 -0400
+
+    [Indic/Unicode] Decompose Sinhala split matras the way Uniscribe likes
+
+    Makes no visual difference.
+
+    Fixes most of the failures.  Down from 15% to 1.3%!
+
+ src/hb-unicode.cc | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit d8942dcbb4e3249a2d78a6455c119294ed4390bc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 16:34:10 2012 -0400
+
+    Apply Tibetan (global) features.
+
+    Fixes all Tibetan failures.  All 180k of them!
+
+    Merges back Hangul into the default shaper.
+
+ src/hb-ot-shape-complex-misc.cc    | 82
+ +++++++++++++++++---------------------
+ src/hb-ot-shape-complex-private.hh |  7 ----
+ 2 files changed, 37 insertions(+), 52 deletions(-)
+
+commit 552d19b7a11f7dff888587fce4d56d9f8e47e819
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 16:00:49 2012 -0400
+
+    [Indic] Treat Register Shifters like Nukta
+
+    Really this time.
+
+    Fixes another 18 Khmer tests.
+
+ src/hb-ot-shape-complex-indic-machine.rl                               |
+ 2 +-
+ src/hb-ot-shape-complex-indic.cc                                       |
+ 2 --
+ .../in-tree/shaper-indic/south-east-asian/script-khmer/misc/misc.txt   |
+ 1 +
+ 3 files changed, 2 insertions(+), 3 deletions(-)
+
+commit e8cd81f76d159f3ecf808952dab24bc07782497a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 16:00:20 2012 -0400
+
+    [Indic] Minor
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 69f26bf39c824d6bf5b1c0d410380cc5462ad5ca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 15:45:43 2012 -0400
+
+    [Indic] Fix Matra reordering when base is at end of syllable
+
+    For example: U+915,U+200c,U+93f
+
+    Fixes last Tamil failure!
+
+ src/hb-ot-shape-complex-indic.cc                                       |
+ 2 +-
+ .../texts/in-tree/shaper-indic/indic/script-devanagari/misc/misc.txt   |
+ 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+commit d16ccc4ae7aa8be460881042413fa2637929fede
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 15:43:55 2012 -0400
+
+    Leave one extra item at the end of buffer allocation
+
+    Just in case, for the times we do out-of-bounds access.
+
+    jk
+
+ src/hb-buffer-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 075d671f1093d2e3c58f7f45568696030f1b3efd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 15:41:53 2012 -0400
+
+    [Indic] Fix out-of-bounds array access
+
+ src/hb-ot-shape-complex-indic.cc | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit dcb527242b1eca4db1e190a7802f9cd132aaf46e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 15:28:25 2012 -0400
+
+    [Indic] Allow joiners before matras
+
+    Fixes 1 more Devanagari test!
+
+ src/hb-ot-shape-complex-indic-machine.rl | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 391cc0331749e263bdfe83a8f5f6d76f2360ee7a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 15:10:05 2012 -0400
+
+    [Indic] Allow halant group in Vowel and placeholder syllables
+
+    Fixes 2 out of 560 Devanagari failures.  AND:
+    Fixes 1 out of 2 Tamil failures.
+
+ src/hb-ot-shape-complex-indic-machine.rl                          |
+ 7 ++++---
+ .../in-tree/shaper-indic/indic/script-devanagari/misc/misc.txt     | 1 +
+ 2 files changed, 5 insertions(+), 3 deletions(-)
+
+commit ca4e3d3eab7b738c2b8e2a81696a28bca1b81495
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 15:05:40 2012 -0400
+
+    [Indic] Streamline halant/joiner in grammar
+
+ src/hb-ot-shape-complex-indic-machine.rl | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 418d00dffddd95a1f27e9be15752d494c627d45e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 14:57:28 2012 -0400
+
+    [Indic] Minor
+
+ src/hb-ot-shape-complex-indic-machine.rl                              |
+ 3 ++-
+ .../texts/in-tree/shaper-indic/indic/script-devanagari/misc/misc.txt  |
+ 3 +++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+commit 4c3691d2a32ca7e54a54f7c08098fd96fa7af39e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 14:23:55 2012 -0400
+
+    [Indic] Hopefully minor!
+
+    Refactoring Indic machin.  No semantic change.
+
+ src/hb-ot-shape-complex-indic-machine.rl | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+commit e092c556fb1cf38be3cea1f4b75a0d879372dfa2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 14:09:25 2012 -0400
+
+    [Indic] Minor
+
+ src/hb-ot-shape-complex-indic-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 14dbdd9e39d3a869fd1521000c889c347433d22b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 18 13:13:03 2012 -0400
+
+    [Indic] Unbreak Tamil
+
+    Tamil has only about 150 failures now!
+
+ src/hb-ot-shape-complex-indic.cc | 18 +++++++++++++++++-
+ 1 file changed, 17 insertions(+), 1 deletion(-)
+
+commit db8981f1e0e8625714568c6d0f11f0b317b11d0a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 17 18:17:30 2012 -0400
+
+    [Indic] Position Khmer Robat
+
+    It's a visual Repha.
+
+    Still not positioning logical Repha as occurs in Malayalam.
+
+    Another 200 Khmer failures fixed.  547 to go.  That's better than
+    Devanagari!
+
+ src/hb-ot-shape-complex-indic-machine.rl | 36
+ +++++++++++++++++---------------
+ src/hb-ot-shape-complex-indic-private.hh |  7 ++++---
+ src/hb-ot-shape-complex-indic.cc        | 13 ++++++++++++
+ 3 files changed, 36 insertions(+), 20 deletions(-)
+
+commit 25bc489498ef7d0beb8fe9ab663e3f0b2f52c9c2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 17 17:53:03 2012 -0400
+
+    [Indic] Better categorize Register Shifters and Khmer Various signs
+
+    Down another 500 or so Khmer failures!
+
+ src/hb-ot-shape-complex-indic-machine.rl                  | 14
+ +++++++-------
+ src/hb-ot-shape-complex-indic-private.hh                  |  2 +-
+ src/hb-ot-shape-complex-indic.cc                          |  8 ++++----
+ .../south-east-asian/script-khmer/misc/MANIFEST           |  2 ++
+ .../script-khmer/misc/other-marks-invalid.txt             |  4 ++++
+ .../south-east-asian/script-khmer/misc/other-marks.txt     |  6 ++++++
+ 6 files changed, 24 insertions(+), 12 deletions(-)
+
+commit 39b17837b4064d59c18cebb49c1c0b5b8cc0c117
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 17 17:09:29 2012 -0400
+
+    Add hb_buffer_normalize_glyphs() and hb-shape --normalize-glyphs
+
+    This reorders glyphs within the cluster to a nominal order.
+    This should
+    have no visible effect on the output, but helps with testing, for
+    getting the same hb-shape output for visually-equal glyphs for each
+    cluster.
+
+ src/hb-buffer.cc  | 76
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-buffer.h   | 13 ++++++++++
+ src/hb-private.hh | 29 ++++++++++++++++-----
+ util/options.cc   |  1 +
+ util/options.hh   |  7 ++++-
+ 5 files changed, 118 insertions(+), 8 deletions(-)
+
+commit 25e302da9a712e6f1d63b0d243a8df0d326ddba3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 17 14:25:14 2012 -0400
+
+    [Indic] Minor
+
+ src/hb-ot-shape-complex-indic.cc | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit 5d32690a3428fa86eb26fe5fcec943a10aa95881
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 17 14:23:28 2012 -0400
+
+    [Indic] For scripts without Half forms, always choose first consonant
+    as base
+
+    In such scripts (ie. Khmer), a ZWJ/ZWNJ shouldn't stop the search for
+    base.  So, instead just choose the first consonant as base directly.
+
+    Test sequence:
+    U+1798,200c,U+17C9,U+17D2,U+179B,U+17C1,U+17C7
+
+ src/hb-ot-shape-complex-indic.cc | 59
+ ++++++++++++++++++++++++----------------
+ 1 file changed, 35 insertions(+), 24 deletions(-)
+
+commit 34b57149065d96f7528aaccaa7654e956ce27e93
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 17 14:09:32 2012 -0400
+
+    [Indic] Treat Khmer Register Shifters more like Nuktas
+
+    Except that there may be a ZWNJ before a Register Shifter.
+
+ src/hb-ot-shape-complex-indic-machine.rl                               |
+ 2 +-
+ .../in-tree/shaper-indic/south-east-asian/script-khmer/misc/misc.txt   |
+ 2 ++
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+commit 11e2a601b19861b05dbb2051d2d078c3cfd75b29
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 17 14:02:28 2012 -0400
+
+    [Indic] Minor
+
+ src/hb-ot-shape-complex-indic-machine.rl | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 0201e0a4649ad5b607e50bcb9605e7a5b7143812
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 17 13:55:10 2012 -0400
+
+    [Indic] Apply 'cfar' for Khmer
+
+    Mark stuff after a pre-base reordering Ro 'cfar'.  Used in Khmer.
+    This allows distinguishing the following cases with MS Khmer fonts:
+
+      U+1784,U+17D2,U+179A,U+17D2,U+1782
+      U+1784,U+17D2,U+1782,U+17D2,U+179A
+
+ src/hb-ot-shape-complex-indic.cc                        | 16
+ ++++++++++++++--
+ .../south-east-asian/script-khmer/misc/misc.txt         |  2 ++
+ 2 files changed, 16 insertions(+), 2 deletions(-)
+
+commit 55f70ebfb95083f515d9b0044a2a65ab11484bb5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 17 12:50:13 2012 -0400
+
+    [Indic] Position final subjoined consonants (and vowels) after matras
+
+    In Khmer, a final subjoined consonant or independent vowel can occur
+    after matras.  This final subjoined thing should NOT be reordered to
+    before the matra even though it's subjoined.
+
+    Fixes another 1k of the Khmer failures.  Not much left really.
+
+ src/hb-ot-shape-complex-indic-private.hh                   |  1 +
+ src/hb-ot-shape-complex-indic.cc                           | 13
+ +++++++++++++
+ .../south-east-asian/script-khmer/misc/misc.txt            |  2 ++
+ 3 files changed, 16 insertions(+)
+
+commit c50ed71e9a3df1844f564de66d54b46a696c1356
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 17 11:54:28 2012 -0400
+
+    [Indic] Recategorize Khmer coeng sign as a separate category OT_Coeng
+
+    Amend the syllable structure to allow a final subscripted consonant
+    (Coeng+C) and a final subscripted independent vowel (Coeng+V).
+    Fixes another 2k of Khmer failures.
+
+ src/hb-ot-shape-complex-indic-machine.rl                          |
+ 7 ++++---
+ src/hb-ot-shape-complex-indic.cc                                  |
+ 6 +++++-
+ .../shaper-indic/south-east-asian/script-khmer/misc/misc.txt      | 1 +
+ 3 files changed, 10 insertions(+), 4 deletions(-)
+
+commit deb521dee4fdca8c2124cfb39a205e6269d4a70d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 17 11:37:32 2012 -0400
+
+    [Indic] Add a separate Coeng class
+
+    No characters recategorized yet.  No semantic change.
+
+ src/hb-ot-shape-complex-indic-machine.rl |  1 +
+ src/hb-ot-shape-complex-indic-private.hh |  3 ++-
+ src/hb-ot-shape-complex-indic.cc        | 26 ++++++++++++++++----------
+ 3 files changed, 19 insertions(+), 11 deletions(-)
+
+commit 74ccc6a1322f8c48c5f2a05f04821783c4b87a14
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 17 11:16:19 2012 -0400
+
+    [Indic] Move Halant with after-base consonants
+
+    Normally, we attach the Halant to the previous character and move it
+    with it.  For after-base consonants however, the Halant "belongs"
+    to the
+    consonant after, so attach it so.
+
+    This fixes Bengali sequences involving post-base consonant Ya, which
+    should ligate with the Halant to form Ya Phala, but previously a
+    reordered matras was blocking the ligation.
+
+ src/hb-ot-shape-complex-indic.cc                             |
+ 11 +++++++++++
+ .../in-tree/shaper-indic/indic/script-bengali/misc/misc.txt   |  1 +
+ 2 files changed, 12 insertions(+)
+
+commit d5c4edcdd6df32f2f23aca44f14838b4baab4d7a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 17 10:40:59 2012 -0400
+
+    [Indic] Apply presentation-forms features all at once
+
+    Seems like this is what Uniscribe is doing, and does not break
+    any fonts
+    we tested (with Devanagari, Malayalam, Khmer, and Bengali), while
+    fixing
+    some Ra Phala sequences for Bengali with Vrinda.  Fixes another 2% of
+    Bengali failures (a couple more to go).
+
+ src/hb-ot-shape-complex-indic.cc                                   |
+ 6 +++---
+ .../texts/in-tree/shaper-indic/indic/script-bengali/misc/misc.txt   | 1 +
+ 2 files changed, 4 insertions(+), 3 deletions(-)
+
+commit 559f70667891a3ceeffb36f40de38a4f85868945
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 22:43:17 2012 -0400
+
+    Fix MarkAttachmentType matching
+
+    Fixes issue reported by Khaled Hosny with his Hussaini Nastaleeq font
+    and sequences like those added in the previous commit.
+
+ src/hb-ot-layout.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 6de103547e4a7fb34c833861713ea373cd912261
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 22:46:06 2012 -0400
+
+    [test/arabic] Add Arabic tests for mark skipping
+
+    Expose a bug with Khaled's Hussaini Nastaleeq font.
+
+ .../shaper-arabic/script-arabic/misc/diacritics/MANIFEST      |  1 +
+ .../script-arabic/misc/diacritics/mark-skipping.txt           |
+ 10 ++++++++++
+ 2 files changed, 11 insertions(+)
+
+commit ad4494759fa8bfd2497800c24fa414075ed1aa61
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 22:40:21 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit af92b4cc90e4184d5bdd8037c551ed482700114f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 20:31:24 2012 -0400
+
+    [Indic] Disable 'kern' in Uniscribe bug compatibility mode
+
+    Uniscribe does not apply 'kern' in the Indic module.  Some of
+    the Khmer
+    fonts they ship have small adjustments in the 'kern' table.  Disable
+    'kern' in the Indic module under Uniscribe bug compatibility mode.
+
+    Fixes some 10% of the Khmer failures.  Remains under 3% (excluding
+    dotted-circle ones).
+
+ src/hb-ot-shape-complex-indic.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit d96838ef951ce6170eb2dc576ebcba2262cf7008
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 20:26:57 2012 -0400
+
+    Allow complex shapers overriding common features
+
+    In a new callback...  Currently unused by all complex shapers.
+
+ src/hb-ot-shape-complex-arabic.cc  |  6 ++++++
+ src/hb-ot-shape-complex-indic.cc   |  6 ++++++
+ src/hb-ot-shape-complex-misc.cc    | 18 ++++++++++++++++++
+ src/hb-ot-shape-complex-private.hh | 30 ++++++++++++++++++++++++++++++
+ src/hb-ot-shape.cc                |  2 ++
+ 5 files changed, 62 insertions(+)
+
+commit df50b8474094f0563ccfdae12c4425a51b72add6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 19:56:29 2012 -0400
+
+    [Indic] Categorize other Khmer marks
+
+    Mark them the same as the Register Shifters for now.  Need to rename
+    that category to something more sensible after all is settled.
+
+    Fixes another percent of Khmer failures.  Down to under 3%!
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 8e7b5882fb4c1921c9d030d354a9b998115cdb8c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 17:04:46 2012 -0400
+
+    [Indic] Recognize pre-base reordering Ra anywhere in the syllable
+
+    We were doing that only immediately after base.
+
+    Fixes another percent in the Khmer failures.  About three more
+    to go...
+
+ src/hb-ot-shape-complex-indic.cc | 84
+ ++++++++++++++++++++++------------------
+ 1 file changed, 46 insertions(+), 38 deletions(-)
+
+commit 7d09c98a1fff97127e48eae48d380dc9fcff288e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 16:45:22 2012 -0400
+
+    [Indic] Recognizer Register Shifter marks
+
+    Fixes another 6% of the Khmer failures.
+
+ src/hb-ot-shape-complex-indic-machine.rl | 3 ++-
+ src/hb-ot-shape-complex-indic-private.hh | 5 +++--
+ src/hb-ot-shape-complex-indic.cc        | 2 ++
+ 3 files changed, 7 insertions(+), 3 deletions(-)
+
+commit 60da763dfac96a7931d6e6bdef8b9973bd5209ab
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 16:13:32 2012 -0400
+
+    [GSUB/GDEF] Guess glyph classes after substitution only if no GDEF
+
+    Brings down Khmer failures with Daun Penh font from 36% to 20%.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 20 +++++++++++++-------
+ 1 file changed, 13 insertions(+), 7 deletions(-)
+
+commit fcdc5f1c8849a7f38d9f34f64d60c6d95d7501f7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 15:52:54 2012 -0400
+
+    [Indic] Categorize Khmer Ro
+
+    Khmer failures down from 58% to 36%.
+
+ src/hb-ot-shape-complex-indic-private.hh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 78818124b17691ec2c647142fdb9ae743aa03dee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 15:49:08 2012 -0400
+
+    [Indic] Reoder pre-base reordering Ra
+
+    Brings down Malayalam failures from 14% down to 3%.
+
+ src/hb-ot-shape-complex-indic.cc | 42
+ +++++++++++++++++++++++++++-------------
+ 1 file changed, 29 insertions(+), 13 deletions(-)
+
+commit 1a1dbe9a2787f226f3e43063da8eb6633438b0a0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 15:40:33 2012 -0400
+
+    [Indic] Rename
+
+ src/hb-ot-shape-complex-indic.cc | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 46e645ec4b59f0a278347be11f40c7df700d5bb6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 15:30:05 2012 -0400
+
+    [Indic] Start implementing pre-base reordering
+
+ src/hb-ot-shape-complex-indic.cc | 33 ++++++++++++++++++---------------
+ 1 file changed, 18 insertions(+), 15 deletions(-)
+
+commit 921ce5b17daf06af8e17989a3e335b9f5df20483
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 15:26:56 2012 -0400
+
+    [Indic] Rename
+
+    No semantic change.
+
+ src/hb-ot-shape-complex-indic.cc | 26 +++++++++++++-------------
+ 1 file changed, 13 insertions(+), 13 deletions(-)
+
+commit b504e060f008e95b1ba36c06600c9fea4f5d4808
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 15:21:12 2012 -0400
+
+    [Indic] Implement After-Main Reph positioning
+
+    Almost...
+
+ src/hb-ot-shape-complex-indic.cc | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+commit 17d7de91d76406d3e92db37d9eef2fc615f06e68
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 15:20:15 2012 -0400
+
+    [Indic] Apply 'pref' to pre-base reodering Ra
+
+    No reordering yet.
+
+ src/hb-ot-shape-complex-indic.cc | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+commit 362d3db8d3527d0fef260a17d2466e92a4a25425
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 15:15:28 2012 -0400
+
+    [Indic] Minor
+
+    Should not be any semantic change. In preparation for implementing
+    pre-base reordering Ra.
+
+ src/hb-ot-shape-complex-indic.cc | 8 +-------
+ 1 file changed, 1 insertion(+), 7 deletions(-)
+
+commit 70fe77bb9a25922bd34f206826d8731d901fb451
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 14:52:18 2012 -0400
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 44
+ ++++++++++++++++++++--------------------
+ 1 file changed, 22 insertions(+), 22 deletions(-)
+
+commit 2f903215c5da2330a37abe489a3f45f7c3fd5a09
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 13:54:43 2012 -0400
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit a3e04bee2c2fa648759a87e460db6b4f1b685586
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 13:47:19 2012 -0400
+
+    [Indic] Reorder virama only for old Indic spec
+
+ src/hb-ot-shape-complex-indic.cc | 15 +++++++++++++--
+ 1 file changed, 13 insertions(+), 2 deletions(-)
+
+commit 0de771b72da6b342b015e3556190821547a4011d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 13:39:36 2012 -0400
+
+    [Indic] Categorize Khmer consonants
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit d487fff266258eb1af056e9704cfb09d04251ddc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 13:25:17 2012 -0400
+
+    Split matras without a Unicode decomposition
+
+    This is a hack for now, to get us going with Khmer.  This will be
+    refactored properly later to move the complex logic into complex
+    shapers.
+
+ src/hb-unicode.cc | 22 ++++++++++++++++++++++
+ 1 file changed, 22 insertions(+)
+
+commit 8aa801a6fd1a737fa20b851edf7528bdd6635b8b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 13:24:26 2012 -0400
+
+    [Indic] Adjust position for split matras
+
+    We are going to split matras without a Unicode decompositions in a way
+    that the second half takes the codepoint of the whole matra.  So,
+    position them where the second half is supposed to end up.
+
+ src/hb-ot-shape-complex-indic-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 1feb8345a5fd92297eb6796e6dce633bafa0c76e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 13:23:40 2012 -0400
+
+    [GSUB] Allow 1-to-1 ligature substitutions!
+
+    Apparently Uniscribe allows these, and they are used in some Khmer
+    fonts
+    shipped with Windows, namely, Daun Penh.
+
+ src/hb-ot-layout-gsub-table.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 29f106d7fba25e1464debd3a4831a7380d75c4c9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 16 12:05:35 2012 -0400
+
+    [Indic] Apply Above Forms
+
+ src/hb-ot-shape-complex-indic.cc | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit fa2bd9fb63d83b657373764d4b657084d8327fc9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 14 12:15:54 2012 -0400
+
+    Further simplify atomic ops on Visual Studio
+
+ src/hb-atomic-private.hh | 5 -----
+ 1 file changed, 5 deletions(-)
+
+commit 0a492357016bc9a614d2a726f2006c10af68ca58
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 13 13:20:49 2012 -0400
+
+    Minor
+
+ src/hb-warning.cc | 29 +++++------------------------
+ 1 file changed, 5 insertions(+), 24 deletions(-)
+
+commit 11c4ad439ef2b39a840f397a693b1ba643f52c21
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 13 11:29:31 2012 -0400
+
+    Add -Wcast-align
+
+ configure.ac   | 3 +++
+ src/Makefile.am | 2 +-
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+commit a98d0ab18624501ee60551304f2715361ac643da
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 13 10:19:10 2012 -0400
+
+    Make sure HB_BEGIN_DECLS / HB_END_DECLS is only used in public headers
+
+    So we can use them to switch default visibility to internal if
+    desired,
+    and use these to make only declared symbols public.
+
+ src/check-c-linkage-decls.sh            | 10 +++++++++-
+ src/hb-fallback-shape-private.hh        |  6 ------
+ src/hb-ot-shape-complex-indic-machine.rl |  4 ----
+ 3 files changed, 9 insertions(+), 11 deletions(-)
+
+commit 5c5bc96216c9ad58243eb3ed27b253e237f08ebe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 13 10:15:37 2012 -0400
+
+    Allow overriding HB_BEGIN_DECLS / HB_END_DECLS
+
+ src/hb-common.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit ec5f5f0f8a1d5b3ff98452175bb4450a59897620
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 13 10:00:42 2012 -0400
+
+    Don't export inline methods
+
+ configure.ac | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 50a4e78b530563917eb606ff3b96dcc9eed5b3ee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 13 09:48:39 2012 -0400
+
+    Check for exported weak symbols
+
+    Ouch, all our C++ inline functions are being exported (weakly)
+    already.
+    Fix coming.
+
+ src/check-internal-symbols.sh | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+commit b5aeb95afeb13a66177caada9f5d5ad4cddbd35f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 13 09:45:54 2012 -0400
+
+    Make hb_in_range() static
+
+ src/hb-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 271c8f89075607c689938b4f5e60323d9a1acd70
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 13 09:32:30 2012 -0400
+
+    Minor
+
+ src/hb-ft.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 391f1ff5d894b60bfe0f606be436ffe7e43f7455
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 13 09:04:07 2012 -0400
+
+    Fix _InterlockedCompareExchangePointer on x86
+
+ src/hb-atomic-private.hh | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+commit 2023e2b54d91924dddfd228ffdbb46021135b068
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 11 19:00:30 2012 -0400
+
+    [ft] Disable ppem setting
+
+    The calculations were wrong.
+
+    FreeType makes it really hard to set size and ppem independently.
+    For now, disable it.  Need to come up with a fix later.
+
+ src/hb-ft.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit cdf7444505a7ae49d20f9ba6776dea92c1fde2a6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 11 18:52:39 2012 -0400
+
+    [ft] Use unfitted kerning if x_ppem is zero
+
+ src/hb-ft.cc | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit 6d08c7f1b3601095f9a12630045331dd0fe75380
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 11 18:01:27 2012 -0400
+
+    Revert "Towards templatizing common Lookup types"
+
+    This reverts commit 727135f3a9938c1ebd5b9f5015a46c7ccc8573c5.
+
+    This is work-in-progress.  Didn't mean to push it out just yet.
+
+ src/hb-ot-layout-gpos-table.hh       | 16 ++++++----------
+ src/hb-ot-layout-gsub-table.hh       | 24 ++++++++++--------------
+ src/hb-ot-layout-gsubgpos-private.hh | 33
+ ++-------------------------------
+ 3 files changed, 18 insertions(+), 55 deletions(-)
+
+commit 552bf3a9f9651311084b7979805dbdc18c0335ca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 11 16:44:51 2012 -0400
+
+    Bump WINNT version requested from 500 to 600
+
+    Since we use the OpenType versions of Uniscribe functions, we are
+    relying on that version of the WINNT API.  Otherwise, usp10.h
+    will hide
+    those symbols.
+
+ src/hb-uniscribe.cc | 2 +-
+ src/hb-uniscribe.h  | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit 9a5b421a64db1bb23d5c6ebbc3bf3f3a5513dc36
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 11 16:35:04 2012 -0400
+
+    Fix build with no Unicode funcs implementations provided
+
+ src/hb-unicode-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 6efe1eca660135096f05987ac0ef9b635de6cdfd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 11 15:30:08 2012 -0400
+
+    Update git.mk to upstream
+
+ git.mk | 58 ++++++++++++++++++++++++++++++++++++++--------------------
+ 1 file changed, 38 insertions(+), 20 deletions(-)
+
+commit 727135f3a9938c1ebd5b9f5015a46c7ccc8573c5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 3 22:15:35 2012 -0400
+
+    Towards templatizing common Lookup types
+
+ src/hb-ot-layout-gpos-table.hh       | 16 ++++++++++------
+ src/hb-ot-layout-gsub-table.hh       | 24 ++++++++++++++----------
+ src/hb-ot-layout-gsubgpos-private.hh | 33
+ +++++++++++++++++++++++++++++++--
+ 3 files changed, 55 insertions(+), 18 deletions(-)
+
+commit 1167c7bfc9e61f145e11da4881968293a4d3c0a9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 3 11:38:46 2012 -0400
+
+    Minor
+
+ test/shaping/texts/in-tree/shaper-thai/MANIFEST                    |
+ 2 +-
+ test/shaping/texts/in-tree/shaper-thai/misc/MANIFEST               | 1 -
+ test/shaping/texts/in-tree/shaper-thai/misc/misc.txt               |
+ 6 ------
+ test/shaping/texts/in-tree/shaper-thai/script-thai/MANIFEST        | 1 +
+ test/shaping/texts/in-tree/shaper-thai/script-thai/misc/MANIFEST    | 1 +
+ test/shaping/texts/in-tree/shaper-thai/script-thai/misc/sara-am.txt |
+ 4 ++++
+ 6 files changed, 7 insertions(+), 8 deletions(-)
+
+commit aa116582e69d18777448e7993078e5d6335ddfed
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 29 10:50:12 2012 -0400
+
+    Minor
+
+ .../texts/in-tree/shaper-indic/indic/script-malayalam/misc/misc.txt
+ | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 1f13c7185f02ea18d4fadd2ea8ad444bea863c39
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 27 10:07:27 2012 -0400
+
+    Add TODO item
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 12f5c0a222a2f0aebe63c0d367937a0ff985474a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 26 11:16:13 2012 -0400
+
+    Fix check for Intel atomic ops
+
+ configure.ac            | 9 +++++----
+ src/hb-atomic-private.hh | 2 +-
+ 2 files changed, 6 insertions(+), 5 deletions(-)
+
+commit 6932a41fb61ffc2901c260587b1e98ed9c2a7ea1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 26 10:46:31 2012 -0400
+
+    Use octal-escaped UTF-8 characters instead of plain text
+
+    https://bugs.freedesktop.org/show_bug.cgi?id=50970
+
+ src/hb-private.hh | 17 ++++++++++++-----
+ 1 file changed, 12 insertions(+), 5 deletions(-)
+
+commit 8c0ea7bcb4409aaf8c96ad641f2db30003228ad0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jun 24 13:20:56 2012 -0400
+
+    Disable introspection again
+
+    Until I figure out the build issues.  Sigh...
+
+ configure.ac   |  2 +-
+ src/Makefile.am | 42 +++++++++++++++++++++---------------------
+ 2 files changed, 22 insertions(+), 22 deletions(-)
+
+commit 8c5f5e6f5ec2b6a219fbdfc955f6299325a0adde
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jun 17 14:58:59 2012 -0400
+
+    Minor
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 49f8e0cd9a5493ae26857c43bac0711cdf47c80d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 16 15:40:03 2012 -0400
+
+    GStaticMutex is deprecated
+
+ src/hb-mutex-private.hh | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+commit 5e113a4b7921ced6af2d53460a7a2f1d0185c02a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 16 15:26:13 2012 -0400
+
+    g_thread_init() is deprecated
+
+ test/api/hb-test.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 1bc1cb3603167f5da309336f7018c8b0608ac104
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 16 15:21:55 2012 -0400
+
+    Make source more digestable for gobject-introspection
+
+ src/hb-blob.cc                   | 2 +-
+ src/hb-blob.h            | 2 +-
+ src/hb-buffer-private.hh  | 4 ++--
+ src/hb-buffer.h          | 6 +++---
+ src/hb-common.cc         | 2 +-
+ src/hb-common.h          | 4 ++--
+ src/hb-font-private.hh    | 6 +++---
+ src/hb-font.cc                   | 2 +-
+ src/hb-font.h            | 8 ++++----
+ src/hb-set-private.hh    | 2 +-
+ src/hb-set.h             | 2 +-
+ src/hb-shape.h                   | 2 +-
+ src/hb-unicode-private.hh | 2 +-
+ src/hb-unicode.h         | 2 +-
+ 14 files changed, 23 insertions(+), 23 deletions(-)
+
+commit 84d781e54cc75c81a06ba43fd7b1a74b8c7d9591
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 16 15:21:41 2012 -0400
+
+    Flesh out gobject-introspection stuff a bit
+
+ configure.ac   |  1 +
+ src/Makefile.am | 23 +++++++++++++++++++++--
+ 2 files changed, 22 insertions(+), 2 deletions(-)
+
+commit 49ee12ccd00870d4976339dc546c74eaf08a8fc0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 16 14:53:51 2012 -0400
+
+    Add TODO item
+
+ TODO | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit d3c8115d1ad09404b8970b98e6b5ab74510a35f6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 12 09:52:57 2012 -0400
+
+    Minor
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 2cf301968cb8c1150cead0ab909457cdd3ee2d01
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 14:58:01 2012 -0400
+
+    Add hb_object_lock/unlock()
+
+ src/hb-object-private.hh | 32 ++++++++++++++++++++++++++------
+ 1 file changed, 26 insertions(+), 6 deletions(-)
+
+commit 6a5661f1e69c937083e8d976cb12429b99180d54
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 03:26:16 2012 -0400
+
+    Ugh
+
+ util/shape-consumer.hh | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit f211d5c291b4c947cfd732e873627567173057e4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 03:11:22 2012 -0400
+
+    More Oops! Fix fast-path with sub-type==0
+
+ src/hb-ot-layout-gpos-table.hh | 2 +-
+ src/hb-ot-layout-gsub-table.hh | 2 +-
+ util/shape-consumer.hh                | 2 ++
+ 3 files changed, 4 insertions(+), 2 deletions(-)
+
+commit b1de6aa1f33b228afe231c8209aef90a5fa1ee5d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 03:07:59 2012 -0400
+
+    Oops!
+
+ src/hb-ot-layout-gpos-table.hh | 2 +-
+ src/hb-ot-layout-gsub-table.hh | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit b12e2549cbcd4f1ef46e66c75533686ee560f59b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 03:05:20 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-gsubgpos-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit faf0f20253d954cc4cfa4c967ece7573a5ddae3b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 03:02:36 2012 -0400
+
+    Add sanitize() logic for fast-paths
+
+ src/hb-ot-layout-gpos-table.hh | 15 ++++++++++++---
+ src/hb-ot-layout-gsub-table.hh | 20 ++++++++++++++------
+ 2 files changed, 26 insertions(+), 9 deletions(-)
+
+commit 4e766ff28d1fb831ded20666799787478129c07c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 02:53:57 2012 -0400
+
+    Add fast-path for GPOS too
+
+    Shaves another 3% for DejaVu Sans long Latin strings.
+
+ src/hb-ot-layout-gpos-table.hh | 16 ++++++++++++++--
+ 1 file changed, 14 insertions(+), 2 deletions(-)
+
+commit 993c51915f503f74ee00eee646b67bf2e3f73596
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 02:48:16 2012 -0400
+
+    Add fast-path to GSUB to check coverage
+
+    Shaves a good 10% off DejaVu Sans with simple Latin text for me.
+    Now, DejaVu is very ChainContext-intensive, but it's also a very
+    popular font!
+
+ src/hb-ot-layout-gsub-table.hh | 18 ++++++++++++++++--
+ 1 file changed, 16 insertions(+), 2 deletions(-)
+
+commit f19e0b0099ec73b8fedccacff4902403f5eabc42
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 02:26:57 2012 -0400
+
+    Match input before backtrack
+
+    Makes more sense, optimization-wise.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 67bb9e8cea49a44be6996515e1c7d8cdc95a77e6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 02:02:46 2012 -0400
+
+    Add set add_coverage() to Coverage()
+
+ src/hb-ot-layout-common-private.hh | 24 ++++++++++++++++++++++++
+ src/hb-set-private.hh             |  5 +++++
+ 2 files changed, 29 insertions(+)
+
+commit 4952f0aa5b2f4368d9e3418252e0a1b9294cd5ee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 01:39:11 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-gsub-table.hh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit ad6a6f22401d6256e34521d0f52e91348c5ed4c9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 01:21:02 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 46617a42133fbab151de4111a74dcbdc4e769c74
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 01:18:58 2012 -0400
+
+    Fix cache implementation
+
+ src/hb-cache-private.hh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit ce47613889aa3ff9b0067d3e51ba63cfdb139adb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 01:10:26 2012 -0400
+
+    Micro-optimize
+
+    I know...
+
+ src/hb-ot-layout-gsubgpos-private.hh |  3 ++-
+ src/hb-ot-layout.cc                 | 46
+ ++++++++++++++++++++++--------------
+ 2 files changed, 30 insertions(+), 19 deletions(-)
+
+commit 70416de298b811ab6be53a1c67f0d2531d99cd46
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 00:56:41 2012 -0400
+
+    Minor
+
+ src/hb-open-type-private.hh | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 99159e52a3c9d5ae6c0fbdec64e7ed684fa70b61
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 00:50:40 2012 -0400
+
+    Use linear search for small counts
+
+    I see about 8% speedup with long strings with DejaVu Sans.
+
+ src/hb-open-type-private.hh | 19 ++++++++++++++-----
+ 1 file changed, 14 insertions(+), 5 deletions(-)
+
+commit caf0412690542e58e23246dccc4b2fb83bd652ec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 00:26:32 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 0f8fea71a66b1e01ee4398967db464393f478d42
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 00:24:38 2012 -0400
+
+    Minor.  Hide _hb_ot_layout_get_glyph_property()
+
+ src/hb-ot-layout-private.hh | 4 ----
+ src/hb-ot-layout.cc        | 2 +-
+ 2 files changed, 1 insertion(+), 5 deletions(-)
+
+commit 44b8ee0c90d7b1dd91e5848114141e3186534a0f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 9 00:23:24 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-gpos-table.hh | 3 ++-
+ src/hb-ot-layout.cc           | 2 +-
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+commit 7b84c536c10ab90ed96a033d88e9ad232d46c5b8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 22:04:23 2012 -0400
+
+    In MarkBase attachment, only attach to first of a MultipleSubst
+    sequence
+
+    This is apparently what Uniscribe does.  Test case is:
+
+      SEEN FATHA TEH ALEF
+
+    with Arabic Typesetting.  Originally reported by Khaled Hosny.
+
+ src/hb-ot-layout-gpos-table.hh       | 7 ++++++-
+ src/hb-ot-layout-gsubgpos-private.hh | 8 ++++++++
+ 2 files changed, 14 insertions(+), 1 deletion(-)
+
+commit ec57e0c5655ced5109c4638bf802772d336448fd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 21:47:23 2012 -0400
+
+    Set lig_comp for MultipleSubst components
+
+    To be used for correct mark attachment to first component of a
+    MultipleSubst output.  That's what Uniscribe does.
+
+ src/hb-ot-layout-gsub-table.hh | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit e085fcf7ca302eb7802a032197c022819e7e7074
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 21:45:00 2012 -0400
+
+    Remove unused buffer->replace_glyphs_be16
+
+ src/hb-buffer-private.hh            |  3 ---
+ src/hb-buffer.cc                    | 23 -----------------------
+ src/hb-ot-layout-gsubgpos-private.hh |  8 --------
+ 3 files changed, 34 deletions(-)
+
+commit 3ec77d6ae0510dc2c0ec64382c4948bc6e109844
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 21:44:06 2012 -0400
+
+    Don't use replace_glyphs_be for MultipleSubst
+
+ src/hb-ot-layout-gsub-table.hh       | 5 ++++-
+ src/hb-ot-layout-gsubgpos-private.hh | 7 ++++++-
+ 2 files changed, 10 insertions(+), 2 deletions(-)
+
+commit 4b7192125ffd295091d6b3a0bdfca7011947c2ca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 21:41:46 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-gsub-table.hh       | 3 ++-
+ src/hb-ot-layout-gsubgpos-private.hh | 8 ++++++++
+ 2 files changed, 10 insertions(+), 1 deletion(-)
+
+commit 4508789f4b5e0ece5620d35598aeeb7ecbe3e3aa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 21:32:43 2012 -0400
+
+    Add test for static initializers and other C++ stuff
+
+ src/Makefile.am          |  3 ++-
+ src/check-static-inits.sh | 33 +++++++++++++++++++++++++++++++++
+ 2 files changed, 35 insertions(+), 1 deletion(-)
+
+commit 56bd259b9ac22dd98913c8ca2e2cf7b30b632373
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 21:29:18 2012 -0400
+
+    Minor
+
+ src/check-internal-symbols.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4538b47bf08e73e7f5cce6337df5fe154233c168
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 21:01:45 2012 -0400
+
+    Remove done TODO items
+
+ TODO | 7 +------
+ 1 file changed, 1 insertion(+), 6 deletions(-)
+
+commit bc8357ea7b4c0d7c715aae353176434fb9460205
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 21:01:20 2012 -0400
+
+    Merge clusters during normalization
+
+ src/hb-ot-shape-normalize.cc | 11 +++++++----
+ 1 file changed, 7 insertions(+), 4 deletions(-)
+
+commit fe3dabc08df7501010564f8844bd4d11771cc6a4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 20:56:05 2012 -0400
+
+    Minor
+
+ src/hb-buffer.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit e88e14421a33ca5bdfd76bc0b2f801fcb6e78911
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 20:55:21 2012 -0400
+
+    Use merge_clusters instead of open-coding
+
+ src/hb-buffer.cc | 16 ++++------------
+ 1 file changed, 4 insertions(+), 12 deletions(-)
+
+commit 330a2af3ff0e12c01b3b451357b8bdc83b2e9b47
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 20:40:02 2012 -0400
+
+    Use merge_clusters when forming Unicode clusters
+
+ src/hb-ot-shape.cc | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit bd300df9adf955c1e69b3783c1c061876940fb8b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 20:35:18 2012 -0400
+
+    Minor
+
+ src/hb-object-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit e51d2b6ed1c794ac28c5610bfd01dbc9fb383633
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 20:33:27 2012 -0400
+
+    Extend into main buffer if extension hit end of out-buffer merging
+    clusters
+
+ src/hb-buffer.cc               | 5 +++++
+ src/hb-ot-shape-complex-misc.cc | 9 ---------
+ 2 files changed, 5 insertions(+), 9 deletions(-)
+
+commit 5ced012d9f58c51d557a835593c3277e35fe3b35
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 20:31:32 2012 -0400
+
+    Extend end when merging clusters in out-buffer
+
+ src/hb-buffer.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 72c0a1878313e7232d554bc226f4c6dc01418a95
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 20:30:03 2012 -0400
+
+    Extend clusters backward in out-buffer
+
+ src/hb-buffer.cc               | 8 ++++++++
+ src/hb-ot-shape-complex-misc.cc | 2 --
+ 2 files changed, 8 insertions(+), 2 deletions(-)
+
+commit cd5891493df06fdb92e1ae526d29dee8df250235
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 20:27:53 2012 -0400
+
+    Extend clusters backwards, into the out-buffer too
+
+ src/hb-buffer.cc | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+commit 77471e037122548bfc08cacea6fbb472831c34f3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 20:21:02 2012 -0400
+
+    Clear output buffer before calling GSUB pause functions
+
+ src/hb-ot-map.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit cafa6f372721fd6b0a7c0da68b9421d3e94931bc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 20:17:10 2012 -0400
+
+    When merging clusters, extend the end
+
+ src/hb-buffer.cc | 20 ++++++++++++++------
+ 1 file changed, 14 insertions(+), 6 deletions(-)
+
+commit 28ce5fa454b54f728044ee12a9dbe7d016783d4a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 20:13:56 2012 -0400
+
+    Merge clusters when ligating
+
+ src/hb-ot-layout-gsub-table.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 2bb1761ccb7d300744ced6427165f4ea75ddf96c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 19:29:44 2012 -0400
+
+    Minor, use next_glyph()
+
+ src/hb-ot-layout-gsub-table.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 5f68f8675e5ccaee91f5a90d86bc3b022b9a54e4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 19:23:43 2012 -0400
+
+    Minor
+
+ src/hb-ot-shape.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 872969126756456a69bf958f3df6e56a26e57b0a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 14:18:30 2012 -0400
+
+    Increase Uniscribe MAX_ITEMS
+
+ src/hb-uniscribe.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit dbffa4c83d29c689ee4cd8a1c53e84521028c711
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 14:08:32 2012 -0400
+
+    Fix Uniscribe charset matching
+
+    Previously was failing to match fonts that didn't support
+    CHARSET_ANSI.
+
+    There still remains a problem with the Uniscribe backend, in that if a
+    font with the same family name is installed, and is newer, the native
+    one is preferred over the font we provide. Fixing it requires
+    rewriting
+    the name table with a unique family name...
+
+ src/hb-uniscribe.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 82e8bd8628aeb37835fb019a71b6bdac87824b97
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 11:48:29 2012 -0400
+
+    Remove unused code
+
+ src/hb-uniscribe.cc | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+commit 6da9dbff21b47fb10794b8d6cb747393c9eab7dd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 10:53:35 2012 -0400
+
+    Remove zero-width chars in the fallback shaper too
+
+ src/hb-fallback-shape.cc | 16 ++++++++++++----
+ 1 file changed, 12 insertions(+), 4 deletions(-)
+
+commit 68b76121f83fc9b87dc84f03e8bef38d4332734d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 10:43:49 2012 -0400
+
+    Fix regressions introduced by sed. Ouch!
+
+    Introduced in 99c2695759a6af855d565f4994bbdf220570bb48.
+    Broken mark-mark and mark-ligature stuff.
+
+ src/hb-ot-layout-gpos-table.hh       | 6 +++---
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+commit 0dd86f9f6849d82d60a99e66b6928795cfb2a3c7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 10:23:03 2012 -0400
+
+    Whitespace
+
+ src/hb-uniscribe.cc | 144
+ ++++++++++++++++++++++++++--------------------------
+ 1 file changed, 72 insertions(+), 72 deletions(-)
+
+commit 8e7beba7c3b3dea3cb3b7e280c5aab4f13b92d31
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 10:22:06 2012 -0400
+
+    Fix Uniscribe clusters with direction-overriden Arabic
+
+ src/hb-uniscribe.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit b069c3c31bfbbf160eb897c7474be9ea90ed4fc1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 10:10:29 2012 -0400
+
+    Really fix override-direction in Uniscribe
+
+ src/hb-uniscribe.cc | 10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
+
+commit fcd6f5326166e993b8f5222efbaffe916da98f0a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 09:59:43 2012 -0400
+
+    Unbreak Uniscribe
+
+    Oops.  hb_tag_t and OPENTYPE_TAG have different endianness.  Perhaps
+    something to add API for in hb-uniscribe.h
+
+ src/hb-private.hh   | 12 +++++++++++-
+ src/hb-uniscribe.cc | 8 ++++----
+ 2 files changed, 15 insertions(+), 5 deletions(-)
+
+commit 29eac8f591fdb86f1c4fdc0a6ab63910ff286b84
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 09:26:17 2012 -0400
+
+    Override direction in Uniscribe backend
+
+    Matches OT backend now.
+
+ src/hb-uniscribe.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 1c1233e57686d77d89fe3ac1dc53de9ee60798c1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 8 09:20:53 2012 -0400
+
+    Make Uniscribe backend respect selected script
+
+ src/hb-uniscribe.cc | 15 +++++++++++++--
+ 1 file changed, 13 insertions(+), 2 deletions(-)
+
+commit 0bb0f5d41976ae27c5c7a51cbb82144b48315a4b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 7 17:42:48 2012 -0400
+
+    Add note re _NullPool
+
+ src/hb-open-type-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 2a3d911fe0ff5d6442659d3381d5b08c30ee2896
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 7 17:31:46 2012 -0400
+
+    Fix alignment-requirement missmatch
+
+    Detected by clang and lots of cmdline options.
+
+ src/hb-buffer-private.hh            | 2 +-
+ src/hb-buffer.cc                    | 5 +++--
+ src/hb-ot-layout-gsub-table.hh       | 4 ++--
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 4 files changed, 7 insertions(+), 6 deletions(-)
+
+commit 6095de1635441af16340c7b2c5a6b4c531ec242f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 7 15:48:18 2012 -0400
+
+    Fix clang warning with NO_MT path
+
+ src/hb-shape.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit a18280a8ce9128fc9d75f8a367ae8ce0886a9599
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 7 15:44:12 2012 -0400
+
+    Fix warnings produced by clang analyzer
+
+ src/hb-icu.cc         | 6 ++++--
+ test/api/test-blob.c  | 2 +-
+ test/api/test-buffer.c | 4 ++--
+ util/helper-cairo.cc  | 2 +-
+ 4 files changed, 8 insertions(+), 6 deletions(-)
+
+commit 7ec83051c05777c0e6e2eea6ef6c71effede9527
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 7 13:32:57 2012 -0400
+
+    Fix warnings
+
+ util/ansi-print.cc | 30 +++++++++++++-----------------
+ 1 file changed, 13 insertions(+), 17 deletions(-)
+
+commit 73cb02de2dd28b09d4aa76230132248215cfe83d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 6 11:29:25 2012 -0400
+
+    Minor
+
+ src/hb-private.hh | 26 +++++++++++++-------------
+ 1 file changed, 13 insertions(+), 13 deletions(-)
+
+commit 79e2b4791fe95ede9a1e6b1c71ccc6e36c4fc0e5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 6 11:27:17 2012 -0400
+
+    Fix ASSERT_POD on clang
+
+    As reported by bashi.  Not tested.
+
+ src/hb-private.hh | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+commit 4282d2f3771d6510c27b62e54cc1254d6f2389b3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 6 03:42:36 2012 -0400
+
+    Enabled ICU again
+
+ configure.ac | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 6220e5fc0dad728e67a92e838d3ac275d032f2c7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 6 03:30:09 2012 -0400
+
+    Add ASSERT_POD for most objects
+
+ src/hb-blob.cc                   | 1 +
+ src/hb-buffer-private.hh  | 2 ++
+ src/hb-font-private.hh    | 3 +++
+ src/hb-object-private.hh  | 2 ++
+ src/hb-private.hh        | 2 +-
+ src/hb-set-private.hh    | 4 +++-
+ src/hb-unicode-private.hh | 1 +
+ 7 files changed, 13 insertions(+), 2 deletions(-)
+
+commit a00a63b5ef503fafa87e26b517732b2214e01719
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 6 03:07:01 2012 -0400
+
+    Add macros to check that types are POD
+
+ configure.ac               |  1 +
+ src/hb-open-type-private.hh | 32 ++++++++++++++++++++------------
+ src/hb-private.hh          | 24 ++++++++++++++++++++++++
+ 3 files changed, 45 insertions(+), 12 deletions(-)
+
+commit 61eb60c129e865e92f6a5767a88c44a391f4d413
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 21:14:04 2012 -0400
+
+    Don't link to libstdc++
+
+    New try.
+
+ src/Makefile.am | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 81a4b9fd4eb8995c5930db1df3669db93661eb52
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 20:49:51 2012 -0400
+
+    Remove unused hb_static_mutex_t
+
+ src/hb-mutex-private.hh | 11 -----------
+ 1 file changed, 11 deletions(-)
+
+commit 4a3a9897b3698dd09c3e880b3ddd4db24c6fb460
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 20:39:07 2012 -0400
+
+    Disable Intel atomic ops on mingw32
+
+    Apparently the configure test is not enough...
+
+ src/hb-atomic-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 0594a2448440208efa0acac9a5d8d52d43108289
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 20:35:40 2012 -0400
+
+    Cleanup TRUE/FALSE vs true/false
+
+ src/hb-atomic-private.hh          |  4 +--
+ src/hb-blob.cc                            | 28 +++++++++---------
+ src/hb-buffer-private.hh          |  2 +-
+ src/hb-buffer.cc                  | 38 ++++++++++++-------------
+ src/hb-buffer.h                   |  4 +--
+ src/hb-fallback-shape.cc          |  2 +-
+ src/hb-font.cc                            | 22 +++++++--------
+ src/hb-ft.cc                      | 22 +++++++--------
+ src/hb-glib.cc                            | 16 +++++------
+ src/hb-graphite2.cc               |  8 +++---
+ src/hb-icu.cc                     | 30 ++++++++++----------
+ src/hb-ot-layout.cc               | 28 +++++++++---------
+ src/hb-ot-shape-complex-private.hh |  2 +-
+ src/hb-ot-shape-normalize.cc      | 16 +++++------
+ src/hb-ot-shape.cc                |  4 +--
+ src/hb-private.hh                 | 18 ++++--------
+ src/hb-set.cc                     |  2 +-
+ src/hb-set.h                      |  2 +-
+ src/hb-shape.cc                   |  6 ++--
+ src/hb-tt-font.cc                 | 12 ++++----
+ src/hb-unicode.cc                 |  8 +++---
+ src/hb-uniscribe.cc               | 18 ++++++------
+ src/main.cc                       |  2 +-
+ util/hb-shape.cc                  |  2 +-
+ util/helper-cairo.cc              | 16 +++++------
+ util/main-font-text.hh                    |  2 +-
+ util/options.cc                   | 58
+ +++++++++++++++++++-------------------
+ util/options.hh                   |  2 +-
+ util/view-cairo.hh                |  2 +-
+ 29 files changed, 185 insertions(+), 191 deletions(-)
+
+commit e1ac38f8dd04c29d2d4140f5a492cdaf25d72901
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 20:31:49 2012 -0400
+
+    Fix inert buffer set_length() with zero
+
+    Oops!
+
+ src/hb-buffer.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 04bc1eebe7a304c0e6f86ab6814c65889f152602
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 20:16:56 2012 -0400
+
+    Add configure tests for Intel atomic intrinsics
+
+ configure.ac            | 17 +++++++++++++++++
+ src/hb-atomic-private.hh | 12 ++++++------
+ src/hb-mutex-private.hh  |  2 +-
+ 3 files changed, 24 insertions(+), 7 deletions(-)
+
+commit 68c75b46977beb57e35082db26be712b3cd65678
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 19:55:46 2012 -0400
+
+    Shuffle
+
+ configure.ac | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+commit f64b2ebf82c5f355cd95806478cd30c00b1a2731
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 19:23:29 2012 -0400
+
+    Remove last static initializer
+
+    We're free!  Lazy or immediate...
+
+ src/hb-ft.cc   |   2 +
+ src/hb-shape.cc | 150
+ ++++++++++++++++++++++++++++++++++++++++----------------
+ 2 files changed, 110 insertions(+), 42 deletions(-)
+
+commit 4a8a529068fc380298bb05b9d878bede3e9f4da1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 19:17:02 2012 -0400
+
+    Make hb-view err if all shapers failed
+
+ util/view-cairo.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 04aed572f112b96a6033cd6c3df7bdba5e29e93c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 18:30:19 2012 -0400
+
+    Make hb-ft static-initializer free
+
+ src/hb-common.cc |  5 ++---
+ src/hb-ft.cc    | 38 +++++++++++++++++++++++++++-----------
+ 2 files changed, 29 insertions(+), 14 deletions(-)
+
+commit be4560a3b5e8599cbe2b29a01a60c21c9e2b194f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 18:14:03 2012 -0400
+
+    Undo default unicode-funcs to avoid static initializer again
+
+ src/hb-buffer.cc         |  2 +-
+ src/hb-glib.cc                   | 23 ++++++++++++-----------
+ src/hb-icu.cc            | 24 +++++++++++++-----------
+ src/hb-unicode-private.hh | 10 +++++-----
+ src/hb-unicode.cc        | 26 ++++++++++++++------------
+ 5 files changed, 45 insertions(+), 40 deletions(-)
+
+commit 093171cceca63e48e735bbf05a2c11b1b7e95ef1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 18:00:45 2012 -0400
+
+    Implement lock-free hb_language_t
+
+    Another static-initialization down.  One more to go.
+
+ src/hb-common.cc | 66
+ +++++++++++++++++++++++++++++++++++++++++++++-----------
+ 1 file changed, 54 insertions(+), 12 deletions(-)
+
+commit 6843ce01be0df501ef3149a2c1c54cdfb693195d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 17:27:20 2012 -0400
+
+    Add atomic-pointer functions
+
+    Gonig to use these for lock-free linked-lists, to be used for
+    hb_language_t among other things.
+
+ src/hb-atomic-private.hh | 21 +++++++++++++++++++++
+ 1 file changed, 21 insertions(+)
+
+commit cdafe3a7d8483ac586e2c16487e2a09164e0f65c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 16:34:49 2012 -0400
+
+    Add gcc intrinsics implementations for atomic and mutex
+
+ configure.ac            |  4 ++--
+ src/hb-atomic-private.hh | 11 +++++++++--
+ src/hb-mutex-private.hh  | 51
+ +++++++++++++++++++++++++++++++++++++++++-------
+ src/hb-object-private.hh |  4 +++-
+ src/hb-warning.cc       | 14 ++++++-------
+ 5 files changed, 65 insertions(+), 19 deletions(-)
+
+commit d970d2899b36a2fbd002b224b8bd37b0906fdd5f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 16:06:28 2012 -0400
+
+    Add gcc implementation for atomic ops
+
+ src/hb-atomic-private.hh | 9 +++++++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
+
+commit 0e253e97af71e2a7ead153589f61fd579a247502
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 15:37:19 2012 -0400
+
+    Add a mutex to object header
+
+    Removes one more static-initialization.  A few more to go.
+
+ src/hb-common.cc        | 24 +++++++++---------------
+ src/hb-mutex-private.hh  | 19 +++++++------------
+ src/hb-object-private.hh | 36 ++++++++++++++++++++++--------------
+ src/hb-private.hh       | 11 +++++------
+ 4 files changed, 43 insertions(+), 47 deletions(-)
+
+commit a2b471df821b32625d127f83b2f90e6d6a967e7e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 15:17:44 2012 -0400
+
+    Remove static initializers from indic
+
+ src/hb-ot-shape-complex-indic.cc | 50
+ +++++++++++++++++++++++++++++++---------
+ 1 file changed, 39 insertions(+), 11 deletions(-)
+
+commit f06ab8a4262c759b4723614fd28f55ee77aa8466
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 12:31:51 2012 -0400
+
+    Better hide nil objects and make them const
+
+ src/hb-blob.cc                   | 34 +++++++++++------------
+ src/hb-buffer.cc         | 39 +++++++++++++-------------
+ src/hb-font.cc                   | 70
+ +++++++++++++++++++++++------------------------
+ src/hb-ft.cc             | 49 +++++++++++++++------------------
+ src/hb-glib.cc                   | 25 ++++++++---------
+ src/hb-icu.cc            | 25 ++++++++---------
+ src/hb-set.cc            | 16 +++++------
+ src/hb-unicode-private.hh | 11 ++++----
+ src/hb-unicode.cc        | 34 +++++++++++------------
+ 9 files changed, 146 insertions(+), 157 deletions(-)
+
+commit bf93b636c4963cbc32d5fba7ace1053db6719192
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 14:17:32 2012 -0400
+
+    Remove constructor from hb_prealloced_array_t
+
+    This was causing all object types to be non-POD and have static
+    initializers.  We don't need that!
+
+    Now, most nil objects just moved from .bss to .data.  Fixing for that
+    coming soon.
+
+ src/hb-object-private.hh | 3 +++
+ src/hb-private.hh       | 4 +++-
+ src/hb-set-private.hh   | 1 +
+ 3 files changed, 7 insertions(+), 1 deletion(-)
+
+commit 7037291aacb858f8090fd7d9028c196cc1a21703
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 13:30:11 2012 -0400
+
+    Check for atexit()
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit f1971a217424bd6db5c7072ba5cf197f318d4e47
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 5 13:04:20 2012 -0400
+
+    Fix warnings
+
+ src/indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b0a6e58bb3dda72dcce37d54d987591630a3db6c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jun 4 10:21:22 2012 -0400
+
+    s/script-punjabi/script-gurmukhi/
+
+ .../texts/in-tree/shaper-indic/indic/MANIFEST     |   2 +-
+ .../shaper-indic/indic/script-gurmukhi/MANIFEST    |  2 +
+ .../indic/script-gurmukhi/misc/MANIFEST           |   1 +
+ .../indic/script-gurmukhi/misc/misc.txt           |   1 +
+ .../indic/script-gurmukhi/utrrs/LICENSE           |  19 +++
+ .../indic/script-gurmukhi/utrrs/MANIFEST          |   3 +
+ .../indic/script-gurmukhi/utrrs/README                    |  13 ++
+ .../indic/script-gurmukhi/utrrs/SOURCES           |   2 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |  38 ++++++
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  9 ++
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 ++
+ .../IndicFontFeatureCodepoint-GurmukhiSpecific.txt |  6 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  10 ++
+ .../IndicFontFeatureCodepoint-Reserved.txt        |   2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |  6 +
+ .../indic/script-gurmukhi/utrrs/codepoint/MANIFEST |  7 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  22 +++
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  2 +
+ .../indic/script-gurmukhi/utrrs/gpos/MANIFEST     |   2 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           | 152
+ +++++++++++++++++++++
+ .../indic/script-gurmukhi/utrrs/gsub/MANIFEST     |   1 +
+ .../shaper-indic/indic/script-punjabi/MANIFEST     |  2 -
+ .../indic/script-punjabi/misc/MANIFEST                    |   1 -
+ .../indic/script-punjabi/misc/misc.txt                    |   1 -
+ .../indic/script-punjabi/utrrs/LICENSE                    |  19 ---
+ .../indic/script-punjabi/utrrs/MANIFEST           |   3 -
+ .../shaper-indic/indic/script-punjabi/utrrs/README |  13 --
+ .../indic/script-punjabi/utrrs/SOURCES                    |   2 -
+ .../IndicFontFeatureCodepoint-Consonants.txt      |  38 ------
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  9 --
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 --
+ .../IndicFontFeatureCodepoint-GurmukhiSpecific.txt |  6 -
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  10 --
+ .../IndicFontFeatureCodepoint-Reserved.txt        |   2 -
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |  6 -
+ .../indic/script-punjabi/utrrs/codepoint/MANIFEST  |  7 -
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  22 ---
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  2 -
+ .../indic/script-punjabi/utrrs/gpos/MANIFEST      |   2 -
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           | 152
+ ---------------------
+ .../indic/script-punjabi/utrrs/gsub/MANIFEST      |   1 -
+ 41 files changed, 309 insertions(+), 309 deletions(-)
+
+commit c1885483120d4b686b2fe95b217dce7248e040b1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jun 4 08:56:00 2012 -0400
+
+    Add --verbose to hb-shape
+
+    Just turns all --show-* options on.
+
+ util/options.cc | 11 +++++++++++
+ util/options.hh |  1 -
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+commit 9fc7a11469113d31d8095757c4fc038c3427d44a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jun 4 08:28:19 2012 -0400
+
+    Remove comma at the end of enum
+
+    As reported by Jonathan Kew on the list.
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 3b8fd9c48f4bde368bf2d465c148b9743a9216ee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jun 3 15:54:19 2012 -0400
+
+    Remove const from ref_count.ref_count
+
+    According to Tom Hacohen this was breaking build with some compilers.
+
+    In file included from hb-buffer-private.hh:35:0,
+                    from hb-ot-map-private.hh:32,
+                    from hb-ot-shape-private.hh:32,
+                    from hb-ot-shape.cc:29:
+    hb-object-private.hh: In constructor
+    '_hb_object_header_t::_hb_object_header_t()':
+    hb-object-private.hh:97:8: error: uninitialized const member in
+    'struct hb_reference_count_t'
+    hb-object-private.hh:51:25: note: 'hb_reference_count_t::ref_count'
+    should be initialized
+    In file included from hb-ot-shape.cc:33:0:
+    hb-set-private.hh: In constructor '_hb_set_t::_hb_set_t()':
+    hb-set-private.hh:37:8: note: synthesized method
+    '_hb_object_header_t::_hb_object_header_t()' first required here
+    hb-ot-shape.cc: In function 'void
+    hb_ot_shape_glyphs_closure(hb_font_t*, hb_buffer_t*, const
+    hb_feature_t*, unsigned int, hb_set_t*)':
+    hb-ot-shape.cc:521:12: note: synthesized method
+    '_hb_set_t::_hb_set_t()' first required here
+
+ src/hb-object-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 70600dbf626808a30fb0fd8b7ae860e64d9ffe87
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jun 3 15:52:51 2012 -0400
+
+    Minor
+
+ src/hb-object-private.hh | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+commit ae62166519291057316a9d15cea3f1570fcb5eaf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 2 12:21:19 2012 -0400
+
+    [util] Minor
+
+ util/options.cc       |  4 +---
+ util/options.hh       | 26 ++++++++++++++------------
+ util/shape-consumer.hh |  4 +++-
+ 3 files changed, 18 insertions(+), 16 deletions(-)
+
+commit 5db0683a822f70c914468430cda6487cee740ae3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jun 2 12:13:08 2012 -0400
+
+    [util] Make hb-shape continue shaping other lines if shapers failed
+
+ util/hb-ot-shape-closure.cc | 3 +++
+ util/hb-shape.cc           | 36 +++++++++++++++++++++++++------
+ util/main-font-text.hh      | 2 +-
+ util/options.cc            | 34 ++++++++++++++++++++++-------
+ util/options.hh            | 33 ++++++++++++++--------------
+ util/shape-consumer.hh      | 17 ++++++++++++---
+ util/view-cairo.cc         | 47 +++++++---------------------------------
+ util/view-cairo.hh         | 52
+ +++++++++++++++++++++++++++++++++++++++------
+ 8 files changed, 143 insertions(+), 81 deletions(-)
+
+commit 96a9ef0c9fca8d58d8dc6baf6b262d96587abee0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 1 13:46:26 2012 -0400
+
+    Remove tab character like other "zero-width" characters
+
+    Uniscribe does that, this make comparing results to Uniscribe
+    easier.
+
+ src/hb-unicode-private.hh | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit cd6a5493411fea30a04466128e1a37b4d89c6a72
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 1 13:45:25 2012 -0400
+
+    Remove unused variable
+
+ util/hb-ot-shape-closure.cc | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 0558d55bac7fb9279aac859b465e7c0e3ad97492
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 28 10:46:47 2012 -0400
+
+    Remove hb_atomic_int_set/get()
+
+    We never use them in fact...
+
+    I'm just adjusting these as I better understand the requirements of
+    the code and the guarantees of each operation.
+
+ src/hb-atomic-private.hh |  8 --------
+ src/hb-object-private.hh | 12 +++++-------
+ 2 files changed, 5 insertions(+), 15 deletions(-)
+
+commit 4efdffec095e19ceeb4b319d60201e84ece30fd9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 27 22:39:48 2012 -0400
+
+    Minor Malayalam test case
+
+    From https://bugs.freedesktop.org/show_bug.cgi?id=45166
+
+ .../texts/in-tree/shaper-indic/indic/script-malayalam/misc/misc.txt
+ | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit dfff5b3021016d3a472c100272fd8e2f52307860
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 27 22:07:04 2012 -0400
+
+    Add Myanmar test case
+
+ test/shaping/texts/in-tree/shaper-indic/south-east-asian/MANIFEST
+ | 1 +
+ .../texts/in-tree/shaper-indic/south-east-asian/script-myanmar/MANIFEST
+ | 1 +
+ .../in-tree/shaper-indic/south-east-asian/script-myanmar/misc/MANIFEST
+ | 1 +
+ .../in-tree/shaper-indic/south-east-asian/script-myanmar/misc/misc.txt
+ | 1 +
+ 4 files changed, 4 insertions(+)
+
+commit bce095524b3e69a47f8e88a2fb02d6ab537f9b0a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 27 11:29:21 2012 -0400
+
+    Add hb_font_get_glyph_name() and hb_font_get_glyph_from_name()
+
+ TODO                       |  1 +
+ src/hb-font-private.hh      | 2 ++
+ src/hb-font.cc                     | 80
+ +++++++++++++++++++++++++++++++++++----------
+ src/hb-font.h              | 28 ++++++++++++++++
+ src/hb-ft.cc               | 52 ++++++++++++++++++++++++-----
+ util/hb-ot-shape-closure.cc | 9 ++---
+ util/options.cc            | 10 ++----
+ 7 files changed, 142 insertions(+), 40 deletions(-)
+
+commit bc145658bdaeaeea0cdbd719e2756f09a2dbfb48
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 27 10:45:57 2012 -0400
+
+    Warn if no Unicode functions implementation is found
+
+ src/hb-unicode-private.hh |  1 +
+ src/hb-warning.cc        | 13 +++++++++++++
+ 2 files changed, 14 insertions(+)
+
+commit a3547330fa88e30a138f6f17e60d9c7d1e316622
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 27 10:20:47 2012 -0400
+
+    Cleanup atomic ops on OS X
+
+ src/hb-atomic-private.hh | 7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+
+commit e4b6d503c5575ddbf49249e3fef693d75ae75170
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 27 10:11:13 2012 -0400
+
+    Don't use atomic ops in hb_cache_t
+
+    We don't care about linearizability, so unprotected int read/write
+    are enough, no need for expensive memory barriers. It's a cache,
+    that's all.
+
+ src/hb-cache-private.hh | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 819faa05307aa192015f4b43d8103a35e87d6cc7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 27 10:09:18 2012 -0400
+
+    Minor
+
+ src/hb-atomic-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 303d5850ec0516e198db241456b0cfc4899ef9c0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 27 10:01:13 2012 -0400
+
+    Fix Windows atomic get/set
+
+    According to:
+    http://msdn.microsoft.com/en-us/library/65tt87y8.aspx
+
+    MemoryBarrier() is the right macro to protect these, not
+    _ReadBarrier()
+    and/or _WriteBarrier().
+
+ src/hb-atomic-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 8f8956a55fff95e5ad529d2f124c9528d1f4f81d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 25 14:30:24 2012 -0400
+
+    [util] Add hidden --shaper that is equivalent of --shapers
+
+ util/helper-cairo.cc | 2 +-
+ util/options.cc      | 6 +++++-
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+commit 29ce446d3161b7ea5874352e5f8eb33cd59338c3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 25 14:17:54 2012 -0400
+
+    Add set iterator
+
+ src/hb-set-private.hh      | 26 +++++++++++++++++++++++---
+ src/hb-set.cc              |  7 +++++++
+ src/hb-set.h               | 11 +++++++++--
+ util/hb-ot-shape-closure.cc | 8 +++++---
+ 4 files changed, 44 insertions(+), 8 deletions(-)
+
+commit 62c3e111fce0ad34960871134c2eb6da572df303
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 25 13:48:00 2012 -0400
+
+    Add set symmetric difference
+
+ src/hb-set-private.hh | 5 +++++
+ src/hb-set.cc        | 7 +++++++
+ src/hb-set.h         | 6 ++++++
+ 3 files changed, 18 insertions(+)
+
+commit 27aba594c90b4444c35273a38f5fedc8e09d9a88
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 24 15:00:01 2012 -0400
+
+    Minor
+
+ src/hb-ot-shape-complex-indic-machine.rl | 2 +-
+ src/hb-ot-shape-complex-indic.cc        | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit cde1c0114ba66a45d907e81a49bf625e0dc946b0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 24 10:46:39 2012 -0400
+
+    Fix hb_atomic_int_set() implementation for HB_NO_MT
+
+    As pointed out by Jonathan Kew.
+
+ src/hb-atomic-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 3b9b7133bea787f787170beea073f185e36d2327
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 23 22:00:25 2012 -0400
+
+    Update TODO
+
+ TODO | 18 ++++++++++++++++--
+ 1 file changed, 16 insertions(+), 2 deletions(-)
+
+commit ff3524c21aabf5d0d6014d1ce1b3e12ca5f0990f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 23 21:50:43 2012 -0400
+
+    Add Arabic diacritics tests
+
+ .../shaper-arabic/script-arabic/misc/MANIFEST     |   2 +-
+ .../script-arabic/misc/diacritics/MANIFEST        |   5 +
+ .../script-arabic/misc/diacritics/lam-alef.txt     |  28 +
+ .../misc/diacritics/language-arabic.txt           | 695
+ +++++++++++++++++++++
+ .../misc/diacritics/language-persian.txt          |  48 ++
+ .../misc/diacritics/language-urdu.txt             | 188 ++++++
+ .../misc/diacritics/ligature-diacritics.txt       |   1 +
+ .../script-arabic/misc/ligature-diacritics.txt     |  1 -
+ 8 files changed, 966 insertions(+), 2 deletions(-)
+
+commit ed2f1363a391add41f10cff18792003583a10257
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 22 22:12:22 2012 -0400
+
+    Fix substitution glyph class propagation
+
+    The old code was doing nothing.
+
+    Still got to find an example font+string that makes this matter, but
+    need this for fixing synthetic GDEF anyway.
+
+ src/hb-ot-layout-gsub-table.hh       | 10 ++++------
+ src/hb-ot-layout-gsubgpos-private.hh | 23 ++++++-----------------
+ 2 files changed, 10 insertions(+), 23 deletions(-)
+
+commit a6de53664df9549a5dc93752647ea1d3bb336f7b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 18 15:04:35 2012 -0400
+
+    Add CJK Compatibility Ideographs tests
+
+    From:
+    http://people.mozilla.org/~jdaggett/tests/cjkcompat.html
+
+ test/shaping/texts/in-tree/shaper-default/MANIFEST |  3 +-
+ .../in-tree/shaper-default/script-han/MANIFEST     |  1 +
+ .../shaper-default/script-han/misc/MANIFEST       |  1 +
+ .../shaper-default/script-han/misc/cjk-compat.txt  |  3 ++
+ .../shaper-default/script-hiragana/MANIFEST       |  1 +
+ .../shaper-default/script-hiragana/misc/MANIFEST   |  2 +
+ .../script-hiragana/misc/kazuraki-liga-lines.txt   |  8 ++++
+ .../script-hiragana/misc/kazuraki-liga.txt        | 53
+ ++++++++++++++++++++++
+ .../shaper-default/script-japanese/MANIFEST       |  1 -
+ .../shaper-default/script-japanese/misc/MANIFEST   |  2 -
+ .../script-japanese/misc/kazuraki-liga-lines.txt   |  8 ----
+ .../script-japanese/misc/kazuraki-liga.txt        | 53
+ ----------------------
+ 12 files changed, 71 insertions(+), 65 deletions(-)
+
+commit 20fdb0f41d81b226e076a4830d4b0d03da31fc19
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 17 22:04:45 2012 -0400
+
+    Add a lock-free cache type for int->int functions
+
+    To be used for cmap and advance caching if desired.
+
+ TODO                   |  2 ++
+ src/Makefile.am        |  1 +
+ src/hb-cache-private.hh | 72
+ +++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-font.cc                 |  2 ++
+ 4 files changed, 77 insertions(+)
+
+commit bd908b4f102b5ae18a3ad4a8b137994cf74b86ce
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 17 22:02:08 2012 -0400
+
+    Implement hb_atomic_int_set() for OS X
+
+ src/hb-atomic-private.hh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 022a05ae90f30bcddff413022e0cd801809b5390
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 17 21:53:24 2012 -0400
+
+    Minor
+
+ src/hb-atomic-private.hh | 4 +++-
+ src/hb-mutex-private.hh  | 4 +++-
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+commit 22afd66a30d01b6771405e76777306f600807bea
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 17 21:23:49 2012 -0400
+
+    Add hb_atomic_int_set() again
+
+ src/hb-atomic-private.hh | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+commit 4aa7258cb16176a89e1547fee8f86571fdd98307
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 17 21:01:04 2012 -0400
+
+    Fix type conflicts on Windows without glib
+
+ src/hb-tt-font.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit f039e79d5438a8fc4a3ec11a387bbfc0f6b83024
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 17 20:55:12 2012 -0400
+
+    Don't use min/max as function names
+
+    They can be macros on some systems.  Eg. mingw32.
+
+ src/hb-set-private.hh | 4 ++--
+ src/hb-set.cc        | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+commit 34961e3198e27fa37fd4cfdad12ef86a2e9e51c2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 17 20:50:38 2012 -0400
+
+    Prefer native atomic/mutex ops to glib's
+
+ src/hb-atomic-private.hh | 29 ++++++++++++++++-------------
+ src/hb-mutex-private.hh  | 24 ++++++++++++++----------
+ 2 files changed, 30 insertions(+), 23 deletions(-)
+
+commit ec3ba4b96fc4f262db1ff9f906628c32f26c9b7d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 17 20:30:46 2012 -0400
+
+    Move atomic ops into their own header
+
+ src/Makefile.am         |  1 +
+ src/hb-atomic-private.hh | 78
+ ++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-mutex-private.hh  |  1 -
+ src/hb-object-private.hh | 52 ++------------------------------
+ src/hb-warning.cc       |  2 +-
+ 5 files changed, 82 insertions(+), 52 deletions(-)
+
+commit de0878395be5c72d7058faac8f64715bdd42eb3b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 17 20:15:49 2012 -0400
+
+    Update TODO
+
+ TODO | 12 ++++++++----
+ 1 file changed, 8 insertions(+), 4 deletions(-)
+
+commit c87b317f0eb118e67134e8e419a6d65e0fa40d30
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 15 23:53:18 2012 -0400
+
+    [util] Add hb-ot-shape-closure tool
+
+    Computes all the glyphs that may be generated given a font and
+    set of Unicode characters.
+
+    The order of the Unicode characters is irrelevant.
+
+    Sample output:
+
+    behdad:util 0$ ./hb-ot-shape-closure Doulos\ SIL\ Regular.ttf f
+    f f_f
+
+    behdad:util 0$ ./hb-ot-shape-closure Doulos\ SIL\ Regular.ttf i
+    i
+
+    behdad:util 0$ ./hb-ot-shape-closure Doulos\ SIL\ Regular.ttf fi
+    f f_i f_f_i f_f i
+
+    behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf ب
+    uni0628 uni0628.init uni0628.medi uni0628.fina
+
+    behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf ا
+    uni0627 uni0627.fina
+
+    behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf با
+    uni0627 uni0627.fina uni0628 uni0628.init uni0628.medi uni0628.fina
+
+    behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf با
+    --no-glyph-names
+    5 6 133 134 135 136
+
+ configure.ac               |   2 +-
+ util/Makefile.am           |  22 ++++++---
+ util/hb-ot-shape-closure.cc | 112
+ ++++++++++++++++++++++++++++++++++++++++++++
+ util/options.hh            |  12 +++++
+ 4 files changed, 140 insertions(+), 8 deletions(-)
+
+commit 45675e589e6ef9f81b2a4199cf33e3e7778433a8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 15 23:10:39 2012 -0400
+
+    [util] Refactor to accommodate for upcoming new tool
+
+ util/Makefile.am      | 10 ++++---
+ util/hb-shape.cc      | 70 +++++++++++++++++++------------------------
+ util/hb-view.cc       |  8 +++--
+ util/hb-view.hh       | 80
+ --------------------------------------------------
+ util/main-font-text.hh | 80
+ ++++++++++++++++++++++++++++++++++++++++++++++++++
+ util/shape-consumer.hh | 69 +++++++++++++++++++++++++++++++++++++++++++
+ 6 files changed, 191 insertions(+), 126 deletions(-)
+
+commit 1d6846db9ebf84561bb30a4e48c6c43184914099
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 18:09:29 2012 +0200
+
+    [Indic] Apply vatu feature after cjct
+
+    Testing with old Deva spec this reduces failures.
+    Test sequence: U+0915,U+094D,U+0930.
+
+ src/hb-ot-shape-complex-indic.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 8caf5dcd66550351c6038b9ae7ecc5254eed64ff
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 17:10:18 2012 +0200
+
+    Minor
+
+ util/ansi-print.cc | 67
+ +++++++++++++++++++++++++++---------------------------
+ 1 file changed, 33 insertions(+), 34 deletions(-)
+
+commit 617f4ac46f1084859d2034c08760e31e52d3bec3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 16:48:03 2012 +0200
+
+    Refactor
+
+ src/hb-ot-shape-complex-indic.cc | 44
+ +++++++++++++++++++++-------------------
+ 1 file changed, 23 insertions(+), 21 deletions(-)
+
+commit 5e4e21fce4b548b0b8a5951bc8f35a9f27428192
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 16:46:08 2012 +0200
+
+    Revert "[Indic] Refactoring"
+
+    This reverts commit 0831061efb78983b9c6e1e72574c977e56383c08.
+
+ src/hb-ot-shape-complex-indic.cc | 28 ++++++++--------------------
+ 1 file changed, 8 insertions(+), 20 deletions(-)
+
+commit 3f18236a03880c0960f5990dc90685f6146951a6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 16:20:10 2012 +0200
+
+    Fix more warnings
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ src/hb-ot-layout-gsub-table.hh     | 2 +-
+ src/hb-ot-shape-complex-indic.cc   | 8 ++++----
+ 3 files changed, 6 insertions(+), 6 deletions(-)
+
+commit 9f377ed3210fe7d9f15e0c4f82020556f9a8f6f0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 16:13:44 2012 +0200
+
+    Fix more unused-var warnings
+
+ src/hb-ot-shape-complex-arabic.cc |  7 +++++--
+ src/hb-ot-shape-complex-indic.cc  | 25 ++++++++++++++++++-------
+ src/hb-ot-shape-complex-misc.cc   | 21 +++++++++++++++------
+ src/hb-ot-shape-normalize.cc     | 13 ++++++-------
+ src/hb-set.cc                    |  2 +-
+ 5 files changed, 45 insertions(+), 23 deletions(-)
+
+commit d993e72331c6c4c783b803e01e4d4a02c8e3eb77
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 16:04:36 2012 +0200
+
+    Fix hb_face_set_index()
+
+ src/hb-font.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 93345edcbea49bdf0e22f26b5b74a23e601dfab4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 16:01:08 2012 +0200
+
+    Fix warnings
+
+ src/hb-fallback-shape.cc |  4 ++--
+ src/hb-private.hh       | 54
+ ++++++++++++++++++++++++------------------------
+ 2 files changed, 29 insertions(+), 29 deletions(-)
+
+commit eace47b173807d94b29a6490d0bc3c9f8f6168d1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 15:54:43 2012 +0200
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 99c2695759a6af855d565f4994bbdf220570bb48
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 15:45:18 2012 +0200
+
+    Add accessort to buffer for current info, current pos, and prev info
+
+ src/hb-buffer-private.hh            |  9 ++++++++
+ src/hb-ot-layout-gpos-table.hh       | 44
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-gsub-table.hh       | 28 +++++++++++------------
+ src/hb-ot-layout-gsubgpos-private.hh | 28 +++++++++++------------
+ src/hb-ot-shape-complex-arabic.cc    |  4 ++--
+ src/hb-ot-shape-complex-misc.cc      |  5 ++--
+ src/hb-ot-shape-normalize.cc        | 16 ++++++-------
+ src/hb-ot-shape.cc                  |  8 +++----
+ 8 files changed, 76 insertions(+), 66 deletions(-)
+
+commit 6736f3c5b09af6a71935afc04248b033e171a9b2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 15:21:06 2012 +0200
+
+    Minor
+
+ src/hb-ot-layout-gsubgpos-private.hh | 7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+
+commit 5df809b655bb1318115651fd87d4555cdd9b41cb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 15:17:51 2012 +0200
+
+    [GSUB/GPOS] Remove context_length
+
+    The spec doesn't say contextual matching should be done this way,
+    and AOTS doesn't do it either.  It was inherited from old HarfBuzz.
+    Remove it.
+
+ src/hb-ot-layout-common-private.hh   |  1 -
+ src/hb-ot-layout-gpos-table.hh       |  3 ---
+ src/hb-ot-layout-gsub-table.hh       |  6 ++----
+ src/hb-ot-layout-gsubgpos-private.hh | 32
+ +++++++++++---------------------
+ 4 files changed, 13 insertions(+), 29 deletions(-)
+
+commit 28b9d502bb69a8045818d5f6113ded9c59a56bd7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 15:04:00 2012 +0200
+
+    Minor
+
+ src/hb-ot-layout-gsubgpos-private.hh | 11 +++++------
+ 1 file changed, 5 insertions(+), 6 deletions(-)
+
+commit 50f630c17ced1bd59b4da4f27728dcfbb876400a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 13:03:44 2012 +0200
+
+    Remove ioctl checks
+
+    Ended up not using terminal size after all.
+
+ configure.ac      |  2 +-
+ util/ansi-print.cc | 11 -----------
+ 2 files changed, 1 insertion(+), 12 deletions(-)
+
+commit db0de7cd616e1e9d6fde6659e52a541477fb0148
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 13:02:38 2012 +0200
+
+    [util] Set ansi color only on color change
+
+ util/ansi-print.cc | 28 +++++++++++++++++++++++-----
+ 1 file changed, 23 insertions(+), 5 deletions(-)
+
+commit 912c5ff80a255edb8145b9db69e2ed828f8eab5c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 12:51:02 2012 +0200
+
+    Reduce default margin
+
+ util/options.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 52e7b1424a3613122e9ca30879298df42733acda
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 02:02:58 2012 +0200
+
+    [util] Make hb-view print out Unicode art if stdout is a terminal
+
+ configure.ac             |   4 +-
+ util/Makefile.am         |   4 +
+ util/ansi-print.cc       | 411
+ ++++++++++++++++++++++++++++++++++++++++++++++
+ util/ansi-print.hh       |  39 +++++
+ util/helper-cairo-ansi.cc | 102 ++++++++++++
+ util/helper-cairo-ansi.hh |  39 +++++
+ util/helper-cairo.cc     |  70 +++++++-
+ util/options.hh          |   3 +
+ 8 files changed, 668 insertions(+), 4 deletions(-)
+
+commit 8b2753ce2bea8a21ea757186d86dc4a55d8c8b0c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 13 00:54:07 2012 +0200
+
+    Minor
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 30874b4819a99cc84fa39e794266685e1b8735d2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 12 15:54:27 2012 +0200
+
+    [util] Make tools default to stdin if no text is provided
+
+    One less argument to type in typical testing workflow!
+
+ util/hb-view.hh |  4 +++-
+ util/options.cc | 12 +++++-------
+ util/options.hh |  2 +-
+ 3 files changed, 9 insertions(+), 9 deletions(-)
+
+commit 2097951110e33fe091ed9515ae77e2683c46c889
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 12 15:41:48 2012 +0200
+
+    [util] Change default font size of hb-view to 256
+
+    Most common usecase of hb-view is to test rendering of short words for
+    testing / inspection.  Not having to type "--font-size 150" each time
+    isn't such a bad idea...
+
+ util/options.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 737dded2e08fcc19935db51c05201a987184d337
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 12 15:40:11 2012 +0200
+
+    Fix compiler warnings
+
+ src/hb-ot-shape-complex-indic.cc | 5 -----
+ 1 file changed, 5 deletions(-)
+
+commit f538fcb538f1decb4100ba89457eb83f2350d64b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 12 15:34:40 2012 +0200
+
+    [test] Make tool usage easier by not requiring "--stdin"
+
+    Just default to it.  Added "--help" instead to get usage.
+
+ test/shaping/hb_test_tools.py | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+commit a3273e30bb7ffd727ffc18af5716dfef705d3d94
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 12 13:34:18 2012 +0200
+
+    [Indic] Add more Malayalam tests
+
+ .../indic/script-malayalam/misc/misc.txt          | 38
+ ++++++++++++++++++++++
+ 1 file changed, 38 insertions(+)
+
+commit 7f852b644b8143492a02edfc853114aaa23446bd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 23:10:31 2012 +0200
+
+    Fix compiler warnings
+
+ src/hb-ot-shape-complex-indic.cc   | 2 +-
+ src/hb-ot-shape-complex-private.hh | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit f7e8dcfd4fc377e3d786b097beb656284240456d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 22:00:06 2012 +0200
+
+    [Indic] Unbreak Devanagari
+
+    And this, concludes the HarfBuzz Massala Hackfest.
+
+    I like to specially thank Jonathan Kew for doing all the decription
+    and
+    letting me get commit points.
+
+ configure.ac                            | 2 +-
+ src/hb-ot-shape-complex-indic-private.hh | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit 6a091df9b403b147ef78f3974610dedf4ce1e08a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 21:42:27 2012 +0200
+
+    [Indic] Disambiguate sub vs post vs above matras
+
+    Bengali is at *just* above 5% now.
+
+ src/hb-ot-shape-complex-indic-private.hh | 31
+ +++++++++++++++----------------
+ src/hb-ot-shape-complex-indic.cc        | 12 ++++++------
+ 2 files changed, 21 insertions(+), 22 deletions(-)
+
+commit 9d0d319a4a7e85d922e58fade0f40caae1c9f109
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 21:36:32 2012 +0200
+
+    [Indic] Position Bengali Reph before matras
+
+ src/hb-ot-shape-complex-indic.cc | 62
+ +++++++++++++++++++++++-----------------
+ 1 file changed, 36 insertions(+), 26 deletions(-)
+
+commit f89367251109af235f4f0446c13c261a5a4a6f72
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 21:10:03 2012 +0200
+
+    [Indic] Start categorizing Reph per script
+
+ src/hb-ot-shape-complex-indic.cc | 41
+ ++++++++++++++++++++++++++++++++++------
+ 1 file changed, 35 insertions(+), 6 deletions(-)
+
+commit a913b024d84973556094fd64ce5f0b7106fcc3b5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 20:59:26 2012 +0200
+
+    [Indic] Apply 'init' feature for Bengali
+
+    Error down from 20% to 7%.
+
+ src/hb-ot-shape-complex-indic.cc | 15 +++++++++++++++
+ 1 file changed, 15 insertions(+)
+
+commit eed903b1644e087178438959664a6a57bebc398b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 20:50:53 2012 +0200
+
+    [Indic] Refactor for the arrival of 'init' feature
+
+    Yep, on Bengali now!
+
+ src/hb-ot-shape-complex-indic.cc | 52
+ +++++++++++++++++++++++++++-------------
+ 1 file changed, 36 insertions(+), 16 deletions(-)
+
+commit 18c06e189bd078affbb84c3bb5bb80687a227c5e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 20:02:14 2012 +0200
+
+    [Indic] Add Uniscribe bug feature for dotted circle
+
+    For dotted-circle independent clusters, Uniscribe does no Reph shaping
+    for the exact sequence Ra+Halant+25CC.  Which also is the only
+    possible
+    sequence with 25CC at the end.
+
+ src/hb-ot-shape-complex-indic-machine.rl |  4 +++-
+ src/hb-ot-shape-complex-indic-private.hh |  3 ++-
+ src/hb-ot-shape-complex-indic.cc        | 20 ++++++++++++++++----
+ 3 files changed, 21 insertions(+), 6 deletions(-)
+
+commit 5b16de97bcc4b24da4c77ca6c1a42e814d8cdbd1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 19:55:42 2012 +0200
+
+    [Indic] Add tests for dottedcircle
+
+ .../in-tree/shaper-indic/indic/script-devanagari/misc/MANIFEST     | 1 +
+ .../shaper-indic/indic/script-devanagari/misc/dottedcircle.txt     |
+ 7 +++++++
+ 2 files changed, 8 insertions(+)
+
+commit 0831061efb78983b9c6e1e72574c977e56383c08
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 19:07:58 2012 +0200
+
+    [Indic] Refactoring
+
+ src/hb-ot-shape-complex-indic.cc | 26 ++++++++++++++++++--------
+ 1 file changed, 18 insertions(+), 8 deletions(-)
+
+commit 7ea58db311bfb0d8f804d1e9f4a1f004bd45075a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 18:58:57 2012 +0200
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 9c09928989316e2befe00d52ed66e055637ccd36
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 18:46:35 2012 +0200
+
+    [Indic] Allow multiple Consonants in Vowel/NBSP syllables
+
+    Uniscribe allows multiple Halant+Consonant after a Vowel.
+    Tests:
+    ↦       * U+0905,U+094D,U+092B,U+094D,930,94d,930
+
+ src/hb-ot-shape-complex-indic-machine.rl | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 8c0aa486f31e9b6cbb31ce295573b53b0a214124
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 18:13:42 2012 +0200
+
+    [Indic] Allow two Nuktas per consonant
+
+    Uniscribe allows up to two nuktas per consonant and one per matra. It
+    does so
+    indepent of whether the consonant already has a nukta in it.  Tests:
+
+           * U+0916,U+093C,U+0941
+           * U+0959,U+093C,U+0941
+           * U+0916,U+093C,U+093C,U+0941
+           * U+0959,U+093C,U+093C,U+0941
+           * U+0916,U+093C,U+093C,U+093C,U+0941
+           * U+0959,U+093C,U+093C,U+093C,U+0941
+           * 915,93c,93c,,94d,U+0916,U+093C,U+093C,U+093e,93c,93c
+
+ src/hb-ot-shape-complex-indic-machine.rl | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+commit 3399a06e7033651ee926448737bdb18e553c1796
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 17:54:26 2012 +0200
+
+    [Indic] Fix U+0952 and similar classification to match Uniscribe
+
+    See comments.
+
+ src/hb-ot-shape-complex-indic-machine.rl |  1 +
+ src/hb-ot-shape-complex-indic.cc        | 16 +++++++++++-----
+ 2 files changed, 12 insertions(+), 5 deletions(-)
+
+commit 11aa3ef18dbc6ac9561bd119f5ca2c1aa1209c3a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 17:30:48 2012 +0200
+
+    [Indic] Treat U+0951..U+0954 all similar to U+0952
+
+ src/hb-ot-shape-complex-indic.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 5f131d3226131df440d7f36655e57f6effcae204
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 17:29:40 2012 +0200
+
+    [GSUB/GPOS/Indic] Apply GSUB/GPOS within syllables only
+
+    This does not apply to the context matchings.
+
+    This regresses tests right now.  And we are not sure whether this is
+    the right thing to do for GPOS.  But we'll figure out.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 18 ++++++++++++------
+ 1 file changed, 12 insertions(+), 6 deletions(-)
+
+commit 8fd83aaf6e50c2c25002c51fee26d82847a61769
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 17:18:37 2012 +0200
+
+    [GSUB/GPOS] Fix wrong buffer access in backward skippy mask matching
+
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ff24d1081af08a887895975285d7e38f5d07bc37
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 17:07:08 2012 +0200
+
+    [Indic] Don't use syllable serial value 0
+
+ src/hb-ot-shape-complex-indic-machine.rl | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 892eb7878238d810a2a70f9dadbf958207bfeaa1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 16:54:40 2012 +0200
+
+    [Indic] Implement Uniscribe Reph+Matra+Halant bug feature
+
+ src/hb-ot-shape-complex-indic.cc | 14 +++++++++-----
+ 1 file changed, 9 insertions(+), 5 deletions(-)
+
+commit 67ea29af49bb08ee679914076808327992cf6676
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 16:51:23 2012 +0200
+
+    [Indic] Add example of different Uniscribe behavior
+
+ src/hb-ot-shape-complex-indic.cc | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit ebe29733d44fe0fa9fb30f946ab0dd7a40336a24
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 16:43:12 2012 +0200
+
+    [Indic] Add runtime Uniscribe bug compatibility mode!
+
+    Enable by setting envvar:
+
+      HB_OT_INDIC_OPTIONS=uniscribe-bug-compatible
+
+    Plus, LeftMatra+Halant "feature".
+
+ src/hb-ot-shape-complex-indic.cc | 44
+ ++++++++++++++++++++++++++++++----------
+ 1 file changed, 33 insertions(+), 11 deletions(-)
+
+commit 616e692e2950d326b6c46aba5b5bead3cc29d315
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 16:25:02 2012 +0200
+
+    [Indic] Add #define UNISCRIBE_BUG_COMPATIBLE 1
+
+ src/hb-ot-shape-complex-indic.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 6782bdae3be0357da1dadc7b806a43ceefa67a90
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 16:23:43 2012 +0200
+
+    [Indic] Fix Left Matra + Halant reordering
+
+    As can be seen in: U+092B,U+093F,U+094D
+
+ src/hb-ot-shape-complex-indic.cc | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit 3c2ea9481b1028e927e615a5434ebf8edcb5f891
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 16:23:38 2012 +0200
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 73
+ ++++++++++++++++++++--------------------
+ 1 file changed, 37 insertions(+), 36 deletions(-)
+
+commit c071b99f150a9344a2056dfeba8c613f8a5602db
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 16:22:46 2012 +0200
+
+    [Indic] Add test for Left Matra with Halant
+
+    Uniscribe doesn't move the Halant, we do.  And do a broken job of
+    it now.
+
+ .../shaper-indic/indic/script-devanagari/misc/tricky-reordering.txt
+ | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 203d71069c45048b6dd8fa22b61fd8f2c844b4f6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 16:01:44 2012 +0200
+
+    [GSUB/GPOS] Check all glyph masks when matching input
+
+ src/hb-ot-layout-gsubgpos-private.hh | 18 ++++++++++++------
+ 1 file changed, 12 insertions(+), 6 deletions(-)
+
+commit 668c6046c1b3af3bd316bda0cc8636f2a5e8df42
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 15:34:13 2012 +0200
+
+    [Indic] Apply Reph mask to all POS_REPH glyphs
+
+    Needed for upcoming changes to GSUB/GPOS mask matching.
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 4be46bade26faf13f7b4d447e9cc608e183955dc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 14:39:01 2012 +0200
+
+    [Indic] Fix state machine to backtrack
+
+ src/hb-ot-shape-complex-indic-machine.rl | 42
+ +++++++++++++++-----------------
+ src/hb-private.hh                       |  2 ++
+ 2 files changed, 21 insertions(+), 23 deletions(-)
+
+commit cee7187447b76b22e1bb6136d137b35ac49c3a5d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 11:41:39 2012 +0200
+
+    [Indic] Move syllable tracking from Indic to generic layer
+
+    This is to incorporate it into GSUB/GPOS processing.
+
+ src/hb-ot-layout-gpos-table.hh                  |  1 +
+ src/hb-ot-layout-gsub-table.hh                  |  3 ++-
+ src/hb-ot-layout-gsubgpos-private.hh    |  3 ---
+ src/hb-ot-layout-private.hh             |  4 +---
+ src/hb-ot-shape-complex-indic-machine.rl |  2 +-
+ src/hb-ot-shape-complex-indic-private.hh |  1 -
+ src/hb-ot-shape-complex-indic.cc        |  8 +++-----
+ src/hb-ot-shape-complex-private.hh      | 13 ++++++++-----
+ 8 files changed, 16 insertions(+), 19 deletions(-)
+
+commit 3bf27a9f0e92aa31b464bd3b9fdea5933c9ae8b1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 11:17:23 2012 +0200
+
+    [Indic] Disable conjuncts when a ZWJ happens
+
+    Not that the code makes any difference since the presence of ZWJ
+    itself
+    causes the ligature to fail to match anyway.
+
+ src/hb-ot-shape-complex-indic.cc | 7 +------
+ 1 file changed, 1 insertion(+), 6 deletions(-)
+
+commit c6d904d67db589dd6209928e56504f04f6a07756
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 11:07:40 2012 +0200
+
+    [Indic] Fix bitops typo!
+
+    Another 1000 down!
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 55fe2cf79b11d9a63ea33b3ee76bd0ebca345157
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 03:45:28 2012 +0200
+
+    Make APPLY debug output print current index and codepoint
+
+    Yay!
+
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 7bd2b04fea5649d77d796d58b7f4918fe0378ee5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 03:40:58 2012 +0200
+
+    Minor
+
+ src/hb-object-private.hh | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+commit cf26510dbbd8d38486e6ba423800db6427ade332
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 03:35:08 2012 +0200
+
+    Some more...
+
+    Done.  I promise.
+
+ src/hb-object-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 9659523ca32b0e254d0e5fe387d817208d9cb6bf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 03:33:36 2012 +0200
+
+    More beauty in debug output!
+
+ src/hb-private.hh | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+commit cf26e88a5ab477295479f5b9450c2019b6430eaa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 03:16:57 2012 +0200
+
+    Finish off debug output beautification
+
+ src/hb-open-type-private.hh | 58
+ ++++++++++++++++++++-------------------------
+ 1 file changed, 26 insertions(+), 32 deletions(-)
+
+commit d7bba01a353efc7432c474dd8755a02db4abd2ae
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 02:46:26 2012 +0200
+
+    Only print class name in debug output if there's one available
+
+ src/hb-private.hh | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+commit 85f73fa8da1fbb864aef0f3a592b1d65e24d593d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 02:40:42 2012 +0200
+
+    Only printout class name in tracing, if one is available
+
+    Makes debug output much more pleasant.
+
+ src/hb-private.hh | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+commit 98619ce4fa650c593b030d06d2f89fec83a10015
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 02:34:06 2012 +0200
+
+    Minor
+
+ src/hb-ot-layout-gsubgpos-private.hh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit acea183e986dd378c6f95120fe0feb0586a8ef36
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 02:33:11 2012 +0200
+
+    Add return annotation for APPLY
+
+ src/hb-ot-layout-gpos-table.hh       | 163
+ +++++++++++++++--------------------
+ src/hb-ot-layout-gsub-table.hh       | 114 +++++++++++-------------
+ src/hb-ot-layout-gsubgpos-private.hh |  83 ++++++++----------
+ 3 files changed, 151 insertions(+), 209 deletions(-)
+
+commit 5ccfe8e2154ad0b58dabcc236bbe9478c17b02ab
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 02:19:41 2012 +0200
+
+    /Minor/
+
+ src/hb-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 0ab8c8621712d33e1e91dfdb4ad0b335e3d2a3fb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 01:25:34 2012 +0200
+
+    Annotate SANITIZE return values
+
+    More to come, for APPLY, CLOSURE, etc.
+
+ src/hb-open-file-private.hh         |  23 ++---
+ src/hb-open-type-private.hh         |  49 +++++-----
+ src/hb-ot-head-table.hh             |   4 +-
+ src/hb-ot-hhea-table.hh             |   4 +-
+ src/hb-ot-hmtx-table.hh             |   4 +-
+ src/hb-ot-layout-common-private.hh   |  51 +++++-----
+ src/hb-ot-layout-gdef-table.hh       |  48 +++++-----
+ src/hb-ot-layout-gpos-table.hh       | 180
+ ++++++++++++++++-------------------
+ src/hb-ot-layout-gsub-table.hh       | 101 +++++++++-----------
+ src/hb-ot-layout-gsubgpos-private.hh |  88 ++++++++---------
+ src/hb-ot-maxp-table.hh             |   7 +-
+ src/hb-ot-name-table.hh             |  17 ++--
+ src/hb-private.hh                   |  39 ++++++--
+ 13 files changed, 299 insertions(+), 316 deletions(-)
+
+commit 829e814ff358c5e700ba4df54932696801aa9f65
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 00:52:16 2012 +0200
+
+    Minor
+
+ src/hb-private.hh | 32 ++++++++++----------------------
+ 1 file changed, 10 insertions(+), 22 deletions(-)
+
+commit 6eec6f406d2cc13dbca422e88492d3d498af02bf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 00:50:38 2012 +0200
+
+    Code reshuffling
+
+ src/hb-private.hh | 36 +++++++++++++++++++++++++-----------
+ 1 file changed, 25 insertions(+), 11 deletions(-)
+
+commit 1e08830b4fac3a60ae52349cab6e101d389d30cd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 11 00:16:40 2012 +0200
+
+    Beautify debug output
+
+ src/hb-open-type-private.hh | 20 ++++++------
+ src/hb-private.hh          | 74
+ +++++++++++++++++++++++++++------------------
+ 2 files changed, 55 insertions(+), 39 deletions(-)
+
+commit 6f4553801729a06e506ffdde7b27c72780d4bb80
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 23:24:43 2012 +0200
+
+    More massaging trace messaging
+
+ src/hb-open-type-private.hh         | 2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 4 ++--
+ src/hb-private.hh                   | 4 ++--
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+commit b5fa37cb694b01a7df3a656710391c40dd3fcc04
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 23:09:48 2012 +0200
+
+    Minor
+
+ src/hb-set-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 208109703c929428c684ddcf9310b8ba780c4c31
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 23:06:58 2012 +0200
+
+    Better trace message support infrastructure
+
+    We have varargs in the trace interface now.  To be used soon...
+
+ src/hb-open-type-private.hh         | 17 ++++------
+ src/hb-ot-layout-gsubgpos-private.hh |  4 +--
+ src/hb-private.hh                   | 64
+ ++++++++++++++++++++++++++----------
+ 3 files changed, 56 insertions(+), 29 deletions(-)
+
+commit 02b2922fbf098c8282eb23dc2c54d5829cf67024
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 21:44:50 2012 +0200
+
+    [Indic] Towards better Reph positioning
+
+    Fixed for Deva cases with two full-form consonants.  Failures **way**
+    down.
+    Not much left to go :-).
+
+ src/hb-ot-shape-complex-indic.cc | 111
+ ++++++++++++++++++++++++++++-----------
+ 1 file changed, 80 insertions(+), 31 deletions(-)
+
+commit 74e54cf446bb979e488685e8c09eeed6b9d03c24
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 21:20:37 2012 +0200
+
+    [Indic] Add Ra back for scripts without Reph
+
+    We now check that the 'rphp' table exists before forming Reph, so
+    we don't need to comment out Ra for those scripts.
+
+ src/hb-ot-shape-complex-indic-private.hh | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit 2b70df5cc008617453b12bafeaac50e6d61b3224
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 18:38:22 2012 +0200
+
+    [Indic] Add note re Uniscribe clusters
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 21d2803133c2c424ed37a9f3d17c7fc4963e5a60
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 18:34:34 2012 +0200
+
+    [Indic] Do clustering like Uniscribe does
+
+    Hindi Wikipedia failures down to 6639 (0.938381%)!
+
+ src/hb-ot-shape-complex-indic.cc | 24 ++++++++++++++++++++----
+ 1 file changed, 20 insertions(+), 4 deletions(-)
+
+commit b20c9ebaf5176101fdfcffbe4714a2e619dd94b6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 18:31:17 2012 +0200
+
+    [Indic] Add test for matra group
+
+    The spec says: "[{M}+[N]+[H]]", and that's what Uniscribe implements.
+    We instead do: "{M+[N]+[H]}", which means we allow Nukta and Halant
+    after all Matras, not just the last one.  It makes more sense.
+
+ .../texts/in-tree/shaper-indic/indic/script-devanagari/misc/MANIFEST
+ | 1 +
+ .../shaper-indic/indic/script-devanagari/misc/spec-deviations.txt
+ | 1 +
+ 2 files changed, 2 insertions(+)
+
+commit 8df5636968389ac7bf8620ccd091fd4872b0bbee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 15:41:04 2012 +0200
+
+    [Indic] Reorder Reph to before the Halant after Matras
+
+    Uniscribe doesn't do it, but we want to do as it gives the Reph the
+    opportunity to interact with the Matras.  Test with mangal for
+    example.
+    Sequence: <0930,094d,0915,094b,094d>
+    In test suite already.
+
+ src/hb-ot-shape-complex-indic.cc | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+commit daf3234bdc82c669302599a76d2b14f5e69989db
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 15:28:27 2012 +0200
+
+    [Indic] Don't clear the mask for Reph
+
+    This was removing the mandatory global 1 bit in the mask and hence
+    disabling GPOS for Reph!
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 7708ee23cbcc8c8edce13e73b6e549b77bd8c2d0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 14:48:25 2012 +0200
+
+    [Indic] Improve Left Matra repositioning
+
+    Move its dependents too.
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 61a58e26a5bda16851669404fc8206896e124740
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 14:43:53 2012 +0200
+
+    [Indic] Add tricky reordering test cases
+
+    In the case of Consonant,LeftMatra,Halant, Uniscribe leaves the Halant
+    where it is, but we want to move it with the Matra as that makes more
+    logical sense.
+
+ .../texts/in-tree/shaper-indic/indic/script-devanagari/misc/MANIFEST  |
+ 1 +
+ .../shaper-indic/indic/script-devanagari/misc/tricky-reordering.txt   |
+ 4 ++++
+ 2 files changed, 5 insertions(+)
+
+commit dbb105883c6e9b83e78dc8b10766cd56b98cd7e1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 13:45:52 2012 +0200
+
+    [Indic] Do Reph repositioning in final reordering like the spec says
+
+    This introduced a failure, which we tracked down to a test case
+    like this:
+
+      U+092E,U+094B,U+094D,U+0930
+
+    The final character is a Ra that should be put in a syllable of it's
+    own.  And we do.  But it will interact with the Halant before it.  So
+    now we finally are convinced that we have to limit features to
+    syllable
+    boundaries.  That's coming after lunch!
+
+ src/hb-ot-shape-complex-indic-private.hh |   2 -
+ src/hb-ot-shape-complex-indic.cc        | 103
+ +++++++++++++++++++------------
+ 2 files changed, 64 insertions(+), 41 deletions(-)
+
+commit 4705a7026900e51f6430f03a73c87f2df035df92
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 13:09:08 2012 +0200
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 4ac9e98d9d2ea973dd612dc4063cf78496c643a0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 12:53:53 2012 +0200
+
+    [Indic] Reorder left matras to be closer to base
+
+ src/hb-ot-shape-complex-indic-private.hh |  4 ---
+ src/hb-ot-shape-complex-indic.cc        | 50
+ +++++++++++++++++++++++++++++---
+ 2 files changed, 46 insertions(+), 8 deletions(-)
+
+commit 1a1fa8c655a082fc1439608457ba717306cc83ca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 12:20:21 2012 +0200
+
+    [Indic] Treat the standalone cluster case reusing the consonant logic
+
+ src/hb-ot-shape-complex-indic.cc | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+commit 190eb31a16178269aecaf5d2ecc9012f956749f4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 12:17:16 2012 +0200
+
+    [Indic] Minor
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit c5306b6861cfaa50af40e8ceb058791fa06d7981
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 12:07:33 2012 +0200
+
+    [Indic] Handle Vowel syllables
+
+    Reusing the consonant logic!
+
+ src/hb-ot-shape-complex-indic-private.hh |  3 +--
+ src/hb-ot-shape-complex-indic.cc        | 11 ++++++-----
+ 2 files changed, 7 insertions(+), 7 deletions(-)
+
+commit 6d8e0cb74c02f6bc09cd4abe9e4bc82062e1b517
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 11:41:51 2012 +0200
+
+    [Indic] Simplify Reph logic
+
+ src/hb-ot-shape-complex-indic.cc | 24 +++++-------------------
+ 1 file changed, 5 insertions(+), 19 deletions(-)
+
+commit 3d25079f8d6be81b9b4b91d3a97016b8a572f571
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 11:37:42 2012 +0200
+
+    [Indic] Don't form Reph is Ra is the only consonant in the syllable
+
+ src/hb-ot-shape-complex-indic-private.hh |  2 +-
+ src/hb-ot-shape-complex-indic.cc        | 10 ++++++++++
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+commit b99d63ae114fb58f129562b293a8a66543d499ad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 11:32:52 2012 +0200
+
+    [Indic] Increase max syllable length
+
+    20 was way too low, one could hit a syllable with 7ish consonants
+    with it.
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit a391ff50b9a7b6ac3e58d199ea726b20ee6839bb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 11:31:20 2012 +0200
+
+    [Indic] Adjust base after sorting
+
+ src/hb-ot-shape-complex-indic.cc | 11 ++++++++++-
+ 1 file changed, 10 insertions(+), 1 deletion(-)
+
+commit d3637edb248162970e202e9d0671540274192844
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 10 10:51:38 2012 +0200
+
+    [Indic] Don't return for long syllables.  Just not sort.
+
+ src/hb-ot-shape-complex-indic.cc | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+commit dfa0cade7fce3791e47eaa7edcd23da76c7a0ed0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 19:10:07 2012 +0200
+
+    Fix Uniscribe clusters with multiple items
+
+ src/hb-uniscribe.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 86e5dd386a7989701da476db89be268e4ac1e219
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 18:57:37 2012 +0200
+
+    [Indic] Don't give up syllable parsing upon junk
+
+ src/hb-ot-shape-complex-indic-machine.rl | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit ef24cc8c8e2478a6352c340f4611a617646de4cc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 17:56:03 2012 +0200
+
+    [Indic] Towards multi-cluster syllables and final reordering
+
+ src/hb-ot-shape-complex-arabic.cc       |  2 +-
+ src/hb-ot-shape-complex-indic-machine.rl | 21 ++++++++++-----
+ src/hb-ot-shape-complex-indic-private.hh |  1 +
+ src/hb-ot-shape-complex-indic.cc        | 45
+ +++++++++++++++++++++++---------
+ src/hb-ot-shape-complex-private.hh      |  5 ++--
+ 5 files changed, 51 insertions(+), 23 deletions(-)
+
+commit a9844d41c6cb30d8a2d733130a0e72f51b6c81c1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 17:53:13 2012 +0200
+
+    Combine lig_id and lig_comp into one byte, to free up one for Indic
+
+ src/hb-ot-layout-gpos-table.hh       | 14 ++++++++------
+ src/hb-ot-layout-gsub-table.hh       | 11 ++++-------
+ src/hb-ot-layout-gsubgpos-private.hh | 26 ++++++++++++++++++++++----
+ 3 files changed, 34 insertions(+), 17 deletions(-)
+
+commit 92332e5116271a5d96e532005fe750e7552a6cbb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 17:40:00 2012 +0200
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 41
+ ++++++++++++++++++++--------------------
+ 1 file changed, 21 insertions(+), 20 deletions(-)
+
+commit dbccf87eef0d26838fa4bb3ae26410f6c4818836
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 17:24:39 2012 +0200
+
+    [Indic] Make room for more reordering positions
+
+ src/hb-ot-shape-complex-indic-private.hh | 213
+ ++++++++++++++++---------------
+ src/hb-ot-shape-complex-indic.cc        |  12 +-
+ 2 files changed, 115 insertions(+), 110 deletions(-)
+
+commit d4480ace7fdbe48aeaf77278c032b8b2ef2ebe8e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 15:56:35 2012 +0200
+
+    [Indic] Improve matra vs consonant ordering
+
+    Another 1.5% down.
+
+ src/hb-ot-shape-complex-indic-private.hh | 32
+ ++++++++++++++++++++------------
+ src/hb-ot-shape-complex-indic.cc        |  6 +++---
+ src/indic.cc                            |  2 +-
+ 3 files changed, 24 insertions(+), 16 deletions(-)
+
+commit 33c92e769563ec2a6c1249b57d8cac742eea6f88
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 15:41:51 2012 +0200
+
+    [Indic] Categorize Anudatta
+
+ src/hb-ot-shape-complex-indic.cc | 9 +++++++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
+
+commit 3943293a9942201d8fc8d59212fcc8cca5132e3d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 15:27:56 2012 +0200
+
+    [Indic] Add joiner test cases for Devanagari
+
+ .../indic/script-devanagari/misc/MANIFEST            |  1 +
+ .../indic/script-devanagari/misc/joiners.txt         | 19
+ +++++++++++++++++++
+ 2 files changed, 20 insertions(+)
+
+commit 19d984edaa4f86c842345a9d4150597e045e1887
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 15:21:13 2012 +0200
+
+    [Indic] Make sure Reph jumps over all matras to the right
+
+    Another 12 thousand failures gone! (78 to go)
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 9034641333d7bfb41a0784cce72e43591faea083
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 15:04:58 2012 +0200
+
+    [Indic] Keep Vedic signs at the right too
+
+ src/hb-ot-shape-complex-indic.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit d1deaa2f5bd028e8076265cba92cffa4fa2834ac
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 15:04:13 2012 +0200
+
+    Replace zerowidth invisible chars with a zero-advance space glyph
+
+    Like Uniscribe does.
+
+ src/hb-ot-shape-complex-arabic.cc  |  3 ++-
+ src/hb-ot-shape-complex-indic.cc   | 20 -------------------
+ src/hb-ot-shape-complex-private.hh |  4 ++--
+ src/hb-ot-shape-normalize.cc      | 25 +++++++++--------------
+ src/hb-ot-shape-private.hh        | 27 +++++++++++++++++++++++++
+ src/hb-ot-shape.cc                | 41
+ +++++++++++++++++++++++++-------------
+ src/hb-unicode-private.hh         | 38
+ +++++++++++++++++++++++++++++++++++
+ 7 files changed, 105 insertions(+), 53 deletions(-)
+
+commit 49e5da1591b8d28f01e7ff9caac9d9ac53668bba
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 13:23:27 2012 +0200
+
+    [indic] Keep the syllable modifier marks to the right
+
+    Shaping failures on Hindi Wikipedia go down from 25% to 14%!
+
+ src/hb-ot-shape-complex-indic.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 5b1260909350bffa3e3d06da346f9f86ce651dbb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 12:37:27 2012 +0200
+
+    Minor
+
+ src/hb-ot-shape-complex-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 9ce939232bbce8f51e235195e3854d1e8bb961f8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 12:03:09 2012 +0200
+
+    Minor
+
+ src/hb-ot-shape-complex-indic-private.hh | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+commit 76b3409de6887c1cdd5c679939497b1b56f4554b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 11:43:43 2012 +0200
+
+    [indic] Better Reph matching
+
+ src/hb-ot-shape-complex-indic.cc | 21 +++++++++++++++------
+ 1 file changed, 15 insertions(+), 6 deletions(-)
+
+commit df6d45c693c417bf311e6fa49f18a8558542e525
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 11:38:31 2012 +0200
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 412b91889d9a1ae477e8b6907d0b9a76e78a6c91
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 11:07:18 2012 +0200
+
+    [indic] Apply Indic features in order
+
+ src/hb-ot-shape-complex-indic.cc | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+commit 1ac075b227090a9ad930dcc1670236c176b27067
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 11:06:47 2012 +0200
+
+    [indic] Apply rakaar forms
+
+    Fixes 10% of the failures against all of Hindi Wikipedia!
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 2214a03900d32710573a1b05c7665195b3129761
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 09:54:54 2012 +0200
+
+    Add hb-diff-ngrams
+
+ test/shaping/Makefile.am      |  1 +
+ test/shaping/hb-diff-ngrams   |  5 +++
+ test/shaping/hb_test_tools.py | 71
+ ++++++++++++++++++++++++++++++++++++++++---
+ 3 files changed, 72 insertions(+), 5 deletions(-)
+
+commit 178e6dce01ad28c8708bad62ce0fb79c46e836dc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 08:57:29 2012 +0200
+
+    Add N-gram generator
+
+ test/shaping/hb_test_tools.py | 72
+ +++++++++++++++++++++++++++++++++++++++++--
+ 1 file changed, 70 insertions(+), 2 deletions(-)
+
+commit 98669ceb77657d60435f2cb2e3fc18272c0a2c6a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 08:16:15 2012 +0200
+
+    Use groupby()
+
+ test/shaping/hb_test_tools.py | 26 ++++++++------------------
+ 1 file changed, 8 insertions(+), 18 deletions(-)
+
+commit c438a14b62433db488b5c90854a4a3934adf3305
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 07:45:17 2012 +0200
+
+    Add hb-diff-stat
+
+ test/shaping/Makefile.am      |  1 +
+ test/shaping/hb-diff-stat     |  5 +++++
+ test/shaping/hb_test_tools.py | 22 ++++++++++++++++++++--
+ 3 files changed, 26 insertions(+), 2 deletions(-)
+
+commit 1058d031e2046eb80331b0950eaff75c2bf608dc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 9 07:30:07 2012 +0200
+
+    Make hb-diff-filter-failtures retain all test info for failed tests
+
+ test/shaping/hb_test_tools.py | 33 ++++++++++++++++++++++++++-------
+ 1 file changed, 26 insertions(+), 7 deletions(-)
+
+commit f1eb008cc727370e1bd0dc32fdf301f62d9ff981
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 8 23:41:41 2012 +0200
+
+    Add hb-diff-colorize
+
+    Accepts --format=html now.
+
+ test/shaping/Makefile.am      |   1 +
+ test/shaping/hb-diff         |   4 +-
+ test/shaping/hb-diff-colorize |   7 ++
+ test/shaping/hb_test_tools.py | 158
+ +++++++++++++++++++++++++-----------------
+ 4 files changed, 106 insertions(+), 64 deletions(-)
+
+commit 9155e4ffe00c96a2c14e14a300004b1038ca3a9c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 8 22:44:21 2012 +0200
+
+    Cleanup diff
+
+    Doesn't do --color anymore.  That will go into a new hb-diff-colorize
+    tool.
+
+ test/shaping/hb-diff         | 10 +++-------
+ test/shaping/hb_test_tools.py | 32 ++++++++++++++++++--------------
+ 2 files changed, 21 insertions(+), 21 deletions(-)
+
+commit 7d22135b4c3f8fb70552302bf8239df9976dddda
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 8 19:38:49 2012 +0200
+
+    Make hb-diff faster
+
+ test/shaping/hb_test_tools.py | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit a93e238e05a2f70a6e664e5d04ba25bbd54493dc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 8 18:55:29 2012 +0200
+
+    More tests
+
+ .../texts/in-tree/shaper-arabic/script-mongolian/misc/MANIFEST |  1 +
+ .../texts/in-tree/shaper-arabic/script-mongolian/misc/poem.txt |  4 ++++
+ .../in-tree/shaper-indic/indic/script-bengali/misc/MANIFEST   |  1 +
+ .../in-tree/shaper-indic/indic/script-bengali/misc/reph.txt   |
+ 10 ++++++++++
+ 4 files changed, 16 insertions(+)
+
+commit 1a2a4a0078dda834443edd421037a4bcbad18c5e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 5 22:38:20 2012 +0200
+
+    Fix warning and build issues
+
+    As reported by Jonathan Kew on the list.
+
+ src/hb-set-private.hh | 2 +-
+ src/main.cc          | 9 +++++----
+ 2 files changed, 6 insertions(+), 5 deletions(-)
+
+commit a5e39fed85e069ba1afbf90408349ad99ceb0e1d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 25 00:14:46 2012 -0400
+
+    Minor
+
+ src/hb-set-private.hh | 2 ++
+ src/hb-set.cc        | 2 ++
+ 2 files changed, 4 insertions(+)
+
+commit 1827dc208c867e433a95237d1ed3fc7a73d1d9a7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 24 16:56:37 2012 -0400
+
+    Add hb_ot_shape_glyphs_closure()
+
+    Experimental API for now.
+
+ src/hb-ot-map-private.hh |  7 ++++---
+ src/hb-ot-shape.cc      | 35 +++++++++++++++++++++++++++++++++++
+ src/hb-ot.h             |  8 ++++++++
+ src/hb-set-private.hh   |  3 +++
+ 4 files changed, 50 insertions(+), 3 deletions(-)
+
+commit bb09f0ec10216b11189b5e8584856adf0f14d1fc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 24 16:02:12 2012 -0400
+
+    Minor
+
+ src/hb-unicode.cc | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 29a7e306e30e894f7a38daf73eca9fc772c58158
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 24 16:01:30 2012 -0400
+
+    Minor
+
+ src/hb-ot-shape-normalize.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 585b107cdee7305920dacc83c9ee1f8eeff7afd1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 24 16:00:50 2012 -0400
+
+    Add test caes for a minority language using Bengali
+
+    U+0985 BENGALI LETTER A followed by U+09D7 BENGALI AU LENGTH MARK.
+    According to Bobby de Vos on the mailing list, this results in
+    a dotted
+    circle with most shaping engines, but is a legitimate sequence in this
+    minority language.
+
+    We reached the consensus on the list to NOT implement dotted-circle
+    in HarfBuzz.
+
+ .../texts/in-tree/shaper-indic/indic/script-bengali/misc/misc.txt
+ | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 6c6ccaf575392f6e6bb9a15534026e4ea462705b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 24 14:21:15 2012 -0400
+
+    Add a few more set operations
+
+    TODO: Tests for hb_set_t.
+
+ src/hb-set-private.hh | 54
+ +++++++++++++++++++++++++++++++++++++++++++++++++-
+ src/hb-set.cc        | 55
+ +++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-set.h         | 34 ++++++++++++++++++++++++++++---
+ 3 files changed, 139 insertions(+), 4 deletions(-)
+
+commit 5caece67ab9eee322bdcdf6f4b607eadde297e56
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 23 23:03:12 2012 -0400
+
+    Make closure() return void
+
+ src/hb-ot-layout-gsub-table.hh       | 142 +++++++++++++-----------------
+ src/hb-ot-layout-gsubgpos-private.hh | 165
+ ++++++++++++++++++-----------------
+ src/hb-ot-layout.cc                 |  10 +--
+ src/hb-ot-layout.h                  |   8 +-
+ src/hb-set-private.hh               |  20 ++---
+ 5 files changed, 157 insertions(+), 188 deletions(-)
+
+commit 0b08adb3539f2ec29682456b89c69e89ff5e9c03
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 23 22:41:09 2012 -0400
+
+    Add hb_set_t
+
+ TODO                              |   2 +
+ src/Makefile.am                   |   3 +
+ src/hb-ot-layout-common-private.hh |  1 +
+ src/hb-ot-layout-private.hh       |  47 ---------------
+ src/hb-ot-layout.h                |   2 -
+ src/hb-set-private.hh             |  95 +++++++++++++++++++++++++++++
+ src/hb-set.cc                     | 120
+ +++++++++++++++++++++++++++++++++++++
+ src/hb-set.h                      |  91 ++++++++++++++++++++++++++++
+ src/hb.h                          |   1 +
+ 9 files changed, 313 insertions(+), 49 deletions(-)
+
+commit 5b93e8d94fb4c2474816304ae3f52e1c704882de
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 23 22:26:13 2012 -0400
+
+    Update copyright headers
+
+ src/hb-ot-layout-common-private.hh   | 2 +-
+ src/hb-ot-layout-gpos-table.hh       | 2 +-
+ src/hb-ot-layout-gsub-table.hh       | 2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+commit 6a9be5bd3524dc3eb1e88d1063bde2e4d8b57011
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 23 22:23:17 2012 -0400
+
+    Rename hb_glyph_map_t to hb_set_t
+
+ src/hb-ot-layout-common-private.hh   | 16 ++++++++--------
+ src/hb-ot-layout-gsubgpos-private.hh | 12 ++++++------
+ src/hb-ot-layout-private.hh         |  2 +-
+ src/hb-ot-layout.cc                 |  2 +-
+ src/hb-ot-layout.h                  |  4 ++--
+ src/hb-ot-map-private.hh            |  2 +-
+ src/hb-ot-map.cc                    |  2 +-
+ 7 files changed, 20 insertions(+), 20 deletions(-)
+
+commit a4385f0b0a6949e2ce49e6a147ad4beaa724f6c3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 23 22:20:14 2012 -0400
+
+    Improve clustering
+
+ src/hb-ot-shape.cc | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+commit 8e3715f8a16b315c1c7dd4b256e7f68a36c53e7c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 23 22:18:54 2012 -0400
+
+    Minor
+
+ src/hb-buffer-private.hh         | 2 +-
+ src/hb-buffer.cc                 | 2 +-
+ src/hb-graphite2.cc              | 5 ++---
+ src/hb-ot-shape-complex-arabic.cc | 4 ++--
+ src/hb-ot-shape-complex-misc.cc   | 4 ++--
+ 5 files changed, 8 insertions(+), 9 deletions(-)
+
+commit d2984a241e4819474d827b1dd5d4b6d76596b3a5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 23 17:21:14 2012 -0400
+
+    Add map->substitute_closure()
+
+ src/hb-ot-map-private.hh |  3 +++
+ src/hb-ot-map.cc        | 15 +++++++++++++++
+ 2 files changed, 18 insertions(+)
+
+commit 31081f7390e5130df72f89acc609ccab5dc77a48
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 23 16:54:58 2012 -0400
+
+    Implement closure() for Context and ChainContext lookups
+
+ src/hb-ot-layout-common-private.hh   |  54 ++++++
+ src/hb-ot-layout-gsubgpos-private.hh | 347
+ ++++++++++++++++++++++++++++-------
+ src/hb-ot-layout-private.hh         |  23 ++-
+ 3 files changed, 351 insertions(+), 73 deletions(-)
+
+commit c64ddab3c34897cd520d4d73a054866e649e8793
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 23 15:28:35 2012 -0400
+
+    Flesh out closure() for GSUB
+
+    The GSUBGPOS part still missing.
+
+ src/hb-ot-layout-common-private.hh |  61 ++++++++++++++------
+ src/hb-ot-layout-gsub-table.hh     | 112
+ ++++++++++++++++++++++++++++---------
+ src/hb-ot-layout-private.hh       |  34 +++++++++++
+ src/hb-ot-layout.h                |   2 +-
+ 4 files changed, 165 insertions(+), 44 deletions(-)
+
+commit 0da132bde4d576a03095d6738507954f7f85103d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 23 14:21:33 2012 -0400
+
+    Fix Coverage iters
+
+ src/hb-ot-layout-common-private.hh | 30 +++++++++++++++++++++---------
+ 1 file changed, 21 insertions(+), 9 deletions(-)
+
+commit 3e32cd9570fd8b09901fb790b80365ae425f681a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 23 13:20:52 2012 -0400
+
+    Minor
+
+ src/hb-ot-layout-gsubgpos-private.hh | 1 -
+ src/hb-ot-layout.cc                 | 6 +++---
+ src/hb-ot-layout.h                  | 8 ++++++++
+ src/hb-private.hh                   | 4 +++-
+ 4 files changed, 14 insertions(+), 5 deletions(-)
+
+commit 650ac00da3d2f988197393f34d40f0ba1a0fa093
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 23 13:17:09 2012 -0400
+
+    Minor refactoring
+
+ src/hb-ot-layout-gpos-table.hh       | 27 +++++++++++--------------
+ src/hb-ot-layout-gsub-table.hh       | 39
+ +++++++++++++++++-------------------
+ src/hb-ot-layout-gsubgpos-private.hh |  8 ++------
+ src/hb-ot-layout.cc                 |  6 ++++--
+ 4 files changed, 36 insertions(+), 44 deletions(-)
+
+commit f94b0aa64609654497ced9c00312c9643eb69053
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 23 13:04:38 2012 -0400
+
+    Add "closure" operation stubs to GSUB
+
+    Filling in.
+
+ src/hb-ot-layout-gsub-table.hh       | 179
+ +++++++++++++++++++++++++++++++++++
+ src/hb-ot-layout-gsubgpos-private.hh | 110 ++++++++++++++++++++-
+ src/hb-ot-layout.cc                 |   8 ++
+ 3 files changed, 293 insertions(+), 4 deletions(-)
+
+commit 7d50d502635d7c95e6bd091e7d4cc993f0853f76
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 23 13:02:14 2012 -0400
+
+    Add Coverage iterators
+
+ src/hb-ot-layout-common-private.hh | 59
+ ++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 59 insertions(+)
+
+commit 3ed4634ec349fa9e943ad23718c04be4dd4bba62
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 19 22:34:06 2012 -0400
+
+    Add Indic inspection tool
+
+ src/Makefile.am                         |   7 +-
+ src/hb-ot-shape-complex-indic-private.hh | 264
+ +++++++++++++++++++++++++++++++
+ src/hb-ot-shape-complex-indic.cc        | 229
+ +--------------------------
+ src/indic.cc                            |  46 ++++++
+ 4 files changed, 317 insertions(+), 229 deletions(-)
+
+commit a06411ecf93c7e5256e363eef3ef69554896dd55
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 19 22:28:25 2012 -0400
+
+    Minor matra renumbering
+
+    Should have no visible effect.
+
+ src/hb-ot-shape-complex-indic.cc | 30 +++++++++++++++++-------------
+ 1 file changed, 17 insertions(+), 13 deletions(-)
+
+commit 36608941f3cc530fea57282fa175e4cc3b4c66c6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 19 22:21:38 2012 -0400
+
+    Add GSUB "would_apply" API
+
+    To be used in the Indic shaper later.  Unused for now.
+
+ src/hb-ot-layout-gsub-table.hh | 140
+ ++++++++++++++++++++++++++++++++++++++++-
+ 1 file changed, 138 insertions(+), 2 deletions(-)
+
+commit a0d4caeb91fa5e5f2090db4efc35c64ff9a64789
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 17 13:42:30 2012 -0400
+
+    Minor
+
+ TODO | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit a5e40542ab9508f0ba6f822f1262d93fccb71f45
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 17 12:37:19 2012 -0400
+
+    Make font immutable in hb_shape()
+
+ src/hb-shape.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 3cde23664fbbe9cd2ac1b8fd5eb2ea288309cc9c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 17 11:44:49 2012 -0400
+
+    Minor note re Graphite
+
+ src/hb-graphite2.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 4dc2449d92308f8dd366142831c0b85bd30ea5a9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 17 11:39:48 2012 -0400
+
+    Fix leak in graphite
+
+ src/hb-graphite2.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 0290bbf8611aa881daed907f22256a431250c90a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 17 10:28:21 2012 -0400
+
+    Add another Thai test
+
+ test/shaping/texts/in-tree/shaper-thai/misc/misc.txt | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 9ceca3aeb14cc096f5f87660cf7351bc35073084
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 16 21:05:51 2012 -0400
+
+    Fix ragel regexp in vowel-based syllable
+
+    As reported by datao zhang on the mailing list.
+
+ src/hb-ot-shape-complex-indic-machine.rl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b870afcd1b436614af95db6dc297e54c8f03f0cd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 16 21:05:11 2012 -0400
+
+    Rewrite ragel expression to better match the one on MS spec
+
+    https://www.microsoft.com/typography/otfntdev/devanot/shaping.aspx
+
+ src/hb-ot-shape-complex-indic-machine.rl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 95cefdf96efe43a44133aa8a186155cf4e63e2b7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 16 18:08:20 2012 -0400
+
+    Add --utf8-clusters
+
+    Also fix cairo cluster generation.
+
+ util/hb-shape.cc     |  8 +++++---
+ util/hb-view.hh      |  2 +-
+ util/helper-cairo.cc | 22 +++++++++++++++++-----
+ util/helper-cairo.hh |  3 ++-
+ util/options.cc      | 19 ++++++++++++++-----
+ util/options.hh      | 26 ++++++++++++++++----------
+ util/view-cairo.cc   |  5 +++--
+ util/view-cairo.hh   |  3 ++-
+ 8 files changed, 60 insertions(+), 28 deletions(-)
+
+commit effb42e5c520128bdc2e29398ed801730c5c0f52
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 16 16:04:07 2012 -0400
+
+    Always use cairo_show_text_glyphs()
+
+    Better catches cluster errors.
+
+ util/view-cairo.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 799cfdd15ab369580b2283200c3aca6866214b59
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 16 16:00:36 2012 -0400
+
+    Make page progression be right to left for vertical text
+
+ util/view-cairo.cc | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit a5f1834f57ea3fb254f5c7d372747de316fcc8f1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 16 15:55:13 2012 -0400
+
+    Apply 'liga' for vertical writing mode too
+
+    Apparently that's what Kazuraki uses to form vertical ligatures,
+    which suggests that it's what Adobe does.
+
+ src/hb-ot-shape.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4d85252bda25cddd1fbdd744687e449888f0b5fa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 16 15:54:26 2012 -0400
+
+    Add Japanese test data from Adobe's Kazuraki font ligatures
+
+ test/shaping/texts/in-tree/shaper-default/MANIFEST |  1 +
+ .../shaper-default/script-japanese/MANIFEST       |  1 +
+ .../shaper-default/script-japanese/misc/MANIFEST   |  2 +
+ .../script-japanese/misc/kazuraki-liga-lines.txt   |  8 ++++
+ .../script-japanese/misc/kazuraki-liga.txt        | 53
+ ++++++++++++++++++++++
+ 5 files changed, 65 insertions(+)
+
+commit e74616b8898b5f18d9bf82b9e81aefad056c1e36
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Apr 15 14:12:13 2012 -0400
+
+    Add comment
+
+ src/hb-private.hh | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 683b503f30bba29d57a93d7e8ac7138c2e7f49f1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Apr 14 20:47:14 2012 -0400
+
+    Minor
+
+ src/hb-ot-shape-normalize.cc | 11 +++++++++--
+ src/hb-ot-shape-private.hh   |  9 ---------
+ src/hb-ot-shape.cc          |  9 ++++++++-
+ 3 files changed, 17 insertions(+), 12 deletions(-)
+
+commit b9f199c8e38cc5ed0d73845568630f3bcbdd4374
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Apr 14 20:23:58 2012 -0400
+
+    Move code around
+
+ src/hb-ot-shape-private.hh | 40 ----------------------------------------
+ src/hb-ot-shape.cc        | 45
+ +++++++++++++++++++++++++++++++++++++++++----
+ 2 files changed, 41 insertions(+), 44 deletions(-)
+
+commit 38a83019e6a7f4aa47662fd557344f62ae001abe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Apr 14 19:40:18 2012 -0400
+
+    Minor
+
+ src/hb-common.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit d4adade217a61007dd2da5cd9eccf889f79a019a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Apr 14 19:23:17 2012 -0400
+
+    Add assert
+
+ src/hb-ot-shape.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit fe28b997fbbeb2cfeab62ac453993ccffe3e6719
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Apr 14 19:19:26 2012 -0400
+
+    Add HB_DIRECTION_IS_VALID
+
+ src/hb-common.h       | 1 +
+ test/api/test-common.c | 7 +++++++
+ 2 files changed, 8 insertions(+)
+
+commit 5e88aa66822ba64324b4428c9ffbe06a43b4f310
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Apr 14 18:51:50 2012 -0400
+
+    Remove public enum names again
+
+    As was reported to me, glib-mkenum does not understand named enums,
+    so remove for now.
+
+ src/hb-blob.h              | 2 +-
+ src/hb-common.h            | 6 +++---
+ src/hb-ot-layout-private.hh | 2 +-
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+commit 08569c0eaab026c7122c0dc29922cf44011c4d10
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Apr 14 18:47:07 2012 -0400
+
+    Minor
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 4bf90f648313e35d21b427a956aa1fe762bae757
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 12 17:38:23 2012 -0400
+
+    Make HB_DIRECTION_INVALID be zero
+
+    This changes all the HB_DIRECTION_* enum member values, but is
+    nicer, in preparation for making hb_segment_properties_t public.
+
+ src/hb-common.cc      |  7 ++++---
+ src/hb-common.h       | 20 ++++++++++----------
+ test/api/test-common.c |  9 +++++++--
+ 3 files changed, 21 insertions(+), 15 deletions(-)
+
+commit d01402da9c756f90a84bfb1f964fd56caf2b35c3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 12 17:38:02 2012 -0400
+
+    Minor
+
+ TODO | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+commit 69b84a8f6c789726815261c2e86692de7a65d6e8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 12 15:50:40 2012 -0400
+
+    Fix hb-view surface size calc for vertical text
+
+    For some reason it doesn't quite work with IranianNastaliq, but
+    that looks like a font issue.
+
+ util/helper-cairo.hh |  5 +++--
+ util/options.hh      |  7 +++++++
+ util/view-cairo.cc   | 31 +++++++++++++++++++++----------
+ util/view-cairo.hh   |  1 +
+ 4 files changed, 32 insertions(+), 12 deletions(-)
+
+commit 6bd9b479b8b2befbb0847282e93beade197c8038
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 12 14:53:53 2012 -0400
+
+    Hide backend-specific shape functions
+
+    Also remove shaper_options argument to hb_shape_full().  That was
+    unused and for "future".  Let it go.
+
+    More shaper API coming in preparation for plan/planned API.
+
+ configure.ac                    |  6 ++---
+ src/Makefile.am                 | 11 +++++----
+ src/hb-fallback-shape-private.hh |  9 ++++----
+ src/hb-fallback-shape.cc        |  9 ++++----
+ src/hb-graphite2-private.hh     | 42 +++++++++++++++++++++++++++++++++++
+ src/hb-graphite2.cc             |  5 ++---
+ src/hb-graphite2.h              |  7 ------
+ src/hb-ot-shape-private.hh      |  8 +++++--
+ src/hb-ot-shape.cc              | 11 ++++-----
+ src/hb-ot-shape.h               | 48
+ ----------------------------------------
+ src/hb-ot.h                     |  1 -
+ src/hb-shape.cc                 | 24 ++++++++------------
+ src/hb-shape.h                          |  1 -
+ src/hb-uniscribe-private.hh     | 42 +++++++++++++++++++++++++++++++++++
+ src/hb-uniscribe.cc             |  9 ++++----
+ src/hb-uniscribe.h              |  7 ------
+ util/options.hh                 |  2 +-
+ 17 files changed, 126 insertions(+), 116 deletions(-)
+
+commit c6035cf802c60f0526f421f39a55886061df94ee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 12 13:23:59 2012 -0400
+
+    Add names to enums
+
+    gdb was showing <anonymous enum> instead of useful stuff, so name
+    all our enums.
+
+ src/hb-blob.h                     | 2 +-
+ src/hb-common.h                   | 6 +++---
+ src/hb-ot-layout-common-private.hh | 2 +-
+ src/hb-ot-layout-gdef-table.hh     | 2 +-
+ src/hb-ot-layout-gpos-table.hh     | 5 ++---
+ src/hb-ot-layout-gsub-table.hh     | 2 +-
+ src/hb-ot-layout-private.hh       | 2 +-
+ 7 files changed, 10 insertions(+), 11 deletions(-)
+
+commit d1c9eb458c843215da8df84b596bfae51fee135b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 12 13:17:44 2012 -0400
+
+    Make it an error to include non-top-level headers
+
+    Users should #include <hb.h> (or hb-ft.h, hb-glib.h, etc), but
+    never things like hb-shape.h directly.  This makes it easier to
+    refactor headers later on without breaking compatibility.
+
+ src/hb-blob.h      | 4 ++++
+ src/hb-buffer.h     | 4 ++++
+ src/hb-common.h     | 4 ++++
+ src/hb-font.h      | 4 ++++
+ src/hb-ft.h        | 2 --
+ src/hb-glib.h      | 1 +
+ src/hb-gobject.h    | 1 +
+ src/hb-graphite2.h  | 5 +++--
+ src/hb-icu.h       | 1 +
+ src/hb-ot-layout.h  | 8 +++++---
+ src/hb-ot-shape.h   | 9 +++++----
+ src/hb-ot-tag.h     | 6 +++++-
+ src/hb-ot.h        | 2 ++
+ src/hb-private.hh   | 5 ++++-
+ src/hb-shape.h      | 4 ++++
+ src/hb-unicode.h    | 4 ++++
+ src/hb-uniscribe.h  | 3 +--
+ src/hb-version.h.in | 4 ++++
+ src/hb.h           | 2 ++
+ 19 files changed, 58 insertions(+), 15 deletions(-)
+
+commit 323190c27b80cddc9b3c42d19f1f243e2acb2411
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 12 12:29:10 2012 -0400
+
+    Minor
+
+ src/hb-ft.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 0e3361464b00b76aa7375515163e0710a691db0c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 12 10:06:52 2012 -0400
+
+    Fix bug with not setting Unicode props of the first character
+
+    Fixes Mongolian shaping issue:
+    https://bugs.freedesktop.org/show_bug.cgi?id=45695
+
+ src/hb-ot-shape.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit f9746b600a6e14dbe48aabfc17df8f12a5b46b11
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 12 09:59:26 2012 -0400
+
+    Minor
+
+ test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/misc.txt |
+ 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 7470b0ff805e4ff59d23d7a1808888fafdf550eb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 12 09:44:27 2012 -0400
+
+    Add Mongolian test case
+
+ test/shaping/texts/in-tree/MANIFEST                                  |
+ 1 +
+ .../texts/in-tree/shaper-arabic/script-mongolian/misc/MANIFEST        |
+ 1 +
+ .../texts/in-tree/shaper-arabic/script-mongolian/misc/misc.txt        |
+ 4 ++++
+ test/shaping/texts/in-tree/shaper-thai/MANIFEST                      |
+ 1 +
+ test/shaping/texts/in-tree/shaper-thai/misc/MANIFEST                 |
+ 1 +
+ 5 files changed, 8 insertions(+)
+
+commit c65662b71e6160f5adfb6226d97589ca457d98b9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 12 09:31:55 2012 -0400
+
+    Fix left-matra positioning in Indic
+
+    Fixes 200 failures out of previous 4290 cases in the OO.o Indic
+    dictionary (of ~16000 entries).
+
+ src/hb-ot-shape-complex-indic.cc | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+commit 6d16403bfaa4d710d80c93298eca7211ecaa419f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 11 22:04:42 2012 -0400
+
+    Adjust TODO
+
+ TODO | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 029a82d81d8ffa1b6771d19018d592fec1dbc934
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 11 22:00:46 2012 -0400
+
+    [hangul] Apply *jmo features to all Hangul chars
+
+    This is what old HB does.  Morever, fixes rendering with Win8 malgun
+    font.  The Win7 version doesn't compose with either Uniscribe nor HB,
+    but Win8 version works as expected, like Uniscribe, with this change.
+
+    Lets call Hangul done for now.
+
+ src/hb-ot-shape-complex-misc.cc | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+commit 3baae2440de69577d330209edb708e7d2bb2231d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 11 21:54:37 2012 -0400
+
+    Update TODO
+
+ TODO | 28 +++++++++++++++-------------
+ 1 file changed, 15 insertions(+), 13 deletions(-)
+
+commit a4976447cd1a1feffdecd0d501a2690716b1cf4b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 11 17:48:40 2012 -0400
+
+    Add Hangul test
+
+ test/shaping/texts/in-tree/shaper-hangul/script-hangul/misc/misc.txt |
+ 1 +
+ 1 file changed, 1 insertion(+)
+
+commit e95d912b3b0af027c4384553f95236db822e5acc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 11 17:33:02 2012 -0400
+
+    Fix diff tool
+
+ test/shaping/hb_test_tools.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 41ae674f6871f43d0a6e4ca67a747074d63ae576
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 11 17:11:05 2012 -0400
+
+    Don't create hb_apply_context_t per glyph!
+
+    I couldn't measure significant performance gains out of this; maybe
+    about 5% (with one million Malayalam strings).  Still, not bad.
+    But reminds me that optimizing this codebase without profiling first
+    is simply not going to work.  Oh well...
+
+ src/hb-ot-layout-gpos-table.hh       | 24 ++++++------------------
+ src/hb-ot-layout-gsub-table.hh       | 26 +++++++-------------------
+ src/hb-ot-layout-gsubgpos-private.hh | 22 ++++++++++++++++++++++
+ 3 files changed, 35 insertions(+), 37 deletions(-)
+
+commit 4a1e02ef7979d58fe0c726ee7c665b2420c42ddd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 11 14:37:53 2012 -0400
+
+    Fix shape to presentation forms font check
+
+    As reported by Jonathan Kew on the list.
+
+ src/hb-ot-shape-complex-arabic.cc | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+commit 6062f5f01436b4044be729890ed00b9b62737824
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 11 14:19:55 2012 -0400
+
+    Fix build with some compilers
+
+    As reported by Jonathan Kew on the list.
+
+ src/hb-ot-shape-complex-misc.cc | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+commit acd88e659fdb2fa1cbf7171f0a1c7fbc81b9f298
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 10 18:02:20 2012 -0400
+
+    In Arabic fallback shaping, check that the font has glyph for new char
+
+ src/hb-ot-shape-complex-arabic.cc  | 12 +++++++-----
+ src/hb-ot-shape-complex-indic.cc   |  2 +-
+ src/hb-ot-shape-complex-misc.cc    |  6 +++---
+ src/hb-ot-shape-complex-private.hh |  7 ++++---
+ src/hb-ot-shape.cc                |  2 +-
+ 5 files changed, 16 insertions(+), 13 deletions(-)
+
+commit 7752aa73e72301a46c64c533c1e423ff5987cc05
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 10 17:22:14 2012 -0400
+
+    Minor
+
+ src/hb-ot-shape-private.hh |  1 -
+ src/hb-ot-shape.cc        | 10 ----------
+ 2 files changed, 11 deletions(-)
+
+commit 939c010211b063f78874a3b72b032c1ed9a13b87
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 10 17:20:05 2012 -0400
+
+    Implement Arabic fallback shaping mandatory ligatures
+
+ src/gen-arabic-table.py                | 32
+ ++++++++++++++++++++++----------
+ src/hb-ot-shape-complex-arabic-table.hh | 28 +++++++++++++++++++---------
+ src/hb-ot-shape-complex-arabic.cc      | 31
+ +++++++++++++++++++++++++++++++
+ src/hb-ot-shape-complex-misc.cc        |  4 ++--
+ 4 files changed, 74 insertions(+), 21 deletions(-)
+
+commit b7d04eb606800100faa11100d2adf559e297a4ee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 10 16:44:38 2012 -0400
+
+    Do Arabic fallback shaping
+
+ src/hb-ot-shape-complex-arabic.cc | 38
+ +++++++++++++++++++++++++++++++++-----
+ 1 file changed, 33 insertions(+), 5 deletions(-)
+
+commit ae4a2b9365051c23c9a299cf76f3ab7e661999b1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 10 16:25:08 2012 -0400
+
+    Generate fallback Arabic shaping table
+
+    Not hooked up yet.
+
+ src/Makefile.am                        |   6 +-
+ src/gen-arabic-table.py                | 220
+ +++++++++++++++++++++++---------
+ src/gen-indic-table.py                         |   4 +-
+ src/hb-ot-shape-complex-arabic-table.hh | 205
+ ++++++++++++++++++++++++++++-
+ 4 files changed, 367 insertions(+), 68 deletions(-)
+
+commit 3b26f96ebe859570d14c6902afc23462bca40712
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 10 10:52:07 2012 -0400
+
+    Add Thai shaper that does SARA AM decomposition / reordering
+
+    That's not in the OpenType spec, but it's what MS and Adobe do.
+
+ src/hb-buffer.cc                  |   1 +
+ src/hb-ot-shape-complex-misc.cc    | 104
+ ++++++++++++++++++++++++++++++++++++-
+ src/hb-ot-shape-complex-private.hh |  8 +++
+ 3 files changed, 112 insertions(+), 1 deletion(-)
+
+commit 0b6d2ac6a1d04877ae4542fc2a3b920185547053
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 10 10:52:03 2012 -0400
+
+    Minor
+
+ TODO | 10 ++++------
+ 1 file changed, 4 insertions(+), 6 deletions(-)
+
+commit e099dd6592b4ea887696330f4718efb572494d93
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 10 10:47:33 2012 -0400
+
+    Add Thai test case for SARA AM decomposition
+
+ test/shaping/texts/in-tree/shaper-hangul/MANIFEST    | 1 +
+ test/shaping/texts/in-tree/shaper-thai/misc/misc.txt | 5 +++++
+ 2 files changed, 6 insertions(+)
+
+commit 4450dc9354b18cd68980b0891b24ea8efa4f38b6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Apr 7 22:07:23 2012 -0400
+
+    Move around
+
+ test/shaping/texts/in-tree/MANIFEST                                  |
+ 1 +
+ test/shaping/texts/in-tree/shaper-default/MANIFEST                   |
+ 1 -
+ test/shaping/texts/in-tree/shaper-default/script-hangul/MANIFEST      |
+ 1 -
+ test/shaping/texts/in-tree/shaper-default/script-hangul/misc/MANIFEST |
+ 1 -
+ test/shaping/texts/in-tree/shaper-default/script-hangul/misc/misc.txt |
+ 2 --
+ test/shaping/texts/in-tree/shaper-hangul/script-hangul/MANIFEST       |
+ 1 +
+ test/shaping/texts/in-tree/shaper-hangul/script-hangul/misc/MANIFEST  |
+ 1 +
+ test/shaping/texts/in-tree/shaper-hangul/script-hangul/misc/misc.txt  |
+ 2 ++
+ 8 files changed, 5 insertions(+), 5 deletions(-)
+
+commit d4cc44716c1e098f8abbc0e495404598026ef242
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Apr 7 21:52:28 2012 -0400
+
+    Move code around, in prep for Thai/Lao shaper
+
+ src/hb-buffer-private.hh                |  5 +++++
+ src/hb-buffer.cc                        | 23 +++++++++++++++++++++++
+ src/hb-ot-shape-complex-indic-machine.rl | 14 +-------------
+ 3 files changed, 29 insertions(+), 13 deletions(-)
+
+commit c9a841f4452921c5361b8f5697bbff7736ce60cd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Apr 7 15:06:55 2012 -0400
+
+    Add simple Hangul shaper that recomposes Jamo when feasible
+
+    Previously, we were NOT actually recomposing Hangul Jamo.  We do now.
+    The two lines in:
+
+    test/shaping/texts/in-tree/shaper-default/script-hangul/misc/misc.txt
+
+    Now render the same with the UnDotum.ttf font.  Previously the second
+    linle was rendering boxes.
+
+    We can also start applying OpenType Jamo features later.  At this
+    time,
+    I have no idea how the 'ljmo', 'vjmo', 'tjmo' features are supposed to
+    work.  Maybe someone can explain them to me?
+
+ src/hb-ot-shape-complex-misc.cc    | 16 ++++++++++++++++
+ src/hb-ot-shape-complex-private.hh | 15 +++++++++++++--
+ 2 files changed, 29 insertions(+), 2 deletions(-)
+
+commit 968318455304804dc53045e8ba0cd4d76800c02d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Apr 7 14:57:21 2012 -0400
+
+    Implement normalization mode
+    HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_FULL
+
+    In this mode we try composing CCC=0 with CCC=0 characters. Useful for
+    Hangul.
+
+ src/hb-ot-shape-normalize.cc | 21 +++++++++++++--------
+ 1 file changed, 13 insertions(+), 8 deletions(-)
+
+commit bec2ac4fde1ba0dd6dba02adbb836ce569a5cf6f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Apr 7 14:51:17 2012 -0400
+
+    Bring normalization algorithm closer to the spec
+
+    No logical difference so far.
+
+ src/hb-ot-shape-normalize.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit e02d9257863b49e33ab5942971266349d3c548f6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Apr 7 14:49:13 2012 -0400
+
+    Flip logic around
+
+ src/hb-ot-shape-normalize.cc | 38 +++++++++++++-------------------------
+ 1 file changed, 13 insertions(+), 25 deletions(-)
+
+commit aaa25d5f458127f53f4b5ecdeb986ae91fabbad3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 5 17:27:23 2012 -0400
+
+    Add Hangul test case
+
+    Composed, and decomposed, of the same text.
+
+ test/shaping/texts/in-tree/shaper-default/MANIFEST                   |
+ 1 +
+ test/shaping/texts/in-tree/shaper-default/script-hangul/MANIFEST      |
+ 1 +
+ test/shaping/texts/in-tree/shaper-default/script-hangul/misc/MANIFEST |
+ 1 +
+ test/shaping/texts/in-tree/shaper-default/script-hangul/misc/misc.txt |
+ 2 ++
+ 4 files changed, 5 insertions(+)
+
+commit 11138ccff71f442da1fcf64faa0e1d22e083e775
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 5 17:25:19 2012 -0400
+
+    Add normalize mode
+
+    In preparation for Hangul shaper.
+
+ src/Makefile.am                     |  1 +
+ src/hb-ot-layout-common-private.hh   |  1 -
+ src/hb-ot-shape-complex-arabic.cc    |  6 +--
+ src/hb-ot-shape-complex-indic.cc     |  6 +--
+ src/hb-ot-shape-complex-misc.cc      |  8 ++--
+ src/hb-ot-shape-complex-private.hh   | 13 ++++---
+ src/hb-ot-shape-normalize-private.hh | 46 +++++++++++++++++++++++
+ src/hb-ot-shape-normalize.cc        | 73
+ +++++++++++++++++-------------------
+ src/hb-ot-shape-private.hh          |  7 +---
+ src/hb-ot-shape.cc                  |  2 +-
+ 10 files changed, 102 insertions(+), 61 deletions(-)
+
+commit 6769f21d579a354e32577ec57348e97d2cb1b438
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 5 16:46:46 2012 -0400
+
+    More moving code around
+
+ src/hb-ot-shape-normalize.cc | 2 +-
+ src/hb-ot-shape-private.hh   | 8 --------
+ src/hb-ot-shape.cc          | 2 +-
+ src/hb-unicode-private.hh    | 8 ++++++++
+ 4 files changed, 10 insertions(+), 10 deletions(-)
+
+commit 2db2a566826ed4763ce69629194ec656bd48b0bd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 5 16:40:37 2012 -0400
+
+    Move code around
+
+ src/hb-ot-shape-private.hh | 53
+ --------------------------------------------
+ src/hb-unicode-private.hh  |  3 +++
+ src/hb-unicode.cc         | 55
+ ++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 58 insertions(+), 53 deletions(-)
+
+commit cad3821f3d5b68d490b0728bd37bd57428ec809c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 7 17:13:25 2012 -0500
+
+    More sorting by Unicode version
+
+    This is the most convenient way to browse scripts.
+
+ src/hb-common.cc                  |  2 +-
+ src/hb-common.h                   |  2 +-
+ src/hb-ot-shape-complex-private.hh | 94
+ ++++++++++++++++++++++++++++----------
+ 3 files changed, 72 insertions(+), 26 deletions(-)
+
+commit 317b9504d7a4faa70dcf21e5c2aff4792dbd201a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 7 16:51:29 2012 -0500
+
+    Minor
+
+ src/hb-ot-shape-complex-private.hh | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+commit fa2673c1ee954ddbbfbfca7cced7b839d7776fc0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 7 15:52:02 2012 -0500
+
+    More Unicode script age annotation, and a couple more RTL scripts
+
+    Cross-checked with Mark Davis's spreadsheet at http://goo.gl/x9ilM
+
+ src/hb-common.cc |  8 ++++++++
+ src/hb-common.h  | 52
+ +++++++++++++++++++++++++++++-----------------------
+ 2 files changed, 37 insertions(+), 23 deletions(-)
+
+commit 6d4016f1ba48d409800dc3281b93e5cd58c99d9f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 7 15:33:14 2012 -0500
+
+    Make src tests pass again
+
+ src/gen-arabic-table.py                | 11 ++++++-----
+ src/gen-indic-table.py                         |  9 +++++----
+ src/hb-ot-shape-complex-arabic-table.hh |  6 ++++++
+ src/hb-ot-shape-complex-indic-table.hh  |  4 ++++
+ 4 files changed, 21 insertions(+), 9 deletions(-)
+
+commit 7da435f08cc406080a5ee9b1ab5351db6a93acae
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 7 15:20:20 2012 -0500
+
+    Separate Unicode 3.1 and Unicode 3.2 additions
+
+ src/hb-common.h | 14 +++++++++-----
+ 1 file changed, 9 insertions(+), 5 deletions(-)
+
+commit f91136cb528e298651c4a8a8a1d6dc54136e09ce
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 7 12:56:22 2012 -0500
+
+    Route three Unicode 6.1 scripts through Indic shaper
+
+ src/hb-ot-shape-complex-private.hh | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+commit f32c0012ad794cd2df669dfc7b0438fafbe38b2d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 7 12:53:34 2012 -0500
+
+    Add Unicode 6.1.0 scripts
+
+ src/hb-common.h |  9 +++++++++
+ src/hb-glib.cc  | 11 ++++++++++-
+ 2 files changed, 19 insertions(+), 1 deletion(-)
+
+commit 50e810cd0e55c25fddb0a2fd0861c51fbf65700e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 7 12:49:08 2012 -0500
+
+    Lydian and Kharoshthi are right-to-left
+
+ src/hb-common.cc | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+commit a52835635e4a2a12715aff2febb561515a10cd5a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 7 12:38:39 2012 -0500
+
+    Whitespace
+
+ src/hb-common.h | 194
+ ++++++++++++++++++++++++++++----------------------------
+ 1 file changed, 97 insertions(+), 97 deletions(-)
+
+commit 183224684a45d7dcd7d28510d4383a7a7cb3dff3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 7 12:21:28 2012 -0500
+
+    Use generic shaper for Buhid
+
+    As requested by Jonathan Kew.
+
+    We need to devise a better mechanism to choose which scripts to
+    pass through the Indic shaper.  Moreover, currently we are storing
+    data for some scripts in the Indic shaper that are not even going
+    through that shaper.  Need to find a better way...
+
+ src/hb-ot-shape-complex-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit cdc8b491a8e7cec5082ca2ad0346c1f41fdd5c92
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 7 12:08:33 2012 -0500
+
+    Update Indic table to Unicode 6.1 data
+
+ src/Makefile.am                        |  15 +++
+ src/gen-indic-table.py                         |  20 ++--
+ src/hb-ot-shape-complex-arabic-table.hh |  35 -------
+ src/hb-ot-shape-complex-indic-table.hh  | 178
+ +++++++++++++++++++-------------
+ 4 files changed, 134 insertions(+), 114 deletions(-)
+
+commit e3b2e077f549b04779c08a9fedb1f35b9f11075c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 7 10:21:24 2012 -0500
+
+    Typo
+
+ src/hb-ot-shape-normalize.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit c346671b6b9b05fa51b95c16212eb29ac69510fa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Mar 6 20:47:50 2012 -0500
+
+    Minor doc fixes
+
+ src/hb-ot-shape-normalize.cc | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+commit 406044986a68676f3050f9350ccc448c615fc685
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Mar 6 20:24:31 2012 -0500
+
+    Add Hebrew diacritics test cases
+
+    From:
+    https://bugzilla.mozilla.org/show_bug.cgi?id=662055
+
+ test/shaping/texts/in-tree/shaper-default/MANIFEST       |  1 +
+ .../texts/in-tree/shaper-default/script-hebrew/MANIFEST   |  1 +
+ .../in-tree/shaper-default/script-hebrew/misc/MANIFEST    |  1 +
+ .../shaper-default/script-hebrew/misc/diacritics.txt     | 15
+ +++++++++++++++
+ 4 files changed, 18 insertions(+)
+
+commit 461b9b6347e4f58589f5be82c40a2df61da2c715
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Mar 1 18:11:19 2012 -0800
+
+    Fix cluster formation in Indic
+
+    Makes number of failures against Uniscribe with hi_IN dictionary from
+    OO.o to go down from 6334 to 4290. Not bad for a one-line change!
+
+    Mozilla Bug 729626 - ASAN: heap-buffer-overflow HTML
+
+ src/hb-ot-shape-complex-indic-machine.rl | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit bc71ad4973842f25216b48842a46d6c9cbce6aa3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Mar 1 17:30:29 2012 -0800
+
+    Fix atomic-int op on Apple
+
+    The OSAtomicAdd32Barrier operator returns the new value, we want the
+    old value.
+
+ src/hb-blob.cc                  | 2 +-
+ src/hb-object-private.hh | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit a1970d9afc15b2c6b7513b923019bb223bd95154
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Feb 24 13:51:09 2012 -0500
+
+    Add support for atomic int and mutex on Apple systems
+
+    So, apparently there's no atomic int 'get' method on Apple.
+    You have to
+    add(0) to get.  And that's not const-friendly.  So switch inert-object
+    checking to a non-atomic get.  This, however, is safe, and a
+    negligible
+    performance boost too.
+
+ src/hb-mutex-private.hh  | 14 +++++++++-----
+ src/hb-object-private.hh | 15 ++++++++++-----
+ 2 files changed, 19 insertions(+), 10 deletions(-)
+
+commit 8004429102d7d3a8c42e1cbfe231835de4d3d782
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 23 18:47:17 2012 -0500
+
+    Remove unused hb_atomic_int_set()
+
+    Apparently it can't be implemented on OS X.  We weren't using
+    it anyway.
+
+ src/hb-object-private.hh | 4 ----
+ 1 file changed, 4 deletions(-)
+
+commit 45227c10e416894ba7f84fdf72d849cecdb9b898
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 23 19:47:43 2012 -0500
+
+    Add hb-warning.cc. Oops!
+
+ src/hb-warning.cc | 53
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 53 insertions(+)
+
+commit bd7ff1dec5b92ee59fa060e793f88499adcd8c11
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Feb 23 15:06:16 2012 -0500
+
+    Allow disabling multi-threaded support
+
+    By defining HB_NO_MT.
+
+    Also, only warn once per missing MT feature support.
+
+    Mozilla Bug 666661 - gfx/harfbuzz/src/hb-prive.h - compiler warnings
+    on mac
+
+ src/Makefile.am         |  1 +
+ src/hb-mutex-private.hh  |  6 +++---
+ src/hb-object-private.hh | 11 +++--------
+ 3 files changed, 7 insertions(+), 11 deletions(-)
+
+commit 634c9e3423a9c23793400d1f56e98070e00b6056
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 22 16:43:21 2012 -0500
+
+    Minor
+
+ src/hb-ot-shape-private.hh | 69
+ ++++++++++++++++++++++++++--------------------
+ 1 file changed, 39 insertions(+), 30 deletions(-)
+
+commit 514b6f88668da4eab85103c536dabe24b7bc457b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 22 16:34:37 2012 -0500
+
+    Followup: Reorder Hebrew combining classes for better rendering
+
+    Patch from Jonathan Kew.
+
+    Bug 662055 - advanced Hebrew diacritics are shown correctly only in
+    particular order.
+
+ src/hb-ot-shape-private.hh | 20 ++++++++++----------
+ 1 file changed, 10 insertions(+), 10 deletions(-)
+
+commit 6e78607ea71e3e5306f88f227ddba76133d16ed0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 22 16:31:15 2012 -0500
+
+    Reorder Hebrew combining classes for better rendering
+
+    Patch from Jonathan Kew.
+
+    Bug 662055 - advanced Hebrew diacritics are shown correctly only in
+    particular order
+
+ src/hb-ot-shape-private.hh | 28 ++++++++++++++++++++++++++++
+ 1 file changed, 28 insertions(+)
+
+commit 7a70ca78e06c676befe1ae17199fff1f000f8188
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 21 11:31:47 2012 -0500
+
+    Add test case from https://bugzilla.mozilla.org/show_bug.cgi?id=714067
+
+ test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/MANIFEST
+ | 1 +
+ .../in-tree/shaper-arabic/script-arabic/misc/ligature-diacritics.txt
+ | 1 +
+ 2 files changed, 2 insertions(+)
+
+commit f51e167436a51b890ffe3f7f7920498fa287acd9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 30 09:48:33 2012 -0500
+
+    Minor error handling
+
+ util/options.cc | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+commit bee74efbdebc4e46ce57daa8a88bcf06b13411fe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 27 02:14:08 2012 -0500
+
+    Update git.mk to new upstream
+
+ git.mk | 44 +++++++++++++++++++++++++++++++++-----------
+ 1 file changed, 33 insertions(+), 11 deletions(-)
+
+commit 134aa7bc7e3f9b9de76c9de2ed4b7344a7b323f9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 27 02:09:40 2012 -0500
+
+    Make checks more OS X friendly
+
+ src/check-internal-symbols.sh | 21 +++++++++++++--------
+ src/check-libstdc++.sh        | 21 +++++++++++++--------
+ 2 files changed, 26 insertions(+), 16 deletions(-)
+
+commit 6152199368399bf98368ea3c794fa760b49756ba
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 27 01:57:59 2012 -0500
+
+    Fix check-header-guards on OS X
+
+ src/check-header-guards.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit c62e41b6aad1fc56225d0e53d6d4abd0f005fe3b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 27 02:20:58 2012 -0500
+
+    Minor
+
+ configure.ac | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 1a5a91dc0d8bf4b72a2f22dc6300b06ad7000b79
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jan 22 19:57:00 2012 -0500
+
+    Add a few more tests
+
+ .../in-tree/shaper-indic/indic/script-devanagari/misc/misc.txt   | 3 +++
+ .../shaper-indic/south-east-asian/script-thai/misc/misc.txt     |
+ 9 +++++++++
+ 2 files changed, 12 insertions(+)
+
+commit 1795f3a222a85cdf80c78a0e9181d23dd1673876
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jan 22 19:29:45 2012 -0500
+
+    Add a couple Thai test cases from Thep
+
+ test/shaping/texts/in-tree/shaper-indic/south-east-asian/MANIFEST      |
+ 1 +
+ .../texts/in-tree/shaper-indic/south-east-asian/script-thai/MANIFEST   |
+ 1 +
+ .../in-tree/shaper-indic/south-east-asian/script-thai/misc/MANIFEST    |
+ 1 +
+ .../in-tree/shaper-indic/south-east-asian/script-thai/misc/misc.txt    |
+ 2 ++
+ 4 files changed, 5 insertions(+)
+
+commit ec3f506682fc6e2d7d7455e49d6c82ac9dd0c660
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jan 22 19:10:55 2012 -0500
+
+    Add Devanagari test from Tom Hacohen
+
+ .../texts/in-tree/shaper-indic/indic/script-devanagari/misc/misc.txt
+ | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 71be4ca3dd5eaaca31957e34fef11f6aeb4aebdf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jan 22 16:26:49 2012 -0500
+
+    Also ignore "ChangeLog" in manifests
+
+ test/shaping/hb_test_tools.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 3c9a39ecd65990f2c7b29bb741c6a538fa425531
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jan 22 16:21:19 2012 -0500
+
+    Remove newline
+
+ test/shaping/hb_test_tools.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit e4ccbfe276db5ed098ddcf78a7bb8f2da4263128
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jan 22 16:07:32 2012 -0500
+
+    Allow --color=html in hb-diff
+
+    Not that useful right now as we don't escape < and >.  Perhaps
+    another tool can be added to convert the ANSI output to HTML.
+
+ test/shaping/hb-diff         |  2 +-
+ test/shaping/hb_test_tools.py | 22 +++++++++++++++++-----
+ 2 files changed, 18 insertions(+), 6 deletions(-)
+
+commit 71632c96daa4ba15e13f4d9e7f2c121d0162614e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jan 22 15:31:44 2012 -0500
+
+    Fallback to Latin script if the font has no other usable scripts
+
+    Patch and description from Jonathan Kew:
+
+    It turns out that some legacy Thai fonts provide OpenType substitution
+    features to implement mark positioning, but (incorrectly) put those
+    features/lookups under the 'latn' script tag instead of using 'thai'
+    (or
+    possibly 'DFLT'). See
+    https://bugzilla.mozilla.org/show_bug.cgi?id=719366 for an example and
+    more detailed description.
+
+    Although this is really a font bug, I suggest that we could improve
+    the
+    rendering of such fonts by looking for the 'latn' as a fallback if
+    neither the requested script nor "default" is found in
+    hb_ot_layout_table_choose_script. Suggested patch against harfbuzz
+    master is attached.
+
+    This does _not_ affect the other kind of legacy Thai font, where
+    custom
+    code to support vendor-specific PUA codepoints would be needed. I'm
+    not
+    keen to go down that path; IMO, such fonts should be ruthlessly
+    stamped
+    out in favour of standards-based solutions. :)
+
+    JK
+
+ src/hb-ot-layout.cc | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+commit 8f80f93491be73f05eba908591c856339acda51e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jan 21 20:03:25 2012 -0500
+
+    More shoveling around
+
+ test/shaping/hb-diff-filter-failures |  2 +-
+ test/shaping/hb-manifest-read       |  2 +-
+ test/shaping/hb_test_tools.py       | 27 ++++++++++++++++-----------
+ 3 files changed, 18 insertions(+), 13 deletions(-)
+
+commit c78c6e9844a23144ce7fa29afbf57b74587bfcd0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jan 21 19:55:16 2012 -0500
+
+    Cleanup
+
+ test/shaping/hb-manifest-read |  2 +-
+ test/shaping/hb_test_tools.py | 13 ++++++++-----
+ 2 files changed, 9 insertions(+), 6 deletions(-)
+
+commit ab94a9c542f7ec9143335b73493ccb75d4586a3a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jan 21 19:43:58 2012 -0500
+
+    Distribute testing tools
+
+ test/shaping/Makefile.am | 24 ++++++++++++++++++++++++
+ 1 file changed, 24 insertions(+)
+
+commit 3e86feb54c94e46b60168fd2a4773183eb1354b4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jan 21 19:40:30 2012 -0500
+
+    Speed up colorless diff
+
+ test/shaping/hb_test_tools.py | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+commit 1e58df603457cb4b57da78b5d4a8df66aa7d7be4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jan 21 19:37:31 2012 -0500
+
+    Cleanup manifest code
+
+ test/shaping/hb_test_tools.py | 18 ++++++++++++------
+ 1 file changed, 12 insertions(+), 6 deletions(-)
+
+commit 956d552e108eeb50bb3ad21588830af7a2f3862a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jan 21 19:31:51 2012 -0500
+
+    Port hb-manifest-update to Python
+
+ test/shaping/hb-manifest-update | 23 +++--------------------
+ test/shaping/hb_test_tools.py  | 38
+ ++++++++++++++++++++++++++++++--------
+ 2 files changed, 33 insertions(+), 28 deletions(-)
+
+commit 3a34e9e351ed0ee3eb27f9c0f154bc227f1226bf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jan 21 19:15:41 2012 -0500
+
+    Ignore Broken Pipe errors
+
+ test/shaping/hb_test_tools.py | 76
+ +++++++++++++++++++++++++++----------------
+ 1 file changed, 48 insertions(+), 28 deletions(-)
+
+commit d5300241680844f5625f32792f7dd7181ed05f9b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jan 21 19:07:22 2012 -0500
+
+    [util] Make clusters work with char offset instead of UTF-8 offset
+
+    This means the --features indices also refer to char position
+    instead of byte position now.  Same for cluster values reported
+    by hb-shape.
+
+    Will add an option for byte indices later.
+
+ util/options.cc |  7 +++++--
+ util/options.hh | 12 ++++++++++++
+ 2 files changed, 17 insertions(+), 2 deletions(-)
+
+commit 0f68f4a0b5ee78cbdb2a89a9a1a9125afe72ed2f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jan 21 18:59:48 2012 -0500
+
+    Correctly print out Unicode strings
+
+ util/options.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit f22089ac24f43ff048c2a0f1c1f604ae3a96be8b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 21:21:47 2012 -0500
+
+    Misc fixes
+
+ test/shaping/hb-diff         | 8 ++++----
+ test/shaping/hb_test_tools.py | 4 ++--
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+commit 96968bfae5ce61a0a098bf0e6acd2210a309a499
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 21:16:34 2012 -0500
+
+    Port hb-manifest-read to Python
+
+ test/shaping/hb-diff-filter-failures |  2 +-
+ test/shaping/hb-manifest-read       | 37 +++------------------------
+ test/shaping/hb_test_tools.py       | 49
+ ++++++++++++++++++++++++++++++++----
+ 3 files changed, 48 insertions(+), 40 deletions(-)
+
+commit a59ed46fa4f7b76605f8ce6e75783ead406468f5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 20:56:32 2012 -0500
+
+    Add final residues from test-shape-complex
+
+ .../shaping/texts/in-tree/shaper-arabic/script-nko/misc/MANIFEST | 1 +
+ .../shaping/texts/in-tree/shaper-arabic/script-nko/misc/misc.txt |
+ 5 +++++
+ test/shaping/texts/in-tree/shaper-default/MANIFEST              | 1 +
+ .../texts/in-tree/shaper-default/script-linear-b/MANIFEST       | 1 +
+ .../texts/in-tree/shaper-default/script-linear-b/misc/MANIFEST   | 1 +
+ .../texts/in-tree/shaper-default/script-linear-b/misc/misc.txt   | 1 +
+ test/shaping/texts/in-tree/shaper-indic/MANIFEST                | 1 +
+ .../shaping/texts/in-tree/shaper-indic/south-east-asian/MANIFEST | 1 +
+ .../in-tree/shaper-indic/south-east-asian/script-khmer/MANIFEST  | 1 +
+ .../shaper-indic/south-east-asian/script-khmer/misc/MANIFEST    | 1 +
+ .../shaper-indic/south-east-asian/script-khmer/misc/misc.txt    |
+ 9 +++++++++
+ 11 files changed, 23 insertions(+)
+
+commit 820e0ed318d9b187a131baa9491d5d390ec33ef4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 20:51:52 2012 -0500
+
+    Add Punjabi tests from test-shape-complex also
+
+ .../texts/in-tree/shaper-indic/indic/script-punjabi/misc/MANIFEST
+ | 1 +
+ .../texts/in-tree/shaper-indic/indic/script-punjabi/misc/misc.txt
+ | 1 +
+ 2 files changed, 2 insertions(+)
+
+commit a7d71c105772fb612871b4cae59bdae47bbc8751
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 20:50:09 2012 -0500
+
+    Add Tamil test data from Muguntharaj Subramanian
+
+ .../shaper-indic/indic/script-tamil/misc/MANIFEST  |  1 +
+ .../shaper-indic/indic/script-tamil/misc/misc.txt  | 43
+ ++++++++++++++++++++++
+ 2 files changed, 44 insertions(+)
+
+commit 5992a9941e7f19181df1e34e79e514ccedc3d284
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 20:48:14 2012 -0500
+
+    Import test data from late test-shape-complex
+
+ .../in-tree/shaper-arabic/script-arabic/MANIFEST   |  1 +
+ .../shaper-arabic/script-arabic/misc/MANIFEST     |  0
+ .../in-tree/shaper-arabic/script-mandaic/MANIFEST  |  1 +
+ .../shaper-arabic/script-mandaic/misc/MANIFEST     |  0
+ .../shaper-arabic/script-mongolian/MANIFEST       |  1 +
+ .../shaper-arabic/script-mongolian/misc/MANIFEST   |  0
+ .../in-tree/shaper-arabic/script-nko/MANIFEST     |  1 +
+ .../in-tree/shaper-arabic/script-nko/misc/MANIFEST |  0
+ .../in-tree/shaper-arabic/script-syriac/MANIFEST   |  1 +
+ .../shaper-arabic/script-syriac/misc/MANIFEST     |  0
+ .../shaper-indic/indic/script-assamese/MANIFEST    |  1 +
+ .../indic/script-assamese/misc/MANIFEST           |  0
+ .../shaper-indic/indic/script-bengali/MANIFEST     |  1 +
+ .../indic/script-bengali/misc/MANIFEST                    |  1 +
+ .../indic/script-bengali/misc/misc.txt                    | 48
+ ++++++++++++++++++++++
+ .../shaper-indic/indic/script-devanagari/MANIFEST  |  1 +
+ .../indic/script-devanagari/misc/MANIFEST         |  1 +
+ .../indic/script-devanagari/misc/misc.txt         | 23 +++++++++++
+ .../shaper-indic/indic/script-gujarati/MANIFEST    |  1 +
+ .../indic/script-gujarati/misc/MANIFEST           |  0
+ .../shaper-indic/indic/script-kannada/MANIFEST     |  1 +
+ .../indic/script-kannada/misc/MANIFEST                    |  1 +
+ .../indic/script-kannada/misc/misc.txt                    | 17 ++++++++
+ .../shaper-indic/indic/script-malayalam/MANIFEST   |  1 +
+ .../indic/script-malayalam/misc/MANIFEST          |  1 +
+ .../indic/script-malayalam/misc/misc.txt          | 22 ++++++++++
+ .../shaper-indic/indic/script-oriya/MANIFEST      |  1 +
+ .../shaper-indic/indic/script-oriya/misc/MANIFEST  |  1 +
+ .../shaper-indic/indic/script-oriya/misc/misc.txt  | 28 +++++++++++++
+ .../shaper-indic/indic/script-punjabi/MANIFEST     |  1 +
+ .../indic/script-punjabi/misc/MANIFEST                    |  0
+ .../shaper-indic/indic/script-sinhala/MANIFEST     |  1 +
+ .../indic/script-sinhala/misc/MANIFEST                    |  1 +
+ .../indic/script-sinhala/misc/misc.txt                    |  6 +++
+ .../shaper-indic/indic/script-tamil/MANIFEST      |  1 +
+ .../shaper-indic/indic/script-tamil/misc/MANIFEST  |  0
+ .../shaper-indic/indic/script-telugu/MANIFEST     |  1 +
+ .../shaper-indic/indic/script-telugu/misc/MANIFEST |  1 +
+ .../shaper-indic/indic/script-telugu/misc/misc.txt | 11 +++++
+ 39 files changed, 178 insertions(+)
+
+commit 46ac45647760984c6220f04ba4521038e628b169
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 19:32:17 2012 -0500
+
+    Fix Unicode encoding issue
+
+ test/shaping/hb_test_tools.py | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit ad34e39a4a320310b1edd9fc4d7e740373510c69
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 18:39:27 2012 -0500
+
+    Make test tools interactive
+
+    By bypassing readlines() buffering.
+
+ test/shaping/hb_test_tools.py | 33 +++++++++++++++++++++++++++------
+ 1 file changed, 27 insertions(+), 6 deletions(-)
+
+commit 91540a7d97051a3d6e97fdcd1e98af23e0780cdd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 18:27:52 2012 -0500
+
+    Move most testing logic into hb_test_tools.py
+
+    The actual utils are one-liners now.
+
+ test/shaping/hb-diff                |  77 ++-------------
+ test/shaping/hb-diff-filter-failures |  27 +-----
+ test/shaping/hb-unicode-decode       |  18 +---
+ test/shaping/hb-unicode-encode       |  21 +---
+ test/shaping/hb-unicode-prettyname   |  53 +----------
+ test/shaping/hb_test_tools.py       | 180
+ +++++++++++++++++++++++++++++++++++
+ 6 files changed, 197 insertions(+), 179 deletions(-)
+
+commit 66aa080033dcff07b8bb5e7b1f0e3511f067d6c1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 17:36:10 2012 -0500
+
+    Remove test-shape-complex
+
+    New shaping testsuite and framework coming.
+
+ test/api/Makefile.am              |    6 -
+ test/api/test-shape-complex.c     | 1237
+ ------------------------------------
+ test/shaping/hb-unicode-prettyname |   1 +
+ 3 files changed, 1 insertion(+), 1243 deletions(-)
+
+commit ed459bfb63c58b59fc0dbe25021c396e8ef8683c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 17:24:05 2012 -0500
+
+    Add hb-unicode-encode
+
+ test/shaping/hb-unicode-encode | 22 ++++++++++++++++++++++
+ 1 file changed, 22 insertions(+)
+
+commit d8134bc017ca3383e0978ddee57070eb3aab8964
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 17:18:59 2012 -0500
+
+    [hb-shape] Add parantheses around --show-text output
+
+ util/options.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit b12c4d43614199f8910a06507603f6c431d9df67
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 17:17:44 2012 -0500
+
+    Add hb-diff-filter-failures
+
+ test/shaping/hb-diff-filter-failures | 28 ++++++++++++++++++++++++++++
+ 1 file changed, 28 insertions(+)
+
+commit d4bffbc55bf4c23ab5c7f46af613aeecc79ac515
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 17:16:35 2012 -0500
+
+    Move
+
+ test/shaping/texts/MANIFEST                       |    4 +-
+ test/shaping/texts/in-tree/MANIFEST               |    3 +
+ test/shaping/texts/in-tree/shaper-arabic/MANIFEST  |   5 +
+ .../in-tree/shaper-arabic/script-arabic/MANIFEST   |   0
+ .../in-tree/shaper-arabic/script-mandaic/MANIFEST  |   0
+ .../shaper-arabic/script-mongolian/MANIFEST       |    0
+ .../in-tree/shaper-arabic/script-nko/MANIFEST     |    0
+ .../in-tree/shaper-arabic/script-syriac/MANIFEST   |   0
+ test/shaping/texts/in-tree/shaper-default/MANIFEST |   0
+ test/shaping/texts/in-tree/shaper-indic/MANIFEST   |   1 +
+ .../texts/in-tree/shaper-indic/indic/MANIFEST     |   11 +
+ .../shaper-indic/indic/script-assamese/MANIFEST    |   1 +
+ .../indic/script-assamese/utrrs/LICENSE           |   19 +
+ .../indic/script-assamese/utrrs/MANIFEST          |    3 +
+ .../indic/script-assamese/utrrs/README                    |   13 +
+ .../indic/script-assamese/utrrs/SOURCES           |    2 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   4 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   40 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  10 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  11 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   6 +
+ .../indic/script-assamese/utrrs/codepoint/MANIFEST |   7 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  59 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  131 ++
+ .../indic/script-assamese/utrrs/gpos/MANIFEST     |    2 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  139 ++
+ .../indic/script-assamese/utrrs/gsub/MANIFEST     |    1 +
+ .../shaper-indic/indic/script-bengali/MANIFEST     |   1 +
+ .../indic/script-bengali/utrrs/LICENSE                    |   19 +
+ .../indic/script-bengali/utrrs/MANIFEST           |    3 +
+ .../shaper-indic/indic/script-bengali/utrrs/README |  13 +
+ .../indic/script-bengali/utrrs/SOURCES                    |    2 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   1 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   36 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  10 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  12 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   6 +
+ .../indic/script-bengali/utrrs/codepoint/MANIFEST  |   7 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  58 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  119 ++
+ .../indic/script-bengali/utrrs/gpos/MANIFEST      |    2 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  215 +++
+ .../indic/script-bengali/utrrs/gsub/MANIFEST      |    1 +
+ .../shaper-indic/indic/script-devanagari/MANIFEST  |   1 +
+ .../indic/script-devanagari/utrrs/LICENSE         |   19 +
+ .../indic/script-devanagari/utrrs/MANIFEST        |    3 +
+ .../indic/script-devanagari/utrrs/README          |   13 +
+ .../indic/script-devanagari/utrrs/SOURCES         |    2 +
+ ...icFontFeatureCodepoint-AdditionalConsonants.txt |   8 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   4 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   45 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  14 +
+ ...tFeatureCodepoint-DevnagariSpecificAddition.txt |   1 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...ndicFontFeatureCodepoint-GenericPunctuation.txt |   2 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  16 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |  10 +
+ .../script-devanagari/utrrs/codepoint/MANIFEST     |   9 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  185 +++
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  185 +++
+ .../indic/script-devanagari/utrrs/gpos/MANIFEST    |   2 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           | 1367
+ ++++++++++++++++++++
+ .../indic/script-devanagari/utrrs/gsub/MANIFEST    |   1 +
+ .../shaper-indic/indic/script-gujarati/MANIFEST    |   1 +
+ .../indic/script-gujarati/utrrs/LICENSE           |   19 +
+ .../indic/script-gujarati/utrrs/MANIFEST          |    3 +
+ .../indic/script-gujarati/utrrs/README                    |   13 +
+ .../indic/script-gujarati/utrrs/SOURCES           |    2 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   1 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   34 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  12 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  13 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   7 +
+ .../indic/script-gujarati/utrrs/codepoint/MANIFEST |   7 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  170 +++
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  170 +++
+ .../indic/script-gujarati/utrrs/gpos/MANIFEST     |    2 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           | 1156
+ +++++++++++++++++
+ .../indic/script-gujarati/utrrs/gsub/MANIFEST     |    1 +
+ .../shaper-indic/indic/script-kannada/MANIFEST     |   1 +
+ .../indic/script-kannada/utrrs/LICENSE                    |   19 +
+ .../indic/script-kannada/utrrs/MANIFEST           |    3 +
+ .../shaper-indic/indic/script-kannada/utrrs/README |  13 +
+ .../indic/script-kannada/utrrs/SOURCES                    |    2 +
+ ...icFontFeatureCodepoint-AdditionalConsonants.txt |   1 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   4 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   40 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  13 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  14 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   9 +
+ .../indic/script-kannada/utrrs/codepoint/MANIFEST  |   8 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  188 +++
+ .../indic/script-kannada/utrrs/gpos/MANIFEST      |    1 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  306 +++++
+ .../indic/script-kannada/utrrs/gsub/MANIFEST      |    1 +
+ .../shaper-indic/indic/script-malayalam/MANIFEST   |   1 +
+ .../indic/script-malayalam/utrrs/LICENSE          |   19 +
+ .../indic/script-malayalam/utrrs/MANIFEST         |    2 +
+ .../indic/script-malayalam/utrrs/README           |   13 +
+ .../indic/script-malayalam/utrrs/SOURCES          |    2 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   2 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   36 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  12 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  14 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   4 +
+ .../script-malayalam/utrrs/codepoint/MANIFEST     |    7 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  254 ++++
+ .../indic/script-malayalam/utrrs/gsub/MANIFEST     |   1 +
+ .../shaper-indic/indic/script-oriya/MANIFEST      |    1 +
+ .../shaper-indic/indic/script-oriya/utrrs/LICENSE  |  19 +
+ .../shaper-indic/indic/script-oriya/utrrs/MANIFEST |   2 +
+ .../shaper-indic/indic/script-oriya/utrrs/README   |  13 +
+ .../shaper-indic/indic/script-oriya/utrrs/SOURCES  |   2 +
+ ...icFontFeatureCodepoint-AdditionalConsonants.txt |   3 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   2 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   34 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  12 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  12 +
+ .../IndicFontFeatureCodepoint-OriyaSpecific.txt    |   2 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   8 +
+ .../indic/script-oriya/utrrs/codepoint/MANIFEST    |   9 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  170 +++
+ .../indic/script-oriya/utrrs/gsub/MANIFEST        |    1 +
+ .../shaper-indic/indic/script-punjabi/MANIFEST     |   1 +
+ .../indic/script-punjabi/utrrs/LICENSE                    |   19 +
+ .../indic/script-punjabi/utrrs/MANIFEST           |    3 +
+ .../shaper-indic/indic/script-punjabi/utrrs/README |  13 +
+ .../indic/script-punjabi/utrrs/SOURCES                    |    2 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   38 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |   9 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ .../IndicFontFeatureCodepoint-GurmukhiSpecific.txt |   6 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  10 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   6 +
+ .../indic/script-punjabi/utrrs/codepoint/MANIFEST  |   7 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  22 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |   2 +
+ .../indic/script-punjabi/utrrs/gpos/MANIFEST      |    2 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  152 +++
+ .../indic/script-punjabi/utrrs/gsub/MANIFEST      |    1 +
+ .../shaper-indic/indic/script-sinhala/MANIFEST     |   1 +
+ .../indic/script-sinhala/utrrs/LICENSE                    |   19 +
+ .../indic/script-sinhala/utrrs/MANIFEST           |    3 +
+ .../shaper-indic/indic/script-sinhala/utrrs/README |  13 +
+ .../indic/script-sinhala/utrrs/SOURCES                    |    2 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   41 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  17 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  18 +
+ .../IndicFontFeatureCodepoint-Punctuation.txt     |    1 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   3 +
+ .../indic/script-sinhala/utrrs/codepoint/MANIFEST  |   5 +
+ .../utrrs/gpos/IndicFontFeatureGPOS.txt           |  162 +++
+ .../indic/script-sinhala/utrrs/gpos/MANIFEST      |    1 +
+ .../utrrs/gsub/IndicFontFeatureGSUB-Conjunct.txt   |   1 +
+ .../gsub/IndicFontFeatureGSUB-Rakaaraansaya.txt    |  41 +
+ .../utrrs/gsub/IndicFontFeatureGSUB-Repaya.txt     |  42 +
+ .../gsub/IndicFontFeatureGSUB-Special-Cases.txt    |   2 +
+ .../gsub/IndicFontFeatureGSUB-TouchingLetters.txt  |   1 +
+ .../utrrs/gsub/IndicFontFeatureGSUB-Yansaya.txt    |  41 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |    1 +
+ .../indic/script-sinhala/utrrs/gsub/MANIFEST      |    7 +
+ .../shaper-indic/indic/script-tamil/MANIFEST      |    1 +
+ .../shaper-indic/indic/script-tamil/utrrs/LICENSE  |  19 +
+ .../shaper-indic/indic/script-tamil/utrrs/MANIFEST |   3 +
+ .../shaper-indic/indic/script-tamil/utrrs/README   |  13 +
+ .../shaper-indic/indic/script-tamil/utrrs/SOURCES  |   2 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   23 +
+ .../IndicFontFeatureCodepoint-CurrencySymbols.txt  |   1 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  11 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  12 +
+ .../IndicFontFeatureCodepoint-Numerics.txt        |    3 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-Symbols.txt         |    6 +
+ .../IndicFontFeatureCodepoint-TamilSymbol.txt     |    1 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   4 +
+ .../indic/script-tamil/utrrs/codepoint/MANIFEST    |  10 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  64 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  44 +
+ .../indic/script-tamil/utrrs/gpos/MANIFEST        |    2 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |    4 +
+ .../indic/script-tamil/utrrs/gsub/MANIFEST        |    1 +
+ .../shaper-indic/indic/script-telugu/MANIFEST     |    1 +
+ .../shaper-indic/indic/script-telugu/utrrs/LICENSE |  19 +
+ .../indic/script-telugu/utrrs/MANIFEST                    |    3 +
+ .../shaper-indic/indic/script-telugu/utrrs/README  |  13 +
+ .../shaper-indic/indic/script-telugu/utrrs/SOURCES |   2 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   2 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   38 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  13 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  14 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   6 +
+ .../indic/script-telugu/utrrs/codepoint/MANIFEST   |   7 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  385 ++++++
+ .../indic/script-telugu/utrrs/gpos/MANIFEST       |    1 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  287 ++++
+ .../indic/script-telugu/utrrs/gsub/MANIFEST       |    1 +
+ test/shaping/texts/shaper-arabic/MANIFEST         |    5 -
+ .../texts/shaper-arabic/script-arabic/MANIFEST     |   0
+ .../texts/shaper-arabic/script-mandaic/MANIFEST    |   0
+ .../texts/shaper-arabic/script-mongolian/MANIFEST  |   0
+ .../texts/shaper-arabic/script-nko/MANIFEST       |    0
+ .../texts/shaper-arabic/script-syriac/MANIFEST     |   0
+ test/shaping/texts/shaper-default/MANIFEST        |    0
+ test/shaping/texts/shaper-indic/MANIFEST          |    1 -
+ test/shaping/texts/shaper-indic/indic/MANIFEST     |  11 -
+ .../shaper-indic/indic/script-assamese/MANIFEST    |   1 -
+ .../indic/script-assamese/utrrs/LICENSE           |   19 -
+ .../indic/script-assamese/utrrs/MANIFEST          |    3 -
+ .../indic/script-assamese/utrrs/README                    |   13 -
+ .../indic/script-assamese/utrrs/SOURCES           |    2 -
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   4 -
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   40 -
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  10 -
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 -
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  11 -
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 -
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   6 -
+ .../indic/script-assamese/utrrs/codepoint/MANIFEST |   7 -
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  59 -
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  131 --
+ .../indic/script-assamese/utrrs/gpos/MANIFEST     |    2 -
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  139 --
+ .../indic/script-assamese/utrrs/gsub/MANIFEST     |    1 -
+ .../shaper-indic/indic/script-bengali/MANIFEST     |   1 -
+ .../indic/script-bengali/utrrs/LICENSE                    |   19 -
+ .../indic/script-bengali/utrrs/MANIFEST           |    3 -
+ .../shaper-indic/indic/script-bengali/utrrs/README |  13 -
+ .../indic/script-bengali/utrrs/SOURCES                    |    2 -
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   1 -
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   36 -
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  10 -
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 -
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  12 -
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 -
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   6 -
+ .../indic/script-bengali/utrrs/codepoint/MANIFEST  |   7 -
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  58 -
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  119 --
+ .../indic/script-bengali/utrrs/gpos/MANIFEST      |    2 -
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  215 ---
+ .../indic/script-bengali/utrrs/gsub/MANIFEST      |    1 -
+ .../shaper-indic/indic/script-devanagari/MANIFEST  |   1 -
+ .../indic/script-devanagari/utrrs/LICENSE         |   19 -
+ .../indic/script-devanagari/utrrs/MANIFEST        |    3 -
+ .../indic/script-devanagari/utrrs/README          |   13 -
+ .../indic/script-devanagari/utrrs/SOURCES         |    2 -
+ ...icFontFeatureCodepoint-AdditionalConsonants.txt |   8 -
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   4 -
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   45 -
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  14 -
+ ...tFeatureCodepoint-DevnagariSpecificAddition.txt |   1 -
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 -
+ ...ndicFontFeatureCodepoint-GenericPunctuation.txt |   2 -
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  16 -
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |  10 -
+ .../script-devanagari/utrrs/codepoint/MANIFEST     |   9 -
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  185 ---
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  185 ---
+ .../indic/script-devanagari/utrrs/gpos/MANIFEST    |   2 -
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           | 1367
+ --------------------
+ .../indic/script-devanagari/utrrs/gsub/MANIFEST    |   1 -
+ .../shaper-indic/indic/script-gujarati/MANIFEST    |   1 -
+ .../indic/script-gujarati/utrrs/LICENSE           |   19 -
+ .../indic/script-gujarati/utrrs/MANIFEST          |    3 -
+ .../indic/script-gujarati/utrrs/README                    |   13 -
+ .../indic/script-gujarati/utrrs/SOURCES           |    2 -
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   1 -
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   34 -
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  12 -
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 -
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  13 -
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 -
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   7 -
+ .../indic/script-gujarati/utrrs/codepoint/MANIFEST |   7 -
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  170 ---
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  170 ---
+ .../indic/script-gujarati/utrrs/gpos/MANIFEST     |    2 -
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           | 1156
+ -----------------
+ .../indic/script-gujarati/utrrs/gsub/MANIFEST     |    1 -
+ .../shaper-indic/indic/script-kannada/MANIFEST     |   1 -
+ .../indic/script-kannada/utrrs/LICENSE                    |   19 -
+ .../indic/script-kannada/utrrs/MANIFEST           |    3 -
+ .../shaper-indic/indic/script-kannada/utrrs/README |  13 -
+ .../indic/script-kannada/utrrs/SOURCES                    |    2 -
+ ...icFontFeatureCodepoint-AdditionalConsonants.txt |   1 -
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   4 -
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   40 -
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  13 -
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 -
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  14 -
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 -
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   9 -
+ .../indic/script-kannada/utrrs/codepoint/MANIFEST  |   8 -
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  188 ---
+ .../indic/script-kannada/utrrs/gpos/MANIFEST      |    1 -
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  306 -----
+ .../indic/script-kannada/utrrs/gsub/MANIFEST      |    1 -
+ .../shaper-indic/indic/script-malayalam/MANIFEST   |   1 -
+ .../indic/script-malayalam/utrrs/LICENSE          |   19 -
+ .../indic/script-malayalam/utrrs/MANIFEST         |    2 -
+ .../indic/script-malayalam/utrrs/README           |   13 -
+ .../indic/script-malayalam/utrrs/SOURCES          |    2 -
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   2 -
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   36 -
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  12 -
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 -
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  14 -
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 -
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   4 -
+ .../script-malayalam/utrrs/codepoint/MANIFEST     |    7 -
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  254 ----
+ .../indic/script-malayalam/utrrs/gsub/MANIFEST     |   1 -
+ .../texts/shaper-indic/indic/script-oriya/MANIFEST |   1 -
+ .../shaper-indic/indic/script-oriya/utrrs/LICENSE  |  19 -
+ .../shaper-indic/indic/script-oriya/utrrs/MANIFEST |   2 -
+ .../shaper-indic/indic/script-oriya/utrrs/README   |  13 -
+ .../shaper-indic/indic/script-oriya/utrrs/SOURCES  |   2 -
+ ...icFontFeatureCodepoint-AdditionalConsonants.txt |   3 -
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   2 -
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   34 -
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  12 -
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 -
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  12 -
+ .../IndicFontFeatureCodepoint-OriyaSpecific.txt    |   2 -
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 -
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   8 -
+ .../indic/script-oriya/utrrs/codepoint/MANIFEST    |   9 -
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  170 ---
+ .../indic/script-oriya/utrrs/gsub/MANIFEST        |    1 -
+ .../shaper-indic/indic/script-punjabi/MANIFEST     |   1 -
+ .../indic/script-punjabi/utrrs/LICENSE                    |   19 -
+ .../indic/script-punjabi/utrrs/MANIFEST           |    3 -
+ .../shaper-indic/indic/script-punjabi/utrrs/README |  13 -
+ .../indic/script-punjabi/utrrs/SOURCES                    |    2 -
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   38 -
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |   9 -
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 -
+ .../IndicFontFeatureCodepoint-GurmukhiSpecific.txt |   6 -
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  10 -
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 -
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   6 -
+ .../indic/script-punjabi/utrrs/codepoint/MANIFEST  |   7 -
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  22 -
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |   2 -
+ .../indic/script-punjabi/utrrs/gpos/MANIFEST      |    2 -
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  152 ---
+ .../indic/script-punjabi/utrrs/gsub/MANIFEST      |    1 -
+ .../shaper-indic/indic/script-sinhala/MANIFEST     |   1 -
+ .../indic/script-sinhala/utrrs/LICENSE                    |   19 -
+ .../indic/script-sinhala/utrrs/MANIFEST           |    3 -
+ .../shaper-indic/indic/script-sinhala/utrrs/README |  13 -
+ .../indic/script-sinhala/utrrs/SOURCES                    |    2 -
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   41 -
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  17 -
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  18 -
+ .../IndicFontFeatureCodepoint-Punctuation.txt     |    1 -
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   3 -
+ .../indic/script-sinhala/utrrs/codepoint/MANIFEST  |   5 -
+ .../utrrs/gpos/IndicFontFeatureGPOS.txt           |  162 ---
+ .../indic/script-sinhala/utrrs/gpos/MANIFEST      |    1 -
+ .../utrrs/gsub/IndicFontFeatureGSUB-Conjunct.txt   |   1 -
+ .../gsub/IndicFontFeatureGSUB-Rakaaraansaya.txt    |  41 -
+ .../utrrs/gsub/IndicFontFeatureGSUB-Repaya.txt     |  42 -
+ .../gsub/IndicFontFeatureGSUB-Special-Cases.txt    |   2 -
+ .../gsub/IndicFontFeatureGSUB-TouchingLetters.txt  |   1 -
+ .../utrrs/gsub/IndicFontFeatureGSUB-Yansaya.txt    |  41 -
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |    1 -
+ .../indic/script-sinhala/utrrs/gsub/MANIFEST      |    7 -
+ .../texts/shaper-indic/indic/script-tamil/MANIFEST |   1 -
+ .../shaper-indic/indic/script-tamil/utrrs/LICENSE  |  19 -
+ .../shaper-indic/indic/script-tamil/utrrs/MANIFEST |   3 -
+ .../shaper-indic/indic/script-tamil/utrrs/README   |  13 -
+ .../shaper-indic/indic/script-tamil/utrrs/SOURCES  |   2 -
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   23 -
+ .../IndicFontFeatureCodepoint-CurrencySymbols.txt  |   1 -
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  11 -
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 -
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  12 -
+ .../IndicFontFeatureCodepoint-Numerics.txt        |    3 -
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 -
+ .../IndicFontFeatureCodepoint-Symbols.txt         |    6 -
+ .../IndicFontFeatureCodepoint-TamilSymbol.txt     |    1 -
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   4 -
+ .../indic/script-tamil/utrrs/codepoint/MANIFEST    |  10 -
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  64 -
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  44 -
+ .../indic/script-tamil/utrrs/gpos/MANIFEST        |    2 -
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |    4 -
+ .../indic/script-tamil/utrrs/gsub/MANIFEST        |    1 -
+ .../shaper-indic/indic/script-telugu/MANIFEST     |    1 -
+ .../shaper-indic/indic/script-telugu/utrrs/LICENSE |  19 -
+ .../indic/script-telugu/utrrs/MANIFEST                    |    3 -
+ .../shaper-indic/indic/script-telugu/utrrs/README  |  13 -
+ .../shaper-indic/indic/script-telugu/utrrs/SOURCES |   2 -
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   2 -
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   38 -
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  13 -
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 -
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  14 -
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 -
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   6 -
+ .../indic/script-telugu/utrrs/codepoint/MANIFEST   |   7 -
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  385 ------
+ .../indic/script-telugu/utrrs/gpos/MANIFEST       |    1 -
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  287 ----
+ .../indic/script-telugu/utrrs/gsub/MANIFEST       |    1 -
+ 422 files changed, 7601 insertions(+), 7600 deletions(-)
+
+commit 45f640c98d752161e51eda63061d70fad9ab9f68
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 14:24:21 2012 -0500
+
+    Minor
+
+ test/shaping/hb-diff | 35 ++++++++++++++++++++---------------
+ 1 file changed, 20 insertions(+), 15 deletions(-)
+
+commit 47ca766a9cbdfb304f60e23a4dee0a155075a277
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 14:21:53 2012 -0500
+
+    Minor
+
+ test/shaping/hb-unicode-decode     | 2 +-
+ test/shaping/hb-unicode-prettyname | 5 ++---
+ 2 files changed, 3 insertions(+), 4 deletions(-)
+
+commit 8f1db07894674b02c36ca9352e666b4618ee8832
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 13:57:57 2012 -0500
+
+    [test/shaping] Add some Indic test data for the new test suite
+
+    Imported from UTRRS.
+
+ test/shaping/texts/shaper-indic/indic/MANIFEST     |   2 +-
+ .../shaper-indic/indic/script-assamese/MANIFEST    |   1 +
+ .../indic/script-assamese/utrrs/LICENSE           |   19 +
+ .../indic/script-assamese/utrrs/MANIFEST          |    3 +
+ .../indic/script-assamese/utrrs/README                    |   13 +
+ .../indic/script-assamese/utrrs/SOURCES           |    2 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   4 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   40 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  10 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  11 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   6 +
+ .../indic/script-assamese/utrrs/codepoint/MANIFEST |   7 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  59 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  131 ++
+ .../indic/script-assamese/utrrs/gpos/MANIFEST     |    2 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  139 ++
+ .../indic/script-assamese/utrrs/gsub/MANIFEST     |    1 +
+ .../shaper-indic/indic/script-bengali/MANIFEST     |   1 +
+ .../indic/script-bengali/utrrs/LICENSE                    |   19 +
+ .../indic/script-bengali/utrrs/MANIFEST           |    3 +
+ .../shaper-indic/indic/script-bengali/utrrs/README |  13 +
+ .../indic/script-bengali/utrrs/SOURCES                    |    2 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   1 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   36 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  10 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  12 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   6 +
+ .../indic/script-bengali/utrrs/codepoint/MANIFEST  |   7 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  58 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  119 ++
+ .../indic/script-bengali/utrrs/gpos/MANIFEST      |    2 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  215 +++
+ .../indic/script-bengali/utrrs/gsub/MANIFEST      |    1 +
+ .../shaper-indic/indic/script-devanagari/MANIFEST  |   1 +
+ .../indic/script-devanagari/utrrs/LICENSE         |   19 +
+ .../indic/script-devanagari/utrrs/MANIFEST        |    3 +
+ .../indic/script-devanagari/utrrs/README          |   13 +
+ .../indic/script-devanagari/utrrs/SOURCES         |    2 +
+ ...icFontFeatureCodepoint-AdditionalConsonants.txt |   8 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   4 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   45 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  14 +
+ ...tFeatureCodepoint-DevnagariSpecificAddition.txt |   1 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...ndicFontFeatureCodepoint-GenericPunctuation.txt |   2 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  16 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |  10 +
+ .../script-devanagari/utrrs/codepoint/MANIFEST     |   9 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  185 +++
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  185 +++
+ .../indic/script-devanagari/utrrs/gpos/MANIFEST    |   2 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           | 1367
+ ++++++++++++++++++++
+ .../indic/script-devanagari/utrrs/gsub/MANIFEST    |   1 +
+ .../shaper-indic/indic/script-gujarati/MANIFEST    |   1 +
+ .../indic/script-gujarati/utrrs/LICENSE           |   19 +
+ .../indic/script-gujarati/utrrs/MANIFEST          |    3 +
+ .../indic/script-gujarati/utrrs/README                    |   13 +
+ .../indic/script-gujarati/utrrs/SOURCES           |    2 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   1 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   34 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  12 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  13 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   7 +
+ .../indic/script-gujarati/utrrs/codepoint/MANIFEST |   7 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  170 +++
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  170 +++
+ .../indic/script-gujarati/utrrs/gpos/MANIFEST     |    2 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           | 1156
+ +++++++++++++++++
+ .../indic/script-gujarati/utrrs/gsub/MANIFEST     |    1 +
+ .../shaper-indic/indic/script-kannada/MANIFEST     |   1 +
+ .../indic/script-kannada/utrrs/LICENSE                    |   19 +
+ .../indic/script-kannada/utrrs/MANIFEST           |    3 +
+ .../shaper-indic/indic/script-kannada/utrrs/README |  13 +
+ .../indic/script-kannada/utrrs/SOURCES                    |    2 +
+ ...icFontFeatureCodepoint-AdditionalConsonants.txt |   1 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   4 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   40 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  13 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  14 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   9 +
+ .../indic/script-kannada/utrrs/codepoint/MANIFEST  |   8 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  188 +++
+ .../indic/script-kannada/utrrs/gpos/MANIFEST      |    1 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  306 +++++
+ .../indic/script-kannada/utrrs/gsub/MANIFEST      |    1 +
+ .../shaper-indic/indic/script-malayalam/MANIFEST   |   1 +
+ .../indic/script-malayalam/utrrs/LICENSE          |   19 +
+ .../indic/script-malayalam/utrrs/MANIFEST         |    2 +
+ .../indic/script-malayalam/utrrs/README           |   13 +
+ .../indic/script-malayalam/utrrs/SOURCES          |    2 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   2 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   36 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  12 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  14 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   4 +
+ .../script-malayalam/utrrs/codepoint/MANIFEST     |    7 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  254 ++++
+ .../indic/script-malayalam/utrrs/gsub/MANIFEST     |   1 +
+ .../texts/shaper-indic/indic/script-oriya/MANIFEST |   1 +
+ .../shaper-indic/indic/script-oriya/utrrs/LICENSE  |  19 +
+ .../shaper-indic/indic/script-oriya/utrrs/MANIFEST |   2 +
+ .../shaper-indic/indic/script-oriya/utrrs/README   |  13 +
+ .../shaper-indic/indic/script-oriya/utrrs/SOURCES  |   2 +
+ ...icFontFeatureCodepoint-AdditionalConsonants.txt |   3 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   2 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   34 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  12 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  12 +
+ .../IndicFontFeatureCodepoint-OriyaSpecific.txt    |   2 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   8 +
+ .../indic/script-oriya/utrrs/codepoint/MANIFEST    |   9 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  170 +++
+ .../indic/script-oriya/utrrs/gsub/MANIFEST        |    1 +
+ .../shaper-indic/indic/script-punjabi/MANIFEST     |   1 +
+ .../indic/script-punjabi/utrrs/LICENSE                    |   19 +
+ .../indic/script-punjabi/utrrs/MANIFEST           |    3 +
+ .../shaper-indic/indic/script-punjabi/utrrs/README |  13 +
+ .../indic/script-punjabi/utrrs/SOURCES                    |    2 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   38 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |   9 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ .../IndicFontFeatureCodepoint-GurmukhiSpecific.txt |   6 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  10 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   6 +
+ .../indic/script-punjabi/utrrs/codepoint/MANIFEST  |   7 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  22 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |   2 +
+ .../indic/script-punjabi/utrrs/gpos/MANIFEST      |    2 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  152 +++
+ .../indic/script-punjabi/utrrs/gsub/MANIFEST      |    1 +
+ .../shaper-indic/indic/script-sinhala/MANIFEST     |   1 +
+ .../indic/script-sinhala/utrrs/LICENSE                    |   19 +
+ .../indic/script-sinhala/utrrs/MANIFEST           |    3 +
+ .../shaper-indic/indic/script-sinhala/utrrs/README |  13 +
+ .../indic/script-sinhala/utrrs/SOURCES                    |    2 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   41 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  17 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  18 +
+ .../IndicFontFeatureCodepoint-Punctuation.txt     |    1 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   3 +
+ .../indic/script-sinhala/utrrs/codepoint/MANIFEST  |   5 +
+ .../utrrs/gpos/IndicFontFeatureGPOS.txt           |  162 +++
+ .../indic/script-sinhala/utrrs/gpos/MANIFEST      |    1 +
+ .../utrrs/gsub/IndicFontFeatureGSUB-Conjunct.txt   |   1 +
+ .../gsub/IndicFontFeatureGSUB-Rakaaraansaya.txt    |  41 +
+ .../utrrs/gsub/IndicFontFeatureGSUB-Repaya.txt     |  42 +
+ .../gsub/IndicFontFeatureGSUB-Special-Cases.txt    |   2 +
+ .../gsub/IndicFontFeatureGSUB-TouchingLetters.txt  |   1 +
+ .../utrrs/gsub/IndicFontFeatureGSUB-Yansaya.txt    |  41 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |    1 +
+ .../indic/script-sinhala/utrrs/gsub/MANIFEST      |    7 +
+ .../texts/shaper-indic/indic/script-tamil/MANIFEST |   1 +
+ .../shaper-indic/indic/script-tamil/utrrs/LICENSE  |  19 +
+ .../shaper-indic/indic/script-tamil/utrrs/MANIFEST |   3 +
+ .../shaper-indic/indic/script-tamil/utrrs/README   |  13 +
+ .../shaper-indic/indic/script-tamil/utrrs/SOURCES  |   2 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   23 +
+ .../IndicFontFeatureCodepoint-CurrencySymbols.txt  |   1 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  11 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  12 +
+ .../IndicFontFeatureCodepoint-Numerics.txt        |    3 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-Symbols.txt         |    6 +
+ .../IndicFontFeatureCodepoint-TamilSymbol.txt     |    1 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   4 +
+ .../indic/script-tamil/utrrs/codepoint/MANIFEST    |  10 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  64 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt  |  44 +
+ .../indic/script-tamil/utrrs/gpos/MANIFEST        |    2 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |    4 +
+ .../indic/script-tamil/utrrs/gsub/MANIFEST        |    1 +
+ .../shaper-indic/indic/script-telugu/MANIFEST     |    1 +
+ .../shaper-indic/indic/script-telugu/utrrs/LICENSE |  19 +
+ .../indic/script-telugu/utrrs/MANIFEST                    |    3 +
+ .../shaper-indic/indic/script-telugu/utrrs/README  |  13 +
+ .../shaper-indic/indic/script-telugu/utrrs/SOURCES |   2 +
+ .../IndicFontFeatureCodepoint-AdditionalVowels.txt |   2 +
+ .../IndicFontFeatureCodepoint-Consonants.txt      |   38 +
+ .../IndicFontFeatureCodepoint-DependentVowels.txt  |  13 +
+ .../codepoint/IndicFontFeatureCodepoint-Digits.txt |  10 +
+ ...IndicFontFeatureCodepoint-IndependentVowels.txt |  14 +
+ .../IndicFontFeatureCodepoint-Reserved.txt        |    2 +
+ .../IndicFontFeatureCodepoint-VariousSigns.txt     |   6 +
+ .../indic/script-telugu/utrrs/codepoint/MANIFEST   |   7 +
+ .../utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt  |  385 ++++++
+ .../indic/script-telugu/utrrs/gpos/MANIFEST       |    1 +
+ .../utrrs/gsub/IndicFontFeatureGSUB.txt           |  287 ++++
+ .../indic/script-telugu/utrrs/gsub/MANIFEST       |    1 +
+ 202 files changed, 7581 insertions(+), 1 deletion(-)
+
+commit 11267aef364b1cc5683ce65aaf544b7f2a127fb3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 13:57:14 2012 -0500
+
+    Fix
+
+ test/shaping/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4e84ce48d5d41cf1bad2fb8774e5c66745b0e75e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 13:50:55 2012 -0500
+
+    Move hb-diff to test/shaping/
+
+ test/shaping/hb-diff | 70
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++
+ util/Makefile.am     |  2 --
+ util/hb-diff        | 70
+ ----------------------------------------------------
+ 3 files changed, 70 insertions(+), 72 deletions(-)
+
+commit f868e1b84d2f73688d4d6558d44610b1ac75ec13
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 13:50:05 2012 -0500
+
+    Add hb-unicode-decode
+
+ test/shaping/hb-manifest-read   | 36
+ ++++++++++++++++++++++++++++++++++++
+ test/shaping/hb-manifest-update  | 22 ++++++++++++++++++++++
+ test/shaping/hb-read-manifest   | 36
+ ------------------------------------
+ test/shaping/hb-unicode-decode   | 19 +++++++++++++++++++
+ test/shaping/hb-update-manifests | 22 ----------------------
+ 5 files changed, 77 insertions(+), 58 deletions(-)
+
+commit 9ab23ef4749b51e60464b9ef2a92739cdc2b36ba
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 13:49:56 2012 -0500
+
+    Minor
+
+ test/shaping/hb-unicode-prettyname | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+commit c8d81db03335192f20f08ab8fabe9869fd7350a2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 13:39:27 2012 -0500
+
+    Recognize more characters
+
+ test/shaping/hb-unicode-prettyname | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+commit 0016d4662d486fa32c2191df801a2792f44b273c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jan 20 13:31:59 2012 -0500
+
+    [test] Make hb-unicode-prettyname take a --stdin option
+
+ test/shaping/hb-unicode-prettyname | 15 +++++++++------
+ 1 file changed, 9 insertions(+), 6 deletions(-)
+
+commit ad8c6446f2e0d21d065203924467f6a2c418401e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 19 20:28:31 2012 -0500
+
+    [test/shaping] Add hb-unicode-prettyname
+
+ test/shaping/hb-unicode-prettyname | 38
+ ++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 38 insertions(+)
+
+commit e900869b0f373d25b72d966338beb6cbc53e6446
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 19 20:28:15 2012 -0500
+
+    [test/shaping] Add hb-read-manifest
+
+ test/shaping/hb-read-manifest | 36 ++++++++++++++++++++++++++++++++++++
+ 1 file changed, 36 insertions(+)
+
+commit a211cd3ffce3aa100e92d837384bbaa9decf6b09
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 19 20:27:53 2012 -0500
+
+    Ignore AUTHORS also
+
+ test/shaping/hb-update-manifests | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit c91c4fa47140c0d6191241a832fc534b1c1514ce
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 19 17:51:57 2012 -0500
+
+    [hb-shape] Change glyphstring brackets from </> to [/]
+
+    Sorry for the disruption but I need this to differentiate from the
+    Unicode string.
+
+ util/options.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 36fe87d1b4bf8317074a597501d1ee52c0bec38d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 19 16:55:26 2012 -0500
+
+    More Indic tests from Pravin
+
+ test/api/test-shape-complex.c | 48
+ +++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 48 insertions(+)
+
+commit a33e46cf7d9862856fd7ecb04e047cc58a9785c8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 19 15:43:48 2012 -0500
+
+    [test/shaping] Add hb-update-manifests
+
+ test/shaping/Makefile.am                      |  6 ++----
+ test/shaping/hb-update-manifests              | 22
+ ++++++++++++++++++++++
+ test/shaping/texts/shaper-indic/indic/MANIFEST |  1 +
+ 3 files changed, 25 insertions(+), 4 deletions(-)
+
+commit d4de562adf691425b15e3e9c0eec035feaa60413
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 19 15:21:04 2012 -0500
+
+    Start adding new shaping test suite together
+
+ configure.ac                                                  |  1 +
+ test/Makefile.am                                              |  2 +-
+ test/shaping/Makefile.am                                      |
+ 10 ++++++++++
+ test/shaping/texts/MANIFEST                                   |  3 +++
+ test/shaping/texts/shaper-arabic/MANIFEST                     |  5 +++++
+ test/shaping/texts/shaper-arabic/script-arabic/MANIFEST       |  0
+ test/shaping/texts/shaper-arabic/script-mandaic/MANIFEST      |  0
+ test/shaping/texts/shaper-arabic/script-mongolian/MANIFEST    |  0
+ test/shaping/texts/shaper-arabic/script-nko/MANIFEST          |  0
+ test/shaping/texts/shaper-arabic/script-syriac/MANIFEST       |  0
+ test/shaping/texts/shaper-default/MANIFEST                    |  0
+ test/shaping/texts/shaper-indic/MANIFEST                      |  1 +
+ test/shaping/texts/shaper-indic/indic/MANIFEST                        |
+ 10 ++++++++++
+ test/shaping/texts/shaper-indic/indic/script-assamese/MANIFEST |  0
+ test/shaping/texts/shaper-indic/indic/script-bengali/MANIFEST |  0
+ .../texts/shaper-indic/indic/script-devanagari/MANIFEST       |  0
+ test/shaping/texts/shaper-indic/indic/script-gujarati/MANIFEST |  0
+ test/shaping/texts/shaper-indic/indic/script-kannada/MANIFEST |  0
+ .../shaping/texts/shaper-indic/indic/script-malayalam/MANIFEST |  0
+ test/shaping/texts/shaper-indic/indic/script-oriya/MANIFEST   |  0
+ test/shaping/texts/shaper-indic/indic/script-punjabi/MANIFEST |  0
+ test/shaping/texts/shaper-indic/indic/script-tamil/MANIFEST   |  0
+ test/shaping/texts/shaper-indic/indic/script-telugu/MANIFEST  |  0
+ 23 files changed, 31 insertions(+), 1 deletion(-)
+
+commit 7a4a848db27d1605195f677c9c8632cde558aa05
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 19 15:15:21 2012 -0500
+
+    Minor
+
+ src/hb-ot-shape-complex-private.hh | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 4d6dafd47f4271549e528d2e8047d50562aef399
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 19 14:52:02 2012 -0500
+
+    Rename test/ to test/api/
+
+ configure.ac                 |    1 +
+ test/Makefile.am             |  128 +----
+ test/api/Makefile.am         |  131 +++++
+ test/api/hb-test.h           |  265 +++++++++
+ test/api/test-blob.c         |  301 +++++++++++
+ test/api/test-buffer.c        |  783 +++++++++++++++++++++++++++
+ test/api/test-c.c            |   58 ++
+ test/api/test-common.c        |  213 ++++++++
+ test/api/test-cplusplus.cc    |   30 ++
+ test/api/test-font.c         |  502 +++++++++++++++++
+ test/api/test-object.c        |  367 +++++++++++++
+ test/api/test-ot-tag.c        |  241 +++++++++
+ test/api/test-shape-complex.c | 1189
+ +++++++++++++++++++++++++++++++++++++++++
+ test/api/test-shape.c        |  165 ++++++
+ test/api/test-unicode.c       |  887 ++++++++++++++++++++++++++++++
+ test/api/test-version.c       |   80 +++
+ test/hb-test.h                       |  265 ---------
+ test/test-blob.c             |  301 -----------
+ test/test-buffer.c           |  783 ---------------------------
+ test/test-c.c                |   58 --
+ test/test-common.c           |  213 --------
+ test/test-cplusplus.cc        |   30 --
+ test/test-font.c             |  502 -----------------
+ test/test-object.c           |  367 -------------
+ test/test-ot-tag.c           |  241 ---------
+ test/test-shape-complex.c     | 1189
+ -----------------------------------------
+ test/test-shape.c            |  165 ------
+ test/test-unicode.c          |  887 ------------------------------
+ test/test-version.c          |   80 ---
+ 29 files changed, 5214 insertions(+), 5208 deletions(-)
+
+commit 3b5c22c39b87155f315853fb0c40edcf14e99b54
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 19 14:28:11 2012 -0500
+
+    Remove src/test.cc
+
+    Not really useful.
+
+ src/Makefile.am |   6 +--
+ src/test.cc    | 132
+ --------------------------------------------------------
+ 2 files changed, 1 insertion(+), 137 deletions(-)
+
+commit 4983feebbbb25e79201bf34035e4d58e61218758
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 19 13:54:52 2012 -0500
+
+    [hb-diff] Clean up
+
+ util/hb-diff | 41 ++++++++++++++++++++++++++---------------
+ 1 file changed, 26 insertions(+), 15 deletions(-)
+
+commit cdc673d97c5ffedb386865a81f54a5cedcbad27c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 19 12:46:18 2012 -0500
+
+    [hb-shape] Add --show-line-num
+
+    Ok, much more useful as a test suite driver now.
+
+ util/hb-shape.cc | 24 +++++-------------------
+ util/options.cc  | 34 ++++++++++++++++++++++++++++++++++
+ util/options.hh  | 25 ++++++++++++++++++++-----
+ 3 files changed, 59 insertions(+), 24 deletions(-)
+
+commit cc4d9810d6318ca2e4de3b8d62f03b51cc21ee05
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 19 12:32:20 2012 -0500
+
+    [hb-shape] Add --show-text and --show-unicode options
+
+ util/hb-shape.cc | 19 ++++++++++++++++++-
+ util/options.cc  | 26 +++++++++++++++++++++++---
+ util/options.hh  | 12 +++++++++---
+ 3 files changed, 50 insertions(+), 7 deletions(-)
+
+commit 27c36af411c7c4d75dd25d79fc76dd92c6bb9643
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 19 12:30:43 2012 -0500
+
+    Fix OOB in hb-shape
+
+ util/options.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 8d2781d69274672303e30522e222bd01c6b5e781
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 19 11:36:39 2012 -0500
+
+    [test] Add two Indic test cases from Bernard Massot
+
+ test/test-shape-complex.c | 16 ++++++++++++++++
+ 1 file changed, 16 insertions(+)
+
+commit 8750abaf8410005facbea8c886c592bead7f959b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 18 22:47:44 2012 -0500
+
+    [util] Add --help-features
+
+    Patch from Khaled Hosny.
+
+ util/options.cc | 42 +++++++++++++++++++++++++++++++++++++++++-
+ 1 file changed, 41 insertions(+), 1 deletion(-)
+
+commit 889caa52fa1bef61013ec1d127f84d7d5907ef1e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 18 22:32:52 2012 -0500
+
+    [icu] Use U_FAILURE
+
+ src/hb-icu.cc | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit 36a4f4a482456ee816dcb59befa0b0538ba487df
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 18 22:16:49 2012 -0500
+
+    Replace u_strlen() with u_countChar32()
+
+    The latter is what I meant.
+
+ src/hb-icu.cc | 8 +++-----
+ 1 file changed, 3 insertions(+), 5 deletions(-)
+
+commit 055fb24d03ae518fa0aa6c2860a03f3cb6a5ef0d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 18 21:58:34 2012 -0500
+
+    Add test for bug in ICU decompose
+
+    As reported by Kenichi Ishibashi on 2011-10-28.
+
+ test/test-unicode.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit c521e793bd6c1dafacb94253a45b9c70ab38525e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 18 21:51:05 2012 -0500
+
+    Fix OOB in replace_glyph()
+
+    Patch from Kenichi Ishibashi.
+
+ src/hb-buffer.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 03408ce73d003ed4e58e3f8472f9445e72b86bee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 18 21:28:34 2012 -0500
+
+    Fix more possible buffer overruns
+
+    I have this function, but can't clean up it to my satisfaction.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit 7d479900cd11bc88148cd601ee43bc5492ce5843
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 18 21:19:32 2012 -0500
+
+    Refactor the two remaining uses of _hb_ot_layout_skip_mark()
+
+ src/hb-ot-layout-gsub-table.hh       | 2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 7 +++++--
+ 2 files changed, 6 insertions(+), 3 deletions(-)
+
+commit 506ffeb8e77a668fa305139582d215c32e46bb03
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 18 16:07:53 2012 -0500
+
+    Further mark skippy fixes from Jonathan Kew
+
+    We should be in good shape now.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit a4a48fe6d4f884a37e720430347d10dbe3562a79
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jan 17 18:08:41 2012 -0500
+
+    Fix mark skipping regression
+
+    Ouch!
+
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4ab97311541225906f6b737a2b47de252224cc09
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 16 22:05:08 2012 -0500
+
+    Refactor mark skipping
+
+ src/hb-ot-layout-gpos-table.hh       |  95 ++++++++++----------------
+ src/hb-ot-layout-gsub-table.hh       |  21 +++---
+ src/hb-ot-layout-gsubgpos-private.hh | 125
+ +++++++++++++++++++++++++++--------
+ 3 files changed, 143 insertions(+), 98 deletions(-)
+
+commit 370f03e9c69d98d735eafb7e72b13b17f42cbaa9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 16 17:03:55 2012 -0500
+
+    Minor
+
+ src/hb-ot-layout-gsub-table.hh       | 5 ++---
+ src/hb-ot-layout-gsubgpos-private.hh | 6 ++----
+ 2 files changed, 4 insertions(+), 7 deletions(-)
+
+commit 4d3aeb8cb2bc1ca7cdd03ba28ba8c334f12d4c03
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 16 16:43:26 2012 -0500
+
+    [GSUB/GPOS] Fix mark skip indexing issues
+
+    Mozilla bug 701637 and 714067 combined.
+
+    Patch from Jonathan Kew.
+
+ src/hb-ot-layout-gpos-table.hh       | 42
+ ++++++++++++++++-----------------
+ src/hb-ot-layout-gsub-table.hh       | 21 +++++++++--------
+ src/hb-ot-layout-gsubgpos-private.hh | 45
+ ++++++++++++++++++------------------
+ 3 files changed, 54 insertions(+), 54 deletions(-)
+
+commit e8eedf2687f05372bf5476e84139d01ba67c9f73
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 16 16:39:40 2012 -0500
+
+    Avoid enum trailing commas
+
+    Based on patch from Jonathan Kew.
+
+ src/hb-ot-shape-complex-indic.cc   | 4 ++--
+ src/hb-ot-shape-complex-private.hh | 2 ++
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+commit 3d0ddd12801689b4093ffca97da4dd9ca669b64a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jan 15 15:55:52 2012 -0500
+
+    Require glib >= 2.16 for the gobject option
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 95ab82a992ab916046c2e6205db7cadeec88d206
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jan 15 14:56:56 2012 -0500
+
+    Disable gtk-doc macro
+
+    We don't have any docs yet.
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 299ae0c3a367c84a835eadbd1276ca284d2720c0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jan 14 21:29:45 2012 -0500
+
+    [icu] Remove glib-ism
+
+ src/hb-icu.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit a097043f9a81e6c20caf69a5dabdf9e00438d79b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jan 14 17:55:51 2012 -0500
+
+    Allow space in one more place when parsing features
+
+ util/options.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit af92135424b994062648f4fb7e26af0bd970a4b1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 21 09:18:43 2011 -0700
+
+    Minor
+
+ src/hb-object-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 89d89646e8163b6c0874b9a3c14d4da974ea8219
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 17 11:50:54 2011 -0700
+
+    Fix intrin.h b0rkage with older MSVC
+
+    Reported by Jonathan Kew.
+
+ src/hb-object-private.hh | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+commit af913c5788e600e36d29f44fe4e77db84cf8c442
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 17 11:39:28 2011 -0700
+
+    Fix infinite loop in normalization code with variation selectors
+
+    Reported by Jonathan Kew.
+
+ src/hb-ot-shape-normalize.cc | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit fd528c17b7b5ac912f1ac980e1d9981f561c3b46
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 12 15:03:58 2011 -0400
+
+    [util] Add --list-shapers to hb-view and hb-shape
+
+ util/options.cc | 17 ++++++++++++++++-
+ 1 file changed, 16 insertions(+), 1 deletion(-)
+
+commit a17554bfd51dc8a37b1674d1ede63e616618e0a6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 28 16:57:34 2011 -0400
+
+    Make test-c.c actually use hb
+
+    This will make sure we test that C code can actually link to the
+    library.
+
+ test/test-c.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 55deff7595ef357d000fef83559c74c9f8acad00
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 28 16:20:09 2011 -0400
+
+    Add comments
+
+ src/hb-ot-shape-normalize.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit a240d5a0a3ccc71902e7a341b6d531995319999d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 27 13:50:45 2011 -0400
+
+    Add TODO item
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 52ebdff49d13f239efc886de935d47be9860f6e5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 27 12:38:16 2011 -0400
+
+    Fix GSUB lookuptype 1 subtype 1 delta wrapping
+
+ src/hb-ot-layout-gsub-table.hh | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit 5857720cd35078d1c3906c8b2db3190b5166b66f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 27 12:36:26 2011 -0400
+
+    [util] s/%d/%u/ when printing glyph ids and clusters
+
+ util/options.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit b95324cdd217f44c40c5fd44898e659500f19511
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 21 16:50:39 2011 -0400
+
+    Minor
+
+ src/hb-blob.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 0cd33592ab4bb486ffc438ba0efdac2fa7a1bb7f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 21 16:49:33 2011 -0400
+
+    Fix possible leaks
+
+ src/hb-font.cc | 16 +++++++++++++---
+ 1 file changed, 13 insertions(+), 3 deletions(-)
+
+commit d3f3690b485e1d240fec4f204aef54e07853a244
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 21 16:41:43 2011 -0400
+
+    hb-shape: In --no-glyph-names, output glyph number directly
+
+    Ie. write "86" instead of "gid86".
+
+ util/options.cc | 11 +++++++----
+ 1 file changed, 7 insertions(+), 4 deletions(-)
+
+commit 088c1e27c0fc0cdef999cf1f567e4d5eb2cfb2e4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 20 14:43:55 2011 -0400
+
+    [util] Fix option parsing
+
+    Wow, who knew bool is one byte and I was using it as a 4byte int?!
+
+    C++ auto casts fails you in mysterious ways...
+
+ util/helper-cairo.cc |  2 +-
+ util/options.cc      |  3 ++-
+ util/options.hh      | 14 +++++++-------
+ 3 files changed, 10 insertions(+), 9 deletions(-)
+
+commit d606daa4cca323c8977b2e52e6863dc0f1b72fa9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 20 14:34:06 2011 -0400
+
+    Whitespace
+
+ src/gen-arabic-table.py | 2 +-
+ src/gen-indic-table.py  | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit e700bce1189465a159a7c3c179f231be224f31cc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 20 11:20:53 2011 -0400
+
+    [util] Add hb-diff
+
+    A diff program written in Python that is more suitable for comparing
+    hb-shape output from different backends.  Main differences with stock
+    diff:
+
+    1. It outputs one line's comparison at a time, as opposed to batching
+    '+' lines and '-' lines.
+
+    2. It colors the part of the line that changed, taking word boundaries
+    into consideration.
+
+    You can pipe the colored output to 'less -r'.
+
+ util/Makefile.am |  2 ++
+ util/hb-diff    | 59
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 61 insertions(+)
+
+commit 880c1f0e4ede65890592d28dfb38bb06f5b57500
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 19 23:10:22 2011 -0400
+
+    Rewrite ICU detection code with in-house macros
+
+    At least works for cross-compiling now...
+
+ configure.ac | 26 +++++++++++++++-----------
+ 1 file changed, 15 insertions(+), 11 deletions(-)
+
+commit f83f0f4836691b04306c2ef80979f2e1d76a2f28
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 19 18:51:48 2011 -0400
+
+    [graphite] Add note about graphite shaker brokenness
+
+ src/hb-graphite2.cc | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 422558142aabb996d8ad1848df7ea4d5a8ade98a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 19 17:57:02 2011 -0400
+
+    [util] Account for line-space in surface size
+
+ util/options.cc    | 2 +-
+ util/options.hh    | 1 -
+ util/view-cairo.cc | 2 +-
+ 3 files changed, 2 insertions(+), 3 deletions(-)
+
+commit b5afd8f78e6b372f1bbed469329c1554adb20eea
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 19 16:56:21 2011 -0400
+
+    [util] Rename --output to --output_file, and --format to
+    --output-format
+
+ util/options.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 0a965eee880428a43ad7f9d1317c344666247dd7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 19 16:53:47 2011 -0400
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 466393c2f04fb5b3dcb3e81ea9609905fa8c9648
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 19 16:50:18 2011 -0400
+
+    Really fix build this time
+
+ util/hb-view.hh | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit fe1605db4f28ed75d5debe0db45a19aa77f0585f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 19 16:49:03 2011 -0400
+
+    Fix dist
+
+ util/Makefile.am | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 8b8b19056decaf09e4e0ccd9412ee1aeb30f4de7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 19 16:41:17 2011 -0400
+
+    [util] Add hb-shape utility
+
+    Like hb-view, but prints out buffer contents.
+
+    The output format is kinda cryptic.  Suggestions welcome.
+
+ configure.ac        |   6 -
+ util/Makefile.am     |  44 +++---
+ util/common.cc       |  43 ------
+ util/common.hh       |  57 --------
+ util/hb-shape.cc     |  78 +++++++++++
+ util/hb-view.cc      |  44 +-----
+ util/hb-view.hh      |  79 +++++++++++
+ util/helper-cairo.cc | 375
+ ++++++++++++++++++++++++++++++++++++++++++++++++++
+ util/helper-cairo.hh |  79 +++++++++++
+ util/options.cc      |  79 +++++++++++
+ util/options.hh      |  53 ++++++-
+ util/view-cairo.cc   | 381
+ ++-------------------------------------------------
+ util/view-cairo.hh   |   8 +-
+ 13 files changed, 785 insertions(+), 541 deletions(-)
+
+commit eb2d8be7a8ede0c0f5e346cf06516792f83f36f7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 19 16:15:22 2011 -0400
+
+    Minor
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit f6496663c2f6849a944e41afcf9511f378477532
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 19 15:45:52 2011 -0400
+
+    [util] If no text is provided, simply call cairo_show_glyphs()
+
+ util/view-cairo.cc | 92
+ ++++++++++++++++++++++++++++++------------------------
+ 1 file changed, 51 insertions(+), 41 deletions(-)
+
+commit 5c299343118d1eaff32ffb2a5dac077cfff67dee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 19 14:53:26 2011 -0400
+
+    [uniscribe] Various improvements
+
+ src/hb-uniscribe.cc | 30 +++++++++++++++++++-----------
+ 1 file changed, 19 insertions(+), 11 deletions(-)
+
+commit 11e51993ab562d4c7460eb7c43d0e97404e628e7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 19 09:58:55 2011 -0400
+
+    [util] Move font-size into view-options
+
+ util/options.cc    | 2 +-
+ util/options.hh    | 7 +++----
+ util/view-cairo.cc | 4 ++--
+ 3 files changed, 6 insertions(+), 7 deletions(-)
+
+commit 0fe296019746689551d224a5f6fb7e0ebe1b91dc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Sep 17 09:59:58 2011 -0400
+
+    Fix Linux build when io.h is available
+
+    Bug 40953 - fail compile git: make[2]: *** [hb_view-options.o] Error 1
+
+ configure.ac   | 2 +-
+ util/options.cc | 8 ++++----
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+commit d2b3ab9ecebbf46cb9dac1f09c17379c50ea4575
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 16 16:59:17 2011 -0400
+
+    Fix "[util] Fix hb-view crash with bogus font."
+
+ util/view-cairo.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit da4a2a1426ee3aa9d9678ec12c9ba4dfcba0bcf8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 16 16:56:34 2011 -0400
+
+    Cosmetic
+
+ util/view-cairo.cc | 31 +++++++++++++++++++++++--------
+ 1 file changed, 23 insertions(+), 8 deletions(-)
+
+commit 4274ed7ab6fb03fbf8eaaa43ab06647dc0beed79
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 16 16:52:26 2011 -0400
+
+    [util] Fix hb-view crash with bogus font
+
+ util/view-cairo.cc | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+commit 5ddd9cc499f2470eca239ae357a5c8a3626c0809
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 16 16:40:44 2011 -0400
+
+    Minor
+
+ src/hb-private.hh        | 2 +-
+ src/hb-unicode-private.hh | 4 ++--
+ src/test.cc              | 4 ++--
+ util/common.hh                   | 2 +-
+ util/options.cc          | 8 ++++----
+ 5 files changed, 10 insertions(+), 10 deletions(-)
+
+commit 652d64aa8d32d914bf3ee2f2c451de103fea8fa9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 16 16:34:39 2011 -0400
+
+    TODO items
+
+ TODO | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+commit 947c9a778c0d4b428b58806f98c34ede59b7439c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 16 16:33:18 2011 -0400
+
+    Minor
+
+ src/hb-ot-shape-normalize.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit d5476a30a10da5e54783c8dbf04340225a9a00d7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 16 12:30:50 2011 -0400
+
+    Minor
+
+ src/hb-object-private.hh | 26 +++++++++++++++-----------
+ 1 file changed, 15 insertions(+), 11 deletions(-)
+
+commit 55aeb0490454cc1ba93a42f307ed1230f59dee4b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 16 02:08:36 2011 -0400
+
+    Fix reading text from stdin
+
+ util/options.cc    | 76
+ +++++++++++++++++++++++++++++++++++-------------------
+ util/options.hh    | 16 +++++++-----
+ util/view-cairo.cc |  6 +++--
+ 3 files changed, 64 insertions(+), 34 deletions(-)
+
+commit a75c1b125159f6cfb6b652a9ec40803f7c7e3f71
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 16 01:16:41 2011 -0400
+
+    Move code around
+
+ util/options.cc | 27 +++++++++++++++++++++++++--
+ util/options.hh | 20 +-------------------
+ 2 files changed, 26 insertions(+), 21 deletions(-)
+
+commit 7bf6ecd3bfb1ccf5d9ac6fe274efa74b46885fea
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 16 01:11:30 2011 -0400
+
+    Always shape at size=upem
+
+    Fixes bug with uniscribe not handling GIGANTIC sizes.
+
+ util/options.cc    | 2 +-
+ util/view-cairo.cc | 8 ++++----
+ util/view-cairo.hh | 2 +-
+ 3 files changed, 6 insertions(+), 6 deletions(-)
+
+commit 674ee58d9bc9f825d769220d77f58513edae4558
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 16 00:54:05 2011 -0400
+
+    Minor
+
+ util/options.cc | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+commit 4451168e5d1ea26560899e9a9733b3a3f1853050
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 16 00:38:19 2011 -0400
+
+    Fix binary stdin/stdout io in Windows
+
+    Make --font-file accept "-" to mean stdin, and have it work
+    in Windows too!
+
+ configure.ac   |  2 +-
+ util/common.hh  |  5 +++++
+ util/options.cc | 64
+ +++++++++++++++++++++++++++++++++++++++++++++++----------
+ util/options.hh | 10 +++++++--
+ 4 files changed, 67 insertions(+), 14 deletions(-)
+
+commit 639b5957d9c7b6d8bef6784e3467ccc055ddeea4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 15 18:09:49 2011 -0400
+
+    Minor
+
+ util/options.cc | 5 +++--
+ util/options.hh | 4 ++--
+ 2 files changed, 5 insertions(+), 4 deletions(-)
+
+commit f7e2ef74f856ee13d6fd6cf3f1e04bc162203bc2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 15 17:52:00 2011 -0400
+
+    [hb-view] Make print to stdout work in Windows
+
+    Apparently there's no equivalent to "/dev/stdout", so write using
+    stdio to be able to output to stdout.
+
+ util/common.hh     |  1 +
+ util/options.hh    | 31 ++++++++++++++++-----
+ util/view-cairo.cc | 79
+ ++++++++++++++++++++++++++++++++++++------------------
+ 3 files changed, 78 insertions(+), 33 deletions(-)
+
+commit 36b10f58cc70ce9570d17b30616f9cb27423e03b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 15 16:29:51 2011 -0400
+
+    Minor
+
+ src/hb-ot-shape-normalize.cc | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+commit c4611cb66f8e3a133ec00e3ace62ef19d9b95b28
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 13 13:33:11 2011 -0400
+
+    Fix test
+
+ src/hb-graphite2.h | 1 +
+ src/hb-ot-shape.h  | 1 +
+ src/hb-uniscribe.h | 1 +
+ 3 files changed, 3 insertions(+)
+
+commit b9b10ad78b1f977494a3a42b58f8040fe16505a3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 13 13:30:39 2011 -0400
+
+    [util] Refactor hb-view completely
+
+    Now we can use the same code to do other utils...
+
+ configure.ac      |   2 +
+ util/Makefile.am   |  2 +
+ util/common.cc     |  7 +-
+ util/common.hh     |  2 +-
+ util/hb-view.cc    | 244 ++++-------------------------
+ util/options.cc    | 321 ++++++++++++++++++++++++++------------
+ util/options.hh    | 179 +++++++++++++++++++---
+ util/view-cairo.cc | 440
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ util/view-cairo.hh |  63 ++++++++
+ 9 files changed, 927 insertions(+), 333 deletions(-)
+
+commit bc4b07b05ea9e39eb9f966eb2c3e1c737efa77ff
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 8 17:08:32 2011 -0400
+
+    More reshuffling
+
+ util/hb-view.cc |  4 ++--
+ util/options.cc | 64
+ ++++++++++++++++++++++++++++++---------------------------
+ util/options.hh | 13 ++++++------
+ 3 files changed, 43 insertions(+), 38 deletions(-)
+
+commit 516857eb51bbb79ff4adf44e3fefbf460f9ee8f8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 8 16:50:24 2011 -0400
+
+    [util] Simplify more
+
+ util/options.hh | 9 +++------
+ 1 file changed, 3 insertions(+), 6 deletions(-)
+
+commit 4f4b114a5592c2f5d128ee795f159b438ad97829
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 8 16:49:02 2011 -0400
+
+    [util] Move code around
+
+ util/hb-view.cc |  8 +-------
+ util/options.hh | 14 ++++++++++++++
+ 2 files changed, 15 insertions(+), 7 deletions(-)
+
+commit 46d86a73a103b061144018c3fe947b57548fc58f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 8 16:43:15 2011 -0400
+
+    Minor
+
+    We now support using -1 for NUL-terminated strings.
+
+ util/hb-view.cc | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 90e312cb85df7a6dc350cb62138ab950790e3d15
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 8 16:42:37 2011 -0400
+
+    [util] Move code around
+
+ util/hb-view.cc | 5 -----
+ util/options.hh | 4 ++++
+ 2 files changed, 4 insertions(+), 5 deletions(-)
+
+commit 109cb382898f491eed733dba4ef5ba12de94aaf6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 8 16:00:04 2011 -0400
+
+    [util] Further refactor option parsing
+
+ util/options.cc | 80
+ +++++++++++++++++++++++++++++++++++++++++++++++----------
+ util/options.hh | 20 ++++++++++++---
+ 2 files changed, 83 insertions(+), 17 deletions(-)
+
+commit bc187e5ac7433f5561b0e97e8c62172c73883f3f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 8 13:35:17 2011 -0400
+
+    Refine Indic scripts, following Martin Hosken's recommendation
+
+ src/hb-ot-shape-complex-private.hh | 56
+ +++++++++++++++++++++++---------------
+ 1 file changed, 34 insertions(+), 22 deletions(-)
+
+commit 738d096a06822e63b3894bd817ecb90e5fb94f73
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 2 13:31:19 2011 -0400
+
+    Pass through unknown ISO 639-3 language tags to OpenType engine
+
+    In hb_ot_tag_from_language(), if first component of an unknown
+    language is three letters long, use it directly as OpenType language
+    tag (after case conversion and padding).
+
+ src/hb-ot-tag.cc   | 8 ++++++++
+ test/test-ot-tag.c | 5 +++++
+ 2 files changed, 13 insertions(+)
+
+commit ea02cbf03c084b3ead6e9e4c9af07b3b47608d5b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Sep 2 12:39:20 2011 -0400
+
+    [graphite] Don't preload glyphs
+
+    Doesn't seem to be slower.
+
+ src/hb-graphite2.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 210a06f3d7bd2df55ebd1743da74f327c5a7a967
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 26 13:39:49 2011 +0200
+
+    Minor
+
+ src/hb-graphite2.h | 12 ++++++------
+ src/hb-ot-shape.h  |  1 -
+ src/hb-uniscribe.h |  1 -
+ 3 files changed, 6 insertions(+), 8 deletions(-)
+
+commit 4a8d2e379a34b19bccc72bc3e2d9ace3fdd27733
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 26 09:40:54 2011 +0200
+
+    [graphite2] Chop a few more lines
+
+ src/hb-graphite2.cc | 13 ++++---------
+ 1 file changed, 4 insertions(+), 9 deletions(-)
+
+commit 81ec289da799bd2f50da9382507c606d2c779ab9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 26 09:33:06 2011 +0200
+
+    Minor
+
+ src/hb-graphite2.cc | 24 ++++++++++++------------
+ 1 file changed, 12 insertions(+), 12 deletions(-)
+
+commit 3380de5abbaff535e1cf57ea7e5c2a7c4fdcfe66
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 26 09:30:49 2011 +0200
+
+    [graphite] Use buffer->replace_glyphs()
+
+ src/hb-graphite2.cc | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit 9ebe8c0286856d46430ae184ba7303bd34485883
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 26 09:29:42 2011 +0200
+
+    Add buffer->replace_glyphs()
+
+ src/hb-buffer-private.hh |  3 +++
+ src/hb-buffer.cc        | 26 ++++++++++++++++++++++++++
+ 2 files changed, 29 insertions(+)
+
+commit a5edb1031c204464da4f852ba3d90e8cc20cd20e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 26 09:27:13 2011 +0200
+
+    Minor
+
+ src/hb-graphite2.cc | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+commit 290e3ee51727df75d136ccfff79831b94d1583b6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 26 09:25:04 2011 +0200
+
+    [graphite] Only pass the first part language tag to graphite
+
+    Still not sure about:
+
+    1) Case.  We pass lowercase for now.  Would be nice if graphite was
+    uppercase 3letter like OpenType,
+
+    2) Padding.  IMO, tag padding is always with spaces, but Martin was
+    talking about NUL bytes.
+
+ src/hb-graphite2.cc | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit 4c9fe88d30036340fe592bcbc375049b84602b8b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 26 09:18:53 2011 +0200
+
+    [API] Make all _from_string() functions take a len parameter
+
+    Can be -1 for NUL-terminated string.  This is useful for passing parts
+    of a larger string to a function without having to copy or modify the
+    string first.
+
+    Affected functions:
+
+       hb_tag_t hb_tag_from_string()
+       hb_direction_from_string()
+       hb_language_from_string()
+       hb_script_from_string()
+
+ src/hb-common.cc    | 29 +++++++++++++-------
+ src/hb-common.h     | 12 +++++---
+ src/hb-graphite2.cc | 2 +-
+ src/hb-icu.cc      |  2 +-
+ src/hb-ot-tag.cc    | 8 +++---
+ test/test-buffer.c  | 4 +--
+ test/test-common.c  | 79
+ +++++++++++++++++++++++++++++++----------------------
+ test/test-ot-tag.c  | 22 +++++++--------
+ util/hb-view.cc     | 6 ++--
+ util/options.cc     | 5 +---
+ 10 files changed, 96 insertions(+), 73 deletions(-)
+
+commit a499bdea5cc5097dec62eeafdef58d08ba534be0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 25 22:46:21 2011 +0200
+
+    [graphite2] Bail if grface is NULL
+
+ src/hb-graphite2.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 3007ffa9e53e6100a761c2363f50a2b19a0764fc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 25 09:08:53 2011 +0200
+
+    Reorder combining-class to better suit Arabic shadda mark-mark
+    positioning
+
+    As reported by Khaled on the list:
+
+    "After the introduction of canonical reordering of combining marks
+    (commit 34c22f8), I'm no longer able to do mark/mark substitution or
+    positioning for mark sequences that involve shadda as a first mark (or
+    most interesting sequences at least).
+
+    "After some digging, it turned out that shadda have a ccc=33
+    while most
+    Arabic marks that combine with it have a lower ccc value, which
+    results
+    in the shadda being reordered after the other mark which,
+    unsurprisingly, breaks my contextual substitution and mkmk anchors."
+
+    See:
+
+    http://unicode.org/faq/normalization.html#8
+    http://unicode.org/faq/normalization.html#9
+
+ src/hb-ot-shape-private.hh | 18 +++++++++++++++++-
+ 1 file changed, 17 insertions(+), 1 deletion(-)
+
+commit 74ef81a0b0f9adddfb42c3cb87f08f8156054519
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 24 19:16:13 2011 +0200
+
+    Fix make distcheck
+
+ src/Makefile.am             | 15 ++++++++-------
+ src/hb-gobject-enums.cc.tmpl |  2 +-
+ 2 files changed, 9 insertions(+), 8 deletions(-)
+
+commit 24bcdbcc0639ca9e9c0fde1a71cbbf1c3d2ef98d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 24 19:13:15 2011 +0200
+
+    Add hb-ot-hmtx-table.hh
+
+    Oops!
+
+ src/hb-ot-hmtx-table.hh | 86
+ +++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 86 insertions(+)
+
+commit a3bd8a0e1862212a2d4141b973039bd000a3054f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 24 03:22:49 2011 +0200
+
+    [graphite] Rewrite properly
+
+ src/hb-graphite2.cc | 633
+ ++++++++++++++++++++++------------------------------
+ src/hb-uniscribe.cc |  2 +
+ 2 files changed, 273 insertions(+), 362 deletions(-)
+
+commit 5072934c35bddc23d6bcb07a41010da51eb1b090
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 24 02:24:27 2011 +0200
+
+    Minor
+
+ src/hb-uniscribe.cc | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+commit 46377396accf6b43792ffba553dcd9847608aa86
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 24 02:12:05 2011 +0200
+
+    [configure] Fix graphite bits
+
+ configure.ac | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+commit 71388b3ee71c7d3b79f842db7588bd683691797c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 24 02:09:04 2011 +0200
+
+    [uniscribe] Minor
+
+ src/hb-uniscribe.cc | 19 +++++++++----------
+ 1 file changed, 9 insertions(+), 10 deletions(-)
+
+commit cd2b901027bd154e31aa509c0cb2d86633e36398
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 24 01:47:25 2011 +0200
+
+    [graphite] Minor
+
+ src/hb-graphite2.cc | 10 ++++------
+ src/hb-shape.cc     | 1 -
+ 2 files changed, 4 insertions(+), 7 deletions(-)
+
+commit 834af3b48a1aca3e53811d1eb4ca09b582b8e598
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 24 01:45:47 2011 +0200
+
+    [graphite] Remove hb_graphite2_feature_check()
+
+    I don't see how this function can be useful.
+
+ src/hb-graphite2.cc | 10 ----------
+ src/hb-graphite2.h  | 2 --
+ 2 files changed, 12 deletions(-)
+
+commit 1f49cf32c96cb45a4d8ba2c210aeb7a8076b4762
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 24 01:29:25 2011 +0200
+
+    Add graphite2 integration from Martin Hosken
+
+    To be modified, a lot.
+
+ configure.ac                     |   9 +-
+ contrib/python/lib/harfbuzz.pyx   |  20 +-
+ contrib/python/runpy             |   2 -
+ contrib/python/scripts/hbtestfont |   4 +-
+ contrib/python/setup.py          |  18 +-
+ src/Makefile.am                  |   7 +
+ src/hb-graphite2.cc              | 446
+ ++++++++++++++++++++++++++++++++++++++
+ src/hb-graphite2.h               |  47 ++++
+ src/hb-shape.cc                  |   7 +
+ 9 files changed, 542 insertions(+), 18 deletions(-)
+
+commit 0e6d36d8a3f9f533cb6eb04408af62bfd1ad83da
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 24 01:31:29 2011 +0200
+
+    Minor
+
+ src/Makefile.am          |   2 +-
+ src/hb-uniscribe-shape.cc | 454
+ ----------------------------------------------
+ src/hb-uniscribe.cc      | 454
+ ++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 455 insertions(+), 455 deletions(-)
+
+commit efde8113258b117ec0a7fbffe6d681442d045c41
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 23 00:04:57 2011 +0200
+
+    Add a constructor for hb_prealloced_array_t
+
+    Fixes build with MSVC.
+
+ src/hb-private.hh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit d75333f166d21e9b9f2341c3bc8a9ef8a886f4b3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 19 19:59:24 2011 +0200
+
+    Add gobject enum support, but disabled for now
+
+    need to figure out the naming.  The generated code doesn't have the
+    right name.
+
+ configure.ac                |  2 ++
+ src/Makefile.am             | 13 ++++++--
+ src/hb-gobject-enums.cc.tmpl | 74
+ ++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-gobject-structs.cc    | 63 +++++++++++++++++++++++++++++++++++++
+ src/hb-gobject.cc           | 63 -------------------------------------
+ 5 files changed, 149 insertions(+), 66 deletions(-)
+
+commit 7d235d272f4c9213f54c9c807fb8fba5068c45b0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 17 23:55:29 2011 +0200
+
+    Flesh out tt funcs a bit
+
+ src/hb-tt-font.cc | 36 +++++++++++++++++++++++++++++++++++-
+ 1 file changed, 35 insertions(+), 1 deletion(-)
+
+commit b9415e76d7b41da203b9ae85e38b6dc777481184
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 17 19:21:44 2011 +0200
+
+    [API] Add hb_font_set_funcs_data()
+
+ src/hb-font.cc | 15 +++++++++++++++
+ src/hb-font.h |  6 ++++++
+ 2 files changed, 21 insertions(+)
+
+commit e6c09cdf43201ff1b7f38e411ae1f9977e4f9271
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 17 19:07:59 2011 +0200
+
+    Remove the pre_allocate argument from hb_buffer_create()
+
+    For two reasons:
+
+    1. User can always call hb_buffer_pre_allocate() themselves, and
+
+    2. Now we do a pre_alloc in add_utfX anyway, so the total number of
+    reallocs is limited to a small number (~3) anyway. This just
+    makes the
+    API cleaner.
+
+ src/hb-buffer.cc         | 7 +------
+ src/hb-buffer.h          | 2 +-
+ src/test.cc              | 2 +-
+ test/test-buffer.c       | 9 ++++-----
+ test/test-object.c       | 4 ++--
+ test/test-shape-complex.c | 2 +-
+ test/test-shape.c        | 2 +-
+ util/hb-view.cc          | 2 +-
+ 8 files changed, 12 insertions(+), 18 deletions(-)
+
+commit 187bdeaa6c82fcb95fdd546da9c78b843e1dea0e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 17 19:03:06 2011 +0200
+
+    Do (nothing for) hmtx sanitize
+
+ src/hb-ot-hhea-table.hh | 1 -
+ src/hb-tt-font.cc      | 1 +
+ 2 files changed, 1 insertion(+), 1 deletion(-)
+
+commit d6016e49108be183ab2dc9c226447d1db3a09b90
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 17 14:47:41 2011 +0200
+
+    Fix name-table sanitize
+
+ src/hb-ot-name-table.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit ae9877dea6a1aed3566d9b87a75ede84259deaca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 17 14:43:45 2011 +0200
+
+    Add hhea-table support
+
+ src/Makefile.am               |   1 +
+ src/hb-open-type-private.hh   |   6 ++
+ src/hb-ot-head-table.hh       |   2 +-
+ src/hb-ot-hhea-table.hh       |  93 ++++++++++++++++++
+ src/hb-ot-layout-gdef-table.hh |   2 +-
+ src/hb-ot-layout-gpos-table.hh |   2 +-
+ src/hb-ot-layout-gsub-table.hh |   2 +-
+ src/hb-ot-maxp-table.hh       |   2 +-
+ src/hb-ot-name-table.hh       |   3 +-
+ src/hb-tt-font.cc             | 207
+ +++++++++++++++++++++++++++++++++++++++++
+ 10 files changed, 314 insertions(+), 6 deletions(-)
+
+commit 7a750ac33ec482e2c4856c19ea607f3563741c24
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 17 14:19:59 2011 +0200
+
+    Rename table files from eg maxp-private.hh to maxp-table.hh
+
+ src/Makefile.am                     |   12 +-
+ src/hb-font.cc                              |    2 +-
+ src/hb-ot-head-private.hh           |  143 ---
+ src/hb-ot-head-table.hh             |  143 +++
+ src/hb-ot-layout-gdef-private.hh     |  427 ---------
+ src/hb-ot-layout-gdef-table.hh       |  427 +++++++++
+ src/hb-ot-layout-gpos-private.hh     | 1633
+ ----------------------------------
+ src/hb-ot-layout-gpos-table.hh       | 1633
+ ++++++++++++++++++++++++++++++++++
+ src/hb-ot-layout-gsub-private.hh     |  943 --------------------
+ src/hb-ot-layout-gsub-table.hh       |  943 ++++++++++++++++++++
+ src/hb-ot-layout-gsubgpos-private.hh |    2 +-
+ src/hb-ot-layout.cc                 |    8 +-
+ src/hb-ot-maxp-private.hh           |   66 --
+ src/hb-ot-maxp-table.hh             |   66 ++
+ src/hb-ot-name-private.hh           |  128 ---
+ src/hb-ot-name-table.hh             |  128 +++
+ src/hb-uniscribe-shape.cc           |    2 +-
+ src/main.cc                         |    2 +-
+ 18 files changed, 3354 insertions(+), 3354 deletions(-)
+
+commit 0b7e4d9f20b3ed947d0c441ca59b43c4097cdb0e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 15 20:41:59 2011 +0200
+
+    [ft] FT_Get_Advance() for advance-width callbacks
+
+    Using graphite2's comparerenderer suggests that this makes hb-ft 15
+    times faster.  No caching layer needed anymore.
+
+ configure.ac  |  2 +-
+ src/hb-ft.cc  | 19 +++++++++++++------
+ util/common.hh |  4 +++-
+ 3 files changed, 17 insertions(+), 8 deletions(-)
+
+commit 97796453aab56873809a15b5e316cba8acea7449
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 15 19:03:43 2011 +0200
+
+    Fix falloffs of the GOption conversion
+
+ util/options.cc | 8 ++++----
+ util/options.hh | 4 ++--
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+commit 4e9ff1dd6ee3ea63fd91a76a91d9725a10a294a0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 15 16:21:22 2011 +0200
+
+    Pre-allocate buffers when adding string
+
+    We do a conservative estimate of the number of characters, but still,
+    this limits the number of buffer reallocs to a small constant.
+
+ src/hb-buffer.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 553bc3de82cfda8d83db26a93205e0d39440cbd1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 15 16:21:06 2011 +0200
+
+    Minor
+
+ src/hb-ft.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 254142bb67a5c520a304142301479eb5292592d1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 15 16:15:44 2011 +0200
+
+    [ft] FT_Select_Charmap() when we create face
+
+ src/hb-ft.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit a4cbd03dd17990783d8fd4c6be0c9c0d3d9cae5b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 15 09:52:05 2011 +0200
+
+    Apply 'locl' with 'ccmp' in Arabic shaper
+
+    According to Peter Constable this is indeed what Uniscribe has been
+    doing for years.
+
+    Mozilla Bug 667166 - wrong shape of letter when it comes at the end of
+    word in the arabic version of Firefox 5.0
+
+ src/hb-ot-shape-complex-arabic.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit c214cff55ce539d004d069a484dac3988953cb11
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 14 15:17:16 2011 +0200
+
+    Start adding gobject-introspection support
+
+ configure.ac     | 13 ++++++++++-
+ src/Makefile.am   | 43 ++++++++++++++++-------------------
+ src/hb-common.h   |  1 +
+ src/hb-glib.cc    |  3 ---
+ src/hb-gobject.cc | 63
+ +++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-gobject.h  | 68
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 6 files changed, 163 insertions(+), 28 deletions(-)
+
+commit 9527fb200ffbbd839334e99b51d9671752d393db
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 13 19:03:48 2011 +0200
+
+    Fix missing return
+
+ src/hb-ft.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 77a328769545f6b2970d8491fe77fe98781961cf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 13 17:16:45 2011 +0200
+
+    Minor
+
+ src/hb-common.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 3bb300ee78a40f9ded21ab19283863b733aeb677
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 11 11:54:31 2011 +0200
+
+    Refactor hb-view code
+
+ util/Makefile.am |  26 +++-
+ util/common.cc   |  40 ++++++
+ util/common.hh   |  49 +++++++
+ util/hb-view.cc  | 387
+ ++++---------------------------------------------------
+ util/options.cc  | 318 +++++++++++++++++++++++++++++++++++++++++++++
+ util/options.hh  |  86 +++++++++++++
+ 6 files changed, 541 insertions(+), 365 deletions(-)
+
+commit d6660356dd81358033743f72d8a5fbf2fc70eaf7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 10 22:08:36 2011 +0200
+
+    Add uniscribe font getters
+
+ src/hb-uniscribe-shape.cc | 24 +++++++++++++++++++++---
+ src/hb-uniscribe.h       |  8 ++++++++
+ 2 files changed, 29 insertions(+), 3 deletions(-)
+
+commit 01ec13a1d9ae380305b593e1c52cebb0e8327cb6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 10 22:00:35 2011 +0200
+
+    Implement hb_ft_font_get_face
+
+ src/hb-ft.cc | 15 ++++++++++++++-
+ src/hb-ft.h  |  2 ++
+ 2 files changed, 16 insertions(+), 1 deletion(-)
+
+commit 36a4fe037df201f85b7a544eb30d75dc3585a1b6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 10 21:54:22 2011 +0200
+
+    Fix charset conversion
+
+ util/hb-view.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 25c4830593064f023e296aa795b72ddcaa1c9322
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 10 16:28:38 2011 +0200
+
+    [util] Add hb-shape --shapers
+
+    If the specified shapers fail, hb-shape will fail immediately
+
+ util/hb-view.cc | 57
+ +++++++++++++++++++++++++++++++++------------------------
+ 1 file changed, 33 insertions(+), 24 deletions(-)
+
+commit 0501573deda3a8dcdfcea491392f554f21ed0154
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 10 16:25:56 2011 +0200
+
+    Fix const correctness in the API
+
+ src/hb-fallback-shape-private.hh |  2 +-
+ src/hb-fallback-shape.cc        |  2 +-
+ src/hb-ot-shape.cc              |  2 +-
+ src/hb-ot-shape.h               |  2 +-
+ src/hb-shape.cc                 | 14 +++++++-------
+ src/hb-shape.h                          | 12 ++++++------
+ src/hb-uniscribe-shape.cc       |  2 +-
+ src/hb-uniscribe.h              |  2 +-
+ 8 files changed, 19 insertions(+), 19 deletions(-)
+
+commit a21add6c0da067173d51792d716d6e38379f138f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 10 16:07:49 2011 +0200
+
+    Reformat
+
+ util/hb-view.cc | 49 ++++++++++++++++++-------------------------------
+ 1 file changed, 18 insertions(+), 31 deletions(-)
+
+commit 8df90c81187db58eee6b90426cd16c32feef6be3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 10 15:26:41 2011 +0200
+
+    [util] Port hb-view to GOption
+
+ util/hb-view.cc | 267
+ +++++++++++++++++++++++++++++++++-----------------------
+ 1 file changed, 156 insertions(+), 111 deletions(-)
+
+commit 511a136f0c092880b19250a5df53bcf9f4b043ca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 15:03:00 2011 +0200
+
+    Move hb-view into util/
+
+ Makefile.am     |   3 +-
+ configure.ac    |   1 +
+ src/Makefile.am  |  13 --
+ src/hb-view.cc   | 568
+ -------------------------------------------------------
+ util/Makefile.am |  24 +++
+ util/hb-view.cc  | 568
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 6 files changed, 594 insertions(+), 583 deletions(-)
+
+commit d753ac78da5619a0a545cdaf7a8e65787e996570
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 14:03:12 2011 +0200
+
+    [uniscribe] Remove zerowidth glyphs from output
+
+ src/hb-uniscribe-shape.cc | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+commit 217cc81cd9c3de30b2ef226983ec43c0f78b5c7d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 14:00:44 2011 +0200
+
+    [test/shape-complex] Print cluster and position info in --verbose
+
+ test/test-shape-complex.c | 20 +++++++++++++++++---
+ 1 file changed, 17 insertions(+), 3 deletions(-)
+
+commit 708403e7f3e4a5cf9b0d2bd764fb74b148af7adb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 13:52:36 2011 +0200
+
+    Fix warnings with old glib
+
+ test/hb-test.h | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit ddd247b0c528cdb8bdf5f8063180abe884afa305
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 11:44:42 2011 +0200
+
+    Minor
+
+ src/test.cc | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit 1b8196c98638ba05ae0ebcb8ba7aa99ed9c08e0a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 11:37:46 2011 +0200
+
+    Add fallback shaper
+
+ src/hb-fallback-shape.cc | 23 +++++++++++++++++++++--
+ 1 file changed, 21 insertions(+), 2 deletions(-)
+
+commit 13a601fe99f237b08b7166448e386eaea0b77294
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 11:36:54 2011 +0200
+
+    [FT] Don't make font immutable
+
+ src/hb-ft.cc | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 38b2118724600521c6ad1e49df0667dcdf863634
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 10:51:24 2011 +0200
+
+    [API] Add hb_ft_font_set_funcs(), remove hb_ft_get_font_funcs()
+
+    Remove hb_ft_get_font_funcs() as it cannot be used by the user anyway.
+
+    Add hb_ft_font_set_funcs().  Which will make the font internally use
+    FreeType.  That is, no need for the font to have created using the
+    hb-ft API. Just create using hb_face_create()/hb_font_create() and
+    then call this on the font (after having set font scale).  This
+    internally creates an FT_Face and attached to the font.
+
+ src/Makefile.am    |  4 +--
+ src/hb-ft.cc      | 76
+ +++++++++++++++++++++++++++++++++++++++++++++++++++---
+ src/hb-ft.h       | 10 ++++---
+ src/test.cc       |  7 +++++
+ test/Makefile.am   |  8 ------
+ test/test-object.c |  9 -------
+ 6 files changed, 89 insertions(+), 25 deletions(-)
+
+commit 255f176fdcd42ab94f9c3c54e2bffb55d0b1a8f5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 08:35:07 2011 +0200
+
+    Minor
+
+ src/hb-uniscribe-shape.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit a9057eb3f38018faa1ece53c4aaeeba798b41fd1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 00:47:55 2011 +0200
+
+    [uniscribe] Unbreak
+
+ src/hb-uniscribe-shape.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit c0975e12315b7167b92411584d2f00a751bbc204
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 00:46:18 2011 +0200
+
+    Fix build again
+
+ test/Makefile.am | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 33ccc77902660ed4b49184e5ec99f4fd0ef63175
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 00:43:24 2011 +0200
+
+    [API] Make set_user_data() functions take a replace parameter
+
+    We need this to set data on objects safely without worrying that some
+    other thread unsets it by setting it at the same time.
+
+ src/hb-blob.cc                   |  5 +++--
+ src/hb-blob.h            |  3 ++-
+ src/hb-buffer.cc         |  5 +++--
+ src/hb-buffer.h          |  3 ++-
+ src/hb-common.cc         | 13 ++++++++-----
+ src/hb-font.cc                   | 15 +++++++++------
+ src/hb-font.h            |  9 ++++++---
+ src/hb-object-private.hh  | 13 ++++++++-----
+ src/hb-private.hh        | 16 +++++++++++-----
+ src/hb-shape.cc          |  2 +-
+ src/hb-unicode.cc        |  5 +++--
+ src/hb-unicode.h         |  3 ++-
+ src/hb-uniscribe-shape.cc | 18 ++++++++++++++----
+ test/test-object.c       | 33 +++++++++++++++++----------------
+ 14 files changed, 89 insertions(+), 54 deletions(-)
+
+commit 944b2ba1ce076385f985212bbdf2df96a8a995f0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 00:23:58 2011 +0200
+
+    [buffer] Make API take signed int length
+
+    Since we already switched to accepting -1 as 'zero-terminated'.
+
+ src/hb-buffer.cc    | 12 ++++++------
+ src/hb-buffer.h     | 12 ++++++------
+ src/hb-ot-layout.cc | 2 --
+ src/main.cc        |  1 -
+ 4 files changed, 12 insertions(+), 15 deletions(-)
+
+commit de1e1cf9bccfd116d495804e230dc2e12b733a2d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 00:19:38 2011 +0200
+
+    [FT] Adapt to new face API
+
+ src/hb-ft.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 458c89a85695220d43b69dbae36fc93e3fe78d89
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 00:19:19 2011 +0200
+
+    Minor
+
+ test/test-c.c | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit bf3eef540f81fdeba1c36263d7d5b2ec4c5f07b1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 9 00:13:24 2011 +0200
+
+    [uniscribe] Cleanup backend
+
+ TODO                     |   2 +
+ src/hb-uniscribe-shape.cc | 161
+ ++++++++++++++++++++++++++++++++++------------
+ 2 files changed, 123 insertions(+), 40 deletions(-)
+
+commit f1f848e2e46ac54ff08aca7cd83390af31c7c9ef
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 8 23:41:06 2011 +0200
+
+    Fix build
+
+ test/Makefile.am | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+commit 3897335c7620c37e9a0224b0c42ade0dfdce4053
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 8 23:37:41 2011 +0200
+
+    [API] Sort out get_blob API
+
+    hb_face_get_blob() renamed to hb_face_reference_blob(), returns a
+    reference now.
+
+    hb_face_[sg]et_index() added.
+
+    hb_face_set_upem() added.
+
+ src/hb-font-private.hh      | 3 +-
+ src/hb-font.cc                     | 67
+ +++++++++++++++++++++++++++++++++++----------
+ src/hb-font.h              | 17 ++++++++++--
+ src/hb-ft.cc               |  3 +-
+ src/hb-ot-layout-private.hh | 9 ------
+ src/hb-ot-layout.cc        | 21 --------------
+ src/hb-uniscribe-shape.cc   | 3 +-
+ 7 files changed, 72 insertions(+), 51 deletions(-)
+
+commit e715784be35f0846c0e084b7c53c7556ce933a45
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 8 21:42:02 2011 +0200
+
+    Rename get_table to reference_table in all API
+
+ src/hb-font-private.hh |  6 +++---
+ src/hb-font.cc                | 20 ++++++++++----------
+ src/hb-font.h         |  8 ++++----
+ src/hb-ft.cc          |  4 ++--
+ 4 files changed, 19 insertions(+), 19 deletions(-)
+
+commit 670c873499f7f03fdfc07b8a0567b041628c6ab0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 8 21:36:24 2011 +0200
+
+    Fix shaper ordering logic
+
+ src/hb-shape.cc | 80
+ ++++++++++++++++++++++++---------------------------------
+ 1 file changed, 34 insertions(+), 46 deletions(-)
+
+commit cc797e0d5368b2f5732d77eb3e3882283bd87cf7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 8 03:49:30 2011 +0200
+
+    Minor
+
+ TODO           | 2 --
+ src/hb-shape.cc | 2 ++
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit 826e22732dd8697600a1392f48af21b7b3ce6271
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 7 03:53:42 2011 -0400
+
+    [uniscribe] Fix blob lifecycles
+
+ src/hb-uniscribe-shape.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit ff199ba356f0eb5bc6252203eea18a1d1fd28934
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 7 03:43:46 2011 -0400
+
+    Fix shaper_list manipulation, aaaaaaaaaaaaargh
+
+ src/hb-shape.cc | 16 +++++++++-------
+ 1 file changed, 9 insertions(+), 7 deletions(-)
+
+commit 206e32934592b915b1f3052aecf014c6ced729e1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 7 01:10:55 2011 -0400
+
+    [test] test-object is not FreeType-specific, move it to the right
+    place
+
+ test/Makefile.am | 8 +++-----
+ 1 file changed, 3 insertions(+), 5 deletions(-)
+
+commit 577326b86af80cc137eea81f4cc1e30adf9232b1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 7 01:04:40 2011 -0400
+
+    [uniscribe] Fix cluster calculation
+
+ src/hb-uniscribe-shape.cc | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+commit f6d83b2dcf120f9d6f0a28c6f5de2da7addf9089
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 7 00:59:58 2011 -0400
+
+    Minor
+
+ src/test.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 2eb474afb4a09f4da8f14b444bd6066769010224
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 7 00:59:38 2011 -0400
+
+    [uniscribe] Fix shaper
+
+    It's kinda working finally!
+
+ src/hb-uniscribe-shape.cc | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+commit f22e661147691ebc9d531aa28a850988e6503f9b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 7 00:59:12 2011 -0400
+
+    [glib] Protect against invalid characters
+
+ src/hb-glib.cc | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+commit 144cd49a0eb3ccc749325d0ee14b3ebf4367c971
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 7 00:51:50 2011 -0400
+
+    [buffer] Accept -1 for text_length and item_length
+
+    A -1 text_length means: zero-terminated string.
+    A -1 item_length means: to the end of string.
+
+ src/hb-buffer.cc | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+commit e9c71fab30fd1d5b163c8a072f9e2d3eb8ba3a92
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 7 00:00:27 2011 -0400
+
+    Fix name-table lookup
+
+    Oops!
+
+ src/hb-ot-name-private.hh | 2 +-
+ src/hb-uniscribe-shape.cc | 2 ++
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+commit 3fd2b5bece28c81e3e379352f09eee39d19ac372
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 6 22:59:54 2011 -0400
+
+    [uniscribe] Use font size directly
+
+ src/hb-uniscribe-shape.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 892eb2e462b40451b8f73879eab66310d884386a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 6 22:06:52 2011 -0400
+
+    [uniscribe] Make font selection work
+
+    Not tested yet.
+
+ src/hb-ot-name-private.hh | 37 +++++++++++++++++++++++++++++++++++++
+ src/hb-uniscribe-shape.cc | 30 +++++++++++++++++++++++-------
+ src/test.cc              |  1 -
+ 3 files changed, 60 insertions(+), 8 deletions(-)
+
+commit b492299eb3c398701557e452f6c2c9bd370fbbf3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 5 20:34:50 2011 -0400
+
+    Start implementing the 'name' table
+
+ src/Makefile.am          |  3 +-
+ src/hb-ot-name-private.hh | 91
+ +++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-uniscribe-shape.cc | 12 ++++---
+ 3 files changed, 100 insertions(+), 6 deletions(-)
+
+commit 4538efacca84329a60ff69851de70027d9b4f567
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 5 20:11:06 2011 -0400
+
+    Skip tests by returning 77
+
+    automake test runner understands this.
+
+ src/check-internal-symbols.sh | 3 ++-
+ src/check-libstdc++.sh        | 3 ++-
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+commit 54eb65538da0a6ab0389d09944c90e12a913157d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 5 20:09:25 2011 -0400
+
+    Fix check on OS X sh
+
+ src/check-header-guards.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 9da554504e30a326fc57b28cdb0e57108bfa9555
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 5 19:48:49 2011 -0400
+
+    Add hb_shape_list_shapers()
+
+ src/hb-shape.cc   | 22 ++++++++++++++++++----
+ src/hb-shape.h    |  3 +++
+ test/Makefile.am  |  2 ++
+ test/test-c.c    |  8 ++++++++
+ test/test-shape.c | 15 +++++++++++++++
+ 5 files changed, 46 insertions(+), 4 deletions(-)
+
+commit d7bf473ef222ab420456ff155ffaa09bacb3a394
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 5 18:18:21 2011 -0400
+
+    Minor
+
+ src/check-header-guards.sh  | 1 -
+ src/hb-open-type-private.hh | 10 +++++-----
+ 2 files changed, 5 insertions(+), 6 deletions(-)
+
+commit c62a8f10f3b9a4ac3ac6b686464ac734ebfa2f7f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 5 18:02:30 2011 -0400
+
+    Free all static memory upon exit
+
+ src/hb-common.cc | 8 +++++---
+ src/hb-shape.cc  | 4 ++--
+ 2 files changed, 7 insertions(+), 5 deletions(-)
+
+commit c4d63ef744f79701458ab7af2055afb87ffe8de3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 5 17:54:25 2011 -0400
+
+    Fix env parsing code
+
+    Also changed the separator to comma instead of colon.
+
+ src/hb-shape.cc | 34 +++++++++++++++++++++++++---------
+ 1 file changed, 25 insertions(+), 9 deletions(-)
+
+commit 3931837bebd79c5eb1bd5b24ff12e2c8e7d3f24c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 5 17:22:19 2011 -0400
+
+    Change hb_shape() API back to what it was, add hb_shape_full()
+
+    I disliked changing hb_shape() API, and disliked the fact that it was
+    returning a bool now.  So, reverted.  Added new API for the extra
+    functionality.
+
+ src/hb-view.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 3ca6c4ecc299295b6682fa2b6b9f83b213223bad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 5 17:22:19 2011 -0400
+
+    Change hb_shape() API back to what it was, add hb_shape_full()
+
+    I disliked changing hb_shape() API, and disliked the fact that it was
+    returning a bool now.  So, reverted.  Added new API for the extra
+    functionality.
+
+ src/hb-shape.cc   | 21 +++++++++++++++------
+ src/hb-shape.h    | 14 ++++++++++----
+ src/test.cc      |  2 +-
+ test/test-shape.c |  2 +-
+ 4 files changed, 27 insertions(+), 12 deletions(-)
+
+commit 02aeca985b570763342c35e99af90025bfa088d5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 4 22:31:05 2011 -0400
+
+    [API] Changes to main shape API
+
+    hb_shape() now accepts a shaper_options and a shaper_list argument.
+    Both can be set to NULL to emulate previous API.  And in most
+    situations
+    they are expected to be set to NULL.
+
+    hb_shape() also returns a boolean for now. If shaper_list is
+    NULL, the
+    return value can be ignored.
+
+    shaper_options is ignored for now, but otherwise it should be a
+    NULL-terminated list of strings.
+
+    shaper_list is a NULL-terminated list of strings.  Currently
+    recognized
+    strings are "ot" for native OpenType Layout implementation,
+    "uniscribe"
+    for the Uniscribe backend, and "fallback" for the non-complex backend
+    (that will be implemented shortly).  The fallback backend never fails.
+
+    The env var HB_SHAPER_LIST is also parsed and honored.  It's a
+    colon-separated list of shaper names.  The fallback shaper is
+    invoked if
+    none of the env-listed shapers succeed.
+
+    New API hb_buffer_guess_properties() added.
+
+ TODO                            |   2 -
+ configure.ac                    |   9 +++
+ src/Makefile.am                 |  14 ++--
+ src/hb-buffer-private.hh        |   1 +
+ src/hb-buffer.cc                |  35 ++++++++++
+ src/hb-buffer.h                 |   3 +
+ src/hb-fallback-shape-private.hh |  48 ++++++++++++++
+ src/hb-fallback-shape.cc        |  43 +++++++++++++
+ src/hb-ot-shape.cc              |   9 ++-
+ src/hb-ot-shape.h               |   5 +-
+ src/hb-shape.cc                 | 135
+ +++++++++++++++++++++++----------------
+ src/hb-shape.h                          |  13 ++--
+ src/hb-uniscribe-shape.cc       |  52 ++++++---------
+ src/hb-uniscribe.h              |   5 +-
+ src/hb-view.cc                          |   2 +-
+ src/test.cc                     |   3 +-
+ test/test-shape.c               |   2 +-
+ 17 files changed, 274 insertions(+), 107 deletions(-)
+
+commit 57692adf1294a6db4627d0de7c671e4aa01d2a8f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 4 20:49:16 2011 -0400
+
+    Make test.cc do something more useful
+
+    Hardcoded to the uniscribe backend for now.  Will fix soon.
+
+ src/test.cc | 38 ++++++++++++++++++++++++++++++++++----
+ 1 file changed, 34 insertions(+), 4 deletions(-)
+
+commit c605bbbb6d4b2a98b1f40ca818760088d991f7d1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 4 20:00:53 2011 -0400
+
+    Remove C++ guards from source files
+
+    Where causing issues for people with MSVC.
+
+ src/check-c-linkage-decls.sh           | 3 +--
+ src/hb-blob.cc                                 | 2 --
+ src/hb-buffer-private.hh               | 2 --
+ src/hb-buffer.cc                       | 2 --
+ src/hb-common.cc                       | 2 --
+ src/hb-font-private.hh                         | 2 --
+ src/hb-font.cc                                 | 2 --
+ src/hb-ft.cc                           | 2 --
+ src/hb-glib.cc                                 | 2 --
+ src/hb-icu.cc                          | 2 --
+ src/hb-mutex-private.hh                | 2 --
+ src/hb-object-private.hh               | 4 ----
+ src/hb-open-file-private.hh            | 2 --
+ src/hb-open-type-private.hh            | 4 ----
+ src/hb-ot-head-private.hh              | 2 --
+ src/hb-ot-layout-common-private.hh     | 4 ----
+ src/hb-ot-layout-gdef-private.hh       | 2 --
+ src/hb-ot-layout-gpos-private.hh       | 4 ----
+ src/hb-ot-layout-gsub-private.hh       | 4 ----
+ src/hb-ot-layout-gsubgpos-private.hh   | 6 ------
+ src/hb-ot-layout-private.hh            | 2 --
+ src/hb-ot-layout.cc                    | 2 --
+ src/hb-ot-map-private.hh               | 2 --
+ src/hb-ot-map.cc                       | 2 --
+ src/hb-ot-maxp-private.hh              | 2 --
+ src/hb-ot-shape-complex-arabic-table.hh | 2 --
+ src/hb-ot-shape-complex-arabic.cc      | 2 --
+ src/hb-ot-shape-complex-indic-table.hh  | 2 --
+ src/hb-ot-shape-complex-indic.cc       | 2 --
+ src/hb-ot-shape-complex-misc.cc        | 2 --
+ src/hb-ot-shape-complex-private.hh     | 2 --
+ src/hb-ot-shape-normalize.cc           | 2 --
+ src/hb-ot-shape-private.hh             | 2 --
+ src/hb-ot-shape.cc                     | 2 --
+ src/hb-ot-tag.cc                       | 2 --
+ src/hb-private.hh                      | 8 --------
+ src/hb-shape.cc                        | 2 --
+ src/hb-unicode-private.hh              | 2 --
+ src/hb-unicode.cc                      | 2 --
+ src/hb-uniscribe-shape.cc              | 2 --
+ src/hb-view.cc                                 | 2 --
+ src/main.cc                            | 2 --
+ src/test.cc                            | 2 --
+ 43 files changed, 1 insertion(+), 106 deletions(-)
+
+commit 8336186a52813b53e90b4399dc462d55750e2d37
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 4 19:49:05 2011 -0400
+
+    Zero map objects
+
+ src/hb-ot-map-private.hh | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit ecd3b6e4ad253cf9d0dae1ed2da8ba6caed16b85
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 4 01:57:40 2011 -0400
+
+    More build fixes
+
+ configure.ac | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit c747f509bcc4e6a34ced04e9e79ed414a44437b1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 4 01:51:30 2011 -0400
+
+    More out-of-tree build fixes
+
+ src/check-c-linkage-decls.sh | 3 +--
+ src/check-header-guards.sh   | 8 ++++----
+ 2 files changed, 5 insertions(+), 6 deletions(-)
+
+commit 0530ca9a180edc330ab801c535907cefa4a0c298
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 4 01:42:59 2011 -0400
+
+    Fix out-of-tree build
+
+ test/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ddbf4edc5d09a645351b1bd1722b068aba6a6dec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 4 01:38:37 2011 -0400
+
+    Minor
+
+ configure.ac | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 20dde6101662fd9ebe5f613631ea468f4c0a995f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 4 01:07:33 2011 -0400
+
+    Minor
+
+ src/hb-uniscribe.h | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 44b4f50d05fd51d8056a78e359fbb00fbcac43a0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 4 00:52:20 2011 -0400
+
+    Fix typo
+
+ src/hb-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 0fbb2dc83132a89201ad8b56c6909610437d2da0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 3 19:55:04 2011 -0400
+
+    Add draft experimental Uniscribe backend
+
+    Not complete yet, font selection doesn't work.  But hey it shapes!
+
+    This is not supposed to be a production backend, more like a testing
+    backend.
+
+ configure.ac             |   9 ++
+ src/Makefile.am          |  11 ++
+ src/hb-private.hh        |   4 +-
+ src/hb-uniscribe-shape.cc | 325
+ ++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-uniscribe.h       |  46 +++++++
+ 5 files changed, 394 insertions(+), 1 deletion(-)
+
+commit 0d7d4824b2edc7aeeb995077655a9a89b5c360a9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 3 17:39:24 2011 -0400
+
+    Minor
+
+ configure.ac | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit e62df43649e31b7815c272f01808b3f726c7d07d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 3 17:38:54 2011 -0400
+
+    Add internal hb_buffer_t::get_scratch_buffer()
+
+ src/hb-buffer-private.hh |  2 ++
+ src/hb-buffer.cc        | 10 ++++++++++
+ 2 files changed, 12 insertions(+)
+
+commit 71e7936fcadfd375a8bdc47987ef8b1b2b542df5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 3 17:38:34 2011 -0400
+
+    Minor
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit bf8c57ba745c02370c38198adfdcd8075ba38b13
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 3 17:38:04 2011 -0400
+
+    [API] Add hb_face_get_blob()
+
+    Need to think more about it.
+
+ src/hb-font.cc | 10 ++++++++++
+ src/hb-font.h |  3 +++
+ 2 files changed, 13 insertions(+)
+
+commit 2118fdb9f584e6735e904638e48bae48314372fa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 2 14:06:51 2011 -0400
+
+    Fix fallback shaping
+
+    Broke it a few commits ago.
+
+ src/hb-ot-shape.cc | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+commit 199abbd0f15bd295c3a56845c71b38dd20af1332
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 2 13:59:47 2011 -0400
+
+    Minor
+
+ test/test-unicode.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit 4f052b93c0b17d92b9f0adddf64ef77518bf2ac4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 2 13:44:24 2011 -0400
+
+    Fix build with glib but not freetype
+
+ test/Makefile.am | 7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+
+commit c21be799daa85d5edb2d831ac985d3e43c8755ec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 2 12:05:49 2011 -0400
+
+    Minor
+
+ test/Makefile.am | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit e9c2341b1384c161bbab9871411af0bc9f6c3cf4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 2 11:40:44 2011 -0400
+
+    Don't use icu-config when cross-compiling
+
+ configure.ac | 17 ++++++++++-------
+ 1 file changed, 10 insertions(+), 7 deletions(-)
+
+commit 390dab49b6cf34f263b67d20a13f0752ada57bcc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 2 11:29:55 2011 -0400
+
+    Unbreak icu-config results a bit
+
+ configure.ac | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit b301478a69d961c724a4875b839a81fb458d1153
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 2 11:25:13 2011 -0400
+
+    Bug 39763 - autogen.sh should check pkg-config availability
+
+    (and revert change have_icu change I mistakenly pushed out)
+
+ autogen.sh   | 10 ++++++++--
+ configure.ac |  1 -
+ 2 files changed, 8 insertions(+), 3 deletions(-)
+
+commit f60271c0c2b0101e7b2725f9a9ad950c277a616c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 2 09:56:30 2011 -0400
+
+    Add mingw32 support
+
+    With these changes, on Ubuntu I can do:
+
+    ./configure --host=i586-mingw32msvc  && make
+
+ configure.ac               | 1 +
+ src/hb-mutex-private.hh     | 4 ++--
+ src/hb-open-type-private.hh | 5 +++++
+ src/hb-private.hh          | 6 +++++-
+ src/main.cc                | 1 +
+ 5 files changed, 14 insertions(+), 3 deletions(-)
+
+commit 1264b23e4a4ae1c9831a3009e1c7ab8e65a5b434
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 1 16:39:32 2011 -0400
+
+    Bug 39702 - configure check for ragel
+
+ autogen.sh | 18 +++++++++++++-----
+ 1 file changed, 13 insertions(+), 5 deletions(-)
+
+commit f5414cf0a220d6e6f3d4b6e8221cd583b4684187
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 1 16:34:16 2011 -0400
+
+    Use missing script for calling ragel
+
+ src/Makefile.am | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit a91c58bf98258a34e5f7c1ad39a38db58fadc4b9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 1 16:30:11 2011 -0400
+
+    [Indic] Disable CJCT-disabling logic
+
+    Read comment.
+
+ src/hb-ot-shape-complex-indic.cc | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+commit 5e72071062c015237b79fbd0521341a63166a204
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 31 17:51:50 2011 -0400
+
+    [Indic] Stop looking for base upon seeing joiners
+
+    Not sure where this is documented, but I remember this being the
+    desired
+    behavior.
+
+    test-shape-complex failures are down from 48 to 46.  Meh.
+
+ src/hb-ot-shape-complex-indic.cc | 11 +++++++++--
+ 1 file changed, 9 insertions(+), 2 deletions(-)
+
+commit 281683995a46ed37aeeb84061249758c59822457
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 31 16:00:35 2011 -0400
+
+    Cosmetic
+
+ src/hb-ot-shape-complex-indic.cc | 23 +++++++++++++++--------
+ 1 file changed, 15 insertions(+), 8 deletions(-)
+
+commit 6b37bc80843e38ca7b62500f95fd70c08af68d62
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 31 15:57:00 2011 -0400
+
+    [Indic] Fix ZWJ/ZWNJ application
+
+    Not quite working just yet.  False alarm re 10 failures.  It was
+    crashing.  Ouch!  Back to 48 failures.
+
+ src/hb-ot-shape-complex-indic.cc | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+commit e7be05702447ae270d797398132c1930cd3a9b86
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 31 15:18:57 2011 -0400
+
+    [Indic] Add Final Reordering rules into comments
+
+    Not applied yet.
+
+ src/hb-ot-shape-complex-indic.cc | 86
+ ++++++++++++++++++++++++++++++++++++++--
+ 1 file changed, 83 insertions(+), 3 deletions(-)
+
+commit cfd4382ec1af91640129551697de36fd42c0849a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 31 15:07:11 2011 -0400
+
+    [Indic] Handle Reph when determining base consonant
+
+ src/hb-ot-shape-complex-indic.cc | 24 +++++++++++++++---------
+ 1 file changed, 15 insertions(+), 9 deletions(-)
+
+commit 97158392a5899ddb739afaac925128f33f699bd7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 31 15:01:28 2011 -0400
+
+    [Indic] Ra is a consonant too
+
+ src/hb-ot-shape-complex-indic.cc | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit 0d8f8a177c4bfd4dc642a353bab8d03674e839ac
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 31 14:57:59 2011 -0400
+
+    [Indic] Fix reph inhibition logic
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 9da0487cd452d780673e24329ce03e174a4ef83b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 31 13:46:44 2011 -0400
+
+    [Indic] Support ZWJ/ZWNJ
+
+    Brings test-shape-complex failures down from 52 to 10!
+
+    I hereby declare harfbuzz-ng supporting Indic!
+
+ src/hb-ot-shape-complex-indic.cc | 57
+ +++++++++++++++++++++++++++++++++-------
+ 1 file changed, 48 insertions(+), 9 deletions(-)
+
+commit 9ee27a928a989c71923cef82a9e9828f8e9ca051
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 31 11:10:14 2011 -0400
+
+    [Indic] Suppress reph formation upon joiners
+
+ src/hb-ot-shape-complex-indic.cc | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+commit 8354e004e553856d7d743e0f0b4de4668484026a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jul 31 02:24:51 2011 -0400
+
+    Un-Ra U+09F1.  According to the test suite this is correct.
+
+    But I'm not sure...  Down from 54 failures to 52.
+
+ src/hb-ot-shape-complex-indic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 07cedd81f48907b2e372cd2e963716bbded9ce29
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 30 21:16:51 2011 -0400
+
+    Minor
+
+ test/test-shape-complex.c | 21 +++++++++++----------
+ 1 file changed, 11 insertions(+), 10 deletions(-)
+
+commit ba7e85c104e68b4685c1b3b5c9a260fe0f6879df
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 30 21:11:53 2011 -0400
+
+    Cosmetic
+
+ src/hb-ot-shape-complex-indic.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit f5bc2725cb892264ba223e0a49f7fd2c622a0730
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 30 21:08:10 2011 -0400
+
+    [Indic] For old-style Indic tables, move Halant around
+
+    In old-style Indic OT standards, the post-base Halants are moved after
+    their base.  Emulate that by moving first post-base Halant to
+    post-last-consonant.
+
+    Brings test-shape-complex failures down from 88 to 54.  Getting there!
+
+ src/hb-ot-map-private.hh        |  3 +++
+ src/hb-ot-shape-complex-indic.cc | 20 ++++++++++++++++++++
+ 2 files changed, 23 insertions(+)
+
+commit c47a31fb4793b825f4be57e9cb1b10db352b9512
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 30 20:57:01 2011 -0400
+
+    [OT] Save chosen script tag
+
+ src/hb-ot-layout.cc     | 20 ++++++++++++++++----
+ src/hb-ot-layout.h      |  3 ++-
+ src/hb-ot-map-private.hh |  1 +
+ src/hb-ot-map.cc        |  2 +-
+ 4 files changed, 20 insertions(+), 6 deletions(-)
+
+commit 3a9b14dfdfc278b432890e1537672a4ca141a3b0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 30 20:23:55 2011 -0400
+
+    Minor
+
+ test/test-shape-complex.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 8613193bbf28fe8951c900b68c4418a6fb929626
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 30 20:21:40 2011 -0400
+
+    [test] Fix problem with N'ko test direction
+
+    Old HarfBuzz test suite always shaped as left-to-right and hence
+    had wrong
+    0x14db, direction expected glyphstring for N'ko.  Doh!
+
+    Failures down from 92 to 88.
+
+ test/test-shape-complex.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit fd06bf56110e73826b3d5c73ac964e2609450d46
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 30 20:14:44 2011 -0400
+
+    [Indic] Handle initial Ra+Halant in scripts that support Reph
+
+    Brings test-shape-complex failures down from 104 to 92.  Way to go!
+
+ src/hb-ot-shape-complex-indic.cc | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+commit ee58f3bc75d2d071a71b94063bf12205a5871acb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 30 19:15:53 2011 -0400
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 23 ++++++++++++-----------
+ 1 file changed, 12 insertions(+), 11 deletions(-)
+
+commit 352372ae5ea0998e40cf9fe43c22b6b610a5764e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 30 19:04:02 2011 -0400
+
+    [Indic] Categorize Ra in scripts that have Reph
+
+    Is the categorization correct?  I don't know.
+
+ src/hb-ot-shape-complex-indic.cc | 31 ++++++++++++++++++++++++++++++-
+ 1 file changed, 30 insertions(+), 1 deletion(-)
+
+commit 45d6f29f15f1d2323bcaa2498aed23ff0c8a1567
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 30 14:44:30 2011 -0400
+
+    [Indic] Reorder matras
+
+    Number of failing shape-complex tests goes from 125 down to 94.
+
+    Next: Add Ra handling and it's fair to say we kinda support Indic :).
+
+ src/hb-ot-shape-complex-indic.cc | 29 +++++++++++++++++++++++++++--
+ src/hb-ot-shape-normalize.cc    | 26 ++++++++++----------------
+ src/hb-private.hh               | 36
+ ++++++++++++++++++++++++++++++------
+ 3 files changed, 67 insertions(+), 24 deletions(-)
+
+commit 911bf32acad7f1cd161f666cb659990ade0925ad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 30 11:16:00 2011 -0400
+
+    Bug 39686 - Add '-no-undefined' to libharfbuzz LDFLAGS
+
+ src/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 8f0b64fb6988f9502d2c5e39768a9af133d9a83f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 29 17:02:48 2011 -0400
+
+    Minor
+
+ src/hb-ot-shape-complex-arabic.cc | 6 +++---
+ src/hb-private.hh                | 8 ++++++--
+ 2 files changed, 9 insertions(+), 5 deletions(-)
+
+commit 743807a3ce1b2229e5307a8aea074a7544623d8d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 29 16:37:02 2011 -0400
+
+    [Indic] Apply Indic features
+
+    Find the base consonant and apply basic Indic features accordingly.
+    Nothing complete, but does something for now.  Specifically:
+    no Ra handling right now, and no ZWJ/ZWNJ.
+
+    Number of failing shape-complex tests goes from 174 down to 125.
+
+    Next: reorder matras.
+
+ src/hb-ot-shape-complex-indic-machine.rl |  35 ++++--
+ src/hb-ot-shape-complex-indic.cc        | 209
+ ++++++++++++++++++++++++++++---
+ 2 files changed, 212 insertions(+), 32 deletions(-)
+
+commit 1a1b5013159369b343d0c32df02c9c419277aead
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 29 16:36:46 2011 -0400
+
+    Minor
+
+ test/test-shape-complex.c | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+commit dd5546de15e63c0320b7db2bf42b0f15271f7915
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 29 16:27:31 2011 -0400
+
+    Minor
+
+ test/test-shape-complex.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 9f9bcceca6321d5a5812f878de1de39901349a78
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 28 17:06:46 2011 -0400
+
+    Register buffer vars in Indic shaper
+
+ src/hb-ot-shape-complex-indic.cc | 6 ++++++
+ src/hb-ot-shape.cc              | 2 ++
+ 2 files changed, 8 insertions(+)
+
+commit be09bf6b799cafc2ff54a28915b307ffe99661b6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 28 17:03:43 2011 -0400
+
+    Oops.  This should have gone into the previous commit
+
+ src/hb-ot-layout-gsub-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b65c06025d2b54a44f716e030d4b10072c65bea8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 28 16:48:43 2011 -0400
+
+    Formalize buffer var allocations
+
+ src/hb-buffer-private.hh          | 25 ++++++----------
+ src/hb-buffer.cc                  | 15 +++++-----
+ src/hb-ot-layout-gpos-private.hh   | 14 +++++----
+ src/hb-ot-layout-gsub-private.hh   |  5 +++-
+ src/hb-ot-shape-complex-arabic.cc  |  6 +++-
+ src/hb-ot-shape-complex-indic.cc   |  4 +--
+ src/hb-ot-shape-complex-private.hh | 10 ++++++-
+ src/hb-ot-shape.cc                | 60
+ +++++++++++++++++++++++---------------
+ src/hb-private.hh                 |  1 +
+ 9 files changed, 83 insertions(+), 57 deletions(-)
+
+commit a9ad3d3460ba863a8d8f3766ccbeab288c3c6822
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 28 15:42:18 2011 -0400
+
+    Move more code around
+
+    Buffer var allocation coming into shape
+
+ src/hb-buffer-private.hh        |  1 +
+ src/hb-buffer.cc                | 35 +++++++++++++++++++++++++++++++++++
+ src/hb-ot-layout-gpos-private.hh |  7 +++++++
+ src/hb-ot-layout-gsub-private.hh | 18 ++++++++++++++++++
+ src/hb-ot-layout.cc             |  8 +++-----
+ 5 files changed, 64 insertions(+), 5 deletions(-)
+
+commit cc06c243d8be3ebb1190281653d2dba504c16c0f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 25 20:25:44 2011 -0400
+
+    Streamline debugging infrastructure even more
+
+ src/hb-blob.cc                              |  26 ++++-----
+ src/hb-object-private.hh            |   8 +--
+ src/hb-open-type-private.hh         |  64 ++++++--------------
+ src/hb-ot-layout-gsubgpos-private.hh |   2 +-
+ src/hb-private.hh                   | 109
+ +++++++++++++++++++++++++++++++----
+ 5 files changed, 136 insertions(+), 73 deletions(-)
+
+commit 43ff203d8ea3e1b09e316e3aae1a4e5ec15bfdd2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 25 17:35:24 2011 -0400
+
+    Use variadic macros for debugging
+
+    Looks *so* much nicer!
+
+ src/hb-blob.cc                     | 26 ++++++++--------
+ src/hb-object-private.hh    | 8 ++---
+ src/hb-open-type-private.hh | 75
+ ++++++++++++++++++++-------------------------
+ src/hb-private.hh          |  7 +++--
+ 4 files changed, 56 insertions(+), 60 deletions(-)
+
+commit decd4e3e16424dc311e9fb5b663170414a11556a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 25 16:47:02 2011 -0400
+
+    Add sugar syntax for debug messages
+
+    Buffer debugging coming soon.
+
+ src/hb-blob.cc                     | 35 +++++++++++++----------------------
+ src/hb-object-private.hh    | 9 ++++-----
+ src/hb-open-type-private.hh | 44
+ ++++++++++++++++++++++----------------------
+ src/hb-private.hh          |  7 +++++--
+ 4 files changed, 44 insertions(+), 51 deletions(-)
+
+commit 3a81b1db89beba91fb91791918b9fdd9f8fc9fa0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 25 16:30:32 2011 -0400
+
+    Minor, fix leak from my previous refactorings
+
+ src/hb-buffer.cc | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+commit f4a579bc42fb811ff5c391a0e97b7d8656ef59b1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 25 16:20:16 2011 -0400
+
+    Add internal API for buffer var allocation
+
+ src/hb-buffer-private.hh | 25 +++++++++++++++++++++++--
+ src/hb-buffer.cc        | 22 ++++++++++++++++++++++
+ 2 files changed, 45 insertions(+), 2 deletions(-)
+
+commit 651e8dd79ec8eaca5ab75a61e8ce961ff7bd26eb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 25 14:54:08 2011 -0400
+
+    Start cleaning up buffer var allocation
+
+    I've messed up a lot of stuff recently, different parts of the
+    shaping process are stumbling on eachother's toes because
+    manually tracking what's in which buffer var is hard.  I'm
+    going to add some internal API to track those such that mistakes
+    are discovered as soon as they are introduced.
+
+ src/hb-ot-layout-gsubgpos-private.hh |  1 -
+ src/hb-ot-layout.cc                 |  1 +
+ src/hb-ot-shape.cc                  | 10 ----------
+ 3 files changed, 1 insertion(+), 11 deletions(-)
+
+commit c86f932015bdf5803572b0904d343d3bc033e009
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 25 00:44:50 2011 -0400
+
+    Move code around
+
+ src/hb-ot-shape.cc | 85
+ +++++++++++++++++++++++++++---------------------------
+ 1 file changed, 42 insertions(+), 43 deletions(-)
+
+commit 18c42850c9327ab4479ff150660a76d4ff6f3e9c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 25 00:36:58 2011 -0400
+
+    Shrink space used for ligature ids
+
+    This frees 16bits in the glyph_info struct during the ot_layout
+    process.
+    We can use the freed space in the shapers now.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit d8787493c9aa420544096cef07c29a591a0c1a99
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 25 00:36:01 2011 -0400
+
+    Minor
+
+ src/hb-ot-layout-gsub-private.hh     | 6 ------
+ src/hb-ot-layout-gsubgpos-private.hh | 7 +++++++
+ 2 files changed, 7 insertions(+), 6 deletions(-)
+
+commit c311d852080b50ffc85e80168de62abb05a6be59
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 23 23:43:54 2011 -0400
+
+    Keep Unicode props updated as we go so we avoid a scan later
+
+ src/hb-ot-shape-normalize.cc | 54
+ +++++++++++++++++++++-----------------------
+ 1 file changed, 26 insertions(+), 28 deletions(-)
+
+commit 5389ff4dbc46c76c9483e3c95f22524b60e21166
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 22 20:22:49 2011 -0400
+
+    Implement the Unicode Canonical Composition algorithm
+
+    Fallback normalization is complete and working now!
+
+ src/hb-ot-shape-normalize.cc | 49
+ +++++++++++++++++++++++++++++++++++++++++---
+ 1 file changed, 46 insertions(+), 3 deletions(-)
+
+commit dcdc51cdc0ba9d9fb75f84dd5fa7a49aa0b24ea0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 22 17:14:46 2011 -0400
+
+    Handle singleton decompositions
+
+ src/hb-ot-shape-normalize.cc | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+commit 34c22f816808d061a980cffca12de03beb437fa0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 22 17:04:20 2011 -0400
+
+    Implement Unicode Canonical Reordering Algorithm
+
+ src/hb-ot-shape-normalize.cc | 80
+ +++++++++++++++++++++++++++++++++++++-------
+ src/hb-ot-shape-private.hh   |  2 ++
+ src/hb-ot-shape.cc          |  6 ++--
+ 3 files changed, 73 insertions(+), 15 deletions(-)
+
+commit 4ff0d2d9dfc4f7e4880a4e964ca9872624508ea0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 22 16:15:32 2011 -0400
+
+    Decomposition works now!
+
+ src/hb-ot-shape-normalize.cc | 109
+ +++++++++++++++++++++++++++----------------
+ src/hb-ot-shape.cc          |   3 +-
+ 2 files changed, 70 insertions(+), 42 deletions(-)
+
+commit 468e9cb25c9bc14781b7013e447d763f93bf76a3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 22 11:28:07 2011 -0400
+
+    Move buffer methods into the object
+
+ src/hb-buffer-private.hh            | 110 +++----
+ src/hb-buffer.cc                    | 605
+ +++++++++++++++++------------------
+ src/hb-ot-layout-gpos-private.hh     |  88 ++---
+ src/hb-ot-layout-gsub-private.hh     |  58 ++--
+ src/hb-ot-layout-gsubgpos-private.hh |  50 +--
+ src/hb-ot-shape-normalize.cc        |  16 +-
+ src/hb-ot-shape.cc                  |  14 +-
+ 7 files changed, 456 insertions(+), 485 deletions(-)
+
+commit 45412523dc295cb5ee12e096bfacb282cc925843
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 22 11:07:05 2011 -0400
+
+    More normalization kick
+
+ src/hb-ot-shape-normalize.cc | 54
+ +++++++++++++++++++++++++++++---------------
+ src/hb-ot-shape-private.hh   |  8 ++++++-
+ src/hb-ot-shape.cc          | 13 +++--------
+ 3 files changed, 46 insertions(+), 29 deletions(-)
+
+commit 63c0ef4a0763e579c9c80887bbfbd2651de05067
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 20:58:42 2011 -0400
+
+    Fix decompose() implementations to work with non-starter
+    non-composables
+
+    Add tests.
+
+ src/hb-glib.cc      | 10 +++++-----
+ src/hb-icu.cc      | 20 +++++++++++++-------
+ test/test-unicode.c | 11 ++++++++---
+ 3 files changed, 26 insertions(+), 15 deletions(-)
+
+commit 5d90a342e319068716429bf7af76c3896b61a0e5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 15:25:01 2011 -0400
+
+    Document normalization design
+
+ src/hb-ot-shape-normalize.cc | 78
+ +++++++++++++++++++++++++++++++++++---------
+ src/hb-ot-shape-private.hh   |  2 +-
+ src/hb-ot-shape.cc          |  6 ++--
+ 3 files changed, 67 insertions(+), 19 deletions(-)
+
+commit 02cdf743c2ec345a44d4fcf865594b6ac13fccd0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 12:23:12 2011 -0400
+
+    Add prefer_decomposed() complex-shaper callback
+
+    This allows the Indic shaper to request decomposed characters.
+    This will
+    handle split matra for free.  Other shapers prefer precomposed
+    characters.
+
+ src/hb-ot-shape-complex-arabic.cc  |  6 ++++++
+ src/hb-ot-shape-complex-indic.cc   |  7 +++++++
+ src/hb-ot-shape-complex-misc.cc    |  6 ++++++
+ src/hb-ot-shape-complex-private.hh | 31 +++++++++++++++++++++++++++++--
+ 4 files changed, 48 insertions(+), 2 deletions(-)
+
+commit d6b9c6d20041b4f4fa11befc179aee757c41904d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 12:16:45 2011 -0400
+
+    More kicking
+
+ src/hb-ot-shape-normalize.cc | 17 ++++++++++++++---
+ 1 file changed, 14 insertions(+), 3 deletions(-)
+
+commit 192445aef2e50087049243ce54ce7059ec441ffa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 12:13:04 2011 -0400
+
+    Remove intermittent_glyph()
+
+    Lets not worry about performance for now...
+
+ src/hb-ot-shape-normalize.cc | 3 ++-
+ src/hb-ot-shape-private.hh   | 2 --
+ 2 files changed, 2 insertions(+), 3 deletions(-)
+
+commit d63adfc7d09b26764d9166da97372b21257e7611
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 11:48:57 2011 -0400
+
+    No need to handle variation-selectors seperately, they are GC=Mn
+
+ src/hb-ot-shape.cc | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit aa7264123a088936f2043b45d4d41ca7413fabe5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 11:34:59 2011 -0400
+
+    Only form clusters if we are reversing
+
+    This produces more accurate cluster mappings.  Cluster mappings are
+    minimal now.  Combining marks get their own cluster value most of
+    the time.
+
+ src/hb-ot-shape.cc | 45 ++++++++++++++++++++++-----------------------
+ 1 file changed, 22 insertions(+), 23 deletions(-)
+
+commit 5c6f5982d78e2d7fadc2fbb8b4f3a4be9420c59a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 11:31:08 2011 -0400
+
+    Towards normalization
+
+ src/hb-ot-shape-normalize.cc | 33 ++++++++++++++++++++++-----------
+ src/hb-ot-shape-private.hh   |  3 ++-
+ src/hb-ot-shape.cc          |  4 +++-
+ 3 files changed, 27 insertions(+), 13 deletions(-)
+
+commit ad903e66b1cc4ec1b8160f93b3ab2b5e636f8d62
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 10:17:22 2011 -0400
+
+    s/COMBINING_MARK/SPACING_MARK/ here too.  Oops!
+
+ test/test-unicode.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit cf7f43ec3382cac2af11f5637c840500daabf889
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 01:12:26 2011 -0400
+
+    Remove stale comment
+
+ src/hb-ot-shape.cc | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 54d1a0d2b2c4ffe15494967122c6422ecb1fc80b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 01:11:09 2011 -0400
+
+    Form clusters before ensuring native direciton
+
+    This is essential as ensure_native_direction uses cluster info that
+    is set by form_clusters().
+
+ src/hb-ot-shape.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 9111b21ef99d5e53348176f683261b0101eb427f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 00:58:29 2011 -0400
+
+    Add _hb_buffer_output_glyph() and _hb_buffer_skip_glyph()
+
+ src/hb-buffer-private.hh | 10 ++++++++++
+ src/hb-buffer.cc        | 19 ++++++++++++++++---
+ src/hb-ot-shape.cc      |  2 +-
+ 3 files changed, 27 insertions(+), 4 deletions(-)
+
+commit 655586fe5e1fadf2a2ef7826e61ee9a445ffa37a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 00:51:18 2011 -0400
+
+    Towards normalization
+
+ src/Makefile.am             |  1 +
+ src/hb-ot-shape-normalize.cc | 71
+ ++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-ot-shape-private.hh   | 12 ++++++++
+ src/hb-ot-shape.cc          | 10 ++-----
+ 4 files changed, 86 insertions(+), 8 deletions(-)
+
+commit 49741c86334d12fa08a5bfa2110ff3b9adcba1c7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 00:35:37 2011 -0400
+
+    Include variation-selectors in cluster calculation
+
+ src/hb-ot-shape.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit dd89d958c139d85efb776fffaf314eead3952c78
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 00:28:57 2011 -0400
+
+    Fix cluster calculation for non-LTR text
+
+ TODO            | 6 ------
+ src/hb-buffer.cc | 5 +++++
+ 2 files changed, 5 insertions(+), 6 deletions(-)
+
+commit 4a68684654e645882095c1189477146287ce9437
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 00:14:01 2011 -0400
+
+    When forming clusters, participate all mark types
+
+ src/hb-ot-shape.cc | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit 5157e12a55f943b7fc5be7dce0b2ee1bcacca6ec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 21 00:12:33 2011 -0400
+
+    Rename HB_UNICODE_GENERAL_CATEGORY_COMBINING_MARK to
+    HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK
+
+    Spacing_Mark is the current Unicode long-name for this property value.
+    The previous name was wrongly carried from glib.
+
+ src/hb-common.h | 2 +-
+ src/hb-icu.cc  | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit 7b08b0a7f2057937dfc3ab2ec191656bf2386463
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 20 23:59:07 2011 -0400
+
+    Minor
+
+ src/hb-ot-shape-complex-arabic.cc |  8 ++++----
+ src/hb-private.hh                | 19 +++++++++++++++++++
+ 2 files changed, 23 insertions(+), 4 deletions(-)
+
+commit 498e1a9be673bb02c00aac3f12bb4c6993a85910
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 20 23:19:49 2011 -0400
+
+    [icu] Implement compose()/decompose()
+
+ src/hb-icu.cc      | 87
+ +++++++++++++++++++++++++++++++++++++++++++++++++++--
+ test/test-unicode.c | 1 +
+ 2 files changed, 86 insertions(+), 2 deletions(-)
+
+commit ffd4a436f7baccb68a0c3602f94ea0246e32844f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 20 22:30:29 2011 -0400
+
+    Add tests for compose()/decompose()
+
+    Adjust glib fallback implementation.
+
+    The tests are not hooked up for ICU yet.
+
+ src/hb-glib.cc      | 17 ++++++++++++--
+ src/hb-unicode.cc   | 2 +-
+ test/test-unicode.c | 66
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 82 insertions(+), 3 deletions(-)
+
+commit fca0923b04aeff9369849da97d247a647611f346
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 20 22:16:13 2011 -0400
+
+    Minor
+
+ src/hb-icu.cc | 62
+ ++++++++++++++++++++++++++++++++++++-----------------------
+ 1 file changed, 38 insertions(+), 24 deletions(-)
+
+commit 26b6024962b254b624d4f22088b6c87745074743
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 20 21:58:14 2011 -0400
+
+    [glib] Use g_unicode_script_to/from_iso15924() if available
+
+ src/hb-glib.cc | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+commit 22fdc66712464bdb02e45eed49e4be57e79b442f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 20 21:51:37 2011 -0400
+
+    [glib] Add compose() and decompose() implementations with fallback
+
+ src/hb-glib.cc    | 126
+ +++++++++++++++++++++++++++++++++++++++++++-----------
+ src/hb-unicode.cc |   6 ++-
+ 2 files changed, 106 insertions(+), 26 deletions(-)
+
+commit a54a5505a35eef5315a8e2e7a79502901e3eff5f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 20 16:42:10 2011 -0400
+
+    Minor
+
+ src/hb-ot-shape-complex-indic.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 23db8d5c92c96a34c716b68e1aa6819c5a20477a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 12 12:02:26 2011 -0400
+
+    [test] Work around glib <= 2.30 API
+
+ test/hb-test.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 22989c5ffc8cce1ea05d729cdf33661c35a52334
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 12 11:54:58 2011 -0400
+
+    Distribute hb-ot-shape-complex-indic-machine.rl
+
+ src/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit f6fd3780e12b23ff7ed3743497c8996e71dcb064
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 8 00:22:40 2011 -0400
+
+    Let shapers decide when to apply ccmp and locl
+
+    Instead of always applying those two features before the complex
+    shaper,
+    let the complex shaper decide whether they should be applied first.
+
+    Also add stub for Indic's final_reordering().
+
+ src/hb-ot-shape-complex-arabic.cc |  2 ++
+ src/hb-ot-shape-complex-indic.cc  | 16 ++++++++++++++++
+ src/hb-ot-shape.cc               |  7 +------
+ 3 files changed, 19 insertions(+), 6 deletions(-)
+
+commit c4641723fbf6532b2e80a662e15573b31276bc73
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 7 23:47:19 2011 -0400
+
+    [API] Add compose() and decompose() unicode funcs, rename other ones
+
+    Add compose() and decompose() unicode funcs.  These implement
+    pair-wise canonical composition/decomposition.
+
+    The glib/icu implementations are lacking for now.  We are adding
+    API for this to glib, but I cannot find any useful API in ICU.
+    May end of implementing these in-house.
+
+    Changed all unicode_funcs callback names to remove the "_get" part.
+    Eg, hb_unicode_get_script_func_t is now hb_unicode_script_func_t,
+    and hb_unicode_get_script() is hb_unicode_script() now.
+
+ TODO                     |  4 ++-
+ src/hb-glib.cc                   |  6 +++-
+ src/hb-icu.cc            |  6 +++-
+ src/hb-ot-shape.cc       |  6 ++--
+ src/hb-shape.cc          |  2 +-
+ src/hb-unicode-private.hh |  8 +++--
+ src/hb-unicode.cc        | 85
+ ++++++++++++++++++++++++++++++++++-------------
+ src/hb-unicode.h         | 70 +++++++++++++++++++++++++++-----------
+ test/test-unicode.c      | 21 +++++++-----
+ 9 files changed, 146 insertions(+), 62 deletions(-)
+
+commit d05dded1676924e8894c90f7a7c3527b492bcdff
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 7 23:42:40 2011 -0400
+
+    More code generation through preprocessor
+
+ src/hb-ot-shape-complex-private.hh | 46
+ ++++++++++++++++++++++++--------------
+ 1 file changed, 29 insertions(+), 17 deletions(-)
+
+commit 891c4755baae6cd59fad59d27fd8933e5f548a74
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 7 23:19:27 2011 -0400
+
+    Humm, undo some shuffling
+
+    In preparation for adding more advanced unicode funcs.
+
+ src/hb-ot-shape.cc       |  6 ++---
+ src/hb-shape.cc          |  2 +-
+ src/hb-unicode-private.hh | 36 +++++++++++++-------------
+ src/hb-unicode.cc        | 65
+ ++++++++++++++++++++++++++++++++++-------------
+ 4 files changed, 70 insertions(+), 39 deletions(-)
+
+commit 4b6317c4f426cfaf21e509dbf6ee6d4e0422cdac
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 7 23:14:42 2011 -0400
+
+    More code shuffling
+
+ src/hb-font-private.hh    |  16 +++---
+ src/hb-font.cc                   |   3 +-
+ src/hb-unicode-private.hh |  42 +++++++-------
+ src/hb-unicode.cc        | 140
+ +++++++++++++++++-----------------------------
+ 4 files changed, 82 insertions(+), 119 deletions(-)
+
+commit 3361c9a323575309d9fd55fe076697a3e22073c0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 7 22:35:17 2011 -0400
+
+    Minor
+
+ src/Makefile.am                   |  1 +
+ src/hb-ot-shape-complex-misc.cc    | 51
+ ++++++++++++++++++++++++++++++++++++++
+ src/hb-ot-shape-complex-private.hh | 12 ++++++---
+ 3 files changed, 60 insertions(+), 4 deletions(-)
+
+commit 76f76812ac7cca8ac6935952a2360d5e151480fa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 7 22:25:25 2011 -0400
+
+    Shuffle code around, remove shape_plan from complex shapers
+
+ src/hb-ot-shape-complex-arabic.cc       | 36 +++++++++++++-------------
+ src/hb-ot-shape-complex-indic-machine.rl | 12 ++++-----
+ src/hb-ot-shape-complex-indic.cc        | 25 +++++++++---------
+ src/hb-ot-shape-complex-private.hh      | 44
+ +++++++++++++++++++++-----------
+ src/hb-ot-shape-private.hh              | 13 ++--------
+ src/hb-ot-shape.cc                      |  4 +--
+ 6 files changed, 69 insertions(+), 65 deletions(-)
+
+commit e88bff9b4d77dc86c04832163081effbff752216
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 7 22:03:02 2011 -0400
+
+    Minor, use function typedefs
+
+ src/hb-ot-shape-complex-private.hh | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+commit 359dcaa0d33271025ca42a5f54ecbac7ae3b56d3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 7 21:55:05 2011 -0400
+
+    Update copyright headers
+
+ src/hb-ot-map-private.hh          | 2 +-
+ src/hb-ot-map.cc                  | 2 +-
+ src/hb-ot-shape-complex-private.hh | 2 +-
+ src/hb-ot-shape.cc                | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+commit d8d0c480c85246a74d47dd5297019c7e39391ab0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 7 21:22:08 2011 -0400
+
+    Refactor some code common to GSUB and GPOS
+
+ src/hb-ot-map-private.hh | 29 ++++++++++++++++++--------
+ src/hb-ot-map.cc        | 54
+ +++++++++---------------------------------------
+ 2 files changed, 30 insertions(+), 53 deletions(-)
+
+commit b70c96dbe41d6512b80fe3d966a1942e1ef64a4b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 7 21:07:41 2011 -0400
+
+    Enable applying GSUB/GPOS features in multiple segments
+
+    Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=644184
+    among others.
+
+    Shapers now can request segmented feature application by calling
+    add_gsub_pause() or add_gpos_pause().  They can also provide a
+    callback to be called at the pause.  Currently the Arabic shaper
+    uses pauses to enforce certain feature application.  The Indic
+    shaper can use the same facility to pause and do reordering in the
+    callback.
+
+ src/hb-ot-map-private.hh         |  50 +++++++++++----
+ src/hb-ot-map.cc                 | 132
+ +++++++++++++++++++++++++++++++++-----
+ src/hb-ot-shape-complex-arabic.cc |  24 ++++++-
+ src/hb-private.hh                |   5 ++
+ 4 files changed, 181 insertions(+), 30 deletions(-)
+
+commit f6d7a9bb4c19e605f1f16d9ca40adefba138c37e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 7 16:20:35 2011 -0400
+
+    Shuffle code around
+
+ src/hb-ot-map-private.hh | 68
+ ++++++++++++++++++++++++------------------------
+ 1 file changed, 34 insertions(+), 34 deletions(-)
+
+commit fc551edbf236d71a522ae7c2c9461aa71c5f7d66
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 7 16:09:38 2011 -0400
+
+    Add todo
+
+    I'm too lazy to fix the tests now.
+
+ test/test-shape.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 2e18c6dbdfbbfdec0490260bb7cb5213551b2188
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 6 16:05:45 2011 -0400
+
+    Fix reverse_range() position loop
+
+    Mozilla Bug 669175 - Slow rendering of text sometimes in this case,
+    using direction: rtl
+
+ src/hb-buffer.cc | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+commit fa2befa46f215d8c33a54dfc57889928a628164c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 4 17:18:57 2011 -0400
+
+    Minor
+
+ src/hb-view.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit d69d5ceaa0ad30e8d4b9783507c59c6d4221de4f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jul 4 12:56:38 2011 -0400
+
+    [Indic] Well, at least finding syllables works now :)
+
+    Still not much there.
+
+ src/hb-ot-shape-complex-indic-machine.rl | 4 +++-
+ src/hb-ot-shape-complex-indic.cc        | 9 ++++++++-
+ 2 files changed, 11 insertions(+), 2 deletions(-)
+
+commit 253a57fb5ab211f67140e6139d183e49483a9074
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 28 17:26:03 2011 -0400
+
+    [test-shape-complex] Remove the greek tests
+
+    They are outdated with respect to the DejaVu Sans I'm using.
+    We need to add font version checking to the tests.
+
+ test/test-shape-complex.c | 17 -----------------
+ 1 file changed, 17 deletions(-)
+
+commit afa74bf90405fb121d3132982b87762c1686d80c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 28 17:25:17 2011 -0400
+
+    [test-shape-complex] Print out expected and actual glyphstrings
+    upon failure
+
+    One has to run the test with --verbose to see that right now.
+
+ test/test-shape-complex.c | 25 ++++++++++++++++++++++---
+ 1 file changed, 22 insertions(+), 3 deletions(-)
+
+commit 42d453b0236f67239342df2003b7abce6e2c51ea
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 28 16:59:16 2011 -0400
+
+    [test] Name tests after their input string
+
+ test/Makefile.am         |   2 +-
+ test/test-shape-complex.c | 150
+ ++++++++++++++++++++++++++++++----------------
+ 2 files changed, 100 insertions(+), 52 deletions(-)
+
+commit 27413169782fdf79e278dd6552c8e194b3bc4eaa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 28 16:21:31 2011 -0400
+
+    Minor
+
+    Towards a better test runner.
+
+ test/test-shape-complex.c | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+commit cc674cbf7fb9972975dc0499974e5e7fb4ae3c81
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 28 16:17:16 2011 -0400
+
+    Minor
+
+ test/test-shape-complex.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 20d8a3982ae320035edd6a04b402cefc9a5e5779
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 28 16:16:21 2011 -0400
+
+    [test] Remove disabled code
+
+    We'd add normalization and decomposition tests later.
+
+ test/test-shape-complex.c | 92
+ -----------------------------------------------
+ 1 file changed, 92 deletions(-)
+
+commit 9704f0ca6c2defed52640da77506c80bc67b4f56
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 28 16:15:46 2011 -0400
+
+    [test] Restructure shape test data a bit
+
+ test/test-shape-complex.c | 75
+ +++++++++++++++++++++++++++--------------------
+ 1 file changed, 43 insertions(+), 32 deletions(-)
+
+commit 4ec30aec3014be6effc09cbbc88dcd075f3826df
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 28 14:13:38 2011 -0400
+
+    [Indic] Optimize Indic table storage
+
+ src/hb-ot-shape-complex-indic.cc | 8 +++++---
+ src/hb-private.hh               | 1 +
+ 2 files changed, 6 insertions(+), 3 deletions(-)
+
+commit c4a59de6d8c1e581b5c155319232be9e805e5cba
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 28 14:03:29 2011 -0400
+
+    [Indic] Generate a single data table instead of multiple ones
+
+ src/gen-indic-table.py                        | 30 +++++++++-------
+ src/hb-ot-shape-complex-indic-table.hh | 62
+ ++++++++++++++++------------------
+ 2 files changed, 48 insertions(+), 44 deletions(-)
+
+commit a346e923a99f920bbebc25b335db51fdfb1429ea
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 28 12:49:18 2011 -0400
+
+    [test] Add Indic tests from harfbuzz.old
+
+    Needs fonts to be put in test/fonts.  Tests are skipped otherwise.
+    Run with --verbose for details.  Working on improving the test runner
+    to make it easier to make sense of what's going on.
+
+ test/Makefile.am         |   11 +-
+ test/hb-test.h                   |   21 +
+ test/test-shape-complex.c | 1179
+ +++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 1209 insertions(+), 2 deletions(-)
+
+commit 8fdba506f0f1c66b50f8f4b114d624cb956d03b7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 24 20:45:55 2011 -0400
+
+    [Indic] Define indic_position_t
+
+ src/hb-ot-shape-complex-indic.cc | 239
+ ++++++++++++++++++++-------------------
+ 1 file changed, 122 insertions(+), 117 deletions(-)
+
+commit 65988a145b4a52c37fd53c1473034f9e701f61d9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 24 19:05:52 2011 -0400
+
+    [Indic] Add a table of consonant positions
+
+    Copied form HarfBuzz.old Indic data.  These are below and post
+    consonants.  This is temporary.  Read the comment in the patch.
+
+ src/hb-ot-shape-complex-indic.cc | 106
+ +++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 106 insertions(+)
+
+commit c7fe56a1d5d3e969b6ec51cd9ecd471706a19568
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 24 19:05:34 2011 -0400
+
+    [Indic] Some of the basic features are global;  Mark them so
+
+ src/hb-ot-shape-complex-indic-machine.rl |  1 +
+ src/hb-ot-shape-complex-indic.cc        | 48
+ ++++++++++++++++++++++----------
+ 2 files changed, 35 insertions(+), 14 deletions(-)
+
+commit 867361c3ad39629a8d5b7dc48d558a1c19e37d43
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 17 18:35:46 2011 -0400
+
+    [indic] Add syllable recognition state machine
+
+    Using an incredible tool called Ragel.
+
+ src/Makefile.am                         |   5 ++
+ src/hb-ot-shape-complex-indic-machine.rl | 105
+ +++++++++++++++++++++++++++++++
+ src/hb-ot-shape-complex-indic.cc        |  21 +++++--
+ 3 files changed, 125 insertions(+), 6 deletions(-)
+
+commit 422e08dbb8e2c0c5664f1bdc7e159a673cfea8c5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 15 17:22:48 2011 -0400
+
+    Better categorize Indic character classes
+
+    Matches OT types now.
+
+ src/hb-ot-shape-complex-indic.cc | 51
+ +++++++++++++++++++++++++---------------
+ 1 file changed, 32 insertions(+), 19 deletions(-)
+
+commit 31f18abecb149f8888a72510f2660328dd6de16d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 15 09:49:58 2011 -0400
+
+    Minor compiler warning fixes
+
+ src/hb-buffer-private.hh          |  8 ++++----
+ src/hb-object-private.hh          |  4 ++--
+ src/hb-open-type-private.hh       |  6 +++---
+ src/hb-ot-layout-common-private.hh |  8 ++++----
+ src/hb-ot-map.cc                  | 28 +++++++++++++++-------------
+ src/hb-ot-shape-complex-arabic.cc  |  3 +--
+ src/hb-view.cc                            | 11 ++++++-----
+ test/test-object.c                | 22 +++++++++++-----------
+ test/test-unicode.c               |  4 ++--
+ 9 files changed, 48 insertions(+), 46 deletions(-)
+
+commit e3693b72f0651985d4f619cde668611639dca885
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 15 09:33:52 2011 -0400
+
+    Change a couple strstr() to strchr()
+
+ src/hb-ot-tag.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit b9452bfc1696457e156e79037c863903da5454fc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 14 14:47:07 2011 -0400
+
+    Fix compiler warnings with -pedantic
+
+ src/hb-blob.cc                          | 18 +++++++++---------
+ src/hb-glib.cc                          | 20 ++++++++++----------
+ src/hb-icu.cc                   | 20 ++++++++++----------
+ src/hb-object-private.hh        |  2 +-
+ src/hb-open-type-private.hh     | 14 +++++++-------
+ src/hb-ot-layout-gdef-private.hh |  2 +-
+ src/hb-ot-layout.cc             |  2 +-
+ src/hb-ot-map-private.hh        |  2 +-
+ src/hb-ot-shape-complex-indic.cc |  8 ++++----
+ src/hb-ot-shape-private.hh      |  2 +-
+ src/hb-ot-shape.cc              |  2 +-
+ 11 files changed, 46 insertions(+), 46 deletions(-)
+
+commit 970e092dc23cbeb7897d4c7bb58c042209f518fb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 14 14:35:44 2011 -0400
+
+    Remove extra semicolon
+
+ src/hb-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 81426808020e2b88f008480bd63519aa68c579a7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jun 13 16:02:18 2011 -0400
+
+    Cosmetic
+
+ src/gen-indic-table.py                        |    9 +-
+ src/hb-ot-shape-complex-indic-table.hh | 1038
+ ++++++++++++++++----------------
+ 2 files changed, 524 insertions(+), 523 deletions(-)
+
+commit 902ab866f2d2edc3a71c1203065e6ddf49e5b431
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jun 10 23:08:54 2011 -0400
+
+    GNOME Bug 652227 - Unconditional use of stdint.h
+
+ src/hb-common.h | 33 ++++++++++++++++++++++-----------
+ 1 file changed, 22 insertions(+), 11 deletions(-)
+
+commit 20503ccd578c9983162857954e3236413469ed35
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 7 17:02:48 2011 -0400
+
+    More Indic data shuffling
+
+ src/hb-ot-shape-complex-indic.cc | 74
+ +++++++++++++++++++++++++++-------------
+ 1 file changed, 50 insertions(+), 24 deletions(-)
+
+commit 63b177e45c2405272da3fa6c26fe11ae37950bd0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 7 15:51:40 2011 -0400
+
+    Minor
+
+ src/hb-ot-shape.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit b9ddbd55930228422e82b34a141ad1b6093f5376
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 2 17:43:12 2011 -0400
+
+    [Indic] Start an Indic shaper
+
+    Nothing functional in there yet.
+
+    So far, we're parsing IndicSyllabicCategory.txt and
+    IndicMatraCategory.txt
+    fils from Unicode Character Database and store them in an array to
+    be used
+    by the shaper.  Also hooked up the shaper, but it does not do anything
+    right now.
+
+ src/Makefile.am                       |   3 +
+ src/gen-indic-table.py                        | 201 ++++++++
+ src/hb-ot-shape-complex-arabic.cc     |   4 +-
+ src/hb-ot-shape-complex-indic-table.hh | 834
+ +++++++++++++++++++++++++++++++++
+ src/hb-ot-shape-complex-indic.cc      | 141 ++++++
+ src/hb-ot-shape-complex-private.hh    |  58 ++-
+ src/hb-ot-shape-private.hh            |   3 +-
+ 7 files changed, 1237 insertions(+), 7 deletions(-)
+
+commit 697a65c5f5cda53bc68720886a253a019e8212a8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 1 20:52:00 2011 -0400
+
+    Minor
+
+ src/gen-arabic-table.py                | 21 +++++++++++++--------
+ src/hb-ot-shape-complex-arabic-table.hh |  9 ++++-----
+ 2 files changed, 17 insertions(+), 13 deletions(-)
+
+commit 9de1481f2bbbf2a174280b849628612f36a2f701
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 1 20:45:14 2011 -0400
+
+    Update to ArabicShaping-6.1.0d2.txt
+
+ src/hb-ot-shape-complex-arabic-table.hh | 307
+ ++++++++++++++++++++------------
+ 1 file changed, 197 insertions(+), 110 deletions(-)
+
+commit 9d49433efba2217852f4e44f056465b451961c49
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 1 18:10:10 2011 -0400
+
+    Minor rename
+
+ src/Makefile.am                        |  2 +-
+ src/gen-arabic-joining-table.py        | 83
+ ---------------------------------
+ src/gen-arabic-table.py                | 83
+ +++++++++++++++++++++++++++++++++
+ src/hb-ot-shape-complex-arabic-table.hh |  2 +-
+ 4 files changed, 85 insertions(+), 85 deletions(-)
+
+commit 0eafce56eed4c5166ee5b97b121a452ffd292a7a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 1 12:44:30 2011 -0400
+
+    [TODO] New items
+
+ TODO | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 89a2bc9ba674e7e57fec1fd8ce7648a44f3aab63
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 31 15:18:13 2011 -0400
+
+    [Vertical] Apply vertical features
+
+    We apply all of vert, vrt2, vkrn, valt, and vpal.
+
+ TODO              |  7 -------
+ src/hb-ot-shape.cc | 50
+ +++++++++++++++++++++++++++++++++++++++++---------
+ 2 files changed, 41 insertions(+), 16 deletions(-)
+
+commit 0c6a9767c812c00f2a6a02d9f43f4694e1f43815
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 31 12:59:17 2011 -0400
+
+    [hb-view] Add --face-index to choose a face in a TrueType Collection
+
+ src/hb-view.cc | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+commit 4f28fbdd804fabeec57a98fe267d892ab58b3a6d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 31 12:33:11 2011 -0400
+
+    Fix TTC header handling
+
+    Also change the Version type to avoid similar bugs in the future.
+
+    Reported by Grigori Goronzy.
+
+ src/hb-open-file-private.hh     | 6 +++---
+ src/hb-open-type-private.hh     | 2 +-
+ src/hb-ot-layout-gdef-private.hh | 6 +++---
+ 3 files changed, 7 insertions(+), 7 deletions(-)
+
+commit 21deab2bdc58d8e9f1a3ba1f9c61c30a79e288a1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 30 11:08:40 2011 -0400
+
+    Fixed inifinite loop introduced in 7403e055cd1463f
+
+    k is the index, not j.
+
+    Reported by Tom Hacohen.
+
+ src/hb-ot-layout-gpos-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 51881a61ca96c3328e2d92927a5a61e60997a429
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 18:15:56 2011 -0400
+
+    Shrink code size
+
+ src/hb-ot-map-private.hh | 11 +----------
+ src/hb-ot-map.cc        | 11 +++++++++++
+ 2 files changed, 12 insertions(+), 10 deletions(-)
+
+commit 90645fb24bcbb78183576d3641a99560d87e49f2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 18:13:31 2011 -0400
+
+    [OT] Separate map_builder from the actual map
+
+    Respectively, separate planner from the actual plan.
+
+ src/hb-ot-map-private.hh          | 121
+ ++++++++++++++++++++-----------------
+ src/hb-ot-map.cc                  |  33 +++++-----
+ src/hb-ot-shape-complex-arabic.cc  |  6 +-
+ src/hb-ot-shape-complex-private.hh |  8 +--
+ src/hb-ot-shape-private.hh        |  22 +++++++
+ src/hb-ot-shape.cc                |  28 +++++----
+ 6 files changed, 127 insertions(+), 91 deletions(-)
+
+commit 5560a19e2b3901437d8ee2e5905b4ac77073bfbe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 17:49:16 2011 -0400
+
+    Minor
+
+ src/hb-view.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 1587c26fe94087040b4a5d682ec196f568e4a1a2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 16:05:01 2011 -0400
+
+    [TODO] Add item
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 5c9f14932d59e306fbc72f7daecb384a16da73d9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 15:59:33 2011 -0400
+
+    Minor
+
+ Makefile.am | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 5bc18195d55570ef01e4b24dd248f222f081b0a2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 15:58:54 2011 -0400
+
+    Add check-includes.sh
+
+ src/Makefile.am              |  7 +++++++
+ src/check-c-linkage-decls.sh  |  6 +++++-
+ src/check-header-guards.sh    |  8 +++++++-
+ src/check-includes.sh        | 42
+ ++++++++++++++++++++++++++++++++++++++++++
+ src/check-internal-symbols.sh |  8 ++++----
+ src/check-libstdc++.sh        |  7 ++++---
+ src/hb-ot-shape.h            |  1 +
+ 7 files changed, 70 insertions(+), 9 deletions(-)
+
+commit 3f12c434e20261f6d5c600e56575b7dfdd5b1470
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 04:58:11 2011 -0400
+
+    [configure] Generate sha256sum and GPG-sign it
+
+ Makefile.am | 29 ++++++++++++++++++++++++++++-
+ 1 file changed, 28 insertions(+), 1 deletion(-)
+
+commit 75ba4073ca6f72c135927d9314197a605281b789
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 03:58:17 2011 -0400
+
+    [test] Rename valgrind-log to log-vaglring.txt
+
+ test/Makefile.am | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit e3b0ba8e292e6a90666cfbbab6faf11ae11f9ddb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 03:56:37 2011 -0400
+
+    Minor
+
+ harfbuzz.doap | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 595dc63eee926a0e0fee26f8225b5fbe00610fcb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 04:14:12 2011 -0400
+
+    Bump version to 0.7.0 to open up for development
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit f24557604281356131618546332d7ee3a0c8abef
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 25 16:08:06 2011 -0400
+
+    Release 0.6.0.  First official tarball release!
+
+    There are no API guarantees just yet, but I *expect* that no
+    incompatible API changes to happen before 1.0.0.
+
+    Update NEWS.
+
+ NEWS        | 262
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ configure.ac |   2 +-
+ 2 files changed, 263 insertions(+), 1 deletion(-)
+
+commit 654f88fbc9bcb54f9bd2d5586236234e03424044
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 03:38:46 2011 -0400
+
+    [test-common] Test hb_direction_to_string()
+
+    Caught by "make check-symbols".
+
+ test/test-common.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+commit 18bced134fc3379c9124ba029e22ff3f6434ca0f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 03:38:30 2011 -0400
+
+    [test] Rename test-symbols to check-symbols
+
+    Shows undocumented symbols.
+
+ test/Makefile.am | 37 +++++++++++++++++++++----------------
+ 1 file changed, 21 insertions(+), 16 deletions(-)
+
+commit 376dafa6ed414e368e9dc1d5a2e0bfc8e55f410d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 03:35:58 2011 -0400
+
+    Hide internal symbols
+
+ src/hb-ot-shape.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 0e482ec6ba30b613f2d7ee97c61be458c5aebcd6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 02:46:28 2011 -0400
+
+    [test/unicode] Fix double-free
+
+    Caught by "make check-valgrind".
+
+ test/Makefile.am    | 2 +-
+ test/test-unicode.c | 2 --
+ 2 files changed, 1 insertion(+), 3 deletions(-)
+
+commit 28b1bac5415774cf892c9cc0afcac1324c2093f5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 02:44:29 2011 -0400
+
+    [test] Switch to automake-based test-runner
+
+    Adds check-valgrind among other modes.  We do not run under gtester by
+    default anymore.
+
+ Makefile.am                |  2 +
+ test/.valgrind-suppressions | 0
+ test/Makefile.am           | 48 ++++++++++++++++++++++--
+ test/Makefile.decl         | 90
+ ---------------------------------------------
+ 4 files changed, 47 insertions(+), 93 deletions(-)
+
+commit adbc97ddde27cf609d95d3249f3ea8060a6e1d20
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 01:33:18 2011 -0400
+
+    [test] Add test-symbols that checks API symbol text coverage
+
+    We're not at 100% coverage yet, so do not enable the test by default.
+
+ test/Makefile.am | 21 +++++++++++++++++++++
+ 1 file changed, 21 insertions(+)
+
+commit 9313b9aa66a82fd3fa60d8417c22a5350e5a8791
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 27 01:00:55 2011 -0400
+
+    [test/version] Test hb-version.h
+
+ test/Makefile.am    | 1 +
+ test/test-version.c | 80
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 81 insertions(+)
+
+commit 329c15714be90d3fc2d9054f80cb14fa325dc959
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 25 16:07:07 2011 -0400
+
+    Add libtool versioning
+
+    The versioning is automatic.  For now, soname-major is 0.  With
+    the 1.0.0 release it will jump to 1 and stay there forever.
+
+ configure.ac   | 26 +++++++++++++++++++++-----
+ src/Makefile.am |  1 +
+ 2 files changed, 22 insertions(+), 5 deletions(-)
+
+commit 5b21eff8c4a00962d4315a47a65a143abe323299
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 25 14:49:35 2011 -0400
+
+    Update README, etc
+
+ COPYING      | 1 +
+ README       | 8 +++-----
+ configure.ac | 2 +-
+ 3 files changed, 5 insertions(+), 6 deletions(-)
+
+commit 5bf56ea056b30fba8e07e82ec818c430cab8cafd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 25 14:43:10 2011 -0400
+
+    [TODO] Add item
+
+ TODO             | 2 ++
+ test/test-shape.c | 2 ++
+ 2 files changed, 4 insertions(+)
+
+commit 2d8ebcb9d089c2cfbefac71ca6350e2703ab13e3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 25 11:27:33 2011 -0400
+
+    [API] One last font-funcs API change
+
+    Now that vertical text works correctly, I'm doing a last round
+    modification of the font-funcs API to simplify.  Expect no more
+    changes around here.
+
+ src/hb-font.cc    | 107
+ ++++++++++++++++++------------------------------------
+ src/hb-font.h    |  50 +++++++++++--------------
+ src/hb-ft.cc     |  26 ++++++-------
+ test/test-font.c  |  27 +++++++-------
+ test/test-shape.c |  21 +++++------
+ 5 files changed, 91 insertions(+), 140 deletions(-)
+
+commit d31691296f7d3051fcd345bf1325d17835484b50
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 25 11:01:32 2011 -0400
+
+    [test] Update to API changes
+
+ test/test-font.c  | 72
+ ++++++++++++++++++++++---------------------------------
+ test/test-shape.c | 35 +++++++++++++--------------
+ 2 files changed, 44 insertions(+), 63 deletions(-)
+
+commit 7403e055cd1463f38215ad9faedd61c3e1b66ac5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 24 21:04:15 2011 -0400
+
+    [Vertical] fix vertical gpos
+
+    Wow, it took me a few days to find the right fix!
+
+    We now set the advance for attached marks to zero, but we
+    do this in the _finish() state of gpos, so it shouldn't
+    regress with fonts like DejaVuSansMono that explicitly
+    decrease the mark advance width to set it to zero.
+
+ src/hb-ot-layout-gpos-private.hh | 167
+ +++++++++++++++++++++++----------------
+ src/hb-ot-shape.cc              |   9 ++-
+ 2 files changed, 103 insertions(+), 73 deletions(-)
+
+commit ff7cbd0219a7c260612c53b3bed343747d79ec4e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 25 09:56:06 2011 -0400
+
+    [TODO] Update
+
+ TODO | 14 ++++++++++++--
+ 1 file changed, 12 insertions(+), 2 deletions(-)
+
+commit 3b0bb855e011099f1a4c77ffc5214c658e280b2d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 20 15:59:59 2011 -0400
+
+    [Vertical] GPOS x/y advance adjustments only apply in hori/vert
+    respectively
+
+ src/hb-ot-layout-gpos-private.hh | 31 +++++++++++++++++++++----------
+ 1 file changed, 21 insertions(+), 10 deletions(-)
+
+commit cc2086d67ce559878a5ce2b41d89a37eabac90b8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 19 19:19:50 2011 -0400
+
+    [Vertical] Fix GPOS y-advance direction
+
+ src/hb-ot-layout-gpos-private.hh | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+commit 67d51ff96154c8909734046601e439dd8f6a86df
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 19 19:08:57 2011 -0400
+
+    [Vertical] Do fallback origin calculation
+
+ src/hb-font.cc | 32 +++++++++++++++++++++++++++-----
+ 1 file changed, 27 insertions(+), 5 deletions(-)
+
+commit 60fbb36096e344e9af79409ce8cfe3f1f7b0d321
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 19 18:46:15 2011 -0400
+
+    [Vertical] GPOS is always done with horizontal origin
+
+ src/hb-font-private.hh                  |   4 +-
+ src/hb-font.cc                          | 187
+ ++++++++++++++++++---------------------
+ src/hb-font.h                   |  53 ++++++-----
+ src/hb-ft.cc                    |  47 ++++------
+ src/hb-ot-layout-gdef-private.hh |  18 ++--
+ src/hb-ot-layout-gpos-private.hh |  23 ++---
+ src/hb-ot-layout.h              |   2 +-
+ src/hb-ot-shape.cc              |  15 ++++
+ 8 files changed, 166 insertions(+), 183 deletions(-)
+
+commit 8b38faeede41e64eb0f6ac2e12ce51dd7138d50a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 19 13:08:00 2011 -0400
+
+    More vertical
+
+    Starting to get there, but not without yet another round of changes.
+
+    I think I know wheere to go now.
+
+ src/hb-font.cc     | 44 ++++++++++++++++++++++++++++++++------------
+ src/hb-font.h     | 10 ++++++++++
+ src/hb-ft.cc      | 14 ++++++++++++--
+ src/hb-ot-shape.cc |  4 ++++
+ 4 files changed, 58 insertions(+), 14 deletions(-)
+
+commit e609aeb1e24da6b7c812396cddb93ee3c95ef87a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 18 10:17:02 2011 -0400
+
+    [hb-view] Add --annotate
+
+    Currently it only marks glyph origins.
+
+ src/hb-view.cc | 20 +++++++++++++++++++-
+ 1 file changed, 19 insertions(+), 1 deletion(-)
+
+commit b8d76dd74e50d295918cc015e9d2a55e2bf6a461
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 17 23:31:00 2011 -0400
+
+    Vertical: Adjust origin in glyph_extents() and glyph_contour_point()
+
+    The base for vertical is almost ready now.
+
+ src/hb-font.cc | 12 ++++++++----
+ 1 file changed, 8 insertions(+), 4 deletions(-)
+
+commit 190981851fe2bb6479b5c72451279f66fe4f6e23
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 17 23:27:22 2011 -0400
+
+    Cosmetic
+
+ src/hb-font.cc | 114
+ ++++++++++++++++++++++++++++-----------------------------
+ src/hb-ft.cc  |  36 +++++++++---------
+ 2 files changed, 74 insertions(+), 76 deletions(-)
+
+commit 2c3f51a11c176aa3fc12a9522325efaef2c79d35
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 17 23:23:27 2011 -0400
+
+    Minor
+
+ src/hb-font.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 7e2c85de305be59e1a6afa7d2061e4b7dd00acf7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 17 17:55:03 2011 -0400
+
+    [API] Vertical support, take 2
+
+    I like this API *much* better.  Implementation still incomplete, but
+    horizontal works.
+
+ src/hb-font-private.hh                  |   7 +-
+ src/hb-font.cc                          | 185
+ +++++++++++++++++++++++----------------
+ src/hb-font.h                   | 109 ++++++++++++-----------
+ src/hb-ft.cc                    |  66 ++++++++------
+ src/hb-ot-layout-gdef-private.hh |   2 +-
+ src/hb-ot-layout-gpos-private.hh |   2 +-
+ src/hb-ot-shape.cc              |   8 +-
+ 7 files changed, 218 insertions(+), 161 deletions(-)
+
+commit 744970af4d884cc87ffa645804578fec8df674a9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 16 18:15:37 2011 -0400
+
+    [API] Add support for vertical text
+
+    Design not final yet, and in fact I'm going to change it immediately,
+    but this is an standalone change for itself.
+
+ src/hb-font-private.hh                      |  35 ++--
+ src/hb-font.cc                              | 387
+ +++++++++++++++++++++++++----------
+ src/hb-font.h                       | 164 +++++++++++----
+ src/hb-ft.cc                        | 227 +++++++++++++-------
+ src/hb-ot-layout-gdef-private.hh     |   2 +-
+ src/hb-ot-layout-gpos-private.hh     |  35 ++--
+ src/hb-ot-layout-gsub-private.hh     |   1 +
+ src/hb-ot-layout-gsubgpos-private.hh |   1 +
+ src/hb-ot-shape.cc                  |  14 +-
+ src/hb-ot-tag.cc                    |   2 +-
+ test/test-font.c                    |  61 +++---
+ test/test-shape.c                   |  17 +-
+ 12 files changed, 650 insertions(+), 296 deletions(-)
+
+commit 80dce8b7c8202766d52cc7666355446bbf5b0565
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 17 17:08:36 2011 -0400
+
+    Minor
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 5be7d047f6bf54cc577e311b5426c463d2b9b131
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 17 15:05:34 2011 -0400
+
+    Check for mmap()
+
+    Apparently there exist systems with mprotect(), but not mmap()?
+
+ configure.ac    | 2 +-
+ test/test-blob.c | 6 ++++--
+ 2 files changed, 5 insertions(+), 3 deletions(-)
+
+commit 4053f3f788353448b41e541ee617aafbe1cac366
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 16 16:20:48 2011 -0400
+
+    Cosmetic
+
+ src/hb-font.h    | 8 ++++----
+ test/test-shape.c | 6 +++---
+ 2 files changed, 7 insertions(+), 7 deletions(-)
+
+commit 56d12e0356bee5a95b870dfbc2100b8caeb5d593
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 16 16:01:58 2011 -0400
+
+    Remove unnecessary TODO item
+
+ src/hb-ft.cc | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 1883af3796459cafe2d194064403b6b1152c584d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 16 15:18:16 2011 -0400
+
+    [hb-view] Start work on vertical support
+
+ src/hb-view.cc | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+commit 9aa6f96af5e5940ba5c9596c6ae377fea23c0ec0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 16 15:08:31 2011 -0400
+
+    [hb-view] No need to allocate an extra glyph item at the end
+
+ src/hb-view.cc | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit a0359485c9997e3a211f7c00d40c09074d906c4f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 16 15:07:48 2011 -0400
+
+    Minor
+
+ test/test-shape.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+commit 92de53ea450eaee077eb1730e6d7a487b20ac721
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 16 12:24:56 2011 -0400
+
+    [test/buffer] Add more tests for nil buffer
+
+ test/test-buffer.c | 38 ++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 38 insertions(+)
+
+commit 065fb38c9a338ddb095f2ec9e034fcc5a02167bd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 13 23:04:46 2011 -0400
+
+    [test/ot-tag] More tests
+
+ test/test-ot-tag.c | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+commit 1a64f6e19a4b483e278c85e4941107be2f71b0a4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 13 22:55:32 2011 -0400
+
+    [API] Add HB_LANGUAGE_INVALID
+
+ src/hb-common.cc   | 5 +++--
+ src/hb-common.h    | 2 ++
+ src/hb-ot-tag.cc   | 2 +-
+ src/hb-shape.cc    | 2 +-
+ test/test-common.c | 9 ++++++---
+ 5 files changed, 13 insertions(+), 7 deletions(-)
+
+commit 40b5c2e86c633441040196d158e965ad95d6ad37
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 13 22:46:36 2011 -0400
+
+    [test/test-ot-tag] Test hb-ot-tag.h, fix many bugs
+
+    I'm in awe with how many bugs this test revealed.  All fixed.
+
+ src/hb-ot-tag.cc   | 153 +++++++++++++++++++++---------------
+ test/Makefile.am   |  3 +
+ test/test-ot-tag.c | 227
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 320 insertions(+), 63 deletions(-)
+
+commit 1368018b475c2a6dd5f625af99695ae2fcba1f05
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 13 20:25:38 2011 -0400
+
+    [TODO] Add items
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 7fc5a30cb4fbe9a4633ab842b0a8cbbcc6f6bd1b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 12 17:48:20 2011 -0400
+
+    [API] Add hb_face_make/is_immutable()
+
+ src/hb-font-private.hh |  2 ++
+ src/hb-font.cc                | 18 ++++++++++++++++++
+ src/hb-font.h         |  6 ++++++
+ test/test-font.c      |  2 ++
+ test/test-object.c    |  2 +-
+ 5 files changed, 29 insertions(+), 1 deletion(-)
+
+commit 20c8b908ddf50a9814dfdd9fca595f258273cd4f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 12 15:19:33 2011 -0400
+
+    Finish off previous change
+
+ src/hb-font.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 0fd8c2f1be693616f19f2f1526369874763d6cf6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 12 15:14:13 2011 -0400
+
+    [API] Make get_glyph() callback return a boolean
+
+    We need to know whether the glyph exists, so we can fallback to
+    composing / decomposing.  Assuming that glyph==0 means "doesn't exist"
+    wouldn't work for applications like Pango that want to use different
+    "doesn't exist" glyph codes for different characters.  An explicit
+    return value fixes that.
+
+ src/hb-font.cc     | 15 +++++++++------
+ src/hb-font.h     | 12 +++++++-----
+ src/hb-ft.cc      | 12 +++++++-----
+ src/hb-ot-shape.cc | 13 +++++++++----
+ test/test-font.c   |  5 ++++-
+ test/test-shape.c  | 12 +++++++-----
+ 6 files changed, 43 insertions(+), 26 deletions(-)
+
+commit 8e07f93ab4a3ef9adc7942727ef21f2f9a141d10
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 12 14:27:44 2011 -0400
+
+    [test/shape] Check shape output
+
+ test/test-shape.c | 23 +++++++++++++++++++----
+ 1 file changed, 19 insertions(+), 4 deletions(-)
+
+commit 805af72405a2f653f08de392d7172291ffe8e902
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 12 12:39:40 2011 -0400
+
+    Rename get_kernings() arguments from first/second_glyph to
+    left/right_glyph
+
+    Makes it clear that kerning is in visual order.
+
+ src/hb-font.cc | 10 +++++-----
+ src/hb-font.h |  4 ++--
+ src/hb-ft.cc  |  6 +++---
+ 3 files changed, 10 insertions(+), 10 deletions(-)
+
+commit 23d2432219a91c6328efa9e041b1ecf137752ac3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 12 10:53:57 2011 -0400
+
+    [test] Add test-shape.c.  Oops
+
+ test/test-shape.c | 125
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 125 insertions(+)
+
+commit c098c3acc8c48b4b6883c50c9a87e81dbe98ba24
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 12 10:49:30 2011 -0400
+
+    [test/blob] Use MAP_ANON instead of MAP_ANONYMOUS
+
+    More portable.
+
+ test/test-blob.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 8329eb7c6ca39e162228733a2210e643b1a1019d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 12 01:39:17 2011 -0400
+
+    [test/shape] Add simplest test for hb_shape()
+
+ test/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit df077fadd7828b609bdfe4dbcad52ef2448525c7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 12 01:19:39 2011 -0400
+
+    [object] Make object inert during destruction
+
+    Such that user_data and other finalizers cannot resurrect object
+
+ src/hb-object-private.hh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit ee8dd83bb4e0b1c2ca5928391e35e8bd1fca6121
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 12 01:02:03 2011 -0400
+
+    [TODO] Update
+
+ TODO | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+commit 52df150efeff4cf003cee65f8c91618f1a980bc8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 12 00:46:57 2011 -0400
+
+    Fix font subclass chainup
+
+    Test passing now.
+
+ src/hb-font.cc | 6 +-----
+ 1 file changed, 1 insertion(+), 5 deletions(-)
+
+commit f2c1dd4f746c36a44cf33d0257a3cd800107c286
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 12 00:35:12 2011 -0400
+
+    [test/font] Test font_funcs subclassing
+
+ test/test-font.c | 158
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++--
+ 1 file changed, 155 insertions(+), 3 deletions(-)
+
+commit 14f1e81b77971204e9325e2a8b6f8b690fac20a7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 12 00:18:28 2011 -0400
+
+    [test/font] Test empty funcs
+
+ test/test-font.c | 75
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++--
+ 1 file changed, 73 insertions(+), 2 deletions(-)
+
+commit 2ca0b5ae1e65d3f43df3a4a2144a1451d8b485c4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 23:57:36 2011 -0400
+
+    [test/font] Test more
+
+ test/test-font.c | 63
+ ++++++++++++++++++++++++++++++++++++++++++++++++--------
+ 1 file changed, 54 insertions(+), 9 deletions(-)
+
+commit 7033518f756490e9cf00b96387fee6f2f7fae785
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 23:31:15 2011 -0400
+
+    [API] Pass face to get_table()
+
+ src/hb-font.cc   | 4 ++--
+ src/hb-font.h   | 2 +-
+ src/hb-ft.cc    | 2 +-
+ test/test-font.c | 2 +-
+ 4 files changed, 5 insertions(+), 5 deletions(-)
+
+commit b46782780690e26a8221e2d63dd224159aebe413
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 23:25:28 2011 -0400
+
+    [API] Remove const from font user_data
+
+ src/hb-font.cc | 20 ++++++++++----------
+ src/hb-font.h | 20 ++++++++++----------
+ src/hb-ft.cc  | 20 ++++++++++----------
+ 3 files changed, 30 insertions(+), 30 deletions(-)
+
+commit ea93e7b27ca04a1655d62bd1d18a32805994af44
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 23:22:55 2011 -0400
+
+    [test/font] More tests
+
+ test/test-font.c | 36 +++++++++++++++++++++++++++++++++---
+ 1 file changed, 33 insertions(+), 3 deletions(-)
+
+commit cdb153175f8a1521cde112c65b173f548ca6ee5c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 23:12:58 2011 -0400
+
+    [test/font] More tests
+
+ test/test-font.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 44 insertions(+)
+
+commit 74d9fa3d9ac226ed72702884e721ef94ecc48e22
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 23:07:47 2011 -0400
+
+    [test/font] More get_empty() tests
+
+ test/test-font.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+commit db9f4eb4e004fadae9d540522d1d21c3bbe659b0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 23:06:02 2011 -0400
+
+    [test/font] Test get_face() / get_parent()
+
+ test/test-font.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 606923bb4304d5b9cf164745d657cba58949a80a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 23:05:02 2011 -0400
+
+    [test/font] Add test_font_properties()
+
+ test/test-font.c | 85
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 85 insertions(+)
+
+commit da603e80386b41b360acb070a862b6ed87da57b8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 22:52:35 2011 -0400
+
+    [test/font] Start adding tests for hb-font.h
+
+ test/Makefile.am    | 1 +
+ test/test-buffer.c  | 2 +-
+ test/test-font.c    | 69
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ test/test-unicode.c | 1 +
+ 4 files changed, 72 insertions(+), 1 deletion(-)
+
+commit 9a14688e40e926b9453fcb75891f27bff1e45c49
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 22:49:29 2011 -0400
+
+    [API] Rename hb_face_create_for_data() to hb_face_create()
+
+ src/hb-font.cc     | 4 ++--
+ src/hb-font.h     | 4 ++--
+ src/hb-ft.cc      | 2 +-
+ src/test.cc       | 2 +-
+ test/test-object.c | 4 ++--
+ 5 files changed, 8 insertions(+), 8 deletions(-)
+
+commit 46d6a21cc8613519e6ce27b1925e29285cccb71d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 22:33:13 2011 -0400
+
+    [API] Add hb_ot_layout_substitute_start/finish()
+
+ src/hb-ot-layout.cc | 13 +++++++++++++
+ src/hb-ot-layout.h  | 8 ++++++++
+ 2 files changed, 21 insertions(+)
+
+commit c84d15f52e1183164502d45b476b54f8fe812e0f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 22:23:15 2011 -0400
+
+    Remove unused hb_set_t
+
+ src/hb-private.hh | 48 ------------------------------------------------
+ 1 file changed, 48 deletions(-)
+
+commit 389a7c9e67549b1a9f7c538965e4647077f8e6ec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 22:21:38 2011 -0400
+
+    Remove hb_static_threadsafe_set_t
+
+ src/hb-common.cc       |  5 +++--
+ src/hb-mutex-private.hh | 42 ------------------------------------------
+ 2 files changed, 3 insertions(+), 44 deletions(-)
+
+commit e06d4eda7bbdb3a1be1f1ce8d98b059a0730f14d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 22:18:31 2011 -0400
+
+    Use constructor/destructor for hb_ot_shape_plan_t
+
+ src/hb-ot-shape-private.hh | 6 +++++-
+ src/hb-ot-shape.cc        | 4 +---
+ 2 files changed, 6 insertions(+), 4 deletions(-)
+
+commit a5e4e109460ea23fa5e64926a1676c6a02ab6ba2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 22:00:56 2011 -0400
+
+    Minor
+
+ TODO | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit daa446f184fa27c9764ff7f8a2444d47cf34d986
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 21:31:25 2011 -0400
+
+    Fix compile with no mutex available
+
+ src/hb-mutex-private.hh | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit 1e56c476c10577fe319fe553c5ced000bd740940
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 21:28:01 2011 -0400
+
+    Free static mutex'es
+
+ src/hb-mutex-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 831886a9b4073cfe27f7e1db0e957cbd5913fd31
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 21:27:52 2011 -0400
+
+    Streamline mutex stuff
+
+ src/hb-mutex-private.hh | 61
+ ++++++++++++++++++++++++++++++-------------------
+ src/hb-private.hh      |  8 +++++++
+ 2 files changed, 46 insertions(+), 23 deletions(-)
+
+commit 438c4eee353ddf0de66171d84c6ef9b21cbdf8f6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 21:14:34 2011 -0400
+
+    Remove unused hb_mutex_trylock()
+
+ src/hb-mutex-private.hh | 3 ---
+ 1 file changed, 3 deletions(-)
+
+commit b8477e1da2785708f3232f8f2577f602a5d320d1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 21:12:44 2011 -0400
+
+    [test] Add tests for _get_empty() funcs
+
+ test/test-blob.c    | 1 +
+ test/test-buffer.c  | 7 +++++++
+ test/test-unicode.c | 10 ++++++++++
+ 3 files changed, 18 insertions(+)
+
+commit 3994be3ded40e5a3da0e187ad421b19a78865e02
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 21:08:31 2011 -0400
+
+    [TODO] Update
+
+ TODO | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 80a6833b032bc63b4e8c3da6489d3767af1168f3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 18:14:44 2011 -0400
+
+    [API] Add hb_*_get_empty() for all objects
+
+ src/hb-buffer.cc   |  6 ++++++
+ src/hb-buffer.h    |  3 +++
+ src/hb-font.cc     | 18 ++++++++++++++++++
+ src/hb-font.h     |  9 +++++++++
+ src/hb-unicode.cc  |  6 ++++++
+ src/hb-unicode.h   |  3 +++
+ test/test-object.c | 36 +++++++++++++++++++++++++++++++++---
+ 7 files changed, 78 insertions(+), 3 deletions(-)
+
+commit d3b30be378c1dec0259a626d9a408bb9ca1b71ac
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 18:06:12 2011 -0400
+
+    [API] Add HB_UNTAG()
+
+    Useful in C API only.
+
+ src/hb-common.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 3cc6e9dcb42551761c3a1a9d3c25b1f1bcdc2419
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 18:02:48 2011 -0400
+
+    Minor
+
+ src/test.cc | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+commit 4101ca7dbbdf1438fa116fb8cad935501ac7cca8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 14:30:56 2011 -0400
+
+    Plug more leaks
+
+    All good now.
+
+ src/hb-blob.cc                     | 2 +-
+ src/hb-open-type-private.hh | 8 ++++----
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+commit 6a7ac79e26e85f6781186cf708a12825c0857324
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 14:19:18 2011 -0400
+
+    Plug leaks
+
+ src/hb-ot-map-private.hh   |  7 +++++++
+ src/hb-ot-shape-private.hh |  2 ++
+ src/hb-ot-shape.cc        |  2 ++
+ src/hb-private.hh         | 10 +++++++++-
+ 4 files changed, 20 insertions(+), 1 deletion(-)
+
+commit 7aa12ebdff11a4ffbd04bf9b164586eb0c172e37
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 11:55:11 2011 -0400
+
+    [unicode] Simplify method setting
+
+ src/hb-unicode.cc   | 6 +-----
+ test/test-unicode.c | 6 +++++-
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+commit d5bfd0272130a315d3b5e6cdcf9b7e6395879204
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 11:48:28 2011 -0400
+
+    Minor
+
+ src/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 6a4e7e1372ef9fde81b84ecc9c4d1f23d97396c1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 10:31:33 2011 -0400
+
+    Add maxp table
+
+    Not used for anything right now.  Will use to get num_glyphs in
+    the future.
+
+ src/Makefile.am          |  1 +
+ src/hb-ot-head-private.hh |  1 -
+ src/hb-ot-layout.cc      |  1 +
+ src/hb-ot-maxp-private.hh | 68
+ +++++++++++++++++++++++++++++++++++++++++++++++
+ 4 files changed, 70 insertions(+), 1 deletion(-)
+
+commit e0b0710ae52bcc8c6fbd87dfae83818faa5d5f5f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 08:58:21 2011 -0400
+
+    Minor
+
+ TODO | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit a513dbcf73ab1cc39a7c9653034904d0c6cd9fe9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 00:24:34 2011 -0400
+
+    [API] Change signature of get_contour_point and get_kerning ffuncs
+
+    get_contour_point now takes glyph id before point_index.
+
+    get_kerning now takes a vector to fill-in.
+
+ src/hb-font.cc                          | 56
+ +++++++++++++++++++++-------------------
+ src/hb-font.h                   | 16 +++++++-----
+ src/hb-ft.cc                    | 11 +++++---
+ src/hb-ot-layout-gdef-private.hh |  2 +-
+ src/hb-ot-layout-gpos-private.hh |  2 +-
+ src/hb-ot-shape.cc              | 15 ++++++++---
+ 6 files changed, 59 insertions(+), 43 deletions(-)
+
+commit 63d646fb2933c2765ce526d321a498d0f7fae2f5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 00:15:37 2011 -0400
+
+    [font] Do user-space conversion when chaining up to parent font
+
+ src/hb-font-private.hh | 28 ++++++++++++++++++++++++++++
+ src/hb-font.cc                | 23 +++++++++++++++++------
+ 2 files changed, 45 insertions(+), 6 deletions(-)
+
+commit b6f902a1a9c8b72b5d6a241a14a7bacfaea3a56a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 00:04:15 2011 -0400
+
+    Minor
+
+ src/hb-font-private.hh                  |  6 +++---
+ src/hb-ot-layout-gdef-private.hh |  6 +++---
+ src/hb-ot-layout-gpos-private.hh | 20 ++++++++++----------
+ 3 files changed, 16 insertions(+), 16 deletions(-)
+
+commit abcfe9b59b4475eb02dd679aac4bc59616713b28
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 11 00:02:02 2011 -0400
+
+    Remove hb_ot_layout_context_t, simplify code
+
+ src/hb-font-private.hh                      |  12 +++-
+ src/hb-font.cc                              |   6 +-
+ src/hb-ot-layout-common-private.hh   |   8 +--
+ src/hb-ot-layout-gdef-private.hh     |  34 +++++-----
+ src/hb-ot-layout-gpos-private.hh     | 121
+ ++++++++++++++++++-----------------
+ src/hb-ot-layout-gsub-private.hh     |  24 +++----
+ src/hb-ot-layout-gsubgpos-private.hh |  11 ++--
+ src/hb-ot-layout-private.hh         |  13 ----
+ src/hb-ot-layout.cc                 |  15 +----
+ 9 files changed, 118 insertions(+), 126 deletions(-)
+
+commit 1ded6d8bbf93b7dabf2b1f620c07bd3236e7a60f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 20:49:02 2011 -0400
+
+    Make default font-funcs chain-up to the parent
+
+ src/hb-font.cc | 44 +++++++++++++++++++++++++++++++++++++++-----
+ src/hb-font.h | 41 +++++++++++++++++++++--------------------
+ 2 files changed, 60 insertions(+), 25 deletions(-)
+
+commit b9d975b931d6310f25fab5ac280f523cdc27bf94
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 20:41:13 2011 -0400
+
+    [API] Pass down closure user_data to font funcs
+
+ src/hb-font-private.hh |  30 ++++++--
+ src/hb-font.cc                | 184
+ +++++++++++++++++++++++++------------------------
+ src/hb-font.h         |  42 ++++++-----
+ src/hb-ft.cc          | 103 ++++++++++++++-------------
+ 4 files changed, 198 insertions(+), 161 deletions(-)
+
+commit 446df9cdb1fddb51819b731436fca54146d0bb23
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 20:14:44 2011 -0400
+
+    Whitespace
+
+ src/hb-unicode.h | 30 +++++++++++++++---------------
+ 1 file changed, 15 insertions(+), 15 deletions(-)
+
+commit 686c2d165dfb284b74b78f6b902d04b585dcaef3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 20:04:26 2011 -0400
+
+    [API] Remove font_funcs func getter functions
+
+ src/hb-font.cc | 32 --------------------------------
+ src/hb-font.h | 18 ------------------
+ 2 files changed, 50 deletions(-)
+
+commit defc45be6d75aba4a67fa7814b91b73bad953fe6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 20:02:49 2011 -0400
+
+    [API] Add hb_font_create_sub_font() and hb_font_get_parent()
+
+    Not quite useful just yet.
+
+ src/hb-font-private.hh |  1 +
+ src/hb-font.cc                | 41 ++++++++++++++++++++++++++++++++++++++---
+ src/hb-font.h         |  5 +++++
+ src/hb-unicode.h      |  2 +-
+ 4 files changed, 45 insertions(+), 4 deletions(-)
+
+commit 11bb8fe7b3925bc9b019ad0c0218a231e581f152
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 19:57:00 2011 -0400
+
+    [font] Fix internal sign of x/y_scale
+
+    Should have been done as part of
+    da975419884a535281745f30f4b32fee0bc8a7a1
+
+ src/hb-font-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 85e6218e3306165d69ef44277459511d5b54b9ff
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 19:40:44 2011 -0400
+
+    [API] Remove broken-by-design hb_font_unset_funcs()
+
+ src/hb-font.cc | 22 ----------------------
+ src/hb-font.h | 16 ----------------
+ 2 files changed, 38 deletions(-)
+
+commit 74f1d896f2479500d65649cf3ec86dd201f0663a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 19:39:32 2011 -0400
+
+    Add hb_font_make/is_immutable()
+
+ src/hb-font-private.hh |  2 ++
+ src/hb-font.cc                | 26 +++++++++++++++++++++++---
+ src/hb-font.h         |  6 ++++++
+ test/test-object.c    |  2 +-
+ 4 files changed, 32 insertions(+), 4 deletions(-)
+
+commit 8c7a100a4d0f3a257fb7563cb08ed4356c3af669
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 19:21:07 2011 -0400
+
+    Fix build without mutex
+
+ src/hb-mutex-private.hh | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+commit 19d3035c40e73923bcad709dc5eefe31cb34d681
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 19:18:12 2011 -0400
+
+    Remove duplicate atomic_int implementation
+
+ src/hb-mutex-private.hh | 17 -----------------
+ 1 file changed, 17 deletions(-)
+
+commit 45bfa99034512e886d75b1d45a5a649647f4711f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 19:12:49 2011 -0400
+
+    Fix set implementation to be truly threadsafe even with destroy()
+    callbacks
+
+    The test/object test is passing again, instead of deadlocking.
+
+ src/hb-common.cc        |  26 +++++------
+ src/hb-mutex-private.hh  |  47 +++++++------------
+ src/hb-object-private.hh |   6 ++-
+ src/hb-private.hh       | 117
+ ++++++++++++++++++++++++++++++++++++++---------
+ 4 files changed, 128 insertions(+), 68 deletions(-)
+
+commit 0c2ec1d78bfa0166ffd4afc204c2668d4f456ed9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 19:11:27 2011 -0400
+
+    [test] Always initialize gthread such that our mutex() stuff is tested
+
+    Now the test/object test deadlocks as expected.  Fix coming.
+
+ configure.ac    | 1 +
+ test/Makefile.am | 4 ++--
+ test/hb-test.h   | 1 +
+ 3 files changed, 4 insertions(+), 2 deletions(-)
+
+commit 6a9093cc486c1899197cd7cc9a3eb907c2e756f7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 19:00:07 2011 -0400
+
+    [test/object] Test user_data with destroy() callback that calls
+    user_data
+
+    Exposes the non-atomicity of user_data opertaions at this time because
+    we call finish() while still locked and modifying the object.
+    In fact,
+    I'm surprised that it doesn't deadlock.  It should.
+
+ test/test-object.c | 22 ++++++++++++++++++++++
+ 1 file changed, 22 insertions(+)
+
+commit abe636b8761e47ea60b193c7e72a044de224d172
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 17:55:40 2011 -0400
+
+    Add DOAP file
+
+ Makefile.am   |  6 +++++-
+ harfbuzz.doap | 24 ++++++++++++++++++++++++
+ 2 files changed, 29 insertions(+), 1 deletion(-)
+
+commit f82c18630471216a04e4e3ad42396da4e6d74cba
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 17:48:34 2011 -0400
+
+    [test/blob] Fix bug in test
+
+ test/test-blob.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 785d23acd0ce72d399f9c5021bebc854872648af
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 17:41:44 2011 -0400
+
+    [test/blob] Add create_sub_blob()
+
+ test/test-blob.c | 17 +++++++++++++++++
+ 1 file changed, 17 insertions(+)
+
+commit 0617b1558234673d3924f37541be01b04d36f05a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 10 17:37:08 2011 -0400
+
+    [test] Test blob API
+
+ test/Makefile.am   |  1 +
+ test/test-blob.c   | 280
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ test/test-buffer.c | 149 ++++++++++++++--------------
+ 3 files changed, 359 insertions(+), 71 deletions(-)
+
+commit 1c9f8717eb12c37c219333cbb0d123e1d2da4896
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 6 22:28:26 2011 -0400
+
+    [API] Simplify blob API, remove lock
+
+ TODO                       |   2 -
+ src/hb-blob.cc                     | 206
+ ++++++++++++++++++--------------------------
+ src/hb-blob.h              |  19 ++--
+ src/hb-font.cc                     |   2 -
+ src/hb-open-type-private.hh | 32 ++++---
+ src/hb-ot-layout.cc        |   7 +-
+ test/test-object.c         |   2 +-
+ 7 files changed, 118 insertions(+), 152 deletions(-)
+
+commit 71cef14ac3de07e4fed0a2903b1f0f639406ec6c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 6 19:30:59 2011 -0400
+
+    Add -Bsymbolic-functions to linker flags
+
+ configure.ac | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit ab428aeab724ca40341318b66640f992cd72d2fc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 6 19:30:46 2011 -0400
+
+    [TODO] Update
+
+ TODO | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit a0f337a1cce1788dbf3147b459e7f615acbfe81b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 6 19:20:52 2011 -0400
+
+    Remove unused hb_blob_try_writable_inplace()
+
+ src/hb-blob.cc | 20 --------------------
+ src/hb-blob.h |  3 ---
+ 2 files changed, 23 deletions(-)
+
+commit 08611d5194144bbf5d96a1110aeb812db06e0901
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 6 16:28:10 2011 -0400
+
+    Add note re deadlocks
+
+ src/hb-common.cc       | 1 +
+ src/hb-mutex-private.hh | 4 ++++
+ 2 files changed, 5 insertions(+)
+
+commit 34fb5521a5fbb6b95ceff4bbac42a62628bc9f31
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 6 00:04:28 2011 -0400
+
+    [API] Add hb_language_get_default()
+
+    It uses locale information to detect default language.  It's used by
+    hb_shape() whenever language is not set on the buffer.
+
+    Not sure how to properly test it in the test suite.  Tested by
+    observing
+    that with DejaVu Sans we select the proper local glyph version
+    for U+431
+    under Serbian locale.  See http://www.pango.org/ScriptGallery
+
+ src/hb-common.cc   | 21 +++++++++++++++++++++
+ src/hb-common.h    |  3 +++
+ src/hb-shape.cc    |  2 +-
+ test/test-common.c |  5 +++++
+ 4 files changed, 30 insertions(+), 1 deletion(-)
+
+commit c78f4485587cc1dee07e772c164a13fde9d2859f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 21:31:04 2011 -0400
+
+    [API] Add version macros and functions
+
+    Step version up to 0.5.0.
+
+    Also, fix to pass "make distcheck"
+
+ configure.ac                | 24 ++++++++++++-----
+ src/Makefile.am             |  9 +++++++
+ src/check-c-linkage-decls.sh |  2 +-
+ src/hb-common.cc            | 29 +++++++++++++++++++++
+ src/hb-version.h.in         | 62
+ ++++++++++++++++++++++++++++++++++++++++++++
+ src/hb.h                    |  1 +
+ test/Makefile.am            |  2 ++
+ 7 files changed, 122 insertions(+), 7 deletions(-)
+
+commit 9ff819f6571fd0d570f271162d7a30d97ee64148
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 19:47:59 2011 -0400
+
+    Add disable-static libtool flag
+
+    No one who builds harfbuzz static uses the autotools build system
+    to do it.
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 7ca7571ef91754274f6c84bbf988962d74a74098
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 19:47:12 2011 -0400
+
+    Remove win32-dll libtool flag
+
+    Since we're not win32-dll clean the way libtool docs define it.
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 174e3fe89b72729c9c34c647544a2dc1bf63cd84
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 19:37:53 2011 -0400
+
+    Add AC_CANONICAL_HOST
+
+ configure.ac | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+commit e6a5b88c01420366a70e0c9ae1775fb3c930cb8b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 16:24:42 2011 -0400
+
+    Fix build with older glib
+
+ configure.ac  |  2 +-
+ test/hb-test.h | 55
+ +++++++++++++++++++++++++++++++++----------------------
+ 2 files changed, 34 insertions(+), 23 deletions(-)
+
+commit 3935af1c0d0f53a5fd6054e1ee219f3adda42dca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 16:09:45 2011 -0400
+
+    [buffer] Remove wrong optimization
+
+    While the cluster fields of the glyph string are usually sorted, they
+    wouldn't be in special cases (for example for non-native direction).
+    Blindly using bsearch is plain wrong.  If we want to reintroduce this
+    optimization we have to make sure we know the buffer clusters are
+    monotonic and in which direction.  Not sure it's worth it though.
+
+ src/hb-buffer.cc | 16 +++-------------
+ 1 file changed, 3 insertions(+), 13 deletions(-)
+
+commit 46df6828513d56cd60467e36cbe45aa06648f488
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 15:33:19 2011 -0400
+
+    Make user_data access threadsafe
+
+    For now, by taking a global user_data mutex.
+
+ src/hb-common.cc        | 25 +++++++++++++++++++++++--
+ src/hb-object-private.hh |  2 --
+ 2 files changed, 23 insertions(+), 4 deletions(-)
+
+commit 218e67b9eefa26e2e4fe43f99a84d082b185b1b0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 15:28:37 2011 -0400
+
+    Shrink code
+
+ src/hb-common.cc        | 26 ++++++++++++++++++++++++++
+ src/hb-object-private.hh | 21 ++++-----------------
+ 2 files changed, 30 insertions(+), 17 deletions(-)
+
+commit b8d6183ebc4697a434776cf2aec7857d63a7d881
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 15:14:04 2011 -0400
+
+    Use threadsafe set implementation for hb_language lookups
+
+    Note that the static variable has to be a global static, as gcc
+    implements local statics differently and that would require linking
+    to libstdc++, which we don't want.
+
+ src/hb-common.cc | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit d37486d87b65c5abaaa2998fa5c9e48eedde0933
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 15:07:54 2011 -0400
+
+    Add hb_threadsafe_set_t
+
+ src/hb-mutex-private.hh | 54
+ +++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-private.hh      |  3 +--
+ 2 files changed, 55 insertions(+), 2 deletions(-)
+
+commit b45f32ee4e599c515ce93e44315283d236b073bb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 15:00:43 2011 -0400
+
+    Use hb_array_t for hb_language_t mapping
+
+ src/hb-common.cc        | 48
+ ++++++++++++++++++++++--------------------------
+ src/hb-object-private.hh |  4 ++--
+ src/hb-private.hh       | 19 +++++++++++++++----
+ 3 files changed, 39 insertions(+), 32 deletions(-)
+
+commit 21d2c92fdf7307c7117f8948021f0dd7d5a5d2a3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 14:47:53 2011 -0400
+
+    Move code around
+
+ src/hb-object-private.hh | 28 ++++++++++++++--------------
+ 1 file changed, 14 insertions(+), 14 deletions(-)
+
+commit 448ea9bf63104d39f87fff66219034222fa632b8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 14:39:24 2011 -0400
+
+    [TODO] Remove done items
+
+ TODO | 9 ---------
+ 1 file changed, 9 deletions(-)
+
+commit 265ac614ea6d26041c7d64739098b76a82bbc4f4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 14:38:16 2011 -0400
+
+    Replace fixed-size lookup_maps array with hb_array_t
+
+ src/hb-ot-map-private.hh | 13 +++++--------
+ src/hb-ot-map.cc        | 47
+ +++++++++++++++++++++++++----------------------
+ src/hb-private.hh       |  6 ++----
+ 3 files changed, 32 insertions(+), 34 deletions(-)
+
+commit 6843569d2c70c1771ce964e3d1a4cf91e14e7687
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 14:12:37 2011 -0400
+
+    Replace fixed-size feature_maps array with hb_array_t
+
+ src/hb-ot-map-private.hh | 10 +++-------
+ src/hb-ot-map.cc        | 12 ++++++------
+ src/hb-ot-shape.cc      |  2 +-
+ src/hb-private.hh       | 42 +++++++++++++++++++++++++++++-------------
+ 4 files changed, 39 insertions(+), 27 deletions(-)
+
+commit 44b0a4d2fc62689fc56ef57f412b4bb1e439a614
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 13:42:19 2011 -0400
+
+    Replace fixed-size feature_infos array with hb_array_t
+
+ src/hb-ot-map-private.hh |  9 +++++----
+ src/hb-ot-map.cc        |  9 +++++----
+ src/hb-private.hh       | 12 ++++++++++++
+ 3 files changed, 22 insertions(+), 8 deletions(-)
+
+commit b214ec3ac0ce6568e9226fd09661d52de11dca96
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 13:24:07 2011 -0400
+
+    Minor
+
+ src/hb-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 811482bd650fb5652a9835471ae8ecf0fb185611
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 13:21:04 2011 -0400
+
+    Replace hb_map_t with hb_set_t which is more intuitive and flexible
+
+ src/hb-object-private.hh | 24 ++++++++++++++----------
+ src/hb-private.hh       | 44
+ +++++++++++++++++---------------------------
+ test/test-object.c      |  4 ++++
+ 3 files changed, 35 insertions(+), 37 deletions(-)
+
+commit 478a42536ff7ab777a7774fbfdb9c5e51334a14e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 12:39:51 2011 -0400
+
+    Make array/map implementation more generic
+
+ src/hb-object-private.hh |  2 ++
+ src/hb-private.hh       | 13 +++++++------
+ 2 files changed, 9 insertions(+), 6 deletions(-)
+
+commit b81bd42951e1ce1569b29168015d3c5a2dacf773
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 00:21:16 2011 -0400
+
+    Make hb_mutex_*() macros take a pointer
+
+    More intuitive.
+
+ src/hb-blob.cc                 | 28 ++++++++++++++--------------
+ src/hb-mutex-private.hh | 32 ++++++++++++++++----------------
+ 2 files changed, 30 insertions(+), 30 deletions(-)
+
+commit a4b1900913c91aa9db74c4fdfa7c691a5cdf02a8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 5 00:17:43 2011 -0400
+
+    Add hb_static_mutex_t
+
+ src/hb-mutex-private.hh | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 56eb5ad6f94c32189ad219438db9a18683ca6846
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 4 19:27:37 2011 -0400
+
+    Move code around
+
+    Mutex (and Windows.h by extension) are fairly isolated now.
+
+ src/Makefile.am         |   8 ++--
+ src/hb-blob-private.hh   |  60 ---------------------------
+ src/hb-blob.cc                  |  24 ++++++++++-
+ src/hb-font-private.hh   |   3 --
+ src/hb-font.cc                  |  12 +++---
+ src/hb-mutex-private.hh  | 105
+ +++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-object-private.hh |  33 ++-------------
+ src/hb-unicode.cc       |   1 -
+ 8 files changed, 141 insertions(+), 105 deletions(-)
+
+commit d292885893395dcb345dce1010e5c8628a715ef4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 3 01:03:53 2011 -0400
+
+    [ft] Fix font->face handling
+
+    Don't use _cached()
+
+ src/hb-ft.cc | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+commit 2000179487b49e0d504ec127450dc6fcb5568cec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 3 00:49:06 2011 -0400
+
+    Move Win32 thread-safety stuff to hb-object-private.h
+
+    The Win32 definitions for LONG, ULONG, etc conflicts with
+    hb-open-type.h.  Avoid that by making sure hb-object-private.h
+    and hb-open-type.h are not included in the same compilation unit.
+
+ src/hb-common.cc        | 54 ---------------------------------------
+ src/hb-object-private.hh | 66
+ ++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-private.hh       | 66
+ ------------------------------------------------
+ 3 files changed, 66 insertions(+), 120 deletions(-)
+
+commit 266b34418c9bbe23ccaf29cb354b58c465fa3b22
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 3 00:35:53 2011 -0400
+
+    Refactor to keep hb-object-private.h and hb-open-type.h separate
+
+    Needed to be able to include <Windows.h> from hb-object-private.h.
+
+ src/hb-font.cc                     | 19 ++++----------
+ src/hb-ot-layout-private.hh | 60
+ +++++++++++++++++++++++++--------------------
+ src/hb-ot-layout.cc        | 28 ++++++++++++++++++---
+ 3 files changed, 63 insertions(+), 44 deletions(-)
+
+commit d4141a44b97377a65e6d2a3e03b3709307af38c1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 3 00:19:18 2011 -0400
+
+    [blob] Implement sub_blob() in terms of create()
+
+    Fixes problem with uninitialized sub_blob->mutex among other things.
+
+    Reported by Bradley Grainger.
+
+ src/hb-blob.cc | 12 +++++-------
+ 1 file changed, 5 insertions(+), 7 deletions(-)
+
+commit fc52e9e44c2fe84d63f18dc0098720830f0b467d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 3 00:09:16 2011 -0400
+
+    Implement win32 thread-safety stuff
+
+    Patch from Bradley Grainger.
+
+ src/hb-common.cc  | 54
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-private.hh | 30 +++++++++++++++++++++++++-----
+ 2 files changed, 79 insertions(+), 5 deletions(-)
+
+commit f55272ecde857c116f97a3195f3abd1df3be4b86
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 20:57:28 2011 -0400
+
+    Add hb_mutex_free() and use it
+
+    Based on patch by Bradley Grainger.
+
+ src/hb-blob.cc    |  1 +
+ src/hb-private.hh | 16 +++++++++-------
+ 2 files changed, 10 insertions(+), 7 deletions(-)
+
+commit 8d5186484b28b5f629b523e067d7d5166eec557a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 20:52:21 2011 -0400
+
+    Cosmetic
+
+ src/hb-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 72657e4ce757dcb055a8db7291b68f96f0d34bfb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 20:46:32 2011 -0400
+
+    [API] Make hb_font_create() take a face and reference it
+
+ src/hb-font-private.hh                  |  2 ++
+ src/hb-font.cc                          | 42
+ +++++++++++++++++++++++++---------------
+ src/hb-font.h                   | 26 ++++++++++++++-----------
+ src/hb-ft.cc                    |  7 +------
+ src/hb-ot-layout-gdef-private.hh |  2 +-
+ src/hb-ot-layout-gpos-private.hh |  2 +-
+ src/hb-ot-layout.cc             | 10 ++++------
+ src/hb-ot-layout.h              |  2 --
+ src/hb-ot-map-private.hh        |  2 +-
+ src/hb-ot-shape.cc              | 23 +++++++++++-----------
+ src/hb-ot-shape.h               |  1 -
+ src/hb-shape.cc                 | 18 ++---------------
+ src/hb-shape.h                          |  1 -
+ src/hb-view.cc                          |  4 +---
+ test/test-object.c              |  7 +++++--
+ 15 files changed, 70 insertions(+), 79 deletions(-)
+
+commit cec6611c5ce84d69d910bf7e9ec1fdd594398f9f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 20:18:58 2011 -0400
+
+    Protect NULL in a couple places
+
+ src/hb-font.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 5a5030366e40baa8d96ca67b47a52ad5af143157
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 19:54:29 2011 -0400
+
+    Fix bug in array growth implementation
+
+    With this, test/object is now passing.  Yay!
+
+ src/hb-private.hh | 24 +++++++++++-------------
+ 1 file changed, 11 insertions(+), 13 deletions(-)
+
+commit 16123e10700436df18d14e37371bb621b31ea5d1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 19:54:17 2011 -0400
+
+    Fix bug in map implementation
+
+ src/hb-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 1cd5969f253528b1fc05a06c7a9f222baa29f68d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 19:53:39 2011 -0400
+
+    [object] Fix bug in get_user_data() implementation
+
+ src/hb-object-private.hh | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+commit db99589529a22a2113bcef1680ab6d9b934f382e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 19:52:47 2011 -0400
+
+    [test/object] Add test for object lifecycle stuff
+
+    Revealed many bugs in the (untested and known buggy) user_data
+    support.
+
+ test/Makefile.am   |  4 +
+ test/test-object.c | 316
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 320 insertions(+)
+
+commit f74d6c81f14f117b3cecfb65f0d5df22849c9a07
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 19:52:32 2011 -0400
+
+    Cosmetic
+
+ test/test-unicode.c | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit 4911062d5be0d937ee8f1a70cc93e05d162f45b3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 19:36:39 2011 -0400
+
+    [API] Rename hb_blob_create_empty() to hb_blob_get_empty()
+
+ src/hb-blob.cc                     | 2 +-
+ src/hb-blob.h              | 2 +-
+ src/hb-font.cc                     | 2 +-
+ src/hb-open-type-private.hh | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+commit 1ab1d3e38cdf8e7331efdbc4ef0c02ee9d5c8c04
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 19:35:53 2011 -0400
+
+    [face] Return nil face if blob is inert
+
+ src/hb-font.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit e87867cb88280e3f3a38d829e359cb686168b2cb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 19:35:05 2011 -0400
+
+    [buffer] Fail in _create() if we cannot pre-allocate the requested
+    size
+
+ src/hb-buffer.cc | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+commit cd361ec9a1b2bfc271e5490dbfc0a870fd5c439a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 16:54:05 2011 -0400
+
+    Cosmetic
+
+ test/test-unicode.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit c784c67a28f5b92d396eaa9529d57ef91a5cb9ac
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 15:59:57 2011 -0400
+
+    [unicode] Make _get_parent() return _nil object instead of NULL
+
+ src/hb-unicode.cc   | 29 ++++++++++++-----------------
+ test/test-unicode.c | 2 +-
+ 2 files changed, 13 insertions(+), 18 deletions(-)
+
+commit 07e22779abd089d5921bf2d19d4a3bf1bd0173c6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 14:58:04 2011 -0400
+
+    [test/unicode] Add script roundtrip tests for glib and ICU
+
+ test/test-unicode.c | 70
+ ++++++++++++++++++++++++++++++++++++++++++++++++-----
+ 1 file changed, 64 insertions(+), 6 deletions(-)
+
+commit 7cda65935c73c277550f6ac12f6730e96d4852a7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 14:33:53 2011 -0400
+
+    [test/unicode] Better test chainup
+
+ test/test-unicode.c | 54
+ ++++++++++++++++++++++++++++++++++++++++++++++++-----
+ 1 file changed, 49 insertions(+), 5 deletions(-)
+
+commit 250c59225ead28449deb11522dee3819480a19b4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 14:21:30 2011 -0400
+
+    [test/unicode] Port the _custom test to test all property setters
+
+ test/test-unicode.c | 186
+ +++++++++++++++++++++++++++++-----------------------
+ 1 file changed, 104 insertions(+), 82 deletions(-)
+
+commit e74b5b339ab0af53d893ec84a0955d5aa508fed3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 14:03:55 2011 -0400
+
+    [test/unicode] Test Unicode 5.2+ but don't fail
+
+ test/test-unicode.c | 21 +++++++++++++++++++--
+ 1 file changed, 19 insertions(+), 2 deletions(-)
+
+commit c763aa42b46eaee95359806cab56fa632ff3ad58
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 13:52:17 2011 -0400
+
+    [test/buffer] Clean up testing
+
+    Getting the hang of how to cleanly use gtest.
+
+ test/test-buffer.c | 154
+ +++++++++++++++++++++++++++++------------------------
+ 1 file changed, 85 insertions(+), 69 deletions(-)
+
+commit 819e9d9e5310e67e8dcce9fa885f8a086a9b9ee8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 12:38:54 2011 -0400
+
+    Minor
+
+ test/test-unicode.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit 03034acb8a9fdd33135bc3775a1f932da9ebdd42
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 12:37:45 2011 -0400
+
+    [icu] Make sure we return script UNKNOWN instead of INVALID
+
+ src/hb-icu.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit d02985ec5a24c659a0a133cc6bc103f1d76bcb29
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 12:35:14 2011 -0400
+
+    ISO 15924 fixes
+
+    Update to http://unicode.org/iso15924
+
+    Fixes some of the test failures in test-unicode with ICU.  Still
+    one more to fix before the test passes.
+
+ src/hb-common.cc | 10 ++++++++--
+ src/hb-common.h  |  5 +++--
+ src/hb-ot-tag.cc |  2 --
+ 3 files changed, 11 insertions(+), 6 deletions(-)
+
+commit e8e29c725a72c2e991cd1c4422a020457e1684e9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 2 12:06:18 2011 -0400
+
+    [test/unicode] Add log messages
+
+    Use with --verbose to see what's failing
+
+ test/test-unicode.c | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+commit 208c2c31501f6eb2b81b6bf80fcf39f4646eb38b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 1 20:04:01 2011 -0400
+
+    Minor
+
+ test/test-unicode.c | 478
+ ++++++++++++++++++++++++++--------------------------
+ 1 file changed, 243 insertions(+), 235 deletions(-)
+
+commit 60833efaf1310c3f18e150b61daaeb0074ae3d91
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 29 16:49:57 2011 -0400
+
+    [test/unicode] Add testing of all unicode properties
+
+    ICU fails for now.
+
+ test/hb-test.h      |  4 +-
+ test/test-unicode.c | 432
+ +++++++++++++++++++++++++++++++++++++++++++++++++---
+ 2 files changed, 416 insertions(+), 20 deletions(-)
+
+commit da96ee072fa3544c3d36cf0b82ada11806789d70
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 29 12:17:09 2011 -0400
+
+    [test/unicode] Test is/make_immutable()
+
+ test/test-unicode.c | 46 ++++++++++++++++++++++++++++++----------------
+ 1 file changed, 30 insertions(+), 16 deletions(-)
+
+commit 6af9cff5e17e82100b435c8d21aed0765296d58d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 29 12:00:38 2011 -0400
+
+    [test/unicode] Use text fixture instead of static variables
+
+ src/hb-unicode-private.hh |   2 +-
+ src/hb-unicode.h         |   2 +-
+ test/test-buffer.c       |   2 +-
+ test/test-c.c            |   1 +
+ test/test-common.c       |   3 +-
+ test/test-cplusplus.cc    |   1 +
+ test/test-unicode.c      | 112
+ +++++++++++++++++++++++++++-------------------
+ 7 files changed, 74 insertions(+), 49 deletions(-)
+
+commit 13db3d40bfc09c68f9761a71435b1840b9d34099
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 28 19:44:45 2011 -0400
+
+    [test/buffer] Add UTF-16 tests
+
+ test/test-buffer.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++--
+ 1 file changed, 46 insertions(+), 2 deletions(-)
+
+commit 243673d601588a6f704ceafbff5dd5cdf66c47b7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 28 19:37:51 2011 -0400
+
+    [test/buffer] Add more extensive UTF-8 test data from glib
+
+ src/hb-buffer.cc   |  2 +-
+ test/test-buffer.c | 317
+ ++++++++++++++++++++++++++++++++++++++++++++++++++---
+ 2 files changed, 303 insertions(+), 16 deletions(-)
+
+commit dfec67f958482e5c3bb01e06b08694cd4ded6f66
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 28 18:34:42 2011 -0400
+
+    [test/buffer] Add initial utf-8 tests
+
+ test/hb-test.h     | 25 ++++++++++++++++++++++++-
+ test/test-buffer.c | 46 +++++++++++++++++++++++++++++++++++++++++++++-
+ 2 files changed, 69 insertions(+), 2 deletions(-)
+
+commit aafe395ab550d3ba2fabc69155662e87d45e74a8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 28 17:10:44 2011 -0400
+
+    Add test suite infrastructure
+
+    Wraps around glib for convenience and ease of use.
+
+ test/Makefile.am    |  1 +
+ test/hb-test.h      | 132
+ ++++++++++++++++++++++++++++++++++++++++++++++++----
+ test/test-buffer.c  | 29 ++++++------
+ test/test-common.c  | 14 +++---
+ test/test-unicode.c | 32 ++++++-------
+ 5 files changed, 160 insertions(+), 48 deletions(-)
+
+commit c7ffe2ad5f6e97e26d14e2cc0d4098af8f5f36d0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 28 16:03:29 2011 -0400
+
+    [API Remove hb_font_funcs_copy()
+
+    Will be adding font_funcs subclassing instead.
+
+ src/hb-font.cc | 13 -------------
+ src/hb-font.h |  3 ---
+ 2 files changed, 16 deletions(-)
+
+commit 30f34d08d445722320db711c3ddf41e66225752c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 28 16:02:40 2011 -0400
+
+    [TODO] Remove finished items
+
+ TODO         |  2 --
+ src/hb-font.h | 10 ----------
+ 2 files changed, 12 deletions(-)
+
+commit 080a0eb7d82d7195be72c16ece6e0a3ffed636b6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 28 16:01:01 2011 -0400
+
+    Add _hb_unsigned_int_mul_overflows
+
+ src/hb-buffer.cc                | 7 ++-----
+ src/hb-open-type-private.hh     | 2 +-
+ src/hb-ot-layout-gsub-private.hh | 2 +-
+ src/hb-private.hh               | 9 ++++++++-
+ 4 files changed, 12 insertions(+), 8 deletions(-)
+
+commit 1d39d6e42b3d7628512d675a84a831a0f58624eb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 28 15:54:16 2011 -0400
+
+    Desable possibly lethal test on 64-bit machines
+
+ test/test-buffer.c | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+commit 3264042873fd639f3ef8ff0acfad777a0a9f3355
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 28 14:24:16 2011 -0400
+
+    [test/buffer] Test pre_allocate() and allocation_successful()
+
+ src/hb-buffer.cc   |  3 ++-
+ test/test-buffer.c | 26 +++++++++++++++++++++++++-
+ 2 files changed, 27 insertions(+), 2 deletions(-)
+
+commit 123aa04f7b3241d6e43de2d472c4a1cbdb250ac7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 28 12:58:28 2011 -0400
+
+    Fix possible but improbable overflow in hb_array_t
+
+ src/hb-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit e0db4b868f9fdd8e680890f87dd4e13a1c27b7a1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 28 12:56:49 2011 -0400
+
+    [buffer] More error handling
+
+    Should be all set now.
+
+ src/hb-buffer-private.hh |  2 +-
+ src/hb-buffer.cc        | 60
+ +++++++++++++++++++++++++++++++++---------------
+ 2 files changed, 43 insertions(+), 19 deletions(-)
+
+commit 15c57e04bf05026ef424f8ae912d2f379301bf93
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 28 12:28:54 2011 -0400
+
+    [test/buffer] Add test pre_alloc(); hangs in the buffer code right now
+
+    Because the following loop overflows:
+
+      while (size > new_allocated)
+         new_allocated += (new_allocated >> 1) + 32;
+
+ test/test-buffer.c | 33 ++++++++++++++++++++++++++-------
+ 1 file changed, 26 insertions(+), 7 deletions(-)
+
+commit 1e5527e2d60ed3b4a5adf62b258415ec3aef41fb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 28 12:15:24 2011 -0400
+
+    [test/buffer] Test reset(), set_length(), and set/get_unicode_data()
+
+ test/test-buffer.c | 66
+ ++++++++++++++++++++++++++++++++++++++++++++++++------
+ 1 file changed, 59 insertions(+), 7 deletions(-)
+
+commit db126b5448ec802285cf2b6f0e7da412d02dfb28
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 28 11:56:29 2011 -0400
+
+    [test/buffer] Test reverse() and reverse_clusters()
+
+ test/test-buffer.c | 61
+ ++++++++++++++++++++++++++++++++++++++++++++++++++----
+ 1 file changed, 57 insertions(+), 4 deletions(-)
+
+commit 5fa849b77d49da2212825ebb1bea9145713b8449
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 27 21:46:01 2011 -0400
+
+    [API] Add _set/get_user_data() for all objects
+
+ src/hb-blob.cc    | 17 +++++++++++++++++
+ src/hb-blob.h    | 12 ++++++++++++
+ src/hb-buffer.cc  | 16 ++++++++++++++++
+ src/hb-buffer.h   | 10 ++++++++++
+ src/hb-font.cc    | 51
+ +++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-font.h    | 36 ++++++++++++++++++++++++++++++++++++
+ src/hb-unicode.cc | 17 +++++++++++++++++
+ src/hb-unicode.h  | 12 ++++++++++++
+ 8 files changed, 171 insertions(+)
+
+commit 852e08ec8fbfbce1d50e571d0bb0b52ef4d4cc58
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 27 21:45:51 2011 -0400
+
+    Move code around
+
+ src/hb-object-private.hh | 153
+ ++++++++++-------------------------------------
+ src/hb-private.hh       | 136 +++++++++++++++++++++++++++++++++++++----
+ 2 files changed, 157 insertions(+), 132 deletions(-)
+
+commit 29c67d3f70b081766a6c01353980f457f38aeb12
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 27 21:22:32 2011 -0400
+
+    Add initial implementation of user_data to objects
+
+ src/hb-common.h         |  11 ++-
+ src/hb-object-private.hh | 186
+ ++++++++++++++++++++++++++++++++++++++++++++++-
+ 2 files changed, 193 insertions(+), 4 deletions(-)
+
+commit 47e71d9661946a4ffb96026bf1d697d788414ab5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 27 16:38:03 2011 -0400
+
+    [object] Remove unnecessary use of macros
+
+ TODO                    |  2 --
+ src/hb-blob.cc                  | 18 +++++++++---------
+ src/hb-buffer.cc        |  6 +++---
+ src/hb-font.cc                  | 30 +++++++++++++++---------------
+ src/hb-object-private.hh |  9 ---------
+ src/hb-unicode.cc       |  8 ++++----
+ 6 files changed, 31 insertions(+), 42 deletions(-)
+
+commit 8be1420f8fd0e5c53282245d6830efbee5c7409d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 27 16:14:04 2011 -0400
+
+    [blob] Use HB_FUNC instead of __FUNCTION__
+
+ src/hb-blob.cc | 24 ++++++++++++------------
+ 1 file changed, 12 insertions(+), 12 deletions(-)
+
+commit ae008b90cfc2028e878100f78b21d70f923a6044
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 27 16:12:12 2011 -0400
+
+    [object] Add tracing support back in
+
+ src/hb-object-private.hh | 38 ++++++++++++++++++++++++++------------
+ 1 file changed, 26 insertions(+), 12 deletions(-)
+
+commit 5b7f38979fa90117861fe327477de1707f117a8c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 27 15:10:12 2011 -0400
+
+    GNOME Bug 612402 - (hb-arm) HarfBuzz compilation fix for arm
+
+    With gcc on arm, request 8-bit structure alignment.
+
+ configure.ac | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+commit 39a840ae65327b173e6eb1bb291e235a8305d7a1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 27 14:48:19 2011 -0400
+
+    [API] Add hb_direction_from/to_string()
+
+    And hb-view --direction argument.
+
+ TODO              |  1 -
+ src/hb-common.cc   | 36 ++++++++++++++++++++++++++++++++++++
+ src/hb-common.h    |  6 ++++++
+ src/hb-view.cc     | 13 ++++++++++---
+ test/test-common.c | 21 ++++++++++++++++++++-
+ 5 files changed, 72 insertions(+), 5 deletions(-)
+
+commit f1425a549fef360c3750532de23604cd318999d8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 27 12:15:06 2011 -0400
+
+    Rename hb-view.c and test.c to .cc files
+
+ src/Makefile.am |   4 +-
+ src/hb-view.c  | 540
+ --------------------------------------------------------
+ src/hb-view.cc  | 540
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/test.c     |  94 ----------
+ src/test.cc    |  97 ++++++++++
+ 5 files changed, 639 insertions(+), 636 deletions(-)
+
+commit eb5796f58897ecfb9d76fd99915bf1a30669a0fa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 27 12:14:53 2011 -0400
+
+    [TODO] Add hb-view items
+
+ TODO | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+commit 65e0063eae2f3adb25315b8bd7b0e7757aa960f3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 27 09:33:58 2011 -0400
+
+    Make buffer size growth start from 32 instead of 8
+
+ src/hb-buffer.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit d4bee9f813bb299b1c4aab7c33d588be2a7d354b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 27 09:24:37 2011 -0400
+
+    [API] Add hb_unicode_funcs_get_default()
+
+ src/hb-buffer.cc         |  4 ++--
+ src/hb-glib.cc                   |  5 +++--
+ src/hb-icu.cc            |  5 +++--
+ src/hb-unicode-private.hh | 11 +++++++++++
+ src/hb-unicode.cc        |  7 +++++++
+ src/hb-unicode.h         |  8 ++++++++
+ src/hb-view.c            | 13 ++++++-------
+ test/test-unicode.c      | 11 ++++++++++-
+ 8 files changed, 50 insertions(+), 14 deletions(-)
+
+commit 153142dac8dd9abaf164bb88af07c600c17fc3a1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 27 01:49:03 2011 -0400
+
+    Replace simple macros with inline functions for better type safety
+
+    Now that we use C++ for all source code, lets benefit from it!
+
+    The hb_be_int16/32_get/put/eq() macros grow code size if replaced with
+    inline functions, so leave them as is.
+
+ src/hb-open-type-private.hh | 4 ++--
+ src/hb-private.hh          | 30 +++++++++++++++++++++---------
+ 2 files changed, 23 insertions(+), 11 deletions(-)
+
+commit 40a9b8154f929947f4693bf90c64301afa407c3f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 27 01:48:56 2011 -0400
+
+    Add TODO item
+
+ src/hb-object-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit ebdc83467c31574daa118fc18cd2ef2dc819b503
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 27 01:41:24 2011 -0400
+
+    Don't return in void function
+
+    Would have been nice if gcc had warned...
+
+ src/hb-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ec6f9c2fd03a49d1e91cbaefa5bdbbfb35dff92e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 21 18:35:58 2011 -0400
+
+    Further simplify object handling
+
+ src/hb-object-private.hh | 53
+ ++++++++++++++++++++++++------------------------
+ 1 file changed, 27 insertions(+), 26 deletions(-)
+
+commit fca368c4682624346a0aaee690e1ad6ed4c0b337
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 21 18:24:02 2011 -0400
+
+    Add hb_object_header_t which is the common part of all objects
+
+    Makes way for adding arbitrary user_data support.
+
+ src/hb-blob-private.hh    |  3 +-
+ src/hb-blob.cc                   |  2 +-
+ src/hb-buffer-private.hh  |  9 +++--
+ src/hb-buffer.cc         |  2 +-
+ src/hb-font-private.hh    |  7 ++--
+ src/hb-font.cc                   |  7 ++--
+ src/hb-ft.cc             |  3 +-
+ src/hb-glib.cc                   |  3 +-
+ src/hb-icu.cc            |  3 +-
+ src/hb-object-private.hh  | 95
+ ++++++++++++++++++++++++++---------------------
+ src/hb-private.hh        |  5 +--
+ src/hb-unicode-private.hh |  6 ++-
+ src/hb-unicode.cc        |  3 +-
+ 13 files changed, 82 insertions(+), 66 deletions(-)
+
+commit a9f24c802956d57180d71b83e96a0fb81197df4a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 21 17:18:22 2011 -0400
+
+    Move hb_reference_count_t to hb-private.h
+
+ src/hb-object-private.hh | 17 -----------------
+ src/hb-private.hh       | 20 ++++++++++++++++++++
+ 2 files changed, 20 insertions(+), 17 deletions(-)
+
+commit 2409d5f8d7dd8b535ce5ea29e933f7db27d33793
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 21 17:14:28 2011 -0400
+
+    Update Copyright headers
+
+ COPYING                                | 15 ++++++++-------
+ src/hb-blob-private.hh                         |  2 +-
+ src/hb-blob.cc                                 |  2 +-
+ src/hb-blob.h                          |  2 +-
+ src/hb-buffer-private.hh               |  4 ++--
+ src/hb-buffer.cc                       |  6 +++---
+ src/hb-buffer.h                        |  6 +++---
+ src/hb-common.cc                       |  4 +++-
+ src/hb-common.h                        |  4 +++-
+ src/hb-font-private.hh                         |  4 +++-
+ src/hb-font.cc                                 |  2 +-
+ src/hb-font.h                          |  2 +-
+ src/hb-ft.cc                           |  4 ++--
+ src/hb-ft.h                            |  2 +-
+ src/hb-glib.cc                                 |  4 +++-
+ src/hb-glib.h                          |  4 +++-
+ src/hb-icu.cc                          |  6 ++++--
+ src/hb-icu.h                           |  4 +++-
+ src/hb-object-private.hh               |  6 ++++--
+ src/hb-open-file-private.hh            |  2 +-
+ src/hb-open-type-private.hh            |  2 +-
+ src/hb-ot-head-private.hh              |  2 +-
+ src/hb-ot-layout-common-private.hh     |  4 ++--
+ src/hb-ot-layout-gdef-private.hh       |  4 ++--
+ src/hb-ot-layout-gpos-private.hh       |  4 ++--
+ src/hb-ot-layout-gsub-private.hh       |  4 ++--
+ src/hb-ot-layout-gsubgpos-private.hh   |  4 ++--
+ src/hb-ot-layout-private.hh            |  2 +-
+ src/hb-ot-layout.cc                    |  6 +++---
+ src/hb-ot-layout.h                     |  2 +-
+ src/hb-ot-map-private.hh               |  4 ++--
+ src/hb-ot-map.cc                       |  4 ++--
+ src/hb-ot-shape-complex-arabic-table.hh |  2 +-
+ src/hb-ot-shape-complex-arabic.cc      |  2 +-
+ src/hb-ot-shape-complex-private.hh     |  2 +-
+ src/hb-ot-shape-private.hh             |  2 +-
+ src/hb-ot-shape.cc                     |  4 ++--
+ src/hb-ot-shape.h                      |  2 +-
+ src/hb-ot-tag.cc                       |  4 +++-
+ src/hb-ot-tag.h                        |  2 +-
+ src/hb-ot.h                            |  2 +-
+ src/hb-private.hh                      |  4 +++-
+ src/hb-shape.cc                        |  2 +-
+ src/hb-shape.h                                 |  2 +-
+ src/hb-unicode-private.hh              |  4 ++--
+ src/hb-unicode.cc                      |  4 ++--
+ src/hb-unicode.h                       |  4 +++-
+ src/hb-view.c                          |  4 ++--
+ src/hb.h                               |  2 +-
+ src/main.cc                            |  2 +-
+ src/test.c                             |  2 +-
+ test/hb-test.h                                 | 17 ++++++++++++++++-
+ test/test-buffer.c                     |  2 +-
+ test/test-c.c                          |  2 +-
+ test/test-common.c                     |  2 +-
+ test/test-cplusplus.cc                         |  2 +-
+ test/test-unicode.c                    |  2 +-
+ 57 files changed, 122 insertions(+), 84 deletions(-)
+
+commit 08da7a3841ca7dfcb627314cae1c3a668b9c7236
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 21 16:59:10 2011 -0400
+
+    [hb-view] Accept numbers in feature tag name
+
+    Reported by Adam Twardoch.
+
+ src/hb-view.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 24229eb13268a422efffbcb28a094b726824c7f0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 21 16:55:17 2011 -0400
+
+    Remove obsolete comment
+
+    Talking to Ryan Lortie, he thinks my comment doesn't make sense.
+
+    So I'm making the getter const.  Note that g_atomic_int_get()
+    casts that away itself, so we don't need to worry about that
+    (which kinda makes me uncomfortable actually).
+
+ src/hb-object-private.hh | 16 ++--------------
+ 1 file changed, 2 insertions(+), 14 deletions(-)
+
+commit dcb7026f33cbcdf60e9b7fcdd44c64cc08702c74
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 21 16:34:22 2011 -0400
+
+    Add ASSERT_STATIC_EXPR macro
+
+    Unused right now.
+
+ src/hb-private.hh | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 3e8bdbf9414291da5cf61213d5f4275c1ae23ae5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 21 16:16:21 2011 -0400
+
+    Cleanup hb_refrence_count_t
+
+ src/hb-object-private.hh | 23 ++++++++++++++++++-----
+ src/hb-private.hh       |  6 +++---
+ 2 files changed, 21 insertions(+), 8 deletions(-)
+
+commit 783a7d69696bf0b1502ec9c1495e482e491c78e0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 21 16:03:59 2011 -0400
+
+    [TODO] Remove finished items
+
+ TODO        | 6 +-----
+ src/hb-ft.cc | 1 -
+ 2 files changed, 1 insertion(+), 6 deletions(-)
+
+commit da975419884a535281745f30f4b32fee0bc8a7a1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 21 15:08:01 2011 -0400
+
+    [API] Allow negative font x_scale/y_scale
+
+    I was reconsidering whether y should grow down, since all three/four
+    times I've used this API I was tricked and got that wrong in my use.
+    So I was very inclined to make y grow down instead of up.  However,
+    considering that the font space has y up and it would be very
+    confusing
+    for callbacks to work against that, I decided that what I really want
+    is for the user to be able to set y_scale to a negative number
+    to imply
+    that user-space y grows down.
+
+    Changing x_scale/y_scale from unsigned int to int allows that,
+    and I've
+    made pango to use that instead of negating glyph y_offset later.
+    hb-ft
+    however still has y group up.  I *guess* that's how FreeType works?
+    I'm not sure, FreeType docs don't make this clear...
+
+    I'm happy with the resolution :-).
+
+ src/hb-font.cc                            | 8 ++++----
+ src/hb-font.h                     | 8 ++++----
+ src/hb-ot-layout-common-private.hh | 6 +-----
+ src/hb-ot-layout-private.hh       | 2 +-
+ 4 files changed, 10 insertions(+), 14 deletions(-)
+
+commit 4d559cddbb3b3a5c12c5167eba69598618a9f283
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 21 14:58:23 2011 -0400
+
+    [icu] Remove big script switch(), rely on reverse-lookup
+
+ src/hb-icu.cc | 137
+ ++++------------------------------------------------------
+ 1 file changed, 9 insertions(+), 128 deletions(-)
+
+commit d18431b4cd8c1b14523733cd60a62b862f5b471f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 18:59:10 2011 -0400
+
+    Move hb_reference_count_t from macros to inline methods
+
+ src/hb-object-private.hh | 25 +++++++++++--------------
+ 1 file changed, 11 insertions(+), 14 deletions(-)
+
+commit c57d454accff66e5f2c58006e8fb40bc020b6182
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 18:50:27 2011 -0400
+
+    Rename all private sources and headers to C++ files
+
+    So we can liberally use the simple features of C++ that parts of the
+    codebase is already using.
+
+ src/Makefile.am                        |  17 +-
+ src/hb-blob-private.h                  |  59 ---
+ src/hb-blob-private.hh                         |  59 +++
+ src/hb-blob.cc                                 |   4 +-
+ src/hb-buffer-private.hh               |   2 +-
+ src/hb-common.c                        | 222 -----------
+ src/hb-common.cc                       | 222 +++++++++++
+ src/hb-font-private.h                  |  97 -----
+ src/hb-font-private.hh                         |  97 +++++
+ src/hb-font.cc                                 |   6 +-
+ src/hb-ft.c                            | 262 ------------
+ src/hb-ft.cc                           | 262 ++++++++++++
+ src/hb-glib.cc                                 |   2 +-
+ src/hb-icu.cc                          |   2 +-
+ src/hb-object-private.h                | 134 -------
+ src/hb-object-private.hh               | 132 +++++++
+ src/hb-open-type-private.hh            |   2 +-
+ src/hb-ot-layout-gdef-private.hh       |   2 +-
+ src/hb-ot-layout-private.hh            |   4 +-
+ src/hb-ot-shape-complex-arabic-table.h  | 674
+ -------------------------------
+ src/hb-ot-shape-complex-arabic-table.hh | 674
+ +++++++++++++++++++++++++++++++
+ src/hb-ot-shape-complex-arabic.cc      |   2 +-
+ src/hb-ot-shape-complex-private.hh     |   2 +-
+ src/hb-ot-shape-private.hh             |   2 +-
+ src/hb-ot-tag.c                        | 677
+ --------------------------------
+ src/hb-ot-tag.cc                       | 677
+ ++++++++++++++++++++++++++++++++
+ src/hb-private.h                       | 301 --------------
+ src/hb-private.hh                      | 301 ++++++++++++++
+ src/hb-shape.cc                        |   2 +-
+ src/hb-unicode-private.hh              |   2 +-
+ src/hb-unicode.cc                      |   2 +-
+ src/hb-view.c                          |   6 +
+ 32 files changed, 2457 insertions(+), 2452 deletions(-)
+
+commit f19f4f9b0965ad7473a0f3a1ffcdbf16930e35d4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 18:25:56 2011 -0400
+
+    Rename hb-blob.c to hb-blob.cc in preparation of more changes
+
+ src/Makefile.am |   2 +-
+ src/hb-blob.c  | 356
+ --------------------------------------------------------
+ src/hb-blob.cc  | 356
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 357 insertions(+), 357 deletions(-)
+
+commit 04744e73bad22d679986173b5f0d84dbbf49dd57
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 17:24:03 2011 -0400
+
+    [TODO] Remove done items
+
+ TODO | 6 ------
+ 1 file changed, 6 deletions(-)
+
+commit 9417c1c0d2b005eadf0c087ca695121a6200d0f7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 17:21:23 2011 -0400
+
+    [API] Make hb_face_reference_table() return empty blob instead of NULL
+
+    The idea here is that:
+
+      - Like pretty much all other API in harfbuzz, user does not have to
+       check for NULL.
+
+      - In any caller code, the case of missing table should be handled
+       exactly the same way that a too-short table is handled.  Turning
+       a non-existent talbe into a table of size 0 makes the user code
+       safer.
+
+ src/hb-font.cc                     | 2 ++
+ src/hb-open-type-private.hh | 3 ---
+ 2 files changed, 2 insertions(+), 3 deletions(-)
+
+commit c035812feb0d385a9e8c334631738e4915912c71
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 17:03:00 2011 -0400
+
+    [API] Rename hb_face_get_table() to hb_face_reference_table()
+
+    That correctly reflects the reference ownership transfer happening.
+
+ src/hb-font.cc      | 4 ++--
+ src/hb-font.h      | 7 ++-----
+ src/hb-ot-layout.cc | 6 +++---
+ src/hb-shape.cc     | 2 +-
+ 4 files changed, 8 insertions(+), 11 deletions(-)
+
+commit 2d7b61a4b0ed212ca414b3281c2eae3e3db19c13
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 16:40:56 2011 -0400
+
+    [TODO] Remove done items
+
+ TODO       | 10 ++--------
+ src/hb-ft.h | 2 +-
+ 2 files changed, 3 insertions(+), 9 deletions(-)
+
+commit af02933739e03a156b9f7761fd7a63e2a02d0df1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 15:49:31 2011 -0400
+
+    [API] Remove hb_*_get_reference_count()
+
+    This was a bizzare piece of API that I inherited from cairo.  It has
+    been wrong adding them to cairo in the first place.  Remove them
+    before
+    someone uses them!
+
+ src/hb-blob.c          |  6 ------
+ src/hb-blob.h          |  3 ---
+ src/hb-buffer.cc       |  6 ------
+ src/hb-buffer.h        |  3 ---
+ src/hb-font.cc                 | 18 ------------------
+ src/hb-font.h          |  9 ---------
+ src/hb-object-private.h |  7 -------
+ src/hb-unicode.cc      |  6 ------
+ src/hb-unicode.h       |  3 ---
+ test/test-unicode.c    | 24 ------------------------
+ 10 files changed, 85 deletions(-)
+
+commit 440a76b630a36a7336c93e8b05d988c6407b085e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 14:20:00 2011 -0400
+
+    [OT] Fix script to ot-script-tag conversion
+
+ src/hb-ot-tag.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit a3036a3e97b14c8eb1df208aed944207f9b6cc0b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 14:13:23 2011 -0400
+
+    Minor
+
+ src/hb-view.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit fb6291d9c9224bedf207bf0077ad9f0a2690f867
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 03:15:31 2011 -0400
+
+    [test] Add test for headers included from C and C++
+
+ test/Makefile.am      | 17 +++++++++++++++++
+ test/test-c.c         | 49
+ +++++++++++++++++++++++++++++++++++++++++++++++++
+ test/test-cplusplus.cc | 29 +++++++++++++++++++++++++++++
+ 3 files changed, 95 insertions(+)
+
+commit 107a50581ccab7df7c390d5b927fdab1bbe8e713
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 03:04:56 2011 -0400
+
+    [test] Add todo items
+
+ test/test-unicode.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 5668189c12c264e8d2caf0d12dac918363ef6f80
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 03:03:32 2011 -0400
+
+    [API] font: move user_data before destroy()
+
+    This is the common convention for language binding tools.
+
+ src/hb-font-private.h |  4 ++--
+ src/hb-font.cc        | 30 +++++++++++++++---------------
+ src/hb-font.h        | 12 ++++++------
+ src/hb-ft.c          |  8 ++++----
+ 4 files changed, 27 insertions(+), 27 deletions(-)
+
+commit e5847f75fb7bd25c5db6061d8e20d61fa469f9fe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 02:59:28 2011 -0400
+
+    [API] blob: move user_data before destroy()
+
+    This is the common convention for language binding tools.
+
+ src/hb-blob-private.h |  2 +-
+ src/hb-blob.c        | 16 ++++++++--------
+ src/hb-blob.h        |  4 ++--
+ 3 files changed, 11 insertions(+), 11 deletions(-)
+
+commit 1fd73b594d611624ccb73f614c61298debf48994
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 02:56:39 2011 -0400
+
+    [test] Rename test-types to test-common
+
+ test/Makefile.am   |  2 +-
+ test/test-common.c | 166
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ test/test-types.c  | 166
+ -----------------------------------------------------
+ 3 files changed, 167 insertions(+), 167 deletions(-)
+
+commit f144a8ea840c6452c1fece2fd988b42a8ea7c5a6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 02:54:42 2011 -0400
+
+    [icu] Add two-way script conversion functions
+
+    Also optimizes the common-direction script lookup.
+
+ src/hb-common.c   |   5 +-
+ src/hb-icu.cc    | 205
+ +++++++++++++++++++++++++++++-------------------------
+ src/hb-icu.h     |   9 +++
+ test/test-types.c |   2 +-
+ 4 files changed, 124 insertions(+), 97 deletions(-)
+
+commit 0809aadd4bbd5d0f256407def7cc10b79772a824
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 02:44:29 2011 -0400
+
+    [glib] Add two-way script conversion functions
+
+    Also optimizes the common-direction script lookup to be an array
+    lookup.
+
+ src/hb-glib.cc | 270
+ ++++++++++++++++++++++++++++++---------------------------
+ src/hb-glib.h |   8 ++
+ 2 files changed, 148 insertions(+), 130 deletions(-)
+
+commit 5c8c1b680c4fa23c8574b9aebd21113e276f57a3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 02:29:22 2011 -0400
+
+    Remove verbose comments
+
+ src/hb-glib.cc | 194 ++++++++++++++++++++---------------------
+ src/hb-icu.cc | 266
+ ++++++++++++++++++++++++++++-----------------------------
+ 2 files changed, 230 insertions(+), 230 deletions(-)
+
+commit fb194b8794898f51eb596fa4092c26606889d376
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 02:00:47 2011 -0400
+
+    unicode: Cleanup implementation
+
+ src/Makefile.am          |   8 +-
+ src/hb-buffer-private.hh  |   2 +-
+ src/hb-glib.c            | 230 -------------------------------------
+ src/hb-glib.cc                   | 231 +++++++++++++++++++++++++++++++++++++
+ src/hb-icu.c             | 285
+ ----------------------------------------------
+ src/hb-icu.cc            | 285
+ ++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-ot-shape.cc       |  14 +--
+ src/hb-shape.cc          |   4 +-
+ src/hb-unicode-private.h  |  77 -------------
+ src/hb-unicode-private.hh |  96 ++++++++++++++++
+ src/hb-unicode.c         | 256 -----------------------------------------
+ src/hb-unicode.cc        | 223 ++++++++++++++++++++++++++++++++++++
+ src/hb-unicode.h         |  57 +++++-----
+ test/test-unicode.c      |  23 ++--
+ 14 files changed, 892 insertions(+), 899 deletions(-)
+
+commit ecfb773829a5d98a4f5456a992f3e5ecd6731435
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 20 01:34:51 2011 -0400
+
+    Cosmetic
+
+ src/hb-unicode.h | 22 +++++++++-------------
+ 1 file changed, 9 insertions(+), 13 deletions(-)
+
+commit 2fd0c577e322ccbf762927bc4600b3ea31db4c80
+Author: Ryan Lortie <desrt@desrt.ca>
+Date:  Wed Apr 20 00:19:20 2011 -0400
+
+    [API] unicode: rework virtual functions for subclassing
+
+    Unicode data providers can now be subclassed, including support for
+    chain-up.  The interface should now be nicely bindable, as well.
+
+    Also fix glib unicode funcs that where broken after hb_script_t
+    changes.  Nicely caught by the test-unicode.c added in this commit.
+
+ src/hb-glib.c           | 186 ++++++++++++++++++++++++++++++++++++--
+ src/hb-icu.c            |  45 +++++++--
+ src/hb-ot-shape.cc      |   9 +-
+ src/hb-shape.cc         |   2 +-
+ src/hb-unicode-private.h |  17 ++++
+ src/hb-unicode.c        | 231
+ +++++++++++++++++++++++++----------------------
+ src/hb-unicode.h        |  68 +++++++-------
+ test/Makefile.am        |   1 +
+ test/test-unicode.c     | 215
+ +++++++++++++++++++++++++++++++++++++++++++
+ 9 files changed, 610 insertions(+), 164 deletions(-)
+
+commit f85faee9b3cb841ea977403945e2c877ab32b97a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 19 00:38:01 2011 -0400
+
+    [API] Rename hb_buffer_add_glyph() to hb_buffer_add()
+
+ src/hb-buffer.cc   | 10 +++++-----
+ src/hb-buffer.h    |  8 ++++----
+ test/test-buffer.c |  2 +-
+ 3 files changed, 10 insertions(+), 10 deletions(-)
+
+commit aab0de50e23727b69fa8c3d4e05c50c114c62835
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 19 00:32:19 2011 -0400
+
+    [API] Add hb_buffer_allocation_successful()
+
+    Returns the error status of the buffer.
+
+ src/hb-buffer.cc   | 6 ++++++
+ src/hb-buffer.h    | 6 ++++++
+ test/test-buffer.c | 2 +-
+ 3 files changed, 13 insertions(+), 1 deletion(-)
+
+commit 02a534b23f2d1e7475109563b9f61221ed020e8b
+Author: Ryan Lortie <desrt@desrt.ca>
+Date:  Fri Apr 15 18:34:45 2011 -0400
+
+    [API] Rename hb_buffer_ensure() to hb_buffer_pre_allocate()
+
+    The new name is self-documenting.
+
+ src/hb-buffer.cc | 4 ++--
+ src/hb-buffer.h  | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+commit 70566befc59cfa8b9c43ac682749c40ea783b1dd
+Author: Ryan Lortie <desrt@desrt.ca>
+Date:  Fri Apr 15 18:32:36 2011 -0400
+
+    [API} hb_buffer_get_glyph_{infos,positions}: Add length out parameter
+
+    Return the length, whenever we return an array.  Makes it easier
+    on the
+    language bindings.
+
+ src/hb-buffer.cc                | 12 ++++++++++--
+ src/hb-buffer.h                 |  6 ++++--
+ src/hb-ot-layout-gpos-private.hh |  4 ++--
+ src/hb-view.c                   |  4 ++--
+ test/test-buffer.c              |  7 ++-----
+ 5 files changed, 20 insertions(+), 13 deletions(-)
+
+commit 62879eebd9965179af8602ba29ac0a64a739b757
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 18 23:40:21 2011 -0400
+
+    [API] Use ISO 15924 tags for hb_script_t
+
+    This simplifies the code, reduces static data, and makes the design
+    more extensible to future additions of new scripts.
+
+ src/hb-common.c                   | 411
+ ++++---------------------------------
+ src/hb-common.h                   | 199 +++++++++---------
+ src/hb-ot-map.cc                  |   4 +-
+ src/hb-ot-shape-complex-private.hh |  3 +-
+ src/hb-ot-tag.c                   | 228 +++++++++-----------
+ src/hb-ot-tag.h                   |   6 +-
+ src/hb-shape.cc                   |   4 +-
+ test/test-types.c                 |   2 +-
+ 8 files changed, 252 insertions(+), 605 deletions(-)
+
+commit c0af193c8e25c4f11d23b8893e9ce1c2d2615bb2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 15 19:26:24 2011 -0400
+
+    Change buffer default properties to invalid
+
+    This includes HB_DIRECTION_INVALID and HB_SCRIPT_INVALID.
+
+    The INVALID will cause a "guess whatever from the text" in hb_shape().
+    While it's not ideal, it works better than the previous defaults at
+    least (HB_DIRECTION_LTR and HB_SCRIPT_COMMON).
+
+ src/hb-buffer-private.hh |  9 +++------
+ src/hb-buffer.cc        | 24 ++++++++++++++++--------
+ src/hb-view.c           |  6 ++----
+ test/test-buffer.c      |  4 ++--
+ 4 files changed, 23 insertions(+), 20 deletions(-)
+
+commit 00bec2c969555e76c3f84650a1d3c45308e585ad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 15 19:16:54 2011 -0400
+
+    Move enum types to hb-common.h
+
+ src/hb-common.c  | 406
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-common.h  | 170 +++++++++++++++++++++++
+ src/hb-unicode.c | 406
+ -------------------------------------------------------
+ src/hb-unicode.h | 166 -----------------------
+ 4 files changed, 576 insertions(+), 572 deletions(-)
+
+commit 5dd4609f4da5674966a0169d9fa533ac5bc9f464
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 15 19:16:34 2011 -0400
+
+    [TODO] Add new item
+
+ TODO | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit b54cd07b2623b68171e00179a9dc3ecbea7aa6a1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 15 19:12:01 2011 -0400
+
+    Mark internal buffer variables private
+
+ src/hb-buffer.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 0e8d35c0932ddc20ebf430f2fd82c087da698954
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 15 19:07:10 2011 -0400
+
+    Add hb_script_from_string()
+
+ src/hb-unicode.c | 6 ++++++
+ src/hb-unicode.h | 4 ++++
+ src/hb-view.c   | 2 +-
+ 3 files changed, 11 insertions(+), 1 deletion(-)
+
+commit 8f0d7e0c3fd4b05c43ac449be4f374dc2dc56127
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 15 18:59:56 2011 -0400
+
+    Remove hb_buffer_clear_positions(), add hb_ot_layout_position_start()
+
+ src/hb-buffer-private.hh |  6 +++++-
+ src/hb-buffer.cc        | 24 ++++++++++++------------
+ src/hb-buffer.h         |  5 +----
+ src/hb-ot-layout.cc     |  6 ++++++
+ src/hb-ot-layout.h      |  4 ++++
+ src/hb-ot-shape.cc      |  2 +-
+ 6 files changed, 29 insertions(+), 18 deletions(-)
+
+commit 2fc56edff6d64f190271454ccb1b5fd347d4f172
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 15 18:35:08 2011 -0400
+
+    [API] Remove hb_buffer_clear()
+
+    One should use hb_buffer_reset() really.
+
+ src/hb-buffer.cc   | 16 +++++-----------
+ src/hb-buffer.h    |  4 ----
+ test/test-buffer.c |  4 ----
+ 3 files changed, 5 insertions(+), 19 deletions(-)
+
+commit 7f5bdc80541cdc90aa1acafba5e9e0bd2df53ff4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 15 18:34:55 2011 -0400
+
+    [TODO] Remove done items
+
+ TODO | 4 ----
+ 1 file changed, 4 deletions(-)
+
+commit 5814dfa3f5aa41bc3df06b78980d57d7bea0ba58
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 15 14:41:04 2011 -0400
+
+    Cosmetic
+
+ src/hb-ot-shape.cc | 14 +++++++-------
+ src/hb-ot-shape.h  |  4 ++--
+ src/hb-shape.cc    | 20 ++++++++++----------
+ src/hb-shape.h     | 10 +++++-----
+ 4 files changed, 24 insertions(+), 24 deletions(-)
+
+commit cfbfeb88a6ec059ea97a6624e63cfacc642b685a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 15 12:40:40 2011 -0400
+
+    [TODO] Remove done items
+
+ TODO | 4 ----
+ 1 file changed, 4 deletions(-)
+
+commit 3cbdf70e0a92f1c24e16c0d4dcfbec4ac59a77a3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 15 12:32:06 2011 -0400
+
+    Make hb_language_t typesafe
+
+ src/hb-common.c | 18 +++++++++++-------
+ src/hb-common.h |  2 +-
+ 2 files changed, 12 insertions(+), 8 deletions(-)
+
+commit 2f2f448af35c232d18888c0e57cb21c9796ba7a8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 15 11:45:14 2011 -0400
+
+    [test] Add more TODO items
+
+ test/test-buffer.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit c910bec863215f918c659f58debbc7fe5264d7b6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 13 15:49:06 2011 -0400
+
+    Add hb_buffer_reset() and hb_buffer_set_length()
+
+ src/hb-buffer.cc | 31 +++++++++++++++++++++++++++++++
+ src/hb-buffer.h  | 15 ++++++++++++++-
+ 2 files changed, 45 insertions(+), 1 deletion(-)
+
+commit 69ea23cb5d47dd1cfd3129f68375021ef79bf63b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 13 15:02:40 2011 -0400
+
+    Minor
+
+ src/hb-buffer.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 7dea908cd582c8c25555015940065c69c1e7e65b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 13 01:35:58 2011 -0400
+
+    [test] Add todo items
+
+ test/test-buffer.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit 07cbaac07d7f43437b171e9275430b5fb3097716
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 13 01:11:19 2011 -0400
+
+    [TODO] Add item re script iso15924 functions
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit d0f53fdbead15d9003b521b8ed47d02fd29a4c64
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 13 01:09:09 2011 -0400
+
+    [test] Test hb-buffer.h
+
+ test/Makefile.am   |  8 ++-
+ test/test-buffer.c | 195
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 202 insertions(+), 1 deletion(-)
+
+commit 72d89404c2837d578f5305456c817130b6a15c73
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 13 01:07:42 2011 -0400
+
+    [TODO] Add item re hb_buffer_reset()
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 5015c12dfb4de8525325178ae6def9e80fd83669
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 13 01:06:02 2011 -0400
+
+    [TODO] Add item re hb_buffer_resize()
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 9329ec92078d0e2d7bb04f683e0c6a582aab92f7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 13 00:06:23 2011 -0400
+
+    [TODO] Add API item
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 4744379efc6063d94e15ff99381a7ab8b88ee567
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 19:47:33 2011 -0400
+
+    Minor
+
+ test/test-types.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 9385caa8a693df0f06a511a71de9aa407637097c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 19:43:51 2011 -0400
+
+    [test] Actually hook up hb_script_t tests
+
+    I really shall find a way to automate the test enumeration.  Otherwise
+    it's too easy to add a test and wrongly hook it up.  Did it twice
+    today.
+
+ test/test-types.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 8e4bb3cacc269ed32187aaaeaa166c64f41a0418
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 17:55:58 2011 -0400
+
+    Fold hb-language.[ch] into hb-common.[ch]
+
+ src/Makefile.am   |   2 -
+ src/hb-buffer.h   |   1 -
+ src/hb-common.c   |  92 ++++++++++++++++++++++++++++++++++++++++-
+ src/hb-common.h   |  42 +++++++++++++------
+ src/hb-language.c | 120
+ ------------------------------------------------------
+ src/hb-language.h |  46 ---------------------
+ src/hb-ot-tag.h   |   1 -
+ src/hb.h         |   1 -
+ 8 files changed, 120 insertions(+), 185 deletions(-)
+
+commit 09125576ca745b3393f3dc49071df891400bbdc9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 17:49:33 2011 -0400
+
+    [test] Test hb_language_t
+
+ test/test-types.c | 26 +++++++++++++++++++++++++-
+ 1 file changed, 25 insertions(+), 1 deletion(-)
+
+commit 316b7a1afb84a5dfeaed886a585669b4d549c9b7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 17:49:10 2011 -0400
+
+    Make hb_language_from_string("") return NULL language
+
+ src/hb-language.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit db60c96f20426111ffa71e9802ef6e248f8b28d0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 16:17:02 2011 -0400
+
+    [teset] Test hb_script_t
+
+ test/hb-test.h    |  8 ++++++++
+ test/test-types.c | 35 ++++++++++++++++++++++++++++++++++-
+ 2 files changed, 42 insertions(+), 1 deletion(-)
+
+commit 99b74760a4cddc798ab44b5ca897486bbb9c76d6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 15:47:40 2011 -0400
+
+    Rename hb_category_t to hb_unicode_general_category_t
+
+ src/hb-glib.c                    |  2 +-
+ src/hb-icu.c                     | 64
+ ++++++++++++++++++-------------------
+ src/hb-ot-shape-complex-arabic.cc |  8 ++---
+ src/hb-ot-shape-private.hh       |  2 +-
+ src/hb-ot-shape.cc               |  2 +-
+ src/hb-unicode.c                 |  4 +--
+ src/hb-unicode.h                 | 66
+ +++++++++++++++++++--------------------
+ 7 files changed, 74 insertions(+), 74 deletions(-)
+
+commit 4188096a7722f09ffa9319986c0286071da10a27
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 14:58:28 2011 -0400
+
+    Make HB_TAG_CHAR4 private
+
+    It's just sugar.
+
+ src/hb-common.h   | 5 +----
+ src/hb-private.h  | 7 ++++++-
+ test/test-types.c | 2 --
+ 3 files changed, 7 insertions(+), 7 deletions(-)
+
+commit 7ff7401c9237cda661869c1cb196d685706ac4e9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 13:27:30 2011 -0400
+
+    Make hb_tag_from_string(NULL) return HB_TAG_NONE
+
+ src/hb-common.c   | 3 +++
+ test/test-types.c | 3 +++
+ 2 files changed, 6 insertions(+)
+
+commit 02f6e62d6cabc7808c188daef26a1fe7ac626b1f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 13:27:21 2011 -0400
+
+    Build fix
+
+ test/Makefile.am | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit db5227c40e5c35fe2ffb750f32b639cb44424a1d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 13:16:08 2011 -0400
+
+    Move macros around
+
+ src/hb-ot-tag.c  | 6 ++----
+ src/hb-private.h | 7 +++++++
+ 2 files changed, 9 insertions(+), 4 deletions(-)
+
+commit 07233581c9d953708d3c020907c42b8b89472b89
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 13:12:37 2011 -0400
+
+    Rename HB_TAG_STR() to HB_TAG_CHAR4()
+
+    The problem with HB_TAG_STR() was that it expected a string of size 4
+    exactly, and unlike hb_tag_from_string() it doesn't pad the tag with
+    space characters.  So, the new name is more appropriate.
+
+ src/hb-common.c   | 2 +-
+ src/hb-common.h   | 8 ++++----
+ src/hb-ot-tag.c   | 2 +-
+ test/test-types.c | 2 +-
+ 4 files changed, 7 insertions(+), 7 deletions(-)
+
+commit 9faa980067f802f712c2adf8263152ed40c98088
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 12:46:49 2011 -0400
+
+    Add an in-tree test suite
+
+    Uses the glib testing framework.  Wrote unit tests for hb-common.h
+    types.
+
+ Makefile.am       |   2 +-
+ test/Makefile.am   |  18 +++++++++
+ test/Makefile.decl |  90 ++++++++++++++++++++++++++++++++++++++++++++
+ test/hb-test.h     |  67 +++++++++++++++++++++++++++++++++
+ test/test-types.c  | 108
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 5 files changed, 284 insertions(+), 1 deletion(-)
+
+commit d77b76200efbaa0611691920f9f2018b1e8be340
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 12:29:52 2011 -0400
+
+    Add few more paratheses to the HB_TAG macro
+
+    Never hurts.
+
+ src/hb-common.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b13640de6992de9ee9d07e3581c33b8181b70ff9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 12:29:31 2011 -0400
+
+    A few more ASSERTs
+
+ src/hb-private.h | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit ae9eeaff9300f3bb7bed588c5478e8e5461b3df0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 11:49:08 2011 -0400
+
+    Remove warning message from public header file
+
+    Since we now assert thos in hb-private.h, the int types cannot
+    be wrong.
+    (Except for when someone else includes hb-common.h in a very broken
+    configuration, but that's not our problem!)
+
+    Plus, we don't use inline in the public headers, so remove that too.
+
+ src/hb-common.h  | 7 -------
+ src/hb-private.h | 4 ++++
+ 2 files changed, 4 insertions(+), 7 deletions(-)
+
+commit 6fd5364bdc3a2b459175377e9e16c86cff054232
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 11 11:47:14 2011 -0400
+
+    Assert int types
+
+ src/hb-private.h | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+
+commit bbdeff59646e5502b9fc53ab1761b3f014ee276c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 7 16:05:07 2011 -0400
+
+    Add test directory
+
+ configure.ac    | 1 +
+ test/Makefile.am | 0
+ 2 files changed, 1 insertion(+)
+
+commit 4accc92afc702177ea53280d977cec839af3c12c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 7 15:53:26 2011 -0400
+
+    Update TODO items
+
+ TODO | 31 ++++++++++++++++++++-----------
+ 1 file changed, 20 insertions(+), 11 deletions(-)
+
+commit a71b9c8579d73aea4549f12524bbc2e89f43b5c5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 6 14:04:56 2011 -0400
+
+    Disable 'cswh' by default except for Arabic shaper
+
+    That better matches OpenType spec. Note that we enable it for all
+    Arabic-shaper scripts.  Ie. we enable it by default for Syriac too,
+    but the SyriacOT spec does not require it. I think this is a more
+    useful compromise than special-casing for Arabic script alone.
+
+ src/hb-ot-shape-complex-arabic.cc | 3 +++
+ src/hb-ot-shape.cc               | 1 -
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+commit cab6f65bba560ac1651d9152f1ecf12eb88eca74
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 4 15:36:51 2011 -0400
+
+    [hb-view] setlocale (LC_ALL, "")
+
+    For now we don't use anything from the locale, but we should default
+    to using $LANG, etc, if --language is not specified.  Right?
+
+ src/hb-view.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit fb9ca1bfabde7da0c274e7a1bd12bffaf7949c18
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 4 14:50:09 2011 -0400
+
+    [hb-view] Rewrite --features parsing, with range support
+
+    The --features parsing handles errors now. More importantly, it
+    allos limiting individual features to specific byte ranges.  The
+    format is Python-esque.  Here is how it all works:
+
+      Syntax:  Value:  Start:  End:
+
+    Setting value:
+      "kern"   1       0       ∞     # Turn feature on
+      "+kern"  1       0       ∞     # Turn feature off
+      "-kern"  0       0       ∞     # Turn feature off
+      "kern=0" 0       0       ∞     # Turn feature off
+      "kern=1" 1       0       ∞     # Turn feature on
+      "kern=2" 2       0       ∞     # Choose 2nd alternate
+
+    Setting index:
+      "kern[]" 1       0       ∞     # Turn feature on
+      "kern[:]" 1      0       ∞     # Turn feature on
+      "kern[5:]"       1       5       ∞     # Turn feature on, partial
+      "kern[:5]"       1       0       5       # Turn feature on, partial
+      "kern[3:5]"      1       3       5       # Turn feature on, range
+      "kern[3]" 1      3       3+1     # Turn feature on, single char
+
+    Mixing it all:
+
+      "kern[3:5]=0"    1       3       5       # Turn feature off
+      for range
+
+ src/hb-view.c | 169
+ +++++++++++++++++++++++++++++++++++++++++++++-------------
+ 1 file changed, 132 insertions(+), 37 deletions(-)
+
+commit ccc6745afaa68ce7497a6cd02ce85986d3c863d0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 4 14:49:50 2011 -0400
+
+    [hb-view] Use cached hb-ft face creation
+
+    Avoids recreating the face the second time we call draw().
+
+ src/hb-view.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 1b4a2cc095d165dc573e0235f00fbbf2a5d3c2c5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 4 14:45:28 2011 -0400
+
+    [hb-view] Add --debug
+
+    Frees all allocated memory before exiting. Useful for valgrind run.
+
+ src/hb-view.c | 17 +++++++++++++++++
+ 1 file changed, 17 insertions(+)
+
+commit b2da26d1e32a012f7feaad7c7cced61e4fb269f1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 1 15:48:43 2011 -0400
+
+    [hb-view] Support --features
+
+    Accepts values like:
+
+      --features="-mkmk,aalt=2,calt=1,+cswh"
+
+    A minus sign means "=0", a plus sign means "=1".  Default is "=1".
+    A minus sign overrides an explicit value.
+
+ src/hb-view.c | 70
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
+ 1 file changed, 68 insertions(+), 2 deletions(-)
+
+commit f48ff19b629070d13cee3c0eeeb06c98992f93c6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 1 14:19:10 2011 -0400
+
+    Sort options for clarity
+
+ src/hb-view.c | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+commit 5d91c3d547f78163b36aa7436d4388a836cca94a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 16 17:36:32 2011 -0300
+
+    Add script to/from ISO 15924 tag support
+
+    Also adds --script support to hb-view.
+
+    If a script tag is not known to us, we pass the ISO 15924 tag around.
+    Right now, the OT layer ignores that, but we can fix it to blindly
+    convert that to an OT script tag.
+
+ src/hb-ot-tag.c  |   4 +
+ src/hb-unicode.c | 273
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-unicode.h |   8 +-
+ src/hb-view.c   |  10 +-
+ 4 files changed, 293 insertions(+), 2 deletions(-)
+
+commit 3286fc0e9adc3f2874c9409e7fdb09e4d2b7dda1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 16 14:53:32 2011 -0300
+
+    Let hb_shape() guess script and direction...
+
+    - Rename HB_SCRIPT_INVALID_CODE to HB_SCRIPT_INVALID
+
+    - Add HB_DIRECTION_INVALID
+
+    - Make hb_script_get_horizontal_direction() public
+
+    - Make hb_shape() guess script from buffer text (first non-common
+      non-inherit script) if buffer script is set to HB_SCRIPT_INVALID
+      (this
+      is NOT the default.)
+
+    - Make hb_shape() guess direction from buffer script if buffer
+    direction
+    is set to HB_DIRECTION_INVALID (this is NOT the default.)
+
+    - Make hb-view.c set INVALID script and direction on the buffer.
+
+    The above changes are meant to make hb-view fairly useful for
+    uni-script
+    uni-direction text.  The guessing behavior however is NOT the
+    default of
+    hb_shape() and must be asked for explicitly.  This is intended,
+    because
+    the guess is not a suitable substitute to full-fledged bidi and script
+    segmentation.  It's just a testing tool.
+
+ src/hb-common.h         |  3 ++-
+ src/hb-icu.c            |  2 +-
+ src/hb-ot-shape.cc      |  3 ++-
+ src/hb-shape.cc         | 52
+ ++++++++++++++++++++++++++++++++++++++++++------
+ src/hb-unicode-private.h |  4 ----
+ src/hb-unicode.c        |  2 +-
+ src/hb-unicode.h        |  8 +++++++-
+ src/hb-view.c           |  4 ++--
+ 8 files changed, 61 insertions(+), 17 deletions(-)
+
+commit b7b29684df67af7280b74ca4cf18f02ad6521bdc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 2 01:01:03 2011 -0500
+
+    [hb-view] Handle write_to_png errors
+
+ src/hb-view.c | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+commit c2cb98c8185c5560cfd04de7ee7c64c9496b986c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Mar 1 23:18:09 2011 -0500
+
+    [hb-view] Link with -lm
+
+ src/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b5dd44e24669cd35affcd92788d39ff56cac94db
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 28 10:13:52 2011 -0800
+
+    Fix possible overflow
+
+ src/hb-buffer.cc | 12 ++++++++++--
+ 1 file changed, 10 insertions(+), 2 deletions(-)
+
+commit a4b781e93a0bee0549611e129b3564d9804d9090
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 23 12:47:56 2011 -0500
+
+    Default background color shall either be white or transparent
+
+    Definitely not black!
+
+ src/hb-view.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 5353bf439c150492708ef9337078cfd73b83627b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 22 18:06:19 2011 -0500
+
+    Add initial hb-view tool
+
+    Currently doesn't handle script or direction.
+
+ configure.ac   |  18 +++
+ src/Makefile.am |  14 +++
+ src/hb-view.c  | 342
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 374 insertions(+)
+
+commit 82438c6ad5f60b6afc75c48cef72e18bef532468
+Author: Bradley Grainger <bgrainger@logos.com>
+Date:  Tue Feb 15 18:37:29 2011 -0500
+
+    Fix #pragma message for MSVC.
+
+    __LOC__ was renamed to _HB__LOC__ in cd7555 but the corresponding
+    change wasn't made in hb-private.h.
+
+ src/hb-private.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ba9ab8d6d9c863662c4b44ace4a4d89e29e592f2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 10 07:45:41 2011 -0500
+
+    Fix language extension matching
+
+ src/hb-ot-tag.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit a07874300a669ec0ea09a67df2a3ee8b0612d6b9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 10 02:27:49 2011 -0500
+
+    Don't use the m4/ dir
+
+    We just require people to have libtool, pkg-config, etc installed
+    when running autogen.sh
+
+ Makefile.am  | 2 --
+ configure.ac | 1 -
+ 2 files changed, 3 deletions(-)
+
+commit 7bbe14bed8a886ea5b293c927c4bf937cbfc6f51
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jan 9 22:29:14 2011 -0500
+
+    Fix 'make distcheck'
+
+ src/Makefile.am | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+commit 2abe1264a580858bf7803af1701117a462375fb4
+Author: Javier Jardón <jjardon@gnome.org>
+Date:  Sun Jan 9 22:18:53 2011 -0500
+
+    Bug 31174 - Update autotools configuration
+
+ Makefile.am  |   2 +
+ autogen.sh   | 188
+ ++++-------------------------------------------------------
+ configure.ac |  22 +++++--
+ 3 files changed, 29 insertions(+), 183 deletions(-)
+
+commit cc1a8a938b4c13e76b58825a9e1951c4134e634a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 6 14:58:52 2011 -0500
+
+    Fix ChanContext backtrack matching with GPOS
+
+    Reported on mailing list by Keith Stribley and Khaled Hosny.
+
+ src/hb-buffer-private.hh            | 5 +++--
+ src/hb-buffer.cc                    | 2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 6 +++---
+ 3 files changed, 7 insertions(+), 6 deletions(-)
+
+commit 1c3183027fe823cd673866ba29d169b69f8efba1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 6 14:44:14 2011 -0500
+
+    Remove unused realloc
+
+    We always allocate and grow str and pos together.
+
+ src/hb-buffer.cc | 6 ------
+ 1 file changed, 6 deletions(-)
+
+commit 76691f0240d6de230e9b42280b54e91639464635
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 6 14:16:59 2011 -0500
+
+    Fix ICU detection
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 756f794a1fce701092345a3f9afae039583fb55b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 26 20:52:40 2010 -0500
+
+    Remove Graphite backend
+
+    It was unmaintained and the code has to be replaced to use the new
+    grphite-ng code base.
+
+ configure.ac      |   6 --
+ src/Makefile.am    |  14 ---
+ src/hb-graphite.cc | 310
+ -----------------------------------------------------
+ src/hb-graphite.h  |  47 --------
+ 4 files changed, 377 deletions(-)
+
+commit f3d9d9879364609502d9d3a3a9f4647adb167d78
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 22 01:39:29 2010 -0500
+
+    Docs
+
+ src/hb-unicode.h | 60
+ ++++++++++++++++++++++++++++----------------------------
+ 1 file changed, 30 insertions(+), 30 deletions(-)
+
+commit d86a5b3c5752abcc791724035ba4115958e6b5e2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 21 18:36:25 2010 -0500
+
+    Bug 32274 - classic mongolian shaper
+
+    Add support for classic Mongolian script to the Arabic shaper.
+
+    Still work to be done around U+180E MONGOLIAN VOWEL SEPARATOR as it
+    should not be included in the final glyph stream the same way that
+    ZWNJ, etc should not appear in the final glyph stream.
+
+    But the joining part should be done.
+
+    There remains the question of how should the U+18A9 MONGOLIAN
+    LETTER ALI
+    GALI DAGALGA be handled as it has General Category NSM but a letter
+    nonetheless.  For now, our generic logic makes this a joining
+    T instead
+    of joining D as other Mongolian letters are.
+
+ src/hb-ot-shape-complex-arabic.cc  | 8 ++++++++
+ src/hb-ot-shape-complex-private.hh | 1 +
+ 2 files changed, 9 insertions(+)
+
+commit b0e7378fa9a4fc6fc74d9b3c27d927602eaacc5b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 21 14:19:32 2010 -0500
+
+    Reroute Mandaic shaping through the Arabic shaper
+
+    We added Mandaic joining data to the Arabic shaper a while ago, but
+    were not actually using the Arabic shaper for Mandaic.  Fixed.
+
+ src/hb-ot-shape-complex-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 88e7f37488e4e8590619d815b975232a0c9d2ea0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 21 14:18:24 2010 -0500
+
+    Annotate the Arabic joining table with block information
+
+ src/gen-arabic-joining-table.py       | 93
+ +++++++++++++++++++++-------------
+ src/hb-ot-shape-complex-arabic-table.h | 24 +++++++--
+ 2 files changed, 80 insertions(+), 37 deletions(-)
+
+commit 1482a39e56cd4151874e5c073540274349240a87
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Dec 17 20:15:05 2010 -0500
+
+    Rename remaining metrics uses to extents
+
+ src/hb-font.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 22c537657cee1f47a4056a21e2cddfcbe6ab1c01
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 14 23:51:29 2010 -0500
+
+    Rename TableDirectory to TableRecord as per OpenType 1.6
+
+ src/hb-open-file-private.hh | 18 +++++++++---------
+ 1 file changed, 9 insertions(+), 9 deletions(-)
+
+commit 33e8b86197239e667a887709104357bdc6566b7c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 13 15:54:56 2010 -0500
+
+    Update 'head' table to OpenType 1.6
+
+ src/hb-ot-head-private.hh | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+commit b7683335146bfe3a74d9419db92cd7a8019a9c10
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 13 14:22:35 2010 -0500
+
+    Disallow ligature substitutions replacing one glyph
+
+ src/hb-ot-layout-gsub-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 7eb875118dc31e9fb0e23c45985396a8bfe977e3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 13 14:13:35 2010 -0500
+
+    Mozilla Bug 618592 - freeze on typekit
+
+    Fix apply_lookup() for zero-input broken fonts.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit bbbbe80ec9bc45c5b685bc09c8f993e98496555c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 7 16:22:02 2010 -0500
+
+    Rename original_direction to target_direction
+
+ src/hb-ot-shape-private.hh | 2 +-
+ src/hb-ot-shape.cc        | 6 +++---
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+commit ee8aaf976a6eb42be49b63b4c51c7a0a338e0298
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 7 16:20:42 2010 -0500
+
+    Fix arabic shaping of LTR text
+
+    We should ensure-direction before doing any complex work.  The only
+    exception is mirroring that needs to see the original / final
+    direction,
+    not the native.  Handle that.
+
+ src/hb-ot-shape.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit d1f1707adc03317760b0f75e04d0f3dd425e547f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 30 00:57:15 2010 -0500
+
+    Bug 31965 - some GNU/Linux distributions lack icu.pc but have
+    icu-config
+
+    Patch from suzuki toshiya.
+
+ configure.ac | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+commit 3c48982be6b2286088541ee55cac78b0f2b6e771
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Nov 28 19:39:47 2010 -0500
+
+    Adjust pyx files to reflect change from int to hb_var_int_t
+
+    Patch from Thomas Hunger.
+
+ contrib/python/lib/harfbuzz.pyx | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+commit 4f9e4a40bc248aeb1364ed6f4aa7f392aa364497
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 22 11:30:32 2010 -0500
+
+    Fix failing checks
+
+ src/hb-ot-shape-complex-arabic-table.h | 37
+ ++++++++++++++++++++++++++++++++++
+ 1 file changed, 37 insertions(+)
+
+commit 9da26d6669e7f3b91ba37e71f6f8a6e2ea806688
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 22 11:03:18 2010 -0500
+
+    Remove email address from Copyright headers
+
+ COPYING      | 2 +-
+ src/hb-ft.c  | 2 +-
+ src/hb-icu.c | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+commit a45f00019242734fca742adeb2ed507305baeda6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 18 13:58:32 2010 -0500
+
+    Clarify copyright notice
+
+ COPYING                | 12 ++++++++++++
+ README                         |  4 ++--
+ src/hb-graphite.cc     |  4 ++--
+ src/hb-object-private.h |  2 +-
+ 4 files changed, 17 insertions(+), 5 deletions(-)
+
+commit 0884a8d9cd576f116400b3f7c8815e747c315d5e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 17 16:58:21 2010 -0500
+
+    Move generated table to its own file
+
+ src/Makefile.am                       |   1 +
+ src/hb-ot-shape-complex-arabic-table.h | 619
+ ++++++++++++++++++++++++++++++++
+ src/hb-ot-shape-complex-arabic.cc     | 621
+ +--------------------------------
+ 3 files changed, 621 insertions(+), 620 deletions(-)
+
+commit 14d784116b08685425e4ddcb1c1f813dbe2b2986
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 17 16:52:58 2010 -0500
+
+    Update Arabic joining table to include Mandaic
+
+    Mandaic was added to Unicode 6.0, but the joining data was not
+    updated.
+    Draft ArabicShaping.txt from 6.1 includes the joining data for
+    Mandaic.
+    Use that.
+
+ src/gen-arabic-joining-table.py   |  45 ++++++++++----
+ src/hb-ot-shape-complex-arabic.cc | 123
+ ++++++++++++++++++++++++++++++++------
+ 2 files changed, 137 insertions(+), 31 deletions(-)
+
+commit 43bf2f7f1ec427c431e2ee2fd1a9345e7d5c9718
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 17 14:49:40 2010 -0500
+
+    Add OpenType script tags for Unicode 5.2 and Unicode 6.0 scripts
+
+    Based on tags proposed by Microsoft for inclusion in OpenType.
+
+ src/hb-ot-tag.c | 34 +++++++++++++++++-----------------
+ 1 file changed, 17 insertions(+), 17 deletions(-)
+
+commit afab01cf7caca79cf6dfabe6827d1703be1a74f7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 17 14:35:34 2010 -0500
+
+    Add Unicode 6.0 scripts
+
+ src/hb-icu.c    | 6 ++++++
+ src/hb-ot-tag.c  | 7 ++++++-
+ src/hb-unicode.c | 7 ++++++-
+ src/hb-unicode.h | 7 ++++++-
+ 4 files changed, 24 insertions(+), 3 deletions(-)
+
+commit f234b68d18d956f7e4eb4bf58d6dc408d9e5146e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 17 14:25:44 2010 -0500
+
+    Change HB_SCRIPT_MEITEI_MAYEK to HB_SCRIPT_MEETEI_MAYEK
+
+    The new name matches the Unicode name.  Reported by Jonathan Kew.
+
+ src/hb-icu.c    | 2 +-
+ src/hb-ot-tag.c  | 2 +-
+ src/hb-unicode.h | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+commit 3ca9a6d1cffe950b325e1d522b20d4a645ae448e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 17 13:08:47 2010 -0500
+
+    Add TODO item
+
+ TODO | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 300cb41417d40473268e3b4089bed24e9e77a753
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 17 12:57:23 2010 -0500
+
+    Add XXX marks
+
+ src/hb-ot-layout-gsubgpos-private.hh | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit ea00aee9f94ae8c6cf03d620254817d5e1f51d64
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 5 10:51:37 2010 -0400
+
+    Add TODO item
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 3a852ae7fe6edfaadd75625d27515a3689503395
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 3 16:37:24 2010 -0400
+
+    Save general category and combining class in the buffer for reuse
+
+ src/hb-ot-layout-private.hh      |  3 ++-
+ src/hb-ot-shape-complex-arabic.cc | 16 ++++++++++------
+ src/hb-ot-shape-private.hh       |  6 ++++++
+ src/hb-ot-shape.cc               | 26 +++++++++++++++++++++-----
+ 4 files changed, 39 insertions(+), 12 deletions(-)
+
+commit a5ab682b9ba8224fc132624f93e6fef9973a68ca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 3 15:50:36 2010 -0400
+
+    More "unreached code" warning fixes
+
+    Ugly :(.
+
+ src/hb-blob.c | 48 ++++++++++++++++++++++++------------------------
+ 1 file changed, 24 insertions(+), 24 deletions(-)
+
+commit 4e22c7e94102c9f00c32b8cb6aaa832f83909149
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 3 15:47:12 2010 -0400
+
+    Add comment
+
+ src/hb-ot-layout-common-private.hh | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 0342034d1cb577d34b42f7204da7fb930c12a464
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 3 15:40:07 2010 -0400
+
+    Pedantic
+
+ src/hb-ot-layout-gpos-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4a2d844c2f12dc1b858ab4ddd737ded7c0852221
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 3 15:28:56 2010 -0400
+
+    Minor code shuffling
+
+ src/hb-ot-layout-private.hh | 21 +++-------------
+ src/hb-ot-layout.cc        | 61
+ +++++++++++++++++++++++++++++++++------------
+ 2 files changed, 48 insertions(+), 34 deletions(-)
+
+commit 11e3ec444a85fc72541823c2e98cc92c4ceb19af
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 3 15:11:04 2010 -0400
+
+    Fix a few more "unreachable code" warnings
+
+ src/hb-blob.c                       |  2 +-
+ src/hb-object-private.h             | 12 +++---
+ src/hb-open-type-private.hh         | 84
+ +++++++++++++++++-------------------
+ src/hb-ot-layout-gsubgpos-private.hh |  2 +-
+ src/hb-private.h                    |  3 +-
+ 5 files changed, 49 insertions(+), 54 deletions(-)
+
+commit 2304856340782c72cb30873f7907191dc359e921
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 3 12:46:58 2010 -0400
+
+    Remove another couple lines of dead code
+
+ src/hb-ot-layout-gsubgpos-private.hh | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit b8783c85ac5dd9ea8f5a66eacb92dfcfbf649a6d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 3 11:50:21 2010 -0400
+
+    Fix unreachable-code warning
+
+ src/hb-ot-layout-gpos-private.hh | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit c2709119c8c610a0d4d71884a7d4fdba7cb65b72
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 23:18:51 2010 -0400
+
+    Move things around some more
+
+ src/hb-ot-layout-gpos-private.hh     | 8 ++++----
+ src/hb-ot-layout-gsub-private.hh     | 4 ++--
+ src/hb-ot-layout-gsubgpos-private.hh | 9 +++++++--
+ src/hb-ot-layout-private.hh         | 7 +++----
+ src/hb-ot-layout.cc                 | 6 +++---
+ 5 files changed, 19 insertions(+), 15 deletions(-)
+
+commit 194d4566ec054db03fa31d369a9f1c6cf4941e74
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 23:09:10 2010 -0400
+
+    Move buffer var allocation local
+
+ src/hb-ot-layout-gpos-private.hh | 19 ++++++++++++++-----
+ src/hb-ot-layout-private.hh     |  2 --
+ 2 files changed, 14 insertions(+), 7 deletions(-)
+
+commit 1e7c1fcbc33599faefc32d4a28e5d8506d2c56fa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 22:48:31 2010 -0400
+
+    Move code around
+
+ src/hb-ot-layout-gpos-private.hh | 59
+ ++++++++++++++++++++++++++++++++++++++++
+ src/hb-ot-layout.cc             | 59
+ ++--------------------------------------
+ src/hb-ot-layout.h              |  4 +--
+ src/hb-ot-shape.cc              |  2 +-
+ 4 files changed, 63 insertions(+), 61 deletions(-)
+
+commit bf94b3ad22b2fe4730d4e64d673c63154fc5b5fe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 22:37:59 2010 -0400
+
+    Move some more code around
+
+ src/hb-ot-layout-gdef-private.hh | 21 +++++++++++++++
+ src/hb-ot-layout-private.hh     | 27 ++++++++++++++++---
+ src/hb-ot-layout.cc             | 56
+ ++++++----------------------------------
+ 3 files changed, 52 insertions(+), 52 deletions(-)
+
+commit 6334658fe79d6acfb46a2a147721b78f92510ebb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 22:11:32 2010 -0400
+
+    Simplify mark skipping logic
+
+ src/hb-ot-layout.cc | 17 +++--------------
+ 1 file changed, 3 insertions(+), 14 deletions(-)
+
+commit 8c69e65abed961002d90024c92e18538c6516262
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 22:07:49 2010 -0400
+
+    Rename lookup_flags to lookup_props since it's more than just flags
+
+ src/hb-ot-layout-common-private.hh   |  6 +++++-
+ src/hb-ot-layout-gpos-private.hh     | 14 +++++++-------
+ src/hb-ot-layout-gsub-private.hh     |  8 ++++----
+ src/hb-ot-layout-gsubgpos-private.hh | 10 +++++-----
+ src/hb-ot-layout-private.hh         |  4 ++--
+ src/hb-ot-layout.cc                 | 36
+ ++++++++++++++++++------------------
+ src/main.cc                         |  4 ++--
+ 7 files changed, 43 insertions(+), 39 deletions(-)
+
+commit 98370e89d1bff248737b482d129c2a4deb8bfd95
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 17:39:01 2010 -0400
+
+    WIP removing external synthesized GDEF support and implementing
+    it internally
+
+ TODO                                |   2 -
+ src/hb-buffer-private.hh            |   4 -
+ src/hb-buffer.cc                    |   3 -
+ src/hb-ot-layout-common-private.hh   |   8 +-
+ src/hb-ot-layout-gdef-private.hh     |   6 +-
+ src/hb-ot-layout-gpos-private.hh     |   4 +-
+ src/hb-ot-layout-gsub-private.hh     |  66 ++++++-----------
+ src/hb-ot-layout-gsubgpos-private.hh |  29 +++++++-
+ src/hb-ot-layout-private.hh         |  29 +++-----
+ src/hb-ot-layout.cc                 | 138
+ +++++------------------------------
+ src/hb-ot-layout.h                  |  26 -------
+ src/hb-ot-shape.cc                  |  10 +++
+ 12 files changed, 98 insertions(+), 227 deletions(-)
+
+commit 870e2d6eac01d004c72a925ea93e6823251d5fa2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 17:37:20 2010 -0400
+
+    Remove unused function
+
+ src/hb-buffer-private.hh | 10 ----------
+ src/hb-buffer.cc        | 27 ---------------------------
+ 2 files changed, 37 deletions(-)
+
+commit 1115890b90709fa5329a55d22f543020f3df9f6f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 17:07:04 2010 -0400
+
+    More cleanup
+
+ src/hb-buffer-private.hh    | 5 +----
+ src/hb-ot-layout-private.hh | 6 ++++++
+ 2 files changed, 7 insertions(+), 4 deletions(-)
+
+commit dbf56b1d94910f04823e53e39ace1e5145bddc04
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 17:06:12 2010 -0400
+
+    More lig-id cleanup
+
+ src/hb-buffer-private.hh        | 4 ++--
+ src/hb-buffer.cc                | 2 +-
+ src/hb-ot-layout-gsub-private.hh | 8 +++++++-
+ 3 files changed, 10 insertions(+), 4 deletions(-)
+
+commit f6a23a0b9171958f76c1d0473b09fc08d2b3a0d0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 17:01:03 2010 -0400
+
+    More removal of lig-id code from buffer
+
+ src/hb-buffer.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit dd2ffd282c059194fd87fb1664e2e0cdb56a87a0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 16:57:01 2010 -0400
+
+    Minor renaming
+
+ src/hb-buffer-private.hh        | 41
+ ++++++++++++++++++++--------------------
+ src/hb-buffer.cc                | 20 ++++++++++----------
+ src/hb-ot-layout-gsub-private.hh |  8 ++++----
+ src/hb-ot-shape.cc              |  6 +++---
+ 4 files changed, 37 insertions(+), 38 deletions(-)
+
+commit fe263272a2b26204bc39829a94d90ab537517f3f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 16:51:02 2010 -0400
+
+    Move setting lig_id/component out of buffer and to the gsub code
+
+ src/hb-buffer-private.hh        | 30 +++++++----------------
+ src/hb-buffer.cc                | 52
+ +++++++---------------------------------
+ src/hb-ot-layout-gsub-private.hh | 27 ++++++++++++---------
+ 3 files changed, 34 insertions(+), 75 deletions(-)
+
+commit 2e2b2480c01c788ea702d78ca830c2bb659654a8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 16:25:28 2010 -0400
+
+    Always allocate new ligature id
+
+    No practical point in reusing ligature ids.
+
+ src/hb-ot-layout-gsub-private.hh | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+commit bf07d5a29c61baf6fd683289c7764f487ad7e413
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 16:19:13 2010 -0400
+
+    Set component=0 for ligature glyph
+
+ src/hb-ot-layout-gsub-private.hh | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit 37ab877149582c7ce7416425bb402340e3f948a2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 15:38:06 2010 -0400
+
+    Remove comment
+
+ src/hb-buffer.cc | 20 --------------------
+ 1 file changed, 20 deletions(-)
+
+commit 88474c6fdaf35c56368694a5b164f4988a004d49
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 14:42:15 2010 -0400
+
+    Get rid of the OpenType-specific internal buffer representation
+
+    Add variant integers to buffer item types. More cleanup coming.
+
+ TODO                             |  2 --
+ src/hb-buffer-private.hh         | 35 ++++++----------------
+ src/hb-buffer.cc                 | 62
+ +++++++++++++++++++--------------------
+ src/hb-buffer.h                  |  2 +-
+ src/hb-ot-layout-gpos-private.hh  | 24 +++++++--------
+ src/hb-ot-layout-gsub-private.hh  |  2 +-
+ src/hb-ot-layout-private.hh      |  4 +--
+ src/hb-ot-layout.cc              | 39 ++++++++++++------------
+ src/hb-ot-shape-complex-arabic.cc |  8 ++---
+ 9 files changed, 79 insertions(+), 99 deletions(-)
+
+commit 6cb8c3493019e1497921666fc268cb81943f9f1f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 14:27:03 2010 -0400
+
+    Add hb_var_int_t
+
+ src/hb-buffer.h |  6 +++---
+ src/hb-common.h | 10 ++++++++++
+ 2 files changed, 13 insertions(+), 3 deletions(-)
+
+commit f22802431a983bd4bc60a7653b1103973c3475cb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 2 19:12:37 2010 -0400
+
+    Remove trailing comma
+
+ src/hb-ot-shape-complex-arabic.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 13528d0c78cadb1f67267c9a692558caef9fdaa6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 14:09:27 2010 -0400
+
+    Supposedly implement vertical support in GPOS
+
+    Not tested at all.
+
+ src/hb-ot-layout-gpos-private.hh | 27 ++++++++++++++++++++-------
+ src/hb-ot-layout.cc             | 39
+ ++++++++++++++++++++++++---------------
+ 2 files changed, 44 insertions(+), 22 deletions(-)
+
+commit 9624de5b496846cd89ee4f7b07d38029aca70ce1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 13:44:59 2010 -0400
+
+    Clarify cursive_chain (and change its sign)
+
+ src/hb-ot-layout-gpos-private.hh |  4 ++--
+ src/hb-ot-layout.cc             | 13 +++++++------
+ 2 files changed, 9 insertions(+), 8 deletions(-)
+
+commit d6c9eadb88240c40b3cb9a33f067e575cbc2f729
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 12:34:50 2010 -0400
+
+    Remove more pointless LONGTERMTODO items
+
+ src/hb-ot-layout-common-private.hh | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit e204674fe340a57c48a9fe7e1ed02a9a08f4aca4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 12:32:02 2010 -0400
+
+    Rename hb_ot_layout_get_lig_carets() to
+    hb_ot_layout_get_ligature_carets()
+
+ src/hb-ot-layout.cc | 14 +++++++-------
+ src/hb-ot-layout.h  | 14 +++++++-------
+ 2 files changed, 14 insertions(+), 14 deletions(-)
+
+commit 3357d145f81cb7b746c910018fe3a0dfab00972c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 12:30:46 2010 -0400
+
+    Implement vertical support in get_lig_carets()
+
+ src/hb-ot-layout-gdef-private.hh | 34 ++++++++++++++++++----------------
+ src/hb-ot-layout.cc             |  3 ++-
+ src/hb-ot-layout.h              |  1 +
+ 3 files changed, 21 insertions(+), 17 deletions(-)
+
+commit 8eeed7eddc789151cbffe62ed6bfd77612266bf1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 12:07:49 2010 -0400
+
+    Remove LONGTERMTODO item that I'll never fix
+
+ src/hb-ot-layout-gsubgpos-private.hh | 6 ------
+ 1 file changed, 6 deletions(-)
+
+commit 184a5279c64f37bc2ceefbe2191bb64ca87f88d8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 12:00:49 2010 -0400
+
+    Remove unused macro
+
+ src/hb-ot-layout-gpos-private.hh | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit af5d02a269d55331300df1e382241893928d64e0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 11:54:26 2010 -0400
+
+    Rewrite Cursive joining to act more like other pair lookups
+
+    Look forward for next character instead of joining to the last
+    character.
+
+ src/hb-ot-layout-gpos-private.hh | 71
+ ++++++++++++++++++----------------------
+ src/hb-ot-layout-private.hh     | 10 ------
+ 2 files changed, 31 insertions(+), 50 deletions(-)
+
+commit ea22c749c7371cf66ca44f0bfe7030aef1926edd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 11:09:48 2010 -0400
+
+    Fix Cursive positioning
+
+    Test case: "مرا" rendered using IranNastaliq.
+
+ src/hb-ot-layout-gpos-private.hh | 124
+ +--------------------------------------
+ 1 file changed, 3 insertions(+), 121 deletions(-)
+
+commit aefdb64689aab19df76590a36c4a04052a8bffdb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 10:40:39 2010 -0400
+
+    Fix segfault with Arabic combining marks
+
+ src/hb-ot-shape-complex-arabic.cc | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit 12b2d09a87adc1e1aac089cd2e09a68fb7129829
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 01:28:28 2010 -0400
+
+    Remove obsolete TODO item
+
+    We don't cache any metrics internally, so the correct way to add more
+    glyph metrics items is to add new callbacks for them.  We already have
+    separeate callbacks for advance vs extents.
+
+ TODO | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 248e3c2ba47889c247959e44166644872aed59ba
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 01:23:14 2010 -0400
+
+    Oops, remove extra mask setting that broke complex shaping
+
+ src/hb-ot-shape.cc | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 502f4cba3e0bcd625d31f8fd295b8b18e2d02a5a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 27 01:13:56 2010 -0400
+
+    Divide get_metrics into get_advance and get_extents
+
+    Graphite module not updated.
+    Bump version to 0.3.
+
+ configure.ac         |  2 +-
+ src/hb-font-private.h |  3 +-
+ src/hb-font.cc        | 96
+ +++++++++++++++++++++++++++++++++++----------------
+ src/hb-font.h        | 61 ++++++++++++++++++++------------
+ src/hb-ft.c          | 72 +++++++++++++++++++++++---------------
+ src/hb-ot-shape.cc    |  7 ++--
+ 6 files changed, 154 insertions(+), 87 deletions(-)
+
+commit ec6c0e54d322d58cbc835feb58dcec7ede6ab744
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 26 11:28:14 2010 -0400
+
+    Fix blob leak
+
+ src/hb-font.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit bd7378b2ef9793de4e7f57b920f29f48ac9d0c25
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 13 18:33:16 2010 -0400
+
+    Massage mask setting a bit more
+
+    Still finding the exact correct way the masks should be set.
+
+ src/hb-buffer-private.hh | 19 ++++++++++++++++---
+ src/hb-buffer.cc        |  9 +++++++++
+ src/hb-ot-shape.cc      |  6 ++++--
+ 3 files changed, 29 insertions(+), 5 deletions(-)
+
+commit 961f9baa7bc3556f1e4e7135859cebe1351f73a4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 13 17:17:00 2010 -0400
+
+    Oops, actually set global mask
+
+ src/hb-buffer.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 39dede9ffffe732f78cbd092ccb3b48d77ddd66d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 13 15:54:06 2010 -0400
+
+    Make sure boolean features always use value=1
+
+    Previously boolean features turned on the entire feature mask.
+    This is
+    wrong if feature is Alternate and user has provided values bigger
+    than one.
+    Though, I don't think other engines support such corner cases.
+
+ src/hb-ot-map-private.hh         | 10 ++++++++--
+ src/hb-ot-map.cc                 |  3 ++-
+ src/hb-ot-shape-complex-arabic.cc |  2 +-
+ src/hb-ot-shape.cc               |  2 +-
+ 4 files changed, 12 insertions(+), 5 deletions(-)
+
+commit 3506b2e78db27e7835bd2c09c053a9807c9cac40
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 13 15:38:52 2010 -0400
+
+    Return early if mask is 0
+
+ src/hb-buffer.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 5c1c8c9c50ddbe66ea595afb245a208b7775b27c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 13 15:36:38 2010 -0400
+
+    Make sure feature values don't leak out of their mask
+
+ src/hb-buffer.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 852912fc2db06b6183a2dc87c45ec1b563063572
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 13 15:34:50 2010 -0400
+
+    Fix applying default-value for features
+
+    Previously if a default global feature was overrided by a non-global
+    user feature, we were not setting any default mask for the feature,
+    essentially disabling the feature by default.  Fix that.
+
+ TODO                    |  2 --
+ src/hb-ot-map-private.hh | 10 ++++++----
+ src/hb-ot-map.cc        | 13 +++++++------
+ 3 files changed, 13 insertions(+), 12 deletions(-)
+
+commit 2989be4919242670c94825bded96db20a7b2035b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 13 15:18:29 2010 -0400
+
+    Set user masks after complex masks
+
+ src/hb-ot-shape.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit a7820b7b15a809b4a1a4077147ceed7bea528483
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 13 14:20:48 2010 -0400
+
+    Add TODO item
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 04a3023a66203d94b77f2d7a8d6bcdedf067e155
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 13 10:57:27 2010 -0400
+
+    Cleanup TODO
+
+    Looks like a roadmap now.
+
+ TODO | 72
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------
+ 1 file changed, 59 insertions(+), 13 deletions(-)
+
+commit 3111b8a0d5b38da57c0f6285aec2b92eb690188f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 13 10:41:53 2010 -0400
+
+    Fix stupid bug, oops
+
+ src/hb-font.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 3703f88b74707113e782eb6ca9a77603561760d0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 12 18:34:20 2010 -0400
+
+    Step the version up to 0.2 now that Arabic shaper is in
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 758f68b860b44b5a04eb3dde5cb40b1b04cf634a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 12 17:37:44 2010 -0400
+
+    Fix Arabic shaper
+
+    It's tested now.  It works!
+
+ src/hb-ot-shape-complex-arabic.cc | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+commit 13403bc67a01e0d4908fb964093fd02ddd11c580
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 12 17:23:54 2010 -0400
+
+    Hookup Arabic shaper!
+
+    Not tested yet.
+
+ src/hb-ot-shape-complex-arabic.cc  |  6 +++---
+ src/hb-ot-shape-complex-private.hh | 37
+ ++++++++++++++++++++++---------------
+ src/hb-ot-shape-private.hh        | 14 +++++++++++++-
+ src/hb-ot-shape.cc                |  3 ++-
+ 4 files changed, 40 insertions(+), 20 deletions(-)
+
+commit 57ac0ecb7843533b2e6e6d6c8a12b2a44437cc1c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 12 17:07:02 2010 -0400
+
+    Merge clearing masks and setting global masks
+
+ src/hb-buffer-private.hh | 11 ++++++-----
+ src/hb-buffer.cc        |  5 +++--
+ src/hb-ot-map.cc        |  2 +-
+ src/hb-ot-shape.cc      |  7 ++-----
+ 4 files changed, 12 insertions(+), 13 deletions(-)
+
+commit fc96596b7c1c4e62491e951a3c256fb00dcde550
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 12 17:00:25 2010 -0400
+
+    Form clusters before setting masks
+
+ src/hb-ot-shape.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 1e80782244cdb1dedae9d1e61079d0508e57ca72
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 12 17:00:07 2010 -0400
+
+    Clear masks before setting them up, not after!
+
+ src/hb-ot-shape.cc | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+commit fd3d32d31cb6d74a9994b6850d539fd0b707d941
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 12 16:57:47 2010 -0400
+
+    Add hb_ot_shape_execute()
+
+    Not public yet.
+
+ src/hb-ot-shape-private.hh |  5 ++---
+ src/hb-ot-shape.cc        | 19 ++++++++++++++-----
+ 2 files changed, 16 insertions(+), 8 deletions(-)
+
+commit 49baa1f69efb0e3c62e45bd59dd88459a84bf390
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 12 16:50:36 2010 -0400
+
+    Add hb_ot_complex_shaper_t stuff and start hooking Arabic shaper up
+
+ src/Makefile.am                   |   3 +-
+ src/hb-ot-map-private.hh          |   2 +-
+ src/hb-ot-map.cc                  |   2 +-
+ src/hb-ot-shape-arabic.cc         | 706
+ ------------------------------------
+ src/hb-ot-shape-complex-arabic.cc  | 715
+ +++++++++++++++++++++++++++++++++++++
+ src/hb-ot-shape-complex-private.hh |  88 +++++
+ src/hb-ot-shape-private.hh        |  12 +-
+ src/hb-ot-shape.cc                |   8 +-
+ 8 files changed, 813 insertions(+), 723 deletions(-)
+
+commit 605ed468f380f86d642031f6451447d270cb6de1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 12 16:19:29 2010 -0400
+
+    Add hb_ot_shape_plan_t
+
+    This is the object that a separate plan/execute shaping API will
+    use in
+    between the two stages.
+
+ src/hb-ot-shape-private.hh | 12 ++++++++++--
+ src/hb-ot-shape.cc        | 38 ++++++++++++++++++--------------------
+ 2 files changed, 28 insertions(+), 22 deletions(-)
+
+commit 895fb5d364e7ae5d9d2e34b9f68b8651804369ef
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 12 16:00:21 2010 -0400
+
+    Refactor, in a different direction
+
+ src/hb-ot-map-private.hh   | 15 ++++++++-------
+ src/hb-ot-map.cc          | 23 ++++++++++++-----------
+ src/hb-ot-shape-private.hh | 13 +------------
+ src/hb-ot-shape.cc        | 33 +++++++++++++++++----------------
+ 4 files changed, 38 insertions(+), 46 deletions(-)
+
+commit d2ba016ca1ba7489537768b619980d5159b5870c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 12 15:35:45 2010 -0400
+
+    More refactoring
+
+ src/hb-ot-map-private.hh   | 32 +++++---------------------------
+ src/hb-ot-map.cc          | 32 +++++++++++++++++++++++++++++---
+ src/hb-ot-shape-private.hh | 16 ++++++++++++++--
+ src/hb-ot-shape.cc        | 43
+ ++++++++++++++++++++++++++++---------------
+ src/hb-ot-shape.h         | 10 +++++-----
+ 5 files changed, 81 insertions(+), 52 deletions(-)
+
+commit 66e487dfbfdccd0c4be8cd11661d412ca27c3425
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 12 13:51:19 2010 -0400
+
+    Update Arabic shaping table to Unicode 6.0.0.
+
+ src/hb-ot-shape-arabic.cc | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit f4792d99eee0e8cd72b7cb01c96a09f16e2a72ce
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 12 12:32:18 2010 -0400
+
+    Fix infinite loop!
+
+    Untested code is indeed buggy code.
+
+    Mozilla bug #603352.
+
+ src/hb-ot-tag.c | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+commit 993d1e786a32612b796dae8309ce402a4121bec7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 12 11:17:30 2010 -0400
+
+    Fix missing negation in unreachable code!
+
+    Mozilla bug #603346
+
+ src/hb-open-type-private.hh | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+commit 52601275d5e4000dada4f925fb78723eeeee7bd4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 8 20:38:46 2010 -0400
+
+    More separation
+
+ src/hb-ot-shape.cc | 14 +++++---------
+ 1 file changed, 5 insertions(+), 9 deletions(-)
+
+commit 6b7e6758626268ba1c7c266128e618ec73ae2c0f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 8 20:30:04 2010 -0400
+
+    Minor
+
+ src/hb-ot-shape.cc | 22 +++++++++++-----------
+ 1 file changed, 11 insertions(+), 11 deletions(-)
+
+commit aa9c450bb2d7c3c9e36ea32e3558250391a0582d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 8 20:27:38 2010 -0400
+
+    Enable 'rtlm' mirroring
+
+ src/hb-ot-map-private.hh |  9 +++++----
+ src/hb-ot-shape.cc      | 30 +++++++++++++++---------------
+ 2 files changed, 20 insertions(+), 19 deletions(-)
+
+commit 36925f695d349a53d52ecc3a58f18240a6977463
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 8 20:20:32 2010 -0400
+
+    Rename hb_mask_allocator_t to hb_ot_map_t
+
+    hb_ot_plan_t may be a better name, donno.
+
+ src/hb-ot-map-private.hh   |  4 ++--
+ src/hb-ot-map.cc          |  2 +-
+ src/hb-ot-shape-private.hh |  4 ++--
+ src/hb-ot-shape.cc        | 49
+ +++++++++++++++++++++-------------------------
+ 4 files changed, 27 insertions(+), 32 deletions(-)
+
+commit f5dd3be46b5c77a2c5b97b82a0b67ac9e851b898
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 8 20:16:23 2010 -0400
+
+    Improve checks
+
+ src/check-c-linkage-decls.sh | 2 +-
+ src/check-header-guards.sh   | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit 5a2b0b3878cd9c62121bb4fd6344e102a9ee1825
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 8 20:14:57 2010 -0400
+
+    Add hb-ot-map.cc
+
+ src/Makefile.am         |   1 +
+ src/hb-ot-map-private.hh | 129 +-----------------------------------
+ src/hb-ot-map.cc        | 165
+ +++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 168 insertions(+), 127 deletions(-)
+
+commit ecc4550ed7bc900a61081edfbcd0ad09cbf29b36
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 8 20:05:29 2010 -0400
+
+    Fix feature overriding
+
+ src/hb-ot-map-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 8f08c3275040870a645ef034a38d30c05c619f21
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 8 19:43:48 2010 -0400
+
+    Minor cleanup
+
+ src/hb-open-type-private.hh | 8 ++----
+ src/hb-ot-map-private.hh    | 61
+ +++++++++++++--------------------------------
+ src/hb-ot-tag.c            | 11 ++++----
+ src/hb-private.h           |  4 +++
+ 4 files changed, 28 insertions(+), 56 deletions(-)
+
+commit a806762a314e83154793d96ee665e6668d6b56de
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 8 19:18:40 2010 -0400
+
+    Add hb-ot-shape-private.hh
+
+ src/Makefile.am           |  1 +
+ src/hb-ot-shape-arabic.cc  |  2 +-
+ src/hb-ot-shape-private.hh | 60
+ ++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 62 insertions(+), 1 deletion(-)
+
+commit 4924affe0f0adf75f2a0e2137a71206b0576d63f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 8 19:18:16 2010 -0400
+
+    Add hb-ot-map-private.hh
+
+ src/Makefile.am         |   1 +
+ src/hb-ot-map-private.hh | 307
+ +++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-ot-shape.cc      | 274 ++----------------------------------------
+ 3 files changed, 315 insertions(+), 267 deletions(-)
+
+commit a7c5046d6b676a32298b97403a49235f7f255161
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 8 18:47:47 2010 -0400
+
+    Add private hb_segment_properties_t
+
+ src/hb-buffer-private.hh | 14 ++++++++------
+ 1 file changed, 8 insertions(+), 6 deletions(-)
+
+commit b897c607d91d569f4eaa681d1f5b3d9f3d2bb093
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 8 18:41:57 2010 -0400
+
+    Flip the OT bit-allocation vs gsub/gpos inside-out
+
+    We now build our entire attack plan before jumping in.
+
+ src/hb-ot-shape.cc | 333
+ ++++++++++++++++++++++++++++-------------------------
+ 1 file changed, 176 insertions(+), 157 deletions(-)
+
+commit e89b7d2a61b7f58e6c7cec00d5ce2246dee1e8a1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 8 12:29:59 2010 -0400
+
+    Logically separate feature collection
+
+ src/hb-ot-shape.cc | 29 ++++++++++++++++++-----------
+ 1 file changed, 18 insertions(+), 11 deletions(-)
+
+commit 5b88908f12ad1d828dd6075fb8fc0036c2d6af3a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 8 12:23:01 2010 -0400
+
+    Minor
+
+ src/hb-ot-shape.cc | 18 ++++++------------
+ 1 file changed, 6 insertions(+), 12 deletions(-)
+
+commit 5360ce0c5c33f921b3f9ad3f42529a19df5ad0fe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 7 21:21:11 2010 -0400
+
+    Move some more code around
+
+ src/hb-ot-shape.cc | 27 +++++++++++++--------------
+ 1 file changed, 13 insertions(+), 14 deletions(-)
+
+commit d9c726078828d50db62e05407a3f38f2e7607533
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 7 21:19:54 2010 -0400
+
+    Minor
+
+ src/hb-ot-shape.cc | 18 +++++++++---------
+ 1 file changed, 9 insertions(+), 9 deletions(-)
+
+commit efe0d682e860ffd23a1d17c68c8273f17d51c1c9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 7 21:12:46 2010 -0400
+
+    Simplify compiling lookups
+
+ src/hb-ot-shape.cc | 66
+ ++++++++++++++++++++++--------------------------------
+ 1 file changed, 27 insertions(+), 39 deletions(-)
+
+commit 476c94218b4f5b8e119e82b0e10b641e0c10bf56
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 7 17:47:33 2010 -0400
+
+    Rename
+
+ src/hb-ot-shape.cc | 18 ++++++++++--------
+ 1 file changed, 10 insertions(+), 8 deletions(-)
+
+commit 34db6f031d7ac009f554386ef990bad44886b9ee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 7 01:21:19 2010 -0400
+
+    Add XXX note
+
+ src/hb-buffer.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 98aa3f65446496dc250d9b01d98cacfdf1157e06
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 6 00:23:36 2010 -0400
+
+    Call hb_ot_shape_setup_lookups_complex()
+
+ src/hb-ot-shape.cc | 10 +++++++++-
+ 1 file changed, 9 insertions(+), 1 deletion(-)
+
+commit f1d07885dc358e79c237e824c94b3320c0a9c17d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 6 00:21:37 2010 -0400
+
+    Rename setup_lookups()
+
+ src/hb-ot-shape.cc | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit affc5abac7bdae51df85856a5478d34d96fda4fe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Oct 6 00:18:16 2010 -0400
+
+    Move table_tag to hb_ot_shape_context_t
+
+ src/hb-ot-shape.cc | 31 +++++++++++++++++--------------
+ 1 file changed, 17 insertions(+), 14 deletions(-)
+
+commit 967240dd8b96802345ef273e75427066e91ea8fb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 5 23:00:05 2010 -0400
+
+    Add internal hb_ot_shape_context_t
+
+ src/hb-ot-shape-arabic.cc |  26 ++---
+ src/hb-ot-shape.cc       | 237
+ +++++++++++++++++++---------------------------
+ 2 files changed, 108 insertions(+), 155 deletions(-)
+
+commit 3eb936f1539475098f39be78654b9c39b86f0799
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 5 18:36:58 2010 -0400
+
+    Add Arabic/Syriac/N'ko shaping logic
+
+    Not hooked up just yet.
+
+ src/Makefile.am                |   9 +
+ src/gen-arabic-joining-table.py |  39 +++
+ src/hb-ot-shape-arabic.cc      | 716
+ ++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 764 insertions(+)
+
+commit 0109816b50064a314389333ff64aaf22cb4b1e56
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Oct 5 18:36:45 2010 -0400
+
+    Update build system
+
+ autogen.sh   | 3 ---
+ configure.ac | 1 +
+ 2 files changed, 1 insertion(+), 3 deletions(-)
+
+commit e81d7afe6e0e9dd26025f3243a11cf0b408a8046
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 4 18:18:48 2010 -0400
+
+    Add hb_face_get_upem()
+
+ src/hb-font.cc | 6 ++++++
+ src/hb-font.h | 3 +++
+ 2 files changed, 9 insertions(+)
+
+commit d47f79db92fa45d51cd5f7845db8a206f5ec122b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 4 18:13:30 2010 -0400
+
+    Add TODO item
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit bd361945a89ea31e6c4525aa030e18744ea81fb3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 4 17:22:57 2010 -0400
+
+    Add API comments
+
+ src/hb-font.h | 17 +++++++++++++++--
+ 1 file changed, 15 insertions(+), 2 deletions(-)
+
+commit 645f6f265b5f6fb85b3c0f59ea874d58c86e3917
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 4 17:01:01 2010 -0400
+
+    Add is_mutable() functions
+
+    Correspond to the make_mutable() ones.
+
+ src/hb-font.cc   | 6 ++++++
+ src/hb-font.h   | 2 ++
+ src/hb-unicode.c | 6 ++++++
+ src/hb-unicode.h | 2 ++
+ 4 files changed, 16 insertions(+)
+
+commit 19c0eab8cf96d00e168c4b11ec435019c1ed44f7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Oct 4 16:45:21 2010 -0400
+
+    Add getters for all setter APIs
+
+    One in particular is not a straight getter: hb_font_unset_funcs() is
+    special because of the specific needs of the lifecycle management of
+    the user_data object.
+
+ src/hb-font.cc   | 64
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-font.h   | 40 +++++++++++++++++++++++++++++++++++
+ src/hb-unicode.c | 32 ++++++++++++++++++++++++++++
+ src/hb-unicode.h | 31 ++++++++++++++++++++++++++-
+ 4 files changed, 166 insertions(+), 1 deletion(-)
+
+commit f0feb084b0fd1510474b25404d1dcc5686ee0538
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Oct 3 19:09:39 2010 -0400
+
+    Minor
+
+ src/hb-ot-layout-private.hh | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+commit ac0c1663fa6e93a5a94c88fc7497bc11ca17f0a1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 1 19:09:23 2010 -0400
+
+    Avoid div-by-zero, validate upem
+
+ src/hb-ot-head-private.hh   | 7 +++++++
+ src/hb-ot-layout-private.hh | 6 +++---
+ 2 files changed, 10 insertions(+), 3 deletions(-)
+
+commit 7f97d2cd904ea999c099c73c52187c5d65aeec67
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Oct 1 18:58:50 2010 -0400
+
+    Pedantic
+
+ src/hb-open-type-private.hh       | 12 ++++++------
+ src/hb-ot-layout-common-private.hh |  2 +-
+ src/hb-ot-layout-gdef-private.hh   | 10 +++++-----
+ src/hb-ot-layout-gpos-private.hh   |  6 +++---
+ 4 files changed, 15 insertions(+), 15 deletions(-)
+
+commit 2841436926d6a406bd1f4a35c66a0e3c2fdbeca7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 29 12:20:36 2010 -0400
+
+    Don't zero glyph advances in MarkToBase and similar lookups
+
+    See email thread "Should MarkToBase attachment zero the mark advance?"
+    started by Jonathan Kew on 23 August 2010 for details.
+
+ src/hb-ot-layout-gpos-private.hh | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 36b3862009c00ad922d68810173a69ac59723365
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 29 12:10:24 2010 -0400
+
+    One fewer cmp() implementation...
+
+ src/hb-ot-layout-common-private.hh | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit 4e573715ae5f5ed486ad66382bb44c47a86591ff
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 28 16:23:58 2010 -0400
+
+    Improve cmp function parameter namings and casts
+
+    No semantic change.
+
+ src/hb-open-type-private.hh       | 6 +++---
+ src/hb-ot-layout-common-private.hh | 6 +++---
+ src/hb-ot-shape.cc                | 8 ++++----
+ 3 files changed, 10 insertions(+), 10 deletions(-)
+
+commit dca8aff24652c83c53efbb9d06e5e1c7ef1c2fa5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 28 16:25:23 2010 -0400
+
+    Add comment re DejaVu Sans Mono having 'dflt' script
+
+ src/hb-ot-layout.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 9dc45401c07cb40114067cafbe286c63a9598f3b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Sep 28 16:23:28 2010 -0400
+
+    Fix stupid bug in bsearch cmp function!
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 6fca4c18c42bdcbc67ee8855499c51c7d6311eb2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 23 10:28:51 2010 -0400
+
+    Add TODO iteam
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit f2a30bd605a57b99fce4b78e288c2ca62f7191ad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Sep 23 10:27:08 2010 -0400
+
+    Remove unimplemented method hb_font_get_funcs()
+
+    Got to add a suitable replacement.
+
+ src/hb-font.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+commit 7b9a38a112aa2421d97187a9b30619360edeabbe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 22 17:42:59 2010 -0400
+
+    Add test.c using public API
+
+ src/Makefile.am |  6 +++-
+ src/test.c     | 94
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 2 files changed, 99 insertions(+), 1 deletion(-)
+
+commit 9ea7368fce3fa373d8d2925961ad211f5cf6ce70
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 22 17:38:44 2010 -0400
+
+    Fix hb_ot_layout leak
+
+ src/hb-ot-layout.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 8e577acae2e605547b6a1b9b3a941cb9e3c56a4c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 22 17:37:02 2010 -0400
+
+    Fix blob refcounting with insane SFNT table directories
+
+ src/hb-font.cc | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+commit 75371bea4fbf50b8604d2698b4935c011648a6b6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 22 17:12:10 2010 -0400
+
+    Add TODO item
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 5bd1e95236320aed60fb29ca1e93b9595d4aeeec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Sep 22 16:46:18 2010 -0400
+
+    Speedup Device table delta computation for common cases
+
+ src/hb-ot-layout-common-private.hh | 25 +++++++++++++++++++++----
+ 1 file changed, 21 insertions(+), 4 deletions(-)
+
+commit ed4acbde9c5e3323cc95037b500d1bf2878ed3ee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 16 14:36:27 2010 -0400
+
+    Fix NULL dereference
+
+    Reported by Jonathan Kew.  Face table handling needs to be redone
+    anyway, but fix this for now.
+
+ src/hb-ot-layout.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 258305c2a5dd47bd2d83f12eaf9caa5b19ae5efb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 13 14:10:02 2010 -0400
+
+    [GPOS] Fix div-by-zero
+
+    Patch by Jonathan Kew.  Mozilla bug #465728.
+
+ src/hb-ot-layout-gpos-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 2422c4b96d32037a5cdaef4c427ed1d25db5f647
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 13 14:00:34 2010 -0400
+
+    Add TODO
+
+ src/hb-ot-shape.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 27f0b092a13344e8791c496c77a3c1e5de4f887c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 23 17:35:54 2010 -0400
+
+    Logically separate feature allocation from application
+
+ src/hb-ot-shape.cc | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 6cf63132dc771e1bcd5627720daf4bd2ea0800a5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 23 17:32:26 2010 -0400
+
+    Minor
+
+ src/hb-ot-shape.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4e4ef24e46f273ad2bdda2f718223e05b37dd50f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 23 17:22:11 2010 -0400
+
+    Towards separating bit allocation from shaping
+
+ src/hb-buffer-private.hh        |  9 ++++++---
+ src/hb-buffer.cc                | 12 ++++++------
+ src/hb-ot-layout-gpos-private.hh |  2 +-
+ src/hb-ot-layout.cc             |  2 +-
+ src/hb-ot-shape.cc              | 41
+ ++++++++++++++++------------------------
+ 5 files changed, 30 insertions(+), 36 deletions(-)
+
+commit da6cff3864d2ef4a061a29e5918359bafcd51f4c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 23 15:40:58 2010 -0400
+
+    Add TODO items
+
+ TODO | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit acdba3f90b232fc12fcb200dca2584481b339118
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 23 15:11:18 2010 -0400
+
+    Prefer C linkage
+
+ src/Makefile.am                     |  1 +
+ src/check-c-linkage-decls.sh        | 18 ++++++++++++++++++
+ src/hb-blob-private.h               |  2 ++
+ src/hb-blob.c                       | 18 ++++++++++++------
+ src/hb-blob.h                       |  2 ++
+ src/hb-buffer-private.hh            |  1 +
+ src/hb-buffer.cc                    |  7 ++++++-
+ src/hb-buffer.h                     |  1 +
+ src/hb-common.c                     |  6 ++++++
+ src/hb-common.h                     | 21 +++++++++++++--------
+ src/hb-font-private.h               |  1 +
+ src/hb-font.cc                              |  4 ++++
+ src/hb-font.h                       |  1 +
+ src/hb-ft.c                         | 10 ++++++++--
+ src/hb-ft.h                         |  2 ++
+ src/hb-glib.c                       |  6 ++++++
+ src/hb-glib.h                       |  2 ++
+ src/hb-graphite.cc                  |  6 ++++++
+ src/hb-graphite.h                   |  3 ++-
+ src/hb-icu.c                        |  6 ++++++
+ src/hb-icu.h                        |  2 ++
+ src/hb-language.c                   |  5 +++++
+ src/hb-language.h                   |  2 ++
+ src/hb-object-private.h             |  2 ++
+ src/hb-open-file-private.hh         |  4 ++++
+ src/hb-open-type-private.hh         |  5 +++++
+ src/hb-ot-head-private.hh           |  5 +++++
+ src/hb-ot-layout-common-private.hh   |  6 ++++++
+ src/hb-ot-layout-gdef-private.hh     |  4 ++++
+ src/hb-ot-layout-gpos-private.hh     |  6 ++++++
+ src/hb-ot-layout-gsub-private.hh     |  7 ++++++-
+ src/hb-ot-layout-gsubgpos-private.hh | 13 +++++++++++++
+ src/hb-ot-layout-private.hh         |  3 ++-
+ src/hb-ot-layout.cc                 |  5 +++++
+ src/hb-ot-layout.h                  |  1 +
+ src/hb-ot-shape.cc                  |  6 ++++++
+ src/hb-ot-shape.h                   |  2 ++
+ src/hb-ot-tag.c                     |  5 +++++
+ src/hb-ot-tag.h                     |  2 ++
+ src/hb-ot.h                         |  3 +++
+ src/hb-private.h                    |  5 +++++
+ src/hb-shape.cc                     |  5 +++++
+ src/hb-shape.h                              |  1 +
+ src/hb-unicode-private.h            |  1 +
+ src/hb-unicode.c                    |  6 ++++++
+ src/hb-unicode.h                    |  1 +
+ src/hb.h                            |  3 +++
+ src/main.cc                         |  6 ++++++
+ 48 files changed, 214 insertions(+), 20 deletions(-)
+
+commit cc6d52279d10a2edcf0d86c3a18a79ff4f6d3858
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 23 15:00:13 2010 -0400
+
+    De-C++ where possible
+
+    Helps with avoiding many "extern C" declarations in source files.
+
+ src/Makefile.am                 |   4 +-
+ src/check-header-guards.sh      |   2 +-
+ src/hb-font-private.h           |  95 ++++++++++++++++
+ src/hb-font-private.hh                  |  95 ----------------
+ src/hb-font.cc                          |   2 +-
+ src/hb-ft.c                     | 240
+ +++++++++++++++++++++++++++++++++++++++
+ src/hb-ft.cc                    | 240
+ ---------------------------------------
+ src/hb-graphite.cc              |   2 +-
+ src/hb-ot-layout-gdef-private.hh |   2 +-
+ src/hb-ot-layout-private.hh     |   2 +-
+ 10 files changed, 342 insertions(+), 342 deletions(-)
+
+commit 0dd200d28f51bf4062d8a377432c8977c80cb210
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 23 14:56:29 2010 -0400
+
+    Header dep cleanup
+
+ src/hb-font-private.hh      | 2 --
+ src/hb-ot-layout-private.hh | 1 +
+ 2 files changed, 1 insertion(+), 2 deletions(-)
+
+commit fb0d25246267851a1fc200ead28c56359a40047e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 23 14:54:22 2010 -0400
+
+    dos2unix
+
+ src/hb-ot-head-private.hh | 256
+ +++++++++++++++++++++++-----------------------
+ 1 file changed, 128 insertions(+), 128 deletions(-)
+
+commit 81408cd51ce575891e79e6483be187130f864c28
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 23 14:46:57 2010 -0400
+
+    Don't use "operator ="
+
+    Some compilers don't like operator = defined on members of union
+    members
+    either.  Reported by Ginn Chen for Sun Studio compilers.
+
+ src/hb-open-type-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 39fe34d4c356516f0a92f42b13a168572829d24e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 22 18:12:38 2010 -0400
+
+    Add TODO option
+
+ TODO | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 243a96f41482edb83e4798358064bd3329dd278c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 21 17:21:12 2010 -0400
+
+    Add arm build fix to TODO
+
+ TODO | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit c407f05f99f9225916d3d0ae06eac8fbc8b55b97
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 21 17:20:44 2010 -0400
+
+    Remove fixed TODO item
+
+ TODO | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 4f801bd6586defdbf70162e0c7f8968d2b476df2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 21 16:37:01 2010 -0400
+
+    Mozilla bug 580233 - check for zero-length record in hb sanitizer.
+
+    Patch / report by Jonathan Kew.
+
+ src/hb-open-type-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 17e9ff938b638fd1cb80c990ba13bd47562116b8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 15 11:21:34 2010 -0700
+
+    Fix 64bit issues with debug prints
+
+ src/hb-blob.c              | 10 +++++-----
+ src/hb-open-type-private.hh | 5 +++--
+ 2 files changed, 8 insertions(+), 7 deletions(-)
+
+commit fd56ae49637b978ea3b36fab5b48f1a3cc99e90e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 8 00:53:40 2010 -0400
+
+    Don't bother sorting, it's a safe font error if the array is not
+    sorted
+
+ src/hb-open-type-private.hh       | 29 -----------------------------
+ src/hb-ot-layout-common-private.hh |  7 -------
+ 2 files changed, 36 deletions(-)
+
+commit cc8a4abea68f2dba26feb5785f9e518e6853c744
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 8 00:40:04 2010 -0400
+
+    Use bsearch where applicable
+
+ src/hb-open-type-private.hh       |  49 +++++++++++++
+ src/hb-ot-layout-common-private.hh | 145
+ +++++++++++++------------------------
+ 2 files changed, 100 insertions(+), 94 deletions(-)
+
+commit 2f418f5709b2b8b3ef2f6056b9d8c13b66f0b74a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 7 22:07:40 2010 -0400
+
+    Remove useless TODO
+
+ src/hb-open-file-private.hh | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit da8edbb62204dc39f93d500ef85929e234e0bd19
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 9 07:15:39 2010 -0400
+
+    Fix header
+
+ src/hb-buffer-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit d05d13df02fbe76814694fe49cc01bbb41c3d0e7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 9 07:15:03 2010 -0400
+
+    Add a test for header preprocessor guards
+
+ src/Makefile.am           |  4 +++-
+ src/check-header-guards.sh | 20 ++++++++++++++++++++
+ src/check-libstdc++.sh     |  1 -
+ 3 files changed, 23 insertions(+), 2 deletions(-)
+
+commit 0f0cd9d361f1bb614aa3fd4616160d027062370e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 9 06:32:56 2010 -0400
+
+    Fix header tags
+
+ src/hb-font-private.hh      | 6 +++---
+ src/hb-object-private.h     | 6 +++---
+ src/hb-open-type-private.hh | 4 ++--
+ src/hb-ot-layout-private.hh | 6 +++---
+ src/hb-ot-shape.h          | 2 +-
+ 5 files changed, 12 insertions(+), 12 deletions(-)
+
+commit f2a1b411b1d48c3dfac0df8e78c848d9aa3bb047
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jun 3 11:37:51 2010 -0400
+
+    Followup fix for variation-selectors
+
+    Patch from Jonathan Kew
+
+ src/hb-ot-shape.cc | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit a224b4d502d026fa642ee4098bf7bc0b4ba7ce27
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 2 22:24:54 2010 -0400
+
+    Fix skipping variation-selectors
+
+ src/hb-ot-shape.cc | 14 ++++++++------
+ 1 file changed, 8 insertions(+), 6 deletions(-)
+
+commit 81a77b115db401f69e869690f24b9047370bdfde
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jun 1 23:03:54 2010 -0400
+
+    Make feature sorting stable
+
+ src/hb-ot-shape.cc | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit fdc322a82047c4bda9fa3dab4338a0eac1c1bde7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 28 20:55:52 2010 -0400
+
+    Minor
+
+ src/hb-ot-shape.cc | 38 +++++++++++++++++++++-----------------
+ 1 file changed, 21 insertions(+), 17 deletions(-)
+
+commit f062ec6bb24b1c21d37b12adc7e944a5fe53526a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 28 20:54:43 2010 -0400
+
+    Further simplify mask allocator
+
+ src/hb-ot-shape.cc | 23 +++++++----------------
+ 1 file changed, 7 insertions(+), 16 deletions(-)
+
+commit 8af45fda475d075c5a285002463a00a0423d3926
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 28 20:41:20 2010 -0400
+
+    Fix global feature handling
+
+ src/hb-ot-shape.cc | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+commit e04685ee7be01695ec437fab50f919f1b7423c57
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 28 20:37:06 2010 -0400
+
+    Simplify mask allocation
+
+ src/hb-ot-shape.cc | 48 ++++++++++++++++++++----------------------------
+ 1 file changed, 20 insertions(+), 28 deletions(-)
+
+commit 0e235d0fc9bdeeaffa7215c21abc5d40767a10c7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 28 20:21:47 2010 -0400
+
+    Towards a mask allocator
+
+ src/hb-ot-shape.cc | 291
+ ++++++++++++++++++++++++++++++++++-------------------
+ 1 file changed, 186 insertions(+), 105 deletions(-)
+
+commit 81c5e8724b740c6e42ed3a45e0574c7c5f3ad8e6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 28 18:31:16 2010 -0400
+
+    Allow disabling default features
+
+    Patch from Jonathan Kew
+
+ src/hb-buffer-private.hh |  18 +++--
+ src/hb-buffer.cc        |  15 ++--
+ src/hb-ot-shape.cc      | 196
+ ++++++++++++++++++++++++++++++++---------------
+ 3 files changed, 153 insertions(+), 76 deletions(-)
+
+commit 2163afbf35044f59dbf449254e65b8c9feb6cdeb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 27 14:04:15 2010 -0400
+
+    Add note about UTF-8 decoder
+
+ src/hb-buffer.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 226faa58f4e23eb655bebb0eff7206a3024c8d55
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 27 11:42:34 2010 -0400
+
+    Fix loop
+
+ src/hb-ot-tag.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 56bef5680cc76a67d16ca14ac69f0dda1a691968
+Author: Martin Hosken <martin_hosken@sil.org>
+Date:  Thu May 27 10:09:04 2010 +0100
+
+    Fixes to Python and Graphite from Martin
+
+ contrib/python/README            |  10 ++++
+ contrib/python/lib/fontconfig.pyx |  47 +++++++++++++++++
+ contrib/python/lib/harfbuzz.pyx   | 104
+ ++------------------------------------
+ contrib/python/scripts/hbtestfont | 103
+ +++++++++++++++++++++++++++++++++----
+ contrib/python/setup.py          |   3 +-
+ src/hb-graphite.cc               |   8 +--
+ 6 files changed, 159 insertions(+), 116 deletions(-)
+
+commit b485da0b719cb03cc33da57802c5151301664c2f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 27 11:39:19 2010 -0400
+
+    Disable Graphite as it crashes all over the place...
+
+ src/hb-shape.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 93ac709b1f6b015371c29bf244a9ece62baedff0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 26 16:22:00 2010 -0400
+
+    Cypriot is RTL
+
+ src/hb-unicode.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 15c7379c16dbb9ee8ed1c0333ca7492532ce8423
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 26 10:48:10 2010 -0400
+
+    Revert "Merge remote branch 'martin/master'"
+
+    This reverts commit 80af2812fb3b231ddcb4608ec13c6038a681c818,
+    reversing
+    changes made to c442672ec2fb83ed41f3994b3aa4f92a097664ab.
+
+ contrib/python/README            |  10 ----
+ contrib/python/lib/fontconfig.pyx |  47 -----------------
+ contrib/python/lib/harfbuzz.pyx   | 104
+ ++++++++++++++++++++++++++++++++++++--
+ contrib/python/scripts/hbtestfont |  98
+ ++++-------------------------------
+ contrib/python/setup.py          |   3 +-
+ src/Makefile.am                  |   2 +-
+ src/hb-graphite.cc               |   8 +--
+ src/hb-ot-shape.cc               |   2 +-
+ src/hb-ot-tag.c                  |   1 -
+ src/hb-ot.h                      |   2 +-
+ src/hb-shape.cc                  |   2 +-
+ 11 files changed, 119 insertions(+), 160 deletions(-)
+
+commit 80af2812fb3b231ddcb4608ec13c6038a681c818
+Merge: c442672 3109a86
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 24 18:14:24 2010 +0100
+
+    Merge remote branch 'martin/master'
+
+commit c442672ec2fb83ed41f3994b3aa4f92a097664ab
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 24 18:02:32 2010 +0100
+
+    Fix struct initializers
+
+ src/hb-ft.cc  | 12 ++++++------
+ src/hb-glib.c | 14 +++++++-------
+ src/hb-icu.c  | 14 +++++++-------
+ 3 files changed, 20 insertions(+), 20 deletions(-)
+
+commit f5ac9de259773a5f86809892e58166a485d70a3d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 24 18:01:09 2010 +0100
+
+    Minor
+
+ src/hb-object-private.h | 24 +++++++++++++-----------
+ 1 file changed, 13 insertions(+), 11 deletions(-)
+
+commit f97bf4f81257c97a46dff51be31b2ec214d6c270
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 24 17:50:19 2010 +0100
+
+    Make sure we initialize all callbacks upon creation
+
+    Also fixes issue with unicode callbacks never being set really.
+
+ src/hb-font.cc   | 18 +++++++-----------
+ src/hb-unicode.c |  9 ++-------
+ 2 files changed, 9 insertions(+), 18 deletions(-)
+
+commit bf36a1074ab23abeab0a7a6c47db26770dc1ab0a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 24 17:46:21 2010 +0100
+
+    Move all callback functions in a vtable structs
+
+ src/hb-font-private.hh   | 10 ++++++----
+ src/hb-font.cc                  | 28 +++++++++++++++-------------
+ src/hb-ot-shape.cc      |  4 ++--
+ src/hb-unicode-private.h | 12 +++++++-----
+ src/hb-unicode.c        | 32 +++++++++++++++++---------------
+ 5 files changed, 47 insertions(+), 39 deletions(-)
+
+commit 3109a86add936ae4cc77541fc026c4fe2db4e328
+Author: Martin Hosken <martin_hosken@sil.org>
+Date:  Mon May 24 13:25:37 2010 +0100
+
+    hb-graphite now no longer has -ve advances within clusters. Fix
+    infinite loop in tag_to_script(). python fixed to use tag_to_script
+    and allow hbtestfont to be passed font files, where fontconfig knows
+    about them.
+
+ contrib/python/lib/harfbuzz.pyx   | 4 ++--
+ contrib/python/scripts/hbtestfont | 6 +++++-
+ src/hb-graphite.cc               | 4 ++--
+ src/hb-ot-tag.c                  | 1 +
+ 4 files changed, 10 insertions(+), 5 deletions(-)
+
+commit e5bed0a37fe1b0576d08435179e455cb28eadcdb
+Author: Martin Hosken <martin_hosken@sil.org>
+Date:  Sat May 22 20:19:00 2010 +0100
+
+    Tidy up hbtestfont and add README
+
+ contrib/python/README            |  10 +++
+ contrib/python/scripts/hbtestfont | 134
+ +++++++++++++++++++-------------------
+ 2 files changed, 77 insertions(+), 67 deletions(-)
+
+commit 70ae332fe66510500d303b6fcc79537833b42f05
+Author: Martin Hosken <martin_hosken@sil.org>
+Date:  Sat May 22 19:58:00 2010 +0100
+
+    Add fontconfig to hbtestfont
+
+ contrib/python/lib/fontconfig.pyx | 47 ++++++++++++++++++++++++++++
+ contrib/python/scripts/hbtestfont | 64
+ ++++++++++++++++++++++++---------------
+ contrib/python/setup.py          |  3 +-
+ 3 files changed, 88 insertions(+), 26 deletions(-)
+
+commit 72631c9d06b131d82080f212908e7d0b0266b841
+Merge: 1432ab1 1094a29
+Author: Martin Hosken <martin_hosken@sil.org>
+Date:  Sat May 22 09:38:02 2010 +0100
+
+    Merge branch 'master' of git://git.freedesktop.org/~behdad/harfbuzz-ng
+
+commit 1432ab15c163eb0b5be3de66a4cb3df15ad73500
+Author: Martin Hosken <martin_hosken@sil.org>
+Date:  Sat May 22 00:56:40 2010 +0100
+
+    Add graphical output to hbtestfont
+
+ contrib/python/lib/harfbuzz.pyx   | 100
+ +-------------------------------------
+ contrib/python/scripts/hbtestfont |  62 ++++++++++++++++++++++-
+ src/Makefile.am                  |   2 +-
+ src/hb-ot-shape.cc               |   2 +-
+ src/hb-ot.h                      |   2 +-
+ src/hb-shape.cc                  |   2 +-
+ 6 files changed, 67 insertions(+), 103 deletions(-)
+
+commit bbc7a99d01298f9be1ebaaceacbc9bc961e247e5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 18:24:34 2010 +0100
+
+    Move mirroring around a bit
+
+ src/hb-ot-shape.cc | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit bd0987386b3a4dddf208ccf1a70ebfff6242ba73
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 18:06:35 2010 +0100
+
+    Add a few more standard features
+
+ src/hb-ot-shape.cc | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+commit 75f3469ca6d626b08eb411984a2ba7fd48ca5b5f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 17:59:04 2010 +0100
+
+    Add note
+
+ src/hb-ot-shape.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 1094a294f6a44c47fc75867983f2b135a6442bab
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 17:58:20 2010 +0100
+
+    Add rtlm
+
+ src/hb-ot-shape.cc | 26 +++++++++++++++++++++-----
+ 1 file changed, 21 insertions(+), 5 deletions(-)
+
+commit 074ea787493a37ae8f68d17be7820f13fff57520
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 17:53:10 2010 +0100
+
+    Add ltra, ltrm, and rtla features
+
+ src/hb-ot-shape.cc | 60
+ +++++++++++++++++++++++++++++++++++++++++++-----------
+ 1 file changed, 48 insertions(+), 12 deletions(-)
+
+commit 1ce7b87c4d8d1ab3ec1d5198351d71b7199f7c64
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 17:31:45 2010 +0100
+
+    Cleanup bitmask allocation
+
+ src/hb-buffer-private.hh | 16 +++++++++++++
+ src/hb-buffer.cc        | 36 +++++++++++++++++++++++++++++
+ src/hb-ot-shape.cc      | 60
+ +++++++++++++++++++++---------------------------
+ 3 files changed, 78 insertions(+), 34 deletions(-)
+
+commit dd22a8f7bfd424a69286e90f79d2a23af6e89ec1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 16:43:17 2010 +0100
+
+    Add note
+
+ src/hb-ot-layout-gsub-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit cbd1d6a63a5d696b7d6a5aba9ee7305ea228416a
+Author: Martin Hosken <martin_hosken@sil.org>
+Date:  Fri May 21 15:16:43 2010 +0100
+
+    Rename Grxxx to HbGrxxx
+
+ src/hb-graphite.cc | 26 +++++++++++++-------------
+ 1 file changed, 13 insertions(+), 13 deletions(-)
+
+commit 0375bdd2027767ee7bebef1ed289b33dc64f430e
+Author: Martin Hosken <martin_hosken@sil.org>
+Date:  Fri May 21 15:01:37 2010 +0100
+
+    Rename classes from Grxxx to HbGrxxx
+
+ src/hb-graphite.cc | 22 +++++++++++-----------
+ 1 file changed, 11 insertions(+), 11 deletions(-)
+
+commit a5a72e004bb7123445c2c3a94352d358fc80d904
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 15:12:52 2010 +0100
+
+    Add hb-ot-shape.h, oops.
+
+ src/hb-ot-shape.h | 44 ++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 44 insertions(+)
+
+commit aa62a402a72bdecad2a955dbfaf6e24cd2c00e55
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 14:42:11 2010 +0100
+
+    Fix Makefile to install hb-ot-shape.h
+
+ src/Makefile.am | 2 +-
+ src/hb-ot.h    | 1 +
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+commit 9722b8f005a10fd16e841df4da3ccd80be66e296
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 14:37:47 2010 +0100
+
+    Simple renames
+
+ src/hb-ot-shape.cc | 36 ++++++++++++++++++------------------
+ 1 file changed, 18 insertions(+), 18 deletions(-)
+
+commit 02f28550d785671cf92fd4239c5f913f7e71585f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 14:37:28 2010 +0100
+
+    Graphite also forces us to link to libstdc++ currently
+
+ src/Makefile.am | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit ca663bb23c16f6a1f04efa6e10dad0e3e7c260a3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 14:34:23 2010 +0100
+
+    Move main shaper code into hb_ot_shape()
+
+ src/hb-ot-shape-private.hh |  53 -----------
+ src/hb-ot-shape.cc        | 225
+ ++++++++++++++++++++++++++++++++++++++++++---
+ src/hb-shape.cc           | 209
+ +----------------------------------------
+ 3 files changed, 214 insertions(+), 273 deletions(-)
+
+commit 7acd232d36c2b2ed03823e6aa6bb2b814bf673b3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 14:20:48 2010 +0100
+
+    Fix test failing
+
+ src/hb-graphite.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit dd47924d88d86b83e7f3ab040de6e7136ac0ca09
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 14:18:08 2010 +0100
+
+    Fix warnings
+
+ src/hb-graphite.cc | 14 +++++---------
+ 1 file changed, 5 insertions(+), 9 deletions(-)
+
+commit 305ba8671553cd955c20a54db622666c0bb02532
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 14:02:20 2010 +0100
+
+    Import Graphite shaping backend by Martin Hosken
+
+ configure.ac      |   6 ++
+ src/Makefile.am    |  11 ++
+ src/hb-graphite.cc | 308
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-graphite.h  |  46 ++++++++
+ src/hb-shape.cc    |  15 +++
+ 5 files changed, 386 insertions(+)
+
+commit 3ba6818ba9be950e46902f0239f2451ec0e65d44
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 13:51:29 2010 +0100
+
+    Update the Python module
+
+ contrib/python/lib/harfbuzz.pyx | 40
+ +++++++++++++++++++++-------------------
+ 1 file changed, 21 insertions(+), 19 deletions(-)
+
+commit 83f34677bcbc6bb194940407b0fcb23575650e3d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 13:43:49 2010 +0100
+
+    Add hb_tag_from_string()
+
+ src/Makefile.am |  1 +
+ src/hb-common.c | 41 +++++++++++++++++++++++++++++++++++++++++
+ src/hb-common.h |  3 +++
+ 3 files changed, 45 insertions(+)
+
+commit 4a9a5c0b06e8aa5d15327242609a7c766d3e0e94
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 13:33:46 2010 +0100
+
+    Don't allocate bits for features not available
+
+ src/hb-ot-shape.cc | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+commit e53d77142ac4ecbe38ab3235491fa93cb7ff16ab
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 13:32:38 2010 +0100
+
+    Speed up feature mask setting
+
+    Patch from Jonathan Kew.
+
+ src/hb-ot-shape.cc | 31 +++++++++++++++++++++++++------
+ 1 file changed, 25 insertions(+), 6 deletions(-)
+
+commit 4fa67f34ecc65056ce60a572213fbdae66e0423b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 13:29:12 2010 +0100
+
+    Add Unicode 5.2 scripts
+
+ src/hb-icu.c    | 29 ++++++++++++++++++++++++++++-
+ src/hb-ot-tag.c  | 21 +++++++++++++++++++--
+ src/hb-unicode.c | 19 ++++++++++++++++++-
+ src/hb-unicode.h | 19 ++++++++++++++++++-
+ 4 files changed, 83 insertions(+), 5 deletions(-)
+
+commit ee1b322100a6bd575b999904592abbd9fed5587f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 12:55:57 2010 +0100
+
+    Fix feature mask setting
+
+ src/hb-ot-shape.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit b490fa343322f1b5abaf880abc073287c1f34132
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 11:15:07 2010 +0100
+
+    Add hb_ot_tag_to_script()
+
+ src/hb-ot-tag.c | 14 ++++++++++++++
+ src/hb-ot-tag.h |  3 +++
+ 2 files changed, 17 insertions(+)
+
+commit 50355309047765558ef8f5d60aefed42a7f954cc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 21 10:33:23 2010 +0100
+
+    Add Python wrapper from Martin Hosken
+
+ contrib/python/lib/harfbuzz.pyx   | 306
+ ++++++++++++++++++++++++++++++++++++++
+ contrib/python/runpy             |   2 +
+ contrib/python/scripts/hbtestfont |  35 +++++
+ contrib/python/setup.py          |  24 +++
+ 4 files changed, 367 insertions(+)
+
+commit 280af1bddb958ff97cf7ce12fe7ec2b6352e61d0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 20 18:33:35 2010 +0100
+
+    Let hb_face_get_table() return NULL if table not found
+
+ src/hb-font.cc                     | 2 +-
+ src/hb-font.h              | 1 +
+ src/hb-open-type-private.hh | 3 +++
+ 3 files changed, 5 insertions(+), 1 deletion(-)
+
+commit 1cdbfd944eecb58587461f57f037e47a44f39990
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 20 17:47:28 2010 +0100
+
+    Fix alternate, again
+
+ src/hb-ot-layout-gsub-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit fdca3d51603bd6bef6a4b0ee4a560f7dcd2f1d37
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 20 17:46:20 2010 +0100
+
+    Fix alternate off-by-one
+
+ src/hb-ot-layout-gsub-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b634beb39e0a4fef7167a8af646f6b2d8cafe69b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 20 17:44:52 2010 +0100
+
+    Fix delta scale, again...
+
+ src/hb-ot-layout-common-private.hh |  8 ++++++++
+ src/hb-ot-layout-gdef-private.hh   |  3 +--
+ src/hb-ot-layout-gpos-private.hh   | 12 ++++++------
+ src/hb-ot-layout-private.hh       |  2 +-
+ 4 files changed, 16 insertions(+), 9 deletions(-)
+
+commit 40335d4533ac2b08121c9dc6003f3ebc5b44a67b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 20 17:35:14 2010 +0100
+
+    Remove unused operator
+
+ src/hb-ot-layout-common-private.hh | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit f7acd8df5146155b51d6f50aeb04f54f3030c1c3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 20 17:26:35 2010 +0100
+
+    Do alternate glyph selection!
+
+    Kinda hand-wavy right now. Not tested.
+
+ src/hb-ot-layout-gpos-private.hh     | 12 +++++++-----
+ src/hb-ot-layout-gsub-private.hh     | 20 +++++++++-----------
+ src/hb-ot-layout-gsubgpos-private.hh |  1 +
+ src/hb-private.h                    | 19 ++++++++++++++++++-
+ 4 files changed, 35 insertions(+), 17 deletions(-)
+
+commit 750a2294553d252e28875b605fe61fd9d6696e0f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 20 16:23:27 2010 +0100
+
+    get_table() is allowed to return NULL.  Use that to simplify code
+
+ src/hb-font.cc | 2 +-
+ src/hb-ft.cc  | 6 +++---
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+commit 99d9ef785f108df76f80a307eaa2784685ea86ba
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 20 15:47:49 2010 +0100
+
+    Write hb_face_create_for_data() in terms of
+    hb_face_create_for_tables()
+
+    Fixes lack of head_table initialization in create_for_tables() also.
+
+ src/hb-font.cc | 35 ++++++++++++-----------------------
+ 1 file changed, 12 insertions(+), 23 deletions(-)
+
+commit 6774463883978b00b4d8c719ed75edfc4537c77f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 20 15:40:12 2010 +0100
+
+    Apply user features to ranges!
+
+ src/hb-ot-shape.cc | 23 ++++++++++++++++++++++-
+ 1 file changed, 22 insertions(+), 1 deletion(-)
+
+commit 9b6023338530a2dbb8214eb4391ef3e8372f3892
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 20 15:31:12 2010 +0100
+
+    Add _hb_bit_storage()
+
+ src/hb-private.h | 35 ++++++++++++++++++++++-------------
+ 1 file changed, 22 insertions(+), 13 deletions(-)
+
+commit 6b1b957f6d2955cbe4fa97e2659e033b3eaaf4d2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 20 15:14:44 2010 +0100
+
+    Add lookup_map
+
+ src/hb-ot-shape.cc | 48 +++++++++++++++++++++++++++++++++---------------
+ 1 file changed, 33 insertions(+), 15 deletions(-)
+
+commit 60010a0c4d8efae5c61a0c9cf10cfe2c1860f41e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 20 14:05:02 2010 +0100
+
+    Update always-apply mask from 0xFFFF to 1
+
+    We plan to use the first bit to be always on.
+
+ src/hb-ot-shape.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 009aad567863c05ee2ec4a3ee76fe0ee79c767bb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 20 14:00:57 2010 +0100
+
+    Invert the mask logic
+
+    Before, the mask in the buffer was inverted.  That is, a 0 bit meant
+    feature should be applied and 1 meant not applied, whereas in the
+    lookups, the logic was positive.
+
+    Now both are in sync.  When calling hb_buffer_add_glyph() manually,
+    the mask should be 1 instead of 0.
+
+ src/hb-buffer.cc                | 2 +-
+ src/hb-ot-layout-gpos-private.hh | 2 +-
+ src/hb-ot-layout-gsub-private.hh | 4 ++--
+ 3 files changed, 4 insertions(+), 4 deletions(-)
+
+commit 7f411dbfd9f8d5360c948531ff9f6c3998d1d897
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 20 13:40:18 2010 +0100
+
+    Apply user features
+
+    No ranges yet
+
+ src/hb-ot-shape.cc | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 0db299ccad346d9ea5573ea8408b78d9997bd379
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 20 13:30:09 2010 +0100
+
+    Change hb_feature_t to keep tag/int instead of string
+
+ src/hb-shape.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 0a4399ca228d244e646abdb3487da0f13b228889
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 19 15:45:06 2010 -0400
+
+    Fix scale issues
+
+    hb_font_set_scale() now sets the value to be used to represent a unit
+    pixel.  For example, if rendering a 10px font with a 26.6
+    representation,
+    you would set scale to (10 << 6).  For 10px in 16.16 you would set
+    it to
+    (10 << 16).  This space should be the same space that the
+    get_glyph_metrics
+    and get_kerning callbacks work in.
+
+ src/hb-common.h                 |  1 -
+ src/hb-font-private.hh                  |  8 +++-----
+ src/hb-font.cc                          | 12 ++++++------
+ src/hb-font.h                   | 12 +++---------
+ src/hb-ft.cc                    |  4 ++--
+ src/hb-ot-layout-gdef-private.hh |  6 +++---
+ src/hb-ot-layout-gpos-private.hh | 37
+ +++++++++++++++++--------------------
+ src/hb-ot-layout-gsub-private.hh |  2 +-
+ src/hb-ot-layout-private.hh     | 20 +++++++++++---------
+ src/hb-ot-layout.cc             | 31 +++++++++++++++----------------
+ src/hb-private.h                |  4 ----
+ 11 files changed, 61 insertions(+), 76 deletions(-)
+
+commit cf5585cfa6cac6fdf627a99941299e76af5ae0f7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 19 12:03:35 2010 -0400
+
+    Add 'head' table
+
+ src/Makefile.am            |   1 +
+ src/hb-font-private.hh      |  5 ++
+ src/hb-font.cc                     |   9 ++++
+ src/hb-open-type-private.hh |  2 +-
+ src/hb-ot-head-private.hh   | 128
+ ++++++++++++++++++++++++++++++++++++++++++++
+ 5 files changed, 144 insertions(+), 1 deletion(-)
+
+commit e29caf3f943b2b6f4997f469f7274252c82f465e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 19 11:47:17 2010 -0400
+
+    Add LONGDATETIME
+
+ src/hb-open-type-private.hh | 15 +++++++++++++++
+ 1 file changed, 15 insertions(+)
+
+commit f415755fdf011d3fa3b9aad04c38f2255dd7acf8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 17 15:14:14 2010 -0400
+
+    Minor
+
+ src/hb-ot-layout.cc | 52
+ +++++++++++++++++++++++++++-------------------------
+ 1 file changed, 27 insertions(+), 25 deletions(-)
+
+commit 73af7756dc6d3961f176854246e5722baff101fb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 23:38:08 2010 -0400
+
+    Indent
+
+ src/hb-ot-layout-gsub-private.hh | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+commit 3567b87cce541dfb0af7caf024ec67c9d3c09214
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 23:28:44 2010 -0400
+
+    Add an inline version of hb_buffer_ensure()
+
+ src/hb-buffer.cc | 117
+ ++++++++++++++++++++++++++++++-------------------------
+ 1 file changed, 63 insertions(+), 54 deletions(-)
+
+commit a6a79df5fe2ed2cd307e7a991346faee164e70d9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 23:20:16 2010 -0400
+
+    Handle malloc failture in the buffer
+
+ src/hb-buffer-private.hh |  5 ++--
+ src/hb-buffer.cc        | 71
+ +++++++++++++++++++++++++++++-------------------
+ src/hb-buffer.h         |  2 +-
+ 3 files changed, 47 insertions(+), 31 deletions(-)
+
+commit ca54a12658510f9aa0b2db82f20a8fac230d6bb6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 22:25:42 2010 -0400
+
+    Minor
+
+ src/hb-shape.cc | 60
+ +++++++++++++++++++++++++--------------------------------
+ 1 file changed, 26 insertions(+), 34 deletions(-)
+
+commit 910a33fe8457a8e13f7eb77fc92fa59c31f5e8fd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 22:13:38 2010 -0400
+
+    Update buffer docs
+
+ src/hb-buffer-private.hh | 13 +++++++------
+ src/hb-buffer.cc        | 16 ++++++++--------
+ 2 files changed, 15 insertions(+), 14 deletions(-)
+
+commit 36b73c80df91e96492357c6da945e081e9046a93
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 22:10:39 2010 -0400
+
+    Shortening buffer accessors: rename buffer->in_pos to buffer->i
+
+ src/hb-buffer-private.hh            |  2 +-
+ src/hb-buffer.cc                    | 52 ++++++++++----------
+ src/hb-ot-layout-gpos-private.hh     | 94
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-gsub-private.hh     | 48 +++++++++---------
+ src/hb-ot-layout-gsubgpos-private.hh | 46 +++++++++---------
+ src/hb-shape.cc                     | 40 +++++++--------
+ 6 files changed, 141 insertions(+), 141 deletions(-)
+
+commit 29427c5c51ac70aca53ed523fa5ddb3de4355fb0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 22:08:22 2010 -0400
+
+    Shortening buffer accessors: rename buffer->out_length to
+    buffer->out_len
+
+ src/hb-buffer-private.hh            |  2 +-
+ src/hb-buffer.cc                    | 52
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-gsub-private.hh     |  2 +-
+ src/hb-ot-layout-gsubgpos-private.hh |  6 ++---
+ 4 files changed, 31 insertions(+), 31 deletions(-)
+
+commit 6960350be97f24e97140391025b56369c393a3df
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 22:07:46 2010 -0400
+
+    Shortening buffer accessors: rename buffer->in_length to buffer->len
+
+ src/hb-buffer-private.hh            |  2 +-
+ src/hb-buffer.cc                    | 26 +++++++++++++-------------
+ src/hb-ot-layout-gpos-private.hh     |  8 ++++----
+ src/hb-ot-layout-gsub-private.hh     |  8 ++++----
+ src/hb-ot-layout-gsubgpos-private.hh |  8 ++++----
+ src/hb-shape.cc                     | 12 ++++++------
+ 6 files changed, 32 insertions(+), 32 deletions(-)
+
+commit 1b621823f3e31b48c80cc8b0691dfa873ba086cd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 22:05:53 2010 -0400
+
+    Shortening buffer accessors: rename buffer->positions to buffer->pos
+
+ src/hb-buffer-private.hh        |  4 ++--
+ src/hb-buffer.cc                | 32 ++++++++++++++++----------------
+ src/hb-ot-layout-gpos-private.hh | 26 +++++++++++++-------------
+ src/hb-shape.cc                 | 10 +++++-----
+ 4 files changed, 36 insertions(+), 36 deletions(-)
+
+commit 9d5e26df0877aa5b187764ba09bd7bf221e92968
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 22:03:11 2010 -0400
+
+    Shortening buffer accessors: rename buffer->out_string to
+    buffer->out_info
+
+ src/hb-buffer-private.hh            |  2 +-
+ src/hb-buffer.cc                    | 56
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-gsubgpos-private.hh |  4 +--
+ 3 files changed, 31 insertions(+), 31 deletions(-)
+
+commit 7e7007a1c9bf2c07a8369752126ece8fa6164248
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 22:02:37 2010 -0400
+
+    Shortening buffer accessors: rename buffer->in_string to buffer->info
+
+ src/hb-buffer-private.hh            |  2 +-
+ src/hb-buffer.cc                    | 82
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-gpos-private.hh     | 58 ++++++++++++-------------
+ src/hb-ot-layout-gsub-private.hh     | 30 ++++++-------
+ src/hb-ot-layout-gsubgpos-private.hh | 26 ++++++------
+ src/hb-shape.cc                     | 18 ++++----
+ 6 files changed, 108 insertions(+), 108 deletions(-)
+
+commit 8e6b6bb2932946ebc7b01c3abf575b654c741e20
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 21:58:22 2010 -0400
+
+    Merge buffer->out_pos and buffer->out_length
+
+ src/hb-buffer-private.hh            |  1 -
+ src/hb-buffer.cc                    | 48
+ +++++++++++++++---------------------
+ src/hb-ot-layout-gsub-private.hh     |  2 +-
+ src/hb-ot-layout-gsubgpos-private.hh |  6 ++---
+ 4 files changed, 24 insertions(+), 33 deletions(-)
+
+commit 22f668eb9ad5f62d9fcd2e0c826ea78977687e5c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 21:41:04 2010 -0400
+
+    Remove the unused BUFFER macro
+
+ src/hb-buffer-private.hh            | 6 ------
+ src/hb-ot-layout-gpos-private.hh     | 6 ------
+ src/hb-ot-layout-gsub-private.hh     | 6 ------
+ src/hb-ot-layout-gsubgpos-private.hh | 5 -----
+ 4 files changed, 23 deletions(-)
+
+commit 7e53ebe478597778c25c197ff9f0cb379f1d0043
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 21:38:13 2010 -0400
+
+    Remove the IN_CURGLYPH() macro
+
+ src/hb-buffer-private.hh            |  3 ---
+ src/hb-ot-layout-gpos-private.hh     | 24 ++++++++++++------------
+ src/hb-ot-layout-gsub-private.hh     | 16 ++++++++--------
+ src/hb-ot-layout-gsubgpos-private.hh | 16 ++++++++--------
+ src/hb-shape.cc                     | 14 +++++++-------
+ 5 files changed, 35 insertions(+), 38 deletions(-)
+
+commit d784da1923ff2ca093f8b0210449731d376b7513
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 21:37:18 2010 -0400
+
+    Remove the IN_CURINFO() macro
+
+ src/hb-buffer-private.hh            | 1 -
+ src/hb-ot-layout-gpos-private.hh     | 2 +-
+ src/hb-ot-layout-gsub-private.hh     | 4 ++--
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 4 files changed, 4 insertions(+), 5 deletions(-)
+
+commit 281f59b4fb16f7c73767eb042a91f70f4c109b3a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 21:34:22 2010 -0400
+
+    Remove IN_INFO() and IN_NEXTGLYPH() macros
+
+ src/hb-buffer-private.hh            |  2 --
+ src/hb-ot-layout-gpos-private.hh     | 10 +++++-----
+ src/hb-ot-layout-gsub-private.hh     |  2 +-
+ src/hb-ot-layout-gsubgpos-private.hh |  4 ++--
+ src/hb-shape.cc                     |  4 ++--
+ 5 files changed, 10 insertions(+), 12 deletions(-)
+
+commit 6e489cdf7623ac627d06d59a80ecea03ca97dc1b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 21:07:35 2010 -0400
+
+    Remove the IN_GLYPH() macro
+
+ src/hb-buffer-private.hh            |  1 -
+ src/hb-ot-layout-gpos-private.hh     | 12 ++++++------
+ src/hb-ot-layout-gsub-private.hh     |  2 +-
+ src/hb-ot-layout-gsubgpos-private.hh |  4 ++--
+ src/hb-shape.cc                     |  2 +-
+ 5 files changed, 10 insertions(+), 11 deletions(-)
+
+commit 01feb74c78a3a302fa3472a0be7b2a1d52fd1ba3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 21:00:08 2010 -0400
+
+    Remove the IN_CLUSTER() macro
+
+ src/hb-buffer-private.hh | 1 -
+ src/hb-shape.cc         | 2 +-
+ 2 files changed, 1 insertion(+), 2 deletions(-)
+
+commit d63a1e089acad9ab9f80addd936d36b6d38fb46a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 20:30:07 2010 -0400
+
+    Remove the IN_MASK() macro
+
+ src/hb-buffer-private.hh        | 1 -
+ src/hb-ot-layout-gpos-private.hh | 2 +-
+ src/hb-ot-layout-gsub-private.hh | 4 ++--
+ 3 files changed, 3 insertions(+), 4 deletions(-)
+
+commit 89e2834dabd2d17f2823c51fe3a7fcadeaba7a59
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 20:25:55 2010 -0400
+
+    Remove the IN_LIGID() macro
+
+ src/hb-buffer-private.hh        | 1 -
+ src/hb-ot-layout-gpos-private.hh | 4 ++--
+ src/hb-ot-layout-gsub-private.hh | 2 +-
+ 3 files changed, 3 insertions(+), 4 deletions(-)
+
+commit 4a871041f4718834afa312ed17cdd157603468b7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 20:25:04 2010 -0400
+
+    Remove IN_COMPONENT() macro
+
+ src/hb-buffer-private.hh        | 1 -
+ src/hb-ot-layout-gpos-private.hh | 8 ++++----
+ src/hb-ot-layout-gsub-private.hh | 2 +-
+ 3 files changed, 5 insertions(+), 6 deletions(-)
+
+commit 27da6dd89a359f7ef340c646c4cb79373782261d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 20:17:50 2010 -0400
+
+    Remove OUT_GLYPH() and OUT_INFO() macros
+
+ src/hb-buffer-private.hh            | 2 --
+ src/hb-ot-layout-gsubgpos-private.hh | 4 ++--
+ 2 files changed, 2 insertions(+), 4 deletions(-)
+
+commit cc6ae7ff91eeb93bef153f331ed02b500062f90e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 20:09:48 2010 -0400
+
+    Fix lookahead matching.  Oops!
+
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 3109375b849f340b4807724218010c53dea58082
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 14 19:55:27 2010 -0400
+
+    Remove POSITION() and CURPOSITION() macros
+
+ src/hb-buffer-private.hh        |  2 --
+ src/hb-ot-layout-gpos-private.hh | 54
+ ++++++++++++++++++++--------------------
+ src/hb-shape.cc                 | 10 ++++----
+ 3 files changed, 32 insertions(+), 34 deletions(-)
+
+commit d7cfb3b2d1dd2e9fdae2b3e540bbe313660895e8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 13 14:18:49 2010 -0400
+
+    s/\<context\>/c/g
+
+ src/hb-open-file-private.hh         |  28 +--
+ src/hb-open-type-private.hh         | 100 ++++----
+ src/hb-ot-layout-common-private.hh   |  84 +++----
+ src/hb-ot-layout-gdef-private.hh     |  98 ++++----
+ src/hb-ot-layout-gpos-private.hh     | 460
+ +++++++++++++++++------------------
+ src/hb-ot-layout-gsub-private.hh     | 306 +++++++++++------------
+ src/hb-ot-layout-gsubgpos-private.hh | 258 ++++++++++----------
+ src/hb-ot-layout.cc                 |  24 +-
+ 8 files changed, 679 insertions(+), 679 deletions(-)
+
+commit f679635893eebc13402c5ee51a6f106eed0c76be
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 13 13:34:17 2010 -0400
+
+    Don't use variable-length-arrays
+
+ src/hb-open-type-private.hh | 11 +++++++++--
+ 1 file changed, 9 insertions(+), 2 deletions(-)
+
+commit 72071a8afaba2952fe42be093024ae9dbd37f233
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 13 13:22:24 2010 -0400
+
+    Add a few more buffer convenience methods
+
+ src/hb-buffer-private.hh        | 12 ++++++++++++
+ src/hb-ot-layout-gsub-private.hh | 20 ++++++++++----------
+ 2 files changed, 22 insertions(+), 10 deletions(-)
+
+commit 11a81612e51c598e857507c268312206423cbfca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 13 00:01:40 2010 -0400
+
+    Minor
+
+ src/hb-unicode.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 3f93518a634cb1852bf050877db23b9b9203ad03
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 12 23:48:40 2010 -0400
+
+    Improve check for internal symbols
+
+ src/check-internal-symbols.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 357d0f29c431b842179ee4b56c21bcc402178ce7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 12 23:46:16 2010 -0400
+
+    Make HB_PRIVATE more useful
+
+    So we can apply it to class methods also.  Not sure if that works!
+
+ src/hb-blob-private.h   | 2 +-
+ src/hb-font-private.hh   | 4 ++--
+ src/hb-private.h        | 2 +-
+ src/hb-unicode-private.h | 3 +--
+ 4 files changed, 5 insertions(+), 6 deletions(-)
+
+commit 1d5e78013696b10751d8a35027619e81978e1312
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 12 23:43:00 2010 -0400
+
+    Add a few other buffer methods
+
+ src/hb-buffer-private.hh            | 11 +++++++----
+ src/hb-buffer.cc                    |  7 -------
+ src/hb-ot-layout-gsub-private.hh     | 10 +++++-----
+ src/hb-ot-layout-gsubgpos-private.hh |  4 ++--
+ 4 files changed, 14 insertions(+), 18 deletions(-)
+
+commit d0316a81f59a4e814b0af78797d915d7ce04d119
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 12 23:34:52 2010 -0400
+
+    Add buffer->swap()
+
+ src/hb-buffer-private.hh        | 68
+ ++++++++++++++++++++++------------------
+ src/hb-ot-layout-gsub-private.hh |  2 +-
+ 2 files changed, 38 insertions(+), 32 deletions(-)
+
+commit 3b649a38b5772dd7aba7f07ff7698a7f427f421f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 12 23:28:38 2010 -0400
+
+    Add check for internal symbols
+
+ src/Makefile.am              |  3 ++-
+ src/check-internal-symbols.sh | 28 ++++++++++++++++++++++++++++
+ 2 files changed, 30 insertions(+), 1 deletion(-)
+
+commit eee8598d75d3af692d9ececf7e8ac458e892ba9e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 12 23:22:55 2010 -0400
+
+    Hide internal symbols
+
+ src/hb-ot-layout-private.hh | 4 ++--
+ src/hb-private.h           | 8 ++++----
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+commit 8951fc2c82f2db4865da6d9e303fce419b6363bb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 12 23:13:39 2010 -0400
+
+    Add buffer->allocate_lig_id()
+
+ src/hb-buffer-private.hh        | 5 ++---
+ src/hb-buffer.cc                | 6 ------
+ src/hb-ot-layout-gsub-private.hh | 4 ++--
+ 3 files changed, 4 insertions(+), 11 deletions(-)
+
+commit 1ce4dc95dbb28842085342aea4f9d12cbe9671a9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 12 18:29:25 2010 -0400
+
+    Use bit tricks for HB_DIRECTION_IS_*
+
+    We already depend on the exact values of the direction enum
+    in HB_DIRECTION_REVERSE(), so we may as well use that.
+
+ src/hb-common.h | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 22da7fd94d6318c52df69d70470a85464ffc533d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 12 18:23:21 2010 -0400
+
+    Rename a few files to be C++ sources
+
+    In anticipation for buffer revamp coming.
+
+ src/Makefile.am                     |  16 +-
+ src/hb-buffer-private.h             | 155 ---------
+ src/hb-buffer-private.hh            | 155 +++++++++
+ src/hb-buffer.c                     | 650
+ -----------------------------------
+ src/hb-buffer.cc                    | 650
+ +++++++++++++++++++++++++++++++++++
+ src/hb-common.h                     |   1 +
+ src/hb-font-private.h               |  92 -----
+ src/hb-font-private.hh                      |  92 +++++
+ src/hb-font.cc                              |   4 +-
+ src/hb-ft.c                         | 240 -------------
+ src/hb-ft.cc                        | 240 +++++++++++++
+ src/hb-ot-layout-common-private.hh   |   2 +-
+ src/hb-ot-layout-gdef-private.hh     |   2 +-
+ src/hb-ot-layout-gsubgpos-private.hh |   2 +-
+ src/hb-ot-layout-private.h          | 121 -------
+ src/hb-ot-layout-private.hh         | 121 +++++++
+ src/hb-ot-layout.cc                 |   2 +-
+ src/hb-ot-shape-private.h           |  53 ---
+ src/hb-ot-shape-private.hh          |  53 +++
+ src/hb-ot-shape.c                   | 164 ---------
+ src/hb-ot-shape.cc                  | 164 +++++++++
+ src/hb-shape.c                              | 258 --------------
+ src/hb-shape.cc                     | 258 ++++++++++++++
+ 23 files changed, 1748 insertions(+), 1747 deletions(-)
+
+commit c3df649f258b334e93c7626a43cd8ebfbd5a610e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 11 13:54:12 2010 -0400
+
+    Fix comment
+
+ src/hb-buffer-private.h | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit 281f08954a1d96d7807153c25073b8eb7630703b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 11 11:37:58 2010 -0400
+
+    Remove obsolete friend
+
+ src/hb-ot-layout-gpos-private.hh | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 70c9bfd5646a4a55a7f43c0cf0b5ac5993615d5b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 11 00:23:50 2010 -0400
+
+    Simplify PairSet
+
+ src/hb-ot-layout-gpos-private.hh | 101
+ +++++++++++++++++++++------------------
+ 1 file changed, 54 insertions(+), 47 deletions(-)
+
+commit 97e7f8f305c47caf2968a9da3b8407825547286d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 11 00:11:36 2010 -0400
+
+    Add CONST_FUNC annotation
+
+ src/hb-private.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 494d28ad988e505c1c45cc35a7ec6b880cfec5fc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 23:50:07 2010 -0400
+
+    Simplify likely() implementation
+
+    Shrinks .text by 1%!
+
+ src/hb-private.h | 10 +---------
+ 1 file changed, 1 insertion(+), 9 deletions(-)
+
+commit 75651b20871047d3ec17f4221794b8ef5d60e14b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 23:44:51 2010 -0400
+
+    Fix warnings
+
+ src/hb-open-type-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4c20d8c057738b66150a88472714690e137884f8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 23:27:54 2010 -0400
+
+    Sprinkle a few strategic likely()'s
+
+    Shrinks the code size by some 2% even.
+
+ src/hb-open-file-private.hh | 4 ++--
+ src/hb-open-type-private.hh | 20 ++++++++++----------
+ 2 files changed, 12 insertions(+), 12 deletions(-)
+
+commit 69cb28bc13d236a01acf40da62e345c7e83ccba7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 23:13:08 2010 -0400
+
+    Remove a few likely()'s
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ src/hb-ot-layout-gpos-private.hh   | 8 ++++----
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+commit 24552ecf92982fe561dc47d5102fcf1a7b337c70
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 23:08:41 2010 -0400
+
+    Remove excess sub_format sanitize
+
+ src/hb-ot-layout-gpos-private.hh | 1 -
+ src/hb-ot-layout-gsub-private.hh | 1 -
+ 2 files changed, 2 deletions(-)
+
+commit f7adc5e9be352ac31ad3ab847abb6fceb239aa12
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 22:41:50 2010 -0400
+
+    Shrink NullPool now that we have accurate size tracking
+
+ src/hb-open-type-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 3d44fb6f15177dc6518166e435597936b044acc1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 22:22:54 2010 -0400
+
+    Fix warning
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b5db4f1e4eefa266a71a28b5496f47ff9d1a81e8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 22:22:22 2010 -0400
+
+    Clean up NO_INDEX
+
+ src/hb-open-file-private.hh       |  2 +-
+ src/hb-open-type-private.hh       | 10 ++++++----
+ src/hb-ot-layout-common-private.hh | 17 ++++-------------
+ src/hb-ot-layout.cc               |  8 ++++----
+ src/main.cc                       |  2 +-
+ 5 files changed, 16 insertions(+), 23 deletions(-)
+
+commit fe9bc070e1d545b0df2ea548eebf5a1fc4c92ddc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 21:39:24 2010 -0400
+
+    Fix awful confusion between lookup format and subtable format
+
+    As reported by John Daggett.
+
+ src/hb-ot-layout-gpos-private.hh | 14 +++++++-------
+ src/hb-ot-layout-gsub-private.hh | 14 +++++++-------
+ 2 files changed, 14 insertions(+), 14 deletions(-)
+
+commit 458ecbb60bb7e8e32aca62a562586d921d5396aa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 21:11:35 2010 -0400
+
+    Fix tracing order
+
+ src/hb-open-type-private.hh         | 14 +++++---------
+ src/hb-ot-layout-gsubgpos-private.hh |  3 +--
+ 2 files changed, 6 insertions(+), 11 deletions(-)
+
+commit 48146e5612f6d272d6962f6829c6d64a31edef89
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 20:07:56 2010 -0400
+
+    Don't fail sanitize on NULL data
+
+ src/hb-open-type-private.hh | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+commit d2c2ca8faf62fc380d4717d286556139a62d2356
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 19:58:25 2010 -0400
+
+    Fix comment
+
+ src/hb-open-type-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b435ab7e29c388e3b100f729957319931625a3a8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 19:51:57 2010 -0400
+
+    Fix accessing tables from NULL pointer
+
+ src/hb-font.cc                     | 2 +-
+ src/hb-open-type-private.hh | 5 +++++
+ src/hb-ot-layout.cc        | 6 +++---
+ 3 files changed, 9 insertions(+), 4 deletions(-)
+
+commit dacebcadae36b35531d635d81df2afb937677b7a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 19:45:41 2010 -0400
+
+    Simplify unions
+
+ src/hb-open-file-private.hh         |  24 +++----
+ src/hb-ot-layout-common-private.hh   |  24 +++----
+ src/hb-ot-layout-gdef-private.hh     |  24 +++----
+ src/hb-ot-layout-gpos-private.hh     | 120
+ +++++++++++++++++------------------
+ src/hb-ot-layout-gsub-private.hh     |  88 ++++++++++++-------------
+ src/hb-ot-layout-gsubgpos-private.hh |  44 ++++++-------
+ 6 files changed, 163 insertions(+), 161 deletions(-)
+
+commit fd671e02433bcbc1fd07901fa2d6065020f41ba8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 19:02:32 2010 -0400
+
+    Remove unused macro
+
+ src/hb-open-type-private.hh | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 0eb9fc6e37935707dba2bf4b3705de2161a08cb7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 19:01:17 2010 -0400
+
+    Change DEFINE_SIZE_VAR to DEFINE_SIZE_ARRAY
+
+ src/hb-open-file-private.hh         |  4 ++--
+ src/hb-open-type-private.hh         | 10 +++++-----
+ src/hb-ot-layout-common-private.hh   | 27 +++++++++++++++------------
+ src/hb-ot-layout-gdef-private.hh     | 10 +++++-----
+ src/hb-ot-layout-gpos-private.hh     | 25 ++++++++++++-------------
+ src/hb-ot-layout-gsub-private.hh     | 14 +++++++-------
+ src/hb-ot-layout-gsubgpos-private.hh | 16 ++++++++--------
+ 7 files changed, 54 insertions(+), 52 deletions(-)
+
+commit 596e471aa5053d955fb5d5b5923088c8814469b1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 18:47:48 2010 -0400
+
+    Cleanup DEFINE_SIZE_VAR2
+
+ src/hb-open-type-private.hh         | 18 +++++++++++-------
+ src/hb-ot-layout-common-private.hh   |  6 +++---
+ src/hb-ot-layout-gdef-private.hh     |  4 ++--
+ src/hb-ot-layout-gpos-private.hh     |  4 ++--
+ src/hb-ot-layout-gsub-private.hh     |  2 +-
+ src/hb-ot-layout-gsubgpos-private.hh |  4 ++--
+ 6 files changed, 21 insertions(+), 17 deletions(-)
+
+commit 33afa4e2dc352f08cc094703e3f01d3ecd83b354
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 18:35:02 2010 -0400
+
+    Minor
+
+ src/hb-open-type-private.hh | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+commit b961518b9611471ff7060e97686e5625974847eb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 18:20:54 2010 -0400
+
+    Simplify array access
+
+ src/hb-open-type-private.hh         | 29 ++++++++++-------------------
+ src/hb-ot-layout-common-private.hh   |  8 ++++----
+ src/hb-ot-layout-gsub-private.hh     |  6 +++---
+ src/hb-ot-layout-gsubgpos-private.hh | 16 ++++++++--------
+ 4 files changed, 25 insertions(+), 34 deletions(-)
+
+commit 54842374c2b291ef208c51ae1d853ec0403ccf84
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 18:13:32 2010 -0400
+
+    Fix check_struct to check min_size instead of sizeof
+
+ src/hb-open-type-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ed07422c33bbb52ff4d79e65986171e3f07697d8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 18:08:46 2010 -0400
+
+    Further cleanup of sizeof
+
+ src/hb-open-type-private.hh         |  7 +++++--
+ src/hb-ot-layout-common-private.hh   |  4 ++++
+ src/hb-ot-layout-gdef-private.hh     |  4 ++++
+ src/hb-ot-layout-gpos-private.hh     | 10 +++++++---
+ src/hb-ot-layout-gsub-private.hh     |  4 +++-
+ src/hb-ot-layout-gsubgpos-private.hh |  2 ++
+ 6 files changed, 25 insertions(+), 6 deletions(-)
+
+commit a82ef7a893b773a17f7548375de9f588dfc83aba
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 17:55:03 2010 -0400
+
+    Remove CastP completely
+
+ src/hb-open-type-private.hh | 39 +++++++++++++++++----------------------
+ 1 file changed, 17 insertions(+), 22 deletions(-)
+
+commit 40cbefe858192531ed64dd51d402f7ca7b8153a3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 17:47:22 2010 -0400
+
+    Remove unnecessary casts
+
+ src/hb-open-type-private.hh         | 12 ++++++------
+ src/hb-ot-layout-common-private.hh   |  2 +-
+ src/hb-ot-layout-gpos-private.hh     | 34
+ +++++++++++++++++-----------------
+ src/hb-ot-layout-gsub-private.hh     |  4 ++--
+ src/hb-ot-layout-gsubgpos-private.hh | 34
+ +++++++++++++++++-----------------
+ 5 files changed, 43 insertions(+), 43 deletions(-)
+
+commit 09766b1ec5ec55a61edbcd7a89ed3613cc92d4cb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 17:36:03 2010 -0400
+
+    Make StructAtOffset take a pointer
+
+    Is safer.
+
+ src/hb-open-type-private.hh     | 26 +++++++++++++-------------
+ src/hb-ot-layout-gpos-private.hh |  6 +++---
+ src/hb-ot-layout-gsub-private.hh |  4 ++--
+ 3 files changed, 18 insertions(+), 18 deletions(-)
+
+commit bea34c7cbb583cf7660776e95cab3171590b8427
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 17:28:16 2010 -0400
+
+    Further cleanup of DEFINE_SIZE
+
+ src/hb-open-file-private.hh         |  2 +-
+ src/hb-open-type-private.hh         | 10 +++++-----
+ src/hb-ot-layout-common-private.hh   | 16 ++++++++--------
+ src/hb-ot-layout-gdef-private.hh     |  8 ++++----
+ src/hb-ot-layout-gpos-private.hh     | 16 +++++-----------
+ src/hb-ot-layout-gsub-private.hh     | 14 +++++++-------
+ src/hb-ot-layout-gsubgpos-private.hh | 14 +++++++-------
+ 7 files changed, 37 insertions(+), 43 deletions(-)
+
+commit 0abcc3b48cfd51a22695c9e988938b2f45cb19d8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 17:04:20 2010 -0400
+
+    Cleanup
+
+ src/hb-open-type-private.hh | 18 ++++++++++--------
+ 1 file changed, 10 insertions(+), 8 deletions(-)
+
+commit b3651231bf80bb7009214547a75ed90e21815c68
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 16:57:29 2010 -0400
+
+    Remove ASSERT_SIZE in favor of the safer DEFINE_SIZE_STATIC
+
+ src/hb-open-file-private.hh         |  3 ++-
+ src/hb-open-type-private.hh         | 20 +++++++++++++---
+ src/hb-ot-layout-common-private.hh   | 24 ++++++++++++--------
+ src/hb-ot-layout-gdef-private.hh     | 22 +++++++++++-------
+ src/hb-ot-layout-gpos-private.hh     | 44
+ ++++++++++++++++++++----------------
+ src/hb-ot-layout-gsub-private.hh     | 32 ++++++++++++++++----------
+ src/hb-ot-layout-gsubgpos-private.hh | 27 ++++++++++++++--------
+ src/hb-private.h                    |  2 --
+ 8 files changed, 109 insertions(+), 65 deletions(-)
+
+commit 569da92bc6956f42d9b2d65c784e184fb6380efe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 10 16:38:32 2010 -0400
+
+    Cleanup ASSERT_SIZE_VAR
+
+ src/hb-open-file-private.hh         |  9 ++++++---
+ src/hb-open-type-private.hh         |  6 ++++--
+ src/hb-ot-layout-common-private.hh   | 22 ++++++++++++----------
+ src/hb-ot-layout-gdef-private.hh     |  3 ++-
+ src/hb-ot-layout-gpos-private.hh     | 30 +++++++++++++++++++-----------
+ src/hb-ot-layout-gsubgpos-private.hh | 10 ++++++----
+ src/hb-private.h                    |  8 --------
+ 7 files changed, 49 insertions(+), 39 deletions(-)
+
+commit 99bf03459ff2f00cf3fb7fa3c8b8336ec9fcca56
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 6 19:37:32 2010 -0400
+
+    Whitespace
+
+ src/hb-ot-layout-gpos-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 65f46b00333e20ab8a52a4b350747507541ec1db
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 6 19:35:19 2010 -0400
+
+    Simplify DEFINE_NULL_DATA
+
+    Using ::min_size.
+
+ src/hb-open-type-private.hh       | 6 +++---
+ src/hb-ot-layout-common-private.hh | 9 +++++----
+ 2 files changed, 8 insertions(+), 7 deletions(-)
+
+commit e45d3f86f9a5f3d29ca35a282de7f98e702878f9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 6 19:33:31 2010 -0400
+
+    Start cleaning up get_size()
+
+    So we know when the size is static and when dynamic.
+
+ src/hb-open-file-private.hh         |  7 +++---
+ src/hb-open-type-private.hh         | 42
+ +++++++++++++++++++++++++-----------
+ src/hb-ot-layout-common-private.hh   | 14 ++++++------
+ src/hb-ot-layout-gpos-private.hh     | 17 ++++++---------
+ src/hb-ot-layout-gsubgpos-private.hh | 19 ++++++++--------
+ 5 files changed, 55 insertions(+), 44 deletions(-)
+
+commit b157617644d1e38f680163889d1dc2e2f64d9ba3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 6 14:48:27 2010 -0400
+
+    Remove the last of SANITIZE macros: SANITIZE_SELF
+
+ src/hb-open-file-private.hh         |  4 ++--
+ src/hb-open-type-private.hh         | 21 ++++++++++++---------
+ src/hb-ot-layout-common-private.hh   | 16 ++++++++--------
+ src/hb-ot-layout-gdef-private.hh     |  6 +++---
+ src/hb-ot-layout-gpos-private.hh     | 26 +++++++++++++-------------
+ src/hb-ot-layout-gsubgpos-private.hh |  6 +++---
+ 6 files changed, 41 insertions(+), 38 deletions(-)
+
+commit 4f252fedc7136c66a9d7fbcb2978581986da6227
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 6 13:30:23 2010 -0400
+
+    Remove SANITIZE macro
+
+ src/hb-open-file-private.hh         |  4 ++--
+ src/hb-open-type-private.hh         |  6 ++----
+ src/hb-ot-layout-common-private.hh   | 18 +++++++++---------
+ src/hb-ot-layout-gdef-private.hh     |  6 +++---
+ src/hb-ot-layout-gpos-private.hh     | 18 +++++++++---------
+ src/hb-ot-layout-gsub-private.hh     | 26 +++++++++++++-------------
+ src/hb-ot-layout-gsubgpos-private.hh | 22 +++++++++++-----------
+ 7 files changed, 49 insertions(+), 51 deletions(-)
+
+commit c2ddfd2d268385257c77c09a9abeacf4230d5377
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 6 13:06:15 2010 -0400
+
+    Cleanup Value casts
+
+ src/hb-ot-layout-gpos-private.hh | 34 +++++++++++++++++++++-------------
+ 1 file changed, 21 insertions(+), 13 deletions(-)
+
+commit 41a93d2c1ff175ef06328a99983577459c2d34b0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 6 12:55:14 2010 -0400
+
+    Remove SANITIZE_WITH_BASE
+
+ src/hb-open-file-private.hh         |  2 +-
+ src/hb-open-type-private.hh         |  2 -
+ src/hb-ot-layout-common-private.hh   |  6 +--
+ src/hb-ot-layout-gdef-private.hh     | 24 +++++-----
+ src/hb-ot-layout-gpos-private.hh     | 90
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-gsub-private.hh     | 31 ++++++-------
+ src/hb-ot-layout-gsubgpos-private.hh | 44 +++++++++---------
+ 7 files changed, 98 insertions(+), 101 deletions(-)
+
+commit f5fab0c71837371cce32dc3e9edca1ccb8d44e29
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 6 10:26:52 2010 -0400
+
+    Remove SANITIZE_MEM
+
+ src/hb-open-type-private.hh         | 4 +---
+ src/hb-ot-layout-common-private.hh   | 2 +-
+ src/hb-ot-layout-gpos-private.hh     | 2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 6 +++---
+ 4 files changed, 6 insertions(+), 8 deletions(-)
+
+commit 4ad2cc5dec6b0639da2b1846282bdd99d06d5ff1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 6 09:24:24 2010 -0400
+
+    Rename check to check_range
+
+ src/hb-open-type-private.hh | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 1cd1e117d060d38e314618b627d7663cb01ed584
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 5 20:15:14 2010 -0400
+
+    Remove SANITIZE_ARRAY
+
+ src/hb-open-file-private.hh         |  2 +-
+ src/hb-open-type-private.hh         | 16 +++++++---------
+ src/hb-ot-layout-gpos-private.hh     |  8 ++++----
+ src/hb-ot-layout-gsubgpos-private.hh |  4 ++--
+ 4 files changed, 14 insertions(+), 16 deletions(-)
+
+commit 583d7f9586ce69754f1354aa3895e6d732a0c2ce
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 5 01:49:22 2010 -0400
+
+    Cosmetic
+
+ src/hb-open-file-private.hh         |  3 ++-
+ src/hb-open-type-private.hh         |  6 ++++--
+ src/hb-ot-layout-common-private.hh   | 15 ++++++++++-----
+ src/hb-ot-layout-gpos-private.hh     |  5 ++---
+ src/hb-ot-layout-gsub-private.hh     |  3 ++-
+ src/hb-ot-layout-gsubgpos-private.hh |  9 +++++----
+ 6 files changed, 25 insertions(+), 16 deletions(-)
+
+commit 705e215268aa95c2bc6af8af9b48b72b690ec1f7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 5 01:40:25 2010 -0400
+
+    Minor
+
+ src/hb-open-type-private.hh         | 4 ++--
+ src/hb-ot-layout-gpos-private.hh     | 2 +-
+ src/hb-ot-layout-gsub-private.hh     | 2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 4 files changed, 5 insertions(+), 5 deletions(-)
+
+commit b18eafd0f62f854d15276c78f99843aecd47acad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 5 01:39:26 2010 -0400
+
+    Minor
+
+ src/hb-open-type-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4169710911450e0f9bc045fe279bfc8ba9e8457c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 5 01:37:58 2010 -0400
+
+    Simplify chaining
+
+ src/hb-ot-layout-gsubgpos-private.hh | 61
+ +++++++++++++++---------------------
+ 1 file changed, 25 insertions(+), 36 deletions(-)
+
+commit 1911b9d21b2b7b6b8219ce6c888540e3a60aa9c3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 5 01:32:04 2010 -0400
+
+    Remove APPLY_ARG_DEF and APPLY_ARG
+
+ src/hb-ot-layout-gpos-private.hh     | 92
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-gsub-private.hh     | 88
+ +++++++++++++++++-----------------
+ src/hb-ot-layout-gsubgpos-private.hh | 89
+ ++++++++++++++++------------------
+ 3 files changed, 132 insertions(+), 137 deletions(-)
+
+commit 6c42cddfe53a1c664081862bb9a3e1c38d05a823
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 5 01:30:48 2010 -0400
+
+    Port apply to use hb_trace_t
+
+ src/hb-ot-layout-gpos-private.hh     |  9 ++++-----
+ src/hb-ot-layout-gsub-private.hh     | 11 +++++------
+ src/hb-ot-layout-gsubgpos-private.hh | 13 +++++--------
+ 3 files changed, 14 insertions(+), 19 deletions(-)
+
+commit 969c9705ae0c64577c3f69f5300fec975f952e1f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 5 01:23:44 2010 -0400
+
+    Move context_length into apply_context
+
+ src/hb-ot-layout-gpos-private.hh     |  9 ++---
+ src/hb-ot-layout-gsub-private.hh     |  9 ++---
+ src/hb-ot-layout-gsubgpos-private.hh | 70
+ ++++++++++++++++++++----------------
+ 3 files changed, 50 insertions(+), 38 deletions(-)
+
+commit 94a23aaeca39c662614037ef887412249bdc8d49
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 5 01:13:09 2010 -0400
+
+    Move buffer into apply_context
+
+ src/hb-buffer-private.h             | 30 +++++++++--------
+ src/hb-ot-layout-gpos-private.hh     | 64
+ ++++++++++++++++++++----------------
+ src/hb-ot-layout-gsub-private.hh     | 45 ++++++++++++++-----------
+ src/hb-ot-layout-gsubgpos-private.hh | 49 ++++++++++++++-------------
+ 4 files changed, 106 insertions(+), 82 deletions(-)
+
+commit 63493f956dca519df49da0a6badc3cb0a1b92779
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 5 01:01:05 2010 -0400
+
+    Move layout_context into apply_context
+
+ src/hb-ot-layout-gpos-private.hh     | 105
+ ++++++++++++++++++-----------------
+ src/hb-ot-layout-gsub-private.hh     |  47 ++++++++--------
+ src/hb-ot-layout-gsubgpos-private.hh |  11 ++--
+ 3 files changed, 82 insertions(+), 81 deletions(-)
+
+commit fff9aa263d1daf7c5117cf383fafa5043d5eb5af
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 5 00:32:21 2010 -0400
+
+    Minor
+
+ src/hb-ot-layout-gsubgpos-private.hh | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+commit 27e302dc8e794ff6bf878bc76e17d336d510849e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 5 00:26:16 2010 -0400
+
+    I keep changing my mind about this
+
+ src/hb-open-type-private.hh | 30 ++++++++++--------------------
+ 1 file changed, 10 insertions(+), 20 deletions(-)
+
+commit 39840474afd2cda9ff576c08aff9c87095496c27
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 5 00:23:19 2010 -0400
+
+    Remove SANITIZE_ARG_DEF and SANITIZE_ARG
+
+ src/hb-open-file-private.hh         |  16 ++---
+ src/hb-open-type-private.hh         |  59 +++++++--------
+ src/hb-ot-layout-common-private.hh   |  42 +++++------
+ src/hb-ot-layout-gdef-private.hh     |  28 ++++----
+ src/hb-ot-layout-gpos-private.hh     | 136
+ +++++++++++++++++------------------
+ src/hb-ot-layout-gsub-private.hh     |  72 +++++++++----------
+ src/hb-ot-layout-gsubgpos-private.hh |  46 ++++++------
+ 7 files changed, 197 insertions(+), 202 deletions(-)
+
+commit b261e2ad5c5a065599ce1dbc4ba437caa2cee1e9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 5 00:20:16 2010 -0400
+
+    Remove trace from sanitize_shallow()
+
+ src/hb-open-type-private.hh | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit dfc8cbe85479dde1ffdc6b2e73f4907331d77a19
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 5 00:19:46 2010 -0400
+
+    Add hb_trace_t
+
+ src/hb-open-type-private.hh | 33 +++++++++++++++++++--------------
+ 1 file changed, 19 insertions(+), 14 deletions(-)
+
+commit 20e3dd5d292b65f70d2eae63b8d8713a1c889d47
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 4 23:21:57 2010 -0400
+
+    Make sanitize_depth variable automatic and not passed through
+    function args
+
+ src/hb-open-type-private.hh | 72
+ +++++++++++++++++++++++++++------------------
+ 1 file changed, 43 insertions(+), 29 deletions(-)
+
+commit 4a446ac35136eff23d55f47bdd7b40095ad707ab
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 4 22:46:21 2010 -0400
+
+    Use function template for pass-thru argument
+
+ src/hb-open-type-private.hh     | 26 ++++++--------------------
+ src/hb-ot-layout-gpos-private.hh |  6 +++---
+ 2 files changed, 9 insertions(+), 23 deletions(-)
+
+commit 98daaf183d6dbf2b68959da608cd9876ba55d7aa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 4 22:42:49 2010 -0400
+
+    Make _hb_sanitize_*() methods of the context object
+
+ src/hb-open-type-private.hh | 190
+ +++++++++++++++++++++++---------------------
+ 1 file changed, 98 insertions(+), 92 deletions(-)
+
+commit bb029af943faa9905e652d58856998687e60c31d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 4 15:28:52 2010 -0400
+
+    Remove SANITIZE_THIS
+
+ src/hb-open-file-private.hh         |  2 +-
+ src/hb-open-type-private.hh         |  3 +-
+ src/hb-ot-layout-common-private.hh   |  4 +--
+ src/hb-ot-layout-gdef-private.hh     | 25 ++++++++--------
+ src/hb-ot-layout-gpos-private.hh     | 55
+ ++++++++++++++++++++----------------
+ src/hb-ot-layout-gsub-private.hh     | 29 ++++++++++---------
+ src/hb-ot-layout-gsubgpos-private.hh | 42 +++++++++++++--------------
+ 7 files changed, 85 insertions(+), 75 deletions(-)
+
+commit 2226fc93d1427b8830bfb892fe1b25b488ea36dc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 4 15:12:17 2010 -0400
+
+    Rename SANITIZE_BASE to SANITIZE_WITH_BASE
+
+ src/hb-open-type-private.hh       | 11 +++++++----
+ src/hb-ot-layout-common-private.hh |  3 ++-
+ src/hb-ot-layout-gpos-private.hh   | 15 ++++++++-------
+ 3 files changed, 17 insertions(+), 12 deletions(-)
+
+commit 89da1346ec3a8dec8a368df46d61ca75356e22fa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 4 15:01:45 2010 -0400
+
+    Remove SANITIZE_OBJ
+
+ src/hb-open-type-private.hh | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit 4d4cce96266b777a01cec03e8766dc8c0b159351
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 4 14:57:55 2010 -0400
+
+    Remove SANITIZE_THIS2
+
+ src/hb-open-type-private.hh         |  2 --
+ src/hb-ot-layout-common-private.hh   |  3 ++-
+ src/hb-ot-layout-gdef-private.hh     | 10 ++++++----
+ src/hb-ot-layout-gpos-private.hh     |  9 ++++++---
+ src/hb-ot-layout-gsub-private.hh     | 11 +++++++----
+ src/hb-ot-layout-gsubgpos-private.hh | 14 +++++++++-----
+ 6 files changed, 30 insertions(+), 19 deletions(-)
+
+commit 26bfcb64e473c40e439d6efbe974781dada28eca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 4 14:49:45 2010 -0400
+
+    Cosmetic
+
+ src/hb-ot-layout-gdef-private.hh     | 5 ++---
+ src/hb-ot-layout-gsubgpos-private.hh | 7 +++----
+ 2 files changed, 5 insertions(+), 7 deletions(-)
+
+commit be74284673a1944e0f1884e861c3fe8f9855172c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 4 14:47:05 2010 -0400
+
+    Remove SANITIZE_THIS3
+
+ src/hb-open-type-private.hh         |  1 -
+ src/hb-ot-layout-gpos-private.hh     | 21 +++++++++++++++------
+ src/hb-ot-layout-gsubgpos-private.hh |  8 ++++++--
+ 3 files changed, 21 insertions(+), 9 deletions(-)
+
+commit fbab9f9bd8ba59e7e5811f33c1dda198f95cf05a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 4 14:42:10 2010 -0400
+
+    Remove SANITIZE_BASE2
+
+ src/hb-open-type-private.hh     | 1 -
+ src/hb-ot-layout-gpos-private.hh | 3 ++-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit 73c7dbf7f5433c0cdd467ef32402f52867e9798e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 4 14:40:55 2010 -0400
+
+    Remove SANITIZE2
+
+ src/hb-open-type-private.hh     | 1 -
+ src/hb-ot-layout-gsub-private.hh | 2 +-
+ 2 files changed, 1 insertion(+), 2 deletions(-)
+
+commit c9f14687a30866181feb57ee2736a147ec9f25a1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 4 14:38:08 2010 -0400
+
+    Remove the NEUTER macro, move code to a method
+
+ src/hb-open-type-private.hh | 21 +++++++++++++--------
+ 1 file changed, 13 insertions(+), 8 deletions(-)
+
+commit 30fa2821c277df99a14089749313dfe2b541e2d0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 4 14:28:18 2010 -0400
+
+    Make internal method private
+
+ src/hb-open-type-private.hh | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+commit ce5694c79671bf75990923c1da17bb611e4e7d15
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 4 14:10:18 2010 -0400
+
+    [main] Recognize Apple SFNTs
+
+ src/hb-open-file-private.hh | 4 ++--
+ src/main.cc                | 6 ++++++
+ 2 files changed, 8 insertions(+), 2 deletions(-)
+
+commit 710500a93ecc2a0c595045602aa367073485ff91
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 3 23:11:16 2010 -0400
+
+    Comment new SFNT tags
+
+ src/hb-open-file-private.hh | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit 64d3fc8d0dada673245cc8c0b1c12cd849b30997
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 3 22:51:19 2010 -0400
+
+    Cosmetic: Rename HB_LIKELY/HB_UNLIKELY to likely/unlikely
+
+ src/hb-buffer.c                     | 14 ++++----
+ src/hb-font.cc                              |  6 ++--
+ src/hb-ft.c                         | 14 ++++----
+ src/hb-language.c                   |  2 +-
+ src/hb-object-private.h             | 10 +++---
+ src/hb-open-file-private.hh         |  2 +-
+ src/hb-open-type-private.hh         | 38 ++++++++++-----------
+ src/hb-ot-layout-common-private.hh   | 16 ++++-----
+ src/hb-ot-layout-gdef-private.hh     |  2 +-
+ src/hb-ot-layout-gpos-private.hh     | 64
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-gsub-private.hh     | 52 ++++++++++++++---------------
+ src/hb-ot-layout-gsubgpos-private.hh | 40 +++++++++++-----------
+ src/hb-ot-layout.cc                 | 12 +++----
+ src/hb-ot-tag.c                     |  2 +-
+ src/hb-private.h                    |  8 ++---
+ src/hb-shape.c                              | 10 +++---
+ src/hb-unicode.c                    |  2 +-
+ 17 files changed, 147 insertions(+), 147 deletions(-)
+
+commit fa3b3d58443a7c22eca3f86243993ba2d4bd9f4a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 3 22:47:22 2010 -0400
+
+    Mark a couple functions as inline
+
+ src/hb-open-type-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 6b84198f9d471defb6f55d44d4f5423df70b2a10
+Merge: 631d10b eaf29ed
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 3 22:46:52 2010 -0400
+
+    Merge remote branch 'jrmuizel/master'
+
+commit eaf29edb8fa49390e5f48b78105dfd173aff445b
+Author: Jeff Muizelaar <jmuizelaar@mozilla.com>
+Date:  Mon May 3 22:27:56 2010 -0400
+
+    HB_UNUSED is unneeded on static inline functions
+
+ src/hb-object-private.h     | 2 +-
+ src/hb-open-type-private.hh | 6 +++---
+ src/hb-private.h           | 4 ++--
+ 3 files changed, 6 insertions(+), 6 deletions(-)
+
+commit 4ce578ed369f1526c91deedcf9e72537b3e4328f
+Author: Jeff Muizelaar <jmuizelaar@mozilla.com>
+Date:  Mon May 3 15:03:53 2010 -0400
+
+    Include the tags from the Apple specification for TrueType fonts
+
+ src/hb-open-file-private.hh | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 631d10b728d9e1a02c7dddf505d4fae5e244c6e8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 2 21:14:21 2010 -0400
+
+    Remove unused method
+
+ src/hb-open-file-private.hh | 5 -----
+ 1 file changed, 5 deletions(-)
+
+commit f0abcd69408a3af65207cdf8847575ade4579bd4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 2 18:14:25 2010 -0400
+
+    Whitespace
+
+ src/hb-open-type-private.hh | 9 ++++-----
+ 1 file changed, 4 insertions(+), 5 deletions(-)
+
+commit a8d960bd26883ee937b04ca2a3c16a3644870356
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 14:31:56 2010 -0400
+
+    [GPOS] Speedup apply_value()
+
+ src/hb-ot-layout-gpos-private.hh | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+commit 2cd1ea4411d0808559a942ff3fa4e637f9c9a9c8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 14:15:32 2010 -0400
+
+    [ft] Disallow getting the entire font data with tag=0
+
+ src/hb-ft.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 33d13fdda99acaeffa9600737e8870278d053ebe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 13:56:44 2010 -0400
+
+    Rename HB_GNUC_UNUSED -> HB_UNUSED
+
+ src/hb-buffer.c                     |  6 ++---
+ src/hb-font.cc                              | 44
+ ++++++++++++++++++------------------
+ src/hb-ft.c                         | 16 ++++++-------
+ src/hb-object-private.h             |  2 +-
+ src/hb-open-type-private.hh         | 18 +++++++--------
+ src/hb-ot-layout-gdef-private.hh     |  4 ++--
+ src/hb-ot-layout-gpos-private.hh     |  4 ++--
+ src/hb-ot-layout-gsubgpos-private.hh |  6 ++---
+ src/hb-ot-layout.cc                 |  4 ++--
+ src/hb-ot-shape.c                   |  2 +-
+ src/hb-private.h                    | 16 ++++++-------
+ src/hb-shape.c                              | 32 +++++++++++++-------------
+ src/hb-unicode.c                    |  8 +++----
+ 13 files changed, 81 insertions(+), 81 deletions(-)
+
+commit 7d3a126334f8e6f6441561c1bb592bd3fa7a2c5c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 13:54:01 2010 -0400
+
+    Define HB_FUNC for portability to non-gcc
+
+ src/hb-open-type-private.hh         | 12 ++++++------
+ src/hb-ot-layout-gsubgpos-private.hh |  2 +-
+ src/hb-private.h                    |  9 +++++++++
+ 3 files changed, 16 insertions(+), 7 deletions(-)
+
+commit fa030175ca998b00cc42cbced6e98de323ec01ec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 13:48:26 2010 -0400
+
+    [sanitize] Make debug code always available to the compiler
+
+    Such that we don't break debug build all the time.
+
+ src/hb-open-type-private.hh | 71
+ ++++++++++++++++++++-------------------------
+ 1 file changed, 31 insertions(+), 40 deletions(-)
+
+commit fde6f5bd682f5ad0cc5e2ec69fc831b0192bf90b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 04:41:41 2010 -0400
+
+    Convert to uppercase in hb_ot_tag_from_language()
+
+ src/hb-ot-tag.c | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit 6f729b45b04243c42ad7201b67cda9d5e5c363f1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 03:59:06 2010 -0400
+
+    More contour point use
+
+ src/hb-font.cc                          |  1 +
+ src/hb-ot-layout-gdef-private.hh |  8 +++++---
+ src/hb-ot-layout-gpos-private.hh | 13 +++++++++----
+ 3 files changed, 15 insertions(+), 7 deletions(-)
+
+commit 3840b6b50503ba2c9a99f774284e0077baffa8a0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 03:48:27 2010 -0400
+
+    [gdef] Fix delta scale
+
+ src/hb-ot-layout-gdef-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4ac6cc284b2c1eb670c2a3659ec385ed729acac4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 03:48:11 2010 -0400
+
+    [gdef] Fix rounding
+
+ src/hb-ot-layout-gdef-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit b52fbb1bab608bda76efb936f08344afaec600a1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 03:47:00 2010 -0400
+
+    [gdef] Implement getting contour point
+
+ src/hb-ot-layout-gdef-private.hh | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit 4c5fbae011a33b9efef5aedd61c357fc0ded1113
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 03:39:39 2010 -0400
+
+    Make sure mirroring is done in original direction
+
+    Reported by Jonathan Kew.
+
+ src/hb-shape.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit ce23c9234b87513d6460fb89bad178fb8537e161
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 03:31:03 2010 -0400
+
+    Use BCP47 private-use tags for OpenType tag language string mapping
+
+ src/hb-ot-tag.c | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+commit eaf1d9a46c4a320f3b0026c0a610f95a620d566f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 03:11:32 2010 -0400
+
+    Minor
+
+ src/hb-ot-tag.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 3a4784fe88a0f14147ccdd3633952c9c0f3ae8f3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 02:58:38 2010 -0400
+
+    Fix bug in hb_language_from_string()
+
+    Reported by Jonathan Kew.
+
+ src/hb-language.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 602e4f8d5512cdf48c696ad64ad62ff97f6dbdcc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 02:28:54 2010 -0400
+
+    Use const_cast
+
+ src/hb-open-type-private.hh | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit abff3580a5b229641086e0da097efee11d22ff81
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 02:27:20 2010 -0400
+
+    Add const
+
+ src/hb-object-private.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 6617eada95928457a25e29f793f1a93c6b3edaec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 02:25:30 2010 -0400
+
+    Rename apply_context -> context
+
+ src/hb-ot-layout-gpos-private.hh     | 22 +++++++++++-----------
+ src/hb-ot-layout-gsub-private.hh     | 26 +++++++++++++-------------
+ src/hb-ot-layout-gsubgpos-private.hh | 12 ++++++------
+ 3 files changed, 30 insertions(+), 30 deletions(-)
+
+commit b4c7fab762935b9c182b3e2ac3415f29fc6a5558
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 02:24:25 2010 -0400
+
+    Rename
+
+ src/hb-ot-layout-gpos-private.hh     | 98
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-gsub-private.hh     | 46 ++++++++---------
+ src/hb-ot-layout-gsubgpos-private.hh | 12 ++---
+ 3 files changed, 78 insertions(+), 78 deletions(-)
+
+commit 1376fb7bf9ef07970f0ba13dc64d6a8ab8252762
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 02:19:21 2010 -0400
+
+    [apply] Use a context object to reduce number of parameters passed
+    around
+
+ src/hb-open-type-private.hh         |  5 ++---
+ src/hb-ot-layout-gpos-private.hh     | 26 ++++++++++++++-----------
+ src/hb-ot-layout-gsub-private.hh     | 37
+ +++++++++++++++++++-----------------
+ src/hb-ot-layout-gsubgpos-private.hh | 29 +++++++++++++++-------------
+ 4 files changed, 53 insertions(+), 44 deletions(-)
+
+commit 173fde7087c0db3e99409f1119530477c14072f5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 01:47:30 2010 -0400
+
+    Further simplify tracing
+
+ src/hb-open-type-private.hh         | 31 +++++++++++++++----------------
+ src/hb-ot-layout-gpos-private.hh     |  9 +++++----
+ src/hb-ot-layout-gsub-private.hh     | 11 ++++++-----
+ src/hb-ot-layout-gsubgpos-private.hh |  8 --------
+ 4 files changed, 26 insertions(+), 33 deletions(-)
+
+commit bc200457430c083914a64bf4b056153506749610
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 29 01:40:26 2010 -0400
+
+    Simplify trace code
+
+ src/hb-open-type-private.hh         | 41 +++++++++---------------------
+ src/hb-ot-layout-gsubgpos-private.hh | 25 +++++--------------
+ src/hb-private.h                    | 48
+ +++++++++++++++++++++++++-----------
+ 3 files changed, 51 insertions(+), 63 deletions(-)
+
+commit 807c5b03a2251a3c29a520852639421783101b55
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 28 20:25:22 2010 -0400
+
+    [sanitize] Make debug code always available to the compiler
+
+    Such that we don't break debug build all the time.
+
+ src/hb-open-type-private.hh         | 31 ++++++++++++++++++++-----------
+ src/hb-ot-layout-gsubgpos-private.hh |  2 +-
+ 2 files changed, 21 insertions(+), 12 deletions(-)
+
+commit 74e313c016704e1d9157c2763691c4151f049dfc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 28 15:15:09 2010 -0400
+
+    [gsubgpos] Make debug code always available to the compiler
+
+    Such that we don't break debug build all the time.
+
+ src/hb-ot-layout-gsubgpos-private.hh | 52
+ ++++++++++++++++++------------------
+ 1 file changed, 26 insertions(+), 26 deletions(-)
+
+commit 41011a6ed7c4891b20c0eddbb6d4ad9c820cfddb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 28 13:33:09 2010 -0400
+
+    Fix compiler warning about value unused
+
+ src/hb-object-private.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 863df68e894b7644dcd12da88aa22f73edf829dc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 28 13:29:55 2010 -0400
+
+    [object] Make debug code always available to the compiler
+
+    Such that we don't break debug build all the time.
+
+ src/hb-object-private.h | 42 +++++++++++++++++++++++++++---------------
+ 1 file changed, 27 insertions(+), 15 deletions(-)
+
+commit 1d52151a19ed8ec776276aac5cc6ce3769e0d947
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 28 13:18:41 2010 -0400
+
+    Minor
+
+ src/hb-private.h | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+commit 444fffb1ab378cb3022e2a8e9f90d20a00c82f6a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 28 13:16:38 2010 -0400
+
+    [blob] Make debug code always available to the compiler
+
+    Such that we don't break debug build all the time.
+
+ src/hb-blob.c | 78
+ ++++++++++++++++++++++++-----------------------------------
+ 1 file changed, 32 insertions(+), 46 deletions(-)
+
+commit ba51b25c7ba568aeced17f016eceba987569c5d9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 28 13:10:36 2010 -0400
+
+    Fix build. Ouch!
+
+ src/hb-object-private.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit a92f0fda7fee9d60b399b8865541bf73e6e30141
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 28 13:09:40 2010 -0400
+
+    Fix debug build
+
+ src/hb-open-type-private.hh         | 4 ++--
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+commit c165f25410f817d248ad5d07e1827d33efd1b0a0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 27 23:28:10 2010 -0400
+
+    [object] Actually handle malloc() failure
+
+    Caught by John Daggett.
+
+ src/hb-object-private.h | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+commit caff7db93d205e32a535d49e51a3cad70f91dfdd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 26 10:07:35 2010 -0400
+
+    Fix Device::get_size() calculation
+
+ src/hb-ot-layout-common-private.hh | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+commit 66d6eb30eb0b8d61e00f86ea0c7829abaddb52fa
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Apr 25 23:01:45 2010 -0400
+
+    Rename Var to Obj
+
+ src/hb-open-type-private.hh | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 690b9194619589c32ffc0c092e45262ae7776e79
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Apr 25 22:51:05 2010 -0400
+
+    Remove use of flexible arrays
+
+    Also remove wrong ASSERT_SIZE that would trigger only when not using
+    flexible arrays (which was the case on win32, but not with gcc).
+
+ configure.ac               | 2 --
+ src/hb-open-file-private.hh | 1 -
+ src/hb-private.h           | 4 ----
+ 3 files changed, 7 deletions(-)
+
+commit 1cebfbb0636b13dc5dc6a4b8b7acbb7da28129d2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 20:49:18 2010 -0400
+
+    Cleanup hb_face_create_for_data()
+
+ src/Makefile.am       |  1 +
+ src/hb-blob-private.h | 57 +++++++++++++++++++++++++++++++
+ src/hb-blob.c        | 20 ++---------
+ src/hb-font-private.h |  3 --
+ src/hb-font.cc        | 92
+ +++++++++++++++++++++++++++++++++++----------------
+ 5 files changed, 123 insertions(+), 50 deletions(-)
+
+commit d6b3c83a90f60bedb4049750ffb351161710980d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 19:59:53 2010 -0400
+
+    Allow get_table() to return NULL
+
+ src/hb-font.cc | 6 +++++-
+ src/hb-ft.c   | 2 +-
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+commit ad3653751b1e4a03f7058200cb83f64db46722d5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 19:43:40 2010 -0400
+
+    Typo
+
+ src/hb-open-type-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 990443e5f282ad61de00dcf1ebff9cf1d5bc2d70
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 17:53:32 2010 -0400
+
+    Remove lock_instance()
+
+ src/hb-font.cc                     | 2 +-
+ src/hb-open-type-private.hh | 4 ----
+ src/hb-ot-layout.cc        | 6 +++---
+ 3 files changed, 4 insertions(+), 8 deletions(-)
+
+commit 187454c595559ce48d072fee6bccb51f3de283d4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 16:35:01 2010 -0400
+
+    Add different casts from pointer and ref to avoid bugs
+
+ src/hb-open-type-private.hh     | 22 +++++++++++++++-------
+ src/hb-ot-layout-gpos-private.hh |  8 ++++----
+ src/hb-ot-layout-gsub-private.hh | 12 ++++++------
+ src/main.cc                     |  6 +++---
+ 4 files changed, 28 insertions(+), 20 deletions(-)
+
+commit efb324a46ff64adb4ec8612b4089e8daff1e6d8e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 16:22:54 2010 -0400
+
+    Remove GET_FOR_DATA macros
+
+    The major-version check is now handled by sanitize.  If major
+    doesn't match, we reject and fall back to the Null object.
+
+ src/hb-open-file-private.hh         |  4 ----
+ src/hb-open-type-private.hh         | 23 ++---------------------
+ src/hb-ot-layout-gdef-private.hh     |  2 --
+ src/hb-ot-layout-gpos-private.hh     |  3 ---
+ src/hb-ot-layout-gsub-private.hh     |  3 ---
+ src/hb-ot-layout-gsubgpos-private.hh |  2 --
+ src/main.cc                         |  6 +++---
+ 7 files changed, 5 insertions(+), 38 deletions(-)
+
+commit f1aaa2a43654c28405ffd393de2cb127437c99a5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 15:19:50 2010 -0400
+
+    Add TODO
+
+ src/hb-ft.c                       |  2 --
+ src/hb-ft.h                       |  1 +
+ src/hb-open-file-private.hh       |  2 +-
+ src/hb-open-type-private.hh       |  2 ++
+ src/hb-ot-layout-common-private.hh | 12 ++++++------
+ 5 files changed, 10 insertions(+), 9 deletions(-)
+
+commit 33d4d4325e15e332105ea8f361bab79ee542f0f8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 14:56:55 2010 -0400
+
+    Zero glyph metrics before calling user callback
+
+ src/hb-font.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 4206e9511a222c0c50cc9b4fe72ec421983bba2c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 14:44:55 2010 -0400
+
+    More warning fixes
+
+ src/hb-ot-layout.cc | 4 ++--
+ src/hb-ot-shape.c   | 9 ++++-----
+ src/hb-shape.c      | 32 ++++++++++++++++----------------
+ 3 files changed, 22 insertions(+), 23 deletions(-)
+
+commit ef66ebeabc6c234004bd9e9bb67eb5c9711f4a1e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 14:40:36 2010 -0400
+
+    Remove unused parameter
+
+ src/hb-open-file-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 1d720192b193f48b44be0385eda3c2c5d5cd28ad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 14:39:10 2010 -0400
+
+    Fix compile warnings (HB_GNUC_UNUSED)
+
+ src/hb-buffer.c            |  6 +++---
+ src/hb-font.cc                     | 31 ++++++++++++++++++++++---------
+ src/hb-ft.c                | 29 +++++++++++++++++++++--------
+ src/hb-open-type-private.hh | 2 +-
+ src/hb-unicode.c           |  8 ++++----
+ 5 files changed, 51 insertions(+), 25 deletions(-)
+
+commit 8dfdca599c0a3ba5255131002910bca3b381acac
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 14:07:34 2010 -0400
+
+    No need to keep blob in sanitize context
+
+ src/hb-open-type-private.hh | 13 +++++--------
+ 1 file changed, 5 insertions(+), 8 deletions(-)
+
+commit 254933c397f1ce9796f59689a25f9fc2e58df4ea
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 13:57:10 2010 -0400
+
+    When sanitizing, delay making writable
+
+    Before, as soon as we needed to make an edit, we tried to make
+    the blob
+    writable inplace.  That grows code unnecessarily though.  We can
+    simply
+    fail, make writable, then start again.  That's indeed what the
+    fallback
+    was doing anyway.
+
+ src/hb-open-type-private.hh | 11 +++++++----
+ 1 file changed, 7 insertions(+), 4 deletions(-)
+
+commit 71e735e915c85536ee4d3035576f7426e8cd19dd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 13:48:06 2010 -0400
+
+    [blob] Fallback to copying if mprotect() fails
+
+ src/hb-blob.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit 1aa4666b914da7747fc58a8f6f2d913c94e3b8da
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 13:32:03 2010 -0400
+
+    Cleanup OpenTypeFontFile
+
+ src/hb-open-file-private.hh | 44
+ ++++++++++++++++++++++++++------------------
+ src/main.cc                |  2 +-
+ 2 files changed, 27 insertions(+), 19 deletions(-)
+
+commit ae4190cafe927649f8ff8be6a0082478d1298fda
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 23 12:33:02 2010 -0400
+
+    Properly define separate structs for TTCHeader and TTCHeaderVersion1
+
+ src/hb-open-file-private.hh | 71
+ +++++++++++++++++++++++++++++++++++----------
+ 1 file changed, 55 insertions(+), 16 deletions(-)
+
+commit a065f471b3bc23d33ef75217308efeaed4ffd033
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 20:15:11 2010 -0400
+
+    Cleanup Extension lookups
+
+    Two things:
+
+    1. Allow nested Extension lookups. The offset is always positive, so
+    it can't loop circularly.
+
+    2. Move the check for all Extension subtables having the same lookup
+    type to the correct place. Before it wasn't really working.
+
+ src/hb-ot-layout-gpos-private.hh | 29 +-------------------
+ src/hb-ot-layout-gsub-private.hh | 57
+ ++++++++++++++++++++++------------------
+ 2 files changed, 33 insertions(+), 53 deletions(-)
+
+commit a0bb49c5830f8a7f25d573ec57b79df2620ddba7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 18:47:03 2010 -0400
+
+    Add comment re bsearch effect on sanitize
+
+ src/hb-open-file-private.hh       | 2 +-
+ src/hb-ot-layout-common-private.hh | 8 ++++----
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+commit d632ec4000b3079150e6424e88a3ab7509f7445c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 18:33:12 2010 -0400
+
+    Cosmetic
+
+ src/hb-open-type-private.hh         | 6 +++---
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+commit a3263aa773ad7a914496792466c69047048b093c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 18:29:09 2010 -0400
+
+    Convert the last set of cast macros to templates
+
+ src/hb-open-file-private.hh         |  4 +--
+ src/hb-open-type-private.hh         | 53
+ +++++++++++++++++++++++-------------
+ src/hb-ot-layout-gpos-private.hh     | 16 +++++------
+ src/hb-ot-layout-gsub-private.hh     | 14 +++++-----
+ src/hb-ot-layout-gsubgpos-private.hh | 12 ++++----
+ 5 files changed, 57 insertions(+), 42 deletions(-)
+
+commit c38188a1912f72d9ef90ae1bcbdbba7ecce63371
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 16:52:09 2010 -0400
+
+    Remove unused macro
+
+ src/hb-open-type-private.hh | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 3b2c2df41b90f2a1d9e33b3dc15a92cff58a689a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 16:51:42 2010 -0400
+
+    Cleanup Extension sanitize()
+
+ src/hb-ot-layout-common-private.hh   | 20 +++-----------------
+ src/hb-ot-layout-gpos-private.hh     | 20 +++++++++++++-------
+ src/hb-ot-layout-gsub-private.hh     | 20 +++++++++++++-------
+ src/hb-ot-layout-gsubgpos-private.hh | 13 ++++---------
+ 4 files changed, 33 insertions(+), 40 deletions(-)
+
+commit 1856184b93760a1a54fb1a3c54281bb252df7ce6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 14:15:11 2010 -0400
+
+    Fail sanitize on major version mismatch
+
+    We handle major-version differences via get_for_data(), so sanitize
+    should never see a major version mismatch.
+
+ src/hb-open-file-private.hh         | 4 ++--
+ src/hb-ot-layout-gdef-private.hh     | 2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 3 files changed, 4 insertions(+), 4 deletions(-)
+
+commit df3f505dcfeefc8cd395900b116767d22549f756
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 14:11:33 2010 -0400
+
+    More sanitize cleanup
+
+ src/hb-open-file-private.hh | 24 ++----------------------
+ src/main.cc                |  4 ++--
+ 2 files changed, 4 insertions(+), 24 deletions(-)
+
+commit 278a91f0cd802ac817c2603429bae1fa4a350ea0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 13:59:39 2010 -0400
+
+    Minor cleanup of sanitize
+
+    Done with an audit of all sanitize()
+
+ src/hb-ot-layout-gpos-private.hh | 18 +++++++++---------
+ 1 file changed, 9 insertions(+), 9 deletions(-)
+
+commit 9ac7dc73bc24b6dafb94df5de9cbf8fa0c82d5bc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 13:50:22 2010 -0400
+
+    Check for (impossible) overflow
+
+ src/hb-ot-layout-gpos-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 9fc8684fd85ef6ec82b3b54323761bbdd4c3d891
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 13:37:58 2010 -0400
+
+    Cleanup ContextFormat3 sanitize
+
+ src/hb-ot-layout-gsubgpos-private.hh | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit e77302c61f1f1620d1f438a997575fa6ee5c172e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 13:34:00 2010 -0400
+
+    Add comment
+
+ src/hb-ot-layout-common-private.hh | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit 7c469c3ca4ed4e45c50eff70df59b1a4780bae5b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 13:26:21 2010 -0400
+
+    Minor
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit dc228048a813e43356373505168d3822deea5d72
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 13:22:41 2010 -0400
+
+    Remove integrity check in Tag sanitize
+
+    Serves no useful purpose.
+
+ src/hb-open-type-private.hh       | 9 ---------
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 2 files changed, 1 insertion(+), 10 deletions(-)
+
+commit 8015a8c762dc7be36998d529b7a3af59e3d14d87
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 11:06:30 2010 -0400
+
+    Don't sanitize raw table data
+
+    That part is performed by individual table sanitize.
+
+ src/hb-open-file-private.hh | 15 +++++++++------
+ 1 file changed, 9 insertions(+), 6 deletions(-)
+
+commit c293581e962b7982622e7d607fa3909b40da718e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 11:15:46 2010 -0400
+
+    Add coment
+
+ src/hb-open-type-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 1faa76c6e848c6b0e360d9ddcf567533b87f8f31
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 10:54:26 2010 -0400
+
+    Remove unnecessary casts
+
+ src/hb-open-type-private.hh | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 079dc40112d3908ff7b7028ea3019bfe82bf606d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 10:47:12 2010 -0400
+
+    Avoid overflow in TableDirectory sanitize
+
+ src/hb-open-file-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit fb5904ec935d925a423401bc975ffaa22022ce1b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 10:43:30 2010 -0400
+
+    Make casts more explicit
+
+ src/hb-ot-layout-gpos-private.hh | 4 ++--
+ src/hb-ot-layout-gsub-private.hh | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+commit 565c80bd2960366ace2d10dd71beaaf2a80213c8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 10:26:35 2010 -0400
+
+    Make sure semicolon is expected after DEFINE_NULL_DATA()
+
+ src/hb-open-type-private.hh | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit bb1e16335e537231246f44740f73cc23c0707364
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 01:01:35 2010 -0400
+
+    Improve Subst/Pos SubTable access and sanitize
+
+ src/hb-ot-layout-gpos-private.hh | 4 ++--
+ src/hb-ot-layout-gsub-private.hh | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+commit 81f2af40f9afd5bb9695018e6baddcd4aa3361c1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 00:58:49 2010 -0400
+
+    Simplify Extension offset now that our int types have no alignment
+
+ src/hb-ot-layout-gsubgpos-private.hh | 9 +++------
+ 1 file changed, 3 insertions(+), 6 deletions(-)
+
+commit 19828ad42d8117563412aae3c70887aa117805a9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 00:49:16 2010 -0400
+
+    Sanitize shallow in Lookup since the generic SubLookup has no methods
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit e5546a4352c54311ac4a9ef138b187378155ebe1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 00:45:42 2010 -0400
+
+    Watch for overflow in Array sanitize
+
+ src/hb-open-type-private.hh       | 21 +++++++++++++++------
+ src/hb-ot-layout-common-private.hh |  2 +-
+ 2 files changed, 16 insertions(+), 7 deletions(-)
+
+commit 4f5f1c34dda1e0629bfa6d7b0ffa2e1ce003b7c7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 00:27:39 2010 -0400
+
+    Rename const_sub_array to sub_array since all consts are implicit now
+
+ src/hb-open-type-private.hh       | 2 +-
+ src/hb-ot-layout-common-private.hh | 4 ++--
+ src/hb-ot-layout-gdef-private.hh   | 4 ++--
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+commit 0795b784dd1009976c185482a376df250167e73b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 00:23:14 2010 -0400
+
+    Cosmetic
+
+ src/hb-ot-layout-common-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 2d98d3bbaa0ddadcb08b5a8f437b18c211c50768
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 00:19:30 2010 -0400
+
+    Simplify Lookup sanitize
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit c755cb3e3ac55156d0d2ec05adea7a650b97cc41
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 22 00:11:43 2010 -0400
+
+    Change header comment
+
+ README                                      | 2 +-
+ src/hb-blob.c                       | 2 +-
+ src/hb-blob.h                       | 2 +-
+ src/hb-buffer-private.h             | 2 +-
+ src/hb-buffer.c                     | 2 +-
+ src/hb-buffer.h                     | 2 +-
+ src/hb-common.h                     | 2 +-
+ src/hb-font-private.h               | 2 +-
+ src/hb-font.cc                              | 2 +-
+ src/hb-font.h                       | 2 +-
+ src/hb-ft.c                         | 2 +-
+ src/hb-ft.h                         | 2 +-
+ src/hb-glib.c                       | 2 +-
+ src/hb-glib.h                       | 2 +-
+ src/hb-icu.c                        | 2 +-
+ src/hb-icu.h                        | 2 +-
+ src/hb-language.c                   | 2 +-
+ src/hb-language.h                   | 2 +-
+ src/hb-object-private.h             | 2 +-
+ src/hb-open-file-private.hh         | 2 +-
+ src/hb-open-type-private.hh         | 2 +-
+ src/hb-ot-layout-common-private.hh   | 2 +-
+ src/hb-ot-layout-gdef-private.hh     | 2 +-
+ src/hb-ot-layout-gpos-private.hh     | 2 +-
+ src/hb-ot-layout-gsub-private.hh     | 2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ src/hb-ot-layout-private.h          | 2 +-
+ src/hb-ot-layout.cc                 | 2 +-
+ src/hb-ot-layout.h                  | 2 +-
+ src/hb-ot-shape-private.h           | 2 +-
+ src/hb-ot-shape.c                   | 2 +-
+ src/hb-ot-tag.c                     | 2 +-
+ src/hb-ot-tag.h                     | 2 +-
+ src/hb-ot.h                         | 2 +-
+ src/hb-private.h                    | 2 +-
+ src/hb-shape.c                              | 2 +-
+ src/hb-shape.h                              | 2 +-
+ src/hb-unicode-private.h            | 2 +-
+ src/hb-unicode.c                    | 2 +-
+ src/hb-unicode.h                    | 2 +-
+ src/hb.h                            | 2 +-
+ src/main.cc                         | 2 +-
+ 42 files changed, 42 insertions(+), 42 deletions(-)
+
+commit 243d20e011e251462a07947275e0e98cc19c7e9b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 23:57:01 2010 -0400
+
+    More cast simplification
+
+ src/hb-open-type-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 0dfcc13a4668cdd2c2ebdd5f4a7540a51222cf2f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 23:41:26 2010 -0400
+
+    Rename ConstCharP to CharP (overloaded now)
+
+ src/hb-open-file-private.hh         | 10 +++++-----
+ src/hb-open-type-private.hh         | 24 ++++++++++++------------
+ src/hb-ot-layout-gpos-private.hh     | 12 ++++++------
+ src/hb-ot-layout-gsub-private.hh     |  4 ++--
+ src/hb-ot-layout-gsubgpos-private.hh | 14 +++++++-------
+ 5 files changed, 32 insertions(+), 32 deletions(-)
+
+commit 62c0fd75737a69721dbf29e773405a4c529f8b6d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 23:30:48 2010 -0400
+
+    Cleanup de-const-casting during sanitize
+
+ src/hb-open-file-private.hh       |  2 +-
+ src/hb-open-type-private.hh       | 29 ++++++++++++++---------------
+ src/hb-ot-layout-common-private.hh |  4 ++--
+ src/hb-ot-layout-gpos-private.hh   | 12 ++++++------
+ 4 files changed, 23 insertions(+), 24 deletions(-)
+
+commit dd155870567cfb9647b2e71593ace8b2705d7cff
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 23:13:33 2010 -0400
+
+    Add more comments
+
+ src/hb-open-type-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit c85c3620675f38ffdca59134aeec2641485f40ca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 23:12:54 2010 -0400
+
+    Add comment
+
+ src/hb-open-type-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 2467c669c2aee4de2a6621a9d06cba0262376d41
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 23:11:45 2010 -0400
+
+    Add comment
+
+ src/hb-open-type-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 29c3f5e1b6212c775a7b911becd44ba093b7b0eb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 23:01:00 2010 -0400
+
+    Improve comment
+
+ src/hb-open-type-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 01c01618e98283611628cd54d5ba4bf122f24cd9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 22:49:56 2010 -0400
+
+    Further simplify IntType struct defs
+
+ src/hb-open-type-private.hh | 21 ++++++++++++---------
+ 1 file changed, 12 insertions(+), 9 deletions(-)
+
+commit 2cb08458f674301cde9d962c13911035a251f7c5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 22:37:31 2010 -0400
+
+    Rename const_array() to array() (overloaded)
+
+ src/hb-open-type-private.hh         | 12 ++++++------
+ src/hb-ot-layout-common-private.hh   |  4 ++--
+ src/hb-ot-layout-gsub-private.hh     |  6 +++---
+ src/hb-ot-layout-gsubgpos-private.hh | 16 ++++++++--------
+ 4 files changed, 19 insertions(+), 19 deletions(-)
+
+commit 2e2f43edf2f49f4047e28b1ce2ea95938536de9c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 22:30:36 2010 -0400
+
+    Remove ArrayAfter, use StructAfter in place
+
+ src/hb-open-type-private.hh | 21 ++++++---------------
+ 1 file changed, 6 insertions(+), 15 deletions(-)
+
+commit e961c86c579fd98ee604342a9c70c4e7f8d4f220
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 15:56:11 2010 -0400
+
+    Convert NEXT() and ARRAY_AFTER() macros to templates
+
+ src/hb-open-type-private.hh         | 40
+ ++++++++++++++++++++++++++----------
+ src/hb-ot-layout-common-private.hh   |  4 ++--
+ src/hb-ot-layout-gsub-private.hh     |  8 ++++----
+ src/hb-ot-layout-gsubgpos-private.hh | 24 +++++++++++-----------
+ 4 files changed, 47 insertions(+), 29 deletions(-)
+
+commit 198facdc55756cb48cdfb8ba7fa50916fac54ec3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 13:35:36 2010 -0400
+
+    Use templates for const char * casts
+
+ src/hb-open-file-private.hh         | 12 ++++-----
+ src/hb-open-type-private.hh         | 48
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-common-private.hh   |  2 +-
+ src/hb-ot-layout-gpos-private.hh     | 32 ++++++++++++------------
+ src/hb-ot-layout-gsub-private.hh     |  4 +--
+ src/hb-ot-layout-gsubgpos-private.hh | 14 +++++------
+ 6 files changed, 56 insertions(+), 56 deletions(-)
+
+commit 1922ffe7013c46014803a9f18c42e193a25b1968
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 04:19:51 2010 -0400
+
+    Const correctness
+
+ src/hb-ot-layout-gsub-private.hh     |  4 ++--
+ src/hb-ot-layout-gsubgpos-private.hh | 30 +++++++++++++++---------------
+ 2 files changed, 17 insertions(+), 17 deletions(-)
+
+commit e032ed9f75d4a0f365649a25706871bbb5ae6651
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 03:11:46 2010 -0400
+
+    Use templates for defining int typess
+
+ src/hb-open-type-private.hh | 66
+ ++++++++++++++++++++++++++++++---------------
+ src/hb-private.h           | 10 ++-----
+ 2 files changed, 46 insertions(+), 30 deletions(-)
+
+commit 2c9fd2adce5a6a9dcd62c874bd64613ea68d8d9b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 02:15:39 2010 -0400
+
+    Remove unused macro
+
+ src/hb-open-type-private.hh | 15 ---------------
+ 1 file changed, 15 deletions(-)
+
+commit 7a52f281178867379adb6e6c6fb0022102f75d17
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 02:14:44 2010 -0400
+
+    Rename macros
+
+ src/hb-open-type-private.hh | 6 +++---
+ src/hb-private.h           | 30 +++++++++++++++---------------
+ 2 files changed, 18 insertions(+), 18 deletions(-)
+
+commit ffff7dc44cb2a35a60f92831165e9d3c3a61ce19
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 02:13:55 2010 -0400
+
+    Minor
+
+ src/hb-private.h | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+commit f60f2166c48d07f556ff83f04e95181946eb03df
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 02:12:45 2010 -0400
+
+    Move macros around
+
+ src/hb-private.h | 122
+ ++++++++++++++++++++++++++++---------------------------
+ 1 file changed, 62 insertions(+), 60 deletions(-)
+
+commit 649a4344ca363da3d44cdd908350449ec40ed0f9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 02:11:59 2010 -0400
+
+    Remove unused macros
+
+ src/hb-private.h | 7 -------
+ 1 file changed, 7 deletions(-)
+
+commit eba8b4f644701cc6b78b0fcb4e932dce15561598
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Mar 29 00:04:12 2010 -0400
+
+    GNOME Bug 613015 - [HB] Does not sanitize Device tables referenced
+    from ValueRecords
+
+ src/hb-ot-layout-gpos-private.hh | 47
+ ++++++++++++++++++++++++++++++----------
+ 1 file changed, 36 insertions(+), 11 deletions(-)
+
+commit 673a4efcbc72a62105a24d9b0b54047417160f7d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 02:02:57 2010 -0400
+
+    WIP
+
+ src/hb-ot-layout-gpos-private.hh | 102
+ +++++++++++++++++++++++++++++++--------
+ 1 file changed, 81 insertions(+), 21 deletions(-)
+
+commit 40d73bc68dd828cf68f90fde0f9499a6ce9fbb19
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 00:49:40 2010 -0400
+
+    Improve comments
+
+ src/hb-open-type-private.hh | 22 ++++++++++++++--------
+ 1 file changed, 14 insertions(+), 8 deletions(-)
+
+commit 394bad41a76f90e441e327cef76efb99997e9ae0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 00:40:50 2010 -0400
+
+    Remove stale TODO item
+
+ src/hb-open-type-private.hh | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 9d3677899f90abdc7fb3e3d854db654a8707a84b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 00:32:47 2010 -0400
+
+    Use a function template instead of struct template for Null
+
+ src/hb-open-type-private.hh | 24 ++++++++++--------------
+ 1 file changed, 10 insertions(+), 14 deletions(-)
+
+commit ffd321afd91429c5de7ab03d71ef1030044f53cb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 21 00:14:12 2010 -0400
+
+    Simplify Tag struct
+
+ src/hb-open-file-private.hh       | 3 ++-
+ src/hb-open-type-private.hh       | 6 +-----
+ src/hb-ot-layout-common-private.hh | 3 ++-
+ 3 files changed, 5 insertions(+), 7 deletions(-)
+
+commit 00e23fcc6fd0eee5c582251bf3de6a2703fbbd3e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 20 23:50:45 2010 -0400
+
+    Cosmetic
+
+ src/hb-open-type-private.hh       | 8 ++++----
+ src/hb-ot-layout-common-private.hh | 6 +++---
+ 2 files changed, 7 insertions(+), 7 deletions(-)
+
+commit a87072db5d41e25b2e31191545298bca4838c65c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 20 15:52:47 2010 -0400
+
+    Fix Class operator return type
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit f9b37727985191c9b4aedb0e9835736027e59260
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 20 15:51:53 2010 -0400
+
+    Add couple consts to operators
+
+ src/hb-open-type-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 53d237ec6352d7c6fab3b2805b48154a25506beb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Apr 20 15:25:27 2010 -0400
+
+    Remove ASSERT_SIZE_DATA
+
+ src/hb-open-type-private.hh       | 4 ----
+ src/hb-ot-layout-common-private.hh | 9 ++++++---
+ 2 files changed, 6 insertions(+), 7 deletions(-)
+
+commit 06558d2a745b8f3af11a8d6dce956ae52187a7e5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 19 02:34:10 2010 -0400
+
+    Round instead of trunc
+
+ src/hb-ot-layout-gpos-private.hh | 20 ++++++++++----------
+ src/hb-private.h                |  2 +-
+ 2 files changed, 11 insertions(+), 11 deletions(-)
+
+commit 0e206de98621ed8a55824b42e9e6bf320f4c6cc8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 19 02:29:04 2010 -0400
+
+    Fix warnings
+
+ src/hb-open-type-private.hh         | 2 +-
+ src/hb-ot-layout-gdef-private.hh     | 2 +-
+ src/hb-ot-layout-gpos-private.hh     | 4 ++--
+ src/hb-ot-layout-gsubgpos-private.hh | 6 +++---
+ 4 files changed, 7 insertions(+), 7 deletions(-)
+
+commit d5943407a4251cb947fbfc130c0facb2f6216bd6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Apr 19 02:27:56 2010 -0400
+
+    Fix debug build
+
+ src/hb-open-type-private.hh         | 2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit 12b27ed91de0192deee4e9feffcaf4aca4c78113
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Mar 27 17:00:19 2010 -0400
+
+    Fix leak when duplicating blob
+
+ src/hb-blob.c | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit 4b8487d83e0c10076a6c573cb3487790ce366607
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Mar 16 03:46:17 2010 -0400
+
+    Fix the mystery bug!
+
+    A couple bugs joined forces to exhibit the mystery behavior of
+    crashes / infinite loops on OS X / wrong kerning / invalid memory
+    access.  Pooh!
+
+    The bugs were involved:
+
+      - Wrong pointer math with ValueRecord in PairPosFormat1
+
+      - Fallout from avoiding flex arrays, code not correctly updated
+       to remove sizeof() usage.
+
+    We strictly never use sizeof() directly now.  And the PairPos code
+    is cleaned up.  Should fix them all.  Bugs are:
+
+      Bug 605655 - Pango 1.26.2 introduces kerning bug
+      Bug 611229 - Pango reads from uninitialized memory
+      Bug 593240 - (pangoosx) Crash / infinite loop with Mac OS X
+
+    We were also doing wrong math converting Device adjustments to
+    hb_position_t.  Fallout from FreeType days.  Should shift 16, not
+    6. Fixed that too.
+
+    There's still another bug: we don't sanitize Device records
+    referenced from value records.  Fixing that also.
+
+ src/hb-open-file-private.hh         |  4 +++-
+ src/hb-open-type-private.hh         | 11 ++++++-----
+ src/hb-ot-layout-common-private.hh   | 10 ++++++++--
+ src/hb-ot-layout-gpos-private.hh     | 37
+ ++++++++++++++++++++----------------
+ src/hb-ot-layout-gsubgpos-private.hh | 15 ++++++++-------
+ 5 files changed, 46 insertions(+), 31 deletions(-)
+
+commit 9b39755d104603d1163738f77637cc1923d4055b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 15 14:00:25 2010 -0400
+
+    Typo
+
+ src/hb-open-type-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit f85ec1c7da36d2c2c9b1c94a988563697dcc79c9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Mar 10 04:14:40 2010 -0500
+
+    Cosmetic
+
+ src/hb-open-type-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit e48ed72230a83499dabbd02af2ac63340220a353
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Mar 1 22:33:45 2010 -0500
+
+    [ft] Check stream->read instead of stream->base
+
+    The former is more robust. See discussion on freetype-devel.
+
+ src/hb-ft.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit 917c227500305aee543981ad24a39f868c5ca0b7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 23 16:47:51 2010 -0500
+
+    Make blob unlocking 64bit-safe
+
+    GNOME Bug 604128 - Applications crash when displaying Hebrew
+    characters
+
+ src/hb-blob.c | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+commit ecd2e996d2137fef30011a41dd57ea45f9a796de
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Feb 23 02:42:00 2010 -0500
+
+    Improve the alignment for NullPool
+
+ src/hb-open-type-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit bc7830e4259755ce7549025c6f5bf750e78c2ff1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Feb 17 15:14:57 2010 -0500
+
+    Use __attribute__((unused)) only with gcc 4 and later
+
+    See discussion at:
+    https://bugzilla.gnome.org/show_bug.cgi?id=610183
+
+ src/hb-private.h | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+commit 555d11273ee4c30e84eda3a78ffadb3ee7da65d0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jan 26 12:58:59 2010 -0500
+
+    [GDEF] Fix bug in building synthetic GDEF
+
+ src/hb-ot-layout.cc | 5 +++--
+ src/hb-ot-layout.h  | 1 -
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+commit 70834d89c30a56fcd78825fbc28fc9c6bec31124
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jan 26 12:17:37 2010 -0500
+
+    [TODO] Add kern/GPOS interaction
+
+ TODO | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit cd11a98fa1426e9dbc4b61e702913b23a4794ae2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 23:05:02 2009 +0100
+
+    Fix compile with older FreeType
+
+ configure.ac | 7 +++++++
+ src/hb-ft.c  | 2 ++
+ 2 files changed, 9 insertions(+)
+
+commit 7f7448a354c43650348b4e91b4e40ecf18718d66
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 21:42:14 2009 +0100
+
+    Indent
+
+ src/hb-ot-layout-gpos-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit e70f45eb522bcb41388cc218b79bbd6aaecf8050
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 21:26:24 2009 +0100
+
+    Revert "Fallback to 'kern' if no GPOS applied"
+
+    This reverts commit d740c8f78bcbe80a8bcd8a9468830a406da37cc0.
+
+    The change is wrong.  If there is a GPOS table, we should not use
+    'kern'.
+
+ src/hb-ot-shape.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit d740c8f78bcbe80a8bcd8a9468830a406da37cc0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 21:23:56 2009 +0100
+
+    Fallback to 'kern' if no GPOS applied
+
+ src/hb-ot-shape.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 2f78c17197892b2bdc2f64caeb1c1c806ef44545
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 21:03:11 2009 +0100
+
+    Remove glibism!
+
+ src/hb-ot-shape-private.h | 4 ++--
+ src/hb-ot-shape.c        | 4 ++--
+ src/hb-shape.c                   | 4 ++--
+ 3 files changed, 6 insertions(+), 6 deletions(-)
+
+commit 907e67da13b5ed719362702138703fe2f90e790d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 20:59:51 2009 +0100
+
+    Oops, add file.
+
+ src/hb-ot-shape-private.h | 53
+ +++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 53 insertions(+)
+
+commit 2014b8d110231b13e524008282ece7451f1ae9e7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 20:58:26 2009 +0100
+
+    Hook OpenType shaping up
+
+    Default features only for now.
+
+ src/Makefile.am     |  2 +
+ src/hb-ot-layout.cc | 28 +++++++++
+ src/hb-ot-layout.h  |  7 +++
+ src/hb-ot-shape.c   | 165
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-shape.c      |  8 +--
+ 5 files changed, 206 insertions(+), 4 deletions(-)
+
+commit 196610ba4c7071c2b802d0fc921a63cbc0753114
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 19:01:14 2009 +0100
+
+    Pass features down
+
+ src/hb-shape.c | 49 +++++++++++++++++++++++++++++++++----------------
+ 1 file changed, 33 insertions(+), 16 deletions(-)
+
+commit 51f141a7f38a73f671b23f58cadf97a72c43b625
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 18:22:28 2009 +0100
+
+    Avoid overflow
+
+ src/hb-shape.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 26d7a75752631b2596a5bcb7e645b34cc3d139ab
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 17:58:25 2009 +0100
+
+    Refactor hb_shape a bit
+
+ src/hb-shape.c | 87
+ +++++++++++++++++++++++++++++++++++++++++++++++++---------
+ 1 file changed, 74 insertions(+), 13 deletions(-)
+
+commit 001fc2d2aa22f14302739fe4ca45f7535855e0fb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 17:24:05 2009 +0100
+
+    Add TrueType kern support
+
+ src/hb-shape.c | 74
+ +++++++++++++++++++++++++++++++++++++---------------------
+ 1 file changed, 48 insertions(+), 26 deletions(-)
+
+commit 2c1b85cf66e5ecb7521b6018b76f0e161fb68967
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 16:29:17 2009 +0100
+
+    Direct unicode->get_mirroring directly
+
+ src/hb-shape.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 6a2ef5aa5459def232708af30ef8a484906b868b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 16:28:01 2009 +0100
+
+    Do mirroring
+
+ src/hb-shape.c | 18 +++++++++++++++++-
+ 1 file changed, 17 insertions(+), 1 deletion(-)
+
+commit 0465e69832393cc1ed36508ec5d597fbab64877a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 16:25:18 2009 +0100
+
+    Protect against NULL funcs
+
+ src/hb-buffer.c | 3 +++
+ src/hb-font.cc  | 3 +++
+ 2 files changed, 6 insertions(+)
+
+commit 5ceefa1d8dbd310570ea8d1c47107fe8d3dc96d9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 15:29:16 2009 +0100
+
+    Add hb_unicode_get_*() functions
+
+ src/hb-unicode.c | 37 +++++++++++++++++++++++++++++++++++++
+ src/hb-unicode.h | 21 +++++++++++++++++++++
+ 2 files changed, 58 insertions(+)
+
+commit b8a53e44ce05911ce98b7cff34dee165e19d87ba
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 14:56:25 2009 +0100
+
+    We'll have to link to libstdc++ if linking to ICU, so disable test
+    for now
+
+    We have to get rid of the ICU in main lib. Still thinking about
+    best way
+    to do it.
+
+ src/Makefile.am | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+commit 314905d7548d5be58354546d660754b807b6efb2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 14:50:42 2009 +0100
+
+    Explicitly track whether the buffer has positions
+
+ src/hb-buffer-private.h |  3 ++-
+ src/hb-buffer.c        | 27 ++++++++++++++-------------
+ 2 files changed, 16 insertions(+), 14 deletions(-)
+
+commit 314b460d8a02ed4b2789ff527cf6c9bc19769114
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Dec 20 13:58:50 2009 +0100
+
+    Add HB_DIRECTION_IS_FORWARD/BACKWARD
+
+ src/hb-common.h | 2 ++
+ src/hb-shape.c  | 3 +--
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+commit bdd0ff5290bae4db65c3fdf95c5728031f13ca84
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 15 04:07:40 2009 -0500
+
+    Make main.cc compile without glib
+
+ src/main.cc | 18 ++++++++++++++++--
+ 1 file changed, 16 insertions(+), 2 deletions(-)
+
+commit 8a7d16808200f4fa02d6d12a8b8492bdedeb2c24
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 15 03:53:45 2009 -0500
+
+    Distribute autogen.sh
+
+ Makefile.am | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 807b8aa486753474e05e09f4fcca8ac94021b97c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 19 20:28:03 2009 -0500
+
+    Another C++ strictness fix
+
+    Pango Bug 602408 - Invalid C++ code breaks compile with Sun C++
+    Compiler
+    (Error: A union member cannot have a user-defined assignment operator)
+
+    According to the bug:
+
+    C++ Programming Language by Bjarne Stroustrup: Chapter 10.4.12 forbids
+    explicitly using of union members with constructors, destructors
+    or assignment
+    operations.
+
+    So we use a set() method instead of the assignment operator.  Ugly,
+    but hey,
+    that's life.
+
+ src/hb-open-type-private.hh       | 8 ++++----
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+commit 8b9b866d3e495c186f0530fcf4e00ffcdc170d3f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 19 20:27:57 2009 -0500
+
+    Fix warning
+
+ src/hb-ot-layout-gdef-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit c65b26acf28bd1a5b346fd8f6f28bec1f7d17a2a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 18 11:27:33 2009 -0500
+
+    Use autoconf FLEXIBLE_ARRAY_MEMBER when available
+
+ configure.ac                    |  2 ++
+ src/hb-ot-layout-gpos-private.hh |  4 ++--
+ src/hb-private.h                | 13 ++++++++++---
+ 3 files changed, 14 insertions(+), 5 deletions(-)
+
+commit d33f674cb793af40f1612df3660b138383f2de95
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 18 09:47:44 2009 -0500
+
+    Add Mongolian variation selectors
+
+ src/hb-shape.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit d6387757de2c27867d6f57c4ee7c4ef436b3a74f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 11 17:15:03 2009 -0500
+
+    Fix sanitize
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 636f017e387d46d4083c9f9ee57647a94dc5dc6d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 10 12:56:35 2009 -0500
+
+    Remove obsolete TODO item
+
+ src/hb-open-file-private.hh | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit bf2b25dd8591e92f3944c763641b613a70c379a7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 6 19:52:47 2009 -0500
+
+    Remove done item
+
+ src/hb-shape.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 4a8605315901e0ff1e6e09437a92dd5ac39164cc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 6 19:52:01 2009 -0500
+
+    Reverse buffer at the end if RTL
+
+ src/hb-shape.c | 12 ++++++++----
+ 1 file changed, 8 insertions(+), 4 deletions(-)
+
+commit ff44f88df2c46920f3ec2384ef321a4c7bb0f6ef
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 6 19:48:16 2009 -0500
+
+    Handle shaping in non-native direction
+
+ src/hb-buffer-private.h  |   1 +
+ src/hb-buffer.c         |  42 +++++++++++++++++--
+ src/hb-buffer.h         |  10 ++---
+ src/hb-common.h         |  11 +++++
+ src/hb-shape.c                  |  38 +++++++++++++++--
+ src/hb-unicode-private.h |   5 +++
+ src/hb-unicode.c        | 103
+ +++++++++++++++++++++++++++++++++++++++++++++++
+ 7 files changed, 196 insertions(+), 14 deletions(-)
+
+commit b4b4272c8d19ba3e0cb8f12b3b7d1590349e3d14
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 6 17:46:33 2009 -0500
+
+    Oops, wrong change
+
+ src/hb-ot-layout.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 52ea47767c7c35650ebddfba6ddc8203a3e33d3a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 6 17:45:38 2009 -0500
+
+    Change order of font and face for API consistency
+
+ src/hb-ot-layout.cc | 14 +++++++-------
+ src/hb-ot-layout.h  | 14 +++++++-------
+ 2 files changed, 14 insertions(+), 14 deletions(-)
+
+commit f4f1fc970b3e37d9903cbf5e05bbd38be4df3047
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 6 17:42:38 2009 -0500
+
+    Remove debug info that crept in
+
+ src/hb-ot-layout.cc | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit aa196d6026b496ec70be3d3588cc8cd2b8ccdb36
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 6 17:23:31 2009 -0500
+
+    [GSUB] More ligature/component fixing
+
+    We can only reuse the ligid if it belongs to a previous ligature,
+    not a
+    component!
+
+ src/hb-ot-layout-gsub-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 25e7ef704633447f109b148620336c42d6fb310e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 6 17:21:01 2009 -0500
+
+    Add _hb_buffer_add_output_glyphs() that takes codepoint_t*
+
+ src/hb-buffer-private.h         | 10 ++++++++-
+ src/hb-buffer.c                 | 45
+ ++++++++++++++++++++++++++++++++++++++--
+ src/hb-ot-layout-gsub-private.hh | 16 +++++++-------
+ 3 files changed, 60 insertions(+), 11 deletions(-)
+
+commit 9db8ad75317d589807e7725455f49cafece58d5d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 6 16:47:31 2009 -0500
+
+    Add hb_ot_layout_position_finish()
+
+    We expect buffer to be setup with default positions before GPOS.
+
+ src/hb-buffer-private.h         |  6 +----
+ src/hb-buffer.h                 | 11 +--------
+ src/hb-ot-layout-gpos-private.hh |  8 +++----
+ src/hb-ot-layout.cc             | 52
+ ++++++++++++++++++++++++++++++++++++++++
+ src/hb-ot-layout.h              | 16 +++++++++----
+ 5 files changed, 69 insertions(+), 24 deletions(-)
+
+commit edb54e9aeca25f4120a69ed3d5562cbb68fdb348
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 6 15:19:22 2009 -0500
+
+    Fix FT_Face finalizer call
+
+ src/hb-ft.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 3d14528b8b2e7da425a9df7057fc9fb326d8298c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 6 15:13:17 2009 -0500
+
+    Rename hb_buffer_get_len() to hb_buffer_get_length()
+
+ src/hb-buffer.c | 2 +-
+ src/hb-buffer.h | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+commit 1ff7775051559a8ca442be3938450c7ed3817806
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Nov 6 13:52:57 2009 -0500
+
+    Minor.
+
+ src/hb-shape.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+commit 3648bdf5b221adfe01ad99714de420b49964921e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 20:17:53 2009 -0500
+
+    Fix FT_Face generic finalizer
+
+ src/hb-ft.c | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+commit 5a11c875d8c95d480e6f32b57e969ee34ca1940d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 20:08:17 2009 -0500
+
+    Cosmetic
+
+ src/hb-blob.c | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+commit 44533e773f75b9a1171d884fcbe91a2f3879e2d8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 19:58:02 2009 -0500
+
+    Fix warning
+
+ src/hb-object-private.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit bcc0406a525ca3fe597aec5f2a97e5c50965d49c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 19:54:23 2009 -0500
+
+    include errno.h
+
+ src/hb-blob.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 799b3c375ad0e1293fd37a0e3a0d422a3166dcd8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 19:37:58 2009 -0500
+
+    Add debugging to object lifecycle
+
+ src/hb-object-private.h | 18 ++++++++++++++++++
+ 1 file changed, 18 insertions(+)
+
+commit 25edb940ab050545f47a06648e73c192fa213548
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 19:20:06 2009 -0500
+
+    Cosmetic
+
+ src/hb-ft.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 850dc5bb551409bb9bf6113ec2199bb3fb905e43
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 18:26:52 2009 -0500
+
+    Return 0 from get_glyph_nil
+
+ src/hb-font.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 85555a953376ee68a8fcc64485e74d44a353577b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 18:25:56 2009 -0500
+
+    Initialize font->klass
+
+ src/hb-font.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit bcd26bd7b1c96057bf154d7d50a61018d40f0d29
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 18:03:26 2009 -0500
+
+    Add TODO item
+
+ src/hb-ft.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit f4281e0a92a40746fa630fb15b877adaf3ff15b1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 17:58:41 2009 -0500
+
+    Fix ref counting
+
+ src/hb-ft.c | 16 ++++++++--------
+ 1 file changed, 8 insertions(+), 8 deletions(-)
+
+commit 6358ff45ae8cfc0b58b4976619319e3dde43add2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 17:39:16 2009 -0500
+
+    Add hb_ft_face_create_cached
+
+ src/hb-ft.c | 16 ++++++++++++++++
+ src/hb-ft.h | 3 +++
+ 2 files changed, 19 insertions(+)
+
+commit 2027f74b286cabe3c60c275170c4f4b437a30f55
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 16:34:47 2009 -0500
+
+    Add default positioning to hb-shape
+
+ src/hb-shape.c | 28 ++++++++++++++++++++++++----
+ 1 file changed, 24 insertions(+), 4 deletions(-)
+
+commit c3f9f7e59d865f8664862b7ca99d9a3a9221e456
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 16:16:14 2009 -0500
+
+    Fix MarkMark issue with ligid and components
+
+ src/hb-ot-layout-gpos-private.hh | 11 ++++++-----
+ src/hb-ot-layout-gsub-private.hh |  6 +-----
+ 2 files changed, 7 insertions(+), 10 deletions(-)
+
+commit d0351314cd29fbdf0efb5c7f89a569648f7a7fc7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 16:16:06 2009 -0500
+
+    Include stdio.h if debugging
+
+ src/hb-blob.c                       | 4 ++++
+ src/hb-open-type-private.hh         | 1 +
+ src/hb-ot-layout-gsubgpos-private.hh | 1 +
+ 3 files changed, 6 insertions(+)
+
+commit 2e336692913405976392bf505028481a5caa53b4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 13:55:41 2009 -0500
+
+    Add hb_font_get_*
+
+ src/hb-font.cc | 35 +++++++++++++++++++++++++++++++++++
+ src/hb-font.h | 18 ++++++++++++++++++
+ src/hb-shape.c |  2 +-
+ 3 files changed, 54 insertions(+), 1 deletion(-)
+
+commit 9bef3611f07b45ba8199a4a339c72f49d266216a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 12:20:11 2009 -0500
+
+    Rename [xy]_pos to [xy]_offset since we don't accumulate positions
+
+ src/hb-buffer-private.h         |  4 ++--
+ src/hb-buffer.h                 |  4 ++--
+ src/hb-font.h                   |  4 ++--
+ src/hb-ft.c                     | 10 +++++-----
+ src/hb-ot-layout-gpos-private.hh | 40
+ ++++++++++++----------------------------
+ src/hb-shape.c                          | 14 +++++++-------
+ src/hb-shape.h                          |  4 ++--
+ 7 files changed, 32 insertions(+), 48 deletions(-)
+
+commit 2daa47e9cdbfb027f76765301b3a78950e92eb09
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Nov 5 12:08:34 2009 -0500
+
+    Cosmetic
+
+ src/hb-shape.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 2f50d873680ce0a43b6ec79df1ac946b91f31e63
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 4 21:07:03 2009 -0500
+
+    Start filling hb_shape() in
+
+ src/hb-buffer-private.h |  1 +
+ src/hb-shape.c                 | 40 +++++++++++++++++++++++++++++++++++++++-
+ 2 files changed, 40 insertions(+), 1 deletion(-)
+
+commit ae070b7d39d03bd8bc1244f687b24db505f4af3f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 4 20:29:54 2009 -0500
+
+    Add script and language to buffer
+
+ TODO                   |  1 -
+ src/hb-buffer-private.h |  6 +++---
+ src/hb-buffer.c        | 26 ++++++++++++++++++++++++++
+ src/hb-buffer.h        | 15 ++++++++++++++-
+ 4 files changed, 43 insertions(+), 5 deletions(-)
+
+commit 8a3511ac6c795226699c2b36e03401ecdf88f5f8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 4 19:45:39 2009 -0500
+
+    Add hb_language_t as well as language/script conversion to OT tags
+
+ src/Makefile.am     |  4 +
+ src/hb-language.c   | 113 +++++++++
+ src/hb-language.h   | 44 ++++
+ src/hb-ot-layout.cc |  6 +-
+ src/hb-ot-layout.h  |  4 +-
+ src/hb-ot-tag.c     | 662
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-ot-tag.h     | 49 ++++
+ src/hb-ot.h        |   1 +
+ src/hb-private.h    |  3 +
+ src/hb.h           |   1 +
+ 10 files changed, 882 insertions(+), 5 deletions(-)
+
+commit 4591753ad4b5ec0224e3f1befdfe4fc5f6075562
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 4 18:15:59 2009 -0500
+
+    Define ARRAY_LENGTH
+
+ src/hb-private.h | 15 ++++++++-------
+ 1 file changed, 8 insertions(+), 7 deletions(-)
+
+commit 214ac7c1ff51b397d227832526f882e824cb9ea3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 4 18:12:32 2009 -0500
+
+    Another one
+
+ src/hb-unicode.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 1e91434569a9e9535ef021ca52b60b2e2af75d19
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 4 18:12:09 2009 -0500
+
+    Minor
+
+ src/hb-open-type-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 48de3730cdf91b9f6473509e22260a902ccec992
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 4 16:59:50 2009 -0500
+
+    Fix previous commit, ouch!
+
+ src/hb-open-type-private.hh       | 12 ++++++++++++
+ src/hb-ot-layout-common-private.hh | 12 ++++--------
+ src/hb-ot-layout-gdef-private.hh   | 12 ++++--------
+ 3 files changed, 20 insertions(+), 16 deletions(-)
+
+commit e21899bc3593aa0d3adf64cee21c5de2ea219783
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 4 16:36:14 2009 -0500
+
+    Fix array query API
+
+    The array query APIs now all do:
+
+      - Return the total number of items
+      - Take a start_offset, such that individual items can be fetched
+      - The _count IN/OUT variable always has number of items written
+       into the array upon return of the function
+
+ TODO                                |  1 -
+ src/hb-ot-layout-common-private.hh   | 59 ++++++++++++++-----------
+ src/hb-ot-layout-gdef-private.hh     | 84
+ +++++++++++++++++++++---------------
+ src/hb-ot-layout-gsubgpos-private.hh | 14 +++---
+ src/hb-ot-layout.cc                 | 40 ++++++++++-------
+ src/hb-ot-layout.h                  | 24 +++++++----
+ 6 files changed, 131 insertions(+), 91 deletions(-)
+
+commit 3b59306b858d31d97be0ea8c64461de1d0d03572
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Nov 4 15:48:32 2009 -0500
+
+    Finish FT glue.  Rough and untested
+
+ src/hb-font.cc |   2 +-
+ src/hb-font.h |   2 +-
+ src/hb-ft.c   | 114
+ ++++++++++++++++++++++++++++++---------------------------
+ 3 files changed, 63 insertions(+), 55 deletions(-)
+
+commit f8be443aecd54b479470e6559b1dfbc8f33c5f55
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 20:28:27 2009 -0500
+
+    Add TODO item
+
+ TODO | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 7951279b4a52b48f13631e7838dbc180c7249ea4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 20:27:05 2009 -0500
+
+    Implement nil font functions
+
+ TODO                            |  1 +
+ src/hb-font-private.h           |  8 ++---
+ src/hb-font.cc                          | 72
+ +++++++++++++++++++++++++++++++++++++---
+ src/hb-font.h                   |  9 +++--
+ src/hb-ot-layout-gpos-private.hh |  7 ++--
+ src/hb-ot-layout-gsub-private.hh |  2 +-
+ src/hb-private.h                | 18 +++++-----
+ 7 files changed, 91 insertions(+), 26 deletions(-)
+
+commit 8fb3d1aa4e613cdf965a83bd650c668884c58ad8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 18:34:20 2009 -0500
+
+    Start ft glue
+
+ TODO                 |   3 -
+ src/Makefile.am       |  16 ++++-
+ src/hb-font-private.h |   4 +-
+ src/hb-font.cc        |  17 ++++-
+ src/hb-font.h        |   6 +-
+ src/hb-ft.c          | 192
+ ++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-ft.h          |  52 ++++++++++++++
+ src/hb-glib.h        |   2 -
+ src/hb-icu.h         |   2 -
+ src/hb.h             |   4 +-
+ 10 files changed, 281 insertions(+), 17 deletions(-)
+
+commit d94647e2cd187bf4a4c8fb1c0c15c3d23c1293ac
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 16:35:10 2009 -0500
+
+    Add ICU glue
+
+ configure.ac   |   8 +-
+ src/Makefile.am |  23 +++++-
+ src/hb-icu.c   | 221
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-icu.h   |  41 +++++++++++
+ 4 files changed, 288 insertions(+), 5 deletions(-)
+
+commit b7dd4b945b4ec384526439b365a25739bf9cd2df
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 15:21:15 2009 -0500
+
+    Fix hb_be_uint16()
+
+ src/hb-private.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit cd7555eef27cb18857c0c06d2afdaf3a354a3c15
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 15:16:10 2009 -0500
+
+    Namespace MSVC defines in public header
+
+ src/hb-common.h | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 5ebabecef382c3e8b0a2a5657b2c01f7ff37d796
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 15:15:07 2009 -0500
+
+    Move unicode_funcs to buffer
+
+ TODO                   |  1 -
+ src/hb-buffer-private.h | 12 +++++++++++-
+ src/hb-buffer.c        | 47
+ ++++++++++++++++++++++++++++++++++++++---------
+ src/hb-buffer.h        | 10 ++++++++++
+ src/hb-font-private.h  |  3 ---
+ src/hb-font.cc                 | 17 -----------------
+ src/hb-font.h          |  9 ++++-----
+ 7 files changed, 63 insertions(+), 36 deletions(-)
+
+commit d5a8e46099e363d928b54de104126b1b34ba401c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 15:14:40 2009 -0500
+
+    [Makefile] Install hb-unicode.h
+
+    Separate OT headers also.
+
+ src/Makefile.am | 27 ++++++++++++++++-----------
+ 1 file changed, 16 insertions(+), 11 deletions(-)
+
+commit 63d7a41dd0704a7e89bd2872ad096f470f51866a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 15:14:08 2009 -0500
+
+    [TODO] Add item for fixing buffer error handling
+
+ TODO | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 21d0fce3d5364c91e5582bd530210f03e054d1a4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 14:28:32 2009 -0500
+
+    Add check for not linking to libstdc++
+
+ TODO                  |  3 +--
+ src/Makefile.am       |  4 ++++
+ src/check-libstdc++.sh | 28 ++++++++++++++++++++++++++++
+ 3 files changed, 33 insertions(+), 2 deletions(-)
+
+commit ca95ce460adf2ca6901595d4a6107fd000d90151
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 14:18:33 2009 -0500
+
+    Use the C linker, not C++ linker
+
+    Such that we don't link to libstdc++.
+
+ src/Makefile.am | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit eb4ebda2d10637b966f42a4ed5cfaec46082a050
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 14:09:32 2009 -0500
+
+    [configure] Fix check for FreeType
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit cb0e99a5a76136c128faba1c27d7e7eac2f219ee
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 14:09:10 2009 -0500
+
+    [TODO] Remove obsolete item
+
+ TODO | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 3a59ec37c5576b711c7c36dcfa2a63f6c00a3f5c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 11:36:06 2009 -0500
+
+    Add bunch of TODO items
+
+ TODO | 15 ++++++++++++---
+ 1 file changed, 12 insertions(+), 3 deletions(-)
+
+commit ffbe0a853d5e7defa85d0eef53814c22d1ecb412
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 10:52:45 2009 -0500
+
+    More MSVC fixes from Jonathan Kew
+
+ src/hb-common.h  | 7 ++++++-
+ src/hb-private.h | 5 +++++
+ 2 files changed, 11 insertions(+), 1 deletion(-)
+
+commit d3480ba37fbb5d4be75b094060f5b2f1ce98fb53
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Nov 3 10:47:29 2009 -0500
+
+    Don't use zero-sized arrays
+
+    It's not part of the standard and MSVC doesn't like it.  It makes
+    the code
+    a lot less elegant than it used to be, but I think it should work now.
+
+ src/hb-open-file-private.hh         |  4 +-
+ src/hb-open-type-private.hh         | 36 +++++++++++------
+ src/hb-ot-layout-common-private.hh   | 33 ++++++++--------
+ src/hb-ot-layout-gdef-private.hh     | 14 +++----
+ src/hb-ot-layout-gpos-private.hh     | 76
+ ++++++++++++++----------------------
+ src/hb-ot-layout-gsub-private.hh     | 44 ++++++++-------------
+ src/hb-ot-layout-gsubgpos-private.hh | 47 +++++++++++-----------
+ src/hb-private.h                    |  5 +++
+ 8 files changed, 122 insertions(+), 137 deletions(-)
+
+commit 6bec81aa3a58b8be255568b2ea63b7854e1b0ea7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 2 19:17:36 2009 -0500
+
+    Cosmetic
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit f94cf6b969281cf8a7f701ff26ea4f134ff9746e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 2 18:55:19 2009 -0500
+
+    Another try at build without glib
+
+ configure.ac | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+commit 2f3e69f3cb7e571cc62b0840d0b3f2072b29345a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 2 18:53:15 2009 -0500
+
+    Fix build without glib, again
+
+ src/Makefile.am | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit d03f81865914b40e941bf680557c0d8f98e30ad5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 2 18:52:21 2009 -0500
+
+    Disable configure cache
+
+ autogen.sh | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit a6451aa626fa5850d7c3b716bd52126995154e27
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 2 18:35:12 2009 -0500
+
+    We don't really use gthread directly
+
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 63a792a811e0ad69d05e8805d4f347bd533db4c3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 2 18:33:52 2009 -0500
+
+    Update Makefile to build without glib
+
+ src/Makefile.am | 12 +++++++++---
+ src/hb-glib.c  |  2 ++
+ 2 files changed, 11 insertions(+), 3 deletions(-)
+
+commit 68a2c771e2b923461a552bf3673e9e8245e1bfea
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 2 18:31:53 2009 -0500
+
+    Build without glib
+
+    Thready-safety disabled in that case, until we add support for
+    pthread, etc.
+    Fun...
+
+ src/hb-private.h | 19 +++++++++++++++++--
+ 1 file changed, 17 insertions(+), 2 deletions(-)
+
+commit cc4c096a7e08ae96b3030fe27f871ce5b797f370
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 2 18:13:17 2009 -0500
+
+    MSVC has no stdint.h
+
+ src/hb-common.h | 13 +++++++++++++
+ 1 file changed, 13 insertions(+)
+
+commit 9a204c7ab57ca0a866c72e1431c54a8883b15605
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 2 18:11:55 2009 -0500
+
+    Remove use of GINT16_FROM_BE
+
+ src/hb-private.h | 10 ++--------
+ 1 file changed, 2 insertions(+), 8 deletions(-)
+
+commit 1f0ceeb8cf2fad0a0dfd338ce1472470a81789d4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 2 16:28:39 2009 -0500
+
+    Install library
+
+ autogen.sh     | 2 +-
+ src/Makefile.am | 5 ++---
+ 2 files changed, 3 insertions(+), 4 deletions(-)
+
+commit 5932f8f7c3b73ade3752020351fa8b6a9a3bf500
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 2 16:38:41 2009 -0500
+
+    Generate ChangeLog
+
+ Makefile.am | 39 +++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 39 insertions(+)
+
+commit 29aa40018301a4f138cd5e73463079c7704bf3ac
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 2 16:28:39 2009 -0500
+
+    Add build system
+
+ AUTHORS        |   0
+ COPYING        |  17 +++++
+ Makefile.am    |   3 +
+ NEWS           |   0
+ README                 |   9 +++
+ TODO           |   6 ++
+ autogen.sh     | 189
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ configure.ac   |  40 ++++++++++++
+ git.mk                 | 184
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ harfbuzz.pc.in  |  11 ++++
+ src/.gitignore  |   1 -
+ src/COPYING    |  17 -----
+ src/Makefile.ng |  11 ----
+ src/README     |   9 ---
+ src/TODO       |   6 --
+ 15 files changed, 459 insertions(+), 44 deletions(-)
+
+commit c09ed9801ead002d6f8e507ce664b83707b202e9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 29 03:08:42 2009 -0400
+
+    [HB] Add glyph_metrics typedef
+
+ src/hb-font.h | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+commit 91b1e03e0312be2a7a165308239b40449e3ab360
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 29 03:05:18 2009 -0400
+
+    [HB] Add point_index to get_contour_point()
+
+    Pointed out by Keith Stribley on HarfBuzz list.
+
+ src/hb-font.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit aa87d951739f6beacb66daa235cd033fdcfcadd7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Oct 29 03:00:44 2009 -0400
+
+    [HB] Fix lookup_flag ignoring
+
+    Reported by Keith Stribley on HarfBuzz list.
+
+ src/hb-ot-layout-common-private.hh | 1 +
+ src/hb-ot-layout.cc               | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+commit 52e9a71d578c5171bbb0f4bfc1b70841c3270328
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 21 13:58:56 2009 -0400
+
+    [HB] Add comment
+
+ src/hb-ot-layout-gsubgpos-private.hh | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+commit f9c0a2dad09cd168fb28cdee09b4303f307ea56d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 21 13:43:54 2009 -0400
+
+    [HB] Fix apply_lookup() loop
+
+    Part of Bug 595539 - Regressions in rendering certain Thai sequences
+    with
+    OpenType font
+
+ src/hb-ot-layout-gsubgpos-private.hh | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit c0ab43c05833e8fc06d770a89370bec58a627e74
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Sep 21 13:40:38 2009 -0400
+
+    [HB] Fix bug in chain_context_lookup() invocations
+
+    Part of Bug 595539 - Regressions in rendering certain Thai sequences
+    with
+    OpenType font
+
+ src/hb-ot-layout-gsubgpos-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit e6bd4e93bd5722249ab977dfa98bdc8eb765318c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 30 21:02:28 2009 -0400
+
+    [HB] Add TODO item
+
+ src/TODO | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 3e2401f6c53d2b047954d75c37aef5e5e7cdc51a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 28 17:17:11 2009 -0400
+
+    [HB] Rename DEBUG to TRACE where appropriate
+
+ src/hb-open-file-private.hh         |  8 ++--
+ src/hb-open-type-private.hh         | 50 ++++++++++----------
+ src/hb-ot-layout-common-private.hh   | 32 ++++++-------
+ src/hb-ot-layout-gdef-private.hh     | 20 ++++----
+ src/hb-ot-layout-gpos-private.hh     | 92
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-gsub-private.hh     | 72 ++++++++++++++--------------
+ src/hb-ot-layout-gsubgpos-private.hh | 78 +++++++++++++++---------------
+ 7 files changed, 176 insertions(+), 176 deletions(-)
+
+commit 0535b50f436f3dac85e6df1761957f86c2bd7213
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 28 17:14:33 2009 -0400
+
+    [HB] Add GSUB/GPOS tracing
+
+ src/hb-ot-layout-gpos-private.hh     | 29 ++++++++++++++++++---
+ src/hb-ot-layout-gsub-private.hh     | 28 ++++++++++++++++++---
+ src/hb-ot-layout-gsubgpos-private.hh | 49
+ ++++++++++++++++++++++++++++++++++--
+ 3 files changed, 98 insertions(+), 8 deletions(-)
+
+commit 95e202403ffa543c817f45cca21fbc116eb8e807
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 28 16:31:20 2009 -0400
+
+    [HB] Allow enabling different debug facilities individually
+
+ src/hb-blob.c              | 28 ++++++++++++++++------------
+ src/hb-open-type-private.hh | 32 ++++++++++++++++++--------------
+ 2 files changed, 34 insertions(+), 26 deletions(-)
+
+commit 37006bd1bd107ac1a1c1b131579e9c494ba3a20f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 28 09:46:14 2009 -0400
+
+    Fix stupid array growing bug
+
+ src/hb-ot-layout.cc | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit 9897749113f76dc26a83bfae8de62e55d384fcad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 27 01:32:17 2009 -0400
+
+    [HB] Simplify counting
+
+ src/hb-ot-layout.cc | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+commit 81a5c4df94e7c6066314d5fe75bbaf24483bc022
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 27 00:21:04 2009 -0400
+
+    [HB] Indent
+
+ src/hb-blob.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit c91facd83b5dc3b9aed75617c7c35585ff18889f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 26 18:53:43 2009 -0400
+
+    [HB] Bug 593231 - < c99 compiler dislikes ValueRecord
+
+ src/hb-ot-layout-gpos-private.hh | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit f0c7540c4e217a7354072365a7301453d1e25b80
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 20 14:01:37 2009 -0400
+
+    Bug 592484 -  invalid write in HB
+
+    Fix off-by-one.
+
+ src/hb-ot-layout.cc | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit b614b004723ead60849dd37e7ba2faee67cebd93
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 20 13:07:50 2009 -0400
+
+    [HB][glib] Make glib unicode funcs static
+
+ src/hb-glib.c | 36 +++++++++++++++++-------------------
+ 1 file changed, 17 insertions(+), 19 deletions(-)
+
+commit 8b5346130425c7c101f6ff2432874ba2fd372edc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 19 18:16:50 2009 -0400
+
+    [HB] Fix more casts
+
+ src/hb-open-type-private.hh | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit 9d2e02db74deb3b3b92beab96f112cc387c8bd88
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 19 18:07:36 2009 -0400
+
+    [HB] Rename CAIRO_ in macro prefix to HB_
+
+    Hiss!
+
+ src/hb-private.h | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 388ad037ff399c23c5e24bbcede27e0e35bed07e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 19 16:45:41 2009 -0400
+
+    [HB] Remove HB_MEMORY_MODE_READONLY_NEVER_DUPLICATE
+
+    Unlike the rest of the memory-mode enum, this one didn't only
+    describe the access mode of the input memory region.  Remove it.
+
+    If someone wants to inhibit duplicating, they can lock the blob
+    and throw away the key.
+
+    Based on mailing list discussion with Carl Worth.
+
+ src/hb-blob.c | 51 +++++++++++++++++++++++++--------------------------
+ src/hb-blob.h |  1 -
+ 2 files changed, 25 insertions(+), 27 deletions(-)
+
+commit 977eeb714454630bd045bb11f58ff6397f10b143
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 19 16:17:24 2009 -0400
+
+    [HB] s/writeable/writable/g
+
+ src/hb-blob.c              | 38 +++++++++++++++++++-------------------
+ src/hb-blob.h              | 10 +++++-----
+ src/hb-open-type-private.hh | 6 +++---
+ 3 files changed, 27 insertions(+), 27 deletions(-)
+
+commit 2f5931e404cb56e31d24b2eb7ff0a849fb077b55
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 19 16:07:40 2009 -0400
+
+    [HB] Hide lig_id and component members of hb_glyph_info_t
+
+ src/hb-buffer.h | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+commit 6b600dd6199104cff01b3fa43d2abb52ae4319ea
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 19 14:45:24 2009 -0400
+
+    [HB] Fix typo
+
+ src/hb-font.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 32c65a5ca3bde673bf2aa8fca911dd32914d3122
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 18 18:37:36 2009 -0400
+
+    [HB] Add font funcs prototypes
+
+ src/hb-font-private.h |  2 --
+ src/hb-font.cc        | 14 ++++++--------
+ src/hb-font.h        | 23 ++++++++++++++++-------
+ 3 files changed, 22 insertions(+), 17 deletions(-)
+
+commit 8f034d5849627ee95a5889fa34c9ba294fff13ca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 18 16:41:59 2009 -0400
+
+    Fix a few other pedantic warnings
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ src/hb-ot-layout-gdef-private.hh   | 2 +-
+ src/hb-ot-layout-gpos-private.hh   | 4 ++--
+ src/hb-ot-layout-gsub-private.hh   | 2 +-
+ 4 files changed, 5 insertions(+), 5 deletions(-)
+
+commit 864e2560b627f1e73be3b0635e02f00844cb67c3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 18 16:38:48 2009 -0400
+
+    [HB] Fix pedantic warnings
+
+ src/hb-blob.h          |  2 +-
+ src/hb-buffer-private.h | 18 +++++++++---------
+ src/hb-buffer.h        |  6 +++---
+ 3 files changed, 13 insertions(+), 13 deletions(-)
+
+commit 3e09722214d9bbcc9014409342072c79d0c4447f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 18 16:32:31 2009 -0400
+
+    [HB] Fix more wrong method signatures
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 822e99fe9ae920df41a0bd3f1125495c2ea96b45
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 18 16:27:48 2009 -0400
+
+    [HB] Fix wrong method signature
+
+ src/hb-ot-layout-common-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 4ff2a58952f010c6252f06e5f404d6840d257250
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 18 15:49:23 2009 -0400
+
+    Bug 592194 -  Fix missing _SC_PAGE_SIZE macro
+
+    Autoconfiscate a simple call to mprotect() even more.
+
+ src/hb-blob.c | 94
+ ++++++++++++++++++++++++++++++++++++++---------------------
+ 1 file changed, 60 insertions(+), 34 deletions(-)
+
+commit 3c69bd46e27069fac0bfdefdecf5492c17eb01df
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 17 16:48:13 2009 -0400
+
+    [HB] Avoid int overflow in GPOS
+
+    Bug 592036 - integer overflow bug causes misrendering of Nepali
+    characters
+
+ src/hb-ot-layout-gpos-private.hh | 20 ++++++++++----------
+ src/hb-private.h                |  3 +++
+ 2 files changed, 13 insertions(+), 10 deletions(-)
+
+commit b2b18ef43c5bac6a5bb8412da7c9a37f815d4deb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 14 19:37:18 2009 -0400
+
+    [HB] Simplify loop
+
+ src/hb-ot-layout-gpos-private.hh | 31 ++++++++++++++-----------------
+ 1 file changed, 14 insertions(+), 17 deletions(-)
+
+commit b41f210d12d8df48e645823463343f7e14b0ddd0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 14 19:33:24 2009 -0400
+
+    [HB] Merge mark positionin code between three types of lookups
+
+ src/hb-ot-layout-gpos-private.hh | 95
+ ++++++++++++----------------------------
+ 1 file changed, 29 insertions(+), 66 deletions(-)
+
+commit cd33cb9ed84308da72bd7c64b9355dc2410c63ec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 14 18:42:42 2009 -0400
+
+    [HB] More minor shuffling
+
+ src/hb-open-type-private.hh       | 3 ---
+ src/hb-ot-layout-common-private.hh | 5 +++++
+ 2 files changed, 5 insertions(+), 3 deletions(-)
+
+commit 80e2aa2e1bfa2c8ecedcfa4cce8cadeb15792ac3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 14 18:40:56 2009 -0400
+
+    [HB] Move code around
+
+ src/hb-open-type-private.hh       | 21 +++++++++++++++++++++
+ src/hb-ot-layout-common-private.hh | 19 -------------------
+ 2 files changed, 21 insertions(+), 19 deletions(-)
+
+commit 3564ee5216004d45d30b0ded61184cf8dde5dd89
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 14 18:32:56 2009 -0400
+
+    [HB] Correctly sanitize LigatureAttach
+
+ src/hb-open-type-private.hh       | 14 ++++++++++----
+ src/hb-ot-layout-common-private.hh |  4 ++++
+ src/hb-ot-layout-gdef-private.hh   |  4 ++--
+ src/hb-ot-layout-gpos-private.hh   |  6 +++---
+ 4 files changed, 19 insertions(+), 9 deletions(-)
+
+commit cb71a2fb76c6ddee050f775eb299ee44230c3ac9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 14 18:14:03 2009 -0400
+
+    [HB] Simplify MarkBase and MarkLig too
+
+ src/hb-ot-layout-gpos-private.hh | 127
+ +++++++++++++++------------------------
+ 1 file changed, 48 insertions(+), 79 deletions(-)
+
+commit dfa54f4440960c39d37ef02fff4c0d9eb315d4b4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 14 17:53:31 2009 -0400
+
+    [HB] Simplify MarkMark
+
+ src/hb-ot-layout-gpos-private.hh | 29 ++++++++++++++++-------------
+ 1 file changed, 16 insertions(+), 13 deletions(-)
+
+commit 815a73e4202ca17677f12e862b70ca8724cf2f57
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 14 17:31:16 2009 -0400
+
+    [HB] Fix possible int overflows during sanitize
+
+ src/TODO                        |  1 -
+ src/hb-open-type-private.hh     | 22 ++++++++++++++++++++++
+ src/hb-ot-layout-gpos-private.hh | 15 ++++++++-------
+ 3 files changed, 30 insertions(+), 8 deletions(-)
+
+commit ae728e51e94d18d731b7c8dc524da1a4f427d63b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 14 16:41:00 2009 -0400
+
+    [HB] Debug output for SANITIZE_MEM()
+
+ src/hb-open-type-private.hh | 34 +++++++++++++++++++++++-----------
+ 1 file changed, 23 insertions(+), 11 deletions(-)
+
+commit 41895506cb6a41b1a833866f8822261ea449ea0b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 14 16:25:33 2009 -0400
+
+    [HB] Use inline function for SANITIZE_MEM()
+
+ src/hb-open-type-private.hh | 33 ++++++++++++++++++++-------------
+ 1 file changed, 20 insertions(+), 13 deletions(-)
+
+commit 95528131b5ab9fc9e265ace715832135ebd457a4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 14 16:17:32 2009 -0400
+
+    [HB] Use SANITIZE_THIS() when applicable
+
+ src/hb-open-type-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 5769538abfe153c503da4801649493e57a9854c2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 14 16:12:22 2009 -0400
+
+    [HB] Add note about auditing sanitize code for overflows
+
+ src/TODO                        | 1 +
+ src/hb-ot-layout-gpos-private.hh | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+commit 15232e26f4a89dab1b6de35ad9d3d16e75bf93d0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 13 17:13:25 2009 -0400
+
+    [HB] Add empty hb_shape() API
+
+ src/Makefile.am |  2 ++
+ src/hb-shape.c  | 40 ++++++++++++++++++++++++++++++++++++++++
+ src/hb-shape.h  | 53
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 95 insertions(+)
+
+commit 2866d2974b6768e93cc7d473d14c5a8abae5f7fd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 13 11:47:08 2009 -0400
+
+    [HB] Bitfield packing *is* very delicate
+
+    Fix the second instance.
+
+ src/hb-buffer.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit ec90ee23b29aab187c3fa209970aa97434c84b1b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 13 05:25:23 2009 -0400
+
+    Bug 591511 – hh-blob.c does not compile using mingw on windows
+
+    Check for sys/mman.h, not mprotect().
+
+ src/hb-blob.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 12eae6d55d468ff2fbe2bc12bec188d313c671f9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 13 05:20:46 2009 -0400
+
+    [HB] Fix buffer sizing issue with mingw gcc
+
+    Bit field packing is a delicate field.  Issue reported in comment
+    3 here:
+    http://bugzilla.gnome.org/show_bug.cgi?id=591511
+
+ src/hb-buffer-private.h | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+commit 6936706cd77f96961a1239d0c9dc8ede64d7f06d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 12 19:45:50 2009 -0400
+
+    Bug 591413 – needs to link with libstdc++
+
+    Enforce -fno-exceptions better.
+
+ src/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit c486ea9c3582710474c1085c21c1dc5e2700adc3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 12 19:36:29 2009 -0400
+
+    Bug 591511 – hb-blob.c does not compile using mingw on windows
+
+    Only call mprotect() when available.  For optimal performance, a win32
+    way to make memory writeable needs to be added.
+
+ src/hb-blob.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit a579584594f1ca4781f1c5b92ad78513c0b37480
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 12 19:23:16 2009 -0400
+
+    [HB] Add comment
+
+ src/hb-buffer-private.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b6e66ee102eb5b64d945e5a73ab63fe8cac5edcb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 12 16:50:28 2009 -0400
+
+    [HB] Always clear positions if dirty, before returning to user
+
+ src/hb-buffer.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit e4679d9fae43f3219c476c5b9e411d1f5d0d5bae
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 12 16:47:27 2009 -0400
+
+    [HB] Fix _hb_buffer_next() when positioning
+
+    We were copying glyphs to output.  This should not happen when in
+    GPOS.  Back then it was fine, then some optimizations broke then
+    assumption.
+
+ src/hb-buffer-private.h |  1 +
+ src/hb-buffer.c        | 12 ++++++++++++
+ 2 files changed, 13 insertions(+)
+
+commit 5ccf1ba339d6ffb4469f1c4f20d8d8d00012c857
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 12 15:55:23 2009 -0400
+
+    [HB] Fixed signedness warnings
+
+ src/hb-open-type-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit f71329147bd3087588cfeafd6feff45f29d1ca7a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 12 15:48:44 2009 -0400
+
+    [HB] Ouch. Fix compilation.
+
+ src/hb-ot-layout-gpos-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 0532ed160c678b5404b20594fd2ca9a640bf6a0a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 12 15:40:04 2009 -0400
+
+    [HB] Fix invalid access / overflow on x86-64
+
+    Bug 591557 – [HB] crash scrolling the evolution message list
+    Bug 591576 – crashed with SIGSEGV at pango
+
+ src/hb-ot-layout-gpos-private.hh | 21 ++++++++++++---------
+ src/hb-ot-layout-gsub-private.hh |  2 --
+ 2 files changed, 12 insertions(+), 11 deletions(-)
+
+commit 8d70312c7b899131c3aafa7a43527ef3ced33bfe
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 23:50:51 2009 -0400
+
+    [HB] Add hb_font_funcs_make_immutable()
+
+ src/hb-font-private.h |  4 ++++
+ src/hb-font.cc        | 17 +++++++++++++++--
+ src/hb-font.h        |  3 +++
+ 3 files changed, 22 insertions(+), 2 deletions(-)
+
+commit 3284d05da27c338d94f0da99df66d924cd9d6717
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 23:45:57 2009 -0400
+
+    [HB] Add missing initializer
+
+ src/hb-font.cc | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit 081819ea8b98c0a4b4dffe8d4aca3512f9798719
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 23:40:28 2009 -0400
+
+    [OT] Hookup glib unicode funcs
+
+ src/hb-buffer.c     | 14 +++++++-------
+ src/hb-glib.c      |  4 +++-
+ src/hb-glib.h      |  4 ++--
+ src/hb-ot-layout.cc | 10 +++++-----
+ src/hb-private.h    | 2 +-
+ 5 files changed, 18 insertions(+), 16 deletions(-)
+
+commit 49f261df2aa753e8b09e97f7835e6a827f92970a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 23:35:05 2009 -0400
+
+    [HB] Add hb-glib
+
+ src/Makefile.am         |  4 +++-
+ src/hb-glib.c           | 56
+ ++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-glib.h           | 41 +++++++++++++++++++++++++++++++++++
+ src/hb-unicode-private.h |  2 +-
+ src/hb-unicode.c        | 10 ++++-----
+ src/hb-unicode.h        |  6 +++---
+ 6 files changed, 109 insertions(+), 10 deletions(-)
+
+commit eb27ec0cef0d92740875ab5035b53acc639e5fae
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 23:25:28 2009 -0400
+
+    [HB] Add hb_unicode_funcs_make_immutable()
+
+ src/hb-unicode-private.h |  2 ++
+ src/hb-unicode.c        | 22 +++++++++++++++++-----
+ src/hb-unicode.h        |  2 ++
+ 3 files changed, 21 insertions(+), 5 deletions(-)
+
+commit af9e104028b7cdc1fbba0eb1d86cfa4d5258657f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 23:21:33 2009 -0400
+
+    [HB] Use nil unicode funcs in nil face
+
+ src/hb-font.cc                  | 7 ++++---
+ src/hb-unicode-private.h | 3 +++
+ src/hb-unicode.c        | 2 +-
+ 3 files changed, 8 insertions(+), 4 deletions(-)
+
+commit 48910f8f0034c54b4e11cef3d08aa40e52c06b28
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 23:05:05 2009 -0400
+
+    [HB] Initialize unicode funcs to nil getters
+
+ src/hb-unicode.c | 29 +++++++++++++++++++----------
+ 1 file changed, 19 insertions(+), 10 deletions(-)
+
+commit 04cc0a29ee1472c318c36efcd19b9c1a6657d9ea
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 22:58:56 2009 -0400
+
+    [HB] Flesh out Unicode funcs
+
+ src/hb-object-private.h  |  2 +-
+ src/hb-unicode-private.h | 12 ++++-----
+ src/hb-unicode.c        | 67
+ ++++++++++++++++++++++++++++++++++++++++++------
+ src/hb-unicode.h        |  3 ---
+ 4 files changed, 65 insertions(+), 19 deletions(-)
+
+commit 299f08961ffcea27e8def4f0743d0c86ef8dadf1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 22:47:57 2009 -0400
+
+    [HB] Implement buffer UTF-X input
+
+ src/hb-buffer.c | 110
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-buffer.h |  12 +++----
+ 2 files changed, 116 insertions(+), 6 deletions(-)
+
+commit 1b7b97f28ac192006ca5b6d1cc9fbc80fa2bdb55
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 21:10:37 2009 -0400
+
+    [HB] Add buffer UTF-X API
+
+ src/hb-buffer.h | 21 +++++++++++++++++++++
+ 1 file changed, 21 insertions(+)
+
+commit fbaf8ffa098bd2b6fb4f4bc2d04b360a319c4af5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 20:59:25 2009 -0400
+
+    [HB] Add hb_buffer_reverse()
+
+ src/hb-buffer.c | 32 +++++++++++++++++++++++++++++---
+ src/hb-buffer.h |  7 +++++++
+ 2 files changed, 36 insertions(+), 3 deletions(-)
+
+commit cbe5a4e08e6c2ccfdf98e630d48ec9da69374516
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 20:24:49 2009 -0400
+
+    [HB] Reuse the positions array as alt string array
+
+ src/hb-buffer-private.h |  1 -
+ src/hb-buffer.c        | 28 +++++++++-------------------
+ 2 files changed, 9 insertions(+), 20 deletions(-)
+
+commit 5c44188455ca1b696aa24b20c3a83877dfae2fb2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 20:05:16 2009 -0400
+
+    [HB] Start adding Unicode funcs
+
+ src/Makefile.am         |   3 +
+ src/hb-font-private.h   |  29 ++-----
+ src/hb-font.cc                  | 163 ++++++++++-------------------------
+ src/hb-font.h           | 140 ++++++++++--------------------
+ src/hb-unicode-private.h |  54 ++++++++++++
+ src/hb-unicode.c        |  89 +++++++++++++++++++
+ src/hb-unicode.h        | 220
+ +++++++++++++++++++++++++++++++++++++++++++++++
+ 7 files changed, 463 insertions(+), 235 deletions(-)
+
+commit 20b035dad41247076815a2bbb0346d63058b322f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 19:00:36 2009 -0400
+
+    [HB] Put C++ inline's back
+
+    Apparetly in C++, inline means a totally different thing.
+
+ src/hb-open-file-private.hh         | 14 +++++++-------
+ src/hb-open-type-private.hh         | 16 ++++++++--------
+ src/hb-ot-layout-common-private.hh   | 12 ++++++------
+ src/hb-ot-layout-gdef-private.hh     |  4 ++--
+ src/hb-ot-layout-gpos-private.hh     | 12 ++++++------
+ src/hb-ot-layout-gsub-private.hh     | 12 ++++++------
+ src/hb-ot-layout-gsubgpos-private.hh | 12 ++++++------
+ 7 files changed, 41 insertions(+), 41 deletions(-)
+
+commit a62f776d8e7e3e57d28ee71b34abab0a5b8471eb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 13:57:02 2009 -0400
+
+    [HB] Don't override CXX compiler
+
+    Just add couple of options to it (still assuming gcc)
+
+ src/Makefile.am | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 6bdab706ecb41c1305e85d041a586e86c54d0ab7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 10 09:35:11 2009 -0400
+
+    [HB] Indent
+
+ src/hb-ot-layout.h | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 797724904a3ab294f8390d4ff80c299d8213a5c6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 9 22:25:17 2009 -0400
+
+    [HB] Remove unused code
+
+ src/hb-ot-layout-gdef-private.hh | 10 ----------
+ 1 file changed, 10 deletions(-)
+
+commit 284899ccbe79fda7405ab09d3092fc25fd89e810
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 9 22:10:39 2009 -0400
+
+    [HB] Add a NEXT() macro
+
+ src/hb-open-type-private.hh         |  2 ++
+ src/hb-ot-layout-common-private.hh   |  4 ++--
+ src/hb-ot-layout-gsub-private.hh     |  8 ++++----
+ src/hb-ot-layout-gsubgpos-private.hh | 24 ++++++++++++------------
+ 4 files changed, 20 insertions(+), 18 deletions(-)
+
+commit 918572fc870dfd7596155ce700247a5bb024fb1a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 9 18:31:47 2009 -0400
+
+    [HB] Remove done TODO item
+
+ src/TODO | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 67cb8111f209de26b3afa46e9fb7e4d01c9ecad4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 9 13:05:08 2009 -0400
+
+    [HB] Print mark sets in main.cc
+
+ src/main.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 17878255fa88e76cd503461fc1ade2ed365cebd2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 8 16:57:27 2009 -0400
+
+    [HB] Remove hb_ot_layout_table_find_feature()
+
+    That function doesn't make much sense as multiple features in the
+    table may
+    have the same tag.
+
+ src/hb-ot-layout.cc | 16 ----------------
+ src/hb-ot-layout.h  | 6 ------
+ 2 files changed, 22 deletions(-)
+
+commit 468769b8f5332940278244e744ec2bd5a5dc5ee9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 8 16:53:23 2009 -0400
+
+    [HB] Rename hb_ot_layout_feature_mask_t to hb_mask_t
+
+ src/TODO                        |  1 -
+ src/hb-buffer-private.h         |  4 ++--
+ src/hb-buffer.c                 | 12 ++++++------
+ src/hb-buffer.h                 |  4 ++--
+ src/hb-common.h                 |  1 +
+ src/hb-ot-layout-gpos-private.hh | 12 ++++++------
+ src/hb-ot-layout-gsub-private.hh | 14 +++++++-------
+ src/hb-ot-layout.cc             | 18 +++++++++---------
+ src/hb-ot-layout.h              | 34 +++++++++-------------------------
+ 9 files changed, 42 insertions(+), 58 deletions(-)
+
+commit 7f96b39a9d5a81ba77e0c3dea8fe2cdb9957c4c7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 8 16:37:22 2009 -0400
+
+    [HB] Fix bug introduced recently
+
+ src/hb-open-type-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit bff3c0fde5da04a70d1f7aeeb9fa2a75fe5c07f6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Aug 7 19:46:30 2009 -0400
+
+    [HB] Remove clumsy macros and improve API
+
+ src/TODO                            |   2 -
+ src/hb-open-file-private.hh         |  41 ++++++++--
+ src/hb-open-type-private.hh         | 104 +------------------------
+ src/hb-ot-layout-common-private.hh   | 103 ++++++++++++++++++------
+ src/hb-ot-layout-gsubgpos-private.hh |  35 +++++++--
+ src/hb-ot-layout.cc                 | 146
+ ++++++++++++-----------------------
+ src/hb-ot-layout.h                  | 101 ++++++++++--------------
+ 7 files changed, 240 insertions(+), 292 deletions(-)
+
+commit d0b657379bbe63602953412d6bc944b2a0f430eb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 6 18:34:47 2009 -0400
+
+    [HB] Fix various XXX issues
+
+ src/hb-open-type-private.hh     | 13 ++++++++++---
+ src/hb-ot-layout-gdef-private.hh |  5 ++---
+ 2 files changed, 12 insertions(+), 6 deletions(-)
+
+commit 82199868fb036b63799af761762225d45d36f575
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 6 18:28:45 2009 -0400
+
+    [HB] Remove unused var
+
+ src/hb-ot-layout-private.h | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 07e69226cbd4167741fd868a3125487bbabb99dc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 6 18:28:00 2009 -0400
+
+    [HB] Remove another stale XXX
+
+ src/hb-ot-layout.cc | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit e605c367c5627e7ab05af9cb59247a89290e598a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 6 18:27:28 2009 -0400
+
+    [HB] Rebrand XXX as TODO
+
+ src/hb-open-file-private.hh | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit c5a13048e21fcfcfd3b74f800e8d521e6245b451
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 6 18:26:38 2009 -0400
+
+    [HB] Remove stale XXX
+
+ src/hb-blob.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 9e826ea2832f0444bcef9075b445d481a58a09c2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 6 18:24:55 2009 -0400
+
+    [HB] Fix unaligned access
+
+ src/hb-open-type-private.hh | 20 +++++++++++++++++---
+ src/hb-private.h           | 22 ++++++++++++++++++++++
+ 2 files changed, 39 insertions(+), 3 deletions(-)
+
+commit 71a8344a5eeaa34e31d53138cf3bbe30b819f83c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 6 14:28:18 2009 -0400
+
+    [HB] Remove a few 'inline's, though the compiler mostly ignores them
+
+ src/hb-open-file-private.hh         |  1 -
+ src/hb-open-type-private.hh         | 16 ++++++++--------
+ src/hb-ot-layout-gsubgpos-private.hh |  6 +++---
+ 3 files changed, 11 insertions(+), 12 deletions(-)
+
+commit 7f3d5c8166e5205e9d9bf8b4b2f31d44387a8006
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 6 13:33:51 2009 -0400
+
+    [HB] Fix blob to use a actual mutex
+
+ src/hb-blob.c          | 125
+ +++++++++++++++++++++++++++++++++++-------------
+ src/hb-object-private.h |   4 +-
+ src/hb-private.h       |  20 +++++---
+ 3 files changed, 106 insertions(+), 43 deletions(-)
+
+commit a794ebf4be9896393f4badf02905a4007981a588
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 6 12:32:35 2009 -0400
+
+    [HB] Use glib again
+
+ src/Makefile.am        |  5 +++--
+ src/hb-blob.c          |  4 ++--
+ src/hb-object-private.h | 19 ++++++-------------
+ src/hb-private.h       | 45
+ ++++++++++++++++++++++++++-------------------
+ 4 files changed, 37 insertions(+), 36 deletions(-)
+
+commit 9b76a290a94f2603f3cb9498ae976125347cf54b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 6 10:27:38 2009 -0400
+
+    [HB] Improve debug output
+
+ src/hb-open-type-private.hh | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+commit 9faee63034d3965735bd6362c0beeca1613bd771
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Aug 6 10:24:49 2009 -0400
+
+    [HB] Minor
+
+ src/hb-private.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit f72059ee6946d9b4812b794f662ee83c7e25fe53
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 5 15:35:02 2009 -0400
+
+    [HB] Add a few TODO items
+
+ src/TODO | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+commit 0d77ab8a73f57c9fca4c6f9301dae394d79526e3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 5 15:27:42 2009 -0400
+
+    [HB] Improve debug output
+
+ src/hb-open-type-private.hh | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+commit 268cac4c9ef8cb592cfb8507273332165b8d3ad3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 5 15:21:48 2009 -0400
+
+    [HB] Fix blob unlock
+
+ src/hb-blob.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 7acb389569cf99c6bae9db31a8ed7c7007fbb566
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 5 15:20:34 2009 -0400
+
+    [HB] Improve debug output and fix mprotect bug
+
+ src/hb-blob.c              | 57
+ ++++++++++++++++++++++++++++++++++++++-------
+ src/hb-open-type-private.hh | 30 +++++++++++-------------
+ src/hb-private.h           |  3 ++-
+ 3 files changed, 65 insertions(+), 25 deletions(-)
+
+commit ec9f8db0d3cad146801b7dc5c59e517de3b6fa34
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 5 14:52:03 2009 -0400
+
+    [HB] Minor
+
+ src/hb-private.h | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit d341881d9a0f835f691b121480046081ad162918
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Aug 5 14:49:25 2009 -0400
+
+    [HB] Fix build of main.cc
+
+ src/Makefile.am | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 8f3be25e7ec88ea451ee8097bf32e5f729f4fef9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 23:43:40 2009 -0400
+
+    [HB] turn debugging off
+
+ src/hb-private.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 62ed5850d9e0e0d0231889470d58e815420c21e5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 23:30:32 2009 -0400
+
+    [HB] Fix another sanitize() bug;  hopefully it's the last one
+
+ src/hb-ot-layout-common-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 90482b68178b687c0f0a3f82cd6a36b2c0bb9384
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 23:24:35 2009 -0400
+
+    [HB] Fix a couple other sanitize() bugs
+
+ src/hb-ot-layout-gpos-private.hh | 4 ++--
+ src/hb-ot-layout-gsub-private.hh | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+commit 4f3ad9115a4161fc23fa559c26082440196217ec
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 23:01:23 2009 -0400
+
+    [HB] More debugging output
+
+ src/hb-open-type-private.hh | 45
+ ++++++++++++++++++++++++++++++++++++++++-----
+ 1 file changed, 40 insertions(+), 5 deletions(-)
+
+commit 8cd6fa28d1b77100491519b8dedb2e113508bf59
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 22:55:44 2009 -0400
+
+    [HB] Fix fatal Sanitizer bug
+
+ src/hb-open-type-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 2870ac5e5d5d87646a4b273a9805fb3fcf280f97
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 22:43:47 2009 -0400
+
+    [HB] Add missing sanitize
+
+ src/hb-open-file-private.hh | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit b28815c1f6e46d38471cacbc31248ca6fda8c4d1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 22:35:36 2009 -0400
+
+    [HB] Add sanitize debugging facilities
+
+ src/hb-open-file-private.hh         |  4 ++++
+ src/hb-open-type-private.hh         | 43
+ +++++++++++++++++++++++++++++++-----
+ src/hb-ot-layout-common-private.hh   | 17 ++++++++++++++
+ src/hb-ot-layout-gdef-private.hh     | 10 +++++++++
+ src/hb-ot-layout-gpos-private.hh     | 28 +++++++++++++++++++++++
+ src/hb-ot-layout-gsub-private.hh     | 18 +++++++++++++++
+ src/hb-ot-layout-gsubgpos-private.hh | 16 ++++++++++++++
+ src/hb-private.h                    |  6 ++++-
+ 8 files changed, 136 insertions(+), 6 deletions(-)
+
+commit 7edb430f9182723b7b720708c56088cec1200a70
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 22:06:57 2009 -0400
+
+    [HB] Rename open-types to open-type; beauty
+
+ src/Makefile.am                   |   2 +-
+ src/hb-open-file-private.hh       |   2 +-
+ src/hb-open-type-private.hh       | 565
+ +++++++++++++++++++++++++++++++++++++
+ src/hb-open-types-private.hh      | 565
+ -------------------------------------
+ src/hb-ot-layout-common-private.hh |  2 +-
+ 5 files changed, 568 insertions(+), 568 deletions(-)
+
+commit f4b58d3fc2956a9d1b6178588d809c781f7a5c0c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 21:47:29 2009 -0400
+
+    [HB] Save edit even if not writeable
+
+ src/hb-open-types-private.hh | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+commit 9bd629ccd064e739789e504c41ad875eed93abba
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 21:42:23 2009 -0400
+
+    [HB] Fix warnings
+
+ src/hb-open-file-private.hh     | 1 +
+ src/hb-open-types-private.hh    | 5 +++++
+ src/hb-ot-layout-gsub-private.hh | 3 +--
+ 3 files changed, 7 insertions(+), 2 deletions(-)
+
+commit 5ff4e13143c227fa57854c987b5a98e610f89361
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 21:35:32 2009 -0400
+
+    [HB] Avoid infinite recusion in Extension sanitize()
+
+ src/hb-ot-layout-gpos-private.hh | 1 +
+ src/hb-ot-layout-gsub-private.hh | 1 +
+ 2 files changed, 2 insertions(+)
+
+commit d60bb8ca2ae6edf29b2227b56c57f0d16879370b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 21:32:57 2009 -0400
+
+    [HB] Hook Sanitizer up.  Hell's breaking loose right now
+
+ src/hb-font.cc                      |  7 ++-----
+ src/hb-open-types-private.hh |  2 +-
+ src/hb-ot-layout.cc         | 12 ++++++------
+ 3 files changed, 9 insertions(+), 12 deletions(-)
+
+commit 679f41fe61242aa8d7f45b64bdb66395aa530fe2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 21:32:06 2009 -0400
+
+    [HB] Fix leak
+
+ src/hb-ot-layout.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 4e8a0602bb0b3cbf7f26cc38790e37cdec7b0b37
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 20:52:47 2009 -0400
+
+    [HB] Add Sanitizer
+
+ src/hb-open-types-private.hh | 58
+ ++++++++++++++++++++++++++++++++++++++++----
+ 1 file changed, 53 insertions(+), 5 deletions(-)
+
+commit 2765d333e523a13dbd932fa33f3b39a5cf83f0f7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 20:50:18 2009 -0400
+
+    [HB] Add XXX
+
+ src/hb-open-file-private.hh | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit a328d66e6a8122f7d4d71941449d4d0136203e08
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 20:27:05 2009 -0400
+
+    [HB] Minor cleanup
+
+ src/hb-ot-layout-gdef-private.hh     | 2 +-
+ src/hb-ot-layout-gpos-private.hh     | 2 +-
+ src/hb-ot-layout-gsub-private.hh     | 2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 4 ++--
+ 4 files changed, 5 insertions(+), 5 deletions(-)
+
+commit 577c1116493d785d3455626612f97dabb383abf0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 19:31:02 2009 -0400
+
+    [HB] Shuffle code around
+
+ src/hb-open-types-private.hh | 127
+ ++++++++++++++++++++++---------------------
+ 1 file changed, 65 insertions(+), 62 deletions(-)
+
+commit b1e187fc6365f5355c652a61494a5e9f6acf51b4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 15:28:49 2009 -0400
+
+    [HB] More sanitize infrastructure
+
+ src/hb-open-types-private.hh | 29 ++++++++++++++++++++++++++++-
+ 1 file changed, 28 insertions(+), 1 deletion(-)
+
+commit b508e5ccd528f3f0f49f545bd5f30a525d5abd5a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 15:07:24 2009 -0400
+
+    [HB] open-file sanitize()
+
+ src/hb-open-file-private.hh  | 46
+ ++++++++++++++++++++++++++++++++++++++++----
+ src/hb-open-types-private.hh | 13 +++++++++++++
+ 2 files changed, 55 insertions(+), 4 deletions(-)
+
+commit 738c54d9caa3affc4b434e56bfb810ff6dc9b0b3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 14:42:46 2009 -0400
+
+    [HB] Tag sanitize()
+
+ src/hb-open-types-private.hh      | 8 ++++++++
+ src/hb-ot-layout-common-private.hh | 6 +-----
+ 2 files changed, 9 insertions(+), 5 deletions(-)
+
+commit e49a84c9e37c08808880e74e94c8160731ababa1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 14:33:23 2009 -0400
+
+    [HB] GDEF sanitize()
+
+ src/hb-ot-layout-gdef-private.hh     | 54
+ ++++++++++++++++++++++++++++++++++++
+ src/hb-ot-layout-gpos-private.hh     |  2 +-
+ src/hb-ot-layout-gsub-private.hh     |  2 +-
+ src/hb-ot-layout-gsubgpos-private.hh |  2 +-
+ 4 files changed, 57 insertions(+), 3 deletions(-)
+
+commit 18939487d04dba86880b0af8e89cf2cc44a431f5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 14:27:56 2009 -0400
+
+    [HB] Fix Extension sanitize()
+
+ src/hb-ot-layout-gpos-private.hh     | 3 ++-
+ src/hb-ot-layout-gsub-private.hh     | 3 ++-
+ src/hb-ot-layout-gsubgpos-private.hh | 2 +-
+ 3 files changed, 5 insertions(+), 3 deletions(-)
+
+commit f2be750981be58a723831e69b1670275851d4be9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 14:12:46 2009 -0400
+
+    [HB] Remove stale TODO
+
+ src/hb-ot-layout.cc | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit ac26e2a838d1266bb5f39c43245eb2a52c5e072d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 14:10:39 2009 -0400
+
+    [HB] Hookup NEUTER()
+
+ src/hb-open-types-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 15164d9258a74122a4db748d35532bd72c47cec2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 13:57:41 2009 -0400
+
+    [HB] Fix mix warnings
+
+ src/Makefile.am                   |  2 +-
+ src/hb-font.cc                            | 15 +++------------
+ src/hb-open-types-private.hh      |  2 +-
+ src/hb-ot-layout-common-private.hh |  6 +++---
+ src/hb-ot-layout-gdef-private.hh   |  2 +-
+ src/hb-ot-layout-gpos-private.hh   |  9 ++++-----
+ src/hb-ot-layout.cc               |  2 +-
+ src/main.cc                       |  4 +---
+ 8 files changed, 15 insertions(+), 27 deletions(-)
+
+commit 42b778f89e0818fe06910ce04e2203485823da09
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 13:30:49 2009 -0400
+
+    [HB] GPOS sanitize()
+
+ src/hb-open-types-private.hh    |  22 ++++-
+ src/hb-ot-layout-gpos-private.hh | 195
+ ++++++++++++++++++++++++++++++++++++++-
+ src/hb-ot-layout-gsub-private.hh |   2 -
+ 3 files changed, 213 insertions(+), 6 deletions(-)
+
+commit dc9c4d93cd0f3ac991f32df08c1c17fc389054c0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 12:26:26 2009 -0400
+
+    [HB] Sanitize DeviceTable
+
+ src/hb-open-types-private.hh      |  8 ++++----
+ src/hb-ot-layout-common-private.hh | 17 ++++++++++++++---
+ src/hb-ot-layout-gsub-private.hh   |  2 +-
+ 3 files changed, 19 insertions(+), 8 deletions(-)
+
+commit ad3a3cd4955661c591b20af1f2c493432f0bebf0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 12:13:52 2009 -0400
+
+    [HB] More casts
+
+ src/hb-ot-layout-gsub-private.hh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 95639fccc1ef18eadeb737e8b611d1d1f1315fc2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 12:05:24 2009 -0400
+
+    [HB] Fix couple of bugs
+
+ src/hb-open-types-private.hh | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 2b5a59c277f4c5bf7aac9a9005054763e322e02d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 11:38:50 2009 -0400
+
+    [HB] More cast cleanup
+
+ src/hb-open-types-private.hh        | 23 ++++++++-----
+ src/hb-ot-layout-common-private.hh   |  7 ++--
+ src/hb-ot-layout-gsub-private.hh     | 27 ++++++---------
+ src/hb-ot-layout-gsubgpos-private.hh | 64
+ +++++++++++++-----------------------
+ 4 files changed, 50 insertions(+), 71 deletions(-)
+
+commit 196598bbccff08415ff5192314cba044df258cad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 11:04:32 2009 -0400
+
+    [Hb] Use reinterpret casts instead of direct casts to char *
+
+ src/hb-open-file-private.hh         |  4 ++--
+ src/hb-open-types-private.hh        | 19 +++++++++++-----
+ src/hb-ot-layout-common-private.hh   |  8 +++----
+ src/hb-ot-layout-gpos-private.hh     | 12 +++++-----
+ src/hb-ot-layout-gsub-private.hh     | 20 ++++++++--------
+ src/hb-ot-layout-gsubgpos-private.hh | 44
+ ++++++++++++++++++------------------
+ 6 files changed, 57 insertions(+), 50 deletions(-)
+
+commit 92b5dd8e71e1bdeaa6e86a53f167683a3f5f4289
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 10:41:32 2009 -0400
+
+    [HB] Merge more templates
+
+ src/hb-open-types-private.hh | 167
+ ++++++++++++++-----------------------------
+ 1 file changed, 55 insertions(+), 112 deletions(-)
+
+commit e6ab2c59ba2d37942ac5fcbfe61d38b7e359ac8c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 10:23:01 2009 -0400
+
+    [HB] Simplify indirect sanitize()
+
+ src/hb-open-types-private.hh      | 52
+ ++++++++++++++++++--------------------
+ src/hb-ot-layout-common-private.hh | 11 +-------
+ 2 files changed, 26 insertions(+), 37 deletions(-)
+
+commit 29d8644a315ebe6976f15db2fe96069376d9b8cd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 02:27:37 2009 -0400
+
+    [HB] Finish GSUB sanitize()
+
+ src/hb-ot-layout-gsub-private.hh | 21 ++++++++++++++++++++-
+ 1 file changed, 20 insertions(+), 1 deletion(-)
+
+commit cf086adca1b7b5a361a248808f9a847e513d3630
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 02:14:24 2009 -0400
+
+    [HB] Add comment
+
+ src/hb-ot-layout-common-private.hh | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit a97ce570ab693190350886e4e80942851c4d5727
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 02:10:48 2009 -0400
+
+    [HB] Optimize sanitize()
+
+ src/hb-open-types-private.hh | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+commit cd3827ee567612c5500206b62840702fc956e0f5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 02:09:34 2009 -0400
+
+    [HB] More sanitize()
+
+ src/hb-open-file-private.hh         |  2 +-
+ src/hb-open-types-private.hh        | 12 ++++---
+ src/hb-ot-layout-common-private.hh   | 64
+ +++++++++++++++++++++++++++++++-----
+ src/hb-ot-layout-gdef-private.hh     |  2 +-
+ src/hb-ot-layout-gsubgpos-private.hh | 15 +++++++--
+ 5 files changed, 79 insertions(+), 16 deletions(-)
+
+commit 70de50c11ed7037b20eb6814ff60f6e32a9944e4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Aug 4 00:58:28 2009 -0400
+
+    [HB] Start sanitize()
+
+ src/hb-open-types-private.hh        | 105 ++++++++++++++++++++++++++++-
+ src/hb-ot-layout-common-private.hh   |  48 +++++++++++++-
+ src/hb-ot-layout-gsub-private.hh     | 125
+ ++++++++++++++++++++++++++++++++++-
+ src/hb-ot-layout-gsubgpos-private.hh | 104 +++++++++++++++++++++++++++++
+ 4 files changed, 376 insertions(+), 6 deletions(-)
+
+commit 5fc22e647c8a2bf6d3cb59185e351ac625e7e322
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 3 22:43:02 2009 -0400
+
+    [HB] Remove use of typeof()
+
+ src/hb-blob.c          |  4 ++--
+ src/hb-buffer.c        |  2 +-
+ src/hb-font.cc                 | 14 +++++++-------
+ src/hb-object-private.h |  4 ++--
+ 4 files changed, 12 insertions(+), 12 deletions(-)
+
+commit 70e0f2a75ec1559f2f70ada837ce4bc4baca49e3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 3 22:01:47 2009 -0400
+
+    [HB] Make it all work again
+
+ src/hb-font.cc                    | 23 ++++++++++++---------
+ src/hb-ot-layout-private.h |  9 +++++---
+ src/hb-ot-layout.cc       | 51
+ +++++++++++++++++++++++-----------------------
+ 3 files changed, 44 insertions(+), 39 deletions(-)
+
+commit 23c86aa0009324433e78fcd0c47f2c0ff14b1949
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 3 21:40:20 2009 -0400
+
+    [HB] Use face_t directly instead of ot_layout_t
+
+ src/TODO                            |   1 +
+ src/hb-font-private.h               |   4 +
+ src/hb-font.cc                              |  74 +++++++++---
+ src/hb-font.h                       |   3 +
+ src/hb-object-private.h             |  36 +++---
+ src/hb-ot-layout-gdef-private.hh     |   2 +
+ src/hb-ot-layout-gpos-private.hh     |  14 +--
+ src/hb-ot-layout-gsub-private.hh     |  32 ++---
+ src/hb-ot-layout-gsubgpos-private.hh |   8 +-
+ src/hb-ot-layout-private.h          |  40 ++++---
+ src/hb-ot-layout.cc                 | 220
+ +++++++++++++++--------------------
+ 11 files changed, 237 insertions(+), 197 deletions(-)
+
+commit fc6c94002dd5478cf9fbdaff12d8374a786c85e1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 3 21:27:08 2009 -0400
+
+    [HB] Simplify sub-blob support
+
+ src/hb-blob.c | 172
+ ++++++++++++++++++++++------------------------------------
+ src/hb-blob.h |  14 +++--
+ 2 files changed, 74 insertions(+), 112 deletions(-)
+
+commit a26442437ae9f11674e0d68cd5cbf395ade7695d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Aug 3 17:53:29 2009 -0400
+
+    [HB] Add sub-blobs
+
+ src/hb-blob.c | 162
+ +++++++++++++++++++++++++++++++++++++++++++++++++---------
+ src/hb-blob.h |  12 ++++-
+ 2 files changed, 147 insertions(+), 27 deletions(-)
+
+commit b28e21b90c4105a0c2e17009b748777294614664
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 2 20:06:48 2009 -0400
+
+    [HB] Rename hb-font.c to hb-font.cc
+
+ src/Makefile.am |   2 +-
+ src/hb-font.c  | 349
+ --------------------------------------------------------
+ src/hb-font.cc  | 349
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 350 insertions(+), 350 deletions(-)
+
+commit 5f5b24f99f52bbc922e238b65c06061ba07c8548
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 2 20:03:12 2009 -0400
+
+    [OT] Rename C++ header files from *.h to *.hh
+
+ src/Makefile.am                     |   14 +-
+ src/hb-open-file-private.h          |  145 ----
+ src/hb-open-file-private.hh         |  145 ++++
+ src/hb-open-types-private.h         |  386 ----------
+ src/hb-open-types-private.hh        |  386 ++++++++++
+ src/hb-ot-layout-common-private.h    |  447 -----------
+ src/hb-ot-layout-common-private.hh   |  447 +++++++++++
+ src/hb-ot-layout-gdef-private.h      |  320 --------
+ src/hb-ot-layout-gdef-private.hh     |  320 ++++++++
+ src/hb-ot-layout-gpos-private.h      | 1355
+ ----------------------------------
+ src/hb-ot-layout-gpos-private.hh     | 1355
+ ++++++++++++++++++++++++++++++++++
+ src/hb-ot-layout-gsub-private.h      |  751 -------------------
+ src/hb-ot-layout-gsub-private.hh     |  751 +++++++++++++++++++
+ src/hb-ot-layout-gsubgpos-private.h  |  773 -------------------
+ src/hb-ot-layout-gsubgpos-private.hh |  773 +++++++++++++++++++
+ src/hb-ot-layout.cc                 |    8 +-
+ src/main.cc                         |    6 +-
+ 17 files changed, 4191 insertions(+), 4191 deletions(-)
+
+commit 2098a021a826e76ee27d5db74e32738d7d1c3d30
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 2 19:57:00 2009 -0400
+
+    [HB] Move OT file handling out of ot-layout
+
+ src/Makefile.am                  |   3 +-
+ src/hb-open-file-private.h       | 145 +++++++++++
+ src/hb-open-types-private.h      | 386 +++++++++++++++++++++++++++++
+ src/hb-ot-layout-common-private.h |   4 +-
+ src/hb-ot-layout-open-private.h   | 495
+ --------------------------------------
+ src/hb-ot-layout.cc              |   2 +-
+ src/main.cc                      |   4 +-
+ 7 files changed, 539 insertions(+), 500 deletions(-)
+
+commit 0ead481a5a8623103565fd7d924666e7342278dd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 2 17:41:36 2009 -0400
+
+    [HB] Port ot-layout to new public API
+
+ src/TODO                           |   1 +
+ src/hb-common.h                    |   1 +
+ src/hb-font.c                      |   9 +
+ src/hb-font.h                      |   3 +
+ src/hb-ot-layout-gdef-private.h     | 32 ++--
+ src/hb-ot-layout-gpos-private.h     | 106 ++++++------
+ src/hb-ot-layout-gsub-private.h     | 50 +++---
+ src/hb-ot-layout-gsubgpos-private.h | 12 +-
+ src/hb-ot-layout-private.h         |  36 +++-
+ src/hb-ot-layout.cc                | 334
+ ++++++++++++++++++++----------------
+ src/hb-ot-layout.h                 | 207 ++++++++++------------
+ 11 files changed, 415 insertions(+), 376 deletions(-)
+
+commit 678bed433371d90536976a2d57195c1e1867f766
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 2 15:35:31 2009 -0400
+
+    [HB] Add top-level header files
+
+ src/Makefile.am |  2 ++
+ src/hb-ot.h    | 34 ++++++++++++++++++++++++++++++++++
+ src/hb.h       | 35 +++++++++++++++++++++++++++++++++++
+ 3 files changed, 71 insertions(+)
+
+commit 2c80296aa5991ad67483889147f5c84fefe54af2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Aug 2 15:20:22 2009 -0400
+
+    [HB] Add XXX marks
+
+ src/hb-ot-layout-private.h | 2 ++
+ src/hb-ot-layout.cc       | 7 ++-----
+ 2 files changed, 4 insertions(+), 5 deletions(-)
+
+commit c46f8efd6ddd981b5724b2600ac98a80193385be
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 1 23:06:27 2009 -0400
+
+    [HB] Rename _duplicate to _copy
+
+    To be in line with cairo
+
+ src/hb-font.c | 4 ++--
+ src/hb-font.h | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+commit f1ebe44985e2192844cf1747a4e36ed81e715ce6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 1 22:55:11 2009 -0400
+
+    [HB] Cleanup TODO
+
+ src/TODO | 10 +---------
+ 1 file changed, 1 insertion(+), 9 deletions(-)
+
+commit f1322e52d557726baa010be8d35a594748e8fa1a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 1 22:53:04 2009 -0400
+
+    [HB] Cleanup public buffer structs
+
+ src/hb-buffer-private.h        | 46
+ +++++++++++++++++++++++++++++++-------
+ src/hb-buffer.c                | 49
+ +++++++++++++++++++++--------------------
+ src/hb-buffer.h                | 35 ++++++++++++++---------------
+ src/hb-ot-layout-gpos-private.h |  8 +++----
+ src/hb-ot-layout-private.h     |  5 +++--
+ src/hb-ot-layout.cc            | 20 ++++++++---------
+ 6 files changed, 97 insertions(+), 66 deletions(-)
+
+commit 6d5bb18e93d2a53350b342869a3ec8f25f0396c2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 1 22:25:04 2009 -0400
+
+    [OT] Match struct with HB's
+
+ src/hb-buffer.c     | 6 +++---
+ src/hb-buffer.h     | 2 +-
+ src/hb-ot-layout.cc | 12 ++++++------
+ 3 files changed, 10 insertions(+), 10 deletions(-)
+
+commit 11fbb5487d9900a019440ef8235f35c9f525decb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 1 22:19:06 2009 -0400
+
+    [HB] Port buffert to new object API
+
+ src/hb-buffer-private.h | 24 +++++++++++++++---
+ src/hb-buffer.c        | 65
+ +++++++++++++++++++++++++++++++++++++------------
+ src/hb-buffer.h        | 53 +++++++++++++++++++++++++---------------
+ 3 files changed, 104 insertions(+), 38 deletions(-)
+
+commit 0cc7bc59ea6e8f38bf1e196c558cca9862ac3302
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 1 21:38:39 2009 -0400
+
+    [HB] Move typedef's around
+
+ src/hb-blob.h  |  2 ++
+ src/hb-common.h |  9 ---------
+ src/hb-font.h  | 10 ++++++++++
+ 3 files changed, 12 insertions(+), 9 deletions(-)
+
+commit a12dd324a3859496a95602d426aee34ce6c5c8a6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 1 21:36:15 2009 -0400
+
+    [HB] Add get_reference_count()
+
+ src/hb-blob.c          |  6 ++++++
+ src/hb-blob.h          |  3 +++
+ src/hb-font.c          | 24 ++++++++++++++++++++++++
+ src/hb-font.h          | 12 ++++++++++++
+ src/hb-object-private.h |  7 +++++++
+ 5 files changed, 52 insertions(+)
+
+commit baec684fde2303edb16341bfcf1022cd72acf129
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 1 21:06:11 2009 -0400
+
+    [HB] Remove glib dependency
+
+ src/Makefile.am  |  7 ++-----
+ src/hb-buffer.c  |  2 +-
+ src/hb-private.h | 30 ++++++++++++++++++------------
+ src/main.cc     |  1 +
+ 4 files changed, 22 insertions(+), 18 deletions(-)
+
+commit df66028781a7609a515980e64396e6f1044d764a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 1 20:46:02 2009 -0400
+
+    [HB] Assorted compiler macros
+
+ src/hb-ot-layout-open-private.h |  4 +-
+ src/hb-private.h               | 88
+ +++++++++++++++++++++++++++++++----------
+ 2 files changed, 70 insertions(+), 22 deletions(-)
+
+commit ba8d94ce3360bfaf2c530d01f2af69237018a531
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 1 20:29:22 2009 -0400
+
+    [HB] Simplify object creation
+
+ src/Makefile.am          |  2 +-
+ src/hb-blob.c            |  6 +--
+ src/hb-font-private.h    |  1 -
+ src/hb-font.c            | 37 ++++++------------
+ src/hb-object-private.h   | 97
+ +++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-private.h         |  2 +
+ src/hb-refcount-private.h | 87 ------------------------------------------
+ 7 files changed, 112 insertions(+), 120 deletions(-)
+
+commit c62b503770325819f249885dfc9d4683a69c9efd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 1 19:54:49 2009 -0400
+
+    [HB] Add abstract font and face API
+
+    Not used yet.
+
+ src/Makefile.am          |   3 +
+ src/hb-blob.c            |   6 +-
+ src/hb-font-private.h    | 108 +++++++++++++++
+ src/hb-font.c            | 331
+ ++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-font.h            | 182 +++++++++++++++++++++++++
+ src/hb-refcount-private.h |  14 +-
+ 6 files changed, 636 insertions(+), 8 deletions(-)
+
+commit 35a7383c6138fd705560f0d4bb30659cbd1ab64c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 1 19:30:31 2009 -0400
+
+    [HB] Simplify refcounting functions
+
+ src/hb-blob.c            | 32 ++++++++++----------------------
+ src/hb-common.h          |  2 ++
+ src/hb-private.h         |  2 ++
+ src/hb-refcount-private.h | 31 ++++++++++++++++++++++++++++++-
+ 4 files changed, 44 insertions(+), 23 deletions(-)
+
+commit 23af767a4475fecc1fe9fe9108f12c05c89bc8c9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 1 19:10:41 2009 -0400
+
+    [HB] Fix for dfont's with multiple faces
+
+ src/hb-ot-layout-open-private.h | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit e97a95f2ea2770689bbf076d3c3ac404f273271e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Aug 1 19:05:44 2009 -0400
+
+    [HB] Use calloc instead of malloc where feasible
+
+ src/hb-blob.c  | 8 +++++---
+ src/hb-buffer.c | 4 ++--
+ 2 files changed, 7 insertions(+), 5 deletions(-)
+
+commit 0090dc0f67b553d2f6eaaedc289c0956ade09ef6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 30 16:28:45 2009 -0400
+
+    [HB] Remove hinting setting and use ppem==0 to mean "no hinting"
+
+ src/hb-blob.h                  |  3 ---
+ src/hb-common.h                |  9 +++++++++
+ src/hb-ot-layout-gpos-private.h | 36 ++++++++++++++++++++++++------------
+ src/hb-ot-layout-private.h     |  2 --
+ src/hb-ot-layout.cc            |  7 -------
+ src/hb-ot-layout.h             |  4 ----
+ 6 files changed, 33 insertions(+), 28 deletions(-)
+
+commit f0954d1e08ae288eda9904e17108fc73f48c0b98
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 30 15:33:57 2009 -0400
+
+    [HB] Add a "blob" manager
+
+ src/Makefile.am          |   5 +-
+ src/hb-blob.c            | 181
+ ++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-blob.h            |  74 +++++++++++++++++++
+ src/hb-private.h         |   2 +
+ src/hb-refcount-private.h |  54 ++++++++++++++
+ 5 files changed, 315 insertions(+), 1 deletion(-)
+
+commit 02a370697d25b986dbf1d5c38f46a89a4833b495
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 29 18:41:25 2009 -0400
+
+    [HB] Move direction to buffer
+
+ src/hb-buffer.c                |  9 +++++++++
+ src/hb-buffer.h                | 14 ++++++++++++++
+ src/hb-ot-layout-gpos-private.h |  2 +-
+ src/hb-ot-layout-private.h     |  1 -
+ src/hb-ot-layout.cc            |  7 -------
+ src/hb-ot-layout.h             |  5 -----
+ 6 files changed, 24 insertions(+), 14 deletions(-)
+
+commit 7cda6fa24c26887c5543d0657b07aad466452cb3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jul 29 18:37:57 2009 -0400
+
+    [HB] Rename internal vars
+
+ src/hb-ot-layout-gsubgpos-private.h | 56
+ ++++++++++++++++++-------------------
+ 1 file changed, 28 insertions(+), 28 deletions(-)
+
+commit b196e6f2743d631ef181f1116370be3055063d36
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 28 15:50:42 2009 -0400
+
+    [HB] Fix buffer enlargement.  Ouch
+
+ src/hb-buffer.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit f9cd1014f8f4d0394b5e0e9eefc1e2af13c59cab
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Jul 28 15:43:34 2009 -0400
+
+    Apply patch from Jonathan Kew
+
+ src/hb-buffer.c     | 75
+ ++++++++++++++++++++++++++++-------------------------
+ src/hb-buffer.h     | 6 ++++-
+ src/hb-ot-layout.cc | 31 ++++++++++++++++++++++
+ src/hb-ot-layout.h  | 15 +++++++++++
+ src/hb-private.h    | 2 +-
+ 5 files changed, 91 insertions(+), 38 deletions(-)
+
+commit 2ebb89d63dd27e800f2b6cbf624924601105f48a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Jul 25 19:09:01 2009 -0400
+
+    Revert "XX"
+
+    This reverts commit c939f6aff405ca7b10b1f1538f46148bff719fcb.
+
+ src/Makefile.am                    |   2 -
+ src/hb-buffer.c                    |   9 ---
+ src/hb-buffer.h                    |  14 -----
+ src/hb-common.h                    |   3 -
+ src/hb-ot-layout-gdef-private.h     | 32 +++++------
+ src/hb-ot-layout-gpos-private.h     | 108
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-gsub-private.h     | 46 +++++++--------
+ src/hb-ot-layout-gsubgpos-private.h | 68 +++++++++++------------
+ src/hb-ot-layout-private.h         |  28 ++++------
+ src/hb-ot-layout.cc                |  30 ++++++++++
+ src/hb-ot-layout.h                 |   5 ++
+ src/hb-private.h                   |  16 ------
+ 12 files changed, 174 insertions(+), 187 deletions(-)
+
+commit 55520d2af172f5f6617b909e80cbd7d898f2bc15
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jun 10 23:26:51 2009 -0400
+
+    XX
+
+ src/Makefile.am                    |   2 +
+ src/hb-buffer.c                    |   9 +++
+ src/hb-buffer.h                    |  14 +++++
+ src/hb-common.h                    |   3 +
+ src/hb-ot-layout-gdef-private.h     | 32 +++++------
+ src/hb-ot-layout-gpos-private.h     | 108
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-gsub-private.h     | 46 +++++++--------
+ src/hb-ot-layout-gsubgpos-private.h | 68 +++++++++++------------
+ src/hb-ot-layout-private.h         |  28 ++++++----
+ src/hb-ot-layout.cc                |  30 ----------
+ src/hb-ot-layout.h                 |   5 --
+ src/hb-private.h                   |  16 ++++++
+ 12 files changed, 187 insertions(+), 174 deletions(-)
+
+commit f53d434b9151c4ec43c148734b49bb165e522cc9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 30 22:17:32 2009 -0400
+
+    [GPOS] Advance buffer cursor in SinglePos lookups. Ouch!
+
+ src/hb-ot-layout-gpos-private.h | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit e35bbd570a5d914f86f1ea83941ee4328f268059
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 30 12:02:46 2009 -0400
+
+    [HB] Improve buffer.  Don't dup out buffer unless out is longer
+    than in
+
+    That is, we work in-place even for ligatures now.
+
+ src/hb-buffer.c | 156
+ ++++++++++++++++++++++++--------------------------------
+ src/hb-buffer.h |   7 ++-
+ 2 files changed, 71 insertions(+), 92 deletions(-)
+
+commit 6734ed4b6b2ce382917bf644aaf1acfa993f00ad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 27 18:16:55 2009 -0400
+
+    [GPOS] Fix property checking
+
+ src/hb-ot-layout-gpos-private.h | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit cc83ae12484108586fba6586bd9008971338b322
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 27 00:17:37 2009 -0400
+
+    [GPOS] Add vertical TODO
+
+ src/hb-ot-layout-gpos-private.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit b69d38e7eaea544ba6c1876cdc6ddac61a698dd3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 26 22:29:02 2009 -0400
+
+    [HB] Remove useless include
+
+ src/hb-ot-layout-private.h | 3 ---
+ 1 file changed, 3 deletions(-)
+
+commit 6c8108cb583292a679b05844ab613b7f4587adc6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 26 22:26:08 2009 -0400
+
+    [GPOS] Remove unused variables
+
+ src/hb-ot-layout-gpos-private.h | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit 09c292e3b688a67fbae67b645d1e6ffcf8d8eb6e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 26 19:48:16 2009 -0400
+
+    [HB] Fix glyph properties
+
+ src/hb-ot-layout-common-private.h | 6 +++---
+ src/hb-ot-layout-open-private.h   | 2 +-
+ src/hb-ot-layout.cc              | 2 +-
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+commit 64e33f008ff9cc807fdfdc4553ad3fe01bb0615f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 26 18:57:56 2009 -0400
+
+    [GPOS] Fix PairPos signedness
+
+ src/hb-ot-layout-gpos-private.h | 11 ++++-------
+ 1 file changed, 4 insertions(+), 7 deletions(-)
+
+commit 80ea5bd10e72561a7627a5196621a6d7eccd91b7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 26 17:58:37 2009 -0400
+
+    [GPOS] Fix mark matching
+
+ src/hb-ot-layout-gpos-private.h | 44
+ +++++++++++++++++++----------------------
+ 1 file changed, 20 insertions(+), 24 deletions(-)
+
+commit 4189b92aaa41e4a1756c561cc6e08b0ed024afda
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 26 17:31:56 2009 -0400
+
+    [HB] When looking back/forward, skip marks only
+
+ src/TODO                           |  1 -
+ src/hb-ot-layout-gpos-private.h     | 13 ++-----
+ src/hb-ot-layout-gsub-private.h     | 38 +++++++++-----------
+ src/hb-ot-layout-gsubgpos-private.h | 14 ++++----
+ src/hb-ot-layout-private.h         |  6 ++++
+ src/hb-ot-layout.cc                | 69
+ ++++++++++++++++++++++++-------------
+ 6 files changed, 76 insertions(+), 65 deletions(-)
+
+commit 1246e41021ab1d782b4c97e5d81c4917a57e3ed4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 26 15:58:34 2009 -0400
+
+    [GDEF] Support MarkFilteringSets
+
+ src/hb-ot-layout.cc | 59
+ +++++++++++++++++++----------------------------------
+ 1 file changed, 21 insertions(+), 38 deletions(-)
+
+commit 5130c35e93528bcf3095fee5baf3847589167a58
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 26 15:45:41 2009 -0400
+
+    [HB] Simplify MarkAttachmentType handling
+
+ src/hb-ot-layout-gpos-private.h |  6 +++---
+ src/hb-ot-layout-gsub-private.h |  6 ++----
+ src/hb-ot-layout.cc            | 18 ++++++++----------
+ 3 files changed, 13 insertions(+), 17 deletions(-)
+
+commit e4b92b85a7750bd4271ad607b3c41f0184e89feb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 26 15:38:53 2009 -0400
+
+    [HB] Support parsing MarkFilteringSets introduced in OpenType 1.6
+
+ src/hb-ot-layout-gdef-private.h | 55
+ +++++++++++++++++++++++++++++++++++------
+ src/hb-ot-layout-gpos-private.h |  1 +
+ src/hb-ot-layout.cc            |  6 ++---
+ 3 files changed, 51 insertions(+), 11 deletions(-)
+
+commit 515ce4ceb2ab0151d8dfc03ff0bfc7d110dd93b5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 26 13:08:00 2009 -0400
+
+    [HB] More de-C++'ization
+
+ src/hb-ot-layout-gsubgpos-private.h | 24 ++++++++++++------------
+ 1 file changed, 12 insertions(+), 12 deletions(-)
+
+commit d7df42d7ee586219475878d160f85ae5a188bd59
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 26 13:04:59 2009 -0400
+
+    [HB] Start MarkFilteringSet support
+
+ src/hb-ot-layout-common-private.h | 24 +++++++++++++++++++-----
+ 1 file changed, 19 insertions(+), 5 deletions(-)
+
+commit 62964afcecd96038cfaa8bc2bc931f43ee83be7e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 26 12:40:10 2009 -0400
+
+    [HB] Implement get_lig_carets()
+
+ src/hb-ot-layout-gdef-private.h | 57
+ ++++++++++++++++++++++++++++++++---------
+ src/hb-ot-layout.cc            | 17 +++++++++---
+ src/hb-ot-layout.h             |  8 +++++-
+ src/main.cc                    |  9 +------
+ 4 files changed, 66 insertions(+), 25 deletions(-)
+
+commit 79420ad9caf2d5fc94c3693e8292edfa27060b2d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 26 12:24:16 2009 -0400
+
+    [HB] Add get_attach_points()
+
+ src/Makefile.am                |  2 +-
+ src/hb-ot-layout-gdef-private.h | 35 +++++++++++++++++++++++++----------
+ src/hb-ot-layout-gpos-private.h | 28 +++++++---------------------
+ src/hb-ot-layout-gsub-private.h | 28 +++++++---------------------
+ src/hb-ot-layout-open-private.h | 12 +++---------
+ src/hb-ot-layout.cc            |  9 +++++++++
+ src/hb-ot-layout.h             |  6 ++++++
+ src/main.cc                    |  8 ++++----
+ 8 files changed, 62 insertions(+), 66 deletions(-)
+
+commit 855720ca47bf5a7a44eb5b84dce9f7da6e7156bd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 26 12:00:28 2009 -0400
+
+    [HB] Remove more macros
+
+ src/hb-ot-layout-gdef-private.h | 18 +++++++++---------
+ 1 file changed, 9 insertions(+), 9 deletions(-)
+
+commit c968fc2dc87cf85b53f60a40db59d5ee7b992edf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 25 04:04:24 2009 -0400
+
+    [HB] More buffer cleanup
+
+ src/hb-buffer-private.h            |  39 +++--------
+ src/hb-buffer.c                    | 136
+ ++++++++++++++++++------------------
+ src/hb-buffer.h                    |  22 +++---
+ src/hb-ot-layout-gpos-private.h     | 29 ++++----
+ src/hb-ot-layout-gsub-private.h     | 10 +--
+ src/hb-ot-layout-gsubgpos-private.h |  8 +--
+ src/hb-ot-layout-private.h         |  13 ++--
+ src/hb-ot-layout.cc                |  16 ++---
+ src/hb-private.h                   |  29 --------
+ 9 files changed, 125 insertions(+), 177 deletions(-)
+
+commit 88a5f5a49b6809d88560791f9cf6b8f78f22a4ad
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 25 03:39:11 2009 -0400
+
+    [HB] Cleanup buffer
+
+ src/hb-buffer-private.h            |  2 +-
+ src/hb-buffer.c                    | 26 ++++++++------
+ src/hb-ot-layout-gsub-private.h     | 26 +++++---------
+ src/hb-ot-layout-gsubgpos-private.h | 2 +-
+ src/hb-ot-layout.cc                | 71
+ -------------------------------------
+ 5 files changed, 25 insertions(+), 102 deletions(-)
+
+commit 347f0b8621d3adfec157e5634ff3defc818ea37f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 25 03:30:31 2009 -0400
+
+    [HB] Clean more
+
+ src/hb-ot-layout-private.h | 10 ++++------
+ src/hb-ot-layout.cc       |  8 ++++----
+ 2 files changed, 8 insertions(+), 10 deletions(-)
+
+commit d9d2a07f4a8696666a12f5a206aa9cfb56dc2b35
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 25 03:24:19 2009 -0400
+
+    [HB] Remove one XXX, add another
+
+ src/hb-buffer.h           | 2 ++
+ src/hb-ot-layout-private.h | 3 +--
+ 2 files changed, 3 insertions(+), 2 deletions(-)
+
+commit 6c78683c042250a7b5a6fc6ebae4717b03fadf9e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 25 03:22:19 2009 -0400
+
+    [HB] Update copyright years
+
+ src/hb-buffer-private.h    | 2 +-
+ src/hb-buffer.h           | 2 +-
+ src/hb-common.h           | 2 +-
+ src/hb-ot-layout-private.h | 2 +-
+ src/hb-ot-layout.h        | 2 +-
+ src/hb-private.h          | 2 +-
+ 6 files changed, 6 insertions(+), 6 deletions(-)
+
+commit 4497af0069a94c69fc1518b1db2c1282721b732a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 25 03:20:18 2009 -0400
+
+    [HB] Would have helped if I actually knew C++ before using it...
+
+ src/hb-ot-layout-gsubgpos-private.h | 4 ++--
+ src/hb-ot-layout-open-private.h     | 24 ++++++++++++------------
+ 2 files changed, 14 insertions(+), 14 deletions(-)
+
+commit cc6c644ff2af5f6669b6ec100ff13e904872b21c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 25 03:10:06 2009 -0400
+
+    [HB] More cleanup
+
+ src/hb-ot-layout-common-private.h | 4 ++--
+ src/hb-ot-layout-open-private.h   | 9 +++++----
+ 2 files changed, 7 insertions(+), 6 deletions(-)
+
+commit 20cc86b3592db33731de671f008d7d222776be49
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 25 02:41:49 2009 -0400
+
+    [HB] Simplify Tag
+
+ src/hb-ot-layout-open-private.h | 46
+ ++++++++++++++++-------------------------
+ 1 file changed, 18 insertions(+), 28 deletions(-)
+
+commit 3ec0092c5e2d48e8c4fc1618d3bee427adddb1e7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 25 02:34:25 2009 -0400
+
+    [HB] Simplify more
+
+ src/hb-ot-layout-open-private.h | 31 ++++++++++---------------------
+ 1 file changed, 10 insertions(+), 21 deletions(-)
+
+commit 6ad8d5f3c7028147b371137ae4bca6aae66b3489
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 25 02:27:29 2009 -0400
+
+    [HB] Simplify some basic things
+
+ src/hb-ot-layout-open-private.h | 90
+ +++++++++++++++++++++++++++--------------
+ src/main.cc                    |  8 ++--
+ 2 files changed, 64 insertions(+), 34 deletions(-)
+
+commit f96ffd43bce0ac6d9c897933c9be0e51d543e570
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 24 15:01:16 2009 -0400
+
+    [HB] simplify macros
+
+ src/hb-buffer-private.h    | 4 ++--
+ src/hb-buffer.h           | 4 ++--
+ src/hb-common.h           | 8 ++++----
+ src/hb-ot-layout-private.h | 4 ++--
+ src/hb-ot-layout.h        | 4 ++--
+ 5 files changed, 12 insertions(+), 12 deletions(-)
+
+commit 8e7b30782a12f3997b9a5a18e6b9d01f6bff8b46
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 24 14:27:24 2009 -0400
+
+    [HB] Update text files
+
+ src/COPYING | 7 -------
+ src/README  | 13 ++-----------
+ 2 files changed, 2 insertions(+), 18 deletions(-)
+
+commit fa7d47249496fe00ea1ab6943b385c8dd80e5ce6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 24 14:24:35 2009 -0400
+
+    [HB] Remove stale makefile.msc too
+
+ src/makefile.msc | 19 -------------------
+ 1 file changed, 19 deletions(-)
+
+commit da2c52abcd75d46929b34cad55c4fb2c8892bc08
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 24 14:22:22 2009 -0400
+
+    [HB] Remove old code!
+
+    Goodbye 16 thousand lines of ten-year old code!
+
+ src/harfbuzz-dump-main.c      |   97 -
+ src/harfbuzz-dump.c          |  768 ------
+ src/harfbuzz-dump.h          |   41 -
+ src/harfbuzz-gdef-private.h   |  124 -
+ src/harfbuzz-gdef.c          | 1160 --------
+ src/harfbuzz-gdef.h          |  135 -
+ src/harfbuzz-global.h        |   84 -
+ src/harfbuzz-gpos-private.h   |  712 -----
+ src/harfbuzz-gpos.c          | 6071
+ -----------------------------------------
+ src/harfbuzz-gpos.h          |  174 --
+ src/harfbuzz-gsub-private.h   |  476 ----
+ src/harfbuzz-gsub.c          | 4304 -----------------------------
+ src/harfbuzz-gsub.h          |  140 -
+ src/harfbuzz-impl.c          |   84 -
+ src/harfbuzz-impl.h          |  126 -
+ src/harfbuzz-open-private.h   |  102 -
+ src/harfbuzz-open.c          | 1405 ----------
+ src/harfbuzz-open.h          |  282 --
+ src/harfbuzz-stream-private.h |   83 -
+ src/harfbuzz-stream.c        |  257 --
+ src/harfbuzz.c                       |   31 -
+ src/harfbuzz.h                       |   35 -
+ 22 files changed, 16691 deletions(-)
+
+commit e5372f1621602dcee4e14a4b22dc182c21502a50
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 24 14:21:27 2009 -0400
+
+    [HB] Remove stale TODO mark
+
+ src/hb-ot-layout-open-private.h | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 96908b898476ca5d7da5f386b15be76f9e83d76e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 24 12:30:40 2009 -0400
+
+    [HB] Add FixedVersion cast to int
+
+ src/hb-ot-layout-open-private.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 957740dd253475020a94a62ec5dfcd03e3358176
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 24 12:29:55 2009 -0400
+
+    [HB] Simplify tag
+
+ src/hb-ot-layout-open-private.h | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+commit 87fcdcbe3644da10154688765db2d62eb9ac079a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 24 01:03:24 2009 -0400
+
+    [HB] Remove unused data types
+
+ src/hb-ot-layout-gdef-private.h     | 2 +-
+ src/hb-ot-layout-gsubgpos-private.h | 2 +-
+ src/hb-ot-layout-open-private.h     | 54
+ ++++---------------------------------
+ 3 files changed, 7 insertions(+), 51 deletions(-)
+
+commit 5876bf1b73fcb56cc41b4d348248a4817f9688cb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 24 00:53:28 2009 -0400
+
+    [HB] Simplify version check in GSUB/GPOS
+
+ src/hb-ot-layout-gpos-private.h | 5 ++++-
+ src/hb-ot-layout-gsub-private.h | 5 ++++-
+ 2 files changed, 8 insertions(+), 2 deletions(-)
+
+commit 212aba6189d7aaac0bab169b77ae6bdab16800a5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 24 00:50:27 2009 -0400
+
+    [HB] Check for GDEF/GSUB/GPOS versions
+
+ src/hb-ot-layout-gdef-private.h     | 3 +--
+ src/hb-ot-layout-gpos-private.h     | 3 +--
+ src/hb-ot-layout-gsub-private.h     | 3 +--
+ src/hb-ot-layout-gsubgpos-private.h | 5 ++---
+ src/hb-ot-layout-open-private.h     | 11 ++++++++++-
+ 5 files changed, 15 insertions(+), 10 deletions(-)
+
+commit a21b5062cc32c04eeee3c4b20d26c7e2b34133e9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 23 22:39:42 2009 -0400
+
+    [HB] Minor
+
+ src/hb-ot-layout-gdef-private.h | 6 +++---
+ src/hb-ot-layout-open-private.h | 4 ++--
+ 2 files changed, 5 insertions(+), 5 deletions(-)
+
+commit a080b1cc2f66d6e109d431a1e09519d7cf53bb9a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 23 18:50:44 2009 -0400
+
+    [HB] Add TODO items
+
+ src/TODO | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+commit e4efdd80a8fa4edbcdec9cd84f35f5f4521943c2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 22 18:54:24 2009 -0400
+
+    [GDEF] Add some get_carret_value() code
+
+ src/hb-ot-layout-gdef-private.h | 36 ++++++++++++++++++------------------
+ 1 file changed, 18 insertions(+), 18 deletions(-)
+
+commit 9b006bc0322723d065271e4b0ea4f137f81101e1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 22 18:29:45 2009 -0400
+
+    [GPOS] MarkLigPosFormat1
+
+    GPOS is complete now!  Yay!
+
+ src/hb-ot-layout-gpos-private.h | 128
+ +++++++++++++++++++++++++++++-----------
+ 1 file changed, 92 insertions(+), 36 deletions(-)
+
+commit 923923feb248250626c637c11a886804011197b0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 22 17:58:09 2009 -0400
+
+    [HB] Remove apply_subtables() again
+
+ src/hb-ot-layout-gpos-private.h | 31 +++++++++++--------------------
+ src/hb-ot-layout-gsub-private.h | 33 ++++++++++++---------------------
+ 2 files changed, 23 insertions(+), 41 deletions(-)
+
+commit d468f9af5b9fdc2713b0b86f28129e4190ee5053
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 21 22:31:33 2009 -0400
+
+    [HB] Share Extension lookup code between GSUB and GPOS
+
+ src/hb-ot-layout-gpos-private.h     | 64 +++++-----------------------
+ src/hb-ot-layout-gsub-private.h     | 83
+ +++++++------------------------------
+ src/hb-ot-layout-gsubgpos-private.h | 52 +++++++++++++++++++++++
+ 3 files changed, 77 insertions(+), 122 deletions(-)
+
+commit 498f1909e0f7a32484b2058622c4a018cbfc1334
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 21 15:51:04 2009 -0400
+
+    [GPOS] Remove printf.  MarkMarkPos1 is working
+
+    The "bug" was in the font.
+
+ src/hb-ot-layout-gpos-private.h | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit c7d457aa3ae7138630f52ca7263f663a3ea284c0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 21 12:46:29 2009 -0400
+
+    [HB] Ouch. Add files.
+
+ src/hb-common.h  | 13 +++++-----
+ src/hb-private.h | 74
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++--
+ 2 files changed, 78 insertions(+), 9 deletions(-)
+
+commit fe550f4dd815285e9de8c3cbff810b0a1c7b377f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 21 08:27:07 2009 -0400
+
+    [GPOS] MarkMarkPosFormat1
+
+    Still not quite working.
+
+ src/TODO                       |   4 +-
+ src/hb-ot-layout-gpos-private.h | 105
+ +++++++++++++++++++++++++++++-----------
+ 2 files changed, 79 insertions(+), 30 deletions(-)
+
+commit 357ccde36bba01a405d59b7da061fc5048cdc7b4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 21 06:32:01 2009 -0400
+
+    [GPOS] MarkBasePosFormat1
+
+ src/TODO                       |  1 +
+ src/hb-ot-layout-gpos-private.h | 62
+ +++++++++++++++++++++++++++++++++++++----
+ 2 files changed, 58 insertions(+), 5 deletions(-)
+
+commit 377bfc5860ae018f54e4a2dd737b4b000383ab54
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 21 04:58:24 2009 -0400
+
+    [GPOS] Implement MarkArray interface
+
+ src/hb-ot-layout-gpos-private.h | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit c18ec2b1d7b8c7abe6ebf4b53c9ec75d5c9bb255
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 21 04:54:01 2009 -0400
+
+    [GPOS] Implement Device support in AnchorFormat3
+
+ src/hb-ot-layout-gpos-private.h | 11 ++++++++---
+ 1 file changed, 8 insertions(+), 3 deletions(-)
+
+commit fca6a0d158b847181dcf67a13f34499177df899b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 21 04:49:04 2009 -0400
+
+    [GPOS] Remove apply_value() return value
+
+ src/hb-ot-layout-gpos-private.h | 75
+ +++++++++++++++++++----------------------
+ 1 file changed, 34 insertions(+), 41 deletions(-)
+
+commit fb3b5ccfefc4c38c9184d432703e81f73e1f5bc7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 21 04:47:05 2009 -0400
+
+    [GPOS] Start MarkBasePosFormat1
+
+ src/TODO                       |  1 +
+ src/hb-ot-layout-gpos-private.h | 38
+ +++++++++++++++++---------------------
+ 2 files changed, 18 insertions(+), 21 deletions(-)
+
+commit ee8776d9e009a7fb8e1f3c1f9cf3ad42d9746a16
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 20 15:46:12 2009 -0400
+
+    [HB] Add TODO item
+
+ src/hb-ot-layout-gpos-private.h | 1 +
+ src/hb-ot-layout-gsub-private.h | 1 +
+ 2 files changed, 2 insertions(+)
+
+commit c6456ca5cfc35095378dcf29f8edc33ece9c3ea1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 20 06:15:23 2009 -0400
+
+    [HB] Add TODO item
+
+ src/TODO | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 3015c4175179a1816aad2a4950da9a3b8baf2578
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 20 06:01:16 2009 -0400
+
+    [HB] Remove last dependence on the old code base!
+
+ src/hb-buffer-private.h        | 88
+ ++++++++++++++++++++---------------------
+ src/hb-buffer.c                | 47 +++++++++++-----------
+ src/hb-ot-layout-gpos-private.h | 11 ++----
+ src/hb-ot-layout-gsub-private.h | 12 +++---
+ src/hb-ot-layout.cc            | 16 ++++----
+ 5 files changed, 85 insertions(+), 89 deletions(-)
+
+commit 5c0adce1ccc739415c4b26ff13ffd2d77ea4bc6c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 20 05:42:12 2009 -0400
+
+    [HB] Rename harfbuzz-buffer to hb-buffer
+
+ src/Makefile.am                    |   5 +-
+ src/harfbuzz-buffer-private.h      | 106 -----------
+ src/harfbuzz-buffer.c              | 349
+ ------------------------------------
+ src/harfbuzz-buffer.h              |  94 ----------
+ src/hb-buffer-private.h            | 106 +++++++++++
+ src/hb-buffer.c                    | 347
+ +++++++++++++++++++++++++++++++++++
+ src/hb-buffer.h                    |  94 ++++++++++
+ src/hb-ot-layout-gsubgpos-private.h |  2 +-
+ src/hb-ot-layout-private.h         |   2 +-
+ src/hb-ot-layout.cc                |   5 +-
+ src/hb-ot-layout.h                 |   2 +-
+ 11 files changed, 556 insertions(+), 556 deletions(-)
+
+commit b857b49c82782d29d6d189f1a9f4a84d39cd84ea
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 20 05:35:14 2009 -0400
+
+    [HB] Remove all references to the old code!
+
+ src/Makefile.am           |  76 +++++++---------------
+ src/harfbuzz-buffer.c     | 154
+ +++++++++++++++++++--------------------------
+ src/harfbuzz-buffer.h     |  80 +++++++++++------------
+ src/hb-ot-layout-private.h |  6 +-
+ src/hb-ot-layout.cc       |  17 ++---
+ src/hb-ot-layout.h        |   1 +
+ 6 files changed, 137 insertions(+), 197 deletions(-)
+
+commit e1593a6e620ee6a8184487185d1c95e0d1820ba5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 20 04:51:30 2009 -0400
+
+    [GPOS] Finally it's working, up to Cursive
+
+    Wow, IranNastaliq renders perfectly again!
+
+ src/hb-ot-layout.cc | 24 ++++++++++++++++++++++++
+ src/hb-ot-layout.h  | 12 ++++++++++++
+ 2 files changed, 36 insertions(+)
+
+commit 0f7e6b2cead0c7d527ef68ededb27e0afd71d819
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 20 04:16:35 2009 -0400
+
+    [GPOS] Fix more brokenness
+
+ src/Makefile.am                |  2 +-
+ src/hb-ot-layout-gpos-private.h | 37
+ ++++++++++++++++++++-----------------
+ src/hb-ot-layout.cc            |  7 +++++++
+ src/hb-ot-layout.h             |  5 +++++
+ 4 files changed, 33 insertions(+), 18 deletions(-)
+
+commit ff05d257dd43221b7c8ebead188e78495daa8eda
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 20 03:53:00 2009 -0400
+
+    [HB] Move lookup types enum into subtable class
+
+ src/hb-ot-layout-gpos-private.h | 66
+ ++++++++++++++++++++---------------------
+ src/hb-ot-layout-gsub-private.h | 44 +++++++++++++--------------
+ 2 files changed, 55 insertions(+), 55 deletions(-)
+
+commit 263bbef7670b59aa88ef9ba910579dfa51226524
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 20 00:00:09 2009 -0400
+
+    [GDEF] Simplify Device access
+
+ src/hb-ot-layout-gdef-private.h | 12 +++---------
+ 1 file changed, 3 insertions(+), 9 deletions(-)
+
+commit 60d77cf05fddc5304b4b1fc19cdedba15cbee1e9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 19 23:58:54 2009 -0400
+
+    [HB] Indentation
+
+ src/hb-ot-layout-common-private.h   | 170
+ +++++++++++++++++-------------------
+ src/hb-ot-layout-gdef-private.h     | 65 +++++++-------
+ src/hb-ot-layout-gsubgpos-private.h | 150 +++++++++++++++++--------------
+ src/hb-ot-layout-open-private.h     | 159
+ ++++++++++++++++-----------------
+ src/hb-ot-layout-private.h         |   9 +-
+ 5 files changed, 288 insertions(+), 265 deletions(-)
+
+commit 90de3dfff9e82dae20b7517642511aebaf736b74
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 19 23:43:04 2009 -0400
+
+    [HB] Remove unused methods
+
+ src/hb-ot-layout-common-private.h | 6 ------
+ 1 file changed, 6 deletions(-)
+
+commit 4c44d830d79431fcb143df2b5a29cdc8e8fccef3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 19 23:42:30 2009 -0400
+
+    [HB] Indentation
+
+ src/hb-ot-layout-gpos-private.h | 253
+ +++++++++++++++++++++-----------------
+ src/hb-ot-layout-gsub-private.h | 262
+ ++++++++++++++++++++++------------------
+ 2 files changed, 284 insertions(+), 231 deletions(-)
+
+commit d18fd8e3f7185f531fa4c4988d3f5d5c5282b8eb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 19 23:25:41 2009 -0400
+
+    [GPOS] CursivePosFormat1
+
+ src/hb-ot-layout-gpos-private.h | 174
+ ++++++++++++++++++++++++++++++++++++++--
+ src/hb-ot-layout-private.h     |   2 +-
+ 2 files changed, 169 insertions(+), 7 deletions(-)
+
+commit 70632add333e4ab38f8f485bb87b25116128cf92
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 19 22:30:09 2009 -0400
+
+    [GSUB] PairPosFormat2
+
+ src/hb-ot-layout-gpos-private.h | 43
+ ++++++++++++++++++++++++++++++++++++-----
+ 1 file changed, 38 insertions(+), 5 deletions(-)
+
+commit b24ecbadf44d56fd3286d1d3ff6928151ccec9bd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 19 22:16:04 2009 -0400
+
+    [GPOS] PairPosFormat1
+
+ src/hb-ot-layout-gpos-private.h | 91
+ +++++++++++++++++++++++++++++++++--------
+ 1 file changed, 73 insertions(+), 18 deletions(-)
+
+commit 056c7ec1aea1eca60a3b20b583b8a8072be9d758
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 19:47:52 2009 -0400
+
+    [GPOS] Start filling apply() functions in
+
+ src/harfbuzz-buffer-private.h    |   1 +
+ src/harfbuzz-buffer.c            |   3 -
+ src/hb-ot-layout-common-private.h |  35 ++++++-----
+ src/hb-ot-layout-gpos-private.h   | 127
+ ++++++++++++++++++++++++++++----------
+ 4 files changed, 116 insertions(+), 50 deletions(-)
+
+commit 4fa77d3c4305a76b956de8c1a9b83a961d035a80
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 18:44:54 2009 -0400
+
+    [HB] Use enums
+
+ src/hb-ot-layout-common-private.h | 14 ++++++++------
+ src/hb-ot-layout-gdef-private.h   | 22 +++++++++++++---------
+ 2 files changed, 21 insertions(+), 15 deletions(-)
+
+commit 6b54c5d0446b514fbb6521e7e9e614d153435f0e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 18:30:25 2009 -0400
+
+    [HB] More reference cast simplification
+
+ src/hb-ot-layout-gsub-private.h     | 8 ++++----
+ src/hb-ot-layout-gsubgpos-private.h | 28 ++++++++++++++--------------
+ src/hb-ot-layout-open-private.h     | 2 +-
+ 3 files changed, 19 insertions(+), 19 deletions(-)
+
+commit eb0dfc830e09405492f494c85380e133ac5d0ea3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 18:22:44 2009 -0400
+
+    [HB] Rename LOOKUP_ARGS to APPLY_ARGS
+
+ src/hb-ot-layout-gpos-private.h     | 88
+ ++++++++++++++++++------------------
+ src/hb-ot-layout-gsub-private.h     | 84
+ +++++++++++++++++-----------------
+ src/hb-ot-layout-gsubgpos-private.h | 90
+ ++++++++++++++++++-------------------
+ 3 files changed, 131 insertions(+), 131 deletions(-)
+
+commit 2a8e6accdf798a78ff180dcb593140592d62b872
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 18:21:44 2009 -0400
+
+    [HB] Internally rename position() and substitute() to apply()
+
+ src/hb-ot-layout-gpos-private.h | 110
+ ++++++++++++++++++++--------------------
+ src/hb-ot-layout-gsub-private.h | 104
+ ++++++++++++++++++-------------------
+ 2 files changed, 107 insertions(+), 107 deletions(-)
+
+commit f6c8a6eacf27fd1c509d07c85985f0367c5e475f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 18:01:19 2009 -0400
+
+    [HB] Simplify casts
+
+ src/hb-ot-layout-gdef-private.h |  2 +-
+ src/hb-ot-layout-gpos-private.h |  6 +++---
+ src/hb-ot-layout-gsub-private.h |  6 +++---
+ src/hb-ot-layout-open-private.h | 10 +++++-----
+ 4 files changed, 12 insertions(+), 12 deletions(-)
+
+commit 9c42f05a5ccbb48a9367b80ecdf3679e88088fcf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 17:43:49 2009 -0400
+
+    Switch Pango to new, defunt, GPOS
+
+ src/hb-ot-layout-gpos-private.h | 22 +++++++++++++++-------
+ src/hb-ot-layout.cc            | 13 +++++++++++++
+ src/hb-ot-layout.h             |  5 +++++
+ 3 files changed, 33 insertions(+), 7 deletions(-)
+
+commit 5e5eb0573f7ea2ce2cf037fef0df70a4351e82c0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 17:09:33 2009 -0400
+
+    [HB] Start GPOS!
+
+ src/hb-ot-layout-gpos-private.h | 915
+ ++++++++++++++++++++++++++++++++++++++++
+ src/hb-ot-layout-gsub-private.h |   2 -
+ src/hb-ot-layout-private.h     |  15 +-
+ src/hb-ot-layout.cc            |   5 +-
+ src/hb-ot-layout.h             |   8 +-
+ 5 files changed, 936 insertions(+), 9 deletions(-)
+
+commit 64e67f7599deeec98b104f8b70d0d321cf96799d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 15:32:40 2009 -0400
+
+    [GSUB] Minor
+
+ src/hb-ot-layout-gsub-private.h | 16 ++++++----------
+ 1 file changed, 6 insertions(+), 10 deletions(-)
+
+commit d79cae0b4eef8c2694ada791bb8e427c1202875e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 13:50:15 2009 -0400
+
+    [HB] Minor
+
+ src/hb-ot-layout-gsub-private.h | 22 +++++++++++-----------
+ 1 file changed, 11 insertions(+), 11 deletions(-)
+
+commit 8533bb985e6af2b656d7c45620d8f11f36330b85
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 06:00:12 2009 -0400
+
+    [GSUB] Protect against mismatching Extension subtable types
+
+ src/hb-ot-layout-gsub-private.h | 9 ++++++---
+ 1 file changed, 6 insertions(+), 3 deletions(-)
+
+commit 969afd706e9b52adc79f6210c0088b2c6bbae9bc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 05:47:47 2009 -0400
+
+    [GSUB] Implement ReverseChainSingleSubst
+
+    GSUB is done!
+
+ src/hb-ot-layout-gsub-private.h     | 55
+ +++++++++++++++++++++++++++----------
+ src/hb-ot-layout-gsubgpos-private.h | 43 +++++++++--------------------
+ 2 files changed, 54 insertions(+), 44 deletions(-)
+
+commit 4acaffd786a11b5bd7d41b39fc65625fd8cd5077
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 05:29:29 2009 -0400
+
+    [HB] Don't use G_LIKELY!
+
+ src/hb-ot-layout-gsub-private.h     | 12 ++++++------
+ src/hb-ot-layout-gsubgpos-private.h | 12 ++++++------
+ src/hb-ot-layout-open-private.h     | 4 ++--
+ src/hb-ot-layout.cc                |  6 +++---
+ 4 files changed, 17 insertions(+), 17 deletions(-)
+
+commit 3dcb12f171ebbf44461e6ce6439d286c9520dd88
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 05:22:32 2009 -0400
+
+    [GSUB] Oops, fix Extension check
+
+ src/hb-ot-layout-gsub-private.h | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+commit 2e8fb6c38dbc01cb77b384c0ae0212514dfbb588
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 04:37:37 2009 -0400
+
+    [HB] Tweak some constants and fix Coverage
+
+ src/hb-ot-layout-common-private.h   | 11 ++++++-----
+ src/hb-ot-layout-gsubgpos-private.h | 2 ++
+ src/hb-ot-layout-open-private.h     | 6 +++---
+ 3 files changed, 11 insertions(+), 8 deletions(-)
+
+commit d6aae5f5cad54fc5dac8b0ff10a3921ebda533d4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 04:25:22 2009 -0400
+
+    [HB] Cleanup TODOs
+
+ src/hb-ot-layout-gsub-private.h | 12 ++++++------
+ src/hb-ot-layout-open-private.h |  2 +-
+ src/hb-ot-layout.cc            |  4 ++--
+ 3 files changed, 9 insertions(+), 9 deletions(-)
+
+commit 122f21fb9a3a0b914575929a3be11884f1ae00c0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 04:21:53 2009 -0400
+
+    [GSUB] Fix context_length handling in Ligature too
+
+ src/hb-ot-layout-gsub-private.h     | 9 ++++-----
+ src/hb-ot-layout-gsubgpos-private.h | 5 +++--
+ 2 files changed, 7 insertions(+), 7 deletions(-)
+
+commit 47958dea214fd55725bf04aa13d233870255fb03
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 04:17:47 2009 -0400
+
+    [HB] Minor cleanup
+
+ src/hb-ot-layout-gsubgpos-private.h | 10 ++++------
+ 1 file changed, 4 insertions(+), 6 deletions(-)
+
+commit e73a0c2a903112ce9a35b95e14e10ab8ea2dc337
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 04:15:25 2009 -0400
+
+    [HB] Correctly skip glyphs when applying (Chain)Context lookups
+
+ src/hb-ot-layout-gsubgpos-private.h | 14 +++++++++++---
+ 1 file changed, 11 insertions(+), 3 deletions(-)
+
+commit 7cff75babd64cd49dd2b3faaa15193d12c098f42
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 04:09:05 2009 -0400
+
+    [HB] Fix context_length checking
+
+ src/hb-ot-layout-gsubgpos-private.h | 23 +++++++++++++----------
+ src/hb-ot-layout-open-private.h     | 2 +-
+ 2 files changed, 14 insertions(+), 11 deletions(-)
+
+commit d0ba0557007798db2c60ddd0b7a5a0624cd1698d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 03:56:39 2009 -0400
+
+    [HB] ChainContext complete
+
+    IranNastaliq renders perfectly again!
+
+ src/hb-ot-layout-gsubgpos-private.h | 63
+ +++++++++++++++++++++++++++----------
+ 1 file changed, 46 insertions(+), 17 deletions(-)
+
+commit e072c24e79f0e7c1e078a87c782ab5dd8f21dcda
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 03:47:31 2009 -0400
+
+    [HB] Implement backtrack matching
+
+ src/hb-ot-layout-gsubgpos-private.h | 61
+ +++++++++++++++++++++++++++----------
+ 1 file changed, 45 insertions(+), 16 deletions(-)
+
+commit 02e1e5c63fa4f896053fa3c21e495239e1e9caa2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 02:47:57 2009 -0400
+
+    [HB] One more step to go, for fully working GSUB and ChainContext
+
+ src/hb-ot-layout-gsubgpos-private.h | 107
+ ++++++++++++++++++++----------------
+ 1 file changed, 61 insertions(+), 46 deletions(-)
+
+commit f14c2b7acfba75b8a6880f41ceec758f9a56abce
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 02:36:18 2009 -0400
+
+    [HB] Further modularize Context matching
+
+ src/hb-ot-layout-gsubgpos-private.h | 92
+ +++++++++++++++++++++++++------------
+ 1 file changed, 63 insertions(+), 29 deletions(-)
+
+commit 13ed4405c558e445b052360f1ed8ee27ecf48e6e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 02:14:37 2009 -0400
+
+    [HB] A step closer to working ChainContext
+
+ src/hb-ot-layout-gsubgpos-private.h | 36
+ ++++++++++++++++++++++++++----------
+ 1 file changed, 26 insertions(+), 10 deletions(-)
+
+commit e8cbaaf6d538036ff9b880b018db402e0895ed01
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 02:03:58 2009 -0400
+
+    [HB] Add HeadlessArrayTo<>
+
+ src/hb-ot-layout-gsub-private.h     | 10 ++++------
+ src/hb-ot-layout-gsubgpos-private.h | 5 ++---
+ src/hb-ot-layout-open-private.h     | 19 +++++++++++++++++++
+ 3 files changed, 25 insertions(+), 9 deletions(-)
+
+commit dcb6b60254951a2831c03f3196962d229f7e556c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 18 01:49:57 2009 -0400
+
+    [HB] More template goodness
+
+ src/hb-ot-layout-gsubgpos-private.h | 37
+ +++++++++++++++----------------------
+ 1 file changed, 15 insertions(+), 22 deletions(-)
+
+commit aa3d7adca5c821c91a2a1b5380fd6b3d19656ab1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 23:17:56 2009 -0400
+
+    [HB] More churning towards ChainContext lookups
+
+ src/hb-ot-layout-common-private.h   |  6 +-
+ src/hb-ot-layout-gsub-private.h     | 15 +++-
+ src/hb-ot-layout-gsubgpos-private.h | 174
+ ++++++++++++++++++++++--------------
+ 3 files changed, 125 insertions(+), 70 deletions(-)
+
+commit 48f16ed96ac7041b511d9e0864623d2aa09c6da3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 22:11:30 2009 -0400
+
+    [HB] Towards sharing Context and ChainContext code
+
+ src/hb-ot-layout-gsubgpos-private.h | 220
+ ++++++++++++++++--------------------
+ 1 file changed, 99 insertions(+), 121 deletions(-)
+
+commit 6cf2a52593cb4b23e3efe5e16228e3172bdcdd05
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 21:11:49 2009 -0400
+
+    [HB] Add check to avoid infinite recursion
+
+ src/hb-ot-layout-gsub-private.h | 12 ++++++++----
+ 1 file changed, 8 insertions(+), 4 deletions(-)
+
+commit 887c4b44165eeb8ac7fb09bc4474d11720b94a9e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 21:06:08 2009 -0400
+
+    [HB] Cosmetic
+
+ src/hb-ot-layout-gsub-private.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit ca5290f4994e1b2db4dac03f7a22b7071441ba06
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 20:48:27 2009 -0400
+
+    [HB] Start ChainContext and ReverseChainSingleSubst lookups
+
+ src/hb-ot-layout-gsub-private.h     | 269
+ ++++++++----------------------------
+ src/hb-ot-layout-gsubgpos-private.h | 214 +++++++++++++++++++++++++++-
+ 2 files changed, 268 insertions(+), 215 deletions(-)
+
+commit 433f4aea741e39df079126769441b79ab64fd236
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 20:30:05 2009 -0400
+
+    [HB] Remove stale TODO
+
+ src/hb-ot-layout-private.h | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 6f20f72e9c58ba23db2e31afa5d331acfea3d77e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 20:28:01 2009 -0400
+
+    [HB] Split Layout-common tables into new files
+
+ src/hb-ot-layout-common-private.h   | 429
+ ++++++++++++++++++++++++++++++++++++
+ src/hb-ot-layout-gdef-private.h     |  3 +-
+ src/hb-ot-layout-gsub-private.h     |  1 +
+ src/hb-ot-layout-gsubgpos-private.h |  2 +
+ src/hb-ot-layout-open-private.h     | 408
+ ----------------------------------
+ 5 files changed, 434 insertions(+), 409 deletions(-)
+
+commit f45107fe0904414f1266648a6c42849c494fe611
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 20:13:02 2009 -0400
+
+    [HB] More shuffling
+
+ src/hb-ot-layout-gsub-private.h     | 71
+ +++++++++++++++++++++----------------
+ src/hb-ot-layout-gsubgpos-private.h | 30 ++++++++++++++++
+ src/hb-ot-layout-open-private.h     | 41 ---------------------
+ 3 files changed, 71 insertions(+), 71 deletions(-)
+
+commit f8dc67b3c24dfc805da756a73cb217b36e16b4b8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 19:47:54 2009 -0400
+
+    [HB] Cleanup format unions
+
+ src/hb-ot-layout-gdef-private.h     | 18 ++++----
+ src/hb-ot-layout-gsub-private.h     | 87
+ +++++++++++++++++++------------------
+ src/hb-ot-layout-gsubgpos-private.h | 16 +++----
+ src/hb-ot-layout-open-private.h     | 41 +++++++----------
+ 4 files changed, 77 insertions(+), 85 deletions(-)
+
+commit da1097bc3b1995776c205707fd2b17603b804646
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 19:31:18 2009 -0400
+
+    [HB] Use four bytes for Null Tag, not 5
+
+ src/hb-ot-layout-open-private.h | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit 19fc24f268b985d30971307ac2055622d11cb21f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 09:45:32 2009 -0400
+
+    [HB] Couple size checks
+
+ src/hb-ot-layout-gsub-private.h     | 7 +++++--
+ src/hb-ot-layout-gsubgpos-private.h | 4 ++--
+ src/hb-ot-layout-open-private.h     | 4 ++--
+ 3 files changed, 9 insertions(+), 6 deletions(-)
+
+commit ecf17e849db19599bbb816d0018380ebf979576b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 09:34:41 2009 -0400
+
+    [HB] Propagate property of first glyph
+
+    This slightly grows code size.
+
+ src/hb-ot-layout-gsub-private.h     | 100
+ +++++++++++++++++++-----------------
+ src/hb-ot-layout-gsubgpos-private.h |  7 +--
+ 2 files changed, 56 insertions(+), 51 deletions(-)
+
+commit eca8e33710cfce51454e64d974ff0c28b0eefa14
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 09:07:27 2009 -0400
+
+    [GSUB] Further optimize the main switch
+
+ src/hb-ot-layout-gsub-private.h | 31 +++++++++++++++++--------------
+ 1 file changed, 17 insertions(+), 14 deletions(-)
+
+commit 13068232e7054748ae5ba0d961ee5a95b959e92e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 08:59:01 2009 -0400
+
+    [HB] Unify first glyph property checking
+
+ src/hb-ot-layout-gsub-private.h     | 81
+ ++++++++++++++++---------------------
+ src/hb-ot-layout-gsubgpos-private.h | 12 ------
+ 2 files changed, 35 insertions(+), 58 deletions(-)
+
+commit 66bf7ce4e3135535c110a917178b84c4a2b1d11f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 08:28:42 2009 -0400
+
+    [HB] Move Context matching logic out of GSUB
+
+ src/hb-ot-layout-gdef-private.h     |  2 -
+ src/hb-ot-layout-gsub-private.h     | 331
+ +---------------------------------
+ src/hb-ot-layout-gsubgpos-private.h | 347
+ ++++++++++++++++++++++++++++++++++++
+ 3 files changed, 352 insertions(+), 328 deletions(-)
+
+commit a1625528cd5ed94bc8f18903da3300e823ee5b54
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 07:52:11 2009 -0400
+
+    [GSUB] Unify ContextSubst matching
+
+ src/hb-ot-layout-gsub-private.h | 378
+ ++++++++++++++++------------------------
+ 1 file changed, 154 insertions(+), 224 deletions(-)
+
+commit c36238bea40e9e2b589028eb6de0710455b31585
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 07:39:34 2009 -0400
+
+    [HB] Renames
+
+ src/hb-ot-layout-gsub-private.h | 122
+ ++++++++++++++++++++--------------------
+ 1 file changed, 61 insertions(+), 61 deletions(-)
+
+commit 15c3e75b39797a153b6bc0598f87b27c4a487228
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 06:03:42 2009 -0400
+
+    [HB] Simplify buffer
+
+ src/harfbuzz-buffer-private.h  | 14 ++++++--------
+ src/harfbuzz-buffer.c          | 35 ++++++++++++++++-------------------
+ src/harfbuzz-gsub.c            |  6 +++---
+ src/hb-ot-layout-gsub-private.h | 12 ++++++------
+ 4 files changed, 31 insertions(+), 36 deletions(-)
+
+commit 36f78446cef8a7cbae000d5e742c9d13e1cc7f83
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 05:52:32 2009 -0400
+
+    [HB] Add TODO item
+
+ src/TODO             | 1 +
+ src/harfbuzz-buffer.c | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+
+commit ee58aaebd296ea8237516754fd4e825d524b11b7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 05:14:33 2009 -0400
+
+    [HB] Update copyright years
+
+ src/hb-ot-layout-gdef-private.h | 2 +-
+ src/hb-ot-layout-open-private.h | 2 +-
+ src/hb-ot-layout.cc            | 2 +-
+ src/main.cc                    | 2 +-
+ 4 files changed, 4 insertions(+), 4 deletions(-)
+
+commit f4c9514935cf97a58dcb3b1962ac3f3b5ba61264
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 04:59:56 2009 -0400
+
+    [HB] Simplify more arrays
+
+ src/hb-ot-layout-open-private.h | 241
+ ++++++++++++++++------------------------
+ src/hb-ot-layout.cc            |   8 +-
+ 2 files changed, 100 insertions(+), 149 deletions(-)
+
+commit c9a7cbe9cb52264af9954e5ce9ac7a45d7e310cd
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 01:22:51 2009 -0400
+
+    [HB] Use ArrayOf<> in GSUB
+
+ src/hb-ot-layout-gdef-private.h |   3 +-
+ src/hb-ot-layout-gsub-private.h | 157
+ +++++++++++++---------------------------
+ src/hb-ot-layout-open-private.h |   5 --
+ 3 files changed, 53 insertions(+), 112 deletions(-)
+
+commit 5f810363acc3ad3cba631a68620e3d37e54c95c4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 00:54:25 2009 -0400
+
+    [HB] Add ArrayOf<>
+
+ src/hb-ot-layout-gdef-private.h | 62 ++++++++-------------------------
+ src/hb-ot-layout-open-private.h | 77
+ ++++++++++++++++++++++++++++++-----------
+ 2 files changed, 71 insertions(+), 68 deletions(-)
+
+commit 238c855fcd4f0ef97a94a8662d2a2f2bb5c21ecb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 00:22:37 2009 -0400
+
+    [HB] Use OffsetTo<> for Coverage
+
+ src/hb-ot-layout-gdef-private.h |  1 +
+ src/hb-ot-layout-gsub-private.h | 55
+ ++++++++++++++++-------------------------
+ src/hb-ot-layout-open-private.h | 10 +-------
+ 3 files changed, 23 insertions(+), 43 deletions(-)
+
+commit 3d54bd1293069fc3d3bdeeea8ad45036f3ee65f3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 00:15:51 2009 -0400
+
+    [HB] Use OffsetTo<> in more places
+
+ src/hb-ot-layout-gdef-private.h | 12 +++++-------
+ src/hb-ot-layout-open-private.h |  4 ++++
+ 2 files changed, 9 insertions(+), 7 deletions(-)
+
+commit 9e4d9d7b2721859172bc9c59c1aea27b01eb9c07
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun May 17 00:09:20 2009 -0400
+
+    [HB] Add OffsetTo template.
+
+ src/hb-ot-layout-gdef-private.h | 26 ++++++++++++++------------
+ src/hb-ot-layout-gsub-private.h |  6 +++---
+ src/hb-ot-layout-open-private.h | 27 ++++++++++++++++++---------
+ 3 files changed, 35 insertions(+), 24 deletions(-)
+
+commit e07f89295b9b38d233dfd4acec1f6b4a3416f267
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 16 23:20:48 2009 -0400
+
+    [HB] Automate int-type size assertion
+
+ src/hb-ot-layout-open-private.h | 13 +++----------
+ 1 file changed, 3 insertions(+), 10 deletions(-)
+
+commit 8b8358033184198ff638ee1379093717596e162d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 16 22:48:14 2009 -0400
+
+    [HB] Use templates for Null objects
+
+    Also use a common pool for all nul-content ones.
+
+ src/hb-ot-layout-gdef-private.h |  12 ++--
+ src/hb-ot-layout-gsub-private.h |  28 ++++----
+ src/hb-ot-layout-open-private.h | 142
+ +++++++++++++++++++++++-----------------
+ src/hb-ot-layout.cc            |   8 +--
+ 4 files changed, 105 insertions(+), 85 deletions(-)
+
+commit 6e13d4140158aff736647fc53d8c0ae3a02c2afc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 16 20:15:16 2009 -0400
+
+    [HB] Remove obsolete comment
+
+ src/hb-ot-layout-gdef-private.h | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 9f721cf380954d67415dbfd0404a983cdd75b7df
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 16 19:59:15 2009 -0400
+
+    [GSUB] Start ChainContextSubst
+
+ src/hb-ot-layout-gsub-private.h | 50
+ ++++++++++++++++++++++++++++++++---------
+ 1 file changed, 39 insertions(+), 11 deletions(-)
+
+commit 7fca9e5245d2d283e8b5354eb1ddf553a7ffc033
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat May 16 19:44:24 2009 -0400
+
+    [GSUB] Implement ContextSubstFormat3
+
+ src/hb-ot-layout-gsub-private.h | 62
+ ++++++++++++++++++++++++++++++++++++++++-
+ 1 file changed, 61 insertions(+), 1 deletion(-)
+
+commit 1ff926a5681b5d4bfce65351062cda9dc1ffeba2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 15 20:25:37 2009 -0400
+
+    [GSUB] Implement ContextSubstFormat2
+
+ src/hb-ot-layout-gsub-private.h | 105
+ +++++++++++++++++++++++++++++++++++++---
+ 1 file changed, 97 insertions(+), 8 deletions(-)
+
+commit fc36d9453ed7edb0a570abc44d7caa87aafb0fcf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 15 20:11:10 2009 -0400
+
+    [GSUB] Add GSUB::substitute_lookup()
+
+ src/hb-ot-layout-gsub-private.h | 7 +++++++
+ src/hb-ot-layout.cc            | 5 +----
+ 2 files changed, 8 insertions(+), 4 deletions(-)
+
+commit c43562b2a7587fa3f9ef4c1c4338e4eda77368b5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 15 18:54:53 2009 -0400
+
+    [GSUB] Finish ContextSubstFormat1
+
+ src/hb-ot-layout-gsub-private.h | 77
+ ++++++++++++++++++++++++++++++++---------
+ src/hb-ot-layout-private.h     | 14 ++++++++
+ src/hb-ot-layout.cc            | 13 -------
+ 3 files changed, 74 insertions(+), 30 deletions(-)
+
+commit 5ee21896224e3a9835a9695037a94ccf1c35a217
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 15 13:28:56 2009 -0400
+
+    [HB] Fix typo
+
+ src/hb-ot-layout-open-private.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 6b59c9b445b6d2454008c83a2c7d6a995ea5995e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 15 01:00:36 2009 -0400
+
+    [HB] Add TODO item
+
+ src/TODO | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit c5419b6cf28822e07f1ef9b0394825e9cb01a445
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 8 21:17:56 2009 -0400
+
+    [HB] Remove DEFINE_NON_INSTANTIABLE
+
+ src/hb-ot-layout-gdef-private.h |  2 --
+ src/hb-ot-layout-gsub-private.h |  3 ---
+ src/hb-ot-layout-open-private.h | 18 +-----------------
+ 3 files changed, 1 insertion(+), 22 deletions(-)
+
+commit 0dff25f0368c5f14ebb0a4af35f3bb6658740d57
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 8 21:12:18 2009 -0400
+
+    [HB] Remove get_size()
+
+ src/hb-ot-layout-gdef-private.h |  9 ------
+ src/hb-ot-layout-gsub-private.h | 63
+ -----------------------------------------
+ src/hb-ot-layout-open-private.h | 42 ++-------------------------
+ 3 files changed, 3 insertions(+), 111 deletions(-)
+
+commit 25c6c9a3f6c062ec639d9202a8b9844be64d6fc0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 8 19:09:17 2009 -0400
+
+    [GSUB] ContextSubst format 1
+
+ src/hb-ot-layout-gsub-private.h | 52
+ +++++++++++++++++++++++++++++++++++------
+ 1 file changed, 45 insertions(+), 7 deletions(-)
+
+commit f70229510303109bd0f71423cdf13aa200066d17
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri May 8 18:45:53 2009 -0400
+
+    [GSUB] Shuffle
+
+ src/hb-ot-layout-gsub-private.h | 170
+ ++++++++++++++++++++--------------------
+ 1 file changed, 86 insertions(+), 84 deletions(-)
+
+commit a83e08f8728439ef75e3dfab2191ac913d8f907b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu May 7 12:53:02 2009 -0400
+
+    [HarfBuzz] Start a TODO file
+
+ src/TODO | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit eed05b04ebc2cbb3fa699c99200db12a0081cefb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 6 00:25:59 2009 -0400
+
+    [GSUB] minor
+
+ src/hb-ot-layout-open-private.h | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit cdb317bc4e188421cad997b448abb19223d39e96
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed May 6 00:12:29 2009 -0400
+
+    [GSUB] Towards Context subtitutes
+
+ src/hb-ot-layout-gsub-private.h | 137
+ +++++++++++++++++++++++++++++++---------
+ 1 file changed, 108 insertions(+), 29 deletions(-)
+
+commit c9c6a78aec2b16ac06dfca8cbfaf28a77a10bae2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 5 16:22:02 2009 -0400
+
+    [GSUB] Minor refactoring
+
+ src/hb-ot-layout-gsub-private.h | 42
+ ++++++++++++++++++++++-------------------
+ 1 file changed, 23 insertions(+), 19 deletions(-)
+
+commit bb3899a579b00134b24df8891b69bf1621a8190f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue May 5 13:25:13 2009 -0400
+
+    [GSUB] Implement ligature substitutions
+
+ src/Makefile.am                |   2 +
+ src/hb-ot-layout-gsub-private.h | 113
+ ++++++++++++++++++++++++++++++++--------
+ 2 files changed, 93 insertions(+), 22 deletions(-)
+
+commit 38b011a293181856463dd08d43e2106e5bf1d56e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon May 4 20:21:57 2009 -0400
+
+    [GSUB] Hook new GSUB up in Pango
+
+ src/hb-ot-layout-gsub-private.h | 15 ++++++++++-----
+ 1 file changed, 10 insertions(+), 5 deletions(-)
+
+commit a84e71ad11a72feff47ead16772a8c4bcf4f69d5
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 16 16:53:40 2009 -0400
+
+    [GSUB] Start Ligature subtable support
+
+ src/hb-ot-layout-gsub-private.h | 132
+ +++++++++++++++++++++++++++++-----------
+ src/hb-ot-layout.h             |   2 +-
+ 2 files changed, 96 insertions(+), 38 deletions(-)
+
+commit 52886ca56b24a8335614b1df16a33dd4e2d7ae56
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 16 14:19:42 2009 -0400
+
+    [GSUB] Implement Alternate subtables
+
+ src/hb-ot-layout-gsub-private.h | 104
+ ++++++++++++++++++++++++++++++++++++----
+ src/hb-ot-layout-open-private.h |   2 +-
+ 2 files changed, 97 insertions(+), 9 deletions(-)
+
+commit 4f27ce7e0213ac5ba356f0fd2ec0a175ffd002e6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 16 13:40:13 2009 -0400
+
+    [GSUB] Implement Extension subtables
+
+ src/hb-ot-layout-gsub-private.h | 169
+ +++++++++++++++++++++++++---------------
+ 1 file changed, 108 insertions(+), 61 deletions(-)
+
+commit 83e61ff4702121d3418fe82a8fe7ef6bb63bb5d2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 16 12:30:51 2009 -0400
+
+    [GSUB] Fix reverse lookup loop like we did in the old code before
+
+ src/hb-ot-layout-gsub-private.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 5a0b791184cf6ef39eae0570e14aca21abc32845
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 16 04:45:30 2009 -0400
+
+    [harfbuzz/GSUB] towards a partially working GSUB
+
+ src/harfbuzz-buffer.c          |   2 +-
+ src/harfbuzz-impl.h            |   2 +-
+ src/harfbuzz.c                         |   1 -
+ src/hb-ot-layout-gdef-private.h |   4 +-
+ src/hb-ot-layout-gsub-private.h | 383
+ +++++++++++++++++++++++++++++-----------
+ src/hb-ot-layout-open-private.h |  31 +++-
+ src/hb-ot-layout-private.h     |   6 +-
+ src/hb-ot-layout.cc            |  94 +++++++---
+ src/hb-ot-layout.h             |   2 -
+ 9 files changed, 381 insertions(+), 144 deletions(-)
+
+commit 30bd763fa2fa4aceee51433ec9fc8dc28480b5d7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 15 22:56:15 2009 -0400
+
+    Implement the first substitute()
+
+ src/harfbuzz-buffer-private.h  |  8 ++--
+ src/harfbuzz-buffer.c          |  4 +-
+ src/harfbuzz-buffer.h          |  2 +-
+ src/harfbuzz-gdef-private.h    |  4 +-
+ src/harfbuzz-gdef.c            |  6 +--
+ src/harfbuzz-gdef.h            |  2 +-
+ src/harfbuzz-gpos.c            |  8 ++--
+ src/harfbuzz-gpos.h            |  2 +-
+ src/harfbuzz-gsub.h            |  2 +-
+ src/hb-ot-layout-gsub-private.h | 88
+ +++++++++++++++++++++++++++++++++++++----
+ src/hb-ot-layout-open-private.h |  2 +-
+ src/hb-ot-layout-private.h     | 23 ++++++-----
+ src/hb-ot-layout.cc            | 54 +++++++++++++++++--------
+ src/hb-ot-layout.h             |  2 +-
+ 14 files changed, 151 insertions(+), 56 deletions(-)
+
+commit ce48f03946bef895912019046bdbe62bb1301d0b
+Merge: 0e13bee 2d15e72
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Nov 2 14:35:51 2009 -0500
+
+    Merge harfbuzz-ng
+
+commit 0e13beeb93077750183a8242780158b88df81e26
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Apr 17 17:03:39 2009 -0400
+
+    Use git.mk
+
+ src/Makefile.am | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 2d15e72c75931398db5e027e660f1320bb979117
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Apr 15 19:50:16 2009 -0400
+
+    Give it a start at GSUB
+
+ src/hb-common.h                |   5 +-
+ src/hb-ot-layout-gdef-private.h |  24 ++++----
+ src/hb-ot-layout-gsub-private.h | 120
+ +++++++++++++++++++++++++++++++++++++++-
+ src/hb-ot-layout-open-private.h |  51 ++++++++++-------
+ src/hb-ot-layout-private.h     |   2 +-
+ src/hb-ot-layout.cc            |  63 +++++++++++++++++++--
+ src/hb-ot-layout.h             |  29 +++++++++-
+ src/main.cc                    |   4 +-
+ 8 files changed, 253 insertions(+), 45 deletions(-)
+
+commit 9d870f2a558f4e463e3ff953312202a8d144158b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Apr 9 13:30:26 2009 -0400
+
+    Bug 577952 – Error loading {GDEF,GSUB,GPOS} table 0x6EAD
+
+    Detect TrueType Collections by checking the font data header instead
+    of checking for "face->num_faces >1".
+
+ src/harfbuzz-stream.c | 11 +++++++++--
+ 1 file changed, 9 insertions(+), 2 deletions(-)
+
+commit d49caf1f77743550d83fc7feced1293ba34a4e99
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Mar 2 15:16:11 2009 +0330
+
+    [opentype] Protect against illegal access for arrays of length zero
+
+ src/harfbuzz-gpos.c | 22 ++++++++++++++++++----
+ src/harfbuzz-gsub.c | 6 ++++++
+ 2 files changed, 24 insertions(+), 4 deletions(-)
+
+commit 66871797af194f9d2161faf8bfbc9684f09e207e
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Mar 2 14:20:20 2009 +0330
+
+    [opentype] Use size_t instead of uint for malloc wrappers
+
+ src/harfbuzz-impl.c | 4 ++--
+ src/harfbuzz-impl.h | 6 ++++--
+ 2 files changed, 6 insertions(+), 4 deletions(-)
+
+commit 3664e59c52ed56486a3e38126c0c3abb78f42233
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Mar 2 11:09:29 2009 +0330
+
+    Fix Bug 572529 – Poor -I ordering can break build
+
+ src/Makefile.am | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit aca4d11388eedd532a73bd34747abb65c0ea9291
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Mon Feb 2 00:13:07 2009 +0000
+
+    Allocate all array rows in a single ALLOC call. Saves over 100
+    alloc calls
+
+    2009-01-31 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz-gpos.c (Load_Mark2Array),
+           (Free_Mark2Array):
+           Allocate all array rows in a single ALLOC call.  Saves over
+           100
+           alloc calls when loading DejaVu Sans,
+
+ src/harfbuzz-gpos.c | 59
+ +++++++++++++++--------------------------------------
+ 1 file changed, 17 insertions(+), 42 deletions(-)
+
+commit c561d69c721105b78bb06d1e3c5f21ca314d924a
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Jan 29 09:20:08 2009 +0000
+
+    Remove ClassDef->Defined field. This is the comment accompanying it:
+
+    2009-01-29 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz-open.h:
+           * pango/opentype/harfbuzz-gdef.c (Make_ClassRange),
+           (HB_GDEF_Build_ClassDefinition):
+           * pango/opentype/harfbuzz-gpos.c (Load_PosClassRule),
+           (Load_ChainPosClassRule):
+           * pango/opentype/harfbuzz-gsub.c (Load_SubClassRule),
+           (Load_ChainSubClassRule):
+           * pango/opentype/harfbuzz-open.c (Load_ClassDef1),
+           (Load_ClassDef2), (_HB_OPEN_Load_ClassDefinition),
+           (_HB_OPEN_Load_EmptyClassDefinition),
+           (_HB_OPEN_Free_ClassDefinition):
+           Remove ClassDef->Defined field.  This is the comment
+           accompanying it:
+
+             The `Defined' field is not defined in the OpenType
+             specification
+             but apparently needed for processing fonts like trado.ttf:
+             This
+             font refers to a class which contains not a single element.
+             We
+             map such classes to class 0.
+
+           The comment is correct that trado.ttf (MS Traditional
+           Arabic) uses
+           such classes.  However, in my testing I couldn't identify any
+           problems with the font if the special handling is removed.
+           I also
+           processed as many fonts as I could get my hand on and
+           trado.ttf was
+           the only not-totally-broken font hitting the special-case
+           code.
+           DejaVu fonts hit it too, but I'm sure they do not require the
+           special-handling code.  Most probably, that code introduces
+           bugs
+           in them.
+
+           The special-casing was consuming lots of memory.
+           EIGHT MEGABYTES
+           for loading DejaVu Sans!  While this could be complete
+           fixed, I
+           decided to remove the special-handling code altogether.
+           I don't
+           think it will make any real difference, and if it does,
+           we'll fix
+           fonts.  Such hacks will not be in harfbuzz-ng anyway.
+
+           Bug originally reported by nsf.
+
+ src/harfbuzz-gdef.c | 8 --------
+ src/harfbuzz-gpos.c | 32 --------------------------------
+ src/harfbuzz-gsub.c | 31 -------------------------------
+ src/harfbuzz-open.c | 30 +++---------------------------
+ src/harfbuzz-open.h | 8 --------
+ 5 files changed, 3 insertions(+), 106 deletions(-)
+
+commit 9372edd6f020c92609853609dcb504c72551c9c3
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Jan 29 09:19:56 2009 +0000
+
+    Use calloc(), instead of malloc()ing and memset()ing.
+
+    2009-01-29 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz-impl.c (_hb_alloc): Use calloc(),
+           instead of malloc()ing and memset()ing.
+
+ src/harfbuzz-impl.c | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+commit 94c21d26ba878b3168a21f2e76f02bc52e8fe6fd
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Jan 29 09:19:43 2009 +0000
+
+    Remove old cruft.
+
+    2009-01-29 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz-dump-main.c (main): Remove old
+           cruft.
+
+ src/harfbuzz-dump-main.c | 144
+ +----------------------------------------------
+ 1 file changed, 1 insertion(+), 143 deletions(-)
+
+commit 0a47c4f78e8a9e81cd305f24ec92ea61ead7dd8d
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Jan 29 09:19:20 2009 +0000
+
+    Allocate all array rows in a single ALLOC call. Saves over 2000 alloc
+
+    2009-01-29 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz-gpos.c (Load_BaseArray),
+           (Free_BaseArray):
+           Allocate all array rows in a single ALLOC call.  Saves over
+           2000
+           alloc calls when loading DejaVu Sans!
+
+ src/harfbuzz-gpos.c | 57
+ ++++++++++++++++-------------------------------------
+ 1 file changed, 17 insertions(+), 40 deletions(-)
+
+commit 549be924bccd187f53791dfa27647981ac909545
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Fri Dec 26 02:31:47 2008 +0000
+
+    Bug 469049 – Fix all compiler warnings
+
+    2008-12-25 Behdad Esfahbod  <behdad@gnome.org>
+
+           Bug 469049 – Fix all compiler warnings
+
+           * pango-view/viewer-pangocairo.c (render_callback):
+           * pango/fonts.c (append_field),
+           (pango_font_description_to_string):
+           * pango/opentype/harfbuzz-dump.c:
+           * pango/pango-bidi-type.c
+           (pango_log2vis_get_embedding_levels):
+           * pango/pango-coverage.c (pango_coverage_set):
+           * pango/pango-markup.c (span_parse_func):
+           * pango/pango-renderer.c
+           (pango_renderer_default_draw_error_underline):
+           * pango/pango-utils.c (pango_scan_string):
+           * pango/pangocairo-render.c
+           (pango_cairo_renderer_draw_trapezoid),
+           (draw_error_underline), (pango_cairo_renderer_class_init):
+           Fix all the remaining warnings.
+
+ src/harfbuzz-dump.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 719f9eaa755396ff377da10c5eeced01d3456b1b
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Fri Dec 26 02:31:35 2008 +0000
+
+    Fix more warnings.
+
+    2008-12-25 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/modules.c (pango_module_load), (script_info_free):
+           * pango/opentype/harfbuzz-gpos.c (HB_Load_GPOS_Table):
+           * pango/pango-bidi-type.c:
+           * pango/pango-coverage.c (pango_coverage_ref),
+           (pango_coverage_unref):
+           * pango/pango-engine.c (pango_engine_shape_real_covers),
+           (fallback_engine_shape), (fallback_engine_covers):
+           * pango/pango-fontmap.c (pango_font_map_init):
+           * pango/pango-ot-ruleset.c (pango_ot_ruleset_finalize),
+           (pango_ot_ruleset_new):
+           * pango/pangofc-decoder.c (pango_fc_decoder_init),
+           (pango_fc_decoder_class_init):
+           * pango/pangofc-font.c (pango_fc_font_find_shaper),
+           (pango_fc_font_get_coverage):
+           * pango/pangofc-fontmap.c (pango_fc_font_map_list_families),
+           (pango_fc_make_pattern), (pango_fc_font_map_get_patterns),
+           (get_first_font), (_pango_fc_font_map_get_coverage),
+           (cleanup_font), (pango_fc_font_description_from_pattern),
+           (pango_fc_face_list_sizes), (pango_fc_family_list_faces):
+           * pango/pangoft2-fontmap.c
+           (pango_ft2_font_map_get_resolution):
+           * pango/pangoft2-render.c (pango_ft2_renderer_init),
+           (pango_ft2_renderer_draw_trapezoid):
+           * pango/pangoft2.c (pango_ft2_font_get_face),
+           (pango_ft2_font_real_unlock_face),
+           (pango_ft2_free_glyph_info_callback):
+           Fix more warnings.
+
+ src/harfbuzz-gpos.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 21f7d507f4b50e2743ab47954270f4c72d5a722a
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed Oct 15 03:45:29 2008 +0000
+
+    Bug 528272 – "Error loading GPOS table 5503" when using katakana
+
+    2008-10-14 Behdad Esfahbod  <behdad@gnome.org>
+
+           Bug 528272 – "Error loading GPOS table 5503" when using
+           katakana
+           characters
+
+           * pango/opentype/harfbuzz-gpos.c (Load_Mark2Array): Skip
+           parsing
+           null anchor tables.
+
+ src/harfbuzz-gpos.c | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+commit a26c6ae70502b4d60c52a0648662b1619c688b9a
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Mon Sep 29 22:28:47 2008 +0000
+
+    Fix left-to-right positioning. Reported by Peter Hunter.
+
+    2008-09-29 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz-gpos.c (Position_CursiveChain):
+           Fix left-to-right positioning.  Reported by Peter Hunter.
+
+ src/harfbuzz-gpos.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b6c06c56a33f1e1ec15e3b525ecafe8fadc679db
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Sun Jun 29 18:30:14 2008 +0000
+
+    Bug 540592 – Crash in HB_GSUB_Apply_String with Linux-Libertine font
+
+    2008-06-29 Behdad Esfahbod  <behdad@gnome.org>
+
+           Bug 540592 – Crash in HB_GSUB_Apply_String with
+           Linux-Libertine font
+
+           * pango/opentype/harfbuzz-gsub.c (GSUB_Do_String_Lookup):
+           Fix reverse
+           loops for type 8 lookups.
+
+ src/harfbuzz-gsub.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit c44733596c6648e209c12349e18e35424edf3d59
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 18 21:14:23 2008 -0500
+
+    [hb-ot-layout] Add proper namespace to accessors
+
+ src/hb-ot-layout.cc | 165
+ ++++++++++++++++++++++++++++++++++++++--------------
+ src/hb-ot-layout.h  | 115 +++++++++++++++++++++++-------------
+ 2 files changed, 198 insertions(+), 82 deletions(-)
+
+commit 57225672098ebdafb0c06ae091a1b55635daca29
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Feb 18 20:58:39 2008 -0500
+
+    Fix typo, add TODOs
+
+ src/hb-ot-layout-open-private.h | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+commit 4a26ea408c87f0bb59deca9ff44008d138471aa3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 28 07:40:10 2008 -0500
+
+    Finish script, language, and feature public API
+
+ src/hb-ot-layout-open-private.h |  22 ++++++---
+ src/hb-ot-layout.cc            | 107
+ +++++++++++++++++++++++++++++++---------
+ src/hb-ot-layout.h             |  34 ++++++++++++-
+ 3 files changed, 132 insertions(+), 31 deletions(-)
+
+commit 706ab25a4cb043d46e6088aa0a7184ee200276c9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 28 05:58:50 2008 -0500
+
+    Add script and language public getter API
+
+ src/hb-ot-layout-open-private.h |  40 ++++++++-----
+ src/hb-ot-layout.cc            | 127
+ +++++++++++++++++++++++++++++++++++++++-
+ src/hb-ot-layout.h             |  56 ++++++++++++++++++
+ src/main.cc                    |   2 +-
+ 4 files changed, 207 insertions(+), 18 deletions(-)
+
+commit 40a81314fa3eb7c701aea47b43f81bfad985f717
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 28 02:30:48 2008 -0500
+
+    Make main.cc compile again, which means finished getter API
+
+ src/hb-ot-layout-open-private.h | 117
+ +++++++++++++++++++++++++++++-----------
+ src/main.cc                    |  99 +++++++++++++++++++++++-----------
+ 2 files changed, 155 insertions(+), 61 deletions(-)
+
+commit e50c3978d37b2c0d6ddd4ced6a6196f6857cd596
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 28 00:16:49 2008 -0500
+
+    Rename HB_OT_Layout to hb_ot_layout_t
+
+ src/hb-ot-layout-private.h |  8 ++++----
+ src/hb-ot-layout.cc       | 34 +++++++++++++++++-----------------
+ src/hb-ot-layout.h        | 33 +++++++++++++++------------------
+ 3 files changed, 36 insertions(+), 39 deletions(-)
+
+commit dfa811965133bc4d1696fa5a0166e17ed4142c98
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Jan 28 00:12:21 2008 -0500
+
+    Rename hb_ot_layout_create() to hb_ot_layout_create_for_data()
+
+ src/hb-ot-layout.cc | 4 ++--
+ src/hb-ot-layout.h  | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+commit 54e5aac5e2947d4e2864c6f2987e4d275da73100
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sun Jan 27 21:19:51 2008 -0500
+
+    GDEF completely working now
+
+ src/hb-ot-layout-open-private.h | 11 ++++++++---
+ src/hb-ot-layout-private.h     | 16 +++++++++-------
+ src/hb-ot-layout.cc            | 19 +++++++++----------
+ src/hb-private.h               |  7 +++++++
+ src/main.cc                    | 12 ++++++------
+ 5 files changed, 39 insertions(+), 26 deletions(-)
+
+commit 6f425b11799aa20dab553085f05744191b7318e2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 24 19:38:56 2008 -0500
+
+    [GDEF] Finish internal API
+
+ src/hb-ot-layout-private.h | 15 +++++++-
+ src/hb-ot-layout.cc       | 95
+ ++++++++++++++++++++++------------------------
+ src/hb-ot-layout.h        | 16 ++++----
+ 3 files changed, 66 insertions(+), 60 deletions(-)
+
+commit 590d55cbb9e21ef74dfd88eee51fd0a763958cd2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 24 19:13:50 2008 -0500
+
+    [GDEF] Finish public API
+
+ src/hb-common.h                |  11 ++++
+ src/hb-ot-layout-gdef-private.h |  28 +++++----
+ src/hb-ot-layout-open-private.h |  25 ++++----
+ src/hb-ot-layout-private.h     |  23 ++------
+ src/hb-ot-layout.cc            | 123
+ +++++++++++++++++++++++++++++++++++++---
+ src/hb-ot-layout.h             |  29 ++++++----
+ 6 files changed, 176 insertions(+), 63 deletions(-)
+
+commit aff831ed6787abe8e24a977e34d97ff2e0b7dc21
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 24 06:03:45 2008 -0500
+
+    Implement glyph properties
+
+ src/hb-ot-layout-gdef-private.h | 10 ++++-
+ src/hb-ot-layout-private.h     | 16 +++++++-
+ src/hb-ot-layout.cc            | 84
+ +++++++++++++++++++++++++++++++++++++----
+ src/hb-ot-layout.h             | 25 ++++++++----
+ 4 files changed, 117 insertions(+), 18 deletions(-)
+
+commit ead428d7a0bf4dc84340a99f3959e5cc58123e99
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 24 03:54:09 2008 -0500
+
+    More public api
+
+ src/hb-ot-layout-open-private.h | 32 +++++++++++++++++++-------------
+ src/hb-ot-layout-private.h     |  9 ++++++---
+ src/hb-ot-layout.cc            | 21 ++++++++++++++-------
+ src/hb-ot-layout.h             |  2 --
+ 4 files changed, 39 insertions(+), 25 deletions(-)
+
+commit fd92a3dde32fd10df30c9eeb97641bc3c15b1e9b
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jan 24 03:11:09 2008 -0500
+
+    Starting public interface
+
+ src/Makefile                   | 11 -----
+ src/Makefile.ng                | 11 +++++
+ src/hb-ot-layout-gdef-private.h | 17 ++++----
+ src/hb-ot-layout-gsub-private.h |  3 +-
+ src/hb-ot-layout-open-private.h | 92
+ +++++++++++++++++++++++++++++------------
+ src/hb-ot-layout-private.h     | 51 +++++++++++++++++++++++
+ src/hb-ot-layout.cc            | 67 ++++++++++++++++++++++++++++++
+ src/hb-ot-layout.h             | 35 ++++++++++++++--
+ src/main.cc                    |  1 +
+ 9 files changed, 236 insertions(+), 52 deletions(-)
+
+commit 7d6b95b000ec6cd8ca93113b2d81a049ad2f9bbe
+Author: Behdad Esfahbod <behdad@src.gnome.org>
+Date:  Thu Jan 24 04:42:24 2008 +0000
+
+    Remove unused macro
+
+ src/harfbuzz-impl.h | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 7586089c6fa8185cad8387869d3703c637e5cbb1
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 23 18:02:28 2008 -0500
+
+    Minor
+
+ src/hb-ot-layout-gdef-private.h | 37 +++++++++++++++++++++++++------
+ src/hb-ot-layout-gsub-private.h | 13 +++++++++++
+ src/hb-ot-layout-open-private.h | 49
+ ++++++++++++++++++++++++++++++++++-------
+ src/hb-private.h               |  2 ++
+ 4 files changed, 86 insertions(+), 15 deletions(-)
+
+commit aefaafe5bc4fc6d37a412c135b1079c287be7045
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 23 17:25:29 2008 -0500
+
+    Minor renaming
+
+ src/hb-ot-layout-gdef-private.h | 10 +++++-----
+ src/hb-ot-layout-open-private.h | 16 +++++++---------
+ src/main.cc                    |  4 ++--
+ 3 files changed, 14 insertions(+), 16 deletions(-)
+
+commit a16ecbf0564a6e2576da22c12827f3c0719da549
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 23 17:01:55 2008 -0500
+
+    Initial gsub stub
+
+ src/hb-ot-layout-gdef-private.h |   4 +
+ src/hb-ot-layout-gsub-private.h | 453
+ ++++++++++++++++++++++++++++++++++++++++
+ src/hb-ot-layout-open-private.h |   3 +
+ src/main.cc                    |   1 +
+ 4 files changed, 461 insertions(+)
+
+commit 64aef3a54999496fd1de4f5aa5b019e4c03b3836
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 23 16:14:38 2008 -0500
+
+    Add copyright notices.
+
+ src/hb-common.h                | 26 ++++++++++++++++++++++++++
+ src/hb-ot-layout-gdef-private.h | 26 ++++++++++++++++++++++++++
+ src/hb-ot-layout-open-private.h | 26 ++++++++++++++++++++++++++
+ src/hb-ot-layout.h             | 26 ++++++++++++++++++++++++++
+ src/hb-private.h               | 26 ++++++++++++++++++++++++++
+ src/main.cc                    | 26 ++++++++++++++++++++++++++
+ 6 files changed, 156 insertions(+)
+
+commit 12360f7c159826ae72271b34486dee59d96aa8ca
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 23 15:50:38 2008 -0500
+
+    Minor cleanup, add LIKELY and UNLIKELY annotations
+
+ src/hb-ot-layout-gdef-private.h | 63
+ +++++++++++++++++++++++------------------
+ src/hb-ot-layout-open-private.h | 36 ++++++++---------------
+ src/hb-private.h               | 15 ++++++++++
+ 3 files changed, 63 insertions(+), 51 deletions(-)
+
+commit 8dd1c8b8d6797d899d0f5b0a8015886bf6520ca2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 23 05:00:30 2008 -0500
+
+    Clean up file names, add namespace
+
+ src/harfbuzz-common.h          |  14 -
+ src/harfbuzz-gdef-private.h    | 213 -----------
+ src/harfbuzz-gdef.h            |  11 -
+ src/harfbuzz-open-private.h    | 804
+ ----------------------------------------
+ src/harfbuzz-open.h            |  17 -
+ src/harfbuzz-private.h                 |  12 -
+ src/hb-common.h                |  14 +
+ src/hb-ot-layout-gdef-private.h | 213 +++++++++++
+ src/hb-ot-layout-open-private.h | 804
+ ++++++++++++++++++++++++++++++++++++++++
+ src/hb-ot-layout.h             |  17 +
+ src/hb-private.h               |  12 +
+ src/main.cc                    |   4 +-
+ 12 files changed, 1062 insertions(+), 1073 deletions(-)
+
+commit 1f437e6f47fb6c15761021bd2078f31778f2179c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 23 04:36:40 2008 -0500
+
+    Make all code NULL-free and assert-free
+
+ src/harfbuzz-gdef-private.h | 125 ++++++++++---------
+ src/harfbuzz-open-private.h | 285
+ +++++++++++++++++++++++---------------------
+ src/main.cc                |   8 +-
+ 3 files changed, 214 insertions(+), 204 deletions(-)
+
+commit 600e5eb80f553ea8eb862e6784133574c74ca513
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 23 02:01:37 2008 -0500
+
+    Define get_for_data() factories
+
+ src/harfbuzz-gdef-private.h | 3 +++
+ src/harfbuzz-open-private.h | 42
+ +++++++++++++++++++++++++++++-------------
+ src/main.cc                | 10 ++++------
+ 3 files changed, 36 insertions(+), 19 deletions(-)
+
+commit b9d7688fb3d45894901484b74095c4f11cab6196
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 23 01:38:10 2008 -0500
+
+    Finish and test GDEF
+
+ src/harfbuzz-gdef-private.h | 72
+ ++++++++++++++++++++++++++++++++-------------
+ src/harfbuzz-open-private.h | 23 ++++++++-------
+ src/harfbuzz-open.h        |  4 +++
+ src/main.cc                | 10 +++++++
+ 4 files changed, 77 insertions(+), 32 deletions(-)
+
+commit 303fe62824d4e99df554b6bfaacba05d068522fb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Jan 23 00:20:48 2008 -0500
+
+    Misc cleanup
+
+ src/Makefile               |  10 ++++-
+ src/harfbuzz-gdef-private.h | 65 +++++++++++++++++++++-------
+ src/harfbuzz-open-private.h | 102
+ ++++++++++++++++++++++++++++++++++++++++----
+ src/harfbuzz-private.h      |  6 +++
+ src/main.cc                |  12 +++---
+ 5 files changed, 163 insertions(+), 32 deletions(-)
+
+commit 17843245fde4cc8cddc7da8ef30357d3d8778187
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed Jan 16 20:39:29 2008 +0000
+
+    Remove COPYING.GPL and COPYING.FTL that are no longer there.
+
+    2008-01-16 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/Makefile.am: Remove COPYING.GPL and
+           COPYING.FTL that
+           are no longer there.
+
+ src/Makefile.am | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit a2a9a023f6472ba262f89e5327318996b8258d25
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Tue Jan 15 22:46:32 2008 +0000
+
+    HarfBuzz was relicensed to a more generous and simpler
+    license. Adapt. See
+
+    2008-01-15 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/*:
+           HarfBuzz was relicensed to a more generous and simpler
+           license.
+           Adapt.  See pango/opentype/COPYING for the new license
+           which is
+           LGPL-compatible.
+
+ src/COPYING                  |  39 +++--
+ src/COPYING.FTL              | 174 ---------------------
+ src/COPYING.GPL              | 340
+ ------------------------------------------
+ src/harfbuzz-buffer-private.h |  32 ++--
+ src/harfbuzz-buffer.c        |  27 +++-
+ src/harfbuzz-buffer.h        |  32 ++--
+ src/harfbuzz-dump-main.c      |  34 +++--
+ src/harfbuzz-dump.c          |  34 +++--
+ src/harfbuzz-dump.h          |  35 +++--
+ src/harfbuzz-gdef-private.h   |  29 +++-
+ src/harfbuzz-gdef.c          |  29 +++-
+ src/harfbuzz-gdef.h          |  29 +++-
+ src/harfbuzz-global.h        |  29 +++-
+ src/harfbuzz-gpos-private.h   |  29 +++-
+ src/harfbuzz-gpos.c          |  31 +++-
+ src/harfbuzz-gpos.h          |  29 +++-
+ src/harfbuzz-gsub-private.h   |  29 +++-
+ src/harfbuzz-gsub.c          |  31 +++-
+ src/harfbuzz-gsub.h          |  29 +++-
+ src/harfbuzz-impl.c          |  31 +++-
+ src/harfbuzz-impl.h          |  29 +++-
+ src/harfbuzz-open-private.h   |  29 +++-
+ src/harfbuzz-open.c          |  29 +++-
+ src/harfbuzz-open.h          |  29 +++-
+ src/harfbuzz-stream-private.h |  29 +++-
+ src/harfbuzz-stream.c        |  31 +++-
+ src/harfbuzz.c                       |  28 +++-
+ src/harfbuzz.h                       |  29 +++-
+ 28 files changed, 564 insertions(+), 741 deletions(-)
+
+commit 4ccedd22eaa6e47bd8bbf255627a8b55fbb44736
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed Dec 5 03:41:29 2007 +0000
+
+    Bug 501575 – Compile errors Patch from Jens Granseuer
+
+    2007-12-04 Behdad Esfahbod  <behdad@gnome.org>
+
+           Bug 501575 – Compile errors
+           Patch from Jens Granseuer
+
+           * pango/opentype/harfbuzz-stream.c (_hb_font_goto_table):
+           * pango/pango-utils.c (handle_alias_line):
+           Fix C99ism.
+
+ src/harfbuzz-stream.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit cd55cfa2b0a1fe35d5a4ad1c8feaa399d7fb7ab3
+Author: Behdad Esfahbod <behdad@src.gnome.org>
+Date:  Fri Nov 30 04:31:29 2007 +0000
+
+    Undo accidental change.
+
+ src/harfbuzz-impl.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 3f05da638c8d7b13e7f860aeda1a6321e5ebd92e
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Fri Nov 30 04:29:58 2007 +0000
+
+    Bug 485536 – underline_position can be zero
+
+    2007-11-29 Behdad Esfahbod  <behdad@gnome.org>
+
+           Bug 485536 – underline_position can be zero
+
+           * pango/pango-utils.c (pango_cairo_quantize_line_geometry):
+           Document that returned position may be zero.
+
+           * pango/pangocairo-win32font.c
+           (pango_cairo_win32_font_create_metrics_for_context):
+           * pango/pangofc-font.c (get_face_metrics):
+           Handle case of underline_position==0 after rounding.
+
+ src/harfbuzz-impl.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit e58278fedb67cbaac4bf4d6dfc33209cb22eec08
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Sat Nov 24 01:40:13 2007 +0000
+
+    Remove unused macro.
+
+    2007-11-23 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz-impl.c: Remove unused macro.
+
+ src/harfbuzz-impl.c | 18 ------------------
+ 1 file changed, 18 deletions(-)
+
+commit 3b047380aec4ccc707c4579327d54172c19820fd
+Author: Behdad Esfahbod <behdad@src.gnome.org>
+Date:  Sun Nov 18 22:34:08 2007 +0000
+
+    Minor
+
+ src/harfbuzz-dump-main.c |  4 +--
+ src/harfbuzz-stream.c   | 89
+ ++++++++++++++++++++++++------------------------
+ 2 files changed, 46 insertions(+), 47 deletions(-)
+
+commit 10d6a25a26bdbab4ece4edf0e34ffd3d22410ebe
+Author: Behdad Esfahbod <behdad@src.gnome.org>
+Date:  Wed Nov 7 10:04:11 2007 +0000
+
+    Remove dead code.
+
+ src/harfbuzz-gdef.c | 88
+ -----------------------------------------------------
+ src/harfbuzz-gpos.h | 4 +--
+ 2 files changed, 1 insertion(+), 91 deletions(-)
+
+commit 47d2c33e3d099fae79e199367de5011bc5c12273
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed Nov 7 09:59:18 2007 +0000
+
+    And some more.
+
+    2007-11-07 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/*: And some more.
+
+ src/harfbuzz-buffer.h        |  8 ++---
+ src/harfbuzz-dump-main.c      | 22 ++++++------
+ src/harfbuzz-gdef.c          | 14 ++++----
+ src/harfbuzz-gdef.h          |  4 +--
+ src/harfbuzz-global.h        | 21 +++++------
+ src/harfbuzz-gpos.c          | 82
+ +++++++++++++++++++++----------------------
+ src/harfbuzz-gpos.h          | 12 +++----
+ src/harfbuzz-gsub.c          |  4 +--
+ src/harfbuzz-gsub.h          |  4 +--
+ src/harfbuzz-stream-private.h |  4 +--
+ src/harfbuzz-stream.c        | 16 ++++-----
+ 11 files changed, 95 insertions(+), 96 deletions(-)
+
+commit 78ef65ba08967fe1b5f97bcb27074bd635f4b898
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed Nov 7 08:06:01 2007 +0000
+
+    Some more cleanup and merging.
+
+    2007-11-07 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/*: Some more cleanup and merging.
+
+ src/Makefile.am              |   6 +-
+ src/harfbuzz-buffer-private.h |  33 ++++++
+ src/harfbuzz-buffer.c        |   4 +-
+ src/harfbuzz-dump-main.c      |   3 +-
+ src/harfbuzz-gdef-private.h   |   9 +-
+ src/harfbuzz-gdef.c          |  39 +++++++
+ src/harfbuzz-global.h        |   2 +
+ src/harfbuzz-gpos-private.h   |   1 +
+ src/harfbuzz-gpos.c          |  32 +-----
+ src/harfbuzz-gsub-private.h   |   1 +
+ src/harfbuzz-gsub.c          |  33 +-----
+ src/harfbuzz-impl.c          | 216
+ ++------------------------------------
+ src/harfbuzz-impl.h          | 100 +-----------------
+ src/harfbuzz-open-private.h   |   4 +-
+ src/harfbuzz-stream-private.h |  70 +++++++++++++
+ src/harfbuzz-stream.c        | 234
+ ++++++++++++++++++++++++++++++++++++++++++
+ src/harfbuzz.c                       |   1 +
+ src/harfbuzz.h                       |   3 +-
+ 18 files changed, 419 insertions(+), 372 deletions(-)
+
+commit 5c9bd379950d914982bdb91d0f82b8036908db37
+Author: Behdad Esfahbod <behdad@src.gnome.org>
+Date:  Mon Oct 29 23:51:48 2007 +0000
+
+    Fix typo.
+
+ src/Makefile.am | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit ef1f481752fa6e478f649e826c96927c98f21981
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Oct 25 23:37:11 2007 +0000
+
+    Even more cleanup and more type renames.
+
+    2007-10-25 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/*: Even more cleanup and more type renames.
+
+ src/harfbuzz-buffer.h |  3 +--
+ src/harfbuzz-global.h |  6 ++++++
+ src/harfbuzz-impl.c   | 16 ++++++++--------
+ src/harfbuzz-impl.h   | 22 +++++++++++-----------
+ src/harfbuzz-open.h   |  3 ---
+ 5 files changed, 26 insertions(+), 24 deletions(-)
+
+commit 282c60a0eea0db784b0a094958bec35b5f3dc399
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Oct 25 23:22:17 2007 +0000
+
+    More cleanup, remove redundant error types.
+
+    2007-10-25 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/*: More cleanup, remove redundant error
+           types.
+
+ src/harfbuzz-dump-main.c |   4 +-
+ src/harfbuzz-dump.c     |  14 +++---
+ src/harfbuzz-gdef.c     |  25 +++++-----
+ src/harfbuzz-gdef.h     |   3 --
+ src/harfbuzz-global.h   |  31 ++++++------
+ src/harfbuzz-gpos.c     | 124
+ +++++++++++++++++++++++------------------------
+ src/harfbuzz-gpos.h     |   3 --
+ src/harfbuzz-gsub.c     |  86 ++++++++++++++++----------------
+ src/harfbuzz-gsub.h     |   3 --
+ src/harfbuzz-impl.c     |  18 +++----
+ src/harfbuzz-impl.h     |   2 +
+ src/harfbuzz-open.c     |  24 ++++-----
+ src/harfbuzz-open.h     |   6 +--
+ 13 files changed, 170 insertions(+), 173 deletions(-)
+
+commit 4280ec4df45ae86c10c3cd24ddb9c05e47223d39
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Oct 25 00:23:46 2007 +0000
+
+    Rename ftglue.c to harfbuzz-impl.c and more type renames and
+    moving code
+
+    2007-10-24 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/*: Rename ftglue.c to harfbuzz-impl.c
+           and more
+           type renames and moving code around.
+
+ src/Makefile.am            |   3 +-
+ src/ftglue.c               | 287
+ --------------------------------------------
+ src/ftglue.h               | 151 -----------------------
+ src/harfbuzz-dump-main.c    | 48 +-------
+ src/harfbuzz-dump.c        |  30 ++---
+ src/harfbuzz-gdef.c        |  18 +--
+ src/harfbuzz-global.h      |  18 +++
+ src/harfbuzz-gpos-private.h |  2 +-
+ src/harfbuzz-gpos.c        |  90 +++++++-------
+ src/harfbuzz-gsub-private.h |  2 +-
+ src/harfbuzz-gsub.c        |  64 +++++-----
+ src/harfbuzz-impl.c        | 283
+ +++++++++++++++++++++++++++++++++++++++++++
+ src/harfbuzz-impl.h        | 114 ++++++++++++++++--
+ src/harfbuzz-open-private.h | 14 +--
+ src/harfbuzz-open.c        |  32 ++---
+ src/harfbuzz-open.h        |  16 ---
+ src/harfbuzz.c                     |   4 +-
+ 17 files changed, 542 insertions(+), 634 deletions(-)
+
+commit 5716ae278a82d318ddbfeba01d0785d4efbe1454
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed Oct 24 22:44:47 2007 +0000
+
+    New header file harfbuzz-global.h. Rename FT_* int types to HB_*
+    types.
+
+    2007-10-24 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/*: New header file harfbuzz-global.h.  Rename
+           FT_* int types to HB_* types.
+
+ src/Makefile.am              |   1 +
+ src/ftglue.c                 |  30 +--
+ src/ftglue.h                 |  26 +-
+ src/harfbuzz-buffer-private.h |  26 +-
+ src/harfbuzz-buffer.c        |  40 ++--
+ src/harfbuzz-buffer.h        |  42 ++--
+ src/harfbuzz-dump-main.c      |  24 +-
+ src/harfbuzz-dump.c          |  14 +-
+ src/harfbuzz-dump.h          |   4 +-
+ src/harfbuzz-gdef-private.h   |  30 +--
+ src/harfbuzz-gdef.c          | 104 ++++----
+ src/harfbuzz-gdef.h          |  32 +--
+ src/harfbuzz-global.h        |  34 +++
+ src/harfbuzz-gpos-private.h   | 182 +++++++-------
+ src/harfbuzz-gpos.c          | 540
+ +++++++++++++++++++++---------------------
+ src/harfbuzz-gpos.h          |  52 ++--
+ src/harfbuzz-gsub-private.h   | 142 +++++------
+ src/harfbuzz-gsub.c          | 432 ++++++++++++++++-----------------
+ src/harfbuzz-gsub.h          |  50 ++--
+ src/harfbuzz-impl.h          |   6 +-
+ src/harfbuzz-open-private.h   |  26 +-
+ src/harfbuzz-open.c          | 146 ++++++------
+ src/harfbuzz-open.h          |  88 +++----
+ src/harfbuzz.h                       |   1 +
+ 24 files changed, 1056 insertions(+), 1016 deletions(-)
+
+commit 2130d852c76cccb94350a4aea222359640ffa8a4
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed Oct 24 21:35:03 2007 +0000
+
+    Add commented-out dummy struct for Extension lookups.
+
+    2007-10-24 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz-gpos-private.h:
+           * pango/opentype/harfbuzz-gsub-private.h:
+           Add commented-out dummy struct for Extension lookups.
+
+ src/harfbuzz-gpos-private.h | 13 +++++++++++++
+ src/harfbuzz-gsub-private.h | 13 +++++++++++++
+ 2 files changed, 26 insertions(+)
+
+commit 13b2b963848ada169c2fe3d3669fbc1c337f7fe7
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Sun Oct 21 18:17:02 2007 +0000
+
+    Bug 488840 – harfbuzz: protect against ligid overflow
+
+    2007-10-21 Behdad Esfahbod  <behdad@gnome.org>
+
+           Bug 488840 – harfbuzz: protect against ligid overflow
+
+           * pango/opentype/harfbuzz-buffer.c
+           (_hb_buffer_allocate_ligid):
+           Never return zero, even in case of overflow.
+
+           * pango/opentype/harfbuzz-impl.h: Define dummy HB_LIKELY() and
+           HB_UNLIKELY(), to be filled later.
+
+ src/harfbuzz-buffer.c | 6 +++++-
+ src/harfbuzz-impl.h   | 3 +++
+ 2 files changed, 8 insertions(+), 1 deletion(-)
+
+commit 6b347138b597c41af24453f630336ba2fc033dc5
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Oct 11 08:30:50 2007 +0000
+
+    Mark internal symbols as HB_INTERNAL and define that to static in
+
+    2007-10-11 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/*: Mark internal symbols as HB_INTERNAL and
+           define that to static in harfbuzz.c.
+
+           * pango/opentype/harfbuzz-buffer-internal.h: New file.
+
+ src/Makefile.am              |   1 +
+ src/ftglue.c                 |  18 +++----
+ src/ftglue.h                 |  20 ++++----
+ src/harfbuzz-buffer-private.h |  60 +++++++++++++++++++++++
+ src/harfbuzz-buffer.c        | 108
+ +++++++++++++++++++++-------------------
+ src/harfbuzz-buffer.h        |  38 +--------------
+ src/harfbuzz-gdef-private.h   |  17 ++++---
+ src/harfbuzz-gdef.c          |  20 ++++----
+ src/harfbuzz-gpos-private.h   |  13 +++--
+ src/harfbuzz-gpos.c          |  16 +++---
+ src/harfbuzz-gsub-private.h   |  14 +++---
+ src/harfbuzz-gsub.c          |  20 ++++----
+ src/harfbuzz-impl.h          |  12 +++--
+ src/harfbuzz-open-private.h   |  81 +++++++++++++++++-------------
+ src/harfbuzz-open.c          | 111
+ ++++++++++++++++++++++++------------------
+ src/harfbuzz.c                       |   1 +
+ 16 files changed, 315 insertions(+), 235 deletions(-)
+
+commit 7cdfb61deefd8f43edb5eb79d45d38dbbbef9051
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Oct 11 07:46:33 2007 +0000
+
+    Remove FTGLUE_API/APIDEF cruft.
+
+    2007-10-11 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/ftglue.[ch]: Remove FTGLUE_API/APIDEF cruft.
+
+ src/ftglue.c | 16 ++++++++--------
+ src/ftglue.h | 24 ++++++++----------------
+ 2 files changed, 16 insertions(+), 24 deletions(-)
+
+commit 61ddbafaaad31ccacde54cad7e60a84abffc0a9f
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Oct 11 07:45:26 2007 +0000
+
+    Build harfbuzz.c instead of individual source files, to let
+    compiler go
+
+    2007-10-11 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/Makefile.am: Build harfbuzz.c instead
+           of individual
+           source files, to let compiler go wild with optimizations!
+
+ src/Makefile.am | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+commit a219b3d003d6727c79dc51282d21e9ac48c44458
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Oct 11 07:34:08 2007 +0000
+
+    Same here.
+
+    2007-10-11 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz.c: Same here.
+
+ src/harfbuzz.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 6567e16e3b14c08659342bbcc9f2735e71f9114e
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Oct 11 07:33:19 2007 +0000
+
+    Don't include harfbuzz-dump.[ch] in libharfbuzz.a. Those are just
+    used by
+
+    2007-10-11 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/Makefile.am: Don't include harfbuzz-dump.[ch]
+           in
+           libharfbuzz.a.  Those are just used by the harfbuzz-dump tool.
+
+ src/Makefile.am | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 0b032549ba7581c879a0fc4e794b0e9a4723ae85
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Oct 11 07:24:47 2007 +0000
+
+    Some more cleanup.
+
+    2007-10-11 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz-buffer.c: Some more cleanup.
+
+ src/harfbuzz-buffer.c | 11 ++---------
+ 1 file changed, 2 insertions(+), 9 deletions(-)
+
+commit 7a26864308bd1ca8d5f47d798411cac7239b7d38
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Oct 11 07:21:31 2007 +0000
+
+    Move some code around.
+
+    2007-10-11 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz-buffer.c: Move some code around.
+
+ src/harfbuzz-buffer.c | 91
+ +++++++++++++++++++++++++++------------------------
+ 1 file changed, 48 insertions(+), 43 deletions(-)
+
+commit 7a5405c8261573a0f29d28fb533e800d698f6129
+Author: Behdad Esfahbod <behdad@src.gnome.org>
+Date:  Thu Oct 11 07:15:16 2007 +0000
+
+    Minor.
+
+ src/harfbuzz-buffer.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 986f4fd96892ebda550793941bb1daed862c4a34
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Oct 11 07:12:49 2007 +0000
+
+    Rename buffer->inplace to buffer->separate_out with the inverted
+    meaning,
+
+    2007-10-11 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz-buffer.[ch]: Rename buffer->inplace
+           to
+           buffer->separate_out with the inverted meaning, such that
+           buffer
+           is initialization is memset(0).
+
+ src/harfbuzz-buffer.c | 34 +++++++++++++++++-----------------
+ src/harfbuzz-buffer.h |  2 +-
+ 2 files changed, 18 insertions(+), 18 deletions(-)
+
+commit 06003908ccf2473366816935dd1b144cde587be9
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Oct 11 07:05:09 2007 +0000
+
+    Allocate buffer->positions lazily.
+
+    2007-10-11 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/*: Allocate buffer->positions lazily.
+
+ src/harfbuzz-buffer.c | 25 +++++++++++++++++++++++--
+ src/harfbuzz-buffer.h |  3 +++
+ src/harfbuzz-gpos.c   | 13 ++++++++-----
+ src/harfbuzz-gsub.c   |  5 +++--
+ 4 files changed, 37 insertions(+), 9 deletions(-)
+
+commit fc3d6f575826704a0ae9ee9018323f6a3c422f4b
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Oct 11 06:52:07 2007 +0000
+
+    Bug 485621 – Get rid of freetype memory allocator in harfbuzz
+
+    2007-10-11 Behdad Esfahbod  <behdad@gnome.org>
+
+           Bug 485621 – Get rid of freetype memory allocator in
+           harfbuzz
+
+           * pango/opentype/*: Remove all occurences of FT_Memory.  Use
+           malloc/realloc/free directly.
+
+           * pango/pango-ot*: Update to above.
+
+ src/ftglue.c               |  52 ++---
+ src/ftglue.h               |  28 ++-
+ src/harfbuzz-buffer.c      |  16 +-
+ src/harfbuzz-buffer.h      |   4 +-
+ src/harfbuzz-gdef.c        | 106 ++++------
+ src/harfbuzz-gdef.h        |   6 +-
+ src/harfbuzz-gpos-private.h |  1 -
+ src/harfbuzz-gpos.c        | 462
+ ++++++++++++++++++--------------------------
+ src/harfbuzz-gpos.h        |   2 -
+ src/harfbuzz-gsub-private.h |  1 -
+ src/harfbuzz-gsub.c        | 312 +++++++++++-------------------
+ src/harfbuzz-gsub.h        |   2 -
+ src/harfbuzz-open-private.h | 25 ++-
+ src/harfbuzz-open.c        | 127 ++++++------
+ 14 files changed, 441 insertions(+), 703 deletions(-)
+
+commit a8abb8b994c3cd89808e8f7128a0c04b23eb3ede
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Oct 11 00:07:58 2007 +0000
+
+    Bug 485559 – Boston Summit HarfBuzz optimizations
+
+    2007-10-10 Behdad Esfahbod  <behdad@gnome.org>
+
+           Bug 485559 – Boston Summit HarfBuzz optimizations
+
+           * pango/opentype/*: HarfBuzz hacking to:
+
+             - Rename last remaining FT_Err stuff to HB_Err.
+
+             - Fix a couple invalid table paths to be permissive so
+               fonts work better.  Particularly GDEF table for Nafees
+               Nastaliq is loaded and works great now.
+
+             - Optimize harfbuzz buffer to not copy/swap for simple
+             one-to-one and "copy" GSUB operations.
+
+           * pango/pango-ot*: Update to FT_Err to HB_Err renaming.
+
+ src/ftglue.c               |  51 ++-
+ src/ftglue.h               |  21 +-
+ src/harfbuzz-buffer.c      | 190 +++++++--
+ src/harfbuzz-buffer.h      |  26 +-
+ src/harfbuzz-dump-main.c    | 14 +-
+ src/harfbuzz-dump.c        |  15 +-
+ src/harfbuzz-gdef-private.h |  4 +-
+ src/harfbuzz-gdef.c        | 149 +++----
+ src/harfbuzz-gdef.h        |  10 +-
+ src/harfbuzz-gpos-private.h |  2 +-
+ src/harfbuzz-gpos.c        | 810 ++++++++++++++++++--------------------
+ src/harfbuzz-gpos.h        |  30 +-
+ src/harfbuzz-gsub-private.h |  2 +-
+ src/harfbuzz-gsub.c        | 919
+ +++++++++++++++++++-------------------------
+ src/harfbuzz-gsub.h        |  24 +-
+ src/harfbuzz-impl.h        |  22 +-
+ src/harfbuzz-open-private.h | 20 +-
+ src/harfbuzz-open.c        | 238 ++++++------
+ src/harfbuzz-open.h        |  13 +-
+ 19 files changed, 1253 insertions(+), 1307 deletions(-)
+
+commit dd810b76bc554278d3a226cf89901d16992cf56d
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed Aug 29 08:46:50 2007 +0000
+
+    Bug 302952 – The placement of a diacritic marks for an arabic
+    ligature
+
+    2007-08-29 Behdad Esfahbod  <behdad@gnome.org>
+
+           Bug 302952 – The placement of a diacritic marks for an
+           arabic ligature
+           is not correct
+
+           * pango/opentype/harfbuzz-buffer.c (hb_buffer_allocate_ligid):
+           Don't
+           use zero as allocated ligature id.  Zero means no ligature id.
+
+ src/harfbuzz-buffer.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit e90d19919434b90d79e67aaf199bddd991f8e5d8
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Tue Aug 21 08:03:26 2007 +0000
+
+    Bug 463430 – Gets stuck while "formatting message"
+
+    2007-08-21 Behdad Esfahbod  <behdad@gnome.org>
+
+           Bug 463430 – Gets stuck while "formatting message"
+
+           * pango/opentype/harfbuzz-gpos.c (Lookup_PairPos1),
+           (Lookup_PairPos2), (Lookup_PairPos), (Do_ContextPos):
+           * pango/opentype/harfbuzz-gsub.c (Do_ContextSubst):
+           Change type of intermediate index variable from FT_UShort to
+           FT_ULong as it was overlowing with more than 65536 glyphs.
+
+ src/harfbuzz-gpos.c | 15 ++++++++++-----
+ src/harfbuzz-gsub.c | 2 +-
+ 2 files changed, 11 insertions(+), 6 deletions(-)
+
+commit 13b86ee398905f96f57df001309312f6dfdfea9a
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Tue Aug 21 01:38:07 2007 +0000
+
+    Don't ignore error return value of
+    hb_buffer_copy_output_glyph(). Patch
+
+    2007-08-20 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz-gsub.c (GSUB_Do_String_Lookup):
+           Don't
+           ignore error return value of hb_buffer_copy_output_glyph().
+           Patch
+           sent to harfbuzz-list.
+
+ src/harfbuzz-gsub.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 4c2556cb4c38a56c3a5087deb54aa6262ab3aff9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 6 11:29:21 2007 -0400
+
+    [gdef] Initial implementation
+
+ src/harfbuzz-gdef-private.h | 144
+ +++++++++++++++++++++++++++++++++++++++++++-
+ 1 file changed, 142 insertions(+), 2 deletions(-)
+
+commit 5b2e947fd2b7c5ea49b2bef1e0190d99a525058c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Jul 6 02:03:26 2007 -0400
+
+    [open] small fixes, including not using unions for main structs
+
+ src/harfbuzz-open-private.h | 54
+ ++++++++++++++++++++++++---------------------
+ 1 file changed, 29 insertions(+), 25 deletions(-)
+
+commit 151df44346990728b5dd249db5740a9543ae33b9
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Jul 5 17:22:07 2007 -0400
+
+    Improve stupid Makefile
+
+ src/Makefile | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit 6c49bebc70a0118a803a5bc979f4436a82b48240
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Tue May 1 02:32:12 2007 +0000
+
+    Link freetype to harfbuzz-dump, for those systems that don't track
+
+    2007-04-30 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/Makefile.am: Link freetype to harfbuzz-dump,
+           for
+           those systems that don't track dependencies automatically.
+
+ src/Makefile.am | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit 7341a116916c8470f1211f0cb3c65b189b42ec9e
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Tue Apr 3 22:45:29 2007 +0000
+
+    Copy fixes from harfbuzz stable branch. Includes a leak fix, a kerning
+
+    2007-04-03 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz-gdef.c (_HB_GDEF_Check_Property):
+           * pango/opentype/harfbuzz-gpos.c (HB_Done_GPOS_Table),
+           (Lookup_PairPos):
+           * pango/opentype/harfbuzz-open.c (Get_Class1):
+           Copy fixes from harfbuzz stable branch.  Includes a leak fix,
+           a kerning fix, and an array out-of-bound access fix.
+
+ src/harfbuzz-gdef.c | 2 ++
+ src/harfbuzz-gpos.c | 8 ++++++++
+ src/harfbuzz-open.c | 2 +-
+ 3 files changed, 11 insertions(+), 1 deletion(-)
+
+commit 999a6f05758c10a902354457ecbf6c943bfed514
+Author: Hans Breuer <hans@breuer.org>
+Date:  Sat Jan 13 21:31:41 2007 +0000
+
+    updated
+
+    2007-01-13 Hans Breuer  <hans@breuer.org>
+
+       * pango/makefile.msc pango/opentype/makefile.msc : updated
+
+ src/makefile.msc | 16 ++++++----------
+ 1 file changed, 6 insertions(+), 10 deletions(-)
+
+commit 3c038d40da4bfe5037cc4e9de22bad08fa408465
+Author: Behdad Esfahbod <behdad@src.gnome.org>
+Date:  Tue Jan 9 03:32:12 2007 +0000
+
+    Remove .cvsignore files (moved to svn:ignore prop)
+
+ src/.cvsignore | 7 -------
+ 1 file changed, 7 deletions(-)
+
+commit 5b3f7702a64fe0513d08a67bdb72704e46fd7cd4
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Dec 28 06:42:37 2006 -0500
+
+    Add stub GDEF files
+
+ src/harfbuzz-gdef-private.h | 8 ++++++++
+ src/harfbuzz-gdef.h        | 11 +++++++++++
+ src/harfbuzz-open-private.h | 3 +--
+ src/harfbuzz-private.h      | 6 ++++++
+ src/main.cc                |  1 +
+ 5 files changed, 27 insertions(+), 2 deletions(-)
+
+commit b3395a7aa36ff1ba5a17f494fbf359ec317a7e69
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Dec 28 06:31:18 2006 -0500
+
+    Don't shift down the mark attachment type
+
+ src/harfbuzz-open-private.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 193b66d52ae2cb5ced7969e15b7f56dc1978ca8a
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Dec 28 06:12:18 2006 -0500
+
+    Remove stale comment
+
+ src/harfbuzz-open-private.h | 10 ----------
+ 1 file changed, 10 deletions(-)
+
+commit 12c4568c680ea2b9b98a16a8b7402ca185c90ef6
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Dec 28 06:10:59 2006 -0500
+
+    Break and rename, in the layout of old HarfBuzz codebase
+
+ src/.gitignore                     |   1 +
+ src/Makefile               |   2 +-
+ src/harfbuzz-common.h      |  14 +
+ src/harfbuzz-ng.cc         | 802
+ --------------------------------------------
+ src/harfbuzz-open-private.h | 697 ++++++++++++++++++++++++++++++++++++++
+ src/harfbuzz-open.h        |  13 +
+ src/main.cc                |  98 ++++++
+ 7 files changed, 824 insertions(+), 803 deletions(-)
+
+commit 3158d84b0dfe5032e7c56c03f2da97b8ab549d94
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 27 20:08:07 2006 -0500
+
+    Oops. s/OpenTypeFontFaceFile/OpenTypeFontFile/g
+
+ src/harfbuzz-ng.cc | 22 +++++++++++-----------
+ 1 file changed, 11 insertions(+), 11 deletions(-)
+
+commit bf0f9dd61375c5afce8e6b1664d0df5f6c8b2494
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 27 20:06:42 2006 -0500
+
+    Use union for ClassDef
+
+ src/harfbuzz-ng.cc | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+commit c46196d09c4ea879bf45182e8a0d649d4c750c39
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 27 20:05:16 2006 -0500
+
+    Use union for Coverage
+
+ src/harfbuzz-ng.cc | 21 +++++++++++----------
+ 1 file changed, 11 insertions(+), 10 deletions(-)
+
+commit 86f450243dbaa82f187cf2d36364e9a59c0e64c7
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 27 19:59:07 2006 -0500
+
+    Add GPOS stub
+
+ src/harfbuzz-ng.cc | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit 133466177e104ddcd2501a88735670540252167c
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 27 19:58:32 2006 -0500
+
+    s/OpenTypeFont/OpenTypeFontFace/g
+
+ src/harfbuzz-ng.cc | 44 +++++++++++++++++++++++---------------------
+ 1 file changed, 23 insertions(+), 21 deletions(-)
+
+commit 71d62baab0429cdf56ba4019fd2a205f08188503
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 27 01:29:24 2006 -0500
+
+    GSUBGPOSHeader
+
+ src/harfbuzz-ng.cc | 103
+ ++++++++++++++++++++++++++++++++++++++++++++++++++---
+ 1 file changed, 98 insertions(+), 5 deletions(-)
+
+commit eebabd8b2ec5296deba6b09d7755933da0a7d9dc
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Wed Dec 27 00:21:31 2006 -0500
+
+    Finished OpenType Common Table Formats
+
+ src/harfbuzz-ng.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 2b7374519766825971f9f4ff5b1cb49b74cfcaf8
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 26 20:55:37 2006 -0500
+
+    Device tables.
+
+ src/harfbuzz-ng.cc | 49 +++++++++++++++++++++++++++++++++++++++++++++----
+ 1 file changed, 45 insertions(+), 4 deletions(-)
+
+commit eb32e374f4d6de8d428d36144f6eef93514820d2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 26 20:00:33 2006 -0500
+
+    ClassDef
+
+ src/harfbuzz-ng.cc | 121
+ ++++++++++++++++++++++++++++++++++++++++++-----------
+ 1 file changed, 97 insertions(+), 24 deletions(-)
+
+commit 53502c6723dbf9cd3b6ba91b733678b3c7871715
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 26 19:29:08 2006 -0500
+
+    Rename CoverageFormat to Coverage
+
+ src/harfbuzz-ng.cc | 18 +++++++++++++-----
+ 1 file changed, 13 insertions(+), 5 deletions(-)
+
+commit 0d6db2abcbe98456569ccf7934ba0a8b37c7f6f3
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 26 18:53:55 2006 -0500
+
+    Define more structs using DEFINE_INT_TYPE.
+
+ src/harfbuzz-ng.cc | 39 +++++++++++++++++++--------------------
+ 1 file changed, 19 insertions(+), 20 deletions(-)
+
+commit 915931b74a30e8652fac5fec153d499485513f63
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 26 15:30:14 2006 -0500
+
+    s/DEFINE_NOT_INSTANTIABLE/DEFINE_NON_INSTANTIABLE/
+
+ src/harfbuzz-ng.cc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 0c0d55330ef4090f3e4864538e83a4344caaf3ba
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Tue Dec 26 15:29:38 2006 -0500
+
+    Coverage.
+
+ src/harfbuzz-ng.cc | 91
+ +++++++++++++++++++++++++++++++++++++++++++++++-------
+ 1 file changed, 79 insertions(+), 12 deletions(-)
+
+commit 882e52f59196535495af8ca8069df32308ad52cf
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 25 10:28:31 2006 -0500
+
+    Rename to harfbuzz-ng.cc
+
+ src/Makefile           |   2 +-
+ src/harfbuzz-ng.cc     | 513
+ ++++++++++++++++++++++++++++++++++++++++++++++++
+ src/hb-types-private.cc | 513
+ ------------------------------------------------
+ 3 files changed, 514 insertions(+), 514 deletions(-)
+
+commit f8ba99f6f322800a915428ffc3b5eaf1be2e6c21
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 25 09:58:02 2006 -0500
+
+    LookupFlags
+
+ src/hb-types-private.cc | 52
+ ++++++++++++++++++++++++++++++++++++++++++++-----
+ 1 file changed, 47 insertions(+), 5 deletions(-)
+
+commit 25ad92c8a68bf72464601a644ed57b9213126a78
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 25 09:35:06 2006 -0500
+
+    Implement Feature
+
+ src/hb-types-private.cc | 46
+ ++++++++++++++++++++++++++++++++++++++++++----
+ 1 file changed, 42 insertions(+), 4 deletions(-)
+
+commit befc022affd2386b3f46cd7d11e4262f6c8bce9f
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 25 09:14:52 2006 -0500
+
+    LangSys
+
+ src/hb-types-private.cc | 51
+ ++++++++++++++++++++++++++++++++++++++++++-------
+ 1 file changed, 44 insertions(+), 7 deletions(-)
+
+commit c81efca149b08832d5d96a944fb5f303f3d0ca42
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 25 06:22:08 2006 -0500
+
+    Use CamelCaseTags.
+
+ src/hb-types-private.cc | 29 ++++++++++++++---------------
+ 1 file changed, 14 insertions(+), 15 deletions(-)
+
+commit 808dbe283c1ad66091f2cb67380888b7cf265c01
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 25 06:18:52 2006 -0500
+
+    Make types not instantiable
+
+ src/hb-types-private.cc | 104
+ ++++++++++++++++++++++++++----------------------
+ 1 file changed, 57 insertions(+), 47 deletions(-)
+
+commit b739c05ca4b7acfa45bd4b0812ecbb3747f726f0
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Mon Dec 25 05:39:20 2006 -0500
+
+    Add OpenTypeFontFile.
+
+ src/Makefile           |   2 +-
+ src/hb-types-private.cc | 113
+ +++++++++++++++++++++++++++++++++++++++++++++---
+ 2 files changed, 107 insertions(+), 8 deletions(-)
+
+commit 8596944b7421f982960e825019fc0263442520cb
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Sat Dec 23 17:49:25 2006 -0500
+
+    Add Makefile
+
+ src/Makefile | 3 +++
+ 1 file changed, 3 insertions(+)
+
+commit b6e62bc5db76ae342177b2b646c37f45eccad975
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Fri Dec 22 02:21:55 2006 -0500
+
+    After DEFINE_SCRIPT_ARRAY
+
+ src/hb-types-private.cc | 215
+ +++++++++++++++++++++++++++++++-----------------
+ 1 file changed, 140 insertions(+), 75 deletions(-)
+
+commit 01e4fcb032be601f272e62228881e2aabfb9d925
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Dec 21 22:31:31 2006 -0500
+
+    Remove the annoying HB_ prefix.
+
+ src/hb-types-private.cc | 107
+ +++++++++++++++++++++++-------------------------
+ 1 file changed, 52 insertions(+), 55 deletions(-)
+
+commit 6b4ce01da121e12e1c78ad7eaedf469f35f3568d
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Dec 21 22:31:10 2006 -0500
+
+    Second version.  Complete redesign, based on C++ classes to ensure
+    endian
+    correctness.
+
+ src/hb-types-private.cc | 300
+ +++++++++++++++++++++++++++++++++---------------
+ 1 file changed, 205 insertions(+), 95 deletions(-)
+
+commit f78e70c301311ffcfb007c7fc4125d71cbcff1e2
+Author: Behdad Esfahbod <behdad@behdad.org>
+Date:  Thu Dec 21 22:30:38 2006 -0500
+
+    First version.
+
+ src/hb-types-private.cc | 116
+ ++++++++++++++++++++++++++++++++++++++++++++++++
+ 1 file changed, 116 insertions(+)
+
+commit f726b20e56e8b1106dfde0bf8d575c73e83957c4
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Tue Jul 25 01:02:27 2006 +0000
+
+    Bug 347073 – Allow empty GPOS table
+
+    2006-07-24 Behdad Esfahbod  <behdad@gnome.org>
+
+           Bug 347073 – Allow empty GPOS table
+
+           * pango/opentype/harfbuzz-open.c (_HB_OPEN_Load_ScriptList):
+           Don't
+           err on empty GPOS/GSUB tables.
+
+ src/harfbuzz-open.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+commit 52481a5c55d466f41654dcdc67245d0ca8cefbcf
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Jun 22 18:09:04 2006 +0000
+
+    Bug 345600 – cvs build error in pango/opentype/Makefile
+
+    2006-06-22 Behdad Esfahbod  <behdad@gnome.org>
+
+           Bug 345600 – cvs build error in pango/opentype/Makefile
+
+           * pango/opentype/Makefile.am: Rename variable SOURCES to
+           MAINSOURCES.
+           Some automake versions seem to use it or something.
+
+ src/Makefile.am | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit ffb2d5c1e7af33644d0a4058befa4b8358c9a7bf
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed May 31 07:42:55 2006 +0000
+
+    Bug 341138 – Using TTC font, Gtk2 programs begin to eating big
+    memory
+
+    2006-05-31 Behdad Esfahbod  <behdad@gnome.org>
+
+           Bug 341138 – Using TTC font, Gtk2 programs begin to eating
+           big memory
+           and have many cpu usage.
+           Patch from Yong Li.
+
+           * pango/opentype/ftglue.c (_hb_ftglue_face_goto_table):
+           TrueType table
+           offsets are absolute, not relative.
+
+ src/ftglue.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit f8f7bd2451eeafb57f5c80c7b4e88a1e50b97c4f
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed May 31 07:23:02 2006 +0000
+
+    Bug 336153 – Mark to mark positioning (Lookup Type 6) isn't
+    correct when
+
+    2006-05-31 Behdad Esfahbod  <behdad@gnome.org>
+
+           Bug 336153 – Mark to mark positioning (Lookup Type 6)
+           isn't correct
+           when using MarkAttchmentType
+           Patch from Tin Myo Htet.
+
+           * pango/opentype/harfbuzz-gpos.c (Lookup_MarkMarkPos):
+           Ignore marks
+           of non-matchin attachment type.
+
+ src/harfbuzz-gpos.c | 37 ++++++++++++++++++++++---------------
+ 1 file changed, 22 insertions(+), 15 deletions(-)
+
+commit d2a613187c1257371d62153b55c89336965e0754
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed Apr 12 18:47:50 2006 +0000
+
+    Fix loop variables. (coverity found bug.)
+
+    2006-04-12 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz-gpos.c: Fix loop
+           variables. (coverity
+           found bug.)
+
+ src/harfbuzz-gpos.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 14022e826f63c48b689f9037645c9a3a3302d9b6
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Tue Apr 11 08:31:44 2006 +0000
+
+    Bug 337924 – cleanups for issues reported by various compilers Patch
+
+    2006-04-11 Behdad Esfahbod  <behdad@gnome.org>
+
+           Bug 337924 – cleanups for issues reported by various
+           compilers
+           Patch from Kjartan Maraas.
+
+           * examples/viewer-x.c (update):
+           * modules/arabic/arabic-fc.c (fallback_shape),
+           (arabic_engine_shape):
+           * modules/basic/basic-fc.c (fallback_shape),
+           (basic_engine_shape):
+           * modules/basic/basic-x.c:
+           * modules/hangul/hangul-fc.c:
+           * modules/hebrew/hebrew-fc.c (hebrew_engine_shape):
+           * modules/indic/indic-fc.c:
+           * modules/khmer/khmer-fc.c:
+           * modules/syriac/syriac-fc.c:
+           * modules/thai/thai-fc.c:
+           * modules/tibetan/tibetan-fc.c:
+           * pango/break.c:
+           * pango/modules.c:
+           * pango/opentype/ftglue.c (_hb_ftglue_face_goto_table):
+           * pango/pango-attributes.c (pango_attr_list_filter):
+           * pango/pango-engine.c:
+           * pango/pango-fontset.c:
+           * pango/pango-layout.c (pango_layout_set_text),
+           (pango_layout_xy_to_index), (pango_layout_get_cursor_pos):
+           * pango/pango-markup.c (text_handler):
+           * pango/pango-utils.c (read_alias_file):
+           * pango/pangocairo-fcfont.c (G_DEFINE_TYPE_WITH_CODE):
+           * pango/pangocairo-fcfontmap.c (G_DEFINE_TYPE_WITH_CODE):
+           * pango/pangocairo-font.c
+           (_pango_cairo_font_get_hex_box_info):
+           * pango/pangox-fontmap.c (pango_x_make_matching_xlfd):
+           * tests/dump-boundaries.c (fail):
+           Remove unused variables.  Remove excess semicolon after
+           DEFINE_TYPE
+           macros.
+
+ src/ftglue.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 59aafd07806a2f0d4f399eff13aec74557f60522
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Mon Apr 10 10:33:17 2006 +0000
+
+    Fix minor bugs reported by the Coverity scan report.
+
+    2006-04-10 Behdad Esfahbod  <behdad@gnome.org>
+
+           Fix minor bugs reported by the Coverity scan report.
+
+           * pango/opentype/harfbuzz-gdef.c
+           (HB_GDEF_Build_ClassDefinition):
+           * pango/opentype/harfbuzz-gpos.c (HB_GPOS_Query_Scripts),
+           (HB_GPOS_Query_Languages), (HB_GPOS_Query_Features): Do
+           not access
+           structs before we check them for nullity.
+
+           * pango/pango-layout.c (pango_layout_index_to_line),
+           (pango_layout_index_to_line_and_extents),
+           (pango_layout_index_to_pos): Check for invalid iterators
+           outside the
+           loop, so we don't crash.
+
+           * pango/pango-layout.c (pango_layout_line_x_to_index): Set
+           char_trailing instead of trailing in one of too many paths.
+           Should
+           have been a typo.
+
+           * pango/pangox.c (get_font_metrics_from_subfonts): Check
+           for nullity
+           somewhere.
+
+ src/harfbuzz-gdef.c | 3 ++-
+ src/harfbuzz-gpos.c | 9 ++++++---
+ 2 files changed, 8 insertions(+), 4 deletions(-)
+
+commit b31d6def96ff99e89ba42e09661992498bda460d
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Apr 6 18:23:49 2006 +0000
+
+    Update from HarfBuzz. Lars Knoll fixed all the warnings.
+
+    2006-04-06 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype: Update from HarfBuzz.  Lars Knoll fixed
+           all the
+           warnings.
+
+ src/harfbuzz-dump.c | 94 ++++++++++++++++++++++++++++---------------
+ src/harfbuzz-gpos.c | 80 ++++++++++++++++++++++--------------
+ src/harfbuzz-gsub.c | 114
+ +++++++++++++++++++++++++++++-----------------------
+ src/harfbuzz-impl.h |  4 ++
+ 4 files changed, 179 insertions(+), 113 deletions(-)
+
+commit ca57250bc9d9f92c88a2ea516e251b9cbfdebda0
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Mon Apr 3 20:13:17 2006 +0000
+
+    Make sure TTAG_GDEF and frineds are defined, needed for FreeType
+    <= 2.1.7
+
+    2006-04-03 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/harfbuzz-impl.h: Make sure TTAG_GDEF and
+           frineds are
+           defined, needed for FreeType <= 2.1.7 (pointed by Tim Janik).
+
+ src/harfbuzz-gdef.c | 3 ---
+ src/harfbuzz-gpos.c | 3 ---
+ src/harfbuzz-gsub.c | 3 ---
+ src/harfbuzz-impl.h | 11 +++++++++++
+ 4 files changed, 11 insertions(+), 9 deletions(-)
+
+commit f618288e00914b6606ec977d506c18e4abdd3ce4
+Author: Behdad Esfahbod <behdad@src.gnome.org>
+Date:  Fri Mar 31 13:19:29 2006 +0000
+
+    .
+
+ src/.cvsignore | 2 --
+ 1 file changed, 2 deletions(-)
+
+commit 5f1f943b9e6d753722ceadba7eb7ce1f14526ea5
+Author: Behdad Esfahbod <behdad@src.gnome.org>
+Date:  Fri Mar 31 13:18:23 2006 +0000
+
+    .
+
+ src/.cvsignore | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit bce3e0b0d4ee521767d80c5c21704337bf5ac716
+Author: Behdad Esfahbod <behdad@src.gnome.org>
+Date:  Fri Mar 31 12:45:40 2006 +0000
+
+    Define NULL.
+
+ src/harfbuzz-impl.h | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+commit 9f8da38cd108590514b71756b752d98952a9221f
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Fri Mar 31 12:28:09 2006 +0000
+
+    Convert pango/opentype to the new project called HarfBuzz.
+
+    2006-03-31 Behdad Esfahbod  <behdad@gnome.org>
+
+           Convert pango/opentype to the new project called HarfBuzz.
+
+           * pango/opentype/*: Restructured.
+
+           * pango/pango-ot-*: Updated to use HarfBuzz symbol names.
+
+ src/COPYING                |   15 +
+ src/COPYING.FTL            |  174 ++
+ src/COPYING.GPL            |  340 +++
+ src/FT-license.txt         |   28 -
+ src/FTL.TXT                |  174 --
+ src/Makefile.am            |   89 +-
+ src/README                 |   44 +-
+ src/disasm.c               |  720 -----
+ src/disasm.h               |   26 -
+ src/ftglue.c               |   88 +-
+ src/ftglue.h               |   68 +-
+ src/ftxgdef.c              | 1225 ---------
+ src/ftxgdef.h              |  224 --
+ src/ftxgpos.c              | 6199
+ ------------------------------------------
+ src/ftxgpos.h              |  838 ------
+ src/ftxgsub.c              | 4533 -------------------------------
+ src/ftxgsub.h              |  594 ----
+ src/ftxopen.c              | 1552 -----------
+ src/ftxopen.h              |  317 ---
+ src/ftxopenf.h                     |  166 --
+ src/harfbuzz-buffer.c      |  227 ++
+ src/harfbuzz-buffer.h      |  106 +
+ src/harfbuzz-dump-main.c    | 272 ++
+ src/harfbuzz-dump.c        |  720 +++++
+ src/harfbuzz-dump.h        |   34 +
+ src/harfbuzz-gdef-private.h | 101 +
+ src/harfbuzz-gdef.c        | 1228 +++++++++
+ src/harfbuzz-gdef.h        |  127 +
+ src/harfbuzz-gpos-private.h | 683 +++++
+ src/harfbuzz-gpos.c        | 6269
+ +++++++++++++++++++++++++++++++++++++++++++
+ src/harfbuzz-gpos.h        |  168 ++
+ src/harfbuzz-gsub-private.h | 448 ++++
+ src/harfbuzz-gsub.c        | 4581 +++++++++++++++++++++++++++++++
+ src/harfbuzz-gsub.h        |  132 +
+ src/harfbuzz-impl.h        |   64 +
+ src/harfbuzz-open-private.h |  81 +
+ src/harfbuzz-open.c        | 1426 ++++++++++
+ src/harfbuzz-open.h        |  285 ++
+ src/harfbuzz.c                     |   19 +
+ src/harfbuzz.h                     |   23 +
+ src/otlbuffer.c            |  238 --
+ src/otlbuffer.h            |  103 -
+ src/ottest.c               |  274 --
+ 43 files changed, 17635 insertions(+), 17388 deletions(-)
+
+commit dd2a8d4d490df1d310e7553ba6c7c8de661f28a1
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Sat Mar 25 23:52:30 2006 +0000
+
+    Don't err on Table_Missing.
+
+    2006-03-25 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/ottest.c: Don't err on Table_Missing.
+
+ src/ottest.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 434833b1b7b01d85a143f9ad4b04e7044dd72567
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Mon Mar 13 05:06:05 2006 +0000
+
+    === Released 1.12.0 ===
+
+    2006-03-13 Behdad Esfahbod  <behdad@gnome.org>
+
+           * === Released 1.12.0 ===
+
+           * configure.in: Version 1.12.0
+
+           * NEWS, README: Updated.
+
+ src/README | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 8228828e1e4c8dd6f9435fb718ad4394bba95655
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Mon Jan 30 22:37:48 2006 +0000
+
+    Handle GSUB Lookup type 8, and ReverseChainContextualSubst table. (bug
+
+    2006-01-30 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/ftxgsub.c: Handle GSUB Lookup type 8,
+           and ReverseChainContextualSubst table.  (bug #149696,
+           patch from Aamir Wali)
+
+ src/ftxgsub.c | 545
+ ++++++++++++++++++++++++++++++++++++++++++++++-----------
+ src/ftxgsub.h |  47 +++--
+ src/ftxopen.c |   7 +
+ src/ftxopenf.h |   5 +-
+ 4 files changed, 487 insertions(+), 117 deletions(-)
+
+commit e040f681963d51eaadcd53a456100fde1a7addb6
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Sat Jan 28 20:29:18 2006 +0000
+
+    Removed.
+
+    2006-01-28 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/pango-ot-*: Removed.
+
+           * pango/pango-ot-*: Added.
+
+           * pango/Makefile.am, pango/opentype/Makefile.am: Adjusted.
+
+ src/Makefile.am       |  30 +--
+ src/pango-ot-buffer.c | 339 ------------------------
+ src/pango-ot-info.c   | 681
+ -------------------------------------------------
+ src/pango-ot-private.h | 105 --------
+ src/pango-ot-ruleset.c | 225 ----------------
+ 5 files changed, 13 insertions(+), 1367 deletions(-)
+
+commit f45689bc655eb723f11a2eb65a41303221b80397
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed Jan 25 19:33:58 2006 +0000
+
+    If major.minor of required and available glib versions are the
+    same, add
+
+    2006-01-25 Behdad Esfahbod  <behdad@gnome.org>
+
+           * configure.in: If major.minor of required and available
+           glib versions
+           are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug
+           #328617)
+
+           * */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.
+
+ src/Makefile.am | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit 6cc6c9a57c674787f278ea5b60705384fd72b4ad
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Sat Jan 14 07:00:13 2006 +0000
+
+    Make sure #include <config.h> is the first include in the file. (bug
+
+    2006-01-14 Behdad Esfahbod  <behdad@gnome.org>
+
+           * */*.c, */*/*.c: Make sure #include <config.h> is the
+           first include
+           in the file. (bug #158870, based on patch by Luis Menina)
+
+ src/disasm.c          | 2 ++
+ src/ftglue.c          | 1 +
+ src/ftxgdef.c         | 1 +
+ src/ftxgpos.c         | 2 ++
+ src/ftxgsub.c         | 2 ++
+ src/ftxopen.c         | 2 ++
+ src/otlbuffer.c       | 3 +++
+ src/ottest.c          | 1 +
+ src/pango-ot-buffer.c | 2 ++
+ src/pango-ot-info.c   | 2 ++
+ src/pango-ot-ruleset.c | 2 ++
+ 11 files changed, 20 insertions(+)
+
+commit ca07fcf6ef61c09825e67ca7e2574a90e4f5a9a0
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Jan 5 16:14:49 2006 +0000
+
+    pango/Makefile.am, pango/fonts.c, pango/glyphstring.c,
+
+    2006-01-05 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/Makefile.am,
+           * pango/fonts.c,
+           * pango/glyphstring.c,
+           * pango/pango-attributes.c,
+           * pango/pango-color.c,
+           * pango/pango-impl-utils.h,
+           * pango/pango-item.c,
+           * pango/pango-layout.c,
+           * pango/pango-tabs.c,
+           * pango/pango-utils.c,
+           * pango/pango-utils.h,
+           * pango/pangoatsui-fontmap.c,
+           * pango/pangocairo-font.c,
+           * pango/pangocairo-fontmap.c,
+           * pango/pangofc-fontmap.c,
+           * pango/pangowin32-fontmap.c,
+           * pango/pangox-fontmap.c,
+           * pango/pangox.c,
+           * pango/opentype/pango-ot-info.c,
+           * pango/opentype/pango-ot-ruleset.c: Intern strings to avoid
+           unnecessary strdups in the type system. (bug #325832,
+           Matthias Clasen)
+
+ src/pango-ot-info.c   | 3 ++-
+ src/pango-ot-ruleset.c | 3 ++-
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+commit 71524f1bc891bb4450507f769e5cc8f6f6cffa0c
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Tue Dec 27 09:55:48 2005 +0000
+
+    Use g_slice for PangoOTBuffer allocation. (bug #325026, Matthias
+    Clasen)
+
+    2005-12-27 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/pango-ot-buffer.c: Use g_slice for
+           PangoOTBuffer
+           allocation. (bug #325026, Matthias Clasen)
+
+ src/pango-ot-buffer.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit b5baa43d3a972ebd3ef82ede14b54c185b723a71
+Author: Behdad Esfahbod <behdad@src.gnome.org>
+Date:  Fri Nov 25 09:22:02 2005 +0000
+
+    Tiny doc improvement.
+
+ src/pango-ot-info.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 6f64314f7a031a5a5d6b7663c08b70c452961c89
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed Nov 23 19:48:10 2005 +0000
+
+    Fix typo in docs.
+
+    2005-11-23 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentyp/pango-ot-buffer.c: Fix typo in docs.
+
+ src/pango-ot-buffer.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit f2bcf72296b57c8cd7d5a08228c3aef6c8f97d2d
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed Nov 23 17:54:55 2005 +0000
+
+    Added "Since:" tags to all interfaces added after Pango 1.0. (#319116,
+
+    2005-11-23 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/fonts.c pango/pango-attributes.c pango/pango-context.c
+           pango/pango-glyph-item.c pango/pango-layout.c
+           pango/pango-script.c pango/pango-utils.c pango/pangofc-font.c
+           pango/pangoft2-fontmap.c pango/opentype/pango-ot-buffer.c
+           pango/opentype/pango-ot-ruleset.c: Added "Since:" tags to all
+           interfaces added after Pango 1.0. (#319116, Brian Cameron)
+
+ src/pango-ot-buffer.c | 49
+ +++++++++++++++++++++++++++++++++++++++++++++++++
+ src/pango-ot-ruleset.c | 14 ++++++++++++++
+ 2 files changed, 63 insertions(+)
+
+commit 682db81c23d2116072d8550657c914afb7c26d2b
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed Nov 23 15:19:48 2005 +0000
+
+    Protect against possible division by zeros (#316468, Steve Grubb)
+
+    2005-11-23 Behdad Esfahbod  <behdad@gnome.org>
+
+           Protect against possible division by zeros (#316468,
+           Steve Grubb)
+
+           * pango/pango-context.c (update_metrics_from_items),
+           pango/pango-fontset.c (pango_fontset_real_get_metrics):
+           If count is
+           zero, do not alter approximate_{char,digit}_width.
+
+           * pango/opentype/disasm.c: Err on invalid DeltaFormat.
+
+ src/disasm.c | 28 ++++++++++++++++++----------
+ 1 file changed, 18 insertions(+), 10 deletions(-)
+
+commit e6e15352d154e1350340f8045759e5f7b0d86dc7
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed Nov 23 11:53:03 2005 +0000
+
+    Reworked basic shaper with OpenType support. (#101079, based on
+    patch from
+
+    2005-11-23 Behdad Esfahbod  <behdad@gnome.org>
+
+           * modules/basic/basic-fc.c: Reworked basic shaper with
+           OpenType
+           support. (#101079, based on patch from Denis Jacquerye and
+           Noah Levitt)
+
+           * modules/basic/basic-fc.c (basic_scripts): Added Unicode
+           4.1 addition
+           script PANGO_SCRIPT_GLAGOLITIC that is a "simple" script.
+
+           * modules/arabic/arabic-fc.c, modules/syriac/syriac-fc.c:
+           Replace
+           g_utf8_to_ucs4_fast() with g_utf8_strlen()!
+
+           * pango/opentype/pango-ot-ruleset.c
+           (pango_ot_ruleset_add_feature):
+           Remove reference in docs to pango_ot_ruleset_shape() that was
+           removed long ago.
+
+ src/pango-ot-ruleset.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+commit 612b6cf60928b356f4bbb59bc9d64886574322c3
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Nov 17 06:28:11 2005 +0000
+
+    Part of #101079:
+
+    2005-11-17 Behdad Esfahbod  <behdad@gnome.org>
+
+           Part of #101079:
+
+           * pango/opentype/ftxopen.c (Load_Lookup): In extension
+           subtables,
+           offset is relative to the extension subtable, not the original
+           table. (Greg Aumann)
+
+           * pango/opentype/ftxgpos.c (Load_BaseArray): When reading
+           BaseAnchor,
+           skip offsets that are zero.  Works around bug in Doulos
+           SIL Regular.
+
+ src/ftxgpos.c | 6 ++++++
+ src/ftxopen.c | 6 ++++--
+ 2 files changed, 10 insertions(+), 2 deletions(-)
+
+commit 1b2c314b804da97b1d5e7adab64bdd4177702579
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Wed Nov 9 23:30:00 2005 +0000
+
+    Remove debug line that got in accidentally.
+
+    2005-11-09 Behdad Esfahbod  <behdad@gnome.org>
+
+           * pango/opentype/ftxgpos.c, pango/opentype/ftxopen.c:
+           Remove debug
+           line that got in accidentally.
+
+ src/ftxgpos.c | 1 -
+ src/ftxopen.c | 1 -
+ 2 files changed, 2 deletions(-)
+
+commit 9717127a5be037e26afe52332a8b07f13474557a
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Fri Nov 4 23:55:38 2005 +0000
+
+    Turn various gcc warnings off. Adding const, adding static, fully
+
+    2005-11-04 Behdad Esfahbod  <behdad@gnome.org>
+
+           * configure.in, examples/argcontext.c examples/cairoview.c,
+           examples/renderdemo.c, examples/renderdemo.h
+           examples/xftview.c,
+           modules/basic/basic-x.c, modules/hangul/hangul-fc.c,
+           modules/hebrew/hebrew-shaper.c,
+           modules/hebrew/hebrew-shaper.h,
+           modules/indic/indic-fc.c, modules/indic/mprefixups.c,
+           modules/syriac/syriac-fc.c, pango/break.c pango/fonts.c,
+           pango/modules.c, pango/pango-coverage.c pango/pango-engine.c,
+           pango/pango-engine.h, pango/pango-fontmap.c,
+           pango/pango-fontset.c, pango/pango-impl-utils.h,
+           pango/pango-layout.c, pango/pango-layout.h,
+           pango/pango-renderer.c, pango/pango-script.c,
+           pango/pango-utils.c, pango/pangocairo-fc.h,
+           pango/pangocairo-font.c, pango/pangocairo-fontmap.c,
+           pango/pangocairo-private.h, pango/pangofc-decoder.c,
+           pango/pangofc-font.c, pango/pangofc-fontmap.c
+           pango/pangoft2.c,
+           pango/pangox-fontcache.c, pango/pangox-fontmap.c
+           pango/pangox.c,
+           pango/pangoxft-font.c, pango/querymodules.c,
+           pango/opentype/ftglue.c, pango/opentype/ftxgpos.c,
+           pango/opentype/ftxopen.c, pango/opentype/pango-ot-buffer.c,
+           pango/opentype/pango-ot-info.c,
+           pango/opentype/pango-ot-ruleset.c, tests/dump-boundaries.c,
+           tests/testboundaries.c, tests/testcolor.c tests/testiter.c,
+           tests/testscript.c: Turn various gcc warnings off. Adding
+           const,
+           adding static, fully initializing structs, match signedness in
+           comparisons. (#317804)
+
+           * tests/testscript.c, tools/gen-script-for-lang.c:
+           (scripts_for_file): Pass error->message instead of error
+           to fail(),
+           which was wrong.
+           (compare_lang): Fix typo comparing a and a instead of a and b.
+
+ src/ftglue.c          | 2 +-
+ src/ftxgpos.c         | 4 ++++
+ src/ftxopen.c         | 1 +
+ src/pango-ot-buffer.c | 4 ++--
+ src/pango-ot-info.c   | 5 +++--
+ src/pango-ot-ruleset.c | 5 +++--
+ 6 files changed, 14 insertions(+), 7 deletions(-)
+
+commit c0505f3bb28feeba95b201e6464fb2fdac90194a
+Author: Behdad Esfahbod <behdad@gnome.org>
+Date:  Thu Nov 3 20:13:40 2005 +0000
+
+    Patches from #170414. Reviewed by Matthias Clasen.
+
+    2005-11-03 Behdad Esfahbod  <behdad@gnome.org>
+
+           Patches from #170414.  Reviewed by Matthias Clasen.
+
+           * pango/opentype/ftxgpos.c, pango/opentype/ftxgsub.c: Use
+           call table
+           to dispatch different lookup types.
+
+           * pango/opentype/pango-ot-buffer.c,
+           pango/opentype/pango-ot-ruleset.c:
+           Small cleanup.
+
+ src/ftxgpos.c         | 143
+ ++++++++++++++++++++++++-------------------------
+ src/ftxgsub.c         | 115 +++++++++++++++++++++------------------
+ src/pango-ot-buffer.c |   3 +-
+ src/pango-ot-ruleset.c |  75 +++++++++-----------------
+ 4 files changed, 159 insertions(+), 177 deletions(-)
+
+commit c6b22b9119ef54ea8d0d2f08b74fdeb024289d73
+Author: Behdad Esfahbod <pango@behdad.org>
+Date:  Mon Aug 29 10:06:40 2005 +0000
+
+    Generate valid XML output. Dump LookupFlag too.
+
+    2005-08-29 Behdad Esfahbod  <pango@behdad.org>
+
+           * pango/opentype/ottest.c, pango/opentype/disasm.c:
+           Generate valid
+           XML output.  Dump LookupFlag too.
+
+ src/disasm.c | 58
+ ++++++++++++++++++++++++++++++----------------------------
+ src/ottest.c | 23 ++++++++++++++---------
+ 2 files changed, 44 insertions(+), 37 deletions(-)
+
+commit 1e3747ca5d1a6f607f8e56fb94e3daaf6ad623cb
+Author: Behdad Esfahbod <pango@behdad.org>
+Date:  Mon Aug 15 04:16:04 2005 +0000
+
+    Replace perror with perror_. Remove FT_BEGIN_STMNT and FT_END_STMNT.
+
+    2005-08-15 Behdad Esfahbod  <pango@behdad.org>
+
+           * pango/opentype/ftglue.h: Replace perror with perror_.
+           Remove FT_BEGIN_STMNT and FT_END_STMNT. (#313477)
+
+ src/ftglue.h | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 3c60250875fa9d04ca96dea35eba23fc70690ff5
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Tue Jul 26 18:33:27 2005 +0000
+
+    Skip lookups with lookup index out of range. (Patch from Behdad
+    Esfahbod,
+
+    2005-07-26   Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgsub.c, pango/opentype/ftxgpos.c:
+           Skip lookups
+           with lookup index out of range. (Patch from Behdad Esfahbod,
+           #171170)
+
+ src/ftxgpos.c | 30 ++++++++++++++++++++++++------
+ src/ftxgsub.c | 30 ++++++++++++++++++++++++------
+ 2 files changed, 48 insertions(+), 12 deletions(-)
+
+commit 91a3fa2e4bcdde8ae022d1264c783f133cd7e00d
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Fri Jul 22 18:03:58 2005 +0000
+
+    Remove an unecessary set of block2.
+
+    2005-07-22 Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftglue.c (ftglue_realloc): Remove
+           an unecessary set of block2.
+
+ src/ftglue.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit ff7034787d79dcd1bec58a4e02602039313da00e
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Fri Jul 22 17:56:37 2005 +0000
+
+    Patch from David Turner. Review and testing by Behdad Esfahbod
+
+    2005-07-22 Owen Taylor  <otaylor@redhat.com>
+
+           Patch from David Turner. Review and testing by Behdad Esfahbod
+
+           * pango/opentype/ftglue.[ch] Makefile.am: Glue layer that
+           provides
+           implementation of the internal functions that the opentype
+           code
+           expects in terms of publically exported FreeType API.
+
+           * pango/opentype/ftxgdef.c pango/opentype/ftxgpos.c
+           pango/opentype/ftxgsub.c pango/opentype/ftxopen.c
+           pango/opentype/otlbuffer.c pango/opentype/pango-ot-info.c
+           pango/opentype/pango-ot-ruleset.c: Remove includes of
+           internal headers. Small changes to work with ftglue.[ch]
+
+           * pango/opentype/fterrcompat.h: Remove: no longer needed.
+
+           * pango/opentype/ftxgpos.c: Use FT_IS_SFNT(face) rather
+           than poking at FT_MODULE_CLASS (face->driver)->module_name.
+
+           * pango/opentype/ftxopen.c (Free_FeatureList): Free
+           fl->ApplyOrder. (Found by Behdad)
+
+ src/Makefile.am       |   3 +-
+ src/fterrcompat.h     |  95 --------------
+ src/ftglue.c          | 350
+ +++++++++++++++++++++++++++++++++++++++++++++++++
+ src/ftglue.h          | 156 ++++++++++++++++++++++
+ src/ftxgdef.c         |   9 +-
+ src/ftxgpos.c         |   9 +-
+ src/ftxgsub.c         |  10 +-
+ src/ftxopen.c         |   8 +-
+ src/otlbuffer.c       |   4 +-
+ src/pango-ot-info.c   |   6 +-
+ src/pango-ot-ruleset.c |   2 -
+ 11 files changed, 520 insertions(+), 132 deletions(-)
+
+commit 43dbec6f3a345ba0e4a43766610ed59622bbe4a0
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Thu Jul 21 18:15:45 2005 +0000
+
+    Fix up places where there is missing or incomplete Copyright and
+    License
+
+    2005-07-21 Owen Taylor  <otaylor@redhat.com>
+
+           Fix up places where there is missing or incomplete
+           Copyright and License information (Reported by William N. Ray)
+
+           * pango/opentype/fterrcompat.h: Mark as FreeType/GPL licensed.
+
+           * pango/opentype/FT-license.txt: Make this the dual-licensing
+           description that covers the FreeType code (FreeType's
+           LICENSE.TXT) rather than the FTL.
+
+           * pango/opentype/FTL.TXT: Move the FTL (referenced from
+           FT-license.txt) to here.
+
+           * modules/basic/basic-common.h modules/hebrew/hebrew-shaper.h
+           modules/thai/thai-charprop.c modules/thai/thai-shaper.h
+           tools/gen-script-for-lang.c tests/testcolor.c:
+           Add LGPL header and copyright information.
+
+           * modules/indic/indic-ot.[ch]
+           modules/indic/indic-ot-class-tables.c
+           modules/thai/thai-ot.[ch]: Add LGPL header.
+
+           * modules/thai/thai-shaper.c modules/thai/thai-charprop.h:
+           Minor fixes to copyright information.
+
+           * modules/arabic/arabic-ot.c: Add Freetype license
+           boilerplate.
+
+ src/FT-license.txt | 179
+ +++++++----------------------------------------------
+ src/FTL.TXT       | 174
+ +++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/fterrcompat.h  |  10 ++-
+ 3 files changed, 204 insertions(+), 159 deletions(-)
+
+commit c55850d36d208c7aae8f6ed5c9e1e7927b988d6c
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Tue Jun 14 19:54:19 2005 +0000
+
+    Chain up from finalize. (#307547, Paolo Borelli)
+
+    2005-06-14 Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/pango-ot-info.c (pango_ot_info_finalize)
+           pango/opentype/pango-ot-ruleset.c (pango_ot_ruleset_finalize):
+           Chain up from finalize. (#307547, Paolo Borelli)
+
+           * pango/opentype/pango-ot-info.c (pango_ot_info_finalizer):
+           make accidentally public function static.
+
+ src/pango-ot-info.c   | 4 +++-
+ src/pango-ot-ruleset.c | 2 ++
+ 2 files changed, 5 insertions(+), 1 deletion(-)
+
+commit 44ff46a364fb7981804eb45329c4999b415711f9
+Author: Tor Lillqvist <tml@novell.com>
+Date:  Tue Apr 12 01:27:21 2005 +0000
+
+    Rename LDADDS to libpango_ot_la_LIBADD to actually make libpango-ot.la
+
+    2005-04-12 Tor Lillqvist  <tml@novell.com>
+
+       * pango/opentype/Makefile.am: Rename LDADDS to
+       libpango_ot_la_LIBADD to actually make libpango-ot.la link with
+       it.
+
+       * pango/pangowin32.def: Rename get_scale_factor to
+       get_metrics_factor here, too. (#300222, Ivan Wong)
+
+ src/Makefile.am | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+commit 0c349a032e5a52a9d0dcc8204f761b7cb28bfa6b
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Thu Mar 3 19:38:02 2005 +0000
+
+    For all binary searches, handle the case where the number of items
+    is 0.
+
+    2005-03-03 Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxopen.c (Coverage_Index1, Coverage_Index2,
+           Get_Class2): For all binary searches, handle the case where
+           the number of items is 0. (#162977, Nick Lamb)
+
+           * pango/opentype/ftxgdef.c (TT_GDEF_Build_ClassDefinition):
+           Handle the case where glyph_count == 0 properly. Fix a problem
+           with cleanups on memory allocation failure.
+           (Get_New_Count, Add_Glyph_Property): Avoid reading off the
+           end of the ClassRangeRecord array.
+
+ src/ftxgdef.c | 60
+ +++++++++++++++++++++++++++++++++++------------------------
+ src/ftxopen.c | 15 +++++++++++++++
+ 2 files changed, 51 insertions(+), 24 deletions(-)
+
+commit 03838daaa9d485bffcb7bc46453a9a4c32a1f32f
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Mon Nov 22 23:37:19 2004 +0000
+
+    Set G_LOG_DOMAIN.
+
+    Mon Nov 22 18:30:14 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/Makefile.am pango/Makefile.am
+           modules/*/Makefile.am: Set G_LOG_DOMAIN.
+
+ src/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 346d3b3cac253d2db41205151c185bf2fd9dda16
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Wed Sep 22 18:14:55 2004 +0000
+
+    Cleanups from 'sparse', #149922, Kjartan Maraas
+
+    Wed Sep 22 14:07:47 2004  Owen Taylor  <otaylor@redhat.com>
+
+           Cleanups from 'sparse', #149922, Kjartan Maraas
+
+           * pango/pango-utils.c (read_config): () => (void) in
+           definition.
+
+           * pango/pangofc-fontmap.c (pango_fc_font_map_list_families):
+           Initialize *n_families, not n_families.
+
+           * pango/pangofc-fontmap.c pango/pangoft2.c opentype/ftxgdef.c
+           opentype/ftxgpos.c opentype/ftxgsub.c: : Fix various 0/NULL
+           confusion.
+
+ src/ftxgdef.c | 2 +-
+ src/ftxgpos.c | 6 +++---
+ src/ftxgsub.c | 2 +-
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+commit 8b654dfb5ad6137ee9c5a48f5abe04bf7d28d8cd
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Tue Sep 14 13:45:41 2004 +0000
+
+    === Released 1.6.0 ===
+
+    Mon Sep 13 17:38:58 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * === Released 1.6.0 ===
+
+           * configure.in: Update versions for 1.6.0
+
+           * NEWS: Update.
+
+           * README: Minor tweak.
+
+           * pango/fonts.c pango/pango-context.c pango/pango-types.h
+           pango/pango-utils.c pango/pangoft2.c pango/pango-layout.c
+           pango/opentype/pango-ot-buffer.c: Add a bunch of missing
+           Since: 1.6.
+
+ src/pango-ot-buffer.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit d41089a5b691967fdd622f47c8397a80af104396
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Fri Jul 30 21:23:04 2004 +0000
+
+    Finish extending properties flags from FT_UShort =>
+    FT_UInt. (OTLBuffer
+
+    Fri Jul 30 17:17:05 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgpos.[ch] pango/opentype/ftxgsub.[ch]
+           pango/opentype/ftxopen.[ch]: Finish extending properties
+           flags from FT_UShort => FT_UInt. (OTLBuffer was already
+           using an FT_UInt)
+
+ src/ftxgpos.c | 8 ++++----
+ src/ftxgpos.h | 2 +-
+ src/ftxgsub.c | 8 ++++----
+ src/ftxgsub.h | 2 +-
+ src/ftxopen.c | 2 +-
+ src/ftxopen.h | 2 +-
+ 6 files changed, 12 insertions(+), 12 deletions(-)
+
+commit f42d5eca291dcdfb27d7fbf88391d6d381b8e9c4
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Tue Jul 27 17:20:01 2004 +0000
+
+    Save the order in which features were added and use that when applying
+
+    Tue Jul 27 12:38:05 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxopen.[ch] pango/opentype/ftxgsub.c
+           pango/opentype/ftxpos.c: Save the order in which
+           features were added and use that when applying features.
+           (Patch from Soheil Hassas Yeganeh, #122330)
+
+ src/ftxgpos.c | 41 ++++++++++++++++++++++++-----------------
+ src/ftxgsub.c | 34 +++++++++++++++++++++-------------
+ src/ftxopen.c | 14 +++++++++++---
+ src/ftxopen.h |  2 ++
+ 4 files changed, 58 insertions(+), 33 deletions(-)
+
+commit ae2daa972d74c5ecfe1d2f0057ce12682ad30b00
+Author: Behdad Esfahbod <behdad@src.gnome.org>
+Date:  Tue Jul 27 13:12:19 2004 +0000
+
+    Remove the unused parameter from the IN_CURITEM() and IN_CURGLYPH
+    macros.
+
+
+       * pango/opentype/ftxgpos.c: Remove the unused parameter
+       from the IN_CURITEM() and IN_CURGLYPH macros.
+
+ src/ftxgpos.c | 68
+ +++++++++++++++++++++++++++++------------------------------
+ src/ftxgsub.c |  2 +-
+ 2 files changed, 35 insertions(+), 35 deletions(-)
+
+commit 7d5435ea8cb345c79029b8a12d1bddbed28b1997
+Author: Behdad Esfahbod <behdad@src.gnome.org>
+Date:  Tue Jul 27 10:43:58 2004 +0000
+
+    Fix bug to copy glyph from in_string, not out_string.
+
+
+       * pango/opentype/otlbuffer.c (otl_buffer_copy_output_glyph):
+       Fix bug to copy glyph from in_string, not out_string.
+
+ src/otlbuffer.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 2ea2a55bdf7ef1caebcd0c5922b0f542ed8bb5bf
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Mon Jul 26 23:14:53 2004 +0000
+
+    Fix allocation and indexing in NewGlyphClasses array. (#130661,
+    Masatake
+
+    Mon Jul 26 19:11:46 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgdef.c: Fix allocation and indexing
+           in NewGlyphClasses array. (#130661, Masatake YAMATO)
+
+ src/ftxgdef.c | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+commit 5d42695e5ed89f73fbc665792ebec82c29ae04ae
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Mon Jul 26 19:25:45 2004 +0000
+
+    Remove the unused parameter from the IN_CURITEM() and IN_CURGLYPH
+    macros.
+
+    Mon Jul 26 15:24:11 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgsub.c (ADD_Glyph): Remove the
+           unused parameter from the IN_CURITEM() and IN_CURGLYPH
+           macros.
+
+ src/ftxgsub.c | 56
+ ++++++++++++++++++++++++++++----------------------------
+ 1 file changed, 28 insertions(+), 28 deletions(-)
+
+commit a00c4ea5626526980139b122977e367b8434d24a
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Mon Jul 26 19:23:06 2004 +0000
+
+    Add missing macro to make the last change actually compile.
+
+    Mon Jul 26 15:21:23 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgsub.c: Add missing macro to make the
+           last change actually compile.
+
+ src/ftxgsub.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+commit ed3e1f278d3ebfd224f0b57388502d4bb9fb1441
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Mon Jul 26 19:20:27 2004 +0000
+
+    Match backtrack context against the output glyphs not the input glyphs
+
+    Mon Jul 26 15:16:07 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgsub.c (Lookup_ChainContextSubst[123]):
+           Match backtrack context against the output glyphs not
+           the input glyphs (#145174, Aamir Wali)
+
+ src/ftxgsub.c | 24 ++++++++++++------------
+ 1 file changed, 12 insertions(+), 12 deletions(-)
+
+commit 78282cda004a88b2aadb2786dd3897884e22ed0b
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Mon Jul 26 18:59:02 2004 +0000
+
+    Make Check_Property() take a OTL_GlyphItem, add a gproperties field to
+
+    Mon Jul 26 14:49:22 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * ftxgdef.[ch] otlbuffer.[ch]: Make Check_Property() take a
+           OTL_GlyphItem, add a gproperties field to OTLGlyphItem,
+           and use that to cache the properties for a glyph.
+
+           * ftxgsub.c ftxgdef.c: Adapt to Check_Property() changes.
+
+           * otlbuffer.[ch] ftxgsub.c: Add otl_buffer_copy_output_glyph()
+           to use when we are copying an unmodified glyph from input
+           to output that preserves the cached properties.
+
+ src/ftxgdef.c  | 16 ++++++++++------
+ src/ftxgpos.c  | 52 +++++++++++++++++++++++++++-------------------------
+ src/ftxgsub.c  | 54
+ ++++++++++++++++++++++++++++--------------------------
+ src/ftxopenf.h  |  2 +-
+ src/otlbuffer.c | 21 +++++++++++++++++++--
+ src/otlbuffer.h |  6 ++++++
+ 6 files changed, 91 insertions(+), 60 deletions(-)
+
+commit 81b62af42313fb60db523374cd8c6901829f5c4e
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Mon Jul 19 21:13:23 2004 +0000
+
+    Add support for ChainContextSubstFormat3.
+
+    Mon Jul 19 17:09:11 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/disasm.c: Add support for
+           ChainContextSubstFormat3.
+
+ src/disasm.c | 16 +++++++++++++++-
+ 1 file changed, 15 insertions(+), 1 deletion(-)
+
+commit d4f773ef92fdbaa7e61e6577db5e9b2846a100a4
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Mon Jul 19 20:37:22 2004 +0000
+
+    Fix pervasive buffer overruns when skipping glyphs when matching
+    contexts.
+
+    Mon Jul 19 16:29:45 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgsub.c pango/opentype/ftxgpos.c:
+           Fix pervasive buffer overruns when skipping glyphs
+           when matching contexts. (#118592, Kailash C. Chowksey)
+
+ src/ftxgpos.c | 259 ++++++++++++++++++----------------------
+ src/ftxgsub.c | 376
+ ++++++++++++++++++++++++++--------------------------------
+ 2 files changed, 284 insertions(+), 351 deletions(-)
+
+commit 99848cfafee8e598ef533f254cdb99fbae4c9364
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Wed Jun 23 20:33:35 2004 +0000
+
+    #143693, Sayamindu Dasgupta
+
+    Wed Jun 23 16:13:53 2004  Owen Taylor  <otaylor@redhat.com>
+
+           #143693, Sayamindu Dasgupta
+
+           * pango/opentype/pango-ot-buffer.c
+           (pango_ot_buffer_set_zero_width_marks)
+           pango/opentype/pango-ot-private.h:
+           Allow setting for whether marks should be given zero width,
+           defaulting to FALSE.
+
+           * modules/arabic/arabic-fc.c (arabic_engine_shape): Turn
+           on zero-width-marks setting.
+
+ src/pango-ot-buffer.c | 22 +++++++++++++++++++++-
+ src/pango-ot-private.h |  5 +++--
+ 2 files changed, 24 insertions(+), 3 deletions(-)
+
+commit 68d4cedb8726fa239f56d62060d8fee7e09cb8be
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Mon Jun 21 18:04:02 2004 +0000
+
+    Use the gcc-3.3 strict-aliasing compatible macros from fterrcompat.h
+
+    Mon Jun 21 13:55:17 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/otlbuffer.c: Use the gcc-3.3
+           strict-aliasing compatible macros from fterrcompat.h
+           (#140495, reported by Stanislav Brabec)
+
+ src/otlbuffer.c | 22 ++++++++++++++--------
+ 1 file changed, 14 insertions(+), 8 deletions(-)
+
+commit b327765176dff81047f942ac56a1d206344e6039
+Author: Theppitak Karoonboonyanan <tkaroonb@src.gnome.org>
+Date:  Fri May 28 16:41:36 2004 +0000
+
+    Negate y offset according to different conventions between
+
+       * pango/opentype/pango-ot-buffer.c (apply_gpos_ltr): Negate
+       y offset
+       according to different conventions between PangoGlyphString
+       and OTL
+       (#142544)
+
+ src/pango-ot-buffer.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 068763b547d791e28b892bcaee810f3d60a83018
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Thu May 27 21:55:50 2004 +0000
+
+    Revert error return changes from last commit.
+
+    Thu May 27 17:54:24 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/otlbuffer.c: Revert error return changes
+           from last commit.
+
+ src/otlbuffer.c | 16 ++++++----------
+ 1 file changed, 6 insertions(+), 10 deletions(-)
+
+commit ef07481025c5bbb9769b9f908d9dc78f44161bbb
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Thu May 27 21:03:42 2004 +0000
+
+    Free buffer->positions, clean up error returns that were returning
+
+    Thu May 27 16:57:30 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/otlbuffer.c: Free buffer->positions,
+           clean up error returns that were returning uninitialized
+           values. (#139239, Behdad Esfahbod)
+
+ src/otlbuffer.c | 21 +++++++++++++--------
+ 1 file changed, 13 insertions(+), 8 deletions(-)
+
+commit de568e7e6200c7a49bae1f78ac63858b8df01173
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Tue Mar 16 19:23:43 2004 +0000
+
+    === Released 1.4.0 ===
+
+    Tue Mar 16 11:24:46 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * === Released 1.4.0 ===
+
+           * configure.in: Version 1.4.0, interface ago 0. Require
+           glib-2.4.0.
+
+           * NEWS: Updates.
+
+           * README: Some updates; include details about the FreeType
+           license of the OpenType code.
+
+ src/FT-license.txt | 77
+ +++++++++++++++++++++++++++++-------------------------
+ 1 file changed, 42 insertions(+), 35 deletions(-)
+
+commit 8b3554b3afe7c125b1a53171b01ac87de9c486fe
+Author: Hans Breuer <hans@breuer.org>
+Date:  Wed Mar 3 22:35:19 2004 +0000
+
+    if PANGO_MODULE_PREFIX is defined include the basic backend shaper
+    (should
+
+    2004-03-03 Hans Breuer  <hans@breuer.org>
+
+       * pango/module-defs-win32.c.win32 : if PANGO_MODULE_PREFIX is
+       defined include the basic backend shaper (should have been
+       commited at 2003-12-12, too)
+
+       * pango/makefile.msc : generate correct type for PangoFontMask
+       (bug #135892, John Ehresman)
+       * pango/opentype/makefile.msc : updated
+
+       * pango/pango.def pango/pangoft2.def : more updatd externals
+
+ src/makefile.msc | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+commit a7e096c5de3ec5319bf9333c9ace0732d97c52c3
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sun Feb 29 15:44:50 2004 +0000
+
+    Rework opentype interfaces and other changes to make GPOS work
+    for Arabic.
+
+    Sun Feb 29 09:25:13 2004  Owen Taylor  <otaylor@redhat.com>
+
+           Rework opentype interfaces and other changes to make GPOS
+           work for Arabic. (Most of #117282, #121060)
+
+           * pango/opentype/otlbuffer.[ch]: OTL_Buffer that
+           acts as a replacement for the separate GSUB and
+           GPOS string structures and hides many of the internal
+           details.
+
+           * pango/opentype/ftxgsub.[ch] pango/opentype/ftxgpos.[ch]:
+           Adapt to OTL_Buffer.
+
+           * pango/opentype/ftxgpos.c: Redo handling of cursive
+           chains so that it actually works.
+
+           * pango/pango-ot.h pango/opentype/pango-ot-buffer.c:
+           Pango wrapper around OTL_Buffer.
+
+           * pango/pango-ot.h pango/pango-ot-ruleset.c
+           pango/pango-ot-buffer.c:
+           Split pango_ot_ruleset_shape() into
+           pango_ot_ruleset_substitute(),
+           pango_ot_ruleset_position(), make them act on
+           PangoOTBuffer, add a separate pango_ot_buffer_output()
+           which does the default positioning and writes to a
+           PangoGlyphString.
+
+           * modules/arabic/arabic-fc.c modules/indic/indic-fc.c
+           modules/indic/mprefixups.[ch]: Adapt to new OpenType
+           interfaces; add GPOS features for Arabic.
+
+           * pango/opentype/pango-ot-info.c: Don't derive class
+           information
+           from Unicode properties for Arabic presentation forms,
+           let the shaping process derive the properties.
+
+ src/Makefile.am       |   3 +
+ src/ftxgdef.c         |   4 +-
+ src/ftxgpos.c         | 573 ++++++++++++++++-----------------------
+ src/ftxgpos.h         |  23 +-
+ src/ftxgsub.c         | 719
+ +++++++++++--------------------------------------
+ src/ftxgsub.h         |  40 +--
+ src/ftxopen.h         |   1 +
+ src/otlbuffer.c       | 213 +++++++++++++++
+ src/otlbuffer.h       |  97 +++++++
+ src/ottest.c          |   2 +
+ src/pango-ot-buffer.c | 265 ++++++++++++++++++
+ src/pango-ot-info.c   |  27 +-
+ src/pango-ot-private.h |   8 +
+ src/pango-ot-ruleset.c | 148 +++-------
+ 14 files changed, 1039 insertions(+), 1084 deletions(-)
+
+commit d670ddf99192dd4999775a9215a818ae63fa3416
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sat Feb 21 14:53:12 2004 +0000
+
+    Sign convention for y offsets is opposite between PangoGlyphString
+    and FT
+
+    Sat Feb 21 09:49:23 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/pango-ot-ruleset.c (pango_ot_ruleset_shape):
+           Sign convention for y offsets is opposite between
+           PangoGlyphString and FT code. (#132591)
+
+ src/pango-ot-ruleset.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit b9b3c131c2b57c12a77124a52512fb19a1255f8e
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Fri Feb 13 16:11:40 2004 +0000
+
+    Memory leak fixes from Masatake YAMATO, #130652
+
+    Fri Feb 13 10:54:18 2004  Owen Taylor  <otaylor@redhat.com>
+
+           Memory leak fixes from Masatake YAMATO, #130652
+
+           * pango/opentype/ftxgdef.c (TT_Done_GDEF_Table):
+           Free the gdef table as well as the contained data.
+
+           * pango/opentype/ftxgdef.c (TT_GDEF_Build_ClassDefinition):
+           Set gcd->loaded, so that the contents get freed later.
+
+ src/ftxgdef.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+commit 926b8f322989298e43c8bac85f23e3525470a669
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Mon Jan 26 19:23:35 2004 +0000
+
+    Suport CFF fonts as well. (#131202, Manjunath Sripadarao)
+
+    Mon Jan 26 14:20:34 2004  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/pango-ot-info.c (is_truetype): Suport
+           CFF fonts as well. (#131202, Manjunath Sripadarao)
+
+ src/pango-ot-info.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+commit 945e479a3a35769e5e7c792fdcf306892523a5f9
+Author: Hans Breuer <hans@breuer.org>
+Date:  Sat Dec 13 14:31:50 2003 +0000
+
+    moved pango_fc_* to the latter where they live on *nix too.
+
+    2003-12-13 Hans Breuer  <hans@breuer.org>
+
+       * pango/pango.def pangoft2.def : moved pango_fc_*
+       to the latter where they live on *nix too.
+
+       * pango/makefile.msc : make it build again (including
+       the Ft2 backend)
+
+       * pango/module-defs-fc.c.win32 : if PANGO_MODULE_PREFIX is defined
+       include the basic backend shaper
+
+       * pango/pangowin32.c (pango_win32_render_layout) :
+       initialize iter before first usage to avoid immediate crashing
+
+       * pango/opentype/makefile.msc
+               pango/modules/makefile.msc : finally build with mscv, too.
+       [completely untested cause I'm not able to type, write or read
+       any of these languages]
+
+       * modules/modules.def : follow module function renaming/changes
+
+       * modules/basic/basic-win32.c : register the right engine, i.e.
+       make it compile
+
+ src/makefile.msc | 21 +++++++++++++++++++++
+ 1 file changed, 21 insertions(+)
+
+commit ba0ccd5cfcb514cdc45373158343138b7b190f9d
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sat Nov 1 15:02:17 2003 +0000
+
+    Switch over to recommended Freetype system of include ft2build.h then
+
+    Sat Nov  1 09:32:15 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/pango-ot.h pango/pangofc-font.h
+           modules/indic/indic-ot.h
+           pango/pangoft2.c pango/opentype/pango-ot-info.c
+           pango/opentype/pango-ot-ruleset.c pango/opentype/ottest.c
+           pango/opentype/ftxopen.[ch] pango/opentype/ftxgdef.c
+           pango/opentype/ftxgsub.c pango/opentype/ftxgpos.c:
+           Switch over to recommended Freetype system of
+           include ft2build.h then #include FT_FREETYPE_H.
+           Fixes ftmodule.h problem with current Freetype CVS.
+           (#125548)
+
+ src/ftxgdef.c         | 14 +++++++-------
+ src/ftxgpos.c         | 17 ++++++++---------
+ src/ftxgsub.c         | 13 ++++++-------
+ src/ftxopen.c         | 10 +++++-----
+ src/ftxopen.h         |  3 ++-
+ src/ottest.c          |  1 -
+ src/pango-ot-info.c   |  4 ++--
+ src/pango-ot-private.h |  2 --
+ src/pango-ot-ruleset.c |  4 ++--
+ 9 files changed, 32 insertions(+), 36 deletions(-)
+
+commit 558171a7a3666999c679719ad0bfbdf7c6a52289
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Mon Sep 15 22:04:55 2003 +0000
+
+    Fix gcc-3.3 versions of macros to have the right return value.
+
+    Mon Sep 15 17:16:59 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/fterrcompat.h: Fix gcc-3.3 versions of
+           macros to have the right return value.
+
+ src/fterrcompat.h | 44 ++++++++++++++++++++++++++------------------
+ 1 file changed, 26 insertions(+), 18 deletions(-)
+
+commit c99259bf7e08ccdc4130d4983e8d186021ea8e1a
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Mon Aug 25 14:30:12 2003 +0000
+
+    pango/opentype/ftxgsub.c (Lookup_ChainContextSubst3) Fix problems
+    where
+
+    Mon Aug 25 10:17:21 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgsub.c (Lookup_ChainContextSubst3)
+           * pango/opentype/ftxgpos.c (Lookup_ChainContextPos3):
+           Fix problems where the coverage wasn't being checked
+           for the first input glyph. (#118639, Kailash C. Chowksey)
+
+ src/ftxgpos.c | 7 +++----
+ src/ftxgsub.c | 7 +++----
+ 2 files changed, 6 insertions(+), 8 deletions(-)
+
+commit bcf81bcc80c6235dfbc7eeaa34ed21ea329c7a3d
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Fri Aug 22 22:52:08 2003 +0000
+
+    Add some macro definitions for gcc-3.3 that suppress the bogus
+
+    Fri Aug 22 18:09:52 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/fterrcompat.h: Add some macro definitions
+           for gcc-3.3 that suppress the bogus strict-aliasing
+           warnings.
+
+           * pango/pango-utils.c (read_config_file): Use
+           g_hash_table_new_full() to simplify code and fix
+           gcc-3.3 warnings.
+
+           * pango/pangox-fontmap.c (pango_x_real_get_coverage_win)
+           * pango/querymodules.c (query_module): Suppress gcc-3.3
+           warnings.
+
+           * pango/modules.c (pango_find_map): Fix warning from
+           missing declaration of pango_module_get_type().
+
+           * pango/pango-context.c/pango-engine.c: Fix name confusion
+           for pango_get_fallback_shaper().
+
+ src/fterrcompat.h | 36 ++++++++++++++++++++++++++++++++++--
+ 1 file changed, 34 insertions(+), 2 deletions(-)
+
+commit 46d379596d7292a3b2e51f35fc8044b366d413a3
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Tue Jul 29 14:21:54 2003 +0000
+
+    Rewrite handling of IGNORE_SPECIAL_MARKS to be properly "ignore
+    marks of
+
+    Tue Jul 29 09:58:13 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgdef.c (Check_Property): Rewrite
+           handling of IGNORE_SPECIAL_MARKS to be properly
+           "ignore marks of attachment type different than
+           specified. (#118456, Kailash C. Chowksey)
+
+ src/ftxgdef.c | 37 ++++++++++++++++++++++++++++---------
+ 1 file changed, 28 insertions(+), 9 deletions(-)
+
+commit 8247acad79c1a4154e9337aed453eb3e4d23063d
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Mon Jul 28 22:28:37 2003 +0000
+
+    Revert back out the FreeType patch preventing ligatures of
+    not-originally
+
+    Sat Jul 26 09:41:22 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgsub.c (Lookup_LigatureSubst):
+           Revert back out the FreeType patch preventing
+           ligatures of not-originally adjacent glyphs;
+           it doesn't work for all scripts. (#118472,
+           Kailash C. Chowksey)
+
+ src/ftxgsub.c | 31 +++----------------------------
+ 1 file changed, 3 insertions(+), 28 deletions(-)
+
+commit 825e6d7e86cac310161648601b09291fa05d5ba5
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sun Jul 27 02:40:31 2003 +0000
+
+    Check for lookahead glyphs in the right place. (Patch from #116860)
+
+    Sat Jul 26 22:30:59 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgsub.c (Lookup_ChainContextSubst{1,2,3}):
+           Check for lookahead glyphs in the right place. (Patch
+           from #116860)
+
+           * pango/opentype/ftxgpos.c (Lookup_ChainContextPos{1,2,3}):
+           Same fix here.
+
+ src/ftxgpos.c | 6 +++---
+ src/ftxgsub.c | 6 +++---
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+commit 03a0fe09c711b81c7eb4065fd4700b8cfd2c977a
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sun Jul 27 02:19:52 2003 +0000
+
+    Fix return value to only contain TTO_Err_Not_Covered if *no* lookups
+
+    Sat Jul 26 22:12:46 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgsub.c (Do_String_Lookup,
+           TT_GSUB_Apply_String): Fix return value to only
+           contain TTO_Err_Not_Covered if *no* lookups
+           matched. Fix memory leaks on error in Apply_String().
+
+ src/ftxgsub.c | 120
+ ++++++++++++++++++++++++++++++++++++----------------------
+ 1 file changed, 75 insertions(+), 45 deletions(-)
+
+commit e10ea2afd9a5868d4ec1ff3a2b99bcd64ce45816
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sun Jul 27 01:10:15 2003 +0000
+
+    Fix confusion between boolean and FT_Error return. (GSUB equivalent
+    of fix
+
+    Sat Jul 26 21:06:26 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgsub.c (Load_EmptyOrClassDefinition):
+           Fix confusion between boolean and FT_Error return.
+           (GSUB equivalent of fix for #108358)
+
+ src/ftxgsub.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit a7305ab2624cbc08160dc11587ba3dc4e17781c2
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sat Jul 26 15:02:13 2003 +0000
+
+    Move allocation afer initial checks, fixing memory leak.
+
+    Sat Jul 26 10:52:20 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgpos.c (Lookup_ContextPos2):
+           * pango/opentype/ftxgsub.c (Lookup_ContextSubst2): Move
+           allocation afer initial checks, fixing memory leak.
+
+           * pango/opentype/ftxgsub.c (Lookup_ChainContextSubst2):
+           Fix some more error return memory leaks that weren't
+           fixed in the Qt changes.
+
+ src/ftxgpos.c |  8 ++++----
+ src/ftxgsub.c | 12 ++++++------
+ 2 files changed, 10 insertions(+), 10 deletions(-)
+
+commit f40b7c15e0bc4b71e706602c4e062f72d8f0fcdd
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sat Jul 26 14:50:23 2003 +0000
+
+    Fix various memory leaks from error returns that should have been
+    jumps to
+
+    Sat Jul 26 10:43:20 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgsub.c pango/opentype/ftxgpos.c:
+           Fix various memory leaks from error returns that should
+           have been jumps to cleanup blocks. (From Qt, Lars Knoll)
+
+ src/ftxgpos.c | 8 ++++----
+ src/ftxgsub.c | 4 ++--
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+commit 256d21970733483833b9cf31d5e0fa7ae853e944
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sat Jul 26 14:35:29 2003 +0000
+
+    Fix additional places where TTO_Err_Not_Covered wasn't considered a
+
+    Sat Jul 26 10:30:24 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgpos.c: Fix additional places where
+           TTO_Err_Not_Covered wasn't considered a successful return
+           from Get_Class. (From Qt, Lars Knoll)
+
+ src/ftxgpos.c | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+commit 374960681e2e36d0e4032623d8cb92a7910baf71
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sat Jul 26 13:50:23 2003 +0000
+
+    If applying a ligature lookup makes adjacent two glyphs that were not
+
+    Sat Jul 26 09:41:22 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgsub.c (Lookup_LigatureSubst):
+           If applying a ligature lookup makes adjacent two glyphs
+           that were not originally adjacent, avoid making
+           subsequent ligatures between those glyphs.
+           (From FreeType, Werner Lemberg, 2001-08-22, 2001-08-23)
+
+ src/ftxgsub.c | 31 ++++++++++++++++++++++++++++---
+ 1 file changed, 28 insertions(+), 3 deletions(-)
+
+commit b682482df77608d67eca8a050db5b36f44953c13
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sat Jul 26 13:20:52 2003 +0000
+
+    Fix some FreeType1 variable declarations that snuck in from the last
+
+    Sat Jul 26 09:16:57 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgpos.c pango/opentype/ftxopen.c:
+           Fix some FreeType1 variable declarations that snuck
+           in from the last commits (Christophe Fergeau,
+           118363)
+
+ src/ftxgpos.c | 6 +++---
+ src/ftxopen.c | 2 +-
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+commit 06c12109de061c357f46dcec82c4bee7160afede
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sat Jul 26 03:45:44 2003 +0000
+
+    OpenType-1.4 update: backtrack information is stored with the
+    item closest
+
+    Fri Jul 25 23:38:07 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgpos.c pango/opentype/ftxgsub.c:
+           OpenType-1.4 update: backtrack information is stored with the
+           item closest to the input first (From FreeType,
+           Werner Lemberg, 2002-09-26)
+
+ src/ftxgpos.c | 26 ++++++++++++++++++--------
+ src/ftxgsub.c | 24 +++++++++++++++++-------
+ 2 files changed, 35 insertions(+), 15 deletions(-)
+
+commit 15a69e4a12739e7392f2a38d6f7bfdd96c0dc3ba
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sat Jul 26 03:14:23 2003 +0000
+
+    Update of GPOS and GSUB support to OpenType 1.3 (From FreeType, Werner
+
+    Fri Jul 25 23:07:06 2003  Owen Taylor  <otaylor@redhat.com>
+
+           Update of GPOS and GSUB support to OpenType 1.3
+           (From FreeType, Werner Lemberg, 2001-08-08)
+
+           * pango/opentype/ftxopen.h: Add RIGHT_TO_LEFT LookupFlag
+
+           * pango/opentype/ftxgpos.c (GPOS_Instance): Add 'first'
+           member to mark the beginning of a chain of cursive
+           connections.
+
+           * pango/opentype/ftxgpos.c (Do_String_Lookup): If the
+           RIGHT_TO_FLAG flag is set, shift cursive chain up so
+           last glyph is on the baseline.
+
+ src/ftxgpos.c | 25 ++++++++++++++++++++++++-
+ src/ftxopen.h |  8 ++++++--
+ 2 files changed, 30 insertions(+), 3 deletions(-)
+
+commit 6f74f18b77402f3adf5bfbae26e8f44de6543b4e
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sat Jul 26 03:03:40 2003 +0000
+
+    Add GPOS_LOOKUP_EXTENSION, GSUB_LOOKUP_EXTENSION, which allow lookup
+
+    Fri Jul 25 22:59:13 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftx{gpos,gsub}.h pango/opentype/ftxgdef.c:
+           Add GPOS_LOOKUP_EXTENSION, GSUB_LOOKUP_EXTENSION, which
+           allow lookup information to be stored at 32-bit offets
+           via a double indirection. (From FreeType, Werner Lemberg,
+           2001-08-08)
+
+ src/ftxgpos.h | 17 +++++++++--------
+ src/ftxgsub.h |  1 +
+ src/ftxopen.c | 19 +++++++++++++++++++
+ 3 files changed, 29 insertions(+), 8 deletions(-)
+
+commit 375781c4546b5cfc453b99551ddf715bb162ffb9
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sat Jul 26 02:44:19 2003 +0000
+
+    Fix a couple of places where TTO_Err_Not_Covered wasn't considered a
+
+    Fri Jul 25 22:25:48 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgsub.c (Lookup_ContextSubst2,
+           Lookup_ChainContextSubst2): Fix a couple of
+           places where TTO_Err_Not_Covered wasn't considered
+           a successful return from Get_Class -- it means
+           use class index 0. (From FreeType, Werner Lemberg,
+           2001-08-06)
+
+ src/ftxgsub.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 378e1889cd294cb77313ba7fdab3e52959bf2c40
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sat Jul 26 02:10:42 2003 +0000
+
+    Improvements to OpenType-dumping code, based on changes in Qt by Lars
+
+    Fri Jul 25 20:12:00 2003  Owen Taylor  <otaylor@redhat.com>
+
+           Improvements to OpenType-dumping code, based on
+           changes in Qt by Lars Knoll.
+
+           * pango/opentype/ottest.c: Tweak the debugging output,
+           suppress some warnings.
+
+           * pango/opentype/disasm.c: Add support for
+           GSUB Context/Chain GPOS MarkBase lookups, improve
+           output in various ways.
+
+ src/disasm.c | 242
+ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
+ src/ottest.c |  12 +--
+ 2 files changed, 241 insertions(+), 13 deletions(-)
+
+commit 07bad0e77c42b5f2535e3b018bf9074d2f4ecc7c
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Thu Jul 24 21:05:29 2003 +0000
+
+    Fix uses of g_assert() around statements with side effects. (#115498,
+
+    Thu Jul 24 17:04:21 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/pango-ot-ruleset.c (pango_ot_ruleset_shape):
+           Fix uses of g_assert() around statements with side effects.
+           (#115498, patch from David Cuthbert)
+
+ src/pango-ot-ruleset.c | 14 +++++++++-----
+ 1 file changed, 9 insertions(+), 5 deletions(-)
+
+commit f91deef2c9473da5c3cb5e120f2d4fbf0d638166
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Wed Apr 16 21:48:29 2003 +0000
+
+    More careful handling of face->charmap; if is NULL, try to set
+    a unicode
+
+    Wed Apr 16 03:46:42 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/pango-ot-info.c (synthesize_class_def):
+           More careful handling of face->charmap; if is NULL,
+           try to set a unicode charmap, if that doesn't succeed,
+           return. (Hopefully fixes #106550)
+
+ src/pango-ot-info.c | 26 ++++++++++++++++++++++++--
+ 1 file changed, 24 insertions(+), 2 deletions(-)
+
+commit 587b3940f3ce71e8e1c9950086923d4eb78d62db
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Wed Apr 16 03:58:17 2003 +0000
+
+    When loading in Load_Chain{Sub,Pos}ClassRule, the limit we have only
+
+    Tue Apr 15 11:49:39 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxg{sub/pos}.c: When loading
+           in Load_Chain{Sub,Pos}ClassRule, the limit we
+           have only applies to the input ClassDef table.
+           Fixes problem with Arial Unicode. Much help from
+           Noah Levitt in tracing this down.
+
+ src/ftxgpos.c | 7 ++++---
+ src/ftxgsub.c | 7 ++++---
+ 2 files changed, 8 insertions(+), 6 deletions(-)
+
+commit 0d7567f8eaa1f8d0ec9cb89218ce3a1475d258ac
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Tue Apr 15 23:01:19 2003 +0000
+
+    Fix mispelled constant from last commit.
+
+    Tue Apr 15 06:57:02 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgpos.c: Fix mispelled constant
+           from last commit.
+
+ src/ftxgpos.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+commit 73cd600798a9a7225b2ac8241ea371d48cf7baf3
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Tue Apr 15 22:15:41 2003 +0000
+
+    Fix confusion between boolean and FT_Error return. (#108358,
+    Noah Levitt)
+
+    Tue Apr 15 06:03:39 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgpos.c: Fix confusion between
+           boolean and FT_Error return. (#108358, Noah Levitt)
+
+           * pango/opentype/ftxopen.c (Get_Class1): index is
+           allowed to be NULL. (#108358, Noah Levitt)
+
+ src/ftxgpos.c | 5 +++--
+ src/ftxopen.c | 3 ++-
+ 2 files changed, 5 insertions(+), 3 deletions(-)
+
+commit 462bd0be608c3d14e5b4c01099b02b3948a52369
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Tue Apr 15 21:05:53 2003 +0000
+
+    Fix infinite loop in the case where the charmap contains a character >
+
+    Tue Apr 15 05:00:39 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/pango-ot-info.c (synthesize_class_def):
+           Fix infinite loop in the case where the charmap contains
+           a character > 65535. (#106550, Morten Welinder.)
+
+ src/pango-ot-info.c | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+commit 312e1c1cf9f2c1e2137b9aaa5181a541447923cb
+Author: James Henstridge <james@daa.com.au>
+Date:  Tue Mar 11 12:31:16 2003 +0000
+
+    make similar changes to the ones on glib head (call gtk-docize, etc).
+
+    2003-03-11 James Henstridge  <james@daa.com.au>
+
+       * autogen.sh: make similar changes to the ones on glib head (call
+       gtk-docize, etc).
+
+       * configure.in: move some calculations into M4 macros, rather than
+       calculating them when configure runs.
+       Use AC_HELP_STRING where appropriate.
+       Replace gtk-doc checks with a call to GTK_DOC_CHECK.
+       Replace AC_OUTPUT_COMMANDS() call with a number of calls to
+       AC_CONFIG_COMMANDS (once per created file).
+       Get rid of the "chmod +x pango-config" bit, because there is no
+       pango-config anymore.
+
+       * Makefile.am: get rid of custom distcheck rule, and set
+       DISTCHECK_CONFIGURE_FLAGS, which is equivalent.
+       Use += to select which .pc files to install.
+
+       * pango/Makefile.am: Add rules to rebuild module-defs* files, and
+       remove them on clean.
+       Reorder so that rules related to each individual library are next
+       to each other.
+       Use BUILT_SOURCES for built sources.
+
+       * pango/opentype/Makefile.am: don't use STRIP_BEGIN/STRIP_END.
+
+       * modules/*/Makefile.am: simplify module makefiles through use of
+       +=, and regularise them a bit (fixed a few bugs in the process).
+
+       * docs/Makefile.am: remove common rules, and instead include
+       gtk-doc.make.
+
+       * examples/Makefile.am: add pango.modules to CLEANFILES.
+
+       * tests/Makefile.am: remove temporary files on clean.
+
+ src/Makefile.am | 11 +++++------
+ 1 file changed, 5 insertions(+), 6 deletions(-)
+
+commit 1aad15fd0c007c9075f2f7f4c4cacf576d726eea
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Mon Feb 17 22:04:29 2003 +0000
+
+    Add an --enable-debug configure argument defaulting to 'yes'
+    for unstable
+
+    Mon Feb 17 13:06:39 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * configure.in **/Makefile.am: Add an --enable-debug
+           configure argument defaulting to 'yes' for unstable
+           releases and 'minimum' for stable releases.
+           For minimum, -DG_DISABLE_CAST_CHECKS.
+
+           * pango/pangofc-fontmap.cI pango/pangoft2-fontmap.c
+           pango/pangoxft-fontmap.c: Add caching of fontsets
+           (#104495, initial patch and review by Soeren Sandmann)
+
+           * pango/pangofc-fontmap.cI pango/pangoft2-fontmap.c
+           pango/pangoxft-fontmap.c pango/pangoft2-private.h
+           pango/pangoxft-private.h: Remove cache of recently freed
+           fonts; not necessary now that we cache fontsets.
+
+           * pango/pangofc-fontmap.cI (pango_fc_pattern_set_free):
+           Rename from pango_fc_font_set_free to reflect
+           what it actually does.
+
+           * pango/pangofc-fontmap.cI pango/pangoft-fontmap.c
+           pango/pangoxft-fontmap.c: Combine clear-the-cache
+           functions; we didn't need separate clear-the-font-cache
+           and clear-the-pattern-cache functions.
+
+ src/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 5febce1ffc956ea44526d50be7cf14c69c66cb34
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Wed Feb 12 22:12:55 2003 +0000
+
+    Up the FreeType version requirement to 2.0.9. (2.2.1 had a compilation
+
+    Wed Feb 12 16:59:23 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * configure.in pango/opentype/fterrcompat.h README:
+           Up the FreeType version requirement to 2.0.9.
+           (2.2.1 had a compilation failure with older versions,
+           this catches it more cleanly, and removes some unneeded
+           checks. #105302, problem reported by Will Partain.)
+
+ src/fterrcompat.h | 4 ----
+ 1 file changed, 4 deletions(-)
+
+commit 54e85cc0cf3700d2c4af5396d79bd0e40df8f0da
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sat Jan 11 00:16:26 2003 +0000
+
+    Export TT_New_GDEF_Table to create an empty GDEF table.
+
+    Fri Jan 10 18:56:36 2003  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgdef.c: Export TT_New_GDEF_Table
+           to create an empty GDEF table.
+
+           * pango/opentype/pango-ot-info.c: If the font doesn't
+           have a class definition table, synthesize one using
+           the charmap and the unicode properties of characters
+           in the charmap. (Needed to make things work with various
+           old Arabic fonts, such as the KACST fonts)
+
+ src/ftxgdef.c      |  46 +++++++++++++++-------
+ src/ftxgdef.h      |   4 ++
+ src/pango-ot-info.c | 108
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 144 insertions(+), 14 deletions(-)
+
+commit db6bb4b034d4d8d546fc9bdc4ad28b16bb7f1bb7
+Author: Matthias Clasen <matthiasc@src.gnome.org>
+Date:  Thu Nov 28 23:53:18 2002 +0000
+
+    Add docs.
+
+       * docs/tmpl/xft-fonts.sgml:
+       * docs/tmpl/freetype-fonts.sgml: Add docs.
+
+       * pango/pangoxft-fontmap.c (pango_xft_substitute_changed):
+       * pango/pangoft2-fontmap.c
+       (pango_ft2_font_map_set_default_substitute):
+       Fix doc typos.
+
+ src/pango-ot-info.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+commit 226d9b67db852eb29ad37ec8121b79f3ea6f0b73
+Author: Sebastian Wilhelmi <wilhelmi@ira.uka.de>
+Date:  Tue Nov 26 13:37:10 2002 +0000
+
+    Do not add GLIB_CFLAGS to CFLAGS.
+
+
+    2002-11-26 Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in: Do not add GLIB_CFLAGS to CFLAGS.
+
+       * docs/Makefile.am, examples/Makefile.am,
+       modules/arabic/Makefile.am, modules/basic/Makefile.am,
+       modules/hangul/Makefile.am, modules/hebrew/Makefile.am,
+       modules/indic/Makefile.am, modules/tamil/Makefile.am,
+       modules/thai/Makefile.am, pango/Makefile.am,
+       pango/mini-fribidi/Makefile.am, pango/opentype/Makefile.am:
+       Instead add $(GLIB_CFLAGS) directly to INCLUDES (GTKDOC_CFLAGS for
+       docs/Makefile.am). Also some cosmetic line wrapping and
+       reindentation.
+
+ src/Makefile.am | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+commit 80634a30b9abdf575320bc6fdacdba4e1ea3903d
+Author: Manish Singh <yosh@gimp.org>
+Date:  Mon Oct 14 22:50:48 2002 +0000
+
+    Get rid of unnecessary casts for g_object_{ref,unref}
+
+    Mon Oct 14 15:39:41 2002  Manish Singh  <yosh@gimp.org>
+
+           * pango/pango-context.c pango/pango-layout.c pango/pangoft2.c
+           pango/pangowin32-fontmap.c pango/pangowin32.c
+           pango/pangox-fontmap.c
+           pango/pangox.c pango/pangoxft-font.c pango/pangoxft-fontmap.c
+           pango/testfonts.c pango/opentype/pango-ot-ruleset.c:
+           Get rid of unnecessary casts for g_object_{ref,unref}
+
+ src/pango-ot-ruleset.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+commit 741993e0b15b4df86d76fa8df5055bd764c42c71
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sun Sep 29 19:06:58 2002 +0000
+
+    ligatures can be also used in MarkBasePos lookups. (2001-03-17 Werner
+
+    Sun Sep 29 14:55:36 2002  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgpos.c: ligatures can be also used in
+           MarkBasePos lookups. (2001-03-17  Werner Lemberg)
+
+ src/ftxgpos.c | 13 ++++++++++---
+ 1 file changed, 10 insertions(+), 3 deletions(-)
+
+commit a35dc445e86ab433fe9f3937c95f2c1f18f58110
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Sun Sep 29 19:05:01 2002 +0000
+
+    Start of merges from freetype1 of OpenType fixes.
+
+    Sun Sep 29 14:51:25 2002  Owen Taylor  <otaylor@redhat.com>
+
+           Start of merges from freetype1 of OpenType fixes.
+
+           (2001-03-17  Werner Lemberg)
+
+           * pango/opentype/ftxgdef.c pango/opentype/ftxgpos.c
+           pango/opentype/ftxg\sub.c:
+           More fixes for special marks.
+
+ src/ftxgdef.c | 13 ++++++++-----
+ src/ftxgpos.c |  6 +++---
+ src/ftxgsub.c |  4 ++--
+ 3 files changed, 13 insertions(+), 10 deletions(-)
+
+commit 5c53f14f371b349da65dfa3a848b17ab89ce3ba8
+Author: Tor Lillqvist <tml@iki.fi>
+Date:  Mon Sep 23 21:45:31 2002 +0000
+
+    Remove. Not used. (A static library is built here. Exported entries
+    are in
+
+    2002-09-24 Tor Lillqvist  <tml@iki.fi>
+
+       * pango/opentype/pango-ot.def: Remove. Not used. (A static library
+       is built here. Exported entries are in ../pangoft2.def.)
+
+       * pango/opentype/Makefile.am (EXTRA_DIST): Remove from here, too.
+
+ src/Makefile.am  |  3 +--
+ src/pango-ot.def | 50 --------------------------------------------------
+ 2 files changed, 1 insertion(+), 52 deletions(-)
+
+commit 35e4593ccd9ea5ed78f1e6f32f04b3a13cee0145
+Author: Tor Lillqvist <tml@iki.fi>
+Date:  Mon Sep 23 21:19:30 2002 +0000
+
+    pango/makefile.mingw.in pango/mini-fribidi/makefile.mingw Remove. Not
+
+    2002-09-23 Tor Lillqvist  <tml@iki.fi>
+
+       * pango/makefile.mingw.in
+       * pango/mini-fribidi/makefile.mingw
+       * pango/opentype/makefile.mingw.in: Remove. Not maintained.
+
+       * pango/Makefile.am (EXTRA_DIST)
+       * pango/mini-fribidi/Makefile.am (EXTRA_DIST)
+       * pango/opentype/Makefile.am (EXTRA_DIST): Remove
+       makefile.mingw(.in) from here, too.
+
+       * configure.in (AC_OUTPUT): Don't try to output above removed
+       files.
+
+ src/Makefile.am       |  3 +--
+ src/makefile.mingw.in | 43 -------------------------------------------
+ 2 files changed, 1 insertion(+), 45 deletions(-)
+
+commit fb279cb0bf676bb1d225e6a296282523d839074d
+Author: Eric Mader <emader@src.gnome.org>
+Date:  Mon Sep 9 18:11:55 2002 +0000
+
+    Correctly handle back, new_advance.
+
+ src/pango-ot-ruleset.c | 25 ++++++++++++++++---------
+ 1 file changed, 16 insertions(+), 9 deletions(-)
+
+commit c880e814a50100577811a8a51bc06b4275c55a7e
+Author: Eric Mader <emader@src.gnome.org>
+Date:  Fri Sep 6 22:45:23 2002 +0000
+
+    Don't fail when reading an empty script.
+
+ src/ftxopen.c | 36 +++++++++++++++++++++++++-----------
+ src/ftxopen.h |  1 +
+ 2 files changed, 26 insertions(+), 11 deletions(-)
+
+commit 441e7d0292bf1a06396daac80fcbad23976a824d
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Wed Aug 7 17:01:52 2002 +0000
+
+    Offset to MarkAttachClassDef is offset to table, not offset to
+    offset to
+
+    Wed Aug  7 12:32:39 2002  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgsub.c (TT_Load_GSUB_Table):
+           Offset to MarkAttachClassDef is offset to table,
+           not offset to offset to table.
+
+           * pango/opentype/ftxopen.c (Get_Device): Handle
+           NULL device tables which we represent with
+           d->DeltaValue == NULL.
+
+ src/ftxgsub.c | 13 -------------
+ src/ftxopen.c |  2 +-
+ 2 files changed, 1 insertion(+), 14 deletions(-)
+
+commit 48a16fa8090b67b046b2bb686ff4f6f038a2b8e8
+Author: Owen Taylor <otaylor@src.gnome.org>
+Date:  Tue Jun 4 00:20:51 2002 +0000
+
+    on Jun  3 18:56:09 2002  Owen Taylor  <otaylor@redhat.com>
+
+           Xft2 and fontconfig conversion, based largely on a patch
+           from Keith Packard.
+
+           * configure.in acconfig.h: Add checks for fontconfig, switch
+           Xft checks to switch for Xft2 using pkg-config.
+
+           * pangoxft.pc.in pangoxft.pc.in
+           modules/{arabic,basic,hebrew,indic,tamil}/Makefile.am
+           pango/Makefile.am: Reflect new Xft/fontconfig dependencies.
+
+           * pango/pangoxft-private.h pango/pangoxft-fontmap.c
+           modules/arabic/arabic-xft.c modules/indic/indic-xft.c:
+           Switch over to using Xft2 and fontconfig.
+
+           * pango/pangoft2.c pango/pangoft2-fontmap.c
+           pango/pangoft2-private.h
+           pango/pango/Makefile.am: Remove usage of mini-xft in
+           favor of fontconfig.
+
+           * pango/pango-ot.h pango/opentype/pango-ot-info.c
+           pango/pangoxft.h
+           modules/arabic/arabic-{xft,ft2}.c modules/indic/indic-xft.c:
+           Attach OpenType information directly to the FT_Face
+           structure using FT_Generic.
+
+           * modules/tamil/Makefile.am modules/tamil/tamil-xft.c
+           configure.in: Remove this module, no longer needed.
+
+           * pango/pangoxft-font.c (pango_xft_real_render): Coalesce
+           calls to Xft rendering functions.
+
+ src/pango-ot-info.c | 29 +++++++++++++++++++++++------
+ 1 file changed, 23 insertions(+), 6 deletions(-)
+
+commit 9df9af0b3615dc6a52d784233a3410a9080d9369
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Fri May 10 18:44:47 2002 +0000
+
+    Fix acess outside of a loaded frame and some memory leaks on failure.
+
+    Fri May 10 14:41:27 2002  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxgdef.c (TT_Load_GDEF_Table): Fix acess
+           outside of a loaded frame and some memory leaks
+           on failure.
+
+ src/ftxgdef.c | 12 ++++++++++--
+ 1 file changed, 10 insertions(+), 2 deletions(-)
+
+commit a63dbbbeeb91ebf4ded2fc788f5810a3bd1e14fe
+Author: Eric Mader <mader@jtcsv.com>
+Date:  Tue May 7 20:39:14 2002 +0000
+
+    Add modules modules/indic/indic-xft.c, indic-ot.c, indic-ot.h,
+
+    Mon May 06 15:07:39 2002 Eric Mader <mader@jtcsv.com>
+       * Add modules modules/indic/indic-xft.c, indic-ot.c, indic-ot.h,
+       indic-ot-class-tables.c
+
+       * pango/opentype/ftxgdef.c: Compute full offset for mark
+       attachment class table
+
+       * pango/opentype/ftxgpos.c: Only return TTO_Err_Not_Covered if
+       nothing matches
+
+       * pango/opentype/pango-ot-ruleset.c: enable GPOS processing
+
+ src/ftxgdef.c         | 10 ++++++++--
+ src/ftxgpos.c         | 33 ++++++++++++++-------------------
+ src/pango-ot-ruleset.c | 35 ++++++++++++++++++++++++++++++++++-
+ 3 files changed, 56 insertions(+), 22 deletions(-)
+
+commit cf00f8217c9dfcf50febbb06fad245d489a0abe6
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Tue Apr 23 20:20:29 2002 +0000
+
+    Add compatibility defines for changes in FreeType 2.1.0.
+
+    Tue Apr 23 16:15:07 2002  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/fterrcompat.h: Add compatibility
+           defines for changes in FreeType 2.1.0.
+
+ src/fterrcompat.h | 39 +++++++++++++++++++++++++++++++++++++--
+ 1 file changed, 37 insertions(+), 2 deletions(-)
+
+commit 6b1b04e3736fdca774052ac3cfbe9f027548c29d
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Fri Mar 15 06:46:05 2002 +0000
+
+    In Load_ChainContextSubst2, handle the case where an empty class
+
+    Fri Mar 15 01:35:56 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * pango/opentype/ftxgsub.c pango/opentype/ftxopen.c
+       pango/opentype/ftxopenf.h: In Load_ChainContextSubst2,
+       handle the case where an empty class definition
+       is represented by an offset of 0.
+
+       * pango/opentype/ftxgpos.c: Same for Load_ChainContextPos2.
+
+       * pango/opentype/{ftxopen.c,ftxgpos.c,ftxgsub.c,ftgdef.c}:
+       Fix pervasive bug where on cleanups on failure of loading
+       an array element, all array elements were freed, not
+       just the ones that had been succesfully loaded.
+
+ src/ftxgdef.c |  24 +++---
+ src/ftxgpos.c | 259
+ ++++++++++++++++++++++++++++++++++++---------------------
+ src/ftxgsub.c | 159 ++++++++++++++++++++---------------
+ src/ftxopen.c |  53 ++++++++----
+ src/ftxopenf.h |   2 +
+ 5 files changed, 306 insertions(+), 191 deletions(-)
+
+commit 6050933f336f43453e35246525cfec362bd23acb
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Fri Mar 15 04:22:14 2002 +0000
+
+    Uncomment GPOS parts.
+
+    Thu Mar 14 23:05:18 2002  Owen Taylor  <otaylor@redhat.com>
+
+           * pango/opentype/ftxopen.c: Uncomment GPOS parts.
+
+           * pango/opentype/disasm.c: Start adding some GPOS
+           dumping.
+
+ src/disasm.c  | 146
+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/ftxopen.c |  20 ++++----
+ 2 files changed, 154 insertions(+), 12 deletions(-)
+
+commit 973bd60a2526666f68138255b8536d1eaee3c2c2
+Author: Sebastian Wilhelmi <wilhelmi@src.gnome.org>
+Date:  Thu Dec 13 17:44:46 2001 +0000
+
+    Resuming aborted commit
+
+
+    Resuming aborted commit
+
+ src/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 6926ca94255e5d52d99d0d64d126165fc725432d
+Author: Matthias Clasen <matthiasc@src.gnome.org>
+Date:  Tue Oct 30 22:09:20 2001 +0000
+
+    Remove declarations of unimplemented functions
+
+           * docs/pango-sections.txt, pango/pango-ot.h: Remove
+           declarations
+           of unimplemented functions pango_ot_ruleset_set_glyph_loader
+           and
+           pango_ot_ruleset_set_alternate_func and the related typedefs
+           PangoOTGlyphLoader and PangoOTAlternateFunc.
+
+           * pango/opentype/pango-ot-info.c,
+           pango/opentype/pango-ot-ruleset.c: Documentation updates.
+
+ src/pango-ot-info.c   | 76
+ ++++++++++++++++++++++++++++++++++++++++++++++++++
+ src/pango-ot-ruleset.c | 27 ++++++++++++++++++
+ 2 files changed, 103 insertions(+)
+
+commit 87a475c09f6b9b391bca37de47a303a62a397b83
+Author: Havoc Pennington <hp@redhat.com>
+Date:  Wed Sep 19 21:20:36 2001 +0000
+
+    header to abstract the difference between FreeType 2.0.3 and 2.0.4
+    error
+
+    2001-09-19 Havoc Pennington  <hp@redhat.com>
+
+       * pango/opentype/fterrcompat.h: header to abstract the difference
+       between FreeType 2.0.3 and 2.0.4 error codes, based on the
+       configure check.
+
+       * configure.in: check for the tterrors.h header in FreeType 2.0.3,
+       and define HAVE_FREETYPE_2_0_3 if we have it
+
+ src/Makefile.am     | 1 +
+ src/fterrcompat.h   | 16 ++++++++++++++++
+ src/ftxgdef.c      |  3 ++-
+ src/ftxgpos.c      |  3 ++-
+ src/ftxgsub.c      |  3 ++-
+ src/ftxopen.c      |  3 ++-
+ src/pango-ot-info.c | 2 +-
+ 7 files changed, 26 insertions(+), 5 deletions(-)
+
+commit 9c37226efe2489b4cf9618ec98f581c998aaf9e4
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Tue Sep 18 20:05:20 2001 +0000
+
+    Up to 0.19.
+
+    Tue Sep 18 15:47:08 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * configure.in (PANGO_MINOR_VERSION): Up to 0.19.
+
+       * pango/pango-font.h pango/pango-fontmap.[ch] pango/fonts.c
+       pango/pangoxft-fontmap.c pango/pangoft-fontmap.c
+       pango/pango-context.[ch]
+       pango/pangox-fontmap.c: Add new PangoFontFace and PangoFontFamily
+       object types, and change the font listing API to list faces and
+       families, instead of face names and font descriptions.
+
+       * pango/pango-font.h pango/fonts.c: Make PangoFontDescription
+       an opaque heap-allocated structure, add accessors and
+       convenience functions.
+
+       * pango/pango-font.h pango/pango-private.h: Make PangoFontMetrics
+       heap allocated, protect the structure definition with
+       #ifdef PANGO_ENABLE_BACKEND, and add getters for the fields.
+
+       * pango/pango-attributes.[ch] ( pango_attr_iterator_get_font):
+       instead of providing a base font description and one to fill
+       in, provide a single font description to modify based on
+       the attributes.
+
+       * pango/pango-attributes.[ch]: Fix PangoAttrFontDesc to have
+       a PangoFontDescription by reference, not by value.
+
+       * pango/pango-utils.[ch]: make pango_parse_style() and friends
+       take pointers to individual enumerations instead of to a
+       PangoFontDescription structure.
+
+       * pango/*.c: Fix for the PangoFontDescription and PangoFontMetrics
+       changes.
+
+           * pango/pango-{break,engine,indic,ot,xft}.h pango/Makefile.am
+       pango/opentype/Makefile.am: Protect portions with
+       PANGO_ENABLE_ENGINE to shrink the public API.
+
+       * modules/*/Makefile.am: -DPANGO_ENABLE_ENGINE.
+
+       * pango/{pangox.h,pangox-private.h} modules/basic/basic-x.c: Move
+       pango_x_font_get_unknown_glyph() into public header since it is
+       used from modules.
+
+       * pango/pango-{context,font,fontmap,modules.utils}.h
+       pango/Makefile.am:
+       Protect portions with PANGO_ENABLE_BACKEND to shrink the
+       public API.
+
+       * pango/*.h: Use G_BEGIN/END_DECLS
+
+       * examples/viewer-qt.[cc,h]: Fix for changes to font listing API,
+       PangoFontDescription.
+
+       * pango/pango-indic.h modules/indic/*: Since we install this
+       header fix it up to Pango conventions, namespece
+       ZERO_WIDTH_JOINER, ZERO_WIDTH_NON_JOINER.
+
+       * docs/pango-sections.txt: Updated.
+
+ src/Makefile.am | 1 +
+ 1 file changed, 1 insertion(+)
+
+commit 7dd0838863f65a8ff2e27d12679c9a289a76aec1
+Author: Darin Adler <darin@src.gnome.org>
+Date:  Thu Jul 12 16:34:40 2001 +0000
+
+    Remove stray semicolon.
+
+       * modules/arabic/arabic-x.c: (arabic_engine_shape): Remove stray
+       semicolon.
+
+       * modules/arabic/arconv.h:
+       * modules/arabic/arconv.c: (shape), (doublelig), (arabic_reshape):
+       Use long* instead of int* for parameter to match what's passed in.
+
+       * modules/indic/bengali-x.c: Add missing <string.h> include.
+       (pango_indic_make_ligs): Use local variable that was added but not
+       ever used.
+       (pango_indic_engine_shape): Remove unused locals.
+
+       * modules/indic/devanagari-x.c: Add missing <string.h> include.
+       (pango_indic_engine_shape): Remove unused local.
+
+       * modules/indic/gujarati-x.c: Add missing <string.h> include.
+       (pango_indic_engine_shape): Remove unused local
+
+       * modules/tamil/tamil-x.c: (tamil_engine_shape): Initialize a
+       variable to quiet the compiler's unused warning.
+
+       * pango/.cvsignore: Ignore more generated files.
+
+       * pango/opentype/ftxgpos.c: (Get_Anchor): Add code to set up the
+       ap variable. The old code would just use the uninitialized value.
+
+       * pango/opentype/ftxopen.c: (Load_Coverage): Remove unused local.
+
+       * pango/opentype/pango-ot-ruleset.c: (pango_ot_ruleset_shape):
+       Remove unused local.
+
+       * pango/pango-attributes.c: (pango_attr_list_get_type),
+       (pango_color_get_type): Add needed function type casts (just
+       warnings under gcc, but could be errors in other compilers).
+
+       * pango/pangoxft-font.c: (pango_xft_font_get_metrics),
+       (pango_xft_font_get_coverage), (pango_xft_get_shaper_map),
+       (pango_xft_font_find_shaper): Switch from lang char* to
+       PangoLanguage*. The code was still compiling, but would not have
+       worked.
+
+ src/ftxgpos.c         | 2 ++
+ src/ftxopen.c         | 1 -
+ src/pango-ot-ruleset.c | 1 -
+ 3 files changed, 2 insertions(+), 2 deletions(-)
+
+commit 68f8a64307441bd3b3d45971ac4dc93f63dedfe8
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Fri May 18 16:04:40 2001 +0000
+
+    Use ISO C99 varargs when available.
+
+    Fri May 18 11:30:57 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * pango/opentype/disasm.c: Use ISO C99 varargs when
+       available.
+
+    Thu May 17 11:16:23 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * pango/mapping.c: Fixup docs, remove some FIXMEs that are
+       no longer applicable.
+
+       * pango/pango-layout.c: Move by graphemes, not characters.
+
+       * pango/pango-layout.c (pango_layout_line_x_to_index):
+       Position at the closest grapheme boundary, not at character
+       boundaries.
+
+       * pango/pango-layout.c (pango_layout_line_index_to_x):
+       Return positions of grapheme boundaries, not character
+       boundaries.
+
+ src/Makefile.am | 2 ++
+ src/disasm.c   | 5 +++++
+ 2 files changed, 7 insertions(+)
+
+commit 89eb36ebc6591025c063cb98f0e1b3badde73e9e
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Tue Apr 24 15:47:22 2001 +0000
+
+    Remove excess call to DONE_Stream left over from conversion from FT1.
+
+    Tue Apr 24 11:45:55 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * pango/opentype/ftxgdef.c (TT_Load_GDEF_Table): Remove
+       excess call to DONE_Stream left over from conversion
+       from FT1. (reported by Michael Jansson)
+
+ src/ftxgdef.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+commit c61a730aaebec751831f8423894de5f4b539d0ec
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Tue Apr 3 19:07:36 2001 +0000
+
+    Release 0.14
+
+    Tue Apr  3 15:05:19 2001  Owen Taylor  <otaylor@redhat.com>
+
+       * Release 0.14
+
+       * NEWS: updated.
+
+           * pango/pango/opentype/Makefile.am: make dist fixes.
+
+       * configure.in (PANGO_MINOR_VERSION): Up to 0.14
+
+ src/Makefile.am | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+commit 405b878923ed219617c6f643a9aec06175223d16
+Author: Tor Lillqvist <tml@iki.fi>
+Date:  Thu Dec 21 19:55:23 2000 +0000
+
+    Only a script engine here.
+
+    2000-12-21 Tor Lillqvist  <tml@iki.fi>
+
+       * modules/basic/basic-win32.c (script_engine_load): Only a script
+       engine here.
+
+       * pango/makefile.mingw.in: Add the built pango-enum-types.[ch].
+
+       * pango/pango.def
+       * pango/pangoft2.def: Update.
+
+       * pango/opentype/pango-ot.def
+       * pango/opentype/makefile.mingw.in: New files.
+
+       * pango/opentype/Makefile.am (EXTRA_DIST): Add them.
+
+       * configure.in (included_modules): Generate
+       pango/opentype/makefile.mingw.
+
+ src/Makefile.am       |  4 +++-
+ src/makefile.mingw.in | 43 +++++++++++++++++++++++++++++++++++++++++++
+ src/pango-ot.def      | 50
+ ++++++++++++++++++++++++++++++++++++++++++++++++++
+ 3 files changed, 96 insertions(+), 1 deletion(-)
+
+commit 80a15829135065e16ce5b129c715d10d14b829ba
+Author: Owen Taylor <otaylor@redhat.com>
+Date:  Wed Dec 20 04:41:36 2000 +0000
+
+    Since Xft may only be available statically without shlib deps,
+    check for
+
+    Tue Dec 19 22:47:16 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * configure.in pango-config.in pangoxft.pc.in
+       modules/basic/Makefile.am: Since Xft may only be available
+       statically without shlib deps, check for FreeType libs explicitly
+       and include them when linking, otherwise things won't work. Also,
+       define FREETYPE_CFLAGS from freetype-config --cflags.
+
+       * modules/basic/basic-xft.c pango/pangoxft-font{,map}.c: Fool
+       Xft into not converting glyph indices by loading the
+       face unencoded then calling FT_Set_Charmap ourselves.
+
+       * pango/Makefile.am pango/pango-ot.h pango/opentype/* :Add start
+       of opentype handling - most of the actually meat of the code here
+       is the OpenType layout code from FreeType 1 ported to freetype2
+       and adapted slighlty for our purposes.  Also, includes a
+       incomplete OpenType-table-dumping code useful for figuring
+       out what is going on.
+
+       * pango/pangoxft.h pango/pangoxft-font.h: Add calls for
+       getting FT_Face and PangoOTInfo from PangoXftFont.
+
+       * modules/arabic/{Makefile.am,arabic-ot.[ch],arabic-xft.c}:
+       Initial support for rendering Arabic with OpenType fonts.
+
+ src/.cvsignore                |    8 +
+ src/FT-license.txt    |  158 ++
+ src/Makefile.am       |   39 +
+ src/README            |   36 +
+ src/disasm.c          |  317 +++
+ src/disasm.h          |   26 +
+ src/ftxgdef.c         | 1155 +++++++++
+ src/ftxgdef.h         |  220 ++
+ src/ftxgpos.c         | 6222
+ ++++++++++++++++++++++++++++++++++++++++++++++++
+ src/ftxgpos.h         |  858 +++++++
+ src/ftxgsub.c         | 4531 +++++++++++++++++++++++++++++++++++
+ src/ftxgsub.h         |  612 +++++
+ src/ftxopen.c         | 1467 ++++++++++++
+ src/ftxopen.h         |  308 +++
+ src/ftxopenf.h                |  161 ++
+ src/ottest.c          |  265 +++
+ src/pango-ot-info.c   |  438 ++++
+ src/pango-ot-private.h |   98 +
+ src/pango-ot-ruleset.c |  232 ++
+ 19 files changed, 17151 insertions(+)
diff --git a/INSTALL b/INSTALL
new file mode 100644 (file)
index 0000000..007e939
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,370 @@
+Installation Instructions
+*************************
+
+Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
+Inc.
+
+   Copying and distribution of this file, with or without modification,
+are permitted in any medium without royalty provided the copyright
+notice and this notice are preserved.  This file is offered as-is,
+without warranty of any kind.
+
+Basic Installation
+==================
+
+   Briefly, the shell commands `./configure; make; make install' should
+configure, build, and install this package.  The following
+more-detailed instructions are generic; see the `README' file for
+instructions specific to this package.  Some packages provide this
+`INSTALL' file but do not implement all of the features documented
+below.  The lack of an optional feature in a given package is not
+necessarily a bug.  More recommendations for GNU packages can be found
+in *note Makefile Conventions: (standards)Makefile Conventions.
+
+   The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation.  It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions.  Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, and a
+file `config.log' containing compiler output (useful mainly for
+debugging `configure').
+
+   It can also use an optional file (typically called `config.cache'
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
+the results of its tests to speed up reconfiguring.  Caching is
+disabled by default to prevent problems with accidental use of stale
+cache files.
+
+   If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release.  If you are using the cache, and at
+some point `config.cache' contains results you don't want to keep, you
+may remove or edit it.
+
+   The file `configure.ac' (or `configure.in') is used to create
+`configure' by a program called `autoconf'.  You need `configure.ac' if
+you want to change it or regenerate `configure' using a newer version
+of `autoconf'.
+
+   The simplest way to compile this package is:
+
+  1. `cd' to the directory containing the package's source code and type
+     `./configure' to configure the package for your system.
+
+     Running `configure' might take a while.  While running, it prints
+     some messages telling which features it is checking for.
+
+  2. Type `make' to compile the package.
+
+  3. Optionally, type `make check' to run any self-tests that come with
+     the package, generally using the just-built uninstalled binaries.
+
+  4. Type `make install' to install the programs and any data files and
+     documentation.  When installing into a prefix owned by root, it is
+     recommended that the package be configured and built as a regular
+     user, and only the `make install' phase executed with root
+     privileges.
+
+  5. Optionally, type `make installcheck' to repeat any self-tests, but
+     this time using the binaries in their final installed location.
+     This target does not install anything.  Running this target as a
+     regular user, particularly if the prior `make install' required
+     root privileges, verifies that the installation completed
+     correctly.
+
+  6. You can remove the program binaries and object files from the
+     source code directory by typing `make clean'.  To also remove the
+     files that `configure' created (so you can compile the package for
+     a different kind of computer), type `make distclean'.  There is
+     also a `make maintainer-clean' target, but that is intended mainly
+     for the package's developers.  If you use it, you may have to get
+     all sorts of other programs in order to regenerate files that came
+     with the distribution.
+
+  7. Often, you can also type `make uninstall' to remove the installed
+     files again.  In practice, not all packages have tested that
+     uninstallation works correctly, even though it is required by the
+     GNU Coding Standards.
+
+  8. Some packages, particularly those that use Automake, provide `make
+     distcheck', which can by used by developers to test that all other
+     targets like `make install' and `make uninstall' work correctly.
+     This target is generally not run by end users.
+
+Compilers and Options
+=====================
+
+   Some systems require unusual options for compilation or linking that
+the `configure' script does not know about.  Run `./configure --help'
+for details on some of the pertinent environment variables.
+
+   You can give `configure' initial values for configuration parameters
+by setting variables in the command line or in the environment.  Here
+is an example:
+
+     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
+
+   *Note Defining Variables::, for more details.
+
+Compiling For Multiple Architectures
+====================================
+
+   You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory.  To do this, you can use GNU `make'.  `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script.  `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.  This
+is known as a "VPATH" build.
+
+   With a non-GNU `make', it is safer to compile the package for one
+architecture at a time in the source code directory.  After you have
+installed the package for one architecture, use `make distclean' before
+reconfiguring for another architecture.
+
+   On MacOS X 10.5 and later systems, you can create libraries and
+executables that work on multiple system types--known as "fat" or
+"universal" binaries--by specifying multiple `-arch' options to the
+compiler but only a single `-arch' option to the preprocessor.  Like
+this:
+
+     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
+                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
+                 CPP="gcc -E" CXXCPP="g++ -E"
+
+   This is not guaranteed to produce working output in all cases, you
+may have to build one architecture at a time and combine the results
+using the `lipo' tool if you have problems.
+
+Installation Names
+==================
+
+   By default, `make install' installs the package's commands under
+`/usr/local/bin', include files under `/usr/local/include', etc.  You
+can specify an installation prefix other than `/usr/local' by giving
+`configure' the option `--prefix=PREFIX', where PREFIX must be an
+absolute file name.
+
+   You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files.  If you
+pass the option `--exec-prefix=PREFIX' to `configure', the package uses
+PREFIX as the prefix for installing programs and libraries.
+Documentation and other data files still use the regular prefix.
+
+   In addition, if you use an unusual directory layout you can give
+options like `--bindir=DIR' to specify different values for particular
+kinds of files.  Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them.  In general, the
+default for these options is expressed in terms of `${prefix}', so that
+specifying just `--prefix' will affect all of the other directory
+specifications that were not explicitly provided.
+
+   The most portable way to affect installation locations is to pass the
+correct locations to `configure'; however, many packages provide one or
+both of the following shortcuts of passing variable assignments to the
+`make install' command line to change installation locations without
+having to reconfigure or recompile.
+
+   The first method involves providing an override variable for each
+affected directory.  For example, `make install
+prefix=/alternate/directory' will choose an alternate location for all
+directory configuration variables that were expressed in terms of
+`${prefix}'.  Any directories that were specified during `configure',
+but not in terms of `${prefix}', must each be overridden at install
+time for the entire installation to be relocated.  The approach of
+makefile variable overrides for each directory variable is required by
+the GNU Coding Standards, and ideally causes no recompilation.
+However, some platforms have known limitations with the semantics of
+shared libraries that end up requiring recompilation when using this
+method, particularly noticeable in packages that use GNU Libtool.
+
+   The second method involves providing the `DESTDIR' variable.  For
+example, `make install DESTDIR=/alternate/directory' will prepend
+`/alternate/directory' before all installation names.  The approach of
+`DESTDIR' overrides is not required by the GNU Coding Standards, and
+does not work on platforms that have drive letters.  On the other hand,
+it does better at avoiding recompilation issues, and works well even
+when some directory options were not specified in terms of `${prefix}'
+at `configure' time.
+
+Optional Features
+=================
+
+   If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+   Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System).  The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+   For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+   Some packages offer the ability to configure how verbose the
+execution of `make' will be.  For these packages, running `./configure
+--enable-silent-rules' sets the default to minimal output, which can be
+overridden with `make V=1'; while running `./configure
+--disable-silent-rules' sets the default to verbose, which can be
+overridden with `make V=0'.
+
+Particular systems
+==================
+
+   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
+CC is not installed, it is recommended to use the following options in
+order to use an ANSI C compiler:
+
+     ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
+
+and if that doesn't work, install pre-built binaries of GCC for HP-UX.
+
+   HP-UX `make' updates targets which have the same time stamps as
+their prerequisites, which makes it generally unusable when shipped
+generated files such as `configure' are involved.  Use GNU `make'
+instead.
+
+   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
+parse its `<wchar.h>' header file.  The option `-nodtk' can be used as
+a workaround.  If GNU CC is not installed, it is therefore recommended
+to try
+
+     ./configure CC="cc"
+
+and if that doesn't work, try
+
+     ./configure CC="cc -nodtk"
+
+   On Solaris, don't put `/usr/ucb' early in your `PATH'.  This
+directory contains several dysfunctional programs; working variants of
+these programs are available in `/usr/bin'.  So, if you need `/usr/ucb'
+in your `PATH', put it _after_ `/usr/bin'.
+
+   On Haiku, software installed for all users goes in `/boot/common',
+not `/usr/local'.  It is recommended to use the following options:
+
+     ./configure --prefix=/boot/common
+
+Specifying the System Type
+==========================
+
+   There may be some features `configure' cannot figure out
+automatically, but needs to determine by the type of machine the package
+will run on.  Usually, assuming the package is built to be run on the
+_same_ architectures, `configure' can figure that out, but if it prints
+a message saying it cannot guess the machine type, give it the
+`--build=TYPE' option.  TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name which has the form:
+
+     CPU-COMPANY-SYSTEM
+
+where SYSTEM can have one of these forms:
+
+     OS
+     KERNEL-OS
+
+   See the file `config.sub' for the possible values of each field.  If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the machine type.
+
+   If you are _building_ compiler tools for cross-compiling, you should
+use the option `--target=TYPE' to select the type of system they will
+produce code for.
+
+   If you want to _use_ a cross compiler, that generates code for a
+platform different from the build platform, you should specify the
+"host" platform (i.e., that on which the generated programs will
+eventually be run) with `--host=TYPE'.
+
+Sharing Defaults
+================
+
+   If you want to set default values for `configure' scripts to share,
+you can create a site shell script called `config.site' that gives
+default values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists.  Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Defining Variables
+==================
+
+   Variables not defined in a site shell script can be set in the
+environment passed to `configure'.  However, some packages may run
+configure again during the build, and the customized values of these
+variables may be lost.  In order to avoid this problem, you should set
+them in the `configure' command line, using `VAR=value'.  For example:
+
+     ./configure CC=/usr/local2/bin/gcc
+
+causes the specified `gcc' to be used as the C compiler (unless it is
+overridden in the site shell script).
+
+Unfortunately, this technique does not work for `CONFIG_SHELL' due to
+an Autoconf limitation.  Until the limitation is lifted, you can use
+this workaround:
+
+     CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
+
+`configure' Invocation
+======================
+
+   `configure' recognizes the following options to control how it
+operates.
+
+`--help'
+`-h'
+     Print a summary of all of the options to `configure', and exit.
+
+`--help=short'
+`--help=recursive'
+     Print a summary of the options unique to this package's
+     `configure', and exit.  The `short' variant lists options used
+     only in the top level, while the `recursive' variant lists options
+     also present in any nested packages.
+
+`--version'
+`-V'
+     Print the version of Autoconf used to generate the `configure'
+     script, and exit.
+
+`--cache-file=FILE'
+     Enable the cache: use and save the results of the tests in FILE,
+     traditionally `config.cache'.  FILE defaults to `/dev/null' to
+     disable caching.
+
+`--config-cache'
+`-C'
+     Alias for `--cache-file=config.cache'.
+
+`--quiet'
+`--silent'
+`-q'
+     Do not print messages saying which checks are being made.  To
+     suppress all normal output, redirect it to `/dev/null' (any error
+     messages will still be shown).
+
+`--srcdir=DIR'
+     Look for the package's source code in directory DIR.  Usually
+     `configure' can determine that directory automatically.
+
+`--prefix=DIR'
+     Use DIR as the installation prefix.  *note Installation Names::
+     for more details, including other options available for fine-tuning
+     the installation locations.
+
+`--no-create'
+`-n'
+     Run the configure checks, but stop before creating any output
+     files.
+
+`configure' also accepts some other, not widely useful, options.  Run
+`configure --help' for more details.
diff --git a/Makefile.am b/Makefile.am
new file mode 100644 (file)
index 0000000..fa87114
--- /dev/null
@@ -0,0 +1,79 @@
+# Process this file with automake to produce Makefile.in
+
+NULL =
+
+ACLOCAL_AMFLAGS = -I m4
+
+SUBDIRS = src util test docs
+
+EXTRA_DIST = \
+       autogen.sh \
+       harfbuzz.doap \
+       Android.mk \
+       $(NULL)
+
+MAINTAINERCLEANFILES = \
+       $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
+       $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
+       $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
+       $(srcdir)/INSTALL \
+       $(srcdir)/ChangeLog \
+       $(NULL)
+
+
+#
+# ChangeLog generation
+#
+CHANGELOG_RANGE =
+ChangeLog: $(srcdir)/ChangeLog
+$(srcdir)/ChangeLog:
+       $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
+         (GIT_DIR=$(top_srcdir)/.git \
+          $(GIT) log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \
+         && mv -f $@.tmp "$(srcdir)/ChangeLog" \
+         || ($(RM) $@.tmp; \
+             echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
+             (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
+       else \
+         test -f $@ || \
+         (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
+         echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
+       fi
+.PHONY: ChangeLog $(srcdir)/ChangeLog
+
+
+#
+# Release engineering
+#
+
+DISTCHECK_CONFIGURE_FLAGS = \
+       --enable-gtk-doc \
+       --disable-doc-cross-references \
+       --with-gobject \
+       --enable-introspection \
+       $(NULL)
+
+# TODO: Copy infrastructure from cairo
+
+# TAR_OPTIONS is not set as env var for 'make dist'.  How to fix that?
+TAR_OPTIONS = --owner=0 --group=0
+
+dist-hook: dist-clear-sticky-bits
+# Clean up any sticky bits we may inherit from parent dir
+dist-clear-sticky-bits:
+       chmod -R a-s $(distdir)
+
+
+tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2
+sha256_file = $(tar_file).sha256
+gpg_file = $(sha256_file).asc
+$(sha256_file): $(tar_file)
+       sha256sum $^ > $@
+$(gpg_file): $(sha256_file)
+       @echo "Please enter your GPG password to sign the checksum."
+       gpg --armor --sign $^
+
+release-files: $(tar_file) $(sha256_file) $(gpg_file)
+
+
+-include $(top_srcdir)/git.mk
diff --git a/Makefile.in b/Makefile.in
new file mode 100644 (file)
index 0000000..61de622
--- /dev/null
@@ -0,0 +1,929 @@
+# Makefile.in generated by automake 1.14 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# Process this file with automake to produce Makefile.in
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \  ]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs  ]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = .
+DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog THANKS \
+       $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
+       $(top_srcdir)/configure $(am__configure_deps) \
+       $(srcdir)/config.h.in COPYING TODO ar-lib compile config.guess \
+       config.sub depcomp install-sh missing ltmain.sh
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ax_pthread.m4 \
+       $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
+       $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+       $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+       $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+       $(ACLOCAL_M4)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno config.status.lineno
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
+       ctags-recursive dvi-recursive html-recursive info-recursive \
+       install-data-recursive install-dvi-recursive \
+       install-exec-recursive install-html-recursive \
+       install-info-recursive install-pdf-recursive \
+       install-ps-recursive install-recursive installcheck-recursive \
+       installdirs-recursive pdf-recursive ps-recursive \
+       tags-recursive uninstall-recursive
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive        \
+  distclean-recursive maintainer-clean-recursive
+am__recursive_targets = \
+  $(RECURSIVE_TARGETS) \
+  $(RECURSIVE_CLEAN_TARGETS) \
+  $(am__extra_recursive_targets)
+AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
+       cscope distdir dist dist-all distcheck
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
+       $(LISP)config.h.in
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates.  Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+  BEGIN { nonempty = 0; } \
+  { items[$$0] = 1; nonempty = 1; } \
+  END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique.  This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+  list='$(am__tagged_files)'; \
+  unique=`for i in $$list; do \
+    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+  done | $(am__uniquify_input)`
+ETAGS = etags
+CTAGS = ctags
+CSCOPE = cscope
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+am__remove_distdir = \
+  if test -d "$(distdir)"; then \
+    find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
+      && rm -rf "$(distdir)" \
+      || { sleep 5 && rm -rf "$(distdir)"; }; \
+  else :; fi
+am__post_remove_distdir = $(am__remove_distdir)
+am__relativize = \
+  dir0=`pwd`; \
+  sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+  sed_rest='s,^[^/]*/*,,'; \
+  sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+  sed_butlast='s,/*[^/]*$$,,'; \
+  while test -n "$$dir1"; do \
+    first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+    if test "$$first" != "."; then \
+      if test "$$first" = ".."; then \
+        dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+        dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+      else \
+        first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+        if test "$$first2" = "$$first"; then \
+          dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+        else \
+          dir2="../$$dir2"; \
+        fi; \
+        dir0="$$dir0"/"$$first"; \
+      fi; \
+    fi; \
+    dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+  done; \
+  reldir="$$dir2"
+GZIP_ENV = --best
+DIST_ARCHIVES = $(distdir).tar.bz2
+DIST_TARGETS = dist-bzip2
+distuninstallcheck_listfiles = find . -type f -print
+am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
+  | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
+distcleancheck_listfiles = find . -type f -print
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_FT_CFLAGS = @CAIRO_FT_CFLAGS@
+CAIRO_FT_LIBS = @CAIRO_FT_LIBS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CORETEXT_CFLAGS = @CORETEXT_CFLAGS@
+CORETEXT_LIBS = @CORETEXT_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
+FREETYPE_LIBS = @FREETYPE_LIBS@
+GIT = @GIT@
+GLIB_CFLAGS = @GLIB_CFLAGS@
+GLIB_LIBS = @GLIB_LIBS@
+GLIB_MKENUMS = @GLIB_MKENUMS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GRAPHITE2_CFLAGS = @GRAPHITE2_CFLAGS@
+GRAPHITE2_LIBS = @GRAPHITE2_LIBS@
+GREP = @GREP@
+GTKDOC_CHECK = @GTKDOC_CHECK@
+GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
+GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
+GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
+GTKDOC_MKPDF = @GTKDOC_MKPDF@
+GTKDOC_REBASE = @GTKDOC_REBASE@
+HB_LIBTOOL_VERSION_INFO = @HB_LIBTOOL_VERSION_INFO@
+HB_VERSION = @HB_VERSION@
+HB_VERSION_MAJOR = @HB_VERSION_MAJOR@
+HB_VERSION_MICRO = @HB_VERSION_MICRO@
+HB_VERSION_MINOR = @HB_VERSION_MINOR@
+HTML_DIR = @HTML_DIR@
+ICU_CFLAGS = @ICU_CFLAGS@
+ICU_CONFIG = @ICU_CONFIG@
+ICU_LIBS = @ICU_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@
+INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@
+INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@
+INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@
+INTROSPECTION_LIBS = @INTROSPECTION_LIBS@
+INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@
+INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@
+INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PTHREAD_CC = @PTHREAD_CC@
+PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
+PTHREAD_LIBS = @PTHREAD_LIBS@
+RAGEL = @RAGEL@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UNISCRIBE_CFLAGS = @UNISCRIBE_CFLAGS@
+UNISCRIBE_LIBS = @UNISCRIBE_LIBS@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+ax_pthread_config = @ax_pthread_config@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+NULL = 
+ACLOCAL_AMFLAGS = -I m4
+SUBDIRS = src util test docs
+EXTRA_DIST = \
+       autogen.sh \
+       harfbuzz.doap \
+       Android.mk \
+       $(NULL)
+
+MAINTAINERCLEANFILES = \
+       $(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
+       $(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
+       $(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
+       $(srcdir)/INSTALL \
+       $(srcdir)/ChangeLog \
+       $(NULL)
+
+
+#
+# ChangeLog generation
+#
+CHANGELOG_RANGE = 
+
+#
+# Release engineering
+#
+DISTCHECK_CONFIGURE_FLAGS = \
+       --enable-gtk-doc \
+       --disable-doc-cross-references \
+       --with-gobject \
+       --enable-introspection \
+       $(NULL)
+
+
+# TODO: Copy infrastructure from cairo
+
+# TAR_OPTIONS is not set as env var for 'make dist'.  How to fix that?
+TAR_OPTIONS = --owner=0 --group=0
+tar_file = $(PACKAGE_TARNAME)-$(VERSION).tar.bz2
+sha256_file = $(tar_file).sha256
+gpg_file = $(sha256_file).asc
+all: config.h
+       $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
+.SUFFIXES:
+am--refresh: Makefile
+       @:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+       @for dep in $?; do \
+         case '$(am__configure_deps)' in \
+           *$$dep*) \
+             echo ' cd $(srcdir) && $(AUTOMAKE) --gnits'; \
+             $(am__cd) $(srcdir) && $(AUTOMAKE) --gnits \
+               && exit 0; \
+             exit 1;; \
+         esac; \
+       done; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits Makefile'; \
+       $(am__cd) $(top_srcdir) && \
+         $(AUTOMAKE) --gnits Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+       @case '$?' in \
+         *config.status*) \
+           echo ' $(SHELL) ./config.status'; \
+           $(SHELL) ./config.status;; \
+         *) \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+       esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+       $(SHELL) ./config.status --recheck
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+       $(am__cd) $(srcdir) && $(AUTOCONF)
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+       $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+$(am__aclocal_m4_deps):
+
+config.h: stamp-h1
+       @test -f $@ || rm -f stamp-h1
+       @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
+
+stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
+       @rm -f stamp-h1
+       cd $(top_builddir) && $(SHELL) ./config.status config.h
+$(srcdir)/config.h.in:  $(am__configure_deps) 
+       ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
+       rm -f stamp-h1
+       touch $@
+
+distclean-hdr:
+       -rm -f config.h stamp-h1
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+
+distclean-libtool:
+       -rm -f libtool config.lt
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run 'make' without going through this Makefile.
+# To change the values of 'make' variables: instead of editing Makefiles,
+# (1) if the variable is set in 'config.status', edit 'config.status'
+#     (which will cause the Makefiles to be regenerated when you run 'make');
+# (2) otherwise, pass the desired values on the 'make' command line.
+$(am__recursive_targets):
+       @fail=; \
+       if $(am__make_keepgoing); then \
+         failcom='fail=yes'; \
+       else \
+         failcom='exit 1'; \
+       fi; \
+       dot_seen=no; \
+       target=`echo $@ | sed s/-recursive//`; \
+       case "$@" in \
+         distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+         *) list='$(SUBDIRS)' ;; \
+       esac; \
+       for subdir in $$list; do \
+         echo "Making $$target in $$subdir"; \
+         if test "$$subdir" = "."; then \
+           dot_seen=yes; \
+           local_target="$$target-am"; \
+         else \
+           local_target="$$target"; \
+         fi; \
+         ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+         || eval $$failcom; \
+       done; \
+       if test "$$dot_seen" = "no"; then \
+         $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+       fi; test -z "$$fail"
+
+ID: $(am__tagged_files)
+       $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-recursive
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       set x; \
+       here=`pwd`; \
+       if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+         include_option=--etags-include; \
+         empty_fix=.; \
+       else \
+         include_option=--include; \
+         empty_fix=; \
+       fi; \
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         if test "$$subdir" = .; then :; else \
+           test ! -f $$subdir/TAGS || \
+             set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
+         fi; \
+       done; \
+       $(am__define_uniq_tagged_files); \
+       shift; \
+       if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+         test -n "$$unique" || unique=$$empty_fix; \
+         if test $$# -gt 0; then \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             "$$@" $$unique; \
+         else \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             $$unique; \
+         fi; \
+       fi
+ctags: ctags-recursive
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       $(am__define_uniq_tagged_files); \
+       test -z "$(CTAGS_ARGS)$$unique" \
+         || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+            $$unique
+
+GTAGS:
+       here=`$(am__cd) $(top_builddir) && pwd` \
+         && $(am__cd) $(top_srcdir) \
+         && gtags -i $(GTAGS_ARGS) "$$here"
+cscope: cscope.files
+       test ! -s cscope.files \
+         || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
+clean-cscope:
+       -rm -f cscope.files
+cscope.files: clean-cscope cscopelist
+cscopelist: cscopelist-recursive
+
+cscopelist-am: $(am__tagged_files)
+       list='$(am__tagged_files)'; \
+       case "$(srcdir)" in \
+         [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+         *) sdir=$(subdir)/$(srcdir) ;; \
+       esac; \
+       for i in $$list; do \
+         if test -f "$$i"; then \
+           echo "$(subdir)/$$i"; \
+         else \
+           echo "$$sdir/$$i"; \
+         fi; \
+       done >> $(top_builddir)/cscope.files
+
+distclean-tags:
+       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+       -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
+
+distdir: $(DISTFILES)
+       @case `sed 15q $(srcdir)/NEWS` in \
+       *"$(VERSION)"*) : ;; \
+       *) \
+         echo "NEWS not updated; not releasing" 1>&2; \
+         exit 1;; \
+       esac
+       $(am__remove_distdir)
+       test -d "$(distdir)" || mkdir "$(distdir)"
+       @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       list='$(DISTFILES)'; \
+         dist_files=`for file in $$list; do echo $$file; done | \
+         sed -e "s|^$$srcdirstrip/||;t" \
+             -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+       case $$dist_files in \
+         */*) $(MKDIR_P) `echo "$$dist_files" | \
+                          sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+                          sort -u` ;; \
+       esac; \
+       for file in $$dist_files; do \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         if test -d $$d/$$file; then \
+           dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+           if test -d "$(distdir)/$$file"; then \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+         else \
+           test -f "$(distdir)/$$file" \
+           || cp -p $$d/$$file "$(distdir)/$$file" \
+           || exit 1; \
+         fi; \
+       done
+       @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+         if test "$$subdir" = .; then :; else \
+           $(am__make_dryrun) \
+             || test -d "$(distdir)/$$subdir" \
+             || $(MKDIR_P) "$(distdir)/$$subdir" \
+             || exit 1; \
+           dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+           $(am__relativize); \
+           new_distdir=$$reldir; \
+           dir1=$$subdir; dir2="$(top_distdir)"; \
+           $(am__relativize); \
+           new_top_distdir=$$reldir; \
+           echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+           echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+           ($(am__cd) $$subdir && \
+             $(MAKE) $(AM_MAKEFLAGS) \
+               top_distdir="$$new_top_distdir" \
+               distdir="$$new_distdir" \
+               am__remove_distdir=: \
+               am__skip_length_check=: \
+               am__skip_mode_fix=: \
+               distdir) \
+             || exit 1; \
+         fi; \
+       done
+       $(MAKE) $(AM_MAKEFLAGS) \
+         top_distdir="$(top_distdir)" distdir="$(distdir)" \
+         dist-hook
+       -test -n "$(am__skip_mode_fix)" \
+       || find "$(distdir)" -type d ! -perm -755 \
+               -exec chmod u+rwx,go+rx {} \; -o \
+         ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+         ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+         ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
+       || chmod -R a+r "$(distdir)"
+dist-gzip: distdir
+       tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+       $(am__post_remove_distdir)
+dist-bzip2: distdir
+       tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
+       $(am__post_remove_distdir)
+
+dist-lzip: distdir
+       tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
+       $(am__post_remove_distdir)
+
+dist-xz: distdir
+       tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
+       $(am__post_remove_distdir)
+
+dist-tarZ: distdir
+       @echo WARNING: "Support for shar distribution archives is" \
+                      "deprecated." >&2
+       @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
+       tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+       $(am__post_remove_distdir)
+
+dist-shar: distdir
+       @echo WARNING: "Support for distribution archives compressed with" \
+                      "legacy program 'compress' is deprecated." >&2
+       @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
+       shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+       $(am__post_remove_distdir)
+
+dist-zip: distdir
+       -rm -f $(distdir).zip
+       zip -rq $(distdir).zip $(distdir)
+       $(am__post_remove_distdir)
+
+dist dist-all:
+       $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
+       $(am__post_remove_distdir)
+
+# This target untars the dist file and tries a VPATH configuration.  Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+       case '$(DIST_ARCHIVES)' in \
+       *.tar.gz*) \
+         GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
+       *.tar.bz2*) \
+         bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
+       *.tar.lz*) \
+         lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
+       *.tar.xz*) \
+         xz -dc $(distdir).tar.xz | $(am__untar) ;;\
+       *.tar.Z*) \
+         uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
+       *.shar.gz*) \
+         GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
+       *.zip*) \
+         unzip $(distdir).zip ;;\
+       esac
+       chmod -R a-w $(distdir)
+       chmod u+w $(distdir)
+       mkdir $(distdir)/_build $(distdir)/_inst
+       chmod a-w $(distdir)
+       test -d $(distdir)/_build || exit 0; \
+       dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
+         && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+         && am__cwd=`pwd` \
+         && $(am__cd) $(distdir)/_build \
+         && ../configure --srcdir=.. --prefix="$$dc_install_base" \
+           $(AM_DISTCHECK_CONFIGURE_FLAGS) \
+           $(DISTCHECK_CONFIGURE_FLAGS) \
+         && $(MAKE) $(AM_MAKEFLAGS) \
+         && $(MAKE) $(AM_MAKEFLAGS) dvi \
+         && $(MAKE) $(AM_MAKEFLAGS) check \
+         && $(MAKE) $(AM_MAKEFLAGS) install \
+         && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+         && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+         && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
+               distuninstallcheck \
+         && chmod -R a-w "$$dc_install_base" \
+         && ({ \
+              (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
+              && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
+              && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
+              && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
+                   distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
+             } || { rm -rf "$$dc_destdir"; exit 1; }) \
+         && rm -rf "$$dc_destdir" \
+         && $(MAKE) $(AM_MAKEFLAGS) dist \
+         && rm -rf $(DIST_ARCHIVES) \
+         && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
+         && cd "$$am__cwd" \
+         || exit 1
+       $(am__post_remove_distdir)
+       @(echo "$(distdir) archives ready for distribution: "; \
+         list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+         sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
+distuninstallcheck:
+       @test -n '$(distuninstallcheck_dir)' || { \
+         echo 'ERROR: trying to run $@ with an empty' \
+              '$$(distuninstallcheck_dir)' >&2; \
+         exit 1; \
+       }; \
+       $(am__cd) '$(distuninstallcheck_dir)' || { \
+         echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
+         exit 1; \
+       }; \
+       test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
+          || { echo "ERROR: files left after uninstall:" ; \
+               if test -n "$(DESTDIR)"; then \
+                 echo "  (check DESTDIR support)"; \
+               fi ; \
+               $(distuninstallcheck_listfiles) ; \
+               exit 1; } >&2
+distcleancheck: distclean
+       @if test '$(srcdir)' = . ; then \
+         echo "ERROR: distcleancheck can only run from a VPATH build" ; \
+         exit 1 ; \
+       fi
+       @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+         || { echo "ERROR: files left in build directory after distclean:" ; \
+              $(distcleancheck_listfiles) ; \
+              exit 1; } >&2
+check-am: all-am
+check: check-recursive
+all-am: Makefile config.h
+installdirs: installdirs-recursive
+installdirs-am:
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+       if test -z '$(STRIP)'; then \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+             install; \
+       else \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+           "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+       fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+       -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+       -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+clean: clean-recursive
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+       -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+       -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-hdr \
+       distclean-libtool distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+html-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-html-am:
+
+install-info: install-info-recursive
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+       -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+       -rm -rf $(top_srcdir)/autom4te.cache
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: $(am__recursive_targets) all install-am install-strip
+
+.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
+       am--refresh check check-am clean clean-cscope clean-generic \
+       clean-libtool cscope cscopelist-am ctags ctags-am dist \
+       dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \
+       dist-tarZ dist-xz dist-zip distcheck distclean \
+       distclean-generic distclean-hdr distclean-libtool \
+       distclean-tags distcleancheck distdir distuninstallcheck dvi \
+       dvi-am html html-am info info-am install install-am \
+       install-data install-data-am install-dvi install-dvi-am \
+       install-exec install-exec-am install-html install-html-am \
+       install-info install-info-am install-man install-pdf \
+       install-pdf-am install-ps install-ps-am install-strip \
+       installcheck installcheck-am installdirs installdirs-am \
+       maintainer-clean maintainer-clean-generic mostlyclean \
+       mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+       tags tags-am uninstall uninstall-am
+
+ChangeLog: $(srcdir)/ChangeLog
+$(srcdir)/ChangeLog:
+       $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
+         (GIT_DIR=$(top_srcdir)/.git \
+          $(GIT) log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \
+         && mv -f $@.tmp "$(srcdir)/ChangeLog" \
+         || ($(RM) $@.tmp; \
+             echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
+             (test -f $@ || echo git-log is required to generate this file >> "$(srcdir)/$@")); \
+       else \
+         test -f $@ || \
+         (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
+         echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
+       fi
+.PHONY: ChangeLog $(srcdir)/ChangeLog
+
+dist-hook: dist-clear-sticky-bits
+# Clean up any sticky bits we may inherit from parent dir
+dist-clear-sticky-bits:
+       chmod -R a-s $(distdir)
+$(sha256_file): $(tar_file)
+       sha256sum $^ > $@
+$(gpg_file): $(sha256_file)
+       @echo "Please enter your GPG password to sign the checksum."
+       gpg --armor --sign $^
+
+release-files: $(tar_file) $(sha256_file) $(gpg_file)
+
+-include $(top_srcdir)/git.mk
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/NEWS b/NEWS
new file mode 100644 (file)
index 0000000..adc8f69
--- /dev/null
+++ b/NEWS
@@ -0,0 +1,1063 @@
+Overview of changes leading to 0.9.35
+Saturday, August 13, 2014
+=====================================
+
+- Fix major shape-plan caching bug when more than one shaper were
+  provided to hb_shape_full() (as exercised by XeTeX).
+  http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg1246370.html
+- Fix Arabic fallback shaping regression.  This was broken in 0.9.32.
+- Major hb-coretext fixes.  That backend is complete now, including
+  respecing buffer direction and language, down to vertical writing.
+- Build fixes for Windows CE.  Should build fine now.
+- Misc fixes:
+  Use atexit() only if it's safe to call from shared library
+  https://bugs.freedesktop.org/show_bug.cgi?id=82246
+  Mandaic had errors in its Unicode Joining_Type
+  https://bugs.freedesktop.org/show_bug.cgi?id=82306
+- API changes:
+
+  * hb_buffer_clear_contents() does not reset buffer flags now.
+
+    After 763e5466c0a03a7c27020e1e2598e488612529a7, one doesn't
+    need to set flags for different pieces of text.  The flags now
+    are something the client sets up once, depending on how it
+    actually uses the buffer.  As such, don't clear it in
+    clear_contents().
+
+    I don't expect any changes to be needed to any existing client.
+
+
+Overview of changes leading to 0.9.34
+Saturday, August 2, 2014
+=====================================
+
+- hb_feature_from_string() now accepts CSS font-feature-settings format.
+- As a result, hb-shape / hb-view --features also accept CSS-style strings.
+  Eg, "'liga' off" is accepted now.
+- Add old-spec Myanmar shaper:
+  https://bugs.freedesktop.org/show_bug.cgi?id=81775
+- Don't apply 'calt' in Hangul shaper.
+- Fix mark advance zeroing for Hebrew shaper:
+  https://bugs.freedesktop.org/show_bug.cgi?id=76767
+- Implement Windows-1256 custom Arabic shaping.  Only built on Windows,
+  and requires help from get_glyph().  Used by Firefox.
+  https://bugzilla.mozilla.org/show_bug.cgi?id=1045139
+- Disable 'liga' in vertical text.
+- Build fixes.
+- API changes:
+
+  * Make HB_BUFFER_FLAG_BOT/EOT easier to use.
+
+    Previously, we expected users to provide BOT/EOT flags when the
+    text *segment* was at paragraph boundaries.  This meant that for
+    clients that provide full paragraph to HarfBuzz (eg. Pango), they
+    had code like this:
+
+      hb_buffer_set_flags (hb_buffer,
+                           (item_offset == 0 ? HB_BUFFER_FLAG_BOT : 0) |
+                           (item_offset + item_length == paragraph_length ?
+                            HB_BUFFER_FLAG_EOT : 0));
+
+      hb_buffer_add_utf8 (hb_buffer,
+                          paragraph_text, paragraph_length,
+                          item_offset, item_length);
+
+    After this change such clients can simply say:
+
+      hb_buffer_set_flags (hb_buffer,
+                           HB_BUFFER_FLAG_BOT | HB_BUFFER_FLAG_EOT);
+
+      hb_buffer_add_utf8 (hb_buffer,
+                          paragraph_text, paragraph_length,
+                          item_offset, item_length);
+
+    Ie, HarfBuzz itself checks whether the segment is at the beginning/end
+    of the paragraph.  Clients that only pass item-at-a-time to HarfBuzz
+    continue not setting any flags whatsoever.
+
+    Another way to put it is: if there's pre-context text in the buffer,
+    HarfBuzz ignores the BOT flag.  If there's post-context, it ignores
+    EOT flag.
+
+
+Overview of changes leading to 0.9.33
+Tuesday, July 22, 2014
+=====================================
+
+- Turn off ARabic 'cswh' feature that was accidentally turned on.
+- Add HB_TAG_MAX_SIGNED.
+- Make hb_face_make_immutable() really make face immutable!
+- Windows build fixes.
+
+
+Overview of changes leading to 0.9.32
+Thursday, July 17, 2014
+=====================================
+
+- Apply Arabic shaping features in spec order exactly.
+- Another fix for Mongolian free variation selectors.
+- For non-Arabic scripts in Arabic shaper apply 'rlig' and 'calt'
+  together.
+- Minor adjustment to U+FFFD logic.
+- Fix hb-coretext build.
+
+
+Overview of changes leading to 0.9.31
+Wednesday, July 16, 2014
+=====================================
+
+- Only accept valid UTF-8/16/32; we missed many cases before.
+- Better shaping of invalid UTF-8/16/32.  Falls back to
+  U+FFFD REPLACEMENT CHARACTER now.
+- With all changes in this release, the buffer will contain fully
+  valid Unicode after hb_buffer_add_utf8/16/32 no matter how
+  broken the input is.  This can be overriden though.  See below.
+- Fix Mongolian Variation Selectors for fonts without GDEF.
+- Fix minor invalid buffer access.
+- Accept zh-Hant and zh-Hans language tags.  hb_ot_tag_to_language()
+  now uses these instead of private tags.
+- Build fixes.
+- New API:
+  * hb_buffer_add_codepoints().  This does what hb_buffer_add_utf32()
+    used to do, ie. no validity check on the input at all.  add_utf32
+    now replaces invalid Unicode codepoints with the replacement
+    character (see below).
+  * hb_buffer_set_replacement_codepoint()
+  * hb_buffer_get_replacement_codepoint()
+    Previously, in hb_buffer_add_utf8 and hb_buffer_add_utf16, when
+    we detected broken input, we replaced that with (hb_codepoint_t)-1.
+    This has changed to use U+FFFD now, but can be changed using these
+    new API.
+
+
+Overview of changes leading to 0.9.30
+Wednesday, July 9, 2014
+=====================================
+
+- Update to Unicode 7.0.0:
+  * New scripts Manichaean and Psalter Pahlavi are shaped using
+    Arabic shaper.
+  * All the other new scripts to through the generic shaper for
+    now.
+- Minor Indic improvements.
+- Fix graphite2 backend cluster mapping [crasher!]
+- API changes:
+  * New HB_SCRIPT_* values for Unicode 7.0 scripts.
+  * New function hb_ot_layout_language_get_required_feature().
+- Build fixes.
+
+
+Overview of changes leading to 0.9.29
+Thursday, May 29, 2014
+=====================================
+
+- Implement cmap in hb-ot-font.h.  No variation-selectors yet.
+- Myanmar: Allow MedialYa+Asat.
+- Various Indic fixes:
+  * Support most characters in Extended Devanagary and Vedic
+    Unicode blocks.
+  * Allow digits and a some punctuation as consonant placeholders.
+- Build fixes.
+
+
+Overview of changes leading to 0.9.28
+Monday, April 28, 2014
+=====================================
+
+- Unbreak old-spec Indic shaping. (bug 76705)
+- Fix shaping of U+17DD and U+0FC6.
+- Add HB_NO_MERGE_CLUSTERS build option.  NOT to be enabled by default
+  for shipping libraries.  It's an option for further experimentation
+  right now.  When we are sure how to do it properly, we will add
+  public run-time API for the functionality.
+- Build fixes.
+
+
+Overview of changes leading to 0.9.27
+Tuesday, March 18, 2014
+=====================================
+
+- Don't use "register" storage class specifier
+- Wrap definition of free_langs() with HAVE_ATEXIT
+- Add coretext_aat shaper and hb_coretext_face_create() constructor
+- If HAVE_ICU_BUILTIN is defined, use hb-icu Unicode callbacks
+- Add Myanmar test case from OpenType Myanmar spec
+- Only do fallback Hebrew composition if no GPOS 'mark' available
+- Allow bootstrapping without gtk-doc
+- Use AM_MISSING_PROG for ragel and git
+- Typo in ucdn's Makefile.am
+- Improve MemoryBarrier() implementation
+
+
+Overview of changes leading to 0.9.26
+Thursday, January 30, 2014
+=====================================
+
+- Misc fixes.
+- Fix application of 'rtlm' feature.
+- Automatically apply frac/numr/dnom around U+2044 FRACTION SLASH.
+- New header: hb-ot-shape.h
+- Uniscribe: fix scratch-buffer accounting.
+- Reorder Tai Tham SAKOT to after tone-marks.
+- Add Hangul shaper.
+- New files:
+  hb-ot-shape-complex-hangul.cc
+  hb-ot-shape-complex-hebrew.cc
+  hb-ot-shape-complex-tibetan.cc
+- Disable 'cswh' feature in Arabic shaper.
+- Coretext: better handle surrogate pairs.
+- Add HB_TAG_MAX and _HB_SCRIPT_MAX_VALUE.
+
+
+Overview of changes leading to 0.9.25
+Wednesday, December 4, 2013
+=====================================
+
+- Myanmar shaper improvements.
+- Avoid font fallback in CoreText backend.
+- Additional OpenType language tag mappiongs.
+- More aggressive shape-plan caching.
+- Build with / require automake 1.13.
+- Build with libtool 2.4.2.418 alpha to support ppc64le.
+
+
+Overview of changes leading to 0.9.24
+Tuesday, November 13, 2013
+=====================================
+
+- Misc compiler warning fixes with clang.
+- No functional changes.
+
+
+Overview of changes leading to 0.9.23
+Monday, October 28, 2013
+=====================================
+
+- "Udupi HarfBuzz Hackfest", Paris, October 14..18 2013.
+- Fix (Chain)Context recursion with non-monotone lookup positions.
+- Misc Indic bug fixes.
+- New Javanese / Buginese shaping, similar to Windows 8.1.
+
+
+Overview of changes leading to 0.9.22
+Thursday, October 3, 2013
+=====================================
+
+- Fix use-after-end-of-scope in hb_language_from_string().
+- Fix hiding of default_ignorables if font doesn't have space glyph.
+- Protect against out-of-range lookup indices.
+
+- API Changes:
+
+  * Added hb_ot_layout_table_get_lookup_count()
+
+
+Overview of changes leading to 0.9.21
+Monday, September 16, 2013
+=====================================
+
+- Rename gobject-introspection library name from harfbuzz to HarfBuzz.
+- Remove (long disabled) hb-old and hb-icu-le test shapers.
+- Misc gtk-doc and gobject-introspection annotations.
+- Misc fixes.
+- API changes:
+
+  * Add HB_SET_VALUE_INVALID
+
+Overview of changes leading to 0.9.20
+Thursday, August 29, 2013
+=====================================
+
+General:
+- Misc substitute_closure() fixes.
+- Build fixes.
+
+Documentation:
+- gtk-doc boilerplate integrated.  Docs are built now, but
+  contain no contents.  By next release hopefully we have
+  some content in.  Enable using --enable-gtk-doc.
+
+GObject and Introspection:
+- Added harfbuzz-gobject library (hb-gobject.h) that has type
+  bindings for all HarfBuzz objects and enums.  Enable using
+  --with-gobject.
+- Added gobject-introspection boilerplate.  Nothing useful
+  right now.  Work in progress.  Gets enabled automatically if
+  --with-gobject is used.  Override with --disable-introspection.
+
+OpenType shaper:
+- Apply 'mark' in Myanmar shaper.
+- Don't apply 'dlig' by default.
+
+Uniscribe shaper:
+- Support user features.
+- Fix loading of fonts that are also installed on the system.
+- Fix shaping of Arabic Presentation Forms.
+- Fix build with wide chars.
+
+CoreText shaper:
+- Support user features.
+
+Source changes:
+- hb_face_t code moved to hb-face.h / hb-face.cc.
+- Added hb-deprecated.h.
+
+API changes:
+- Added HB_DISABLE_DEPRECATED.
+- Deprecated HB_SCRIPT_CANADIAN_ABORIGINAL; replaced by
+  HB_SCRIPT_CANADIAN_SYLLABICS.
+- Deprecated HB_BUFFER_FLAGS_DEFAULT; replaced by
+  HB_BUFFER_FLAG_DEFAULT.
+- Deprecated HB_BUFFER_SERIALIZE_FLAGS_DEFAULT; replaced by
+  HB_BUFFER_SERIALIZE_FLAG_DEFAULT.
+
+
+Overview of changes leading to 0.9.19
+Tuesday, July 16, 2013
+=====================================
+
+- Build fixes.
+- Better handling of multiple variation selectors in a row.
+- Pass on variation selector to GSUB if not consumed by cmap.
+- Fix undefined memory access.
+- Add Javanese config to Indic shaper.
+- Misc bug fixes.
+
+Overview of changes leading to 0.9.18
+Tuesday, May 28, 2013
+=====================================
+
+New build system:
+
+- All unneeded code is all disabled by default,
+
+- Uniscribe and CoreText shapers can be enabled with their --with options,
+
+- icu_le and old shapers cannot be enabled for now,
+
+- glib, freetype, and cairo will be detected automatically.
+  They can be force on/off'ed with their --with options,
+
+- icu and graphite2 are default off, can be enabled with their --with
+  options,
+
+Moreover, ICU support is now build into a separate library:
+libharfbuzz-icu.so, and a new harfbuzz-icu.pc is shipped for it.
+Distros can enable ICU now without every application on earth
+getting linked to via libharfbuzz.so.
+
+For distros I recommend that they make sure they are building --with-glib
+--with-freetype --with-cairo, --with-icu, and optionally --with-graphite2;
+And package harfbuzz and harfbuzz-icu separately.
+
+
+Overview of changes leading to 0.9.17
+Monday, May 20, 2013
+=====================================
+
+- Build fixes.
+- Fix bug in hb_set_get_min().
+- Fix regression with Arabic mark positioning / width-zeroing.
+
+Overview of changes leading to 0.9.16
+Friday, April 19, 2013
+=====================================
+
+- Major speedup in OpenType lookup processing.  With the Amiri
+  Arabic font, this release is over 3x faster than previous
+  release.  All scripts / languages should see this speedup.
+
+- New --num-iterations option for hb-shape / hb-view; useful for
+  profiling.
+
+Overview of changes leading to 0.9.15
+Friday, April 05, 2013
+=====================================
+
+- Build fixes.
+- Fix crasher in graphite2 shaper.
+- Fix Arabic mark width zeroing regression.
+- Don't compose Hangul jamo into Unicode syllables.
+
+
+Overview of changes leading to 0.9.14
+Thursday, March 21, 2013
+=====================================
+
+- Build fixes.
+- Fix time-consuming sanitize with malicious fonts.
+- Implement hb_buffer_deserialize_glyphs() for both json and text.
+- Do not ignore Hangul filler characters.
+- Indic fixes:
+  * Fix Malayalam pre-base reordering interaction with post-forms.
+  * Further adjust ZWJ handling.  Should fix known regressions from
+    0.9.13.
+
+
+Overview of changes leading to 0.9.13
+Thursday, February 25, 2013
+=====================================
+
+- Build fixes.
+- Ngapi HarfBuzz Hackfest in London (February 2013):
+  * Fixed all known Indic bugs,
+  * New Win8-style Myanmar shaper,
+  * New South-East Asian shaper for Tai Tham, Cham, and New Tai Lue,
+  * Smartly ignore Default_Ignorable characters (joiners, etc) wheb
+    matching GSUB/GPOS lookups,
+  * Fix 'Phags-Pa U+A872 shaping,
+  * Fix partial disabling of default-on features,
+  * Allow disabling of TrueType kerning.
+- Fix possible crasher with broken fonts with overlapping tables.
+- Removed generated files from git again.  So, one needs ragel to
+  bootstrap from the git tree.
+
+API changes:
+- hb_shape() and related APIs now abort if buffer direction is
+  HB_DIRECTION_INVALID.  Previously, hb_shape() was calling
+  hb_buffer_guess_segment_properties() on the buffer before
+  shaping.  The heuristics in that function are fragile.  If the
+  user really wants the old behvaior, they can call that function
+  right before calling hb_shape() to get the old behavior.
+- hb_blob_create_sub_blob() always creates sub-blob with
+  HB_MEMORY_MODE_READONLY.  See comments for the reason.
+
+
+Overview of changes leading to 0.9.12
+Thursday, January 18, 2013
+=====================================
+
+- Build fixes for Sun compiler.
+- Minor bug fix.
+
+Overview of changes leading to 0.9.11
+Thursday, January 10, 2013
+=====================================
+
+- Build fixes.
+- Fix GPOS mark attachment with null Anchor offsets.
+- [Indic] Fix old-spec reordering of viramas if sequence ends in one.
+- Fix multi-threaded shaper data creation crash.
+- Add atomic ops for Solaris.
+
+API changes:
+- Rename hb_buffer_clear() to hb_buffer_clear_contents().
+
+
+Overview of changes leading to 0.9.10
+Thursday, January 3, 2013
+=====================================
+
+- [Indic] Fixed rendering of Malayalam dot-reph
+- Updated OT language tags.
+- Updated graphite2 backend.
+- Improved hb_ot_layout_get_size_params() logic.
+- Improve hb-shape/hb-view help output.
+- Fixed hb-set.h implementation to not crash.
+- Fixed various issues with hb_ot_layout_collect_lookups().
+- Various build fixes.
+
+New API:
+
+hb_graphite2_face_get_gr_face()
+hb_graphite2_font_get_gr_font()
+hb_coretext_face_get_cg_font()
+
+Modified API:
+
+hb_ot_layout_get_size_params()
+
+
+Overview of changes leading to 0.9.9
+Wednesday, December 5, 2012
+====================================
+
+- Fix build on Windows.
+- Minor improvements.
+
+
+Overview of changes leading to 0.9.8
+Tuesday, December 4, 2012
+====================================
+
+
+- Actually implement hb_shape_plan_get_shaper ().
+- Make UCDB data tables const.
+- Lots of internal refactoring in OTLayout tables.
+- Flesh out hb_ot_layout_lookup_collect_glyphs().
+
+New API:
+
+hb_ot_layout_collect_lookups()
+hb_ot_layout_get_size_params()
+
+
+Overview of changes leading to 0.9.7
+Sunday, November 21, 2012
+====================================
+
+
+HarfBuzz "All-You-Can-Eat-Sushi" (aka Vancouver) Hackfest and follow-on fixes.
+
+- Fix Arabic contextual joining using pre-context text.
+- Fix Sinhala "split matra" mess.
+- Fix Khmer shaping with broken fonts.
+- Implement Thai "PUA" shaping for old fonts.
+- Do NOT route Kharoshthi script through the Indic shaper.
+- Disable fallback positioning for Indic and Thai shapers.
+- Misc fixes.
+
+
+hb-shape / hb-view changes:
+
+- Add --text-before and --text-after
+- Add --bot / --eot / --preserve-default-ignorables
+- hb-shape --output-format=json
+
+
+New API:
+
+hb_buffer_clear()
+
+hb_buffer_flags_t
+
+HB_BUFFER_FLAGS_DEFAULT
+HB_BUFFER_FLAG_BOT
+HB_BUFFER_FLAG_EOT
+HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES
+
+hb_buffer_set_flags()
+hb_buffer_get_flags()
+
+HB_BUFFER_SERIALIZE_FLAGS
+hb_buffer_serialize_glyphs()
+hb_buffer_deserialize_glyphs()
+hb_buffer_serialize_list_formats()
+
+hb_set_add_range()
+hb_set_del_range()
+hb_set_get_population()
+hb_set_next_range()
+
+hb_face_[sg]et_glyph_count()
+
+hb_segment_properties_t
+HB_SEGMENT_PROPERTIES_DEFAULT
+hb_segment_properties_equal()
+hb_segment_properties_hash()
+
+hb_buffer_set_segment_properties()
+hb_buffer_get_segment_properties()
+
+hb_ot_layout_glyph_class_t
+hb_ot_layout_get_glyph_class()
+hb_ot_layout_get_glyphs_in_class()
+
+hb_shape_plan_t
+hb_shape_plan_create()
+hb_shape_plan_create_cached()
+hb_shape_plan_get_empty()
+hb_shape_plan_reference()
+hb_shape_plan_destroy()
+hb_shape_plan_set_user_data()
+hb_shape_plan_get_user_data()
+hb_shape_plan_execute()
+hb_shape_plan_get_shaper()
+
+hb_ot_shape_plan_collect_lookups()
+
+
+API changes:
+
+- Remove "mask" parameter from hb_buffer_add().
+- Rename hb_ot_layout_would_substitute_lookup() and hb_ot_layout_substitute_closure_lookup().
+- hb-set.h API const correction.
+- Renamed hb_set_min/max() to hb_set_get_min/max().
+- Rename hb_ot_layout_feature_get_lookup_indexes() to hb_ot_layout_feature_get_lookups().
+- Rename hb_buffer_guess_properties() to hb_buffer_guess_segment_properties().
+
+
+
+Overview of changes leading to 0.9.6
+Sunday, November 13, 2012
+====================================
+
+- Don't clear pre-context text if no new context is provided.
+- Fix ReverseChainingSubstLookup, which was totally borked.
+- Adjust output format of hb-shape a bit.
+- Include config.h.in in-tree.  Makes it easier for alternate build systems.
+- Fix hb_buffer_set_length(buffer, 0) invalid memory allocation.
+- Use ICU LayoutEngine's C API instead of C++.  Avoids much headache.
+- Drop glyphs for all of Unicode Default_Ignorable characters.
+- Misc build fixes.
+
+Arabic shaper:
+- Enable 'dlig' and 'mset' features in Arabic shaper.
+- Implement 'Phags-pa shaping, improve Mongolian.
+
+Indic shaper:
+- Decompose Sinhala split matras the way old HarfBuzz / Pango did.
+- Initial support for Consonant Medials.
+- Start adding new-style Myanmar shaping.
+- Make reph and 'pref' logic introspect the font.
+- Route Meetei-Mayek through the Indic shaper.
+- Don't apply 'liga' in Indic shaper.
+- Improve Malayalam pre-base reordering Ra interaction with Chillus.
+
+
+
+Overview of changes leading to 0.9.5
+Sunday, October 14, 2012
+====================================
+
+- Synthetic-GSUB Arabic fallback shaping.
+
+- Misc Indic improvements.
+
+- Add build system support for pthread.
+
+- Imported UCDN for in-tree Unicode callbacks implementation.
+
+- Context-aware Arabic joining.
+
+- Misc other fixes.
+
+- New API:
+
+  hb_feature_to/from-string()
+  hb_buffer_[sg]et_content_type()
+
+
+
+Overview of changes leading to 0.9.4
+Tuesday, Sep 03, 2012
+====================================
+
+- Indic improvements with old-spec Malayalam.
+
+- Better fallback glyph positioning, specially with Thai / Lao marks.
+
+- Implement dotted-circle insertion.
+
+- Better Arabic fallback shaping / ligation.
+
+- Added ICU LayoutEngine backend for testing.  Call it by the 'icu_le' name.
+
+- Misc fixes.
+
+
+
+Overview of changes leading to 0.9.3
+Friday, Aug 18, 2012
+====================================
+
+- Fixed fallback mark positioning for left-to-right text.
+
+- Improve mark positioning for the remaining combining classes.
+
+- Unbreak Thai and fallback Arabic shaping.
+
+- Port Arabic shaper to shape-plan caching.
+
+- Use new ICU normalizer functions.
+
+
+
+Overview of changes leading to 0.9.2
+Friday, Aug 10, 2012
+====================================
+
+- Over a thousand commits!  This is the first major release of HarfBuzz.
+
+- HarfBuzz is feature-complete now!  It should be in par, or better, than
+  both Pango's shapers and old HarfBuzz / Qt shapers.
+
+- New Indic shaper, supporting main Indic scripts, Sinhala, and Khmer.
+
+- Improved Arabic shaper, with fallback Arabic shaping, supporting Arabic,
+  Sinhala, N'ko, Mongolian, and Mandaic.
+
+- New Thai / Lao shaper.
+
+- Tibetan / Hangul support in the generic shaper.
+
+- Synthetic GDEF support for fonts without a GDEF table.
+
+- Fallback mark positioning for fonts without a GPOS table.
+
+- Unicode normalization shaping heuristic during glyph mapping.
+
+- New experimental Graphite2 backend.
+
+- New Uniscribe backend (primarily for testing).
+
+- New CoreText backend (primarily for testing).
+
+- Major optimization and speedup.
+
+- Test suites and testing infrastructure (work in progress).
+
+- Greatly improved hb-view cmdline tool.
+
+- hb-shape cmdline tool.
+
+- Unicode 6.1 support.
+
+Summary of API changes:
+
+o Changed API:
+
+  - Users are expected to only include main header files now (ie. hb.h,
+    hb-glib.h, hb-ft.h, ...)
+
+  - All struct tag names had their initial underscore removed.
+    Ie. "struct _hb_buffer_t" is "struct hb_buffer_t" now.
+
+  - All set_user_data() functions now take a "replace" boolean parameter.
+
+  - hb_buffer_create() takes zero arguments now.
+    Use hb_buffer_pre_allocate() to pre-allocate.
+
+  - hb_buffer_add_utf*() now accept -1 for length parameteres,
+    meaning "nul-terminated".
+
+  - hb_direction_t enum values changed.
+
+  - All *_from_string() APIs now take a length parameter to allow for
+    non-nul-terminated strings. A -1 length means "nul-terminated".
+
+  - Typedef for hb_language_t changed.
+
+  - hb_get_table_func_t renamed to hb_reference_table_func_t.
+
+  - hb_ot_layout_table_choose_script()
+
+  - Various renames in hb-unicode.h.
+
+o New API:
+
+  - hb_buffer_guess_properties()
+    Automatically called by hb_shape().
+
+  - hb_buffer_normalize_glyphs()
+
+  - hb_tag_from_string()
+
+  - hb-coretext.h
+
+  - hb-uniscribe.h
+
+  - hb_face_reference_blob()
+  - hb_face_[sg]et_index()
+  - hb_face_set_upem()
+
+  - hb_font_get_glyph_name_func_t
+    hb_font_get_glyph_from_name_func_t
+    hb_font_funcs_set_glyph_name_func()
+    hb_font_funcs_set_glyph_from_name_func()
+    hb_font_get_glyph_name()
+    hb_font_get_glyph_from_name()
+    hb_font_glyph_to_string()
+    hb_font_glyph_from_string()
+
+  - hb_font_set_funcs_data()
+
+  - hb_ft_font_set_funcs()
+  - hb_ft_font_get_face()
+
+  - hb-gobject.h (work in progress)
+
+  - hb_ot_shape_glyphs_closure()
+    hb_ot_layout_substitute_closure_lookup()
+
+  - hb-set.h
+
+  - hb_shape_full()
+
+  - hb_unicode_combining_class_t
+
+  - hb_unicode_compose_func_t
+    hb_unicode_decompose_func_t
+    hb_unicode_decompose_compatibility_func_t
+    hb_unicode_funcs_set_compose_func()
+    hb_unicode_funcs_set_decompose_func()
+    hb_unicode_funcs_set_decompose_compatibility_func()
+    hb_unicode_compose()
+    hb_unicode_decompose()
+    hb_unicode_decompose_compatibility()
+
+o Removed API:
+
+  - hb_ft_get_font_funcs()
+
+  - hb_ot_layout_substitute_start()
+    hb_ot_layout_substitute_lookup()
+    hb_ot_layout_substitute_finish()
+    hb_ot_layout_position_start()
+    hb_ot_layout_position_lookup()
+    hb_ot_layout_position_finish()
+
+
+
+Overview of changes leading to 0.6.0
+Friday, May 27, 2011
+====================================
+
+- Vertical text support in GPOS
+- Almost all API entries have unit tests now, under test/
+- All thread-safety issues are fixed
+
+Summary of API changes follows.
+
+
+* Simple Types API:
+
+  o New API:
+    HB_LANGUAGE_INVALID
+    hb_language_get_default()
+    hb_direction_to_string()
+    hb_direction_from_string()
+    hb_script_get_horizontal_direction()
+    HB_UNTAG()
+
+  o Renamed API:
+    hb_category_t renamed to hb_unicode_general_category_t
+
+  o Changed API:
+    hb_language_t is a typed pointers now
+
+  o Removed API:
+    HB_TAG_STR()
+
+
+* Use ISO 15924 tags for hb_script_t:
+
+  o New API:
+    hb_script_from_iso15924_tag()
+    hb_script_to_iso15924_tag()
+    hb_script_from_string()
+
+  o Changed API:
+    HB_SCRIPT_* enum members changed value.
+
+
+* Buffer API streamlined:
+
+  o New API:
+    hb_buffer_reset()
+    hb_buffer_set_length()
+    hb_buffer_allocation_successful()
+
+  o Renamed API:
+    hb_buffer_ensure() renamed to hb_buffer_pre_allocate()
+    hb_buffer_add_glyph() renamed to hb_buffer_add()
+
+  o Removed API:
+    hb_buffer_clear()
+    hb_buffer_clear_positions()
+
+  o Changed API:
+    hb_buffer_get_glyph_infos() takes an out length parameter now
+    hb_buffer_get_glyph_positions() takes an out length parameter now
+
+
+* Blob API streamlined:
+
+  o New API:
+    hb_blob_get_data()
+    hb_blob_get_data_writable()
+
+  o Renamed API:
+    hb_blob_create_empty() renamed to hb_blob_get_empty()
+
+  o Removed API:
+    hb_blob_lock()
+    hb_blob_unlock()
+    hb_blob_is_writable()
+    hb_blob_try_writable()
+
+  o Changed API:
+    hb_blob_create() takes user_data before destroy now
+
+
+* Unicode functions API:
+
+  o Unicode function vectors can subclass other unicode function vectors now.
+    Unimplemented callbacks in the subclass automatically chainup to the parent.
+
+  o All hb_unicode_funcs_t callbacks take a user_data now.  Their setters
+    take a user_data and its respective destroy callback.
+
+  o New API:
+    hb_unicode_funcs_get_empty()
+    hb_unicode_funcs_get_default()
+    hb_unicode_funcs_get_parent()
+
+  o Changed API:
+    hb_unicode_funcs_create() now takes a parent_funcs.
+
+  o Removed func getter functions:
+    hb_unicode_funcs_get_mirroring_func()
+    hb_unicode_funcs_get_general_category_func()
+    hb_unicode_funcs_get_script_func()
+    hb_unicode_funcs_get_combining_class_func()
+    hb_unicode_funcs_get_eastasian_width_func()
+
+
+* Face API:
+
+  o Renamed API:
+    hb_face_get_table() renamed to hb_face_reference_table()
+    hb_face_create_for_data() renamed to hb_face_create()
+
+  o Changed API:
+    hb_face_create_for_tables() takes user_data before destroy now
+    hb_face_reference_table() returns empty blob instead of NULL
+    hb_get_table_func_t accepts the face as first parameter now
+
+* Font API:
+
+  o Fonts can subclass other fonts now.  Unimplemented callbacks in the
+    subclass automatically chainup to the parent.  When chaining up,
+    scale is adjusted if the parent font has a different scale.
+
+  o All hb_font_funcs_t callbacks take a user_data now.  Their setters
+    take a user_data and its respective destroy callback.
+
+  o New API:
+    hb_font_get_parent()
+    hb_font_funcs_get_empty()
+    hb_font_create_sub_font()
+
+  o Removed API:
+    hb_font_funcs_copy()
+    hb_font_unset_funcs()
+
+  o Removed func getter functions:
+    hb_font_funcs_get_glyph_func()
+    hb_font_funcs_get_glyph_advance_func()
+    hb_font_funcs_get_glyph_extents_func()
+    hb_font_funcs_get_contour_point_func()
+    hb_font_funcs_get_kerning_func()
+
+  o Changed API:
+    hb_font_create() takes a face and references it now
+    hb_font_set_funcs() takes user_data before destroy now
+    hb_font_set_scale() accepts signed integers now
+    hb_font_get_contour_point_func_t now takes glyph first, then point_index
+    hb_font_get_glyph_func_t returns a success boolean now
+
+
+* Changed object model:
+
+  o All object types have a _get_empty() now:
+    hb_blob_get_empty()
+    hb_buffer_get_empty()
+    hb_face_get_empty()
+    hb_font_get_empty()
+    hb_font_funcs_get_empty()
+    hb_unicode_funcs_get_empty()
+
+  o Added _set_user_data() and _get_user_data() for all object types:
+    hb_blob_get_user_data()
+    hb_blob_set_user_data()
+    hb_buffer_get_user_data()
+    hb_buffer_set_user_data()
+    hb_face_get_user_data()
+    hb_face_set_user_data()
+    hb_font_funcs_get_user_data()
+    hb_font_funcs_set_user_data()
+    hb_font_get_user_data()
+    hb_font_set_user_data()
+    hb_unicode_funcs_get_user_data()
+    hb_unicode_funcs_set_user_data()
+
+  o Removed the _get_reference_count() from all object types:
+    hb_blob_get_reference_count()
+    hb_buffer_get_reference_count()
+    hb_face_get_reference_count()
+    hb_font_funcs_get_reference_count()
+    hb_font_get_reference_count()
+    hb_unicode_funcs_get_reference_count()
+
+  o Added _make_immutable() and _is_immutable() for all object types except for buffer:
+    hb_blob_make_immutable()
+    hb_blob_is_immutable()
+    hb_face_make_immutable()
+    hb_face_is_immutable()
+
+
+* Changed API for vertical text support
+
+  o The following callbacks where removed:
+    hb_font_get_glyph_advance_func_t
+    hb_font_get_kerning_func_t
+
+  o The following new callbacks added instead:
+    hb_font_get_glyph_h_advance_func_t
+    hb_font_get_glyph_v_advance_func_t
+    hb_font_get_glyph_h_origin_func_t
+    hb_font_get_glyph_v_origin_func_t
+    hb_font_get_glyph_h_kerning_func_t
+    hb_font_get_glyph_v_kerning_func_t
+
+  o The following API removed as such:
+    hb_font_funcs_set_glyph_advance_func()
+    hb_font_funcs_set_kerning_func()
+    hb_font_get_glyph_advance()
+    hb_font_get_kerning()
+
+  o New API added instead:
+    hb_font_funcs_set_glyph_h_advance_func()
+    hb_font_funcs_set_glyph_v_advance_func()
+    hb_font_funcs_set_glyph_h_origin_func()
+    hb_font_funcs_set_glyph_v_origin_func()
+    hb_font_funcs_set_glyph_h_kerning_func()
+    hb_font_funcs_set_glyph_v_kerning_func()
+    hb_font_get_glyph_h_advance()
+    hb_font_get_glyph_v_advance()
+    hb_font_get_glyph_h_origin()
+    hb_font_get_glyph_v_origin()
+    hb_font_get_glyph_h_kerning()
+    hb_font_get_glyph_v_kerning()
+
+  o The following higher-leve API added for convenience:
+    hb_font_get_glyph_advance_for_direction()
+    hb_font_get_glyph_origin_for_direction()
+    hb_font_add_glyph_origin_for_direction()
+    hb_font_subtract_glyph_origin_for_direction()
+    hb_font_get_glyph_kerning_for_direction()
+    hb_font_get_glyph_extents_for_origin()
+    hb_font_get_glyph_contour_point_for_origin()
+
+
+* OpenType Layout API:
+
+  o New API:
+    hb_ot_layout_position_start()
+    hb_ot_layout_substitute_start()
+    hb_ot_layout_substitute_finish()
+
+
+* Glue code:
+
+  o New API:
+    hb_glib_script_to_script()
+    hb_glib_script_from_script()
+    hb_icu_script_to_script()
+    hb_icu_script_from_script()
+
+
+* Version API added:
+
+  o New API:
+    HB_VERSION_MAJOR
+    HB_VERSION_MINOR
+    HB_VERSION_MICRO
+    HB_VERSION_STRING
+    HB_VERSION_CHECK()
+    hb_version()
+    hb_version_string()
+    hb_version_check()
+
+
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..74e739d
--- /dev/null
+++ b/README
@@ -0,0 +1,7 @@
+This is HarfBuzz, a text shaping library.
+
+For bug reports, mailing list, and other information please visit:
+
+  http://harfbuzz.org/
+
+For license information, see the file COPYING.
diff --git a/THANKS b/THANKS
new file mode 100644 (file)
index 0000000..940cfde
--- /dev/null
+++ b/THANKS
@@ -0,0 +1,7 @@
+Bradley Grainger
+Khaled Hosny
+Kenichi Ishibashi
+Ryan Lortie
+Jeff Muizelaar
+suzuki toshiya
+Philip Withnall
diff --git a/TODO b/TODO
new file mode 100644 (file)
index 0000000..e1aa39c
--- /dev/null
+++ b/TODO
@@ -0,0 +1,81 @@
+General fixes:
+=============
+
+- AAT 'morx' implementation.
+
+- Return "safe-to-break" bit from shaping.
+
+- Implement 'rand' feature.
+
+- mask propagation? (when ligation, "or" the masks).
+
+- Warn at compile time (and runtime with HB_DEBUG?) if no Unicode / font
+  funcs found / set.
+
+- Do proper rounding when scaling from font space?  May be a non-issue.
+
+- Misc features:
+  * init/medi/fina/isol for non-cursive scripts
+
+
+API issues to fix before 1.0:
+============================
+
+- API to accept a list of languages?
+
+- Add init_func to font_funcs.  Adjust ft.
+
+- hb-ft load_flags issues.
+
+- Add pkg-config files for glue codes (harfbuzz-glib, etc)
+
+- 'const' for getter APIs? (use mutable internally)
+
+- Remove hb_ot_shape_glyphs_closure()?
+
+
+API additions
+=============
+
+- Language to/from script.
+
+- blob_from_file?
+
+- Add hb-cairo glue
+
+- Add sanitize API (and a cached version, that saves result on blob user-data)
+
+- BCP 47 language handling / API (language_matches?)
+
+- Add hb_font_create_unscaled()?
+
+- Add query / enumeration API for aalt-like features?
+
+- SFNT api? get_num_faces? get_table_tags? (there's something in stash)
+
+- Add segmentation API
+
+- Add hb-fribidi glue?
+
+
+hb-view / hb-shape enhancements:
+===============================
+
+- Add --width, --height, --auto-size, --ink-box, --align, etc?
+
+
+Tests to write:
+==============
+
+- ot-layout enumeration API (needs font)
+
+- Finish test-shape.c, grep for TODO
+
+- Finish test-unicode.c, grep for TODO
+
+- GObject, FreeType, etc
+
+- hb_cache_t and relatives
+
+- hb_feature_to/from_string
+- hb_buffer_[sg]et_contents
diff --git a/aclocal.m4 b/aclocal.m4
new file mode 100644 (file)
index 0000000..0a02487
--- /dev/null
@@ -0,0 +1,1314 @@
+# generated automatically by aclocal 1.14 -*- Autoconf -*-
+
+# Copyright (C) 1996-2013 Free Software Foundation, Inc.
+
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
+m4_ifndef([AC_AUTOCONF_VERSION],
+  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
+[m4_warning([this file was generated for autoconf 2.69.
+You have another version of autoconf.  It may work, but is not guaranteed to.
+If you have problems, you may need to regenerate the build system entirely.
+To do so, use the procedure documented by the package, typically 'autoreconf'.])])
+
+dnl -*- mode: autoconf -*-
+dnl Copyright 2009 Johan Dahlin
+dnl
+dnl This file is free software; the author(s) gives unlimited
+dnl permission to copy and/or distribute it, with or without
+dnl modifications, as long as this notice is preserved.
+dnl
+
+# serial 1
+
+m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
+[
+    AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
+    AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
+    AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
+
+    dnl enable/disable introspection
+    m4_if([$2], [require],
+    [dnl
+        enable_introspection=yes
+    ],[dnl
+        AC_ARG_ENABLE(introspection,
+                  AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
+                                 [Enable introspection for this build]),, 
+                                 [enable_introspection=auto])
+    ])dnl
+
+    AC_MSG_CHECKING([for gobject-introspection])
+
+    dnl presence/version checking
+    AS_CASE([$enable_introspection],
+    [no], [dnl
+        found_introspection="no (disabled, use --enable-introspection to enable)"
+    ],dnl
+    [yes],[dnl
+        PKG_CHECK_EXISTS([gobject-introspection-1.0],,
+                         AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
+        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
+                         found_introspection=yes,
+                         AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
+    ],dnl
+    [auto],[dnl
+        PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
+       dnl Canonicalize enable_introspection
+       enable_introspection=$found_introspection
+    ],dnl
+    [dnl       
+        AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
+    ])dnl
+
+    AC_MSG_RESULT([$found_introspection])
+
+    INTROSPECTION_SCANNER=
+    INTROSPECTION_COMPILER=
+    INTROSPECTION_GENERATE=
+    INTROSPECTION_GIRDIR=
+    INTROSPECTION_TYPELIBDIR=
+    if test "x$found_introspection" = "xyes"; then
+       INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
+       INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
+       INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
+       INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
+       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
+       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
+       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
+       INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
+    fi
+    AC_SUBST(INTROSPECTION_SCANNER)
+    AC_SUBST(INTROSPECTION_COMPILER)
+    AC_SUBST(INTROSPECTION_GENERATE)
+    AC_SUBST(INTROSPECTION_GIRDIR)
+    AC_SUBST(INTROSPECTION_TYPELIBDIR)
+    AC_SUBST(INTROSPECTION_CFLAGS)
+    AC_SUBST(INTROSPECTION_LIBS)
+    AC_SUBST(INTROSPECTION_MAKEFILE)
+
+    AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
+])
+
+
+dnl Usage:
+dnl   GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
+
+AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
+[
+  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
+])
+
+dnl Usage:
+dnl   GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
+
+
+AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
+[
+  _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
+])
+
+# Copyright (C) 2002-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_AUTOMAKE_VERSION(VERSION)
+# ----------------------------
+# Automake X.Y traces this macro to ensure aclocal.m4 has been
+# generated from the m4 files accompanying Automake X.Y.
+# (This private macro should not be called outside this file.)
+AC_DEFUN([AM_AUTOMAKE_VERSION],
+[am__api_version='1.14'
+dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
+dnl require some minimum version.  Point them to the right macro.
+m4_if([$1], [1.14], [],
+      [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
+])
+
+# _AM_AUTOCONF_VERSION(VERSION)
+# -----------------------------
+# aclocal traces this macro to find the Autoconf version.
+# This is a private macro too.  Using m4_define simplifies
+# the logic in aclocal, which can simply ignore this definition.
+m4_define([_AM_AUTOCONF_VERSION], [])
+
+# AM_SET_CURRENT_AUTOMAKE_VERSION
+# -------------------------------
+# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
+# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
+[AM_AUTOMAKE_VERSION([1.14])dnl
+m4_ifndef([AC_AUTOCONF_VERSION],
+  [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
+
+# Copyright (C) 2011-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_AR([ACT-IF-FAIL])
+# -------------------------
+# Try to determine the archiver interface, and trigger the ar-lib wrapper
+# if it is needed.  If the detection of archiver interface fails, run
+# ACT-IF-FAIL (default is to abort configure with a proper error message).
+AC_DEFUN([AM_PROG_AR],
+[AC_BEFORE([$0], [LT_INIT])dnl
+AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
+AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+AC_REQUIRE_AUX_FILE([ar-lib])dnl
+AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
+: ${AR=ar}
+
+AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
+  [AC_LANG_PUSH([C])
+   am_cv_ar_interface=ar
+   AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
+     [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
+      AC_TRY_EVAL([am_ar_try])
+      if test "$ac_status" -eq 0; then
+        am_cv_ar_interface=ar
+      else
+        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
+        AC_TRY_EVAL([am_ar_try])
+        if test "$ac_status" -eq 0; then
+          am_cv_ar_interface=lib
+        else
+          am_cv_ar_interface=unknown
+        fi
+      fi
+      rm -f conftest.lib libconftest.a
+     ])
+   AC_LANG_POP([C])])
+
+case $am_cv_ar_interface in
+ar)
+  ;;
+lib)
+  # Microsoft lib, so override with the ar-lib wrapper script.
+  # FIXME: It is wrong to rewrite AR.
+  # But if we don't then we get into trouble of one sort or another.
+  # A longer-term fix would be to have automake use am__AR in this case,
+  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
+  # similar.
+  AR="$am_aux_dir/ar-lib $AR"
+  ;;
+unknown)
+  m4_default([$1],
+             [AC_MSG_ERROR([could not determine $AR interface])])
+  ;;
+esac
+AC_SUBST([AR])dnl
+])
+
+# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
+
+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
+# $ac_aux_dir to '$srcdir/foo'.  In other projects, it is set to
+# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
+#
+# Of course, Automake must honor this variable whenever it calls a
+# tool from the auxiliary directory.  The problem is that $srcdir (and
+# therefore $ac_aux_dir as well) can be either absolute or relative,
+# depending on how configure is run.  This is pretty annoying, since
+# it makes $ac_aux_dir quite unusable in subdirectories: in the top
+# source directory, any form will work fine, but in subdirectories a
+# relative path needs to be adjusted first.
+#
+# $ac_aux_dir/missing
+#    fails when called from a subdirectory if $ac_aux_dir is relative
+# $top_srcdir/$ac_aux_dir/missing
+#    fails if $ac_aux_dir is absolute,
+#    fails when called from a subdirectory in a VPATH build with
+#          a relative $ac_aux_dir
+#
+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
+# are both prefixed by $srcdir.  In an in-source build this is usually
+# harmless because $srcdir is '.', but things will broke when you
+# start a VPATH build or use an absolute $srcdir.
+#
+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
+# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
+#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
+# and then we would define $MISSING as
+#   MISSING="\${SHELL} $am_aux_dir/missing"
+# This will work as long as MISSING is not called from configure, because
+# unfortunately $(top_srcdir) has no meaning in configure.
+# However there are other variables, like CC, which are often used in
+# configure, and could therefore not use this "fixed" $ac_aux_dir.
+#
+# Another solution, used here, is to always expand $ac_aux_dir to an
+# absolute PATH.  The drawback is that using absolute paths prevent a
+# configured tree to be moved without reconfiguration.
+
+AC_DEFUN([AM_AUX_DIR_EXPAND],
+[dnl Rely on autoconf to set up CDPATH properly.
+AC_PREREQ([2.50])dnl
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+])
+
+# AM_CONDITIONAL                                            -*- Autoconf -*-
+
+# Copyright (C) 1997-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_CONDITIONAL(NAME, SHELL-CONDITION)
+# -------------------------------------
+# Define a conditional.
+AC_DEFUN([AM_CONDITIONAL],
+[AC_PREREQ([2.52])dnl
+ m4_if([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
+       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
+AC_SUBST([$1_TRUE])dnl
+AC_SUBST([$1_FALSE])dnl
+_AM_SUBST_NOTMAKE([$1_TRUE])dnl
+_AM_SUBST_NOTMAKE([$1_FALSE])dnl
+m4_define([_AM_COND_VALUE_$1], [$2])dnl
+if $2; then
+  $1_TRUE=
+  $1_FALSE='#'
+else
+  $1_TRUE='#'
+  $1_FALSE=
+fi
+AC_CONFIG_COMMANDS_PRE(
+[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
+  AC_MSG_ERROR([[conditional "$1" was never defined.
+Usually this means the macro was only invoked conditionally.]])
+fi])])
+
+# Copyright (C) 1999-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+
+# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
+# written in clear, in which case automake, when reading aclocal.m4,
+# will think it sees a *use*, and therefore will trigger all it's
+# C support machinery.  Also note that it means that autoscan, seeing
+# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
+
+
+# _AM_DEPENDENCIES(NAME)
+# ----------------------
+# See how the compiler implements dependency checking.
+# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
+# We try a few techniques and use that to set a single cache variable.
+#
+# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
+# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
+# dependency, and given that the user is not expected to run this macro,
+# just rely on AC_PROG_CC.
+AC_DEFUN([_AM_DEPENDENCIES],
+[AC_REQUIRE([AM_SET_DEPDIR])dnl
+AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
+AC_REQUIRE([AM_MAKE_INCLUDE])dnl
+AC_REQUIRE([AM_DEP_TRACK])dnl
+
+m4_if([$1], [CC],   [depcc="$CC"   am_compiler_list=],
+      [$1], [CXX],  [depcc="$CXX"  am_compiler_list=],
+      [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
+      [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
+      [$1], [UPC],  [depcc="$UPC"  am_compiler_list=],
+      [$1], [GCJ],  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
+                    [depcc="$$1"   am_compiler_list=])
+
+AC_CACHE_CHECK([dependency style of $depcc],
+               [am_cv_$1_dependencies_compiler_type],
+[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+  # We make a subdir and do the tests there.  Otherwise we can end up
+  # making bogus files that we don't know about and never remove.  For
+  # instance it was reported that on HP-UX the gcc test will end up
+  # making a dummy file named 'D' -- because '-MD' means "put the output
+  # in D".
+  rm -rf conftest.dir
+  mkdir conftest.dir
+  # Copy depcomp to subdir because otherwise we won't find it if we're
+  # using a relative directory.
+  cp "$am_depcomp" conftest.dir
+  cd conftest.dir
+  # We will build objects and dependencies in a subdirectory because
+  # it helps to detect inapplicable dependency modes.  For instance
+  # both Tru64's cc and ICC support -MD to output dependencies as a
+  # side effect of compilation, but ICC will put the dependencies in
+  # the current directory while Tru64 will put them in the object
+  # directory.
+  mkdir sub
+
+  am_cv_$1_dependencies_compiler_type=none
+  if test "$am_compiler_list" = ""; then
+     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
+  fi
+  am__universal=false
+  m4_case([$1], [CC],
+    [case " $depcc " in #(
+     *\ -arch\ *\ -arch\ *) am__universal=true ;;
+     esac],
+    [CXX],
+    [case " $depcc " in #(
+     *\ -arch\ *\ -arch\ *) am__universal=true ;;
+     esac])
+
+  for depmode in $am_compiler_list; do
+    # Setup a source with many dependencies, because some compilers
+    # like to wrap large dependency lists on column 80 (with \), and
+    # we should not choose a depcomp mode which is confused by this.
+    #
+    # We need to recreate these files for each test, as the compiler may
+    # overwrite some of them when testing with obscure command lines.
+    # This happens at least with the AIX C compiler.
+    : > sub/conftest.c
+    for i in 1 2 3 4 5 6; do
+      echo '#include "conftst'$i'.h"' >> sub/conftest.c
+      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
+      # Solaris 10 /bin/sh.
+      echo '/* dummy */' > sub/conftst$i.h
+    done
+    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+    # We check with '-c' and '-o' for the sake of the "dashmstdout"
+    # mode.  It turns out that the SunPro C++ compiler does not properly
+    # handle '-M -o', and we need to detect this.  Also, some Intel
+    # versions had trouble with output in subdirs.
+    am__obj=sub/conftest.${OBJEXT-o}
+    am__minus_obj="-o $am__obj"
+    case $depmode in
+    gcc)
+      # This depmode causes a compiler race in universal mode.
+      test "$am__universal" = false || continue
+      ;;
+    nosideeffect)
+      # After this tag, mechanisms are not by side-effect, so they'll
+      # only be used when explicitly requested.
+      if test "x$enable_dependency_tracking" = xyes; then
+       continue
+      else
+       break
+      fi
+      ;;
+    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
+      # This compiler won't grok '-c -o', but also, the minuso test has
+      # not run yet.  These depmodes are late enough in the game, and
+      # so weak that their functioning should not be impacted.
+      am__obj=conftest.${OBJEXT-o}
+      am__minus_obj=
+      ;;
+    none) break ;;
+    esac
+    if depmode=$depmode \
+       source=sub/conftest.c object=$am__obj \
+       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
+         >/dev/null 2>conftest.err &&
+       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
+       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+      # icc doesn't choke on unknown options, it will just issue warnings
+      # or remarks (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored or not supported.
+      # When given -MP, icc 7.0 and 7.1 complain thusly:
+      #   icc: Command line warning: ignoring option '-M'; no argument required
+      # The diagnosis changed in icc 8.0:
+      #   icc: Command line remark: option '-MP' not supported
+      if (grep 'ignoring option' conftest.err ||
+          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+        am_cv_$1_dependencies_compiler_type=$depmode
+        break
+      fi
+    fi
+  done
+
+  cd ..
+  rm -rf conftest.dir
+else
+  am_cv_$1_dependencies_compiler_type=none
+fi
+])
+AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
+AM_CONDITIONAL([am__fastdep$1], [
+  test "x$enable_dependency_tracking" != xno \
+  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
+])
+
+
+# AM_SET_DEPDIR
+# -------------
+# Choose a directory name for dependency files.
+# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
+AC_DEFUN([AM_SET_DEPDIR],
+[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
+])
+
+
+# AM_DEP_TRACK
+# ------------
+AC_DEFUN([AM_DEP_TRACK],
+[AC_ARG_ENABLE([dependency-tracking], [dnl
+AS_HELP_STRING(
+  [--enable-dependency-tracking],
+  [do not reject slow dependency extractors])
+AS_HELP_STRING(
+  [--disable-dependency-tracking],
+  [speeds up one-time build])])
+if test "x$enable_dependency_tracking" != xno; then
+  am_depcomp="$ac_aux_dir/depcomp"
+  AMDEPBACKSLASH='\'
+  am__nodep='_no'
+fi
+AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
+AC_SUBST([AMDEPBACKSLASH])dnl
+_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
+AC_SUBST([am__nodep])dnl
+_AM_SUBST_NOTMAKE([am__nodep])dnl
+])
+
+# Generate code to set up dependency tracking.              -*- Autoconf -*-
+
+# Copyright (C) 1999-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+
+# _AM_OUTPUT_DEPENDENCY_COMMANDS
+# ------------------------------
+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
+[{
+  # Older Autoconf quotes --file arguments for eval, but not when files
+  # are listed without --file.  Let's play safe and only enable the eval
+  # if we detect the quoting.
+  case $CONFIG_FILES in
+  *\'*) eval set x "$CONFIG_FILES" ;;
+  *)   set x $CONFIG_FILES ;;
+  esac
+  shift
+  for mf
+  do
+    # Strip MF so we end up with the name of the file.
+    mf=`echo "$mf" | sed -e 's/:.*$//'`
+    # Check whether this is an Automake generated Makefile or not.
+    # We used to match only the files named 'Makefile.in', but
+    # some people rename them; so instead we look at the file content.
+    # Grep'ing the first line is not enough: some people post-process
+    # each Makefile.in and add a new line on top of each file to say so.
+    # Grep'ing the whole file is not good either: AIX grep has a line
+    # limit of 2048, but all sed's we know have understand at least 4000.
+    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
+      dirpart=`AS_DIRNAME("$mf")`
+    else
+      continue
+    fi
+    # Extract the definition of DEPDIR, am__include, and am__quote
+    # from the Makefile without running 'make'.
+    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+    test -z "$DEPDIR" && continue
+    am__include=`sed -n 's/^am__include = //p' < "$mf"`
+    test -z "$am__include" && continue
+    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+    # Find all dependency output files, they are included files with
+    # $(DEPDIR) in their names.  We invoke sed twice because it is the
+    # simplest approach to changing $(DEPDIR) to its actual value in the
+    # expansion.
+    for file in `sed -n "
+      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
+        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
+      # Make sure the directory exists.
+      test -f "$dirpart/$file" && continue
+      fdir=`AS_DIRNAME(["$file"])`
+      AS_MKDIR_P([$dirpart/$fdir])
+      # echo "creating $dirpart/$file"
+      echo '# dummy' > "$dirpart/$file"
+    done
+  done
+}
+])# _AM_OUTPUT_DEPENDENCY_COMMANDS
+
+
+# AM_OUTPUT_DEPENDENCY_COMMANDS
+# -----------------------------
+# This macro should only be invoked once -- use via AC_REQUIRE.
+#
+# This code is only required when automatic dependency tracking
+# is enabled.  FIXME.  This creates each '.P' file that we will
+# need in order to bootstrap the dependency handling code.
+AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
+[AC_CONFIG_COMMANDS([depfiles],
+     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
+     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
+])
+
+# Do all the work for Automake.                             -*- Autoconf -*-
+
+# Copyright (C) 1996-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This macro actually does too much.  Some checks are only needed if
+# your package does certain things.  But this isn't really a big deal.
+
+dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
+m4_define([AC_PROG_CC],
+m4_defn([AC_PROG_CC])
+[_AM_PROG_CC_C_O
+])
+
+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
+# AM_INIT_AUTOMAKE([OPTIONS])
+# -----------------------------------------------
+# The call with PACKAGE and VERSION arguments is the old style
+# call (pre autoconf-2.50), which is being phased out.  PACKAGE
+# and VERSION should now be passed to AC_INIT and removed from
+# the call to AM_INIT_AUTOMAKE.
+# We support both call styles for the transition.  After
+# the next Automake release, Autoconf can make the AC_INIT
+# arguments mandatory, and then we can depend on a new Autoconf
+# release and drop the old call support.
+AC_DEFUN([AM_INIT_AUTOMAKE],
+[AC_PREREQ([2.65])dnl
+dnl Autoconf wants to disallow AM_ names.  We explicitly allow
+dnl the ones we care about.
+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
+AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
+AC_REQUIRE([AC_PROG_INSTALL])dnl
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+  # is not polluted with repeated "-I."
+  AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
+  # test to see if srcdir already configured
+  if test -f $srcdir/config.status; then
+    AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
+  fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+  if (cygpath --version) >/dev/null 2>/dev/null; then
+    CYGPATH_W='cygpath -w'
+  else
+    CYGPATH_W=echo
+  fi
+fi
+AC_SUBST([CYGPATH_W])
+
+# Define the identity of the package.
+dnl Distinguish between old-style and new-style calls.
+m4_ifval([$2],
+[AC_DIAGNOSE([obsolete],
+             [$0: two- and three-arguments forms are deprecated.])
+m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
+ AC_SUBST([PACKAGE], [$1])dnl
+ AC_SUBST([VERSION], [$2])],
+[_AM_SET_OPTIONS([$1])dnl
+dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
+m4_if(
+  m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
+  [ok:ok],,
+  [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
+
+_AM_IF_OPTION([no-define],,
+[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
+ AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
+
+# Some tools Automake needs.
+AC_REQUIRE([AM_SANITY_CHECK])dnl
+AC_REQUIRE([AC_ARG_PROGRAM])dnl
+AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
+AM_MISSING_PROG([AUTOCONF], [autoconf])
+AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
+AM_MISSING_PROG([AUTOHEADER], [autoheader])
+AM_MISSING_PROG([MAKEINFO], [makeinfo])
+AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
+# For better backward compatibility.  To be removed once Automake 1.9.x
+# dies out for good.  For more background, see:
+# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
+# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
+AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
+# We need awk for the "check" target.  The system "awk" is bad on
+# some platforms.
+AC_REQUIRE([AC_PROG_AWK])dnl
+AC_REQUIRE([AC_PROG_MAKE_SET])dnl
+AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
+             [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
+                            [_AM_PROG_TAR([v7])])])
+_AM_IF_OPTION([no-dependencies],,
+[AC_PROVIDE_IFELSE([AC_PROG_CC],
+                 [_AM_DEPENDENCIES([CC])],
+                 [m4_define([AC_PROG_CC],
+                            m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_CXX],
+                 [_AM_DEPENDENCIES([CXX])],
+                 [m4_define([AC_PROG_CXX],
+                            m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_OBJC],
+                 [_AM_DEPENDENCIES([OBJC])],
+                 [m4_define([AC_PROG_OBJC],
+                            m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
+                 [_AM_DEPENDENCIES([OBJCXX])],
+                 [m4_define([AC_PROG_OBJCXX],
+                            m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
+])
+AC_REQUIRE([AM_SILENT_RULES])dnl
+dnl The testsuite driver may need to know about EXEEXT, so add the
+dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This
+dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
+AC_CONFIG_COMMANDS_PRE(dnl
+[m4_provide_if([_AM_COMPILER_EXEEXT],
+  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
+
+# POSIX will say in a future version that running "rm -f" with no argument
+# is OK; and we want to be able to make that assumption in our Makefile
+# recipes.  So use an aggressive probe to check that the usage we want is
+# actually supported "in the wild" to an acceptable degree.
+# See automake bug#10828.
+# To make any issue more visible, cause the running configure to be aborted
+# by default if the 'rm' program in use doesn't match our expectations; the
+# user can still override this though.
+if rm -f && rm -fr && rm -rf; then : OK; else
+  cat >&2 <<'END'
+Oops!
+
+Your 'rm' program seems unable to run without file operands specified
+on the command line, even when the '-f' option is present.  This is contrary
+to the behaviour of most rm programs out there, and not conforming with
+the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
+
+Please tell bug-automake@gnu.org about your system, including the value
+of your $PATH and any error possibly output before this message.  This
+can help us improve future automake versions.
+
+END
+  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
+    echo 'Configuration will proceed anyway, since you have set the' >&2
+    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
+    echo >&2
+  else
+    cat >&2 <<'END'
+Aborting the configuration process, to ensure you take notice of the issue.
+
+You can download and install GNU coreutils to get an 'rm' implementation
+that behaves properly: <http://www.gnu.org/software/coreutils/>.
+
+If you want to complete the configuration process using your problematic
+'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
+to "yes", and re-run configure.
+
+END
+    AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
+  fi
+fi])
+
+dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
+dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
+dnl mangled by Autoconf and run in a shell conditional statement.
+m4_define([_AC_COMPILER_EXEEXT],
+m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
+
+# When config.status generates a header, we must update the stamp-h file.
+# This file resides in the same directory as the config header
+# that is generated.  The stamp files are numbered to have different names.
+
+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
+# loop where config.status creates the headers, so we can generate
+# our stamp files there.
+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
+[# Compute $1's index in $config_headers.
+_am_arg=$1
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+  case $_am_header in
+    $_am_arg | $_am_arg:* )
+      break ;;
+    * )
+      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+  esac
+done
+echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
+
+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_INSTALL_SH
+# ------------------
+# Define $install_sh.
+AC_DEFUN([AM_PROG_INSTALL_SH],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+if test x"${install_sh}" != xset; then
+  case $am_aux_dir in
+  *\ * | *\    *)
+    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
+  *)
+    install_sh="\${SHELL} $am_aux_dir/install-sh"
+  esac
+fi
+AC_SUBST([install_sh])])
+
+# Copyright (C) 2003-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# Check whether the underlying file-system supports filenames
+# with a leading dot.  For instance MS-DOS doesn't.
+AC_DEFUN([AM_SET_LEADING_DOT],
+[rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+  am__leading_dot=.
+else
+  am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+AC_SUBST([am__leading_dot])])
+
+# Check to see how 'make' treats includes.                 -*- Autoconf -*-
+
+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_MAKE_INCLUDE()
+# -----------------
+# Check to see how make treats includes.
+AC_DEFUN([AM_MAKE_INCLUDE],
+[am_make=${MAKE-make}
+cat > confinc << 'END'
+am__doit:
+       @echo this is the am__doit target
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+AC_MSG_CHECKING([for style of include used by $am_make])
+am__include="#"
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# Ignore all kinds of additional output from 'make'.
+case `$am_make -s -f confmf 2> /dev/null` in #(
+*the\ am__doit\ target*)
+  am__include=include
+  am__quote=
+  _am_result=GNU
+  ;;
+esac
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+   echo '.include "confinc"' > confmf
+   case `$am_make -s -f confmf 2> /dev/null` in #(
+   *the\ am__doit\ target*)
+     am__include=.include
+     am__quote="\""
+     _am_result=BSD
+     ;;
+   esac
+fi
+AC_SUBST([am__include])
+AC_SUBST([am__quote])
+AC_MSG_RESULT([$_am_result])
+rm -f confinc confmf
+])
+
+# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
+
+# Copyright (C) 1997-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_MISSING_PROG(NAME, PROGRAM)
+# ------------------------------
+AC_DEFUN([AM_MISSING_PROG],
+[AC_REQUIRE([AM_MISSING_HAS_RUN])
+$1=${$1-"${am_missing_run}$2"}
+AC_SUBST($1)])
+
+# AM_MISSING_HAS_RUN
+# ------------------
+# Define MISSING if not defined so far and test if it is modern enough.
+# If it is, set am_missing_run to use it, otherwise, to nothing.
+AC_DEFUN([AM_MISSING_HAS_RUN],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+AC_REQUIRE_AUX_FILE([missing])dnl
+if test x"${MISSING+set}" != xset; then
+  case $am_aux_dir in
+  *\ * | *\    *)
+    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
+  *)
+    MISSING="\${SHELL} $am_aux_dir/missing" ;;
+  esac
+fi
+# Use eval to expand $SHELL
+if eval "$MISSING --is-lightweight"; then
+  am_missing_run="$MISSING "
+else
+  am_missing_run=
+  AC_MSG_WARN(['missing' script is too old or missing])
+fi
+])
+
+# Helper functions for option handling.                     -*- Autoconf -*-
+
+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# _AM_MANGLE_OPTION(NAME)
+# -----------------------
+AC_DEFUN([_AM_MANGLE_OPTION],
+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
+
+# _AM_SET_OPTION(NAME)
+# --------------------
+# Set option NAME.  Presently that only means defining a flag for this option.
+AC_DEFUN([_AM_SET_OPTION],
+[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
+
+# _AM_SET_OPTIONS(OPTIONS)
+# ------------------------
+# OPTIONS is a space-separated list of Automake options.
+AC_DEFUN([_AM_SET_OPTIONS],
+[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
+
+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
+# -------------------------------------------
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
+AC_DEFUN([_AM_IF_OPTION],
+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
+
+# Copyright (C) 1999-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# _AM_PROG_CC_C_O
+# ---------------
+# Like AC_PROG_CC_C_O, but changed for automake.  We rewrite AC_PROG_CC
+# to automatically call this.
+AC_DEFUN([_AM_PROG_CC_C_O],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+AC_REQUIRE_AUX_FILE([compile])dnl
+AC_LANG_PUSH([C])dnl
+AC_CACHE_CHECK(
+  [whether $CC understands -c and -o together],
+  [am_cv_prog_cc_c_o],
+  [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
+  # Make sure it works both with $CC and with simple cc.
+  # Following AC_PROG_CC_C_O, we do the test twice because some
+  # compilers refuse to overwrite an existing .o file with -o,
+  # though they will create one.
+  am_cv_prog_cc_c_o=yes
+  for am_i in 1 2; do
+    if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
+         && test -f conftest2.$ac_objext; then
+      : OK
+    else
+      am_cv_prog_cc_c_o=no
+      break
+    fi
+  done
+  rm -f core conftest*
+  unset am_i])
+if test "$am_cv_prog_cc_c_o" != yes; then
+   # Losing compiler, so override with the script.
+   # FIXME: It is wrong to rewrite CC.
+   # But if we don't then we get into trouble of one sort or another.
+   # A longer-term fix would be to have automake use am__CC in this case,
+   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
+   CC="$am_aux_dir/compile $CC"
+fi
+AC_LANG_POP([C])])
+
+# For backward compatibility.
+AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
+
+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_RUN_LOG(COMMAND)
+# -------------------
+# Run COMMAND, save the exit status in ac_status, and log it.
+# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
+AC_DEFUN([AM_RUN_LOG],
+[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
+   ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+   (exit $ac_status); }])
+
+# Check to make sure that the build environment is sane.    -*- Autoconf -*-
+
+# Copyright (C) 1996-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_SANITY_CHECK
+# ---------------
+AC_DEFUN([AM_SANITY_CHECK],
+[AC_MSG_CHECKING([whether build environment is sane])
+# Reject unsafe characters in $srcdir or the absolute working directory
+# name.  Accept space and tab only in the latter.
+am_lf='
+'
+case `pwd` in
+  *[[\\\"\#\$\&\'\`$am_lf]]*)
+    AC_MSG_ERROR([unsafe absolute working directory name]);;
+esac
+case $srcdir in
+  *[[\\\"\#\$\&\'\`$am_lf\ \   ]]*)
+    AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
+esac
+
+# Do 'set' in a subshell so we don't clobber the current shell's
+# arguments.  Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+   am_has_slept=no
+   for am_try in 1 2; do
+     echo "timestamp, slept: $am_has_slept" > conftest.file
+     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
+     if test "$[*]" = "X"; then
+       # -L didn't work.
+       set X `ls -t "$srcdir/configure" conftest.file`
+     fi
+     if test "$[*]" != "X $srcdir/configure conftest.file" \
+       && test "$[*]" != "X conftest.file $srcdir/configure"; then
+
+       # If neither matched, then we have a broken ls.  This can happen
+       # if, for instance, CONFIG_SHELL is bash and it inherits a
+       # broken ls alias from the environment.  This has actually
+       # happened.  Such a system could not be considered "sane".
+       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
+  alias in your environment])
+     fi
+     if test "$[2]" = conftest.file || test $am_try -eq 2; then
+       break
+     fi
+     # Just in case.
+     sleep 1
+     am_has_slept=yes
+   done
+   test "$[2]" = conftest.file
+   )
+then
+   # Ok.
+   :
+else
+   AC_MSG_ERROR([newly created file is older than distributed files!
+Check your system clock])
+fi
+AC_MSG_RESULT([yes])
+# If we didn't sleep, we still need to ensure time stamps of config.status and
+# generated files are strictly newer.
+am_sleep_pid=
+if grep 'slept: no' conftest.file >/dev/null 2>&1; then
+  ( sleep 1 ) &
+  am_sleep_pid=$!
+fi
+AC_CONFIG_COMMANDS_PRE(
+  [AC_MSG_CHECKING([that generated files are newer than configure])
+   if test -n "$am_sleep_pid"; then
+     # Hide warnings about reused PIDs.
+     wait $am_sleep_pid 2>/dev/null
+   fi
+   AC_MSG_RESULT([done])])
+rm -f conftest.file
+])
+
+# Copyright (C) 2009-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_SILENT_RULES([DEFAULT])
+# --------------------------
+# Enable less verbose build rules; with the default set to DEFAULT
+# ("yes" being less verbose, "no" or empty being verbose).
+AC_DEFUN([AM_SILENT_RULES],
+[AC_ARG_ENABLE([silent-rules], [dnl
+AS_HELP_STRING(
+  [--enable-silent-rules],
+  [less verbose build output (undo: "make V=1")])
+AS_HELP_STRING(
+  [--disable-silent-rules],
+  [verbose build output (undo: "make V=0")])dnl
+])
+case $enable_silent_rules in @%:@ (((
+  yes) AM_DEFAULT_VERBOSITY=0;;
+   no) AM_DEFAULT_VERBOSITY=1;;
+    *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
+esac
+dnl
+dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
+dnl do not support nested variable expansions.
+dnl See automake bug#9928 and bug#10237.
+am_make=${MAKE-make}
+AC_CACHE_CHECK([whether $am_make supports nested variables],
+   [am_cv_make_support_nested_variables],
+   [if AS_ECHO([['TRUE=$(BAR$(V))
+BAR0=false
+BAR1=true
+V=1
+am__doit:
+       @$(TRUE)
+.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
+  am_cv_make_support_nested_variables=yes
+else
+  am_cv_make_support_nested_variables=no
+fi])
+if test $am_cv_make_support_nested_variables = yes; then
+  dnl Using '$V' instead of '$(V)' breaks IRIX make.
+  AM_V='$(V)'
+  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
+else
+  AM_V=$AM_DEFAULT_VERBOSITY
+  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
+fi
+AC_SUBST([AM_V])dnl
+AM_SUBST_NOTMAKE([AM_V])dnl
+AC_SUBST([AM_DEFAULT_V])dnl
+AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
+AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
+AM_BACKSLASH='\'
+AC_SUBST([AM_BACKSLASH])dnl
+_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
+])
+
+# Copyright (C) 2001-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_INSTALL_STRIP
+# ---------------------
+# One issue with vendor 'install' (even GNU) is that you can't
+# specify the program used to strip binaries.  This is especially
+# annoying in cross-compiling environments, where the build's strip
+# is unlikely to handle the host's binaries.
+# Fortunately install-sh will honor a STRIPPROG variable, so we
+# always use install-sh in "make install-strip", and initialize
+# STRIPPROG with the value of the STRIP variable (set by the user).
+AC_DEFUN([AM_PROG_INSTALL_STRIP],
+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+# Installed binaries are usually stripped using 'strip' when the user
+# run "make install-strip".  However 'strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the 'STRIP' environment variable to overrule this program.
+dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
+if test "$cross_compiling" != no; then
+  AC_CHECK_TOOL([STRIP], [strip], :)
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+AC_SUBST([INSTALL_STRIP_PROGRAM])])
+
+# Copyright (C) 2006-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# _AM_SUBST_NOTMAKE(VARIABLE)
+# ---------------------------
+# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
+# This macro is traced by Automake.
+AC_DEFUN([_AM_SUBST_NOTMAKE])
+
+# AM_SUBST_NOTMAKE(VARIABLE)
+# --------------------------
+# Public sister of _AM_SUBST_NOTMAKE.
+AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
+
+# Check how to create a tarball.                            -*- Autoconf -*-
+
+# Copyright (C) 2004-2013 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# _AM_PROG_TAR(FORMAT)
+# --------------------
+# Check how to create a tarball in format FORMAT.
+# FORMAT should be one of 'v7', 'ustar', or 'pax'.
+#
+# Substitute a variable $(am__tar) that is a command
+# writing to stdout a FORMAT-tarball containing the directory
+# $tardir.
+#     tardir=directory && $(am__tar) > result.tar
+#
+# Substitute a variable $(am__untar) that extract such
+# a tarball read from stdin.
+#     $(am__untar) < result.tar
+#
+AC_DEFUN([_AM_PROG_TAR],
+[# Always define AMTAR for backward compatibility.  Yes, it's still used
+# in the wild :-(  We should find a proper way to deprecate it ...
+AC_SUBST([AMTAR], ['$${TAR-tar}'])
+
+# We'll loop over all known methods to create a tar archive until one works.
+_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
+
+m4_if([$1], [v7],
+  [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
+
+  [m4_case([$1],
+    [ustar],
+     [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
+      # There is notably a 21 bits limit for the UID and the GID.  In fact,
+      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
+      # and bug#13588).
+      am_max_uid=2097151 # 2^21 - 1
+      am_max_gid=$am_max_uid
+      # The $UID and $GID variables are not portable, so we need to resort
+      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
+      # below are definitely unexpected, so allow the users to see them
+      # (that is, avoid stderr redirection).
+      am_uid=`id -u || echo unknown`
+      am_gid=`id -g || echo unknown`
+      AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
+      if test $am_uid -le $am_max_uid; then
+         AC_MSG_RESULT([yes])
+      else
+         AC_MSG_RESULT([no])
+         _am_tools=none
+      fi
+      AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
+      if test $am_gid -le $am_max_gid; then
+         AC_MSG_RESULT([yes])
+      else
+        AC_MSG_RESULT([no])
+        _am_tools=none
+      fi],
+
+  [pax],
+    [],
+
+  [m4_fatal([Unknown tar format])])
+
+  AC_MSG_CHECKING([how to create a $1 tar archive])
+
+  # Go ahead even if we have the value already cached.  We do so because we
+  # need to set the values for the 'am__tar' and 'am__untar' variables.
+  _am_tools=${am_cv_prog_tar_$1-$_am_tools}
+
+  for _am_tool in $_am_tools; do
+    case $_am_tool in
+    gnutar)
+      for _am_tar in tar gnutar gtar; do
+        AM_RUN_LOG([$_am_tar --version]) && break
+      done
+      am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
+      am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
+      am__untar="$_am_tar -xf -"
+      ;;
+    plaintar)
+      # Must skip GNU tar: if it does not support --format= it doesn't create
+      # ustar tarball either.
+      (tar --version) >/dev/null 2>&1 && continue
+      am__tar='tar chf - "$$tardir"'
+      am__tar_='tar chf - "$tardir"'
+      am__untar='tar xf -'
+      ;;
+    pax)
+      am__tar='pax -L -x $1 -w "$$tardir"'
+      am__tar_='pax -L -x $1 -w "$tardir"'
+      am__untar='pax -r'
+      ;;
+    cpio)
+      am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
+      am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
+      am__untar='cpio -i -H $1 -d'
+      ;;
+    none)
+      am__tar=false
+      am__tar_=false
+      am__untar=false
+      ;;
+    esac
+
+    # If the value was cached, stop now.  We just wanted to have am__tar
+    # and am__untar set.
+    test -n "${am_cv_prog_tar_$1}" && break
+
+    # tar/untar a dummy directory, and stop if the command works.
+    rm -rf conftest.dir
+    mkdir conftest.dir
+    echo GrepMe > conftest.dir/file
+    AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
+    rm -rf conftest.dir
+    if test -s conftest.tar; then
+      AM_RUN_LOG([$am__untar <conftest.tar])
+      AM_RUN_LOG([cat conftest.dir/file])
+      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
+    fi
+  done
+  rm -rf conftest.dir
+
+  AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
+  AC_MSG_RESULT([$am_cv_prog_tar_$1])])
+
+AC_SUBST([am__tar])
+AC_SUBST([am__untar])
+]) # _AM_PROG_TAR
+
+m4_include([m4/ax_pthread.m4])
+m4_include([m4/gtk-doc.m4])
+m4_include([m4/libtool.m4])
+m4_include([m4/ltoptions.m4])
+m4_include([m4/ltsugar.m4])
+m4_include([m4/ltversion.m4])
+m4_include([m4/lt~obsolete.m4])
+m4_include([m4/pkg.m4])
diff --git a/ar-lib b/ar-lib
new file mode 100755 (executable)
index 0000000..fe2301e
--- /dev/null
+++ b/ar-lib
@@ -0,0 +1,270 @@
+#! /bin/sh
+# Wrapper for Microsoft lib.exe
+
+me=ar-lib
+scriptversion=2012-03-01.08; # UTC
+
+# Copyright (C) 2010-2013 Free Software Foundation, Inc.
+# Written by Peter Rosin <peda@lysator.liu.se>.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# This file is maintained in Automake, please report
+# bugs to <bug-automake@gnu.org> or send patches to
+# <automake-patches@gnu.org>.
+
+
+# func_error message
+func_error ()
+{
+  echo "$me: $1" 1>&2
+  exit 1
+}
+
+file_conv=
+
+# func_file_conv build_file
+# Convert a $build file to $host form and store it in $file
+# Currently only supports Windows hosts.
+func_file_conv ()
+{
+  file=$1
+  case $file in
+    / | /[!/]*) # absolute file, and not a UNC file
+      if test -z "$file_conv"; then
+       # lazily determine how to convert abs files
+       case `uname -s` in
+         MINGW*)
+           file_conv=mingw
+           ;;
+         CYGWIN*)
+           file_conv=cygwin
+           ;;
+         *)
+           file_conv=wine
+           ;;
+       esac
+      fi
+      case $file_conv in
+       mingw)
+         file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
+         ;;
+       cygwin)
+         file=`cygpath -m "$file" || echo "$file"`
+         ;;
+       wine)
+         file=`winepath -w "$file" || echo "$file"`
+         ;;
+      esac
+      ;;
+  esac
+}
+
+# func_at_file at_file operation archive
+# Iterate over all members in AT_FILE performing OPERATION on ARCHIVE
+# for each of them.
+# When interpreting the content of the @FILE, do NOT use func_file_conv,
+# since the user would need to supply preconverted file names to
+# binutils ar, at least for MinGW.
+func_at_file ()
+{
+  operation=$2
+  archive=$3
+  at_file_contents=`cat "$1"`
+  eval set x "$at_file_contents"
+  shift
+
+  for member
+  do
+    $AR -NOLOGO $operation:"$member" "$archive" || exit $?
+  done
+}
+
+case $1 in
+  '')
+     func_error "no command.  Try '$0 --help' for more information."
+     ;;
+  -h | --h*)
+    cat <<EOF
+Usage: $me [--help] [--version] PROGRAM ACTION ARCHIVE [MEMBER...]
+
+Members may be specified in a file named with @FILE.
+EOF
+    exit $?
+    ;;
+  -v | --v*)
+    echo "$me, version $scriptversion"
+    exit $?
+    ;;
+esac
+
+if test $# -lt 3; then
+  func_error "you must specify a program, an action and an archive"
+fi
+
+AR=$1
+shift
+while :
+do
+  if test $# -lt 2; then
+    func_error "you must specify a program, an action and an archive"
+  fi
+  case $1 in
+    -lib | -LIB \
+    | -ltcg | -LTCG \
+    | -machine* | -MACHINE* \
+    | -subsystem* | -SUBSYSTEM* \
+    | -verbose | -VERBOSE \
+    | -wx* | -WX* )
+      AR="$AR $1"
+      shift
+      ;;
+    *)
+      action=$1
+      shift
+      break
+      ;;
+  esac
+done
+orig_archive=$1
+shift
+func_file_conv "$orig_archive"
+archive=$file
+
+# strip leading dash in $action
+action=${action#-}
+
+delete=
+extract=
+list=
+quick=
+replace=
+index=
+create=
+
+while test -n "$action"
+do
+  case $action in
+    d*) delete=yes  ;;
+    x*) extract=yes ;;
+    t*) list=yes    ;;
+    q*) quick=yes   ;;
+    r*) replace=yes ;;
+    s*) index=yes   ;;
+    S*)             ;; # the index is always updated implicitly
+    c*) create=yes  ;;
+    u*)             ;; # TODO: don't ignore the update modifier
+    v*)             ;; # TODO: don't ignore the verbose modifier
+    *)
+      func_error "unknown action specified"
+      ;;
+  esac
+  action=${action#?}
+done
+
+case $delete$extract$list$quick$replace,$index in
+  yes,* | ,yes)
+    ;;
+  yesyes*)
+    func_error "more than one action specified"
+    ;;
+  *)
+    func_error "no action specified"
+    ;;
+esac
+
+if test -n "$delete"; then
+  if test ! -f "$orig_archive"; then
+    func_error "archive not found"
+  fi
+  for member
+  do
+    case $1 in
+      @*)
+        func_at_file "${1#@}" -REMOVE "$archive"
+        ;;
+      *)
+        func_file_conv "$1"
+        $AR -NOLOGO -REMOVE:"$file" "$archive" || exit $?
+        ;;
+    esac
+  done
+
+elif test -n "$extract"; then
+  if test ! -f "$orig_archive"; then
+    func_error "archive not found"
+  fi
+  if test $# -gt 0; then
+    for member
+    do
+      case $1 in
+        @*)
+          func_at_file "${1#@}" -EXTRACT "$archive"
+          ;;
+        *)
+          func_file_conv "$1"
+          $AR -NOLOGO -EXTRACT:"$file" "$archive" || exit $?
+          ;;
+      esac
+    done
+  else
+    $AR -NOLOGO -LIST "$archive" | sed -e 's/\\/\\\\/g' | while read member
+    do
+      $AR -NOLOGO -EXTRACT:"$member" "$archive" || exit $?
+    done
+  fi
+
+elif test -n "$quick$replace"; then
+  if test ! -f "$orig_archive"; then
+    if test -z "$create"; then
+      echo "$me: creating $orig_archive"
+    fi
+    orig_archive=
+  else
+    orig_archive=$archive
+  fi
+
+  for member
+  do
+    case $1 in
+    @*)
+      func_file_conv "${1#@}"
+      set x "$@" "@$file"
+      ;;
+    *)
+      func_file_conv "$1"
+      set x "$@" "$file"
+      ;;
+    esac
+    shift
+    shift
+  done
+
+  if test -n "$orig_archive"; then
+    $AR -NOLOGO -OUT:"$archive" "$orig_archive" "$@" || exit $?
+  else
+    $AR -NOLOGO -OUT:"$archive" "$@" || exit $?
+  fi
+
+elif test -n "$list"; then
+  if test ! -f "$orig_archive"; then
+    func_error "archive not found"
+  fi
+  $AR -NOLOGO -LIST "$archive" || exit $?
+fi
diff --git a/autogen.sh b/autogen.sh
new file mode 100755 (executable)
index 0000000..a267f29
--- /dev/null
@@ -0,0 +1,41 @@
+#!/bin/sh
+# Run this to generate all the initial makefiles, etc.
+
+test -n "$srcdir" || srcdir=`dirname "$0"`
+test -n "$srcdir" || srcdir=.
+
+olddir=`pwd`
+cd $srcdir
+
+echo -n "checking for ragel... "
+which ragel || {
+       echo "You need to install ragel... See http://www.complang.org/ragel/"
+       exit 1
+}
+
+echo -n "checking for pkg-config... "
+which pkg-config || {
+       echo "*** No pkg-config found, please install it ***"
+       exit 1
+}
+
+echo -n "checking for gtkdocize... "
+if which gtkdocize ; then
+       gtkdocize --copy || exit 1
+else
+       echo "*** No gtkdocize found, skipping documentation ***"
+       echo "EXTRA_DIST = " > gtk-doc.make
+fi
+
+echo -n "checking for autoreconf... "
+which autoreconf || {
+       echo "*** No autoreconf found, please install it ***"
+       exit 1
+}
+
+echo "running autoreconf --force --install --verbose"
+autoreconf --force --install --verbose || exit $?
+
+cd $olddir
+echo "running configure $@"
+test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
diff --git a/compile b/compile
new file mode 100755 (executable)
index 0000000..531136b
--- /dev/null
+++ b/compile
@@ -0,0 +1,347 @@
+#! /bin/sh
+# Wrapper for compilers which do not understand '-c -o'.
+
+scriptversion=2012-10-14.11; # UTC
+
+# Copyright (C) 1999-2013 Free Software Foundation, Inc.
+# Written by Tom Tromey <tromey@cygnus.com>.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# This file is maintained in Automake, please report
+# bugs to <bug-automake@gnu.org> or send patches to
+# <automake-patches@gnu.org>.
+
+nl='
+'
+
+# We need space, tab and new line, in precisely that order.  Quoting is
+# there to prevent tools from complaining about whitespace usage.
+IFS=" ""       $nl"
+
+file_conv=
+
+# func_file_conv build_file lazy
+# Convert a $build file to $host form and store it in $file
+# Currently only supports Windows hosts. If the determined conversion
+# type is listed in (the comma separated) LAZY, no conversion will
+# take place.
+func_file_conv ()
+{
+  file=$1
+  case $file in
+    / | /[!/]*) # absolute file, and not a UNC file
+      if test -z "$file_conv"; then
+       # lazily determine how to convert abs files
+       case `uname -s` in
+         MINGW*)
+           file_conv=mingw
+           ;;
+         CYGWIN*)
+           file_conv=cygwin
+           ;;
+         *)
+           file_conv=wine
+           ;;
+       esac
+      fi
+      case $file_conv/,$2, in
+       *,$file_conv,*)
+         ;;
+       mingw/*)
+         file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
+         ;;
+       cygwin/*)
+         file=`cygpath -m "$file" || echo "$file"`
+         ;;
+       wine/*)
+         file=`winepath -w "$file" || echo "$file"`
+         ;;
+      esac
+      ;;
+  esac
+}
+
+# func_cl_dashL linkdir
+# Make cl look for libraries in LINKDIR
+func_cl_dashL ()
+{
+  func_file_conv "$1"
+  if test -z "$lib_path"; then
+    lib_path=$file
+  else
+    lib_path="$lib_path;$file"
+  fi
+  linker_opts="$linker_opts -LIBPATH:$file"
+}
+
+# func_cl_dashl library
+# Do a library search-path lookup for cl
+func_cl_dashl ()
+{
+  lib=$1
+  found=no
+  save_IFS=$IFS
+  IFS=';'
+  for dir in $lib_path $LIB
+  do
+    IFS=$save_IFS
+    if $shared && test -f "$dir/$lib.dll.lib"; then
+      found=yes
+      lib=$dir/$lib.dll.lib
+      break
+    fi
+    if test -f "$dir/$lib.lib"; then
+      found=yes
+      lib=$dir/$lib.lib
+      break
+    fi
+    if test -f "$dir/lib$lib.a"; then
+      found=yes
+      lib=$dir/lib$lib.a
+      break
+    fi
+  done
+  IFS=$save_IFS
+
+  if test "$found" != yes; then
+    lib=$lib.lib
+  fi
+}
+
+# func_cl_wrapper cl arg...
+# Adjust compile command to suit cl
+func_cl_wrapper ()
+{
+  # Assume a capable shell
+  lib_path=
+  shared=:
+  linker_opts=
+  for arg
+  do
+    if test -n "$eat"; then
+      eat=
+    else
+      case $1 in
+       -o)
+         # configure might choose to run compile as 'compile cc -o foo foo.c'.
+         eat=1
+         case $2 in
+           *.o | *.[oO][bB][jJ])
+             func_file_conv "$2"
+             set x "$@" -Fo"$file"
+             shift
+             ;;
+           *)
+             func_file_conv "$2"
+             set x "$@" -Fe"$file"
+             shift
+             ;;
+         esac
+         ;;
+       -I)
+         eat=1
+         func_file_conv "$2" mingw
+         set x "$@" -I"$file"
+         shift
+         ;;
+       -I*)
+         func_file_conv "${1#-I}" mingw
+         set x "$@" -I"$file"
+         shift
+         ;;
+       -l)
+         eat=1
+         func_cl_dashl "$2"
+         set x "$@" "$lib"
+         shift
+         ;;
+       -l*)
+         func_cl_dashl "${1#-l}"
+         set x "$@" "$lib"
+         shift
+         ;;
+       -L)
+         eat=1
+         func_cl_dashL "$2"
+         ;;
+       -L*)
+         func_cl_dashL "${1#-L}"
+         ;;
+       -static)
+         shared=false
+         ;;
+       -Wl,*)
+         arg=${1#-Wl,}
+         save_ifs="$IFS"; IFS=','
+         for flag in $arg; do
+           IFS="$save_ifs"
+           linker_opts="$linker_opts $flag"
+         done
+         IFS="$save_ifs"
+         ;;
+       -Xlinker)
+         eat=1
+         linker_opts="$linker_opts $2"
+         ;;
+       -*)
+         set x "$@" "$1"
+         shift
+         ;;
+       *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
+         func_file_conv "$1"
+         set x "$@" -Tp"$file"
+         shift
+         ;;
+       *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
+         func_file_conv "$1" mingw
+         set x "$@" "$file"
+         shift
+         ;;
+       *)
+         set x "$@" "$1"
+         shift
+         ;;
+      esac
+    fi
+    shift
+  done
+  if test -n "$linker_opts"; then
+    linker_opts="-link$linker_opts"
+  fi
+  exec "$@" $linker_opts
+  exit 1
+}
+
+eat=
+
+case $1 in
+  '')
+     echo "$0: No command.  Try '$0 --help' for more information." 1>&2
+     exit 1;
+     ;;
+  -h | --h*)
+    cat <<\EOF
+Usage: compile [--help] [--version] PROGRAM [ARGS]
+
+Wrapper for compilers which do not understand '-c -o'.
+Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
+arguments, and rename the output as expected.
+
+If you are trying to build a whole package this is not the
+right script to run: please start by reading the file 'INSTALL'.
+
+Report bugs to <bug-automake@gnu.org>.
+EOF
+    exit $?
+    ;;
+  -v | --v*)
+    echo "compile $scriptversion"
+    exit $?
+    ;;
+  cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
+    func_cl_wrapper "$@"      # Doesn't return...
+    ;;
+esac
+
+ofile=
+cfile=
+
+for arg
+do
+  if test -n "$eat"; then
+    eat=
+  else
+    case $1 in
+      -o)
+       # configure might choose to run compile as 'compile cc -o foo foo.c'.
+       # So we strip '-o arg' only if arg is an object.
+       eat=1
+       case $2 in
+         *.o | *.obj)
+           ofile=$2
+           ;;
+         *)
+           set x "$@" -o "$2"
+           shift
+           ;;
+       esac
+       ;;
+      *.c)
+       cfile=$1
+       set x "$@" "$1"
+       shift
+       ;;
+      *)
+       set x "$@" "$1"
+       shift
+       ;;
+    esac
+  fi
+  shift
+done
+
+if test -z "$ofile" || test -z "$cfile"; then
+  # If no '-o' option was seen then we might have been invoked from a
+  # pattern rule where we don't need one.  That is ok -- this is a
+  # normal compilation that the losing compiler can handle.  If no
+  # '.c' file was seen then we are probably linking.  That is also
+  # ok.
+  exec "$@"
+fi
+
+# Name of file we expect compiler to create.
+cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
+
+# Create the lock directory.
+# Note: use '[/\\:.-]' here to ensure that we don't use the same name
+# that we are using for the .o file.  Also, base the name on the expected
+# object file name, since that is what matters with a parallel build.
+lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
+while true; do
+  if mkdir "$lockdir" >/dev/null 2>&1; then
+    break
+  fi
+  sleep 1
+done
+# FIXME: race condition here if user kills between mkdir and trap.
+trap "rmdir '$lockdir'; exit 1" 1 2 15
+
+# Run the compile.
+"$@"
+ret=$?
+
+if test -f "$cofile"; then
+  test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
+elif test -f "${cofile}bj"; then
+  test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
+fi
+
+rmdir "$lockdir"
+exit $ret
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/config.guess b/config.guess
new file mode 100755 (executable)
index 0000000..b79252d
--- /dev/null
@@ -0,0 +1,1558 @@
+#! /bin/sh
+# Attempt to guess a canonical system name.
+#   Copyright 1992-2013 Free Software Foundation, Inc.
+
+timestamp='2013-06-10'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that
+# program.  This Exception is an additional permission under section 7
+# of the GNU General Public License, version 3 ("GPLv3").
+#
+# Originally written by Per Bothner.
+#
+# You can get the latest version of this script from:
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+#
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
+
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION]
+
+Output the configuration name of the system \`$me' is run on.
+
+Operation modes:
+  -h, --help         print this help, then exit
+  -t, --time-stamp   print date of last modification, then exit
+  -v, --version      print version number, then exit
+
+Report bugs and patches to <config-patches@gnu.org>."
+
+version="\
+GNU config.guess ($timestamp)
+
+Originally written by Per Bothner.
+Copyright 1992-2013 Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions.  There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+  case $1 in
+    --time-stamp | --time* | -t )
+       echo "$timestamp" ; exit ;;
+    --version | -v )
+       echo "$version" ; exit ;;
+    --help | --h* | -h )
+       echo "$usage"; exit ;;
+    -- )     # Stop option processing
+       shift; break ;;
+    - )        # Use stdin as input.
+       break ;;
+    -* )
+       echo "$me: invalid option $1$help" >&2
+       exit 1 ;;
+    * )
+       break ;;
+  esac
+done
+
+if test $# != 0; then
+  echo "$me: too many arguments$help" >&2
+  exit 1
+fi
+
+trap 'exit 1' 1 2 15
+
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
+# compiler to aid in system detection is discouraged as it requires
+# temporary files to be created and, as you can see below, it is a
+# headache to deal with in a portable fashion.
+
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
+# use `HOST_CC' if defined, but it is deprecated.
+
+# Portable tmp directory creation inspired by the Autoconf team.
+
+set_cc_for_build='
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
+: ${TMPDIR=/tmp} ;
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
+dummy=$tmp/dummy ;
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
+case $CC_FOR_BUILD,$HOST_CC,$CC in
+ ,,)    echo "int x;" > $dummy.c ;
+       for c in cc gcc c89 c99 ; do
+         if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
+            CC_FOR_BUILD="$c"; break ;
+         fi ;
+       done ;
+       if test x"$CC_FOR_BUILD" = x ; then
+         CC_FOR_BUILD=no_compiler_found ;
+       fi
+       ;;
+ ,,*)   CC_FOR_BUILD=$CC ;;
+ ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
+esac ; set_cc_for_build= ;'
+
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
+# (ghazi@noc.rutgers.edu 1994-08-24)
+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
+       PATH=$PATH:/.attbin ; export PATH
+fi
+
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
+UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+
+case "${UNAME_SYSTEM}" in
+Linux|GNU|GNU/*)
+       # If the system lacks a compiler, then just pick glibc.
+       # We could probably try harder.
+       LIBC=gnu
+
+       eval $set_cc_for_build
+       cat <<-EOF > $dummy.c
+       #include <features.h>
+       #if defined(__UCLIBC__)
+       LIBC=uclibc
+       #elif defined(__dietlibc__)
+       LIBC=dietlibc
+       #else
+       LIBC=gnu
+       #endif
+       EOF
+       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
+       ;;
+esac
+
+# Note: order is significant - the case branches are not exclusive.
+
+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+    *:NetBSD:*:*)
+       # NetBSD (nbsd) targets should (where applicable) match one or
+       # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
+       # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
+       # switched to ELF, *-*-netbsd* would select the old
+       # object file format.  This provides both forward
+       # compatibility and a consistent mechanism for selecting the
+       # object file format.
+       #
+       # Note: NetBSD doesn't particularly care about the vendor
+       # portion of the name.  We always set it to "unknown".
+       sysctl="sysctl -n hw.machine_arch"
+       UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
+           /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+       case "${UNAME_MACHINE_ARCH}" in
+           armeb) machine=armeb-unknown ;;
+           arm*) machine=arm-unknown ;;
+           sh3el) machine=shl-unknown ;;
+           sh3eb) machine=sh-unknown ;;
+           sh5el) machine=sh5le-unknown ;;
+           *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
+       esac
+       # The Operating System including object format, if it has switched
+       # to ELF recently, or will in the future.
+       case "${UNAME_MACHINE_ARCH}" in
+           arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+               eval $set_cc_for_build
+               if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
+                       | grep -q __ELF__
+               then
+                   # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
+                   # Return netbsd for either.  FIX?
+                   os=netbsd
+               else
+                   os=netbsdelf
+               fi
+               ;;
+           *)
+               os=netbsd
+               ;;
+       esac
+       # The OS release
+       # Debian GNU/NetBSD machines have a different userland, and
+       # thus, need a distinct triplet. However, they do not need
+       # kernel version information, so it can be replaced with a
+       # suitable tag, in the style of linux-gnu.
+       case "${UNAME_VERSION}" in
+           Debian*)
+               release='-gnu'
+               ;;
+           *)
+               release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+               ;;
+       esac
+       # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
+       # contains redundant information, the shorter form:
+       # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
+       echo "${machine}-${os}${release}"
+       exit ;;
+    *:Bitrig:*:*)
+       UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
+       echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
+       exit ;;
+    *:OpenBSD:*:*)
+       UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
+       echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
+       exit ;;
+    *:ekkoBSD:*:*)
+       echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
+       exit ;;
+    *:SolidBSD:*:*)
+       echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
+       exit ;;
+    macppc:MirBSD:*:*)
+       echo powerpc-unknown-mirbsd${UNAME_RELEASE}
+       exit ;;
+    *:MirBSD:*:*)
+       echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+       exit ;;
+    alpha:OSF1:*:*)
+       case $UNAME_RELEASE in
+       *4.0)
+               UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
+               ;;
+       *5.*)
+               UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+               ;;
+       esac
+       # According to Compaq, /usr/sbin/psrinfo has been available on
+       # OSF/1 and Tru64 systems produced since 1995.  I hope that
+       # covers most systems running today.  This code pipes the CPU
+       # types through head -n 1, so we only detect the type of CPU 0.
+       ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
+       case "$ALPHA_CPU_TYPE" in
+           "EV4 (21064)")
+               UNAME_MACHINE="alpha" ;;
+           "EV4.5 (21064)")
+               UNAME_MACHINE="alpha" ;;
+           "LCA4 (21066/21068)")
+               UNAME_MACHINE="alpha" ;;
+           "EV5 (21164)")
+               UNAME_MACHINE="alphaev5" ;;
+           "EV5.6 (21164A)")
+               UNAME_MACHINE="alphaev56" ;;
+           "EV5.6 (21164PC)")
+               UNAME_MACHINE="alphapca56" ;;
+           "EV5.7 (21164PC)")
+               UNAME_MACHINE="alphapca57" ;;
+           "EV6 (21264)")
+               UNAME_MACHINE="alphaev6" ;;
+           "EV6.7 (21264A)")
+               UNAME_MACHINE="alphaev67" ;;
+           "EV6.8CB (21264C)")
+               UNAME_MACHINE="alphaev68" ;;
+           "EV6.8AL (21264B)")
+               UNAME_MACHINE="alphaev68" ;;
+           "EV6.8CX (21264D)")
+               UNAME_MACHINE="alphaev68" ;;
+           "EV6.9A (21264/EV69A)")
+               UNAME_MACHINE="alphaev69" ;;
+           "EV7 (21364)")
+               UNAME_MACHINE="alphaev7" ;;
+           "EV7.9 (21364A)")
+               UNAME_MACHINE="alphaev79" ;;
+       esac
+       # A Pn.n version is a patched version.
+       # A Vn.n version is a released version.
+       # A Tn.n version is a released field test version.
+       # A Xn.n version is an unreleased experimental baselevel.
+       # 1.2 uses "1.2" for uname -r.
+       echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+       # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
+       exitcode=$?
+       trap '' 0
+       exit $exitcode ;;
+    Alpha\ *:Windows_NT*:*)
+       # How do we know it's Interix rather than the generic POSIX subsystem?
+       # Should we change UNAME_MACHINE based on the output of uname instead
+       # of the specific Alpha model?
+       echo alpha-pc-interix
+       exit ;;
+    21064:Windows_NT:50:3)
+       echo alpha-dec-winnt3.5
+       exit ;;
+    Amiga*:UNIX_System_V:4.0:*)
+       echo m68k-unknown-sysv4
+       exit ;;
+    *:[Aa]miga[Oo][Ss]:*:*)
+       echo ${UNAME_MACHINE}-unknown-amigaos
+       exit ;;
+    *:[Mm]orph[Oo][Ss]:*:*)
+       echo ${UNAME_MACHINE}-unknown-morphos
+       exit ;;
+    *:OS/390:*:*)
+       echo i370-ibm-openedition
+       exit ;;
+    *:z/VM:*:*)
+       echo s390-ibm-zvmoe
+       exit ;;
+    *:OS400:*:*)
+       echo powerpc-ibm-os400
+       exit ;;
+    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
+       echo arm-acorn-riscix${UNAME_RELEASE}
+       exit ;;
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
+       echo arm-unknown-riscos
+       exit ;;
+    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
+       echo hppa1.1-hitachi-hiuxmpp
+       exit ;;
+    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
+       # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
+       if test "`(/bin/universe) 2>/dev/null`" = att ; then
+               echo pyramid-pyramid-sysv3
+       else
+               echo pyramid-pyramid-bsd
+       fi
+       exit ;;
+    NILE*:*:*:dcosx)
+       echo pyramid-pyramid-svr4
+       exit ;;
+    DRS?6000:unix:4.0:6*)
+       echo sparc-icl-nx6
+       exit ;;
+    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
+       case `/usr/bin/uname -p` in
+           sparc) echo sparc-icl-nx7; exit ;;
+       esac ;;
+    s390x:SunOS:*:*)
+       echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+       exit ;;
+    sun4H:SunOS:5.*:*)
+       echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+       exit ;;
+    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+       echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+       exit ;;
+    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
+       echo i386-pc-auroraux${UNAME_RELEASE}
+       exit ;;
+    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
+       eval $set_cc_for_build
+       SUN_ARCH="i386"
+       # If there is a compiler, see if it is configured for 64-bit objects.
+       # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
+       # This test works for both compilers.
+       if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+           if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
+               (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+               grep IS_64BIT_ARCH >/dev/null
+           then
+               SUN_ARCH="x86_64"
+           fi
+       fi
+       echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+       exit ;;
+    sun4*:SunOS:6*:*)
+       # According to config.sub, this is the proper way to canonicalize
+       # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
+       # it's likely to be more like Solaris than SunOS4.
+       echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+       exit ;;
+    sun4*:SunOS:*:*)
+       case "`/usr/bin/arch -k`" in
+           Series*|S4*)
+               UNAME_RELEASE=`uname -v`
+               ;;
+       esac
+       # Japanese Language versions have a version number like `4.1.3-JL'.
+       echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
+       exit ;;
+    sun3*:SunOS:*:*)
+       echo m68k-sun-sunos${UNAME_RELEASE}
+       exit ;;
+    sun*:*:4.2BSD:*)
+       UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
+       test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
+       case "`/bin/arch`" in
+           sun3)
+               echo m68k-sun-sunos${UNAME_RELEASE}
+               ;;
+           sun4)
+               echo sparc-sun-sunos${UNAME_RELEASE}
+               ;;
+       esac
+       exit ;;
+    aushp:SunOS:*:*)
+       echo sparc-auspex-sunos${UNAME_RELEASE}
+       exit ;;
+    # The situation for MiNT is a little confusing.  The machine name
+    # can be virtually everything (everything which is not
+    # "atarist" or "atariste" at least should have a processor
+    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
+    # to the lowercase version "mint" (or "freemint").  Finally
+    # the system name "TOS" denotes a system which is actually not
+    # MiNT.  But MiNT is downward compatible to TOS, so this should
+    # be no problem.
+    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
+       echo m68k-atari-mint${UNAME_RELEASE}
+       exit ;;
+    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
+       echo m68k-atari-mint${UNAME_RELEASE}
+       exit ;;
+    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
+       echo m68k-atari-mint${UNAME_RELEASE}
+       exit ;;
+    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
+       echo m68k-milan-mint${UNAME_RELEASE}
+       exit ;;
+    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
+       echo m68k-hades-mint${UNAME_RELEASE}
+       exit ;;
+    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
+       echo m68k-unknown-mint${UNAME_RELEASE}
+       exit ;;
+    m68k:machten:*:*)
+       echo m68k-apple-machten${UNAME_RELEASE}
+       exit ;;
+    powerpc:machten:*:*)
+       echo powerpc-apple-machten${UNAME_RELEASE}
+       exit ;;
+    RISC*:Mach:*:*)
+       echo mips-dec-mach_bsd4.3
+       exit ;;
+    RISC*:ULTRIX:*:*)
+       echo mips-dec-ultrix${UNAME_RELEASE}
+       exit ;;
+    VAX*:ULTRIX*:*:*)
+       echo vax-dec-ultrix${UNAME_RELEASE}
+       exit ;;
+    2020:CLIX:*:* | 2430:CLIX:*:*)
+       echo clipper-intergraph-clix${UNAME_RELEASE}
+       exit ;;
+    mips:*:*:UMIPS | mips:*:*:RISCos)
+       eval $set_cc_for_build
+       sed 's/^        //' << EOF >$dummy.c
+#ifdef __cplusplus
+#include <stdio.h>  /* for printf() prototype */
+       int main (int argc, char *argv[]) {
+#else
+       int main (argc, argv) int argc; char *argv[]; {
+#endif
+       #if defined (host_mips) && defined (MIPSEB)
+       #if defined (SYSTYPE_SYSV)
+         printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
+       #endif
+       #if defined (SYSTYPE_SVR4)
+         printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
+       #endif
+       #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
+         printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
+       #endif
+       #endif
+         exit (-1);
+       }
+EOF
+       $CC_FOR_BUILD -o $dummy $dummy.c &&
+         dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
+         SYSTEM_NAME=`$dummy $dummyarg` &&
+           { echo "$SYSTEM_NAME"; exit; }
+       echo mips-mips-riscos${UNAME_RELEASE}
+       exit ;;
+    Motorola:PowerMAX_OS:*:*)
+       echo powerpc-motorola-powermax
+       exit ;;
+    Motorola:*:4.3:PL8-*)
+       echo powerpc-harris-powermax
+       exit ;;
+    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
+       echo powerpc-harris-powermax
+       exit ;;
+    Night_Hawk:Power_UNIX:*:*)
+       echo powerpc-harris-powerunix
+       exit ;;
+    m88k:CX/UX:7*:*)
+       echo m88k-harris-cxux7
+       exit ;;
+    m88k:*:4*:R4*)
+       echo m88k-motorola-sysv4
+       exit ;;
+    m88k:*:3*:R3*)
+       echo m88k-motorola-sysv3
+       exit ;;
+    AViiON:dgux:*:*)
+       # DG/UX returns AViiON for all architectures
+       UNAME_PROCESSOR=`/usr/bin/uname -p`
+       if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
+       then
+           if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
+              [ ${TARGET_BINARY_INTERFACE}x = x ]
+           then
+               echo m88k-dg-dgux${UNAME_RELEASE}
+           else
+               echo m88k-dg-dguxbcs${UNAME_RELEASE}
+           fi
+       else
+           echo i586-dg-dgux${UNAME_RELEASE}
+       fi
+       exit ;;
+    M88*:DolphinOS:*:*)        # DolphinOS (SVR3)
+       echo m88k-dolphin-sysv3
+       exit ;;
+    M88*:*:R3*:*)
+       # Delta 88k system running SVR3
+       echo m88k-motorola-sysv3
+       exit ;;
+    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
+       echo m88k-tektronix-sysv3
+       exit ;;
+    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
+       echo m68k-tektronix-bsd
+       exit ;;
+    *:IRIX*:*:*)
+       echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
+       exit ;;
+    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
+       echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
+       exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
+    i*86:AIX:*:*)
+       echo i386-ibm-aix
+       exit ;;
+    ia64:AIX:*:*)
+       if [ -x /usr/bin/oslevel ] ; then
+               IBM_REV=`/usr/bin/oslevel`
+       else
+               IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+       fi
+       echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
+       exit ;;
+    *:AIX:2:3)
+       if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
+               eval $set_cc_for_build
+               sed 's/^                //' << EOF >$dummy.c
+               #include <sys/systemcfg.h>
+
+               main()
+                       {
+                       if (!__power_pc())
+                               exit(1);
+                       puts("powerpc-ibm-aix3.2.5");
+                       exit(0);
+                       }
+EOF
+               if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
+               then
+                       echo "$SYSTEM_NAME"
+               else
+                       echo rs6000-ibm-aix3.2.5
+               fi
+       elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
+               echo rs6000-ibm-aix3.2.4
+       else
+               echo rs6000-ibm-aix3.2
+       fi
+       exit ;;
+    *:AIX:*:[4567])
+       IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
+       if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
+               IBM_ARCH=rs6000
+       else
+               IBM_ARCH=powerpc
+       fi
+       if [ -x /usr/bin/oslevel ] ; then
+               IBM_REV=`/usr/bin/oslevel`
+       else
+               IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+       fi
+       echo ${IBM_ARCH}-ibm-aix${IBM_REV}
+       exit ;;
+    *:AIX:*:*)
+       echo rs6000-ibm-aix
+       exit ;;
+    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
+       echo romp-ibm-bsd4.4
+       exit ;;
+    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
+       echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
+       exit ;;                             # report: romp-ibm BSD 4.3
+    *:BOSX:*:*)
+       echo rs6000-bull-bosx
+       exit ;;
+    DPX/2?00:B.O.S.:*:*)
+       echo m68k-bull-sysv3
+       exit ;;
+    9000/[34]??:4.3bsd:1.*:*)
+       echo m68k-hp-bsd
+       exit ;;
+    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
+       echo m68k-hp-bsd4.4
+       exit ;;
+    9000/[34678]??:HP-UX:*:*)
+       HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+       case "${UNAME_MACHINE}" in
+           9000/31? )            HP_ARCH=m68000 ;;
+           9000/[34]?? )         HP_ARCH=m68k ;;
+           9000/[678][0-9][0-9])
+               if [ -x /usr/bin/getconf ]; then
+                   sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
+                   sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+                   case "${sc_cpu_version}" in
+                     523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+                     528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+                     532)                      # CPU_PA_RISC2_0
+                       case "${sc_kernel_bits}" in
+                         32) HP_ARCH="hppa2.0n" ;;
+                         64) HP_ARCH="hppa2.0w" ;;
+                         '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
+                       esac ;;
+                   esac
+               fi
+               if [ "${HP_ARCH}" = "" ]; then
+                   eval $set_cc_for_build
+                   sed 's/^            //' << EOF >$dummy.c
+
+               #define _HPUX_SOURCE
+               #include <stdlib.h>
+               #include <unistd.h>
+
+               int main ()
+               {
+               #if defined(_SC_KERNEL_BITS)
+                   long bits = sysconf(_SC_KERNEL_BITS);
+               #endif
+                   long cpu  = sysconf (_SC_CPU_VERSION);
+
+                   switch (cpu)
+                       {
+                       case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+                       case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+                       case CPU_PA_RISC2_0:
+               #if defined(_SC_KERNEL_BITS)
+                           switch (bits)
+                               {
+                               case 64: puts ("hppa2.0w"); break;
+                               case 32: puts ("hppa2.0n"); break;
+                               default: puts ("hppa2.0"); break;
+                               } break;
+               #else  /* !defined(_SC_KERNEL_BITS) */
+                           puts ("hppa2.0"); break;
+               #endif
+                       default: puts ("hppa1.0"); break;
+                       }
+                   exit (0);
+               }
+EOF
+                   (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
+                   test -z "$HP_ARCH" && HP_ARCH=hppa
+               fi ;;
+       esac
+       if [ ${HP_ARCH} = "hppa2.0w" ]
+       then
+           eval $set_cc_for_build
+
+           # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
+           # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
+           # generating 64-bit code.  GNU and HP use different nomenclature:
+           #
+           # $ CC_FOR_BUILD=cc ./config.guess
+           # => hppa2.0w-hp-hpux11.23
+           # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
+           # => hppa64-hp-hpux11.23
+
+           if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
+               grep -q __LP64__
+           then
+               HP_ARCH="hppa2.0w"
+           else
+               HP_ARCH="hppa64"
+           fi
+       fi
+       echo ${HP_ARCH}-hp-hpux${HPUX_REV}
+       exit ;;
+    ia64:HP-UX:*:*)
+       HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+       echo ia64-hp-hpux${HPUX_REV}
+       exit ;;
+    3050*:HI-UX:*:*)
+       eval $set_cc_for_build
+       sed 's/^        //' << EOF >$dummy.c
+       #include <unistd.h>
+       int
+       main ()
+       {
+         long cpu = sysconf (_SC_CPU_VERSION);
+         /* The order matters, because CPU_IS_HP_MC68K erroneously returns
+            true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
+            results, however.  */
+         if (CPU_IS_PA_RISC (cpu))
+           {
+             switch (cpu)
+               {
+                 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
+                 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
+                 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
+                 default: puts ("hppa-hitachi-hiuxwe2"); break;
+               }
+           }
+         else if (CPU_IS_HP_MC68K (cpu))
+           puts ("m68k-hitachi-hiuxwe2");
+         else puts ("unknown-hitachi-hiuxwe2");
+         exit (0);
+       }
+EOF
+       $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
+               { echo "$SYSTEM_NAME"; exit; }
+       echo unknown-hitachi-hiuxwe2
+       exit ;;
+    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
+       echo hppa1.1-hp-bsd
+       exit ;;
+    9000/8??:4.3bsd:*:*)
+       echo hppa1.0-hp-bsd
+       exit ;;
+    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
+       echo hppa1.0-hp-mpeix
+       exit ;;
+    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
+       echo hppa1.1-hp-osf
+       exit ;;
+    hp8??:OSF1:*:*)
+       echo hppa1.0-hp-osf
+       exit ;;
+    i*86:OSF1:*:*)
+       if [ -x /usr/sbin/sysversion ] ; then
+           echo ${UNAME_MACHINE}-unknown-osf1mk
+       else
+           echo ${UNAME_MACHINE}-unknown-osf1
+       fi
+       exit ;;
+    parisc*:Lites*:*:*)
+       echo hppa1.1-hp-lites
+       exit ;;
+    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
+       echo c1-convex-bsd
+       exit ;;
+    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
+       if getsysinfo -f scalar_acc
+       then echo c32-convex-bsd
+       else echo c2-convex-bsd
+       fi
+       exit ;;
+    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
+       echo c34-convex-bsd
+       exit ;;
+    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
+       echo c38-convex-bsd
+       exit ;;
+    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
+       echo c4-convex-bsd
+       exit ;;
+    CRAY*Y-MP:*:*:*)
+       echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+       exit ;;
+    CRAY*[A-Z]90:*:*:*)
+       echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
+       | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
+             -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
+             -e 's/\.[^.]*$/.X/'
+       exit ;;
+    CRAY*TS:*:*:*)
+       echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+       exit ;;
+    CRAY*T3E:*:*:*)
+       echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+       exit ;;
+    CRAY*SV1:*:*:*)
+       echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+       exit ;;
+    *:UNICOS/mp:*:*)
+       echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+       exit ;;
+    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
+       FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+       FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+       FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+       echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+       exit ;;
+    5000:UNIX_System_V:4.*:*)
+       FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+       FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+       echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+       exit ;;
+    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+       echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
+       exit ;;
+    sparc*:BSD/OS:*:*)
+       echo sparc-unknown-bsdi${UNAME_RELEASE}
+       exit ;;
+    *:BSD/OS:*:*)
+       echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
+       exit ;;
+    *:FreeBSD:*:*)
+       UNAME_PROCESSOR=`/usr/bin/uname -p`
+       case ${UNAME_PROCESSOR} in
+           amd64)
+               echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+           *)
+               echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+       esac
+       exit ;;
+    i*:CYGWIN*:*)
+       echo ${UNAME_MACHINE}-pc-cygwin
+       exit ;;
+    *:MINGW64*:*)
+       echo ${UNAME_MACHINE}-pc-mingw64
+       exit ;;
+    *:MINGW*:*)
+       echo ${UNAME_MACHINE}-pc-mingw32
+       exit ;;
+    i*:MSYS*:*)
+       echo ${UNAME_MACHINE}-pc-msys
+       exit ;;
+    i*:windows32*:*)
+       # uname -m includes "-pc" on this system.
+       echo ${UNAME_MACHINE}-mingw32
+       exit ;;
+    i*:PW*:*)
+       echo ${UNAME_MACHINE}-pc-pw32
+       exit ;;
+    *:Interix*:*)
+       case ${UNAME_MACHINE} in
+           x86)
+               echo i586-pc-interix${UNAME_RELEASE}
+               exit ;;
+           authenticamd | genuineintel | EM64T)
+               echo x86_64-unknown-interix${UNAME_RELEASE}
+               exit ;;
+           IA64)
+               echo ia64-unknown-interix${UNAME_RELEASE}
+               exit ;;
+       esac ;;
+    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+       echo i${UNAME_MACHINE}-pc-mks
+       exit ;;
+    8664:Windows_NT:*)
+       echo x86_64-pc-mks
+       exit ;;
+    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
+       # How do we know it's Interix rather than the generic POSIX subsystem?
+       # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
+       # UNAME_MACHINE based on the output of uname instead of i386?
+       echo i586-pc-interix
+       exit ;;
+    i*:UWIN*:*)
+       echo ${UNAME_MACHINE}-pc-uwin
+       exit ;;
+    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
+       echo x86_64-unknown-cygwin
+       exit ;;
+    p*:CYGWIN*:*)
+       echo powerpcle-unknown-cygwin
+       exit ;;
+    prep*:SunOS:5.*:*)
+       echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+       exit ;;
+    *:GNU:*:*)
+       # the GNU system
+       echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+       exit ;;
+    *:GNU/*:*:*)
+       # other systems with GNU libc and userland
+       echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
+       exit ;;
+    i*86:Minix:*:*)
+       echo ${UNAME_MACHINE}-pc-minix
+       exit ;;
+    aarch64:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    aarch64_be:Linux:*:*)
+       UNAME_MACHINE=aarch64_be
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    alpha:Linux:*:*)
+       case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+         EV5)   UNAME_MACHINE=alphaev5 ;;
+         EV56)  UNAME_MACHINE=alphaev56 ;;
+         PCA56) UNAME_MACHINE=alphapca56 ;;
+         PCA57) UNAME_MACHINE=alphapca56 ;;
+         EV6)   UNAME_MACHINE=alphaev6 ;;
+         EV67)  UNAME_MACHINE=alphaev67 ;;
+         EV68*) UNAME_MACHINE=alphaev68 ;;
+       esac
+       objdump --private-headers /bin/sh | grep -q ld.so.1
+       if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    arc:Linux:*:* | arceb:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    arm*:Linux:*:*)
+       eval $set_cc_for_build
+       if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
+           | grep -q __ARM_EABI__
+       then
+           echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       else
+           if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+               | grep -q __ARM_PCS_VFP
+           then
+               echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
+           else
+               echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
+           fi
+       fi
+       exit ;;
+    avr32*:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    cris:Linux:*:*)
+       echo ${UNAME_MACHINE}-axis-linux-${LIBC}
+       exit ;;
+    crisv32:Linux:*:*)
+       echo ${UNAME_MACHINE}-axis-linux-${LIBC}
+       exit ;;
+    frv:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    hexagon:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    i*86:Linux:*:*)
+       echo ${UNAME_MACHINE}-pc-linux-${LIBC}
+       exit ;;
+    ia64:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    m32r*:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    m68*:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    mips:Linux:*:* | mips64:Linux:*:*)
+       eval $set_cc_for_build
+       sed 's/^        //' << EOF >$dummy.c
+       #undef CPU
+       #undef ${UNAME_MACHINE}
+       #undef ${UNAME_MACHINE}el
+       #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+       CPU=${UNAME_MACHINE}el
+       #else
+       #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+       CPU=${UNAME_MACHINE}
+       #else
+       CPU=
+       #endif
+       #endif
+EOF
+       eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
+       test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
+       ;;
+    or1k:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    or32:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    padre:Linux:*:*)
+       echo sparc-unknown-linux-${LIBC}
+       exit ;;
+    parisc64:Linux:*:* | hppa64:Linux:*:*)
+       echo hppa64-unknown-linux-${LIBC}
+       exit ;;
+    parisc:Linux:*:* | hppa:Linux:*:*)
+       # Look for CPU level
+       case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
+         PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
+         PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
+         *)    echo hppa-unknown-linux-${LIBC} ;;
+       esac
+       exit ;;
+    ppc64:Linux:*:*)
+       echo powerpc64-unknown-linux-${LIBC}
+       exit ;;
+    ppc:Linux:*:*)
+       echo powerpc-unknown-linux-${LIBC}
+       exit ;;
+    ppc64le:Linux:*:*)
+       echo powerpc64le-unknown-linux-${LIBC}
+       exit ;;
+    ppcle:Linux:*:*)
+       echo powerpcle-unknown-linux-${LIBC}
+       exit ;;
+    s390:Linux:*:* | s390x:Linux:*:*)
+       echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
+       exit ;;
+    sh64*:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    sh*:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    sparc:Linux:*:* | sparc64:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    tile*:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    vax:Linux:*:*)
+       echo ${UNAME_MACHINE}-dec-linux-${LIBC}
+       exit ;;
+    x86_64:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    xtensa*:Linux:*:*)
+       echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
+       exit ;;
+    i*86:DYNIX/ptx:4*:*)
+       # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
+       # earlier versions are messed up and put the nodename in both
+       # sysname and nodename.
+       echo i386-sequent-sysv4
+       exit ;;
+    i*86:UNIX_SV:4.2MP:2.*)
+       # Unixware is an offshoot of SVR4, but it has its own version
+       # number series starting with 2...
+       # I am not positive that other SVR4 systems won't match this,
+       # I just have to hope.  -- rms.
+       # Use sysv4.2uw... so that sysv4* matches it.
+       echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+       exit ;;
+    i*86:OS/2:*:*)
+       # If we were able to find `uname', then EMX Unix compatibility
+       # is probably installed.
+       echo ${UNAME_MACHINE}-pc-os2-emx
+       exit ;;
+    i*86:XTS-300:*:STOP)
+       echo ${UNAME_MACHINE}-unknown-stop
+       exit ;;
+    i*86:atheos:*:*)
+       echo ${UNAME_MACHINE}-unknown-atheos
+       exit ;;
+    i*86:syllable:*:*)
+       echo ${UNAME_MACHINE}-pc-syllable
+       exit ;;
+    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
+       echo i386-unknown-lynxos${UNAME_RELEASE}
+       exit ;;
+    i*86:*DOS:*:*)
+       echo ${UNAME_MACHINE}-pc-msdosdjgpp
+       exit ;;
+    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
+       UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
+       if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
+               echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
+       else
+               echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
+       fi
+       exit ;;
+    i*86:*:5:[678]*)
+       # UnixWare 7.x, OpenUNIX and OpenServer 6.
+       case `/bin/uname -X | grep "^Machine"` in
+           *486*)           UNAME_MACHINE=i486 ;;
+           *Pentium)        UNAME_MACHINE=i586 ;;
+           *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
+       esac
+       echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
+       exit ;;
+    i*86:*:3.2:*)
+       if test -f /usr/options/cb.name; then
+               UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
+               echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+       elif /bin/uname -X 2>/dev/null >/dev/null ; then
+               UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
+               (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
+               (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
+                       && UNAME_MACHINE=i586
+               (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
+                       && UNAME_MACHINE=i686
+               (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
+                       && UNAME_MACHINE=i686
+               echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
+       else
+               echo ${UNAME_MACHINE}-pc-sysv32
+       fi
+       exit ;;
+    pc:*:*:*)
+       # Left here for compatibility:
+       # uname -m prints for DJGPP always 'pc', but it prints nothing about
+       # the processor, so we play safe by assuming i586.
+       # Note: whatever this is, it MUST be the same as what config.sub
+       # prints for the "djgpp" host, or else GDB configury will decide that
+       # this is a cross-build.
+       echo i586-pc-msdosdjgpp
+       exit ;;
+    Intel:Mach:3*:*)
+       echo i386-pc-mach3
+       exit ;;
+    paragon:*:*:*)
+       echo i860-intel-osf1
+       exit ;;
+    i860:*:4.*:*) # i860-SVR4
+       if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
+         echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
+       else # Add other i860-SVR4 vendors below as they are discovered.
+         echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
+       fi
+       exit ;;
+    mini*:CTIX:SYS*5:*)
+       # "miniframe"
+       echo m68010-convergent-sysv
+       exit ;;
+    mc68k:UNIX:SYSTEM5:3.51m)
+       echo m68k-convergent-sysv
+       exit ;;
+    M680?0:D-NIX:5.3:*)
+       echo m68k-diab-dnix
+       exit ;;
+    M68*:*:R3V[5678]*:*)
+       test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
+    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
+       OS_REL=''
+       test -r /etc/.relid \
+       && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+       /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+         && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+       /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+         && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
+       /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+         && { echo i486-ncr-sysv4; exit; } ;;
+    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
+       OS_REL='.3'
+       test -r /etc/.relid \
+           && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+       /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+           && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+       /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+           && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
+       /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
+           && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
+       echo m68k-unknown-lynxos${UNAME_RELEASE}
+       exit ;;
+    mc68030:UNIX_System_V:4.*:*)
+       echo m68k-atari-sysv4
+       exit ;;
+    TSUNAMI:LynxOS:2.*:*)
+       echo sparc-unknown-lynxos${UNAME_RELEASE}
+       exit ;;
+    rs6000:LynxOS:2.*:*)
+       echo rs6000-unknown-lynxos${UNAME_RELEASE}
+       exit ;;
+    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
+       echo powerpc-unknown-lynxos${UNAME_RELEASE}
+       exit ;;
+    SM[BE]S:UNIX_SV:*:*)
+       echo mips-dde-sysv${UNAME_RELEASE}
+       exit ;;
+    RM*:ReliantUNIX-*:*:*)
+       echo mips-sni-sysv4
+       exit ;;
+    RM*:SINIX-*:*:*)
+       echo mips-sni-sysv4
+       exit ;;
+    *:SINIX-*:*:*)
+       if uname -p 2>/dev/null >/dev/null ; then
+               UNAME_MACHINE=`(uname -p) 2>/dev/null`
+               echo ${UNAME_MACHINE}-sni-sysv4
+       else
+               echo ns32k-sni-sysv
+       fi
+       exit ;;
+    PENTIUM:*:4.0*:*)  # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+                       # says <Richard.M.Bartel@ccMail.Census.GOV>
+       echo i586-unisys-sysv4
+       exit ;;
+    *:UNIX_System_V:4*:FTX*)
+       # From Gerald Hewes <hewes@openmarket.com>.
+       # How about differentiating between stratus architectures? -djm
+       echo hppa1.1-stratus-sysv4
+       exit ;;
+    *:*:*:FTX*)
+       # From seanf@swdc.stratus.com.
+       echo i860-stratus-sysv4
+       exit ;;
+    i*86:VOS:*:*)
+       # From Paul.Green@stratus.com.
+       echo ${UNAME_MACHINE}-stratus-vos
+       exit ;;
+    *:VOS:*:*)
+       # From Paul.Green@stratus.com.
+       echo hppa1.1-stratus-vos
+       exit ;;
+    mc68*:A/UX:*:*)
+       echo m68k-apple-aux${UNAME_RELEASE}
+       exit ;;
+    news*:NEWS-OS:6*:*)
+       echo mips-sony-newsos6
+       exit ;;
+    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+       if [ -d /usr/nec ]; then
+               echo mips-nec-sysv${UNAME_RELEASE}
+       else
+               echo mips-unknown-sysv${UNAME_RELEASE}
+       fi
+       exit ;;
+    BeBox:BeOS:*:*)    # BeOS running on hardware made by Be, PPC only.
+       echo powerpc-be-beos
+       exit ;;
+    BeMac:BeOS:*:*)    # BeOS running on Mac or Mac clone, PPC only.
+       echo powerpc-apple-beos
+       exit ;;
+    BePC:BeOS:*:*)     # BeOS running on Intel PC compatible.
+       echo i586-pc-beos
+       exit ;;
+    BePC:Haiku:*:*)    # Haiku running on Intel PC compatible.
+       echo i586-pc-haiku
+       exit ;;
+    x86_64:Haiku:*:*)
+       echo x86_64-unknown-haiku
+       exit ;;
+    SX-4:SUPER-UX:*:*)
+       echo sx4-nec-superux${UNAME_RELEASE}
+       exit ;;
+    SX-5:SUPER-UX:*:*)
+       echo sx5-nec-superux${UNAME_RELEASE}
+       exit ;;
+    SX-6:SUPER-UX:*:*)
+       echo sx6-nec-superux${UNAME_RELEASE}
+       exit ;;
+    SX-7:SUPER-UX:*:*)
+       echo sx7-nec-superux${UNAME_RELEASE}
+       exit ;;
+    SX-8:SUPER-UX:*:*)
+       echo sx8-nec-superux${UNAME_RELEASE}
+       exit ;;
+    SX-8R:SUPER-UX:*:*)
+       echo sx8r-nec-superux${UNAME_RELEASE}
+       exit ;;
+    Power*:Rhapsody:*:*)
+       echo powerpc-apple-rhapsody${UNAME_RELEASE}
+       exit ;;
+    *:Rhapsody:*:*)
+       echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+       exit ;;
+    *:Darwin:*:*)
+       UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
+       eval $set_cc_for_build
+       if test "$UNAME_PROCESSOR" = unknown ; then
+           UNAME_PROCESSOR=powerpc
+       fi
+       if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+           if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
+               (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+               grep IS_64BIT_ARCH >/dev/null
+           then
+               case $UNAME_PROCESSOR in
+                   i386) UNAME_PROCESSOR=x86_64 ;;
+                   powerpc) UNAME_PROCESSOR=powerpc64 ;;
+               esac
+           fi
+       fi
+       echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
+       exit ;;
+    *:procnto*:*:* | *:QNX:[0123456789]*:*)
+       UNAME_PROCESSOR=`uname -p`
+       if test "$UNAME_PROCESSOR" = "x86"; then
+               UNAME_PROCESSOR=i386
+               UNAME_MACHINE=pc
+       fi
+       echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
+       exit ;;
+    *:QNX:*:4*)
+       echo i386-pc-qnx
+       exit ;;
+    NEO-?:NONSTOP_KERNEL:*:*)
+       echo neo-tandem-nsk${UNAME_RELEASE}
+       exit ;;
+    NSE-*:NONSTOP_KERNEL:*:*)
+       echo nse-tandem-nsk${UNAME_RELEASE}
+       exit ;;
+    NSR-?:NONSTOP_KERNEL:*:*)
+       echo nsr-tandem-nsk${UNAME_RELEASE}
+       exit ;;
+    *:NonStop-UX:*:*)
+       echo mips-compaq-nonstopux
+       exit ;;
+    BS2000:POSIX*:*:*)
+       echo bs2000-siemens-sysv
+       exit ;;
+    DS/*:UNIX_System_V:*:*)
+       echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
+       exit ;;
+    *:Plan9:*:*)
+       # "uname -m" is not consistent, so use $cputype instead. 386
+       # is converted to i386 for consistency with other x86
+       # operating systems.
+       if test "$cputype" = "386"; then
+           UNAME_MACHINE=i386
+       else
+           UNAME_MACHINE="$cputype"
+       fi
+       echo ${UNAME_MACHINE}-unknown-plan9
+       exit ;;
+    *:TOPS-10:*:*)
+       echo pdp10-unknown-tops10
+       exit ;;
+    *:TENEX:*:*)
+       echo pdp10-unknown-tenex
+       exit ;;
+    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
+       echo pdp10-dec-tops20
+       exit ;;
+    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
+       echo pdp10-xkl-tops20
+       exit ;;
+    *:TOPS-20:*:*)
+       echo pdp10-unknown-tops20
+       exit ;;
+    *:ITS:*:*)
+       echo pdp10-unknown-its
+       exit ;;
+    SEI:*:*:SEIUX)
+       echo mips-sei-seiux${UNAME_RELEASE}
+       exit ;;
+    *:DragonFly:*:*)
+       echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+       exit ;;
+    *:*VMS:*:*)
+       UNAME_MACHINE=`(uname -p) 2>/dev/null`
+       case "${UNAME_MACHINE}" in
+           A*) echo alpha-dec-vms ; exit ;;
+           I*) echo ia64-dec-vms ; exit ;;
+           V*) echo vax-dec-vms ; exit ;;
+       esac ;;
+    *:XENIX:*:SysV)
+       echo i386-pc-xenix
+       exit ;;
+    i*86:skyos:*:*)
+       echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
+       exit ;;
+    i*86:rdos:*:*)
+       echo ${UNAME_MACHINE}-pc-rdos
+       exit ;;
+    i*86:AROS:*:*)
+       echo ${UNAME_MACHINE}-pc-aros
+       exit ;;
+    x86_64:VMkernel:*:*)
+       echo ${UNAME_MACHINE}-unknown-esx
+       exit ;;
+esac
+
+eval $set_cc_for_build
+cat >$dummy.c <<EOF
+#ifdef _SEQUENT_
+# include <sys/types.h>
+# include <sys/utsname.h>
+#endif
+main ()
+{
+#if defined (sony)
+#if defined (MIPSEB)
+  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
+     I don't know....  */
+  printf ("mips-sony-bsd\n"); exit (0);
+#else
+#include <sys/param.h>
+  printf ("m68k-sony-newsos%s\n",
+#ifdef NEWSOS4
+       "4"
+#else
+       ""
+#endif
+       ); exit (0);
+#endif
+#endif
+
+#if defined (__arm) && defined (__acorn) && defined (__unix)
+  printf ("arm-acorn-riscix\n"); exit (0);
+#endif
+
+#if defined (hp300) && !defined (hpux)
+  printf ("m68k-hp-bsd\n"); exit (0);
+#endif
+
+#if defined (NeXT)
+#if !defined (__ARCHITECTURE__)
+#define __ARCHITECTURE__ "m68k"
+#endif
+  int version;
+  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
+  if (version < 4)
+    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
+  else
+    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
+  exit (0);
+#endif
+
+#if defined (MULTIMAX) || defined (n16)
+#if defined (UMAXV)
+  printf ("ns32k-encore-sysv\n"); exit (0);
+#else
+#if defined (CMU)
+  printf ("ns32k-encore-mach\n"); exit (0);
+#else
+  printf ("ns32k-encore-bsd\n"); exit (0);
+#endif
+#endif
+#endif
+
+#if defined (__386BSD__)
+  printf ("i386-pc-bsd\n"); exit (0);
+#endif
+
+#if defined (sequent)
+#if defined (i386)
+  printf ("i386-sequent-dynix\n"); exit (0);
+#endif
+#if defined (ns32000)
+  printf ("ns32k-sequent-dynix\n"); exit (0);
+#endif
+#endif
+
+#if defined (_SEQUENT_)
+    struct utsname un;
+
+    uname(&un);
+
+    if (strncmp(un.version, "V2", 2) == 0) {
+       printf ("i386-sequent-ptx2\n"); exit (0);
+    }
+    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
+       printf ("i386-sequent-ptx1\n"); exit (0);
+    }
+    printf ("i386-sequent-ptx\n"); exit (0);
+
+#endif
+
+#if defined (vax)
+# if !defined (ultrix)
+#  include <sys/param.h>
+#  if defined (BSD)
+#   if BSD == 43
+      printf ("vax-dec-bsd4.3\n"); exit (0);
+#   else
+#    if BSD == 199006
+      printf ("vax-dec-bsd4.3reno\n"); exit (0);
+#    else
+      printf ("vax-dec-bsd\n"); exit (0);
+#    endif
+#   endif
+#  else
+    printf ("vax-dec-bsd\n"); exit (0);
+#  endif
+# else
+    printf ("vax-dec-ultrix\n"); exit (0);
+# endif
+#endif
+
+#if defined (alliant) && defined (i860)
+  printf ("i860-alliant-bsd\n"); exit (0);
+#endif
+
+  exit (1);
+}
+EOF
+
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
+       { echo "$SYSTEM_NAME"; exit; }
+
+# Apollos put the system type in the environment.
+
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
+
+# Convex versions that predate uname can use getsysinfo(1)
+
+if [ -x /usr/convex/getsysinfo ]
+then
+    case `getsysinfo -f cpu_type` in
+    c1*)
+       echo c1-convex-bsd
+       exit ;;
+    c2*)
+       if getsysinfo -f scalar_acc
+       then echo c32-convex-bsd
+       else echo c2-convex-bsd
+       fi
+       exit ;;
+    c34*)
+       echo c34-convex-bsd
+       exit ;;
+    c38*)
+       echo c38-convex-bsd
+       exit ;;
+    c4*)
+       echo c4-convex-bsd
+       exit ;;
+    esac
+fi
+
+cat >&2 <<EOF
+$0: unable to guess system type
+
+This script, last modified $timestamp, has failed to recognize
+the operating system you are using. It is advised that you
+download the most up to date version of the config scripts from
+
+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+and
+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+
+If the version you run ($0) is already up to date, please
+send the following data and any information you think might be
+pertinent to <config-patches@gnu.org> in order to provide the needed
+information to handle your system.
+
+config.guess timestamp = $timestamp
+
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
+/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
+
+hostinfo               = `(hostinfo) 2>/dev/null`
+/bin/universe          = `(/bin/universe) 2>/dev/null`
+/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
+/bin/arch              = `(/bin/arch) 2>/dev/null`
+/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
+
+UNAME_MACHINE = ${UNAME_MACHINE}
+UNAME_RELEASE = ${UNAME_RELEASE}
+UNAME_SYSTEM  = ${UNAME_SYSTEM}
+UNAME_VERSION = ${UNAME_VERSION}
+EOF
+
+exit 1
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/config.h.in b/config.h.in
new file mode 100644 (file)
index 0000000..491e7f4
--- /dev/null
@@ -0,0 +1,146 @@
+/* config.h.in.  Generated from configure.ac by autoheader.  */
+
+/* The normal alignment of `struct{char;}', in bytes. */
+#undef ALIGNOF_STRUCT_CHAR__
+
+/* Define to 1 if you have the `atexit' function. */
+#undef HAVE_ATEXIT
+
+/* Have cairo graphics library */
+#undef HAVE_CAIRO
+
+/* Have cairo-ft support in cairo graphics library */
+#undef HAVE_CAIRO_FT
+
+/* Have Core Text backend */
+#undef HAVE_CORETEXT
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Have simple TrueType Layout backend */
+#undef HAVE_FALLBACK
+
+/* Have FreeType 2 library */
+#undef HAVE_FREETYPE
+
+/* Define to 1 if you have the `FT_Face_GetCharVariantIndex' function. */
+#undef HAVE_FT_FACE_GETCHARVARIANTINDEX
+
+/* Define to 1 if you have the `getpagesize' function. */
+#undef HAVE_GETPAGESIZE
+
+/* Have glib2 library */
+#undef HAVE_GLIB
+
+/* Have gobject2 library */
+#undef HAVE_GOBJECT
+
+/* Have Graphite2 library */
+#undef HAVE_GRAPHITE2
+
+/* Have ICU library */
+#undef HAVE_ICU
+
+/* Have Intel __sync_* atomic primitives */
+#undef HAVE_INTEL_ATOMIC_PRIMITIVES
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the `isatty' function. */
+#undef HAVE_ISATTY
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the `mmap' function. */
+#undef HAVE_MMAP
+
+/* Define to 1 if you have the `mprotect' function. */
+#undef HAVE_MPROTECT
+
+/* Have native OpenType Layout backend */
+#undef HAVE_OT
+
+/* Have POSIX threads */
+#undef HAVE_PTHREAD
+
+/* Have PTHREAD_PRIO_INHERIT. */
+#undef HAVE_PTHREAD_PRIO_INHERIT
+
+/* Define to 1 if you have the <sched.h> header file. */
+#undef HAVE_SCHED_H
+
+/* Have sched_yield */
+#undef HAVE_SCHED_YIELD
+
+/* Have Solaris __machine_*_barrier and atomic_* operations */
+#undef HAVE_SOLARIS_ATOMIC_OPS
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the `sysconf' function. */
+#undef HAVE_SYSCONF
+
+/* Define to 1 if you have the <sys/mman.h> header file. */
+#undef HAVE_SYS_MMAN_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Have UCDN Unicode functions */
+#undef HAVE_UCDN
+
+/* Have Uniscribe library */
+#undef HAVE_UNISCRIBE
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to 1 if you have the <usp10.h> header file. */
+#undef HAVE_USP10_H
+
+/* Define to 1 if you have the <windows.h> header file. */
+#undef HAVE_WINDOWS_H
+
+/* Define to the sub-directory where libtool stores uninstalled libraries. */
+#undef LT_OBJDIR
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Define to necessary symbol if this constant uses a non-standard name on
+   your system. */
+#undef PTHREAD_CREATE_JOINABLE
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
diff --git a/config.sub b/config.sub
new file mode 100755 (executable)
index 0000000..8b612ab
--- /dev/null
@@ -0,0 +1,1788 @@
+#! /bin/sh
+# Configuration validation subroutine script.
+#   Copyright 1992-2013 Free Software Foundation, Inc.
+
+timestamp='2013-04-24'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that
+# program.  This Exception is an additional permission under section 7
+# of the GNU General Public License, version 3 ("GPLv3").
+
+
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
+#
+# Configuration subroutine to validate and canonicalize a configuration type.
+# Supply the specified configuration type as an argument.
+# If it is invalid, we print an error message on stderr and exit with code 1.
+# Otherwise, we print the canonical config type on stdout and succeed.
+
+# You can get the latest version of this script from:
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+
+# This file is supposed to be the same for all GNU packages
+# and recognize all the CPU types, system types and aliases
+# that are meaningful with *any* GNU software.
+# Each package is responsible for reporting which valid configurations
+# it does not support.  The user should be able to distinguish
+# a failure to support a valid configuration from a meaningless
+# configuration.
+
+# The goal of this file is to map all the various variations of a given
+# machine specification into a single specification in the form:
+#      CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+# or in some cases, the newer four-part form:
+#      CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+# It is wrong to echo any other type of specification.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION] CPU-MFR-OPSYS
+       $0 [OPTION] ALIAS
+
+Canonicalize a configuration name.
+
+Operation modes:
+  -h, --help         print this help, then exit
+  -t, --time-stamp   print date of last modification, then exit
+  -v, --version      print version number, then exit
+
+Report bugs and patches to <config-patches@gnu.org>."
+
+version="\
+GNU config.sub ($timestamp)
+
+Copyright 1992-2013 Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions.  There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+  case $1 in
+    --time-stamp | --time* | -t )
+       echo "$timestamp" ; exit ;;
+    --version | -v )
+       echo "$version" ; exit ;;
+    --help | --h* | -h )
+       echo "$usage"; exit ;;
+    -- )     # Stop option processing
+       shift; break ;;
+    - )        # Use stdin as input.
+       break ;;
+    -* )
+       echo "$me: invalid option $1$help"
+       exit 1 ;;
+
+    *local*)
+       # First pass through any local machine types.
+       echo $1
+       exit ;;
+
+    * )
+       break ;;
+  esac
+done
+
+case $# in
+ 0) echo "$me: missing argument$help" >&2
+    exit 1;;
+ 1) ;;
+ *) echo "$me: too many arguments$help" >&2
+    exit 1;;
+esac
+
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
+# Here we must recognize all the valid KERNEL-OS combinations.
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+case $maybe_os in
+  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
+  knetbsd*-gnu* | netbsd*-gnu* | \
+  kopensolaris*-gnu* | \
+  storm-chaos* | os2-emx* | rtmk-nova*)
+    os=-$maybe_os
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+    ;;
+  android-linux)
+    os=-linux-android
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
+    ;;
+  *)
+    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+    if [ $basic_machine != $1 ]
+    then os=`echo $1 | sed 's/.*-/-/'`
+    else os=; fi
+    ;;
+esac
+
+### Let's recognize common machines as not being operating systems so
+### that things like config.sub decstation-3100 work.  We also
+### recognize some manufacturers as not being operating systems, so we
+### can provide default operating systems below.
+case $os in
+       -sun*os*)
+               # Prevent following clause from handling this invalid input.
+               ;;
+       -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
+       -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
+       -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
+       -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
+       -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
+       -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
+       -apple | -axis | -knuth | -cray | -microblaze*)
+               os=
+               basic_machine=$1
+               ;;
+       -bluegene*)
+               os=-cnk
+               ;;
+       -sim | -cisco | -oki | -wec | -winbond)
+               os=
+               basic_machine=$1
+               ;;
+       -scout)
+               ;;
+       -wrs)
+               os=-vxworks
+               basic_machine=$1
+               ;;
+       -chorusos*)
+               os=-chorusos
+               basic_machine=$1
+               ;;
+       -chorusrdb)
+               os=-chorusrdb
+               basic_machine=$1
+               ;;
+       -hiux*)
+               os=-hiuxwe2
+               ;;
+       -sco6)
+               os=-sco5v6
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+               ;;
+       -sco5)
+               os=-sco3.2v5
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+               ;;
+       -sco4)
+               os=-sco3.2v4
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+               ;;
+       -sco3.2.[4-9]*)
+               os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+               ;;
+       -sco3.2v[4-9]*)
+               # Don't forget version if it is 3.2v4 or newer.
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+               ;;
+       -sco5v6*)
+               # Don't forget version if it is 3.2v4 or newer.
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+               ;;
+       -sco*)
+               os=-sco3.2v2
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+               ;;
+       -udk*)
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+               ;;
+       -isc)
+               os=-isc2.2
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+               ;;
+       -clix*)
+               basic_machine=clipper-intergraph
+               ;;
+       -isc*)
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+               ;;
+       -lynx*178)
+               os=-lynxos178
+               ;;
+       -lynx*5)
+               os=-lynxos5
+               ;;
+       -lynx*)
+               os=-lynxos
+               ;;
+       -ptx*)
+               basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
+               ;;
+       -windowsnt*)
+               os=`echo $os | sed -e 's/windowsnt/winnt/'`
+               ;;
+       -psos*)
+               os=-psos
+               ;;
+       -mint | -mint[0-9]*)
+               basic_machine=m68k-atari
+               os=-mint
+               ;;
+esac
+
+# Decode aliases for certain CPU-COMPANY combinations.
+case $basic_machine in
+       # Recognize the basic CPU types without company name.
+       # Some are omitted here because they have special meanings below.
+       1750a | 580 \
+       | a29k \
+       | aarch64 | aarch64_be \
+       | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+       | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+       | am33_2.0 \
+       | arc | arceb \
+       | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
+       | avr | avr32 \
+       | be32 | be64 \
+       | bfin \
+       | c4x | clipper \
+       | d10v | d30v | dlx | dsp16xx \
+       | epiphany \
+       | fido | fr30 | frv \
+       | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+       | hexagon \
+       | i370 | i860 | i960 | ia64 \
+       | ip2k | iq2000 \
+       | le32 | le64 \
+       | lm32 \
+       | m32c | m32r | m32rle | m68000 | m68k | m88k \
+       | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
+       | mips | mipsbe | mipseb | mipsel | mipsle \
+       | mips16 \
+       | mips64 | mips64el \
+       | mips64octeon | mips64octeonel \
+       | mips64orion | mips64orionel \
+       | mips64r5900 | mips64r5900el \
+       | mips64vr | mips64vrel \
+       | mips64vr4100 | mips64vr4100el \
+       | mips64vr4300 | mips64vr4300el \
+       | mips64vr5000 | mips64vr5000el \
+       | mips64vr5900 | mips64vr5900el \
+       | mipsisa32 | mipsisa32el \
+       | mipsisa32r2 | mipsisa32r2el \
+       | mipsisa64 | mipsisa64el \
+       | mipsisa64r2 | mipsisa64r2el \
+       | mipsisa64sb1 | mipsisa64sb1el \
+       | mipsisa64sr71k | mipsisa64sr71kel \
+       | mipsr5900 | mipsr5900el \
+       | mipstx39 | mipstx39el \
+       | mn10200 | mn10300 \
+       | moxie \
+       | mt \
+       | msp430 \
+       | nds32 | nds32le | nds32be \
+       | nios | nios2 | nios2eb | nios2el \
+       | ns16k | ns32k \
+       | open8 \
+       | or1k | or32 \
+       | pdp10 | pdp11 | pj | pjl \
+       | powerpc | powerpc64 | powerpc64le | powerpcle \
+       | pyramid \
+       | rl78 | rx \
+       | score \
+       | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+       | sh64 | sh64le \
+       | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
+       | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
+       | spu \
+       | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
+       | ubicom32 \
+       | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
+       | we32k \
+       | x86 | xc16x | xstormy16 | xtensa \
+       | z8k | z80)
+               basic_machine=$basic_machine-unknown
+               ;;
+       c54x)
+               basic_machine=tic54x-unknown
+               ;;
+       c55x)
+               basic_machine=tic55x-unknown
+               ;;
+       c6x)
+               basic_machine=tic6x-unknown
+               ;;
+       m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
+               basic_machine=$basic_machine-unknown
+               os=-none
+               ;;
+       m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+               ;;
+       ms1)
+               basic_machine=mt-unknown
+               ;;
+
+       strongarm | thumb | xscale)
+               basic_machine=arm-unknown
+               ;;
+       xgate)
+               basic_machine=$basic_machine-unknown
+               os=-none
+               ;;
+       xscaleeb)
+               basic_machine=armeb-unknown
+               ;;
+
+       xscaleel)
+               basic_machine=armel-unknown
+               ;;
+
+       # We use `pc' rather than `unknown'
+       # because (1) that's what they normally are, and
+       # (2) the word "unknown" tends to confuse beginning users.
+       i*86 | x86_64)
+         basic_machine=$basic_machine-pc
+         ;;
+       # Object if more than one company name word.
+       *-*-*)
+               echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+               exit 1
+               ;;
+       # Recognize the basic CPU types with company name.
+       580-* \
+       | a29k-* \
+       | aarch64-* | aarch64_be-* \
+       | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+       | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+       | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
+       | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
+       | avr-* | avr32-* \
+       | be32-* | be64-* \
+       | bfin-* | bs2000-* \
+       | c[123]* | c30-* | [cjt]90-* | c4x-* \
+       | clipper-* | craynv-* | cydra-* \
+       | d10v-* | d30v-* | dlx-* \
+       | elxsi-* \
+       | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
+       | h8300-* | h8500-* \
+       | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+       | hexagon-* \
+       | i*86-* | i860-* | i960-* | ia64-* \
+       | ip2k-* | iq2000-* \
+       | le32-* | le64-* \
+       | lm32-* \
+       | m32c-* | m32r-* | m32rle-* \
+       | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+       | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
+       | microblaze-* | microblazeel-* \
+       | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+       | mips16-* \
+       | mips64-* | mips64el-* \
+       | mips64octeon-* | mips64octeonel-* \
+       | mips64orion-* | mips64orionel-* \
+       | mips64r5900-* | mips64r5900el-* \
+       | mips64vr-* | mips64vrel-* \
+       | mips64vr4100-* | mips64vr4100el-* \
+       | mips64vr4300-* | mips64vr4300el-* \
+       | mips64vr5000-* | mips64vr5000el-* \
+       | mips64vr5900-* | mips64vr5900el-* \
+       | mipsisa32-* | mipsisa32el-* \
+       | mipsisa32r2-* | mipsisa32r2el-* \
+       | mipsisa64-* | mipsisa64el-* \
+       | mipsisa64r2-* | mipsisa64r2el-* \
+       | mipsisa64sb1-* | mipsisa64sb1el-* \
+       | mipsisa64sr71k-* | mipsisa64sr71kel-* \
+       | mipsr5900-* | mipsr5900el-* \
+       | mipstx39-* | mipstx39el-* \
+       | mmix-* \
+       | mt-* \
+       | msp430-* \
+       | nds32-* | nds32le-* | nds32be-* \
+       | nios-* | nios2-* | nios2eb-* | nios2el-* \
+       | none-* | np1-* | ns16k-* | ns32k-* \
+       | open8-* \
+       | orion-* \
+       | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+       | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
+       | pyramid-* \
+       | rl78-* | romp-* | rs6000-* | rx-* \
+       | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
+       | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+       | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
+       | sparclite-* \
+       | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
+       | tahoe-* \
+       | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+       | tile*-* \
+       | tron-* \
+       | ubicom32-* \
+       | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
+       | vax-* \
+       | we32k-* \
+       | x86-* | x86_64-* | xc16x-* | xps100-* \
+       | xstormy16-* | xtensa*-* \
+       | ymp-* \
+       | z8k-* | z80-*)
+               ;;
+       # Recognize the basic CPU types without company name, with glob match.
+       xtensa*)
+               basic_machine=$basic_machine-unknown
+               ;;
+       # Recognize the various machine names and aliases which stand
+       # for a CPU type and a company and sometimes even an OS.
+       386bsd)
+               basic_machine=i386-unknown
+               os=-bsd
+               ;;
+       3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
+               basic_machine=m68000-att
+               ;;
+       3b*)
+               basic_machine=we32k-att
+               ;;
+       a29khif)
+               basic_machine=a29k-amd
+               os=-udi
+               ;;
+       abacus)
+               basic_machine=abacus-unknown
+               ;;
+       adobe68k)
+               basic_machine=m68010-adobe
+               os=-scout
+               ;;
+       alliant | fx80)
+               basic_machine=fx80-alliant
+               ;;
+       altos | altos3068)
+               basic_machine=m68k-altos
+               ;;
+       am29k)
+               basic_machine=a29k-none
+               os=-bsd
+               ;;
+       amd64)
+               basic_machine=x86_64-pc
+               ;;
+       amd64-*)
+               basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+               ;;
+       amdahl)
+               basic_machine=580-amdahl
+               os=-sysv
+               ;;
+       amiga | amiga-*)
+               basic_machine=m68k-unknown
+               ;;
+       amigaos | amigados)
+               basic_machine=m68k-unknown
+               os=-amigaos
+               ;;
+       amigaunix | amix)
+               basic_machine=m68k-unknown
+               os=-sysv4
+               ;;
+       apollo68)
+               basic_machine=m68k-apollo
+               os=-sysv
+               ;;
+       apollo68bsd)
+               basic_machine=m68k-apollo
+               os=-bsd
+               ;;
+       aros)
+               basic_machine=i386-pc
+               os=-aros
+               ;;
+       aux)
+               basic_machine=m68k-apple
+               os=-aux
+               ;;
+       balance)
+               basic_machine=ns32k-sequent
+               os=-dynix
+               ;;
+       blackfin)
+               basic_machine=bfin-unknown
+               os=-linux
+               ;;
+       blackfin-*)
+               basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
+               os=-linux
+               ;;
+       bluegene*)
+               basic_machine=powerpc-ibm
+               os=-cnk
+               ;;
+       c54x-*)
+               basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
+               ;;
+       c55x-*)
+               basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
+               ;;
+       c6x-*)
+               basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
+               ;;
+       c90)
+               basic_machine=c90-cray
+               os=-unicos
+               ;;
+       cegcc)
+               basic_machine=arm-unknown
+               os=-cegcc
+               ;;
+       convex-c1)
+               basic_machine=c1-convex
+               os=-bsd
+               ;;
+       convex-c2)
+               basic_machine=c2-convex
+               os=-bsd
+               ;;
+       convex-c32)
+               basic_machine=c32-convex
+               os=-bsd
+               ;;
+       convex-c34)
+               basic_machine=c34-convex
+               os=-bsd
+               ;;
+       convex-c38)
+               basic_machine=c38-convex
+               os=-bsd
+               ;;
+       cray | j90)
+               basic_machine=j90-cray
+               os=-unicos
+               ;;
+       craynv)
+               basic_machine=craynv-cray
+               os=-unicosmp
+               ;;
+       cr16 | cr16-*)
+               basic_machine=cr16-unknown
+               os=-elf
+               ;;
+       crds | unos)
+               basic_machine=m68k-crds
+               ;;
+       crisv32 | crisv32-* | etraxfs*)
+               basic_machine=crisv32-axis
+               ;;
+       cris | cris-* | etrax*)
+               basic_machine=cris-axis
+               ;;
+       crx)
+               basic_machine=crx-unknown
+               os=-elf
+               ;;
+       da30 | da30-*)
+               basic_machine=m68k-da30
+               ;;
+       decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
+               basic_machine=mips-dec
+               ;;
+       decsystem10* | dec10*)
+               basic_machine=pdp10-dec
+               os=-tops10
+               ;;
+       decsystem20* | dec20*)
+               basic_machine=pdp10-dec
+               os=-tops20
+               ;;
+       delta | 3300 | motorola-3300 | motorola-delta \
+             | 3300-motorola | delta-motorola)
+               basic_machine=m68k-motorola
+               ;;
+       delta88)
+               basic_machine=m88k-motorola
+               os=-sysv3
+               ;;
+       dicos)
+               basic_machine=i686-pc
+               os=-dicos
+               ;;
+       djgpp)
+               basic_machine=i586-pc
+               os=-msdosdjgpp
+               ;;
+       dpx20 | dpx20-*)
+               basic_machine=rs6000-bull
+               os=-bosx
+               ;;
+       dpx2* | dpx2*-bull)
+               basic_machine=m68k-bull
+               os=-sysv3
+               ;;
+       ebmon29k)
+               basic_machine=a29k-amd
+               os=-ebmon
+               ;;
+       elxsi)
+               basic_machine=elxsi-elxsi
+               os=-bsd
+               ;;
+       encore | umax | mmax)
+               basic_machine=ns32k-encore
+               ;;
+       es1800 | OSE68k | ose68k | ose | OSE)
+               basic_machine=m68k-ericsson
+               os=-ose
+               ;;
+       fx2800)
+               basic_machine=i860-alliant
+               ;;
+       genix)
+               basic_machine=ns32k-ns
+               ;;
+       gmicro)
+               basic_machine=tron-gmicro
+               os=-sysv
+               ;;
+       go32)
+               basic_machine=i386-pc
+               os=-go32
+               ;;
+       h3050r* | hiux*)
+               basic_machine=hppa1.1-hitachi
+               os=-hiuxwe2
+               ;;
+       h8300hms)
+               basic_machine=h8300-hitachi
+               os=-hms
+               ;;
+       h8300xray)
+               basic_machine=h8300-hitachi
+               os=-xray
+               ;;
+       h8500hms)
+               basic_machine=h8500-hitachi
+               os=-hms
+               ;;
+       harris)
+               basic_machine=m88k-harris
+               os=-sysv3
+               ;;
+       hp300-*)
+               basic_machine=m68k-hp
+               ;;
+       hp300bsd)
+               basic_machine=m68k-hp
+               os=-bsd
+               ;;
+       hp300hpux)
+               basic_machine=m68k-hp
+               os=-hpux
+               ;;
+       hp3k9[0-9][0-9] | hp9[0-9][0-9])
+               basic_machine=hppa1.0-hp
+               ;;
+       hp9k2[0-9][0-9] | hp9k31[0-9])
+               basic_machine=m68000-hp
+               ;;
+       hp9k3[2-9][0-9])
+               basic_machine=m68k-hp
+               ;;
+       hp9k6[0-9][0-9] | hp6[0-9][0-9])
+               basic_machine=hppa1.0-hp
+               ;;
+       hp9k7[0-79][0-9] | hp7[0-79][0-9])
+               basic_machine=hppa1.1-hp
+               ;;
+       hp9k78[0-9] | hp78[0-9])
+               # FIXME: really hppa2.0-hp
+               basic_machine=hppa1.1-hp
+               ;;
+       hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
+               # FIXME: really hppa2.0-hp
+               basic_machine=hppa1.1-hp
+               ;;
+       hp9k8[0-9][13679] | hp8[0-9][13679])
+               basic_machine=hppa1.1-hp
+               ;;
+       hp9k8[0-9][0-9] | hp8[0-9][0-9])
+               basic_machine=hppa1.0-hp
+               ;;
+       hppa-next)
+               os=-nextstep3
+               ;;
+       hppaosf)
+               basic_machine=hppa1.1-hp
+               os=-osf
+               ;;
+       hppro)
+               basic_machine=hppa1.1-hp
+               os=-proelf
+               ;;
+       i370-ibm* | ibm*)
+               basic_machine=i370-ibm
+               ;;
+       i*86v32)
+               basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+               os=-sysv32
+               ;;
+       i*86v4*)
+               basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+               os=-sysv4
+               ;;
+       i*86v)
+               basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+               os=-sysv
+               ;;
+       i*86sol2)
+               basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+               os=-solaris2
+               ;;
+       i386mach)
+               basic_machine=i386-mach
+               os=-mach
+               ;;
+       i386-vsta | vsta)
+               basic_machine=i386-unknown
+               os=-vsta
+               ;;
+       iris | iris4d)
+               basic_machine=mips-sgi
+               case $os in
+                   -irix*)
+                       ;;
+                   *)
+                       os=-irix4
+                       ;;
+               esac
+               ;;
+       isi68 | isi)
+               basic_machine=m68k-isi
+               os=-sysv
+               ;;
+       m68knommu)
+               basic_machine=m68k-unknown
+               os=-linux
+               ;;
+       m68knommu-*)
+               basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
+               os=-linux
+               ;;
+       m88k-omron*)
+               basic_machine=m88k-omron
+               ;;
+       magnum | m3230)
+               basic_machine=mips-mips
+               os=-sysv
+               ;;
+       merlin)
+               basic_machine=ns32k-utek
+               os=-sysv
+               ;;
+       microblaze*)
+               basic_machine=microblaze-xilinx
+               ;;
+       mingw64)
+               basic_machine=x86_64-pc
+               os=-mingw64
+               ;;
+       mingw32)
+               basic_machine=i386-pc
+               os=-mingw32
+               ;;
+       mingw32ce)
+               basic_machine=arm-unknown
+               os=-mingw32ce
+               ;;
+       miniframe)
+               basic_machine=m68000-convergent
+               ;;
+       *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
+               basic_machine=m68k-atari
+               os=-mint
+               ;;
+       mips3*-*)
+               basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
+               ;;
+       mips3*)
+               basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
+               ;;
+       monitor)
+               basic_machine=m68k-rom68k
+               os=-coff
+               ;;
+       morphos)
+               basic_machine=powerpc-unknown
+               os=-morphos
+               ;;
+       msdos)
+               basic_machine=i386-pc
+               os=-msdos
+               ;;
+       ms1-*)
+               basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
+               ;;
+       msys)
+               basic_machine=i386-pc
+               os=-msys
+               ;;
+       mvs)
+               basic_machine=i370-ibm
+               os=-mvs
+               ;;
+       nacl)
+               basic_machine=le32-unknown
+               os=-nacl
+               ;;
+       ncr3000)
+               basic_machine=i486-ncr
+               os=-sysv4
+               ;;
+       netbsd386)
+               basic_machine=i386-unknown
+               os=-netbsd
+               ;;
+       netwinder)
+               basic_machine=armv4l-rebel
+               os=-linux
+               ;;
+       news | news700 | news800 | news900)
+               basic_machine=m68k-sony
+               os=-newsos
+               ;;
+       news1000)
+               basic_machine=m68030-sony
+               os=-newsos
+               ;;
+       news-3600 | risc-news)
+               basic_machine=mips-sony
+               os=-newsos
+               ;;
+       necv70)
+               basic_machine=v70-nec
+               os=-sysv
+               ;;
+       next | m*-next )
+               basic_machine=m68k-next
+               case $os in
+                   -nextstep* )
+                       ;;
+                   -ns2*)
+                     os=-nextstep2
+                       ;;
+                   *)
+                     os=-nextstep3
+                       ;;
+               esac
+               ;;
+       nh3000)
+               basic_machine=m68k-harris
+               os=-cxux
+               ;;
+       nh[45]000)
+               basic_machine=m88k-harris
+               os=-cxux
+               ;;
+       nindy960)
+               basic_machine=i960-intel
+               os=-nindy
+               ;;
+       mon960)
+               basic_machine=i960-intel
+               os=-mon960
+               ;;
+       nonstopux)
+               basic_machine=mips-compaq
+               os=-nonstopux
+               ;;
+       np1)
+               basic_machine=np1-gould
+               ;;
+       neo-tandem)
+               basic_machine=neo-tandem
+               ;;
+       nse-tandem)
+               basic_machine=nse-tandem
+               ;;
+       nsr-tandem)
+               basic_machine=nsr-tandem
+               ;;
+       op50n-* | op60c-*)
+               basic_machine=hppa1.1-oki
+               os=-proelf
+               ;;
+       openrisc | openrisc-*)
+               basic_machine=or32-unknown
+               ;;
+       os400)
+               basic_machine=powerpc-ibm
+               os=-os400
+               ;;
+       OSE68000 | ose68000)
+               basic_machine=m68000-ericsson
+               os=-ose
+               ;;
+       os68k)
+               basic_machine=m68k-none
+               os=-os68k
+               ;;
+       pa-hitachi)
+               basic_machine=hppa1.1-hitachi
+               os=-hiuxwe2
+               ;;
+       paragon)
+               basic_machine=i860-intel
+               os=-osf
+               ;;
+       parisc)
+               basic_machine=hppa-unknown
+               os=-linux
+               ;;
+       parisc-*)
+               basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
+               os=-linux
+               ;;
+       pbd)
+               basic_machine=sparc-tti
+               ;;
+       pbb)
+               basic_machine=m68k-tti
+               ;;
+       pc532 | pc532-*)
+               basic_machine=ns32k-pc532
+               ;;
+       pc98)
+               basic_machine=i386-pc
+               ;;
+       pc98-*)
+               basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
+               ;;
+       pentium | p5 | k5 | k6 | nexgen | viac3)
+               basic_machine=i586-pc
+               ;;
+       pentiumpro | p6 | 6x86 | athlon | athlon_*)
+               basic_machine=i686-pc
+               ;;
+       pentiumii | pentium2 | pentiumiii | pentium3)
+               basic_machine=i686-pc
+               ;;
+       pentium4)
+               basic_machine=i786-pc
+               ;;
+       pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
+               basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
+               ;;
+       pentiumpro-* | p6-* | 6x86-* | athlon-*)
+               basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+               ;;
+       pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
+               basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+               ;;
+       pentium4-*)
+               basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
+               ;;
+       pn)
+               basic_machine=pn-gould
+               ;;
+       power)  basic_machine=power-ibm
+               ;;
+       ppc | ppcbe)    basic_machine=powerpc-unknown
+               ;;
+       ppc-* | ppcbe-*)
+               basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+               ;;
+       ppcle | powerpclittle | ppc-le | powerpc-little)
+               basic_machine=powerpcle-unknown
+               ;;
+       ppcle-* | powerpclittle-*)
+               basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
+               ;;
+       ppc64)  basic_machine=powerpc64-unknown
+               ;;
+       ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+               ;;
+       ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+               basic_machine=powerpc64le-unknown
+               ;;
+       ppc64le-* | powerpc64little-*)
+               basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+               ;;
+       ps2)
+               basic_machine=i386-ibm
+               ;;
+       pw32)
+               basic_machine=i586-unknown
+               os=-pw32
+               ;;
+       rdos | rdos64)
+               basic_machine=x86_64-pc
+               os=-rdos
+               ;;
+       rdos32)
+               basic_machine=i386-pc
+               os=-rdos
+               ;;
+       rom68k)
+               basic_machine=m68k-rom68k
+               os=-coff
+               ;;
+       rm[46]00)
+               basic_machine=mips-siemens
+               ;;
+       rtpc | rtpc-*)
+               basic_machine=romp-ibm
+               ;;
+       s390 | s390-*)
+               basic_machine=s390-ibm
+               ;;
+       s390x | s390x-*)
+               basic_machine=s390x-ibm
+               ;;
+       sa29200)
+               basic_machine=a29k-amd
+               os=-udi
+               ;;
+       sb1)
+               basic_machine=mipsisa64sb1-unknown
+               ;;
+       sb1el)
+               basic_machine=mipsisa64sb1el-unknown
+               ;;
+       sde)
+               basic_machine=mipsisa32-sde
+               os=-elf
+               ;;
+       sei)
+               basic_machine=mips-sei
+               os=-seiux
+               ;;
+       sequent)
+               basic_machine=i386-sequent
+               ;;
+       sh)
+               basic_machine=sh-hitachi
+               os=-hms
+               ;;
+       sh5el)
+               basic_machine=sh5le-unknown
+               ;;
+       sh64)
+               basic_machine=sh64-unknown
+               ;;
+       sparclite-wrs | simso-wrs)
+               basic_machine=sparclite-wrs
+               os=-vxworks
+               ;;
+       sps7)
+               basic_machine=m68k-bull
+               os=-sysv2
+               ;;
+       spur)
+               basic_machine=spur-unknown
+               ;;
+       st2000)
+               basic_machine=m68k-tandem
+               ;;
+       stratus)
+               basic_machine=i860-stratus
+               os=-sysv4
+               ;;
+       strongarm-* | thumb-*)
+               basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
+               ;;
+       sun2)
+               basic_machine=m68000-sun
+               ;;
+       sun2os3)
+               basic_machine=m68000-sun
+               os=-sunos3
+               ;;
+       sun2os4)
+               basic_machine=m68000-sun
+               os=-sunos4
+               ;;
+       sun3os3)
+               basic_machine=m68k-sun
+               os=-sunos3
+               ;;
+       sun3os4)
+               basic_machine=m68k-sun
+               os=-sunos4
+               ;;
+       sun4os3)
+               basic_machine=sparc-sun
+               os=-sunos3
+               ;;
+       sun4os4)
+               basic_machine=sparc-sun
+               os=-sunos4
+               ;;
+       sun4sol2)
+               basic_machine=sparc-sun
+               os=-solaris2
+               ;;
+       sun3 | sun3-*)
+               basic_machine=m68k-sun
+               ;;
+       sun4)
+               basic_machine=sparc-sun
+               ;;
+       sun386 | sun386i | roadrunner)
+               basic_machine=i386-sun
+               ;;
+       sv1)
+               basic_machine=sv1-cray
+               os=-unicos
+               ;;
+       symmetry)
+               basic_machine=i386-sequent
+               os=-dynix
+               ;;
+       t3e)
+               basic_machine=alphaev5-cray
+               os=-unicos
+               ;;
+       t90)
+               basic_machine=t90-cray
+               os=-unicos
+               ;;
+       tile*)
+               basic_machine=$basic_machine-unknown
+               os=-linux-gnu
+               ;;
+       tx39)
+               basic_machine=mipstx39-unknown
+               ;;
+       tx39el)
+               basic_machine=mipstx39el-unknown
+               ;;
+       toad1)
+               basic_machine=pdp10-xkl
+               os=-tops20
+               ;;
+       tower | tower-32)
+               basic_machine=m68k-ncr
+               ;;
+       tpf)
+               basic_machine=s390x-ibm
+               os=-tpf
+               ;;
+       udi29k)
+               basic_machine=a29k-amd
+               os=-udi
+               ;;
+       ultra3)
+               basic_machine=a29k-nyu
+               os=-sym1
+               ;;
+       v810 | necv810)
+               basic_machine=v810-nec
+               os=-none
+               ;;
+       vaxv)
+               basic_machine=vax-dec
+               os=-sysv
+               ;;
+       vms)
+               basic_machine=vax-dec
+               os=-vms
+               ;;
+       vpp*|vx|vx-*)
+               basic_machine=f301-fujitsu
+               ;;
+       vxworks960)
+               basic_machine=i960-wrs
+               os=-vxworks
+               ;;
+       vxworks68)
+               basic_machine=m68k-wrs
+               os=-vxworks
+               ;;
+       vxworks29k)
+               basic_machine=a29k-wrs
+               os=-vxworks
+               ;;
+       w65*)
+               basic_machine=w65-wdc
+               os=-none
+               ;;
+       w89k-*)
+               basic_machine=hppa1.1-winbond
+               os=-proelf
+               ;;
+       xbox)
+               basic_machine=i686-pc
+               os=-mingw32
+               ;;
+       xps | xps100)
+               basic_machine=xps100-honeywell
+               ;;
+       xscale-* | xscalee[bl]-*)
+               basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
+               ;;
+       ymp)
+               basic_machine=ymp-cray
+               os=-unicos
+               ;;
+       z8k-*-coff)
+               basic_machine=z8k-unknown
+               os=-sim
+               ;;
+       z80-*-coff)
+               basic_machine=z80-unknown
+               os=-sim
+               ;;
+       none)
+               basic_machine=none-none
+               os=-none
+               ;;
+
+# Here we handle the default manufacturer of certain CPU types.  It is in
+# some cases the only manufacturer, in others, it is the most popular.
+       w89k)
+               basic_machine=hppa1.1-winbond
+               ;;
+       op50n)
+               basic_machine=hppa1.1-oki
+               ;;
+       op60c)
+               basic_machine=hppa1.1-oki
+               ;;
+       romp)
+               basic_machine=romp-ibm
+               ;;
+       mmix)
+               basic_machine=mmix-knuth
+               ;;
+       rs6000)
+               basic_machine=rs6000-ibm
+               ;;
+       vax)
+               basic_machine=vax-dec
+               ;;
+       pdp10)
+               # there are many clones, so DEC is not a safe bet
+               basic_machine=pdp10-unknown
+               ;;
+       pdp11)
+               basic_machine=pdp11-dec
+               ;;
+       we32k)
+               basic_machine=we32k-att
+               ;;
+       sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
+               basic_machine=sh-unknown
+               ;;
+       sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
+               basic_machine=sparc-sun
+               ;;
+       cydra)
+               basic_machine=cydra-cydrome
+               ;;
+       orion)
+               basic_machine=orion-highlevel
+               ;;
+       orion105)
+               basic_machine=clipper-highlevel
+               ;;
+       mac | mpw | mac-mpw)
+               basic_machine=m68k-apple
+               ;;
+       pmac | pmac-mpw)
+               basic_machine=powerpc-apple
+               ;;
+       *-unknown)
+               # Make sure to match an already-canonicalized machine name.
+               ;;
+       *)
+               echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+               exit 1
+               ;;
+esac
+
+# Here we canonicalize certain aliases for manufacturers.
+case $basic_machine in
+       *-digital*)
+               basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
+               ;;
+       *-commodore*)
+               basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
+               ;;
+       *)
+               ;;
+esac
+
+# Decode manufacturer-specific aliases for certain operating systems.
+
+if [ x"$os" != x"" ]
+then
+case $os in
+       # First match some system type aliases
+       # that might get confused with valid system types.
+       # -solaris* is a basic system type, with this one exception.
+       -auroraux)
+               os=-auroraux
+               ;;
+       -solaris1 | -solaris1.*)
+               os=`echo $os | sed -e 's|solaris1|sunos4|'`
+               ;;
+       -solaris)
+               os=-solaris2
+               ;;
+       -svr4*)
+               os=-sysv4
+               ;;
+       -unixware*)
+               os=-sysv4.2uw
+               ;;
+       -gnu/linux*)
+               os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
+               ;;
+       # First accept the basic system types.
+       # The portable systems comes first.
+       # Each alternative MUST END IN A *, to match a version number.
+       # -sysv* is not here because it comes later, after sysvr4.
+       -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+             | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
+             | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
+             | -sym* | -kopensolaris* | -plan9* \
+             | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
+             | -aos* | -aros* \
+             | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+             | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+             | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
+             | -bitrig* | -openbsd* | -solidbsd* \
+             | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
+             | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+             | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
+             | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+             | -chorusos* | -chorusrdb* | -cegcc* \
+             | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+             | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
+             | -linux-newlib* | -linux-musl* | -linux-uclibc* \
+             | -uxpv* | -beos* | -mpeix* | -udk* \
+             | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+             | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
+             | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
+             | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+             | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+             | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+             | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
+       # Remember, each alternative MUST END IN *, to match a version number.
+               ;;
+       -qnx*)
+               case $basic_machine in
+                   x86-* | i*86-*)
+                       ;;
+                   *)
+                       os=-nto$os
+                       ;;
+               esac
+               ;;
+       -nto-qnx*)
+               ;;
+       -nto*)
+               os=`echo $os | sed -e 's|nto|nto-qnx|'`
+               ;;
+       -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
+             | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
+             | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
+               ;;
+       -mac*)
+               os=`echo $os | sed -e 's|mac|macos|'`
+               ;;
+       -linux-dietlibc)
+               os=-linux-dietlibc
+               ;;
+       -linux*)
+               os=`echo $os | sed -e 's|linux|linux-gnu|'`
+               ;;
+       -sunos5*)
+               os=`echo $os | sed -e 's|sunos5|solaris2|'`
+               ;;
+       -sunos6*)
+               os=`echo $os | sed -e 's|sunos6|solaris3|'`
+               ;;
+       -opened*)
+               os=-openedition
+               ;;
+       -os400*)
+               os=-os400
+               ;;
+       -wince*)
+               os=-wince
+               ;;
+       -osfrose*)
+               os=-osfrose
+               ;;
+       -osf*)
+               os=-osf
+               ;;
+       -utek*)
+               os=-bsd
+               ;;
+       -dynix*)
+               os=-bsd
+               ;;
+       -acis*)
+               os=-aos
+               ;;
+       -atheos*)
+               os=-atheos
+               ;;
+       -syllable*)
+               os=-syllable
+               ;;
+       -386bsd)
+               os=-bsd
+               ;;
+       -ctix* | -uts*)
+               os=-sysv
+               ;;
+       -nova*)
+               os=-rtmk-nova
+               ;;
+       -ns2 )
+               os=-nextstep2
+               ;;
+       -nsk*)
+               os=-nsk
+               ;;
+       # Preserve the version number of sinix5.
+       -sinix5.*)
+               os=`echo $os | sed -e 's|sinix|sysv|'`
+               ;;
+       -sinix*)
+               os=-sysv4
+               ;;
+       -tpf*)
+               os=-tpf
+               ;;
+       -triton*)
+               os=-sysv3
+               ;;
+       -oss*)
+               os=-sysv3
+               ;;
+       -svr4)
+               os=-sysv4
+               ;;
+       -svr3)
+               os=-sysv3
+               ;;
+       -sysvr4)
+               os=-sysv4
+               ;;
+       # This must come after -sysvr4.
+       -sysv*)
+               ;;
+       -ose*)
+               os=-ose
+               ;;
+       -es1800*)
+               os=-ose
+               ;;
+       -xenix)
+               os=-xenix
+               ;;
+       -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+               os=-mint
+               ;;
+       -aros*)
+               os=-aros
+               ;;
+       -zvmoe)
+               os=-zvmoe
+               ;;
+       -dicos*)
+               os=-dicos
+               ;;
+       -nacl*)
+               ;;
+       -none)
+               ;;
+       *)
+               # Get rid of the `-' at the beginning of $os.
+               os=`echo $os | sed 's/[^-]*-//'`
+               echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
+               exit 1
+               ;;
+esac
+else
+
+# Here we handle the default operating systems that come with various machines.
+# The value should be what the vendor currently ships out the door with their
+# machine or put another way, the most popular os provided with the machine.
+
+# Note that if you're going to try to match "-MANUFACTURER" here (say,
+# "-sun"), then you have to tell the case statement up towards the top
+# that MANUFACTURER isn't an operating system.  Otherwise, code above
+# will signal an error saying that MANUFACTURER isn't an operating
+# system, and we'll never get to this point.
+
+case $basic_machine in
+       score-*)
+               os=-elf
+               ;;
+       spu-*)
+               os=-elf
+               ;;
+       *-acorn)
+               os=-riscix1.2
+               ;;
+       arm*-rebel)
+               os=-linux
+               ;;
+       arm*-semi)
+               os=-aout
+               ;;
+       c4x-* | tic4x-*)
+               os=-coff
+               ;;
+       hexagon-*)
+               os=-elf
+               ;;
+       tic54x-*)
+               os=-coff
+               ;;
+       tic55x-*)
+               os=-coff
+               ;;
+       tic6x-*)
+               os=-coff
+               ;;
+       # This must come before the *-dec entry.
+       pdp10-*)
+               os=-tops20
+               ;;
+       pdp11-*)
+               os=-none
+               ;;
+       *-dec | vax-*)
+               os=-ultrix4.2
+               ;;
+       m68*-apollo)
+               os=-domain
+               ;;
+       i386-sun)
+               os=-sunos4.0.2
+               ;;
+       m68000-sun)
+               os=-sunos3
+               ;;
+       m68*-cisco)
+               os=-aout
+               ;;
+       mep-*)
+               os=-elf
+               ;;
+       mips*-cisco)
+               os=-elf
+               ;;
+       mips*-*)
+               os=-elf
+               ;;
+       or1k-*)
+               os=-elf
+               ;;
+       or32-*)
+               os=-coff
+               ;;
+       *-tti)  # must be before sparc entry or we get the wrong os.
+               os=-sysv3
+               ;;
+       sparc-* | *-sun)
+               os=-sunos4.1.1
+               ;;
+       *-be)
+               os=-beos
+               ;;
+       *-haiku)
+               os=-haiku
+               ;;
+       *-ibm)
+               os=-aix
+               ;;
+       *-knuth)
+               os=-mmixware
+               ;;
+       *-wec)
+               os=-proelf
+               ;;
+       *-winbond)
+               os=-proelf
+               ;;
+       *-oki)
+               os=-proelf
+               ;;
+       *-hp)
+               os=-hpux
+               ;;
+       *-hitachi)
+               os=-hiux
+               ;;
+       i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
+               os=-sysv
+               ;;
+       *-cbm)
+               os=-amigaos
+               ;;
+       *-dg)
+               os=-dgux
+               ;;
+       *-dolphin)
+               os=-sysv3
+               ;;
+       m68k-ccur)
+               os=-rtu
+               ;;
+       m88k-omron*)
+               os=-luna
+               ;;
+       *-next )
+               os=-nextstep
+               ;;
+       *-sequent)
+               os=-ptx
+               ;;
+       *-crds)
+               os=-unos
+               ;;
+       *-ns)
+               os=-genix
+               ;;
+       i370-*)
+               os=-mvs
+               ;;
+       *-next)
+               os=-nextstep3
+               ;;
+       *-gould)
+               os=-sysv
+               ;;
+       *-highlevel)
+               os=-bsd
+               ;;
+       *-encore)
+               os=-bsd
+               ;;
+       *-sgi)
+               os=-irix
+               ;;
+       *-siemens)
+               os=-sysv4
+               ;;
+       *-masscomp)
+               os=-rtu
+               ;;
+       f30[01]-fujitsu | f700-fujitsu)
+               os=-uxpv
+               ;;
+       *-rom68k)
+               os=-coff
+               ;;
+       *-*bug)
+               os=-coff
+               ;;
+       *-apple)
+               os=-macos
+               ;;
+       *-atari*)
+               os=-mint
+               ;;
+       *)
+               os=-none
+               ;;
+esac
+fi
+
+# Here we handle the case where we know the os, and the CPU type, but not the
+# manufacturer.  We pick the logical manufacturer.
+vendor=unknown
+case $basic_machine in
+       *-unknown)
+               case $os in
+                       -riscix*)
+                               vendor=acorn
+                               ;;
+                       -sunos*)
+                               vendor=sun
+                               ;;
+                       -cnk*|-aix*)
+                               vendor=ibm
+                               ;;
+                       -beos*)
+                               vendor=be
+                               ;;
+                       -hpux*)
+                               vendor=hp
+                               ;;
+                       -mpeix*)
+                               vendor=hp
+                               ;;
+                       -hiux*)
+                               vendor=hitachi
+                               ;;
+                       -unos*)
+                               vendor=crds
+                               ;;
+                       -dgux*)
+                               vendor=dg
+                               ;;
+                       -luna*)
+                               vendor=omron
+                               ;;
+                       -genix*)
+                               vendor=ns
+                               ;;
+                       -mvs* | -opened*)
+                               vendor=ibm
+                               ;;
+                       -os400*)
+                               vendor=ibm
+                               ;;
+                       -ptx*)
+                               vendor=sequent
+                               ;;
+                       -tpf*)
+                               vendor=ibm
+                               ;;
+                       -vxsim* | -vxworks* | -windiss*)
+                               vendor=wrs
+                               ;;
+                       -aux*)
+                               vendor=apple
+                               ;;
+                       -hms*)
+                               vendor=hitachi
+                               ;;
+                       -mpw* | -macos*)
+                               vendor=apple
+                               ;;
+                       -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+                               vendor=atari
+                               ;;
+                       -vos*)
+                               vendor=stratus
+                               ;;
+               esac
+               basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
+               ;;
+esac
+
+echo $basic_machine$os
+exit
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/configure b/configure
new file mode 100755 (executable)
index 0000000..84e04c7
--- /dev/null
+++ b/configure
@@ -0,0 +1,21635 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.69 for HarfBuzz 0.9.35.
+#
+# Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz>.
+#
+#
+# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
+#
+#
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
+  emulate sh
+  NULLCMD=:
+  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+"$@"}'='"$@"'
+  setopt NO_GLOB_SUBST
+else
+  case `(set -o) 2>/dev/null` in #(
+  *posix*) :
+    set -o posix ;; #(
+  *) :
+     ;;
+esac
+fi
+
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+  as_echo='print -r --'
+  as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+  as_echo='printf %s\n'
+  as_echo_n='printf %s'
+else
+  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+    as_echo_n='/usr/ucb/echo -n'
+  else
+    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+    as_echo_n_body='eval
+      arg=$1;
+      case $arg in #(
+      *"$as_nl"*)
+       expr "X$arg" : "X\\(.*\\)$as_nl";
+       arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+      esac;
+      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+    '
+    export as_echo_n_body
+    as_echo_n='sh -c $as_echo_n_body as_echo'
+  fi
+  export as_echo_body
+  as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+  PATH_SEPARATOR=:
+  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+      PATH_SEPARATOR=';'
+  }
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.  Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" ""       $as_nl"
+
+# Find who we are.  Look in the path if we contain no directory separator.
+as_myself=
+case $0 in #((
+  *[\\/]* ) as_myself=$0 ;;
+  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+  done
+IFS=$as_save_IFS
+
+     ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+  as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+  exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there.  '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+# Use a proper internal environment variable to ensure we don't fall
+  # into an infinite loop, continuously re-executing ourselves.
+  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
+    _as_can_reexec=no; export _as_can_reexec;
+    # We cannot yet assume a decent shell, so we have to provide a
+# neutralization value for shells without unset; and this also
+# works around shells that cannot unset nonexistent variables.
+# Preserve -v and -x to the replacement shell.
+BASH_ENV=/dev/null
+ENV=/dev/null
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+case $- in # ((((
+  *v*x* | *x*v* ) as_opts=-vx ;;
+  *v* ) as_opts=-v ;;
+  *x* ) as_opts=-x ;;
+  * ) as_opts= ;;
+esac
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
+# Admittedly, this is quite paranoid, since all the known shells bail
+# out after a failed `exec'.
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
+as_fn_exit 255
+  fi
+  # We don't want this to propagate to other subprocesses.
+          { _as_can_reexec=; unset _as_can_reexec;}
+if test "x$CONFIG_SHELL" = x; then
+  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
+  emulate sh
+  NULLCMD=:
+  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '\${1+\"\$@\"}'='\"\$@\"'
+  setopt NO_GLOB_SUBST
+else
+  case \`(set -o) 2>/dev/null\` in #(
+  *posix*) :
+    set -o posix ;; #(
+  *) :
+     ;;
+esac
+fi
+"
+  as_required="as_fn_return () { (exit \$1); }
+as_fn_success () { as_fn_return 0; }
+as_fn_failure () { as_fn_return 1; }
+as_fn_ret_success () { return 0; }
+as_fn_ret_failure () { return 1; }
+
+exitcode=0
+as_fn_success || { exitcode=1; echo as_fn_success failed.; }
+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
+if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
+
+else
+  exitcode=1; echo positional parameters were not saved.
+fi
+test x\$exitcode = x0 || exit 1
+test -x / || exit 1"
+  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
+  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
+  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
+  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
+
+  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
+    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
+    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
+    PATH=/empty FPATH=/empty; export PATH FPATH
+    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
+      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
+test \$(( 1 + 1 )) = 2 || exit 1"
+  if (eval "$as_required") 2>/dev/null; then :
+  as_have_required=yes
+else
+  as_have_required=no
+fi
+  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
+
+else
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_found=false
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  as_found=:
+  case $as_dir in #(
+        /*)
+          for as_base in sh bash ksh sh5; do
+            # Try only shells that exist, to save several forks.
+            as_shell=$as_dir/$as_base
+            if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
+                   { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
+  CONFIG_SHELL=$as_shell as_have_required=yes
+                  if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
+  break 2
+fi
+fi
+          done;;
+       esac
+  as_found=false
+done
+$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
+             { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
+  CONFIG_SHELL=$SHELL as_have_required=yes
+fi; }
+IFS=$as_save_IFS
+
+
+      if test "x$CONFIG_SHELL" != x; then :
+  export CONFIG_SHELL
+             # We cannot yet assume a decent shell, so we have to provide a
+# neutralization value for shells without unset; and this also
+# works around shells that cannot unset nonexistent variables.
+# Preserve -v and -x to the replacement shell.
+BASH_ENV=/dev/null
+ENV=/dev/null
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+case $- in # ((((
+  *v*x* | *x*v* ) as_opts=-vx ;;
+  *v* ) as_opts=-v ;;
+  *x* ) as_opts=-x ;;
+  * ) as_opts= ;;
+esac
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
+# Admittedly, this is quite paranoid, since all the known shells bail
+# out after a failed `exec'.
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
+exit 255
+fi
+
+    if test x$as_have_required = xno; then :
+  $as_echo "$0: This script requires a shell more modern than all"
+  $as_echo "$0: the shells that I found on your system."
+  if test x${ZSH_VERSION+set} = xset ; then
+    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
+    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
+  else
+    $as_echo "$0: Please tell bug-autoconf@gnu.org and
+$0: http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz
+$0: about your system, including any error possibly output
+$0: before this message. Then install a modern shell, or
+$0: manually run the script under such a shell if you do
+$0: have one."
+  fi
+  exit 1
+fi
+fi
+fi
+SHELL=${CONFIG_SHELL-/bin/sh}
+export SHELL
+# Unset more variables known to interfere with behavior of common tools.
+CLICOLOR_FORCE= GREP_OPTIONS=
+unset CLICOLOR_FORCE GREP_OPTIONS
+
+## --------------------- ##
+## M4sh Shell Functions. ##
+## --------------------- ##
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+  { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+  return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+  set +e
+  as_fn_set_status $1
+  exit $1
+} # as_fn_exit
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+  case $as_dir in #(
+  -*) as_dir=./$as_dir;;
+  esac
+  test -d "$as_dir" || eval $as_mkdir_p || {
+    as_dirs=
+    while :; do
+      case $as_dir in #(
+      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+      *) as_qdir=$as_dir;;
+      esac
+      as_dirs="'$as_qdir' $as_dirs"
+      as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+        X"$as_dir" : 'X\(//\)[^/]' \| \
+        X"$as_dir" : 'X\(//\)$' \| \
+        X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+           s//\1/
+           q
+         }
+         /^X\(\/\/\)[^/].*/{
+           s//\1/
+           q
+         }
+         /^X\(\/\/\)$/{
+           s//\1/
+           q
+         }
+         /^X\(\/\).*/{
+           s//\1/
+           q
+         }
+         s/.*/./; q'`
+      test -d "$as_dir" && break
+    done
+    test -z "$as_dirs" || eval "mkdir $as_dirs"
+  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+
+# as_fn_executable_p FILE
+# -----------------------
+# Test if FILE is an executable regular file.
+as_fn_executable_p ()
+{
+  test -f "$1" && test -x "$1"
+} # as_fn_executable_p
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+  eval 'as_fn_append ()
+  {
+    eval $1+=\$2
+  }'
+else
+  as_fn_append ()
+  {
+    eval $1=\$$1\$2
+  }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+  eval 'as_fn_arith ()
+  {
+    as_val=$(( $* ))
+  }'
+else
+  as_fn_arith ()
+  {
+    as_val=`expr "$@" || test $? -eq 1`
+  }
+fi # as_fn_arith
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+  as_status=$1; test $as_status -eq 0 && as_status=1
+  if test "$4"; then
+    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+  fi
+  $as_echo "$as_me: error: $2" >&2
+  as_fn_exit $as_status
+} # as_fn_error
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+   test "X`expr 00001 : '.*\(...\)'`" = X001; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+  as_basename=basename
+else
+  as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+  as_dirname=dirname
+else
+  as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+        X"$0" : 'X\(//\)$' \| \
+        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+    sed '/^.*\/\([^/][^/]*\)\/*$/{
+           s//\1/
+           q
+         }
+         /^X\/\(\/\/\)$/{
+           s//\1/
+           q
+         }
+         /^X\/\(\/\).*/{
+           s//\1/
+           q
+         }
+         s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+
+  as_lineno_1=$LINENO as_lineno_1a=$LINENO
+  as_lineno_2=$LINENO as_lineno_2a=$LINENO
+  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
+  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
+  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
+  sed -n '
+    p
+    /[$]LINENO/=
+  ' <$as_myself |
+    sed '
+      s/[$]LINENO.*/&-/
+      t lineno
+      b
+      :lineno
+      N
+      :loop
+      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+      t loop
+      s/-\n.*//
+    ' >$as_me.lineno &&
+  chmod +x "$as_me.lineno" ||
+    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
+
+  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
+  # already done that, so ensure we don't try to do so again and fall
+  # in an infinite loop.  This has already happened in practice.
+  _as_can_reexec=no; export _as_can_reexec
+  # Don't try to exec as it changes $[0], causing all sort of problems
+  # (the dirname of $[0] is not the place where we might find the
+  # original and so on.  Autoconf is especially sensitive to this).
+  . "./$as_me.lineno"
+  # Exit status is that of the last command.
+  exit
+}
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+  case `echo 'xy\c'` in
+  *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
+  xy)  ECHO_C='\c';;
+  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
+       ECHO_T='        ';;
+  esac;;
+*)
+  ECHO_N='-n';;
+esac
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+  rm -f conf$$.dir/conf$$.file
+else
+  rm -f conf$$.dir
+  mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+  if ln -s conf$$.file conf$$ 2>/dev/null; then
+    as_ln_s='ln -s'
+    # ... but there are two gotchas:
+    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+    # In both cases, we have to default to `cp -pR'.
+    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+      as_ln_s='cp -pR'
+  elif ln conf$$.file conf$$ 2>/dev/null; then
+    as_ln_s=ln
+  else
+    as_ln_s='cp -pR'
+  fi
+else
+  as_ln_s='cp -pR'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+  as_mkdir_p='mkdir -p "$as_dir"'
+else
+  test -d ./-p && rmdir ./-p
+  as_mkdir_p=false
+fi
+
+as_test_x='test -x'
+as_executable_p=as_fn_executable_p
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+
+test -n "$DJDIR" || exec 7<&0 </dev/null
+exec 6>&1
+
+# Name of the host.
+# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_clean_files=
+ac_config_libobj_dir=.
+LIBOBJS=
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+
+# Identity of this package.
+PACKAGE_NAME='HarfBuzz'
+PACKAGE_TARNAME='harfbuzz'
+PACKAGE_VERSION='0.9.35'
+PACKAGE_STRING='HarfBuzz 0.9.35'
+PACKAGE_BUGREPORT='http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz'
+PACKAGE_URL='http://harfbuzz.org/'
+
+ac_unique_file="src/harfbuzz.pc.in"
+# Factoring default headers for most tests.
+ac_includes_default="\
+#include <stdio.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# ifdef HAVE_STDLIB_H
+#  include <stdlib.h>
+# endif
+#endif
+#ifdef HAVE_STRING_H
+# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+#  include <memory.h>
+# endif
+# include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif"
+
+ac_subst_vars='am__EXEEXT_FALSE
+am__EXEEXT_TRUE
+LTLIBOBJS
+LIBOBJS
+HAVE_CORETEXT_FALSE
+HAVE_CORETEXT_TRUE
+CORETEXT_LIBS
+CORETEXT_CFLAGS
+HAVE_UNISCRIBE_FALSE
+HAVE_UNISCRIBE_TRUE
+UNISCRIBE_LIBS
+UNISCRIBE_CFLAGS
+HAVE_FREETYPE_FALSE
+HAVE_FREETYPE_TRUE
+FREETYPE_LIBS
+FREETYPE_CFLAGS
+HAVE_GRAPHITE2_FALSE
+HAVE_GRAPHITE2_TRUE
+GRAPHITE2_LIBS
+GRAPHITE2_CFLAGS
+HAVE_ICU_FALSE
+HAVE_ICU_TRUE
+ICU_CONFIG
+ICU_LIBS
+ICU_CFLAGS
+HAVE_CAIRO_FT_FALSE
+HAVE_CAIRO_FT_TRUE
+CAIRO_FT_LIBS
+CAIRO_FT_CFLAGS
+HAVE_CAIRO_FALSE
+HAVE_CAIRO_TRUE
+CAIRO_LIBS
+CAIRO_CFLAGS
+HAVE_UCDN_FALSE
+HAVE_UCDN_TRUE
+HAVE_INTROSPECTION_FALSE
+HAVE_INTROSPECTION_TRUE
+INTROSPECTION_MAKEFILE
+INTROSPECTION_LIBS
+INTROSPECTION_CFLAGS
+INTROSPECTION_TYPELIBDIR
+INTROSPECTION_GIRDIR
+INTROSPECTION_GENERATE
+INTROSPECTION_COMPILER
+INTROSPECTION_SCANNER
+HAVE_GOBJECT_FALSE
+HAVE_GOBJECT_TRUE
+GLIB_MKENUMS
+GOBJECT_LIBS
+GOBJECT_CFLAGS
+HAVE_GLIB_FALSE
+HAVE_GLIB_TRUE
+GLIB_LIBS
+GLIB_CFLAGS
+HAVE_FALLBACK_FALSE
+HAVE_FALLBACK_TRUE
+HAVE_OT_FALSE
+HAVE_OT_TRUE
+HAVE_PTHREAD_FALSE
+HAVE_PTHREAD_TRUE
+PTHREAD_CFLAGS
+PTHREAD_LIBS
+PTHREAD_CC
+ax_pthread_config
+OS_WIN32_FALSE
+OS_WIN32_TRUE
+HAVE_GCC_FALSE
+HAVE_GCC_TRUE
+GTK_DOC_USE_REBASE_FALSE
+GTK_DOC_USE_REBASE_TRUE
+GTK_DOC_USE_LIBTOOL_FALSE
+GTK_DOC_USE_LIBTOOL_TRUE
+GTK_DOC_BUILD_PDF_FALSE
+GTK_DOC_BUILD_PDF_TRUE
+GTK_DOC_BUILD_HTML_FALSE
+GTK_DOC_BUILD_HTML_TRUE
+ENABLE_GTK_DOC_FALSE
+ENABLE_GTK_DOC_TRUE
+HAVE_GTK_DOC_FALSE
+HAVE_GTK_DOC_TRUE
+GTKDOC_DEPS_LIBS
+GTKDOC_DEPS_CFLAGS
+HTML_DIR
+GTKDOC_MKPDF
+GTKDOC_REBASE
+GTKDOC_CHECK_PATH
+GTKDOC_CHECK
+HB_LIBTOOL_VERSION_INFO
+HB_VERSION
+HB_VERSION_MICRO
+HB_VERSION_MINOR
+HB_VERSION_MAJOR
+GIT
+RAGEL
+PKG_CONFIG
+CXXCPP
+am__fastdepCXX_FALSE
+am__fastdepCXX_TRUE
+CXXDEPMODE
+ac_ct_CXX
+CXXFLAGS
+CXX
+CPP
+OTOOL64
+OTOOL
+LIPO
+NMEDIT
+DSYMUTIL
+MANIFEST_TOOL
+RANLIB
+DLLTOOL
+OBJDUMP
+LN_S
+NM
+ac_ct_DUMPBIN
+DUMPBIN
+LD
+FGREP
+EGREP
+GREP
+SED
+host_os
+host_vendor
+host_cpu
+host
+build_os
+build_vendor
+build_cpu
+build
+LIBTOOL
+am__fastdepCC_FALSE
+am__fastdepCC_TRUE
+CCDEPMODE
+am__nodep
+AMDEPBACKSLASH
+AMDEP_FALSE
+AMDEP_TRUE
+am__quote
+am__include
+DEPDIR
+OBJEXT
+EXEEXT
+ac_ct_CC
+CPPFLAGS
+LDFLAGS
+CFLAGS
+CC
+ac_ct_AR
+AR
+AUTOMAKE_OLDER_THAN_1_13_FALSE
+AUTOMAKE_OLDER_THAN_1_13_TRUE
+AM_BACKSLASH
+AM_DEFAULT_VERBOSITY
+AM_DEFAULT_V
+AM_V
+am__untar
+am__tar
+AMTAR
+am__leading_dot
+SET_MAKE
+AWK
+mkdir_p
+MKDIR_P
+INSTALL_STRIP_PROGRAM
+STRIP
+install_sh
+MAKEINFO
+AUTOHEADER
+AUTOMAKE
+AUTOCONF
+ACLOCAL
+VERSION
+PACKAGE
+CYGPATH_W
+am__isrc
+INSTALL_DATA
+INSTALL_SCRIPT
+INSTALL_PROGRAM
+target_alias
+host_alias
+build_alias
+LIBS
+ECHO_T
+ECHO_N
+ECHO_C
+DEFS
+mandir
+localedir
+libdir
+psdir
+pdfdir
+dvidir
+htmldir
+infodir
+docdir
+oldincludedir
+includedir
+localstatedir
+sharedstatedir
+sysconfdir
+datadir
+datarootdir
+libexecdir
+sbindir
+bindir
+program_transform_name
+prefix
+exec_prefix
+PACKAGE_URL
+PACKAGE_BUGREPORT
+PACKAGE_STRING
+PACKAGE_VERSION
+PACKAGE_TARNAME
+PACKAGE_NAME
+PATH_SEPARATOR
+SHELL'
+ac_subst_files=''
+ac_user_opts='
+enable_option_checking
+enable_silent_rules
+enable_dependency_tracking
+enable_static
+enable_shared
+with_pic
+enable_fast_install
+with_gnu_ld
+with_sysroot
+enable_libtool_lock
+with_html_dir
+enable_gtk_doc
+enable_gtk_doc_html
+enable_gtk_doc_pdf
+with_glib
+with_gobject
+enable_introspection
+with_cairo
+with_icu
+with_graphite2
+with_freetype
+with_uniscribe
+with_coretext
+'
+      ac_precious_vars='build_alias
+host_alias
+target_alias
+CC
+CFLAGS
+LDFLAGS
+LIBS
+CPPFLAGS
+CPP
+CXX
+CXXFLAGS
+CCC
+CXXCPP
+PKG_CONFIG
+GTKDOC_DEPS_CFLAGS
+GTKDOC_DEPS_LIBS
+GLIB_CFLAGS
+GLIB_LIBS
+GOBJECT_CFLAGS
+GOBJECT_LIBS
+CAIRO_CFLAGS
+CAIRO_LIBS
+CAIRO_FT_CFLAGS
+CAIRO_FT_LIBS
+ICU_CFLAGS
+ICU_LIBS
+GRAPHITE2_CFLAGS
+GRAPHITE2_LIBS
+FREETYPE_CFLAGS
+FREETYPE_LIBS'
+
+
+# Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
+ac_unrecognized_opts=
+ac_unrecognized_sep=
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+cache_file=/dev/null
+exec_prefix=NONE
+no_create=
+no_recursion=
+prefix=NONE
+program_prefix=NONE
+program_suffix=NONE
+program_transform_name=s,x,x,
+silent=
+site=
+srcdir=
+verbose=
+x_includes=NONE
+x_libraries=NONE
+
+# Installation directory options.
+# These are left unexpanded so users can "make install exec_prefix=/foo"
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
+# (The list follows the same order as the GNU Coding Standards.)
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datarootdir='${prefix}/share'
+datadir='${datarootdir}'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+infodir='${datarootdir}/info'
+htmldir='${docdir}'
+dvidir='${docdir}'
+pdfdir='${docdir}'
+psdir='${docdir}'
+libdir='${exec_prefix}/lib'
+localedir='${datarootdir}/locale'
+mandir='${datarootdir}/man'
+
+ac_prev=
+ac_dashdash=
+for ac_option
+do
+  # If the previous option needs an argument, assign it.
+  if test -n "$ac_prev"; then
+    eval $ac_prev=\$ac_option
+    ac_prev=
+    continue
+  fi
+
+  case $ac_option in
+  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
+  *=)   ac_optarg= ;;
+  *)    ac_optarg=yes ;;
+  esac
+
+  # Accept the important Cygnus configure options, so we can diagnose typos.
+
+  case $ac_dashdash$ac_option in
+  --)
+    ac_dashdash=yes ;;
+
+  -bindir | --bindir | --bindi | --bind | --bin | --bi)
+    ac_prev=bindir ;;
+  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+    bindir=$ac_optarg ;;
+
+  -build | --build | --buil | --bui | --bu)
+    ac_prev=build_alias ;;
+  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+    build_alias=$ac_optarg ;;
+
+  -cache-file | --cache-file | --cache-fil | --cache-fi \
+  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+    ac_prev=cache_file ;;
+  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+    cache_file=$ac_optarg ;;
+
+  --config-cache | -C)
+    cache_file=config.cache ;;
+
+  -datadir | --datadir | --datadi | --datad)
+    ac_prev=datadir ;;
+  -datadir=* | --datadir=* | --datadi=* | --datad=*)
+    datadir=$ac_optarg ;;
+
+  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
+  | --dataroo | --dataro | --datar)
+    ac_prev=datarootdir ;;
+  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
+  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
+    datarootdir=$ac_optarg ;;
+
+  -disable-* | --disable-*)
+    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
+    # Reject names that are not valid shell variable names.
+    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+      as_fn_error $? "invalid feature name: $ac_useropt"
+    ac_useropt_orig=$ac_useropt
+    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+    case $ac_user_opts in
+      *"
+"enable_$ac_useropt"
+"*) ;;
+      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
+        ac_unrecognized_sep=', ';;
+    esac
+    eval enable_$ac_useropt=no ;;
+
+  -docdir | --docdir | --docdi | --doc | --do)
+    ac_prev=docdir ;;
+  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
+    docdir=$ac_optarg ;;
+
+  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
+    ac_prev=dvidir ;;
+  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
+    dvidir=$ac_optarg ;;
+
+  -enable-* | --enable-*)
+    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
+    # Reject names that are not valid shell variable names.
+    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+      as_fn_error $? "invalid feature name: $ac_useropt"
+    ac_useropt_orig=$ac_useropt
+    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+    case $ac_user_opts in
+      *"
+"enable_$ac_useropt"
+"*) ;;
+      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
+        ac_unrecognized_sep=', ';;
+    esac
+    eval enable_$ac_useropt=\$ac_optarg ;;
+
+  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+  | --exec | --exe | --ex)
+    ac_prev=exec_prefix ;;
+  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+  | --exec=* | --exe=* | --ex=*)
+    exec_prefix=$ac_optarg ;;
+
+  -gas | --gas | --ga | --g)
+    # Obsolete; use --with-gas.
+    with_gas=yes ;;
+
+  -help | --help | --hel | --he | -h)
+    ac_init_help=long ;;
+  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+    ac_init_help=recursive ;;
+  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+    ac_init_help=short ;;
+
+  -host | --host | --hos | --ho)
+    ac_prev=host_alias ;;
+  -host=* | --host=* | --hos=* | --ho=*)
+    host_alias=$ac_optarg ;;
+
+  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
+    ac_prev=htmldir ;;
+  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
+  | --ht=*)
+    htmldir=$ac_optarg ;;
+
+  -includedir | --includedir | --includedi | --included | --include \
+  | --includ | --inclu | --incl | --inc)
+    ac_prev=includedir ;;
+  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+  | --includ=* | --inclu=* | --incl=* | --inc=*)
+    includedir=$ac_optarg ;;
+
+  -infodir | --infodir | --infodi | --infod | --info | --inf)
+    ac_prev=infodir ;;
+  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+    infodir=$ac_optarg ;;
+
+  -libdir | --libdir | --libdi | --libd)
+    ac_prev=libdir ;;
+  -libdir=* | --libdir=* | --libdi=* | --libd=*)
+    libdir=$ac_optarg ;;
+
+  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+  | --libexe | --libex | --libe)
+    ac_prev=libexecdir ;;
+  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+  | --libexe=* | --libex=* | --libe=*)
+    libexecdir=$ac_optarg ;;
+
+  -localedir | --localedir | --localedi | --localed | --locale)
+    ac_prev=localedir ;;
+  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
+    localedir=$ac_optarg ;;
+
+  -localstatedir | --localstatedir | --localstatedi | --localstated \
+  | --localstate | --localstat | --localsta | --localst | --locals)
+    ac_prev=localstatedir ;;
+  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
+    localstatedir=$ac_optarg ;;
+
+  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+    ac_prev=mandir ;;
+  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+    mandir=$ac_optarg ;;
+
+  -nfp | --nfp | --nf)
+    # Obsolete; use --without-fp.
+    with_fp=no ;;
+
+  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+  | --no-cr | --no-c | -n)
+    no_create=yes ;;
+
+  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+    no_recursion=yes ;;
+
+  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+  | --oldin | --oldi | --old | --ol | --o)
+    ac_prev=oldincludedir ;;
+  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+    oldincludedir=$ac_optarg ;;
+
+  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+    ac_prev=prefix ;;
+  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+    prefix=$ac_optarg ;;
+
+  -program-prefix | --program-prefix | --program-prefi | --program-pref \
+  | --program-pre | --program-pr | --program-p)
+    ac_prev=program_prefix ;;
+  -program-prefix=* | --program-prefix=* | --program-prefi=* \
+  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+    program_prefix=$ac_optarg ;;
+
+  -program-suffix | --program-suffix | --program-suffi | --program-suff \
+  | --program-suf | --program-su | --program-s)
+    ac_prev=program_suffix ;;
+  -program-suffix=* | --program-suffix=* | --program-suffi=* \
+  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+    program_suffix=$ac_optarg ;;
+
+  -program-transform-name | --program-transform-name \
+  | --program-transform-nam | --program-transform-na \
+  | --program-transform-n | --program-transform- \
+  | --program-transform | --program-transfor \
+  | --program-transfo | --program-transf \
+  | --program-trans | --program-tran \
+  | --progr-tra | --program-tr | --program-t)
+    ac_prev=program_transform_name ;;
+  -program-transform-name=* | --program-transform-name=* \
+  | --program-transform-nam=* | --program-transform-na=* \
+  | --program-transform-n=* | --program-transform-=* \
+  | --program-transform=* | --program-transfor=* \
+  | --program-transfo=* | --program-transf=* \
+  | --program-trans=* | --program-tran=* \
+  | --progr-tra=* | --program-tr=* | --program-t=*)
+    program_transform_name=$ac_optarg ;;
+
+  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
+    ac_prev=pdfdir ;;
+  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
+    pdfdir=$ac_optarg ;;
+
+  -psdir | --psdir | --psdi | --psd | --ps)
+    ac_prev=psdir ;;
+  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
+    psdir=$ac_optarg ;;
+
+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+  | -silent | --silent | --silen | --sile | --sil)
+    silent=yes ;;
+
+  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+    ac_prev=sbindir ;;
+  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+  | --sbi=* | --sb=*)
+    sbindir=$ac_optarg ;;
+
+  -sharedstatedir | --sharedstatedir | --sharedstatedi \
+  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+  | --sharedst | --shareds | --shared | --share | --shar \
+  | --sha | --sh)
+    ac_prev=sharedstatedir ;;
+  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+  | --sha=* | --sh=*)
+    sharedstatedir=$ac_optarg ;;
+
+  -site | --site | --sit)
+    ac_prev=site ;;
+  -site=* | --site=* | --sit=*)
+    site=$ac_optarg ;;
+
+  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+    ac_prev=srcdir ;;
+  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+    srcdir=$ac_optarg ;;
+
+  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+  | --syscon | --sysco | --sysc | --sys | --sy)
+    ac_prev=sysconfdir ;;
+  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+    sysconfdir=$ac_optarg ;;
+
+  -target | --target | --targe | --targ | --tar | --ta | --t)
+    ac_prev=target_alias ;;
+  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+    target_alias=$ac_optarg ;;
+
+  -v | -verbose | --verbose | --verbos | --verbo | --verb)
+    verbose=yes ;;
+
+  -version | --version | --versio | --versi | --vers | -V)
+    ac_init_version=: ;;
+
+  -with-* | --with-*)
+    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
+    # Reject names that are not valid shell variable names.
+    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+      as_fn_error $? "invalid package name: $ac_useropt"
+    ac_useropt_orig=$ac_useropt
+    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+    case $ac_user_opts in
+      *"
+"with_$ac_useropt"
+"*) ;;
+      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
+        ac_unrecognized_sep=', ';;
+    esac
+    eval with_$ac_useropt=\$ac_optarg ;;
+
+  -without-* | --without-*)
+    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
+    # Reject names that are not valid shell variable names.
+    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+      as_fn_error $? "invalid package name: $ac_useropt"
+    ac_useropt_orig=$ac_useropt
+    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+    case $ac_user_opts in
+      *"
+"with_$ac_useropt"
+"*) ;;
+      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
+        ac_unrecognized_sep=', ';;
+    esac
+    eval with_$ac_useropt=no ;;
+
+  --x)
+    # Obsolete; use --with-x.
+    with_x=yes ;;
+
+  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+  | --x-incl | --x-inc | --x-in | --x-i)
+    ac_prev=x_includes ;;
+  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+    x_includes=$ac_optarg ;;
+
+  -x-libraries | --x-libraries | --x-librarie | --x-librari \
+  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+    ac_prev=x_libraries ;;
+  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+    x_libraries=$ac_optarg ;;
+
+  -*) as_fn_error $? "unrecognized option: \`$ac_option'
+Try \`$0 --help' for more information"
+    ;;
+
+  *=*)
+    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+    # Reject names that are not valid shell variable names.
+    case $ac_envvar in #(
+      '' | [0-9]* | *[!_$as_cr_alnum]* )
+      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
+    esac
+    eval $ac_envvar=\$ac_optarg
+    export $ac_envvar ;;
+
+  *)
+    # FIXME: should be removed in autoconf 3.0.
+    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
+    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
+    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
+    ;;
+
+  esac
+done
+
+if test -n "$ac_prev"; then
+  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+  as_fn_error $? "missing argument to $ac_option"
+fi
+
+if test -n "$ac_unrecognized_opts"; then
+  case $enable_option_checking in
+    no) ;;
+    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
+    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
+  esac
+fi
+
+# Check all directory arguments for consistency.
+for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
+               datadir sysconfdir sharedstatedir localstatedir includedir \
+               oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+               libdir localedir mandir
+do
+  eval ac_val=\$$ac_var
+  # Remove trailing slashes.
+  case $ac_val in
+    */ )
+      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
+      eval $ac_var=\$ac_val;;
+  esac
+  # Be sure to have absolute directory names.
+  case $ac_val in
+    [\\/$]* | ?:[\\/]* )  continue;;
+    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
+  esac
+  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
+done
+
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+# FIXME: To remove some day.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: To remove some day.
+if test "x$host_alias" != x; then
+  if test "x$build_alias" = x; then
+    cross_compiling=maybe
+  elif test "x$build_alias" != "x$host_alias"; then
+    cross_compiling=yes
+  fi
+fi
+
+ac_tool_prefix=
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
+
+test "$silent" = yes && exec 6>/dev/null
+
+
+ac_pwd=`pwd` && test -n "$ac_pwd" &&
+ac_ls_di=`ls -di .` &&
+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
+  as_fn_error $? "working directory cannot be determined"
+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
+  as_fn_error $? "pwd does not report name of working directory"
+
+
+# Find the source files, if location was not specified.
+if test -z "$srcdir"; then
+  ac_srcdir_defaulted=yes
+  # Try the directory containing this script, then the parent directory.
+  ac_confdir=`$as_dirname -- "$as_myself" ||
+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+        X"$as_myself" : 'X\(//\)[^/]' \| \
+        X"$as_myself" : 'X\(//\)$' \| \
+        X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_myself" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+           s//\1/
+           q
+         }
+         /^X\(\/\/\)[^/].*/{
+           s//\1/
+           q
+         }
+         /^X\(\/\/\)$/{
+           s//\1/
+           q
+         }
+         /^X\(\/\).*/{
+           s//\1/
+           q
+         }
+         s/.*/./; q'`
+  srcdir=$ac_confdir
+  if test ! -r "$srcdir/$ac_unique_file"; then
+    srcdir=..
+  fi
+else
+  ac_srcdir_defaulted=no
+fi
+if test ! -r "$srcdir/$ac_unique_file"; then
+  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
+  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
+fi
+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
+ac_abs_confdir=`(
+       cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
+       pwd)`
+# When building in place, set srcdir=.
+if test "$ac_abs_confdir" = "$ac_pwd"; then
+  srcdir=.
+fi
+# Remove unnecessary trailing slashes from srcdir.
+# Double slashes in file names in object file debugging info
+# mess up M-x gdb in Emacs.
+case $srcdir in
+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
+esac
+for ac_var in $ac_precious_vars; do
+  eval ac_env_${ac_var}_set=\${${ac_var}+set}
+  eval ac_env_${ac_var}_value=\$${ac_var}
+  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
+  eval ac_cv_env_${ac_var}_value=\$${ac_var}
+done
+
+#
+# Report the --help message.
+#
+if test "$ac_init_help" = "long"; then
+  # Omit some internal or obsolete options to make the list less imposing.
+  # This message is too long to be a string in the A/UX 3.1 sh.
+  cat <<_ACEOF
+\`configure' configures HarfBuzz 0.9.35 to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE.  See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+  -h, --help              display this help and exit
+      --help=short        display options specific to this package
+      --help=recursive    display the short help of all the included packages
+  -V, --version           display version information and exit
+  -q, --quiet, --silent   do not print \`checking ...' messages
+      --cache-file=FILE   cache test results in FILE [disabled]
+  -C, --config-cache      alias for \`--cache-file=config.cache'
+  -n, --no-create         do not create output files
+      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
+
+Installation directories:
+  --prefix=PREFIX         install architecture-independent files in PREFIX
+                          [$ac_default_prefix]
+  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
+                          [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+  --bindir=DIR            user executables [EPREFIX/bin]
+  --sbindir=DIR           system admin executables [EPREFIX/sbin]
+  --libexecdir=DIR        program executables [EPREFIX/libexec]
+  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
+  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
+  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
+  --libdir=DIR            object code libraries [EPREFIX/lib]
+  --includedir=DIR        C header files [PREFIX/include]
+  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
+  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
+  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
+  --infodir=DIR           info documentation [DATAROOTDIR/info]
+  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
+  --mandir=DIR            man documentation [DATAROOTDIR/man]
+  --docdir=DIR            documentation root [DATAROOTDIR/doc/harfbuzz]
+  --htmldir=DIR           html documentation [DOCDIR]
+  --dvidir=DIR            dvi documentation [DOCDIR]
+  --pdfdir=DIR            pdf documentation [DOCDIR]
+  --psdir=DIR             ps documentation [DOCDIR]
+_ACEOF
+
+  cat <<\_ACEOF
+
+Program names:
+  --program-prefix=PREFIX            prepend PREFIX to installed program names
+  --program-suffix=SUFFIX            append SUFFIX to installed program names
+  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
+
+System types:
+  --build=BUILD     configure for building on BUILD [guessed]
+  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+  case $ac_init_help in
+     short | recursive ) echo "Configuration of HarfBuzz 0.9.35:";;
+   esac
+  cat <<\_ACEOF
+
+Optional Features:
+  --disable-option-checking  ignore unrecognized --enable/--with options
+  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
+  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
+  --enable-silent-rules   less verbose build output (undo: "make V=1")
+  --disable-silent-rules  verbose build output (undo: "make V=0")
+  --enable-dependency-tracking
+                          do not reject slow dependency extractors
+  --disable-dependency-tracking
+                          speeds up one-time build
+  --enable-static[=PKGS]  build static libraries [default=no]
+  --enable-shared[=PKGS]  build shared libraries [default=yes]
+  --enable-fast-install[=PKGS]
+                          optimize for fast installation [default=yes]
+  --disable-libtool-lock  avoid locking (might break parallel builds)
+  --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
+  --enable-gtk-doc-html   build documentation in html format [[default=yes]]
+  --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
+  --enable-introspection=[no/auto/yes]
+                          Enable introspection for this build
+
+Optional Packages:
+  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
+  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
+  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
+                          both]
+  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
+  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
+                          compiler's sysroot if not specified).
+  --with-html-dir=PATH    path to installed docs
+  --with-glib=[yes/no/auto]
+                          Use glib [default=auto]
+  --with-gobject=[yes/no/auto]
+                          Use gobject [default=auto]
+  --with-cairo=[yes/no/auto]
+                          Use cairo [default=auto]
+  --with-icu=[yes/no/auto]
+                          Use ICU [default=auto]
+  --with-graphite2=[yes/no/auto]
+                          Use the graphite2 library [default=no]
+  --with-freetype=[yes/no/auto]
+                          Use the FreeType library [default=auto]
+  --with-uniscribe=[yes/no/auto]
+                          Use the Uniscribe library [default=no]
+  --with-coretext=[yes/no/auto]
+                          Use CoreText [default=no]
+
+Some influential environment variables:
+  CC          C compiler command
+  CFLAGS      C compiler flags
+  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
+              nonstandard directory <lib dir>
+  LIBS        libraries to pass to the linker, e.g. -l<library>
+  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
+              you have headers in a nonstandard directory <include dir>
+  CPP         C preprocessor
+  CXX         C++ compiler command
+  CXXFLAGS    C++ compiler flags
+  CXXCPP      C++ preprocessor
+  PKG_CONFIG  path to pkg-config utility
+  GTKDOC_DEPS_CFLAGS
+              C compiler flags for GTKDOC_DEPS, overriding pkg-config
+  GTKDOC_DEPS_LIBS
+              linker flags for GTKDOC_DEPS, overriding pkg-config
+  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
+  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
+  GOBJECT_CFLAGS
+              C compiler flags for GOBJECT, overriding pkg-config
+  GOBJECT_LIBS
+              linker flags for GOBJECT, overriding pkg-config
+  CAIRO_CFLAGS
+              C compiler flags for CAIRO, overriding pkg-config
+  CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
+  CAIRO_FT_CFLAGS
+              C compiler flags for CAIRO_FT, overriding pkg-config
+  CAIRO_FT_LIBS
+              linker flags for CAIRO_FT, overriding pkg-config
+  ICU_CFLAGS  C compiler flags for ICU, overriding pkg-config
+  ICU_LIBS    linker flags for ICU, overriding pkg-config
+  GRAPHITE2_CFLAGS
+              C compiler flags for GRAPHITE2, overriding pkg-config
+  GRAPHITE2_LIBS
+              linker flags for GRAPHITE2, overriding pkg-config
+  FREETYPE_CFLAGS
+              C compiler flags for FREETYPE, overriding pkg-config
+  FREETYPE_LIBS
+              linker flags for FREETYPE, overriding pkg-config
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz>.
+HarfBuzz home page: <http://harfbuzz.org/>.
+_ACEOF
+ac_status=$?
+fi
+
+if test "$ac_init_help" = "recursive"; then
+  # If there are subdirs, report their specific --help.
+  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+    test -d "$ac_dir" ||
+      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
+      continue
+    ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+  # A ".." for each directory in $ac_dir_suffix.
+  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+  case $ac_top_builddir_sub in
+  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+  esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+  .)  # We are building in place.
+    ac_srcdir=.
+    ac_top_srcdir=$ac_top_builddir_sub
+    ac_abs_top_srcdir=$ac_pwd ;;
+  [\\/]* | ?:[\\/]* )  # Absolute name.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir
+    ac_abs_top_srcdir=$srcdir ;;
+  *) # Relative name.
+    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_build_prefix$srcdir
+    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+    cd "$ac_dir" || { ac_status=$?; continue; }
+    # Check for guested configure.
+    if test -f "$ac_srcdir/configure.gnu"; then
+      echo &&
+      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
+    elif test -f "$ac_srcdir/configure"; then
+      echo &&
+      $SHELL "$ac_srcdir/configure" --help=recursive
+    else
+      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+    fi || ac_status=$?
+    cd "$ac_pwd" || { ac_status=$?; break; }
+  done
+fi
+
+test -n "$ac_init_help" && exit $ac_status
+if $ac_init_version; then
+  cat <<\_ACEOF
+HarfBuzz configure 0.9.35
+generated by GNU Autoconf 2.69
+
+Copyright (C) 2012 Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+_ACEOF
+  exit
+fi
+
+## ------------------------ ##
+## Autoconf initialization. ##
+## ------------------------ ##
+
+# ac_fn_c_try_compile LINENO
+# --------------------------
+# Try to compile conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_compile ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  rm -f conftest.$ac_objext
+  if { { ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_compile") 2>conftest.err
+  ac_status=$?
+  if test -s conftest.err; then
+    grep -v '^ *+' conftest.err >conftest.er1
+    cat conftest.er1 >&5
+    mv -f conftest.er1 conftest.err
+  fi
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } && {
+        test -z "$ac_c_werror_flag" ||
+        test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then :
+  ac_retval=0
+else
+  $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+       ac_retval=1
+fi
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+  as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_compile
+
+# ac_fn_c_try_link LINENO
+# -----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_link ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  rm -f conftest.$ac_objext conftest$ac_exeext
+  if { { ac_try="$ac_link"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_link") 2>conftest.err
+  ac_status=$?
+  if test -s conftest.err; then
+    grep -v '^ *+' conftest.err >conftest.er1
+    cat conftest.er1 >&5
+    mv -f conftest.er1 conftest.err
+  fi
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } && {
+        test -z "$ac_c_werror_flag" ||
+        test ! -s conftest.err
+       } && test -s conftest$ac_exeext && {
+        test "$cross_compiling" = yes ||
+        test -x conftest$ac_exeext
+       }; then :
+  ac_retval=0
+else
+  $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+       ac_retval=1
+fi
+  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
+  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
+  # interfere with the next link command; also delete a directory that is
+  # left behind by Apple's compiler.  We do this before executing the actions.
+  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+  as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_link
+
+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
+# -------------------------------------------------------
+# Tests whether HEADER exists and can be compiled using the include files in
+# INCLUDES, setting the cache variable VAR accordingly.
+ac_fn_c_check_header_compile ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+$4
+#include <$2>
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  eval "$3=yes"
+else
+  eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_header_compile
+
+# ac_fn_c_try_cpp LINENO
+# ----------------------
+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_cpp ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  if { { ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
+  ac_status=$?
+  if test -s conftest.err; then
+    grep -v '^ *+' conftest.err >conftest.er1
+    cat conftest.er1 >&5
+    mv -f conftest.er1 conftest.err
+  fi
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } > conftest.i && {
+        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+        test ! -s conftest.err
+       }; then :
+  ac_retval=0
+else
+  $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+    ac_retval=1
+fi
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+  as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_cpp
+
+# ac_fn_c_try_run LINENO
+# ----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
+# that executables *can* be run.
+ac_fn_c_try_run ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  if { { ac_try="$ac_link"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_link") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
+  { { case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_try") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; }; then :
+  ac_retval=0
+else
+  $as_echo "$as_me: program exited with status $ac_status" >&5
+       $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+       ac_retval=$ac_status
+fi
+  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+  as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_run
+
+# ac_fn_c_check_func LINENO FUNC VAR
+# ----------------------------------
+# Tests whether FUNC exists, setting the cache variable VAR accordingly
+ac_fn_c_check_func ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
+   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+#define $2 innocuous_$2
+
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char $2 (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $2
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $2 ();
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined __stub_$2 || defined __stub___$2
+choke me
+#endif
+
+int
+main ()
+{
+return $2 ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  eval "$3=yes"
+else
+  eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_func
+
+# ac_fn_cxx_try_compile LINENO
+# ----------------------------
+# Try to compile conftest.$ac_ext, and return whether this succeeded.
+ac_fn_cxx_try_compile ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  rm -f conftest.$ac_objext
+  if { { ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_compile") 2>conftest.err
+  ac_status=$?
+  if test -s conftest.err; then
+    grep -v '^ *+' conftest.err >conftest.er1
+    cat conftest.er1 >&5
+    mv -f conftest.er1 conftest.err
+  fi
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } && {
+        test -z "$ac_cxx_werror_flag" ||
+        test ! -s conftest.err
+       } && test -s conftest.$ac_objext; then :
+  ac_retval=0
+else
+  $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+       ac_retval=1
+fi
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+  as_fn_set_status $ac_retval
+
+} # ac_fn_cxx_try_compile
+
+# ac_fn_cxx_try_cpp LINENO
+# ------------------------
+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
+ac_fn_cxx_try_cpp ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  if { { ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
+  ac_status=$?
+  if test -s conftest.err; then
+    grep -v '^ *+' conftest.err >conftest.er1
+    cat conftest.er1 >&5
+    mv -f conftest.er1 conftest.err
+  fi
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } > conftest.i && {
+        test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
+        test ! -s conftest.err
+       }; then :
+  ac_retval=0
+else
+  $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+    ac_retval=1
+fi
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+  as_fn_set_status $ac_retval
+
+} # ac_fn_cxx_try_cpp
+
+# ac_fn_cxx_try_link LINENO
+# -------------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded.
+ac_fn_cxx_try_link ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  rm -f conftest.$ac_objext conftest$ac_exeext
+  if { { ac_try="$ac_link"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_link") 2>conftest.err
+  ac_status=$?
+  if test -s conftest.err; then
+    grep -v '^ *+' conftest.err >conftest.er1
+    cat conftest.er1 >&5
+    mv -f conftest.er1 conftest.err
+  fi
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } && {
+        test -z "$ac_cxx_werror_flag" ||
+        test ! -s conftest.err
+       } && test -s conftest$ac_exeext && {
+        test "$cross_compiling" = yes ||
+        test -x conftest$ac_exeext
+       }; then :
+  ac_retval=0
+else
+  $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+       ac_retval=1
+fi
+  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
+  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
+  # interfere with the next link command; also delete a directory that is
+  # left behind by Apple's compiler.  We do this before executing the actions.
+  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+  as_fn_set_status $ac_retval
+
+} # ac_fn_cxx_try_link
+
+# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
+# -------------------------------------------------------
+# Tests whether HEADER exists, giving a warning if it cannot be compiled using
+# the include files in INCLUDES and setting the cache variable VAR
+# accordingly.
+ac_fn_c_check_header_mongrel ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  if eval \${$3+:} false; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+  $as_echo_n "(cached) " >&6
+fi
+eval ac_res=\$$3
+              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+  # Is the header compilable?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
+$as_echo_n "checking $2 usability... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+$4
+#include <$2>
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_header_compiler=yes
+else
+  ac_header_compiler=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
+
+# Is the header present?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
+$as_echo_n "checking $2 presence... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <$2>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+  ac_header_preproc=yes
+else
+  ac_header_preproc=no
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So?  What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
+  yes:no: )
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
+    ;;
+  no:yes:* )
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
+( $as_echo "## ------------------------------------------------------------------------- ##
+## Report this to http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz ##
+## ------------------------------------------------------------------------- ##"
+     ) | sed "s/^/$as_me: WARNING:     /" >&2
+    ;;
+esac
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  eval "$3=\$ac_header_compiler"
+fi
+eval ac_res=\$$3
+              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+fi
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_header_mongrel
+
+# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
+# --------------------------------------------
+# Tries to find the compile-time value of EXPR in a program that includes
+# INCLUDES, setting VAR accordingly. Returns whether the value could be
+# computed
+ac_fn_c_compute_int ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  if test "$cross_compiling" = yes; then
+    # Depending upon the size, compute the lo and hi bounds.
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+$4
+int
+main ()
+{
+static int test_array [1 - 2 * !(($2) >= 0)];
+test_array [0] = 0;
+return test_array [0];
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_lo=0 ac_mid=0
+  while :; do
+    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+$4
+int
+main ()
+{
+static int test_array [1 - 2 * !(($2) <= $ac_mid)];
+test_array [0] = 0;
+return test_array [0];
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_hi=$ac_mid; break
+else
+  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
+                       if test $ac_lo -le $ac_mid; then
+                         ac_lo= ac_hi=
+                         break
+                       fi
+                       as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+  done
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+$4
+int
+main ()
+{
+static int test_array [1 - 2 * !(($2) < 0)];
+test_array [0] = 0;
+return test_array [0];
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_hi=-1 ac_mid=-1
+  while :; do
+    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+$4
+int
+main ()
+{
+static int test_array [1 - 2 * !(($2) >= $ac_mid)];
+test_array [0] = 0;
+return test_array [0];
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_lo=$ac_mid; break
+else
+  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
+                       if test $ac_mid -le $ac_hi; then
+                         ac_lo= ac_hi=
+                         break
+                       fi
+                       as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+  done
+else
+  ac_lo= ac_hi=
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+$4
+int
+main ()
+{
+static int test_array [1 - 2 * !(($2) <= $ac_mid)];
+test_array [0] = 0;
+return test_array [0];
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_hi=$ac_mid
+else
+  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in #((
+?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
+'') ac_retval=1 ;;
+esac
+  else
+    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+$4
+static long int longval () { return $2; }
+static unsigned long int ulongval () { return $2; }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main ()
+{
+
+  FILE *f = fopen ("conftest.val", "w");
+  if (! f)
+    return 1;
+  if (($2) < 0)
+    {
+      long int i = longval ();
+      if (i != ($2))
+       return 1;
+      fprintf (f, "%ld", i);
+    }
+  else
+    {
+      unsigned long int i = ulongval ();
+      if (i != ($2))
+       return 1;
+      fprintf (f, "%lu", i);
+    }
+  /* Do not output a trailing newline, as this causes \r\n confusion
+     on some platforms.  */
+  return ferror (f) || fclose (f) != 0;
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
+else
+  ac_retval=1
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+  conftest.$ac_objext conftest.beam conftest.$ac_ext
+rm -f conftest.val
+
+  fi
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+  as_fn_set_status $ac_retval
+
+} # ac_fn_c_compute_int
+
+# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
+# -------------------------------------------
+# Tests whether TYPE exists after having included INCLUDES, setting cache
+# variable VAR accordingly.
+ac_fn_c_check_type ()
+{
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  eval "$3=no"
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+$4
+int
+main ()
+{
+if (sizeof ($2))
+        return 0;
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+$4
+int
+main ()
+{
+if (sizeof (($2)))
+           return 0;
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+  eval "$3=yes"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+              { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_type
+cat >config.log <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by HarfBuzz $as_me 0.9.35, which was
+generated by GNU Autoconf 2.69.  Invocation command line was
+
+  $ $0 $@
+
+_ACEOF
+exec 5>>config.log
+{
+cat <<_ASUNAME
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
+
+/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
+/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
+/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
+/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
+/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
+
+_ASUNAME
+
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    $as_echo "PATH: $as_dir"
+  done
+IFS=$as_save_IFS
+
+} >&5
+
+cat >&5 <<_ACEOF
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+_ACEOF
+
+
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Strip out --silent because we don't want to record it for future runs.
+# Also quote any args containing shell meta-characters.
+# Make two passes to allow for proper duplicate-argument suppression.
+ac_configure_args=
+ac_configure_args0=
+ac_configure_args1=
+ac_must_keep_next=false
+for ac_pass in 1 2
+do
+  for ac_arg
+  do
+    case $ac_arg in
+    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
+    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+    | -silent | --silent | --silen | --sile | --sil)
+      continue ;;
+    *\'*)
+      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+    esac
+    case $ac_pass in
+    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
+    2)
+      as_fn_append ac_configure_args1 " '$ac_arg'"
+      if test $ac_must_keep_next = true; then
+       ac_must_keep_next=false # Got value, back to normal.
+      else
+       case $ac_arg in
+         *=* | --config-cache | -C | -disable-* | --disable-* \
+         | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
+         | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
+         | -with-* | --with-* | -without-* | --without-* | --x)
+           case "$ac_configure_args0 " in
+             "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
+           esac
+           ;;
+         -* ) ac_must_keep_next=true ;;
+       esac
+      fi
+      as_fn_append ac_configure_args " '$ac_arg'"
+      ;;
+    esac
+  done
+done
+{ ac_configure_args0=; unset ac_configure_args0;}
+{ ac_configure_args1=; unset ac_configure_args1;}
+
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log.  We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+# WARNING: Use '\'' to represent an apostrophe within the trap.
+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
+trap 'exit_status=$?
+  # Save into config.log some information that might help in debugging.
+  {
+    echo
+
+    $as_echo "## ---------------- ##
+## Cache variables. ##
+## ---------------- ##"
+    echo
+    # The following way of writing the cache mishandles newlines in values,
+(
+  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
+    eval ac_val=\$$ac_var
+    case $ac_val in #(
+    *${as_nl}*)
+      case $ac_var in #(
+      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+      esac
+      case $ac_var in #(
+      _ | IFS | as_nl) ;; #(
+      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+      *) { eval $ac_var=; unset $ac_var;} ;;
+      esac ;;
+    esac
+  done
+  (set) 2>&1 |
+    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
+    *${as_nl}ac_space=\ *)
+      sed -n \
+       "s/'\''/'\''\\\\'\'''\''/g;
+         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
+      ;; #(
+    *)
+      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+      ;;
+    esac |
+    sort
+)
+    echo
+
+    $as_echo "## ----------------- ##
+## Output variables. ##
+## ----------------- ##"
+    echo
+    for ac_var in $ac_subst_vars
+    do
+      eval ac_val=\$$ac_var
+      case $ac_val in
+      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+      esac
+      $as_echo "$ac_var='\''$ac_val'\''"
+    done | sort
+    echo
+
+    if test -n "$ac_subst_files"; then
+      $as_echo "## ------------------- ##
+## File substitutions. ##
+## ------------------- ##"
+      echo
+      for ac_var in $ac_subst_files
+      do
+       eval ac_val=\$$ac_var
+       case $ac_val in
+       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+       esac
+       $as_echo "$ac_var='\''$ac_val'\''"
+      done | sort
+      echo
+    fi
+
+    if test -s confdefs.h; then
+      $as_echo "## ----------- ##
+## confdefs.h. ##
+## ----------- ##"
+      echo
+      cat confdefs.h
+      echo
+    fi
+    test "$ac_signal" != 0 &&
+      $as_echo "$as_me: caught signal $ac_signal"
+    $as_echo "$as_me: exit $exit_status"
+  } >&5
+  rm -f core *.core core.conftest.* &&
+    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
+    exit $exit_status
+' 0
+for ac_signal in 1 2 13 15; do
+  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
+done
+ac_signal=0
+
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -f -r conftest* confdefs.h
+
+$as_echo "/* confdefs.h */" > confdefs.h
+
+# Predefined preprocessor variables.
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_NAME "$PACKAGE_NAME"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_VERSION "$PACKAGE_VERSION"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_STRING "$PACKAGE_STRING"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_URL "$PACKAGE_URL"
+_ACEOF
+
+
+# Let the site file select an alternate cache file if it wants to.
+# Prefer an explicitly selected file to automatically selected ones.
+ac_site_file1=NONE
+ac_site_file2=NONE
+if test -n "$CONFIG_SITE"; then
+  # We do not want a PATH search for config.site.
+  case $CONFIG_SITE in #((
+    -*)  ac_site_file1=./$CONFIG_SITE;;
+    */*) ac_site_file1=$CONFIG_SITE;;
+    *)   ac_site_file1=./$CONFIG_SITE;;
+  esac
+elif test "x$prefix" != xNONE; then
+  ac_site_file1=$prefix/share/config.site
+  ac_site_file2=$prefix/etc/config.site
+else
+  ac_site_file1=$ac_default_prefix/share/config.site
+  ac_site_file2=$ac_default_prefix/etc/config.site
+fi
+for ac_site_file in "$ac_site_file1" "$ac_site_file2"
+do
+  test "x$ac_site_file" = xNONE && continue
+  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
+$as_echo "$as_me: loading site script $ac_site_file" >&6;}
+    sed 's/^/| /' "$ac_site_file" >&5
+    . "$ac_site_file" \
+      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "failed to load site script $ac_site_file
+See \`config.log' for more details" "$LINENO" 5; }
+  fi
+done
+
+if test -r "$cache_file"; then
+  # Some versions of bash will fail to source /dev/null (special files
+  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
+  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
+$as_echo "$as_me: loading cache $cache_file" >&6;}
+    case $cache_file in
+      [\\/]* | ?:[\\/]* ) . "$cache_file";;
+      *)                      . "./$cache_file";;
+    esac
+  fi
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
+$as_echo "$as_me: creating cache $cache_file" >&6;}
+  >$cache_file
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in $ac_precious_vars; do
+  eval ac_old_set=\$ac_cv_env_${ac_var}_set
+  eval ac_new_set=\$ac_env_${ac_var}_set
+  eval ac_old_val=\$ac_cv_env_${ac_var}_value
+  eval ac_new_val=\$ac_env_${ac_var}_value
+  case $ac_old_set,$ac_new_set in
+    set,)
+      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+      ac_cache_corrupted=: ;;
+    ,set)
+      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+      ac_cache_corrupted=: ;;
+    ,);;
+    *)
+      if test "x$ac_old_val" != "x$ac_new_val"; then
+       # differences in whitespace do not lead to failure.
+       ac_old_val_w=`echo x $ac_old_val`
+       ac_new_val_w=`echo x $ac_new_val`
+       if test "$ac_old_val_w" != "$ac_new_val_w"; then
+         { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
+$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+         ac_cache_corrupted=:
+       else
+         { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
+$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
+         eval $ac_var=\$ac_old_val
+       fi
+       { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
+$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
+       { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
+$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
+      fi;;
+  esac
+  # Pass precious variables to config.status.
+  if test "$ac_new_set" = set; then
+    case $ac_new_val in
+    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+    *) ac_arg=$ac_var=$ac_new_val ;;
+    esac
+    case " $ac_configure_args " in
+      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
+      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
+    esac
+  fi
+done
+if $ac_cache_corrupted; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
+$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
+fi
+## -------------------- ##
+## Main body of script. ##
+## -------------------- ##
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+
+
+ac_config_headers="$ac_config_headers config.h"
+
+
+am__api_version='1.14'
+
+ac_aux_dir=
+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
+  if test -f "$ac_dir/install-sh"; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh="$ac_aux_dir/install-sh -c"
+    break
+  elif test -f "$ac_dir/install.sh"; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh="$ac_aux_dir/install.sh -c"
+    break
+  elif test -f "$ac_dir/shtool"; then
+    ac_aux_dir=$ac_dir
+    ac_install_sh="$ac_aux_dir/shtool install -c"
+    break
+  fi
+done
+if test -z "$ac_aux_dir"; then
+  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
+fi
+
+# These three variables are undocumented and unsupported,
+# and are intended to be withdrawn in a future Autoconf release.
+# They can cause serious problems if a builder's source tree is in a directory
+# whose full name contains unusual characters.
+ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
+ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
+ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
+
+
+# Find a good install program.  We prefer a C program (faster),
+# so one script is as good as another.  But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+# Reject install programs that cannot install multiple files.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
+$as_echo_n "checking for a BSD-compatible install... " >&6; }
+if test -z "$INSTALL"; then
+if ${ac_cv_path_install+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in #((
+  ./ | .// | /[cC]/* | \
+  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
+  /usr/ucb/* ) ;;
+  *)
+    # OSF1 and SCO ODT 3.0 have their own names for install.
+    # Don't use installbsd from OSF since it installs stuff as root
+    # by default.
+    for ac_prog in ginstall scoinst install; do
+      for ac_exec_ext in '' $ac_executable_extensions; do
+       if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
+         if test $ac_prog = install &&
+           grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+           # AIX install.  It has an incompatible calling convention.
+           :
+         elif test $ac_prog = install &&
+           grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+           # program-specific install script used by HP pwplus--don't use.
+           :
+         else
+           rm -rf conftest.one conftest.two conftest.dir
+           echo one > conftest.one
+           echo two > conftest.two
+           mkdir conftest.dir
+           if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
+             test -s conftest.one && test -s conftest.two &&
+             test -s conftest.dir/conftest.one &&
+             test -s conftest.dir/conftest.two
+           then
+             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+             break 3
+           fi
+         fi
+       fi
+      done
+    done
+    ;;
+esac
+
+  done
+IFS=$as_save_IFS
+
+rm -rf conftest.one conftest.two conftest.dir
+
+fi
+  if test "${ac_cv_path_install+set}" = set; then
+    INSTALL=$ac_cv_path_install
+  else
+    # As a last resort, use the slow shell script.  Don't cache a
+    # value for INSTALL within a source directory, because that will
+    # break other packages using the cache if that directory is
+    # removed, or if the value is a relative name.
+    INSTALL=$ac_install_sh
+  fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
+$as_echo "$INSTALL" >&6; }
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
+$as_echo_n "checking whether build environment is sane... " >&6; }
+# Reject unsafe characters in $srcdir or the absolute working directory
+# name.  Accept space and tab only in the latter.
+am_lf='
+'
+case `pwd` in
+  *[\\\"\#\$\&\'\`$am_lf]*)
+    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
+esac
+case $srcdir in
+  *[\\\"\#\$\&\'\`$am_lf\ \    ]*)
+    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
+esac
+
+# Do 'set' in a subshell so we don't clobber the current shell's
+# arguments.  Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+   am_has_slept=no
+   for am_try in 1 2; do
+     echo "timestamp, slept: $am_has_slept" > conftest.file
+     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
+     if test "$*" = "X"; then
+       # -L didn't work.
+       set X `ls -t "$srcdir/configure" conftest.file`
+     fi
+     if test "$*" != "X $srcdir/configure conftest.file" \
+       && test "$*" != "X conftest.file $srcdir/configure"; then
+
+       # If neither matched, then we have a broken ls.  This can happen
+       # if, for instance, CONFIG_SHELL is bash and it inherits a
+       # broken ls alias from the environment.  This has actually
+       # happened.  Such a system could not be considered "sane".
+       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
+  alias in your environment" "$LINENO" 5
+     fi
+     if test "$2" = conftest.file || test $am_try -eq 2; then
+       break
+     fi
+     # Just in case.
+     sleep 1
+     am_has_slept=yes
+   done
+   test "$2" = conftest.file
+   )
+then
+   # Ok.
+   :
+else
+   as_fn_error $? "newly created file is older than distributed files!
+Check your system clock" "$LINENO" 5
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+# If we didn't sleep, we still need to ensure time stamps of config.status and
+# generated files are strictly newer.
+am_sleep_pid=
+if grep 'slept: no' conftest.file >/dev/null 2>&1; then
+  ( sleep 1 ) &
+  am_sleep_pid=$!
+fi
+
+rm -f conftest.file
+
+test "$program_prefix" != NONE &&
+  program_transform_name="s&^&$program_prefix&;$program_transform_name"
+# Use a double $ so make ignores it.
+test "$program_suffix" != NONE &&
+  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
+# Double any \ or $.
+# By default was `s,x,x', remove it if useless.
+ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
+program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
+
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+
+if test x"${MISSING+set}" != xset; then
+  case $am_aux_dir in
+  *\ * | *\    *)
+    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
+  *)
+    MISSING="\${SHELL} $am_aux_dir/missing" ;;
+  esac
+fi
+# Use eval to expand $SHELL
+if eval "$MISSING --is-lightweight"; then
+  am_missing_run="$MISSING "
+else
+  am_missing_run=
+  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
+$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
+fi
+
+if test x"${install_sh}" != xset; then
+  case $am_aux_dir in
+  *\ * | *\    *)
+    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
+  *)
+    install_sh="\${SHELL} $am_aux_dir/install-sh"
+  esac
+fi
+
+# Installed binaries are usually stripped using 'strip' when the user
+# run "make install-strip".  However 'strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the 'STRIP' environment variable to overrule this program.
+if test "$cross_compiling" != no; then
+  if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_STRIP+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$STRIP"; then
+  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n "$STRIP"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
+$as_echo "$STRIP" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_STRIP"; then
+  ac_ct_STRIP=$STRIP
+  # Extract the first word of "strip", so it can be a program name with args.
+set dummy strip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_STRIP"; then
+  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_STRIP="strip"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n "$ac_ct_STRIP"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
+$as_echo "$ac_ct_STRIP" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_STRIP" = x; then
+    STRIP=":"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    STRIP=$ac_ct_STRIP
+  fi
+else
+  STRIP="$ac_cv_prog_STRIP"
+fi
+
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
+$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
+if test -z "$MKDIR_P"; then
+  if ${ac_cv_path_mkdir+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_prog in mkdir gmkdir; do
+        for ac_exec_ext in '' $ac_executable_extensions; do
+          as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
+          case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
+            'mkdir (GNU coreutils) '* | \
+            'mkdir (coreutils) '* | \
+            'mkdir (fileutils) '4.1*)
+              ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
+              break 3;;
+          esac
+        done
+       done
+  done
+IFS=$as_save_IFS
+
+fi
+
+  test -d ./--version && rmdir ./--version
+  if test "${ac_cv_path_mkdir+set}" = set; then
+    MKDIR_P="$ac_cv_path_mkdir -p"
+  else
+    # As a last resort, use the slow shell script.  Don't cache a
+    # value for MKDIR_P within a source directory, because that will
+    # break other packages using the cache if that directory is
+    # removed, or if the value is a relative name.
+    MKDIR_P="$ac_install_sh -d"
+  fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
+$as_echo "$MKDIR_P" >&6; }
+
+for ac_prog in gawk mawk nawk awk
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_AWK+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$AWK"; then
+  ac_cv_prog_AWK="$AWK" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_AWK="$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+AWK=$ac_cv_prog_AWK
+if test -n "$AWK"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
+$as_echo "$AWK" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  test -n "$AWK" && break
+done
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
+$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
+set x ${MAKE-make}
+ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
+if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat >conftest.make <<\_ACEOF
+SHELL = /bin/sh
+all:
+       @echo '@@@%%%=$(MAKE)=@@@%%%'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
+case `${MAKE-make} -f conftest.make 2>/dev/null` in
+  *@@@%%%=?*=@@@%%%*)
+    eval ac_cv_prog_make_${ac_make}_set=yes;;
+  *)
+    eval ac_cv_prog_make_${ac_make}_set=no;;
+esac
+rm -f conftest.make
+fi
+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+  SET_MAKE=
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+  SET_MAKE="MAKE=${MAKE-make}"
+fi
+
+rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+  am__leading_dot=.
+else
+  am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+
+# Check whether --enable-silent-rules was given.
+if test "${enable_silent_rules+set}" = set; then :
+  enableval=$enable_silent_rules;
+fi
+
+case $enable_silent_rules in # (((
+  yes) AM_DEFAULT_VERBOSITY=0;;
+   no) AM_DEFAULT_VERBOSITY=1;;
+    *) AM_DEFAULT_VERBOSITY=1;;
+esac
+am_make=${MAKE-make}
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
+$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
+if ${am_cv_make_support_nested_variables+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if $as_echo 'TRUE=$(BAR$(V))
+BAR0=false
+BAR1=true
+V=1
+am__doit:
+       @$(TRUE)
+.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
+  am_cv_make_support_nested_variables=yes
+else
+  am_cv_make_support_nested_variables=no
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
+$as_echo "$am_cv_make_support_nested_variables" >&6; }
+if test $am_cv_make_support_nested_variables = yes; then
+    AM_V='$(V)'
+  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
+else
+  AM_V=$AM_DEFAULT_VERBOSITY
+  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
+fi
+AM_BACKSLASH='\'
+
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+  # is not polluted with repeated "-I."
+  am__isrc=' -I$(srcdir)'
+  # test to see if srcdir already configured
+  if test -f $srcdir/config.status; then
+    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
+  fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+  if (cygpath --version) >/dev/null 2>/dev/null; then
+    CYGPATH_W='cygpath -w'
+  else
+    CYGPATH_W=echo
+  fi
+fi
+
+
+# Define the identity of the package.
+ PACKAGE='harfbuzz'
+ VERSION='0.9.35'
+
+
+# Some tools Automake needs.
+
+ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
+
+
+AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
+
+
+AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
+
+
+AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
+
+
+MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
+
+# For better backward compatibility.  To be removed once Automake 1.9.x
+# dies out for good.  For more background, see:
+# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
+# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
+mkdir_p='$(MKDIR_P)'
+
+# We need awk for the "check" target.  The system "awk" is bad on
+# some platforms.
+# Always define AMTAR for backward compatibility.  Yes, it's still used
+# in the wild :-(  We should find a proper way to deprecate it ...
+AMTAR='$${TAR-tar}'
+
+
+# We'll loop over all known methods to create a tar archive until one works.
+_am_tools='gnutar  pax cpio none'
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
+$as_echo_n "checking how to create a pax tar archive... " >&6; }
+
+  # Go ahead even if we have the value already cached.  We do so because we
+  # need to set the values for the 'am__tar' and 'am__untar' variables.
+  _am_tools=${am_cv_prog_tar_pax-$_am_tools}
+
+  for _am_tool in $_am_tools; do
+    case $_am_tool in
+    gnutar)
+      for _am_tar in tar gnutar gtar; do
+        { echo "$as_me:$LINENO: $_am_tar --version" >&5
+   ($_am_tar --version) >&5 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); } && break
+      done
+      am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
+      am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
+      am__untar="$_am_tar -xf -"
+      ;;
+    plaintar)
+      # Must skip GNU tar: if it does not support --format= it doesn't create
+      # ustar tarball either.
+      (tar --version) >/dev/null 2>&1 && continue
+      am__tar='tar chf - "$$tardir"'
+      am__tar_='tar chf - "$tardir"'
+      am__untar='tar xf -'
+      ;;
+    pax)
+      am__tar='pax -L -x pax -w "$$tardir"'
+      am__tar_='pax -L -x pax -w "$tardir"'
+      am__untar='pax -r'
+      ;;
+    cpio)
+      am__tar='find "$$tardir" -print | cpio -o -H pax -L'
+      am__tar_='find "$tardir" -print | cpio -o -H pax -L'
+      am__untar='cpio -i -H pax -d'
+      ;;
+    none)
+      am__tar=false
+      am__tar_=false
+      am__untar=false
+      ;;
+    esac
+
+    # If the value was cached, stop now.  We just wanted to have am__tar
+    # and am__untar set.
+    test -n "${am_cv_prog_tar_pax}" && break
+
+    # tar/untar a dummy directory, and stop if the command works.
+    rm -rf conftest.dir
+    mkdir conftest.dir
+    echo GrepMe > conftest.dir/file
+    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
+   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); }
+    rm -rf conftest.dir
+    if test -s conftest.tar; then
+      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
+   ($am__untar <conftest.tar) >&5 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); }
+      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
+   (cat conftest.dir/file) >&5 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); }
+      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
+    fi
+  done
+  rm -rf conftest.dir
+
+  if ${am_cv_prog_tar_pax+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  am_cv_prog_tar_pax=$_am_tool
+fi
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
+$as_echo "$am_cv_prog_tar_pax" >&6; }
+
+
+
+
+
+
+# POSIX will say in a future version that running "rm -f" with no argument
+# is OK; and we want to be able to make that assumption in our Makefile
+# recipes.  So use an aggressive probe to check that the usage we want is
+# actually supported "in the wild" to an acceptable degree.
+# See automake bug#10828.
+# To make any issue more visible, cause the running configure to be aborted
+# by default if the 'rm' program in use doesn't match our expectations; the
+# user can still override this though.
+if rm -f && rm -fr && rm -rf; then : OK; else
+  cat >&2 <<'END'
+Oops!
+
+Your 'rm' program seems unable to run without file operands specified
+on the command line, even when the '-f' option is present.  This is contrary
+to the behaviour of most rm programs out there, and not conforming with
+the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
+
+Please tell bug-automake@gnu.org about your system, including the value
+of your $PATH and any error possibly output before this message.  This
+can help us improve future automake versions.
+
+END
+  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
+    echo 'Configuration will proceed anyway, since you have set the' >&2
+    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
+    echo >&2
+  else
+    cat >&2 <<'END'
+Aborting the configuration process, to ensure you take notice of the issue.
+
+You can download and install GNU coreutils to get an 'rm' implementation
+that behaves properly: <http://www.gnu.org/software/coreutils/>.
+
+If you want to complete the configuration process using your problematic
+'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
+to "yes", and re-run configure.
+
+END
+    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
+  fi
+fi
+ if test $am__api_version = 1.11 -o $am__api_version = 1.12; then
+  AUTOMAKE_OLDER_THAN_1_13_TRUE=
+  AUTOMAKE_OLDER_THAN_1_13_FALSE='#'
+else
+  AUTOMAKE_OLDER_THAN_1_13_TRUE='#'
+  AUTOMAKE_OLDER_THAN_1_13_FALSE=
+fi
+
+# Check whether --enable-silent-rules was given.
+if test "${enable_silent_rules+set}" = set; then :
+  enableval=$enable_silent_rules;
+fi
+
+case $enable_silent_rules in # (((
+  yes) AM_DEFAULT_VERBOSITY=0;;
+   no) AM_DEFAULT_VERBOSITY=1;;
+    *) AM_DEFAULT_VERBOSITY=0;;
+esac
+am_make=${MAKE-make}
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
+$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
+if ${am_cv_make_support_nested_variables+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if $as_echo 'TRUE=$(BAR$(V))
+BAR0=false
+BAR1=true
+V=1
+am__doit:
+       @$(TRUE)
+.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
+  am_cv_make_support_nested_variables=yes
+else
+  am_cv_make_support_nested_variables=no
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
+$as_echo "$am_cv_make_support_nested_variables" >&6; }
+if test $am_cv_make_support_nested_variables = yes; then
+    AM_V='$(V)'
+  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
+else
+  AM_V=$AM_DEFAULT_VERBOSITY
+  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
+fi
+AM_BACKSLASH='\'
+
+
+# Initialize libtool
+DEPDIR="${am__leading_dot}deps"
+
+ac_config_commands="$ac_config_commands depfiles"
+
+
+am_make=${MAKE-make}
+cat > confinc << 'END'
+am__doit:
+       @echo this is the am__doit target
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
+$as_echo_n "checking for style of include used by $am_make... " >&6; }
+am__include="#"
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# Ignore all kinds of additional output from 'make'.
+case `$am_make -s -f confmf 2> /dev/null` in #(
+*the\ am__doit\ target*)
+  am__include=include
+  am__quote=
+  _am_result=GNU
+  ;;
+esac
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+   echo '.include "confinc"' > confmf
+   case `$am_make -s -f confmf 2> /dev/null` in #(
+   *the\ am__doit\ target*)
+     am__include=.include
+     am__quote="\""
+     _am_result=BSD
+     ;;
+   esac
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
+$as_echo "$_am_result" >&6; }
+rm -f confinc confmf
+
+# Check whether --enable-dependency-tracking was given.
+if test "${enable_dependency_tracking+set}" = set; then :
+  enableval=$enable_dependency_tracking;
+fi
+
+if test "x$enable_dependency_tracking" != xno; then
+  am_depcomp="$ac_aux_dir/depcomp"
+  AMDEPBACKSLASH='\'
+  am__nodep='_no'
+fi
+ if test "x$enable_dependency_tracking" != xno; then
+  AMDEP_TRUE=
+  AMDEP_FALSE='#'
+else
+  AMDEP_TRUE='#'
+  AMDEP_FALSE=
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_CC="${ac_tool_prefix}gcc"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+  ac_ct_CC=$CC
+  # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_CC+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_CC"; then
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_CC="gcc"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_CC" = x; then
+    CC=""
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    CC=$ac_ct_CC
+  fi
+else
+  CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+          if test -n "$ac_tool_prefix"; then
+    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_CC="${ac_tool_prefix}cc"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  fi
+fi
+if test -z "$CC"; then
+  # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+  ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+       ac_prog_rejected=yes
+       continue
+     fi
+    ac_cv_prog_CC="cc"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+if test $ac_prog_rejected = yes; then
+  # We found a bogon in the path, so make sure we never use it.
+  set dummy $ac_cv_prog_CC
+  shift
+  if test $# != 0; then
+    # We chose a different compiler from the bogus one.
+    # However, it has the same basename, so the bogon will be chosen
+    # first if we set CC to just the basename; use the full file name.
+    shift
+    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+  fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$CC"; then
+  if test -n "$ac_tool_prefix"; then
+  for ac_prog in cl.exe
+  do
+    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+    test -n "$CC" && break
+  done
+fi
+if test -z "$CC"; then
+  ac_ct_CC=$CC
+  for ac_prog in cl.exe
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_CC+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_CC"; then
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_CC="$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  test -n "$ac_ct_CC" && break
+done
+
+  if test "x$ac_ct_CC" = x; then
+    CC=""
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    CC=$ac_ct_CC
+  fi
+fi
+
+fi
+
+
+test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "no acceptable C compiler found in \$PATH
+See \`config.log' for more details" "$LINENO" 5; }
+
+# Provide some information about the compiler.
+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+for ac_option in --version -v -V -qversion; do
+  { { ac_try="$ac_compiler $ac_option >&5"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
+  ac_status=$?
+  if test -s conftest.err; then
+    sed '10a\
+... rest of stderr output deleted ...
+         10q' conftest.err >conftest.er1
+    cat conftest.er1 >&5
+  fi
+  rm -f conftest.er1 conftest.err
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }
+done
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
+# Try to create an executable without -o first, disregard a.out.
+# It will help us diagnose broken compilers, and finding out an intuition
+# of exeext.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
+$as_echo_n "checking whether the C compiler works... " >&6; }
+ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+
+# The possible output files:
+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
+
+ac_rmfiles=
+for ac_file in $ac_files
+do
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
+  esac
+done
+rm -f $ac_rmfiles
+
+if { { ac_try="$ac_link_default"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_link_default") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then :
+  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
+# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
+# in a Makefile.  We should not override ac_cv_exeext if it was cached,
+# so that the user can short-circuit this test for compilers unknown to
+# Autoconf.
+for ac_file in $ac_files ''
+do
+  test -f "$ac_file" || continue
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
+       ;;
+    [ab].out )
+       # We found the default executable, but exeext='' is most
+       # certainly right.
+       break;;
+    *.* )
+       if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
+       then :; else
+          ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+       fi
+       # We set ac_cv_exeext here because the later test for it is not
+       # safe: cross compilers may not add the suffix if given an `-o'
+       # argument, so we may need to know it at that point already.
+       # Even if this section looks crufty: it has the advantage of
+       # actually working.
+       break;;
+    * )
+       break;;
+  esac
+done
+test "$ac_cv_exeext" = no && ac_cv_exeext=
+
+else
+  ac_file=''
+fi
+if test -z "$ac_file"; then :
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "C compiler cannot create executables
+See \`config.log' for more details" "$LINENO" 5; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
+$as_echo_n "checking for C compiler default output file name... " >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
+$as_echo "$ac_file" >&6; }
+ac_exeext=$ac_cv_exeext
+
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
+ac_clean_files=$ac_clean_files_save
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
+$as_echo_n "checking for suffix of executables... " >&6; }
+if { { ac_try="$ac_link"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_link") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then :
+  # If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in conftest.exe conftest conftest.*; do
+  test -f "$ac_file" || continue
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+         break;;
+    * ) break;;
+  esac
+done
+else
+  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+rm -f conftest conftest$ac_cv_exeext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
+$as_echo "$ac_cv_exeext" >&6; }
+
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <stdio.h>
+int
+main ()
+{
+FILE *f = fopen ("conftest.out", "w");
+ return ferror (f) || fclose (f) != 0;
+
+  ;
+  return 0;
+}
+_ACEOF
+ac_clean_files="$ac_clean_files conftest.out"
+# Check that the compiler produces executables we can run.  If not, either
+# the compiler is broken, or we cross compile.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
+$as_echo_n "checking whether we are cross compiling... " >&6; }
+if test "$cross_compiling" != yes; then
+  { { ac_try="$ac_link"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_link") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }
+  if { ac_try='./conftest$ac_cv_exeext'
+  { { case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_try") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; }; then
+    cross_compiling=no
+  else
+    if test "$cross_compiling" = maybe; then
+       cross_compiling=yes
+    else
+       { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details" "$LINENO" 5; }
+    fi
+  fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
+$as_echo "$cross_compiling" >&6; }
+
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
+ac_clean_files=$ac_clean_files_save
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
+$as_echo_n "checking for suffix of object files... " >&6; }
+if ${ac_cv_objext+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.o conftest.obj
+if { { ac_try="$ac_compile"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_compile") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then :
+  for ac_file in conftest.o conftest.obj conftest.*; do
+  test -f "$ac_file" || continue;
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
+    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+       break;;
+  esac
+done
+else
+  $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot compute suffix of object files: cannot compile
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
+$as_echo "$ac_cv_objext" >&6; }
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
+if ${ac_cv_c_compiler_gnu+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+#ifndef __GNUC__
+       choke me
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_compiler_gnu=yes
+else
+  ac_compiler_gnu=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
+if test $ac_compiler_gnu = yes; then
+  GCC=yes
+else
+  GCC=
+fi
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
+$as_echo_n "checking whether $CC accepts -g... " >&6; }
+if ${ac_cv_prog_cc_g+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_save_c_werror_flag=$ac_c_werror_flag
+   ac_c_werror_flag=yes
+   ac_cv_prog_cc_g=no
+   CFLAGS="-g"
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_cv_prog_cc_g=yes
+else
+  CFLAGS=""
+      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+  ac_c_werror_flag=$ac_save_c_werror_flag
+        CFLAGS="-g"
+        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_cv_prog_cc_g=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+   ac_c_werror_flag=$ac_save_c_werror_flag
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
+$as_echo "$ac_cv_prog_cc_g" >&6; }
+if test "$ac_test_CFLAGS" = set; then
+  CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+  if test "$GCC" = yes; then
+    CFLAGS="-g -O2"
+  else
+    CFLAGS="-g"
+  fi
+else
+  if test "$GCC" = yes; then
+    CFLAGS="-O2"
+  else
+    CFLAGS=
+  fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
+$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
+if ${ac_cv_prog_cc_c89+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_cv_prog_cc_c89=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <stdarg.h>
+#include <stdio.h>
+struct stat;
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+     char **p;
+     int i;
+{
+  return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+  char *s;
+  va_list v;
+  va_start (v,p);
+  s = g (p, va_arg (v,int));
+  va_end (v);
+  return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
+   function prototypes and stuff, but not '\xHH' hex character constants.
+   These don't provoke an error unfortunately, instead are silently treated
+   as 'x'.  The following induces an error, until -std is added to get
+   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
+   array size at least.  It's necessary to write '\x00'==0 to get something
+   that's true only with -std.  */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
+   inside strings and character constants.  */
+#define FOO(x) 'x'
+int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
+  ;
+  return 0;
+}
+_ACEOF
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
+       -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+  CC="$ac_save_CC $ac_arg"
+  if ac_fn_c_try_compile "$LINENO"; then :
+  ac_cv_prog_cc_c89=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext
+  test "x$ac_cv_prog_cc_c89" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+
+fi
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c89" in
+  x)
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+$as_echo "none needed" >&6; } ;;
+  xno)
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+$as_echo "unsupported" >&6; } ;;
+  *)
+    CC="$CC $ac_cv_prog_cc_c89"
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
+$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
+esac
+if test "x$ac_cv_prog_cc_c89" != xno; then :
+
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
+$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
+if ${am_cv_prog_cc_c_o+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+  # Make sure it works both with $CC and with simple cc.
+  # Following AC_PROG_CC_C_O, we do the test twice because some
+  # compilers refuse to overwrite an existing .o file with -o,
+  # though they will create one.
+  am_cv_prog_cc_c_o=yes
+  for am_i in 1 2; do
+    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
+   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); } \
+         && test -f conftest2.$ac_objext; then
+      : OK
+    else
+      am_cv_prog_cc_c_o=no
+      break
+    fi
+  done
+  rm -f core conftest*
+  unset am_i
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
+$as_echo "$am_cv_prog_cc_c_o" >&6; }
+if test "$am_cv_prog_cc_c_o" != yes; then
+   # Losing compiler, so override with the script.
+   # FIXME: It is wrong to rewrite CC.
+   # But if we don't then we get into trouble of one sort or another.
+   # A longer-term fix would be to have automake use am__CC in this case,
+   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
+   CC="$am_aux_dir/compile $CC"
+fi
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+depcc="$CC"   am_compiler_list=
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
+$as_echo_n "checking dependency style of $depcc... " >&6; }
+if ${am_cv_CC_dependencies_compiler_type+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+  # We make a subdir and do the tests there.  Otherwise we can end up
+  # making bogus files that we don't know about and never remove.  For
+  # instance it was reported that on HP-UX the gcc test will end up
+  # making a dummy file named 'D' -- because '-MD' means "put the output
+  # in D".
+  rm -rf conftest.dir
+  mkdir conftest.dir
+  # Copy depcomp to subdir because otherwise we won't find it if we're
+  # using a relative directory.
+  cp "$am_depcomp" conftest.dir
+  cd conftest.dir
+  # We will build objects and dependencies in a subdirectory because
+  # it helps to detect inapplicable dependency modes.  For instance
+  # both Tru64's cc and ICC support -MD to output dependencies as a
+  # side effect of compilation, but ICC will put the dependencies in
+  # the current directory while Tru64 will put them in the object
+  # directory.
+  mkdir sub
+
+  am_cv_CC_dependencies_compiler_type=none
+  if test "$am_compiler_list" = ""; then
+     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+  fi
+  am__universal=false
+  case " $depcc " in #(
+     *\ -arch\ *\ -arch\ *) am__universal=true ;;
+     esac
+
+  for depmode in $am_compiler_list; do
+    # Setup a source with many dependencies, because some compilers
+    # like to wrap large dependency lists on column 80 (with \), and
+    # we should not choose a depcomp mode which is confused by this.
+    #
+    # We need to recreate these files for each test, as the compiler may
+    # overwrite some of them when testing with obscure command lines.
+    # This happens at least with the AIX C compiler.
+    : > sub/conftest.c
+    for i in 1 2 3 4 5 6; do
+      echo '#include "conftst'$i'.h"' >> sub/conftest.c
+      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
+      # Solaris 10 /bin/sh.
+      echo '/* dummy */' > sub/conftst$i.h
+    done
+    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+    # We check with '-c' and '-o' for the sake of the "dashmstdout"
+    # mode.  It turns out that the SunPro C++ compiler does not properly
+    # handle '-M -o', and we need to detect this.  Also, some Intel
+    # versions had trouble with output in subdirs.
+    am__obj=sub/conftest.${OBJEXT-o}
+    am__minus_obj="-o $am__obj"
+    case $depmode in
+    gcc)
+      # This depmode causes a compiler race in universal mode.
+      test "$am__universal" = false || continue
+      ;;
+    nosideeffect)
+      # After this tag, mechanisms are not by side-effect, so they'll
+      # only be used when explicitly requested.
+      if test "x$enable_dependency_tracking" = xyes; then
+       continue
+      else
+       break
+      fi
+      ;;
+    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
+      # This compiler won't grok '-c -o', but also, the minuso test has
+      # not run yet.  These depmodes are late enough in the game, and
+      # so weak that their functioning should not be impacted.
+      am__obj=conftest.${OBJEXT-o}
+      am__minus_obj=
+      ;;
+    none) break ;;
+    esac
+    if depmode=$depmode \
+       source=sub/conftest.c object=$am__obj \
+       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
+         >/dev/null 2>conftest.err &&
+       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
+       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+      # icc doesn't choke on unknown options, it will just issue warnings
+      # or remarks (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored or not supported.
+      # When given -MP, icc 7.0 and 7.1 complain thusly:
+      #   icc: Command line warning: ignoring option '-M'; no argument required
+      # The diagnosis changed in icc 8.0:
+      #   icc: Command line remark: option '-MP' not supported
+      if (grep 'ignoring option' conftest.err ||
+          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+        am_cv_CC_dependencies_compiler_type=$depmode
+        break
+      fi
+    fi
+  done
+
+  cd ..
+  rm -rf conftest.dir
+else
+  am_cv_CC_dependencies_compiler_type=none
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
+$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
+
+ if
+  test "x$enable_dependency_tracking" != xno \
+  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
+  am__fastdepCC_TRUE=
+  am__fastdepCC_FALSE='#'
+else
+  am__fastdepCC_TRUE='#'
+  am__fastdepCC_FALSE=
+fi
+
+
+
+if test -n "$ac_tool_prefix"; then
+  for ac_prog in ar lib "link -lib"
+  do
+    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_AR+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$AR"; then
+  ac_cv_prog_AR="$AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+AR=$ac_cv_prog_AR
+if test -n "$AR"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
+$as_echo "$AR" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+    test -n "$AR" && break
+  done
+fi
+if test -z "$AR"; then
+  ac_ct_AR=$AR
+  for ac_prog in ar lib "link -lib"
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_AR+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_AR"; then
+  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_AR="$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_AR=$ac_cv_prog_ac_ct_AR
+if test -n "$ac_ct_AR"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
+$as_echo "$ac_ct_AR" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  test -n "$ac_ct_AR" && break
+done
+
+  if test "x$ac_ct_AR" = x; then
+    AR="false"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    AR=$ac_ct_AR
+  fi
+fi
+
+: ${AR=ar}
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
+$as_echo_n "checking the archiver ($AR) interface... " >&6; }
+if ${am_cv_ar_interface+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+   am_cv_ar_interface=ar
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+int some_variable = 0;
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
+      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
+  (eval $am_ar_try) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }
+      if test "$ac_status" -eq 0; then
+        am_cv_ar_interface=ar
+      else
+        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
+        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
+  (eval $am_ar_try) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }
+        if test "$ac_status" -eq 0; then
+          am_cv_ar_interface=lib
+        else
+          am_cv_ar_interface=unknown
+        fi
+      fi
+      rm -f conftest.lib libconftest.a
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+   ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
+$as_echo "$am_cv_ar_interface" >&6; }
+
+case $am_cv_ar_interface in
+ar)
+  ;;
+lib)
+  # Microsoft lib, so override with the ar-lib wrapper script.
+  # FIXME: It is wrong to rewrite AR.
+  # But if we don't then we get into trouble of one sort or another.
+  # A longer-term fix would be to have automake use am__AR in this case,
+  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
+  # similar.
+  AR="$am_aux_dir/ar-lib $AR"
+  ;;
+unknown)
+  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
+  ;;
+esac
+
+
+case `pwd` in
+  *\ * | *\    *)
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
+$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
+esac
+
+
+
+macro_version='2.4.2.418'
+macro_revision='2.4.2.418'
+
+
+
+
+
+
+
+
+
+
+
+
+
+ltmain=$ac_aux_dir/ltmain.sh
+
+# Make sure we can run config.sub.
+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
+  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
+$as_echo_n "checking build system type... " >&6; }
+if ${ac_cv_build+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_build_alias=$build_alias
+test "x$ac_build_alias" = x &&
+  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
+test "x$ac_build_alias" = x &&
+  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
+  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
+$as_echo "$ac_cv_build" >&6; }
+case $ac_cv_build in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
+esac
+build=$ac_cv_build
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_build
+shift
+build_cpu=$1
+build_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+build_os=$*
+IFS=$ac_save_IFS
+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
+$as_echo_n "checking host system type... " >&6; }
+if ${ac_cv_host+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test "x$host_alias" = x; then
+  ac_cv_host=$ac_cv_build
+else
+  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
+    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
+$as_echo "$ac_cv_host" >&6; }
+case $ac_cv_host in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
+esac
+host=$ac_cv_host
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_host
+shift
+host_cpu=$1
+host_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+host_os=$*
+IFS=$ac_save_IFS
+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
+
+
+# Backslashify metacharacters that are still active within
+# double-quoted strings.
+sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\(["`\\]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to delay expansion of an escaped single quote.
+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
+ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
+$as_echo_n "checking how to print strings... " >&6; }
+# Test print first, because it will be a builtin if present.
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
+   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
+  ECHO='print -r --'
+elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
+  ECHO='printf %s\n'
+else
+  # Use this function as a fallback that always works.
+  func_fallback_echo ()
+  {
+    eval 'cat <<_LTECHO_EOF
+$1
+_LTECHO_EOF'
+  }
+  ECHO='func_fallback_echo'
+fi
+
+# func_echo_all arg...
+# Invoke $ECHO with all args, space-separated.
+func_echo_all ()
+{
+    $ECHO ""
+}
+
+case $ECHO in
+  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
+$as_echo "printf" >&6; } ;;
+  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
+$as_echo "print -r" >&6; } ;;
+  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
+$as_echo "cat" >&6; } ;;
+esac
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
+$as_echo_n "checking for a sed that does not truncate output... " >&6; }
+if ${ac_cv_path_SED+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
+     for ac_i in 1 2 3 4 5 6 7; do
+       ac_script="$ac_script$as_nl$ac_script"
+     done
+     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
+     { ac_script=; unset ac_script;}
+     if test -z "$SED"; then
+  ac_path_SED_found=false
+  # Loop through the user's path and test for each of PROGNAME-LIST
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_prog in sed gsed; do
+    for ac_exec_ext in '' $ac_executable_extensions; do
+      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
+      as_fn_executable_p "$ac_path_SED" || continue
+# Check for GNU ac_path_SED and select it if it is found.
+  # Check for GNU $ac_path_SED
+case `"$ac_path_SED" --version 2>&1` in
+*GNU*)
+  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
+*)
+  ac_count=0
+  $as_echo_n 0123456789 >"conftest.in"
+  while :
+  do
+    cat "conftest.in" "conftest.in" >"conftest.tmp"
+    mv "conftest.tmp" "conftest.in"
+    cp "conftest.in" "conftest.nl"
+    $as_echo '' >> "conftest.nl"
+    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
+    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+    as_fn_arith $ac_count + 1 && ac_count=$as_val
+    if test $ac_count -gt ${ac_path_SED_max-0}; then
+      # Best one so far, save it but keep looking for a better one
+      ac_cv_path_SED="$ac_path_SED"
+      ac_path_SED_max=$ac_count
+    fi
+    # 10*(2^10) chars as input seems more than enough
+    test $ac_count -gt 10 && break
+  done
+  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+      $ac_path_SED_found && break 3
+    done
+  done
+  done
+IFS=$as_save_IFS
+  if test -z "$ac_cv_path_SED"; then
+    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
+  fi
+else
+  ac_cv_path_SED=$SED
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
+$as_echo "$ac_cv_path_SED" >&6; }
+ SED="$ac_cv_path_SED"
+  rm -f conftest.sed
+
+test -z "$SED" && SED=sed
+Xsed="$SED -e 1s/^X//"
+
+
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
+$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
+if ${ac_cv_path_GREP+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -z "$GREP"; then
+  ac_path_GREP_found=false
+  # Loop through the user's path and test for each of PROGNAME-LIST
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_prog in grep ggrep; do
+    for ac_exec_ext in '' $ac_executable_extensions; do
+      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
+      as_fn_executable_p "$ac_path_GREP" || continue
+# Check for GNU ac_path_GREP and select it if it is found.
+  # Check for GNU $ac_path_GREP
+case `"$ac_path_GREP" --version 2>&1` in
+*GNU*)
+  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
+*)
+  ac_count=0
+  $as_echo_n 0123456789 >"conftest.in"
+  while :
+  do
+    cat "conftest.in" "conftest.in" >"conftest.tmp"
+    mv "conftest.tmp" "conftest.in"
+    cp "conftest.in" "conftest.nl"
+    $as_echo 'GREP' >> "conftest.nl"
+    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+    as_fn_arith $ac_count + 1 && ac_count=$as_val
+    if test $ac_count -gt ${ac_path_GREP_max-0}; then
+      # Best one so far, save it but keep looking for a better one
+      ac_cv_path_GREP="$ac_path_GREP"
+      ac_path_GREP_max=$ac_count
+    fi
+    # 10*(2^10) chars as input seems more than enough
+    test $ac_count -gt 10 && break
+  done
+  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+      $ac_path_GREP_found && break 3
+    done
+  done
+  done
+IFS=$as_save_IFS
+  if test -z "$ac_cv_path_GREP"; then
+    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+  fi
+else
+  ac_cv_path_GREP=$GREP
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
+$as_echo "$ac_cv_path_GREP" >&6; }
+ GREP="$ac_cv_path_GREP"
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
+$as_echo_n "checking for egrep... " >&6; }
+if ${ac_cv_path_EGREP+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
+   then ac_cv_path_EGREP="$GREP -E"
+   else
+     if test -z "$EGREP"; then
+  ac_path_EGREP_found=false
+  # Loop through the user's path and test for each of PROGNAME-LIST
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_prog in egrep; do
+    for ac_exec_ext in '' $ac_executable_extensions; do
+      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
+      as_fn_executable_p "$ac_path_EGREP" || continue
+# Check for GNU ac_path_EGREP and select it if it is found.
+  # Check for GNU $ac_path_EGREP
+case `"$ac_path_EGREP" --version 2>&1` in
+*GNU*)
+  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
+*)
+  ac_count=0
+  $as_echo_n 0123456789 >"conftest.in"
+  while :
+  do
+    cat "conftest.in" "conftest.in" >"conftest.tmp"
+    mv "conftest.tmp" "conftest.in"
+    cp "conftest.in" "conftest.nl"
+    $as_echo 'EGREP' >> "conftest.nl"
+    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+    as_fn_arith $ac_count + 1 && ac_count=$as_val
+    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
+      # Best one so far, save it but keep looking for a better one
+      ac_cv_path_EGREP="$ac_path_EGREP"
+      ac_path_EGREP_max=$ac_count
+    fi
+    # 10*(2^10) chars as input seems more than enough
+    test $ac_count -gt 10 && break
+  done
+  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+      $ac_path_EGREP_found && break 3
+    done
+  done
+  done
+IFS=$as_save_IFS
+  if test -z "$ac_cv_path_EGREP"; then
+    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+  fi
+else
+  ac_cv_path_EGREP=$EGREP
+fi
+
+   fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
+$as_echo "$ac_cv_path_EGREP" >&6; }
+ EGREP="$ac_cv_path_EGREP"
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
+$as_echo_n "checking for fgrep... " >&6; }
+if ${ac_cv_path_FGREP+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
+   then ac_cv_path_FGREP="$GREP -F"
+   else
+     if test -z "$FGREP"; then
+  ac_path_FGREP_found=false
+  # Loop through the user's path and test for each of PROGNAME-LIST
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_prog in fgrep; do
+    for ac_exec_ext in '' $ac_executable_extensions; do
+      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
+      as_fn_executable_p "$ac_path_FGREP" || continue
+# Check for GNU ac_path_FGREP and select it if it is found.
+  # Check for GNU $ac_path_FGREP
+case `"$ac_path_FGREP" --version 2>&1` in
+*GNU*)
+  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
+*)
+  ac_count=0
+  $as_echo_n 0123456789 >"conftest.in"
+  while :
+  do
+    cat "conftest.in" "conftest.in" >"conftest.tmp"
+    mv "conftest.tmp" "conftest.in"
+    cp "conftest.in" "conftest.nl"
+    $as_echo 'FGREP' >> "conftest.nl"
+    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
+    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+    as_fn_arith $ac_count + 1 && ac_count=$as_val
+    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
+      # Best one so far, save it but keep looking for a better one
+      ac_cv_path_FGREP="$ac_path_FGREP"
+      ac_path_FGREP_max=$ac_count
+    fi
+    # 10*(2^10) chars as input seems more than enough
+    test $ac_count -gt 10 && break
+  done
+  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+      $ac_path_FGREP_found && break 3
+    done
+  done
+  done
+IFS=$as_save_IFS
+  if test -z "$ac_cv_path_FGREP"; then
+    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+  fi
+else
+  ac_cv_path_FGREP=$FGREP
+fi
+
+   fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
+$as_echo "$ac_cv_path_FGREP" >&6; }
+ FGREP="$ac_cv_path_FGREP"
+
+
+test -z "$GREP" && GREP=grep
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# Check whether --with-gnu-ld was given.
+if test "${with_gnu_ld+set}" = set; then :
+  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
+else
+  with_gnu_ld=no
+fi
+
+ac_prog=ld
+if test yes = "$GCC"; then
+  # Check if gcc -print-prog-name=ld gives a path.
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
+$as_echo_n "checking for ld used by $CC... " >&6; }
+  case $host in
+  *-*-mingw*)
+    # gcc leaves a trailing carriage return, which upsets mingw
+    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+  *)
+    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+  esac
+  case $ac_prog in
+    # Accept absolute paths.
+    [\\/]* | ?:[\\/]*)
+      re_direlt='/[^/][^/]*/\.\./'
+      # Canonicalize the pathname of ld
+      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
+      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
+       ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
+      done
+      test -z "$LD" && LD=$ac_prog
+      ;;
+  "")
+    # If it fails, then pretend we aren't using GCC.
+    ac_prog=ld
+    ;;
+  *)
+    # If it is relative, then search for the first ld in PATH.
+    with_gnu_ld=unknown
+    ;;
+  esac
+elif test yes = "$with_gnu_ld"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
+$as_echo_n "checking for GNU ld... " >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
+$as_echo_n "checking for non-GNU ld... " >&6; }
+fi
+if ${lt_cv_path_LD+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -z "$LD"; then
+  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
+  for ac_dir in $PATH; do
+    IFS=$lt_save_ifs
+    test -z "$ac_dir" && ac_dir=.
+    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+      lt_cv_path_LD=$ac_dir/$ac_prog
+      # Check to see if the program is GNU ld.  I'd rather use --version,
+      # but apparently some variants of GNU ld only accept -v.
+      # Break only if it was the GNU/non-GNU ld that we prefer.
+      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
+      *GNU* | *'with BFD'*)
+       test no != "$with_gnu_ld" && break
+       ;;
+      *)
+       test yes != "$with_gnu_ld" && break
+       ;;
+      esac
+    fi
+  done
+  IFS=$lt_save_ifs
+else
+  lt_cv_path_LD=$LD # Let the user override the test with a path.
+fi
+fi
+
+LD=$lt_cv_path_LD
+if test -n "$LD"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
+$as_echo "$LD" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
+$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
+if ${lt_cv_prog_gnu_ld+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  # I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+  lt_cv_prog_gnu_ld=yes
+  ;;
+*)
+  lt_cv_prog_gnu_ld=no
+  ;;
+esac
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
+$as_echo "$lt_cv_prog_gnu_ld" >&6; }
+with_gnu_ld=$lt_cv_prog_gnu_ld
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
+$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
+if ${lt_cv_path_NM+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$NM"; then
+  # Let the user override the test.
+  lt_cv_path_NM=$NM
+else
+  lt_nm_to_check=${ac_tool_prefix}nm
+  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
+    lt_nm_to_check="$lt_nm_to_check nm"
+  fi
+  for lt_tmp_nm in $lt_nm_to_check; do
+    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
+    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
+      IFS=$lt_save_ifs
+      test -z "$ac_dir" && ac_dir=.
+      tmp_nm=$ac_dir/$lt_tmp_nm
+      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
+       # Check to see if the nm accepts a BSD-compat flag.
+       # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
+       #   nm: unknown option "B" ignored
+       # Tru64's nm complains that /dev/null is an invalid object file
+       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
+       */dev/null* | *'Invalid file or object type'*)
+         lt_cv_path_NM="$tmp_nm -B"
+         break 2
+         ;;
+       *)
+         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
+         */dev/null*)
+           lt_cv_path_NM="$tmp_nm -p"
+           break 2
+           ;;
+         *)
+           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
+           continue # so that we can try to find one that supports BSD flags
+           ;;
+         esac
+         ;;
+       esac
+      fi
+    done
+    IFS=$lt_save_ifs
+  done
+  : ${lt_cv_path_NM=no}
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
+$as_echo "$lt_cv_path_NM" >&6; }
+if test no != "$lt_cv_path_NM"; then
+  NM=$lt_cv_path_NM
+else
+  # Didn't find any BSD compatible name lister, look for dumpbin.
+  if test -n "$DUMPBIN"; then :
+    # Let the user override the test.
+  else
+    if test -n "$ac_tool_prefix"; then
+  for ac_prog in dumpbin "link -dump"
+  do
+    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_DUMPBIN+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$DUMPBIN"; then
+  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+DUMPBIN=$ac_cv_prog_DUMPBIN
+if test -n "$DUMPBIN"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
+$as_echo "$DUMPBIN" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+    test -n "$DUMPBIN" && break
+  done
+fi
+if test -z "$DUMPBIN"; then
+  ac_ct_DUMPBIN=$DUMPBIN
+  for ac_prog in dumpbin "link -dump"
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_DUMPBIN"; then
+  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
+if test -n "$ac_ct_DUMPBIN"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
+$as_echo "$ac_ct_DUMPBIN" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  test -n "$ac_ct_DUMPBIN" && break
+done
+
+  if test "x$ac_ct_DUMPBIN" = x; then
+    DUMPBIN=":"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    DUMPBIN=$ac_ct_DUMPBIN
+  fi
+fi
+
+    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
+    *COFF*)
+      DUMPBIN="$DUMPBIN -symbols -headers"
+      ;;
+    *)
+      DUMPBIN=:
+      ;;
+    esac
+  fi
+
+  if test : != "$DUMPBIN"; then
+    NM=$DUMPBIN
+  fi
+fi
+test -z "$NM" && NM=nm
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
+$as_echo_n "checking the name lister ($NM) interface... " >&6; }
+if ${lt_cv_nm_interface+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_nm_interface="BSD nm"
+  echo "int some_variable = 0;" > conftest.$ac_ext
+  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
+  (eval "$ac_compile" 2>conftest.err)
+  cat conftest.err >&5
+  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
+  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
+  cat conftest.err >&5
+  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
+  cat conftest.out >&5
+  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
+    lt_cv_nm_interface="MS dumpbin"
+  fi
+  rm -f conftest*
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
+$as_echo "$lt_cv_nm_interface" >&6; }
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
+$as_echo_n "checking whether ln -s works... " >&6; }
+LN_S=$as_ln_s
+if test "$LN_S" = "ln -s"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
+$as_echo "no, using $LN_S" >&6; }
+fi
+
+# find the maximum length of command line arguments
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
+$as_echo_n "checking the maximum length of command line arguments... " >&6; }
+if ${lt_cv_sys_max_cmd_len+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+    i=0
+  teststring=ABCD
+
+  case $build_os in
+  msdosdjgpp*)
+    # On DJGPP, this test can blow up pretty badly due to problems in libc
+    # (any single argument exceeding 2000 bytes causes a buffer overrun
+    # during glob expansion).  Even if it were fixed, the result of this
+    # check would be larger than it should be.
+    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
+    ;;
+
+  gnu*)
+    # Under GNU Hurd, this test is not required because there is
+    # no limit to the length of command line arguments.
+    # Libtool will interpret -1 as no limit whatsoever
+    lt_cv_sys_max_cmd_len=-1;
+    ;;
+
+  cygwin* | mingw* | cegcc*)
+    # On Win9x/ME, this test blows up -- it succeeds, but takes
+    # about 5 minutes as the teststring grows exponentially.
+    # Worse, since 9x/ME are not pre-emptively multitasking,
+    # you end up with a "frozen" computer, even though with patience
+    # the test eventually succeeds (with a max line length of 256k).
+    # Instead, let's just punt: use the minimum linelength reported by
+    # all of the supported platforms: 8192 (on NT/2K/XP).
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
+  mint*)
+    # On MiNT this can take a long time and run out of memory.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
+  amigaos*)
+    # On AmigaOS with pdksh, this test takes hours, literally.
+    # So we just punt and use a minimum line length of 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
+  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
+    # This has been around since 386BSD, at least.  Likely further.
+    if test -x /sbin/sysctl; then
+      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+    elif test -x /usr/sbin/sysctl; then
+      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+    else
+      lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
+    fi
+    # And add a safety zone
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+    ;;
+
+  interix*)
+    # We know the value 262144 and hardcode it with a safety zone (like BSD)
+    lt_cv_sys_max_cmd_len=196608
+    ;;
+
+  os2*)
+    # The test takes a long time on OS/2.
+    lt_cv_sys_max_cmd_len=8192
+    ;;
+
+  osf*)
+    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
+    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
+    # nice to cause kernel panics so lets avoid the loop below.
+    # First set a reasonable default.
+    lt_cv_sys_max_cmd_len=16384
+    #
+    if test -x /sbin/sysconfig; then
+      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
+        *1*) lt_cv_sys_max_cmd_len=-1 ;;
+      esac
+    fi
+    ;;
+  sco3.2v5*)
+    lt_cv_sys_max_cmd_len=102400
+    ;;
+  sysv5* | sco5v6* | sysv4.2uw2*)
+    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
+    if test -n "$kargmax"; then
+      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
+    else
+      lt_cv_sys_max_cmd_len=32768
+    fi
+    ;;
+  *)
+    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
+    if test -n "$lt_cv_sys_max_cmd_len" && \
+       test undefined != "$lt_cv_sys_max_cmd_len"; then
+      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+    else
+      # Make teststring a little bigger before we do anything with it.
+      # a 1K string should be a reasonable start.
+      for i in 1 2 3 4 5 6 7 8; do
+        teststring=$teststring$teststring
+      done
+      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+      # If test is not a shell built-in, we'll probably end up computing a
+      # maximum length that is only half of the actual maximum length, but
+      # we can't tell.
+      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
+                = "X$teststring$teststring"; } >/dev/null 2>&1 &&
+             test 17 != "$i" # 1/2 MB should be enough
+      do
+        i=`expr $i + 1`
+        teststring=$teststring$teststring
+      done
+      # Only check the string length outside the loop.
+      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
+      teststring=
+      # Add a significant safety factor because C++ compilers can tack on
+      # massive amounts of additional arguments before passing them to the
+      # linker.  It appears as though 1/2 is a usable value.
+      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
+    fi
+    ;;
+  esac
+
+fi
+
+if test -n "$lt_cv_sys_max_cmd_len"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
+$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
+$as_echo "none" >&6; }
+fi
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+
+
+
+
+
+: ${CP="cp -f"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+  lt_unset=unset
+else
+  lt_unset=false
+fi
+
+
+
+
+
+# test EBCDIC or ASCII
+case `echo X|tr X '\101'` in
+ A) # ASCII based system
+    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
+  lt_SP2NL='tr \040 \012'
+  lt_NL2SP='tr \015\012 \040\040'
+  ;;
+ *) # EBCDIC based system
+  lt_SP2NL='tr \100 \n'
+  lt_NL2SP='tr \r\n \100\100'
+  ;;
+esac
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
+$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
+if ${lt_cv_to_host_file_cmd+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  case $host in
+  *-*-mingw* )
+    case $build in
+      *-*-mingw* ) # actually msys
+        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
+        ;;
+      *-*-cygwin* )
+        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
+        ;;
+      * ) # otherwise, assume *nix
+        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
+        ;;
+    esac
+    ;;
+  *-*-cygwin* )
+    case $build in
+      *-*-mingw* ) # actually msys
+        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
+        ;;
+      *-*-cygwin* )
+        lt_cv_to_host_file_cmd=func_convert_file_noop
+        ;;
+      * ) # otherwise, assume *nix
+        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
+        ;;
+    esac
+    ;;
+  * ) # unhandled hosts (and "normal" native builds)
+    lt_cv_to_host_file_cmd=func_convert_file_noop
+    ;;
+esac
+
+fi
+
+to_host_file_cmd=$lt_cv_to_host_file_cmd
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
+$as_echo "$lt_cv_to_host_file_cmd" >&6; }
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
+$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
+if ${lt_cv_to_tool_file_cmd+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  #assume ordinary cross tools, or native build.
+lt_cv_to_tool_file_cmd=func_convert_file_noop
+case $host in
+  *-*-mingw* )
+    case $build in
+      *-*-mingw* ) # actually msys
+        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
+        ;;
+    esac
+    ;;
+esac
+
+fi
+
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
+$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
+$as_echo_n "checking for $LD option to reload object files... " >&6; }
+if ${lt_cv_ld_reload_flag+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_ld_reload_flag='-r'
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
+$as_echo "$lt_cv_ld_reload_flag" >&6; }
+reload_flag=$lt_cv_ld_reload_flag
+case $reload_flag in
+"" | " "*) ;;
+*) reload_flag=" $reload_flag" ;;
+esac
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+case $host_os in
+  cygwin* | mingw* | pw32* | cegcc*)
+    if test yes != "$GCC"; then
+      reload_cmds=false
+    fi
+    ;;
+  darwin*)
+    if test yes = "$GCC"; then
+      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
+    else
+      reload_cmds='$LD$reload_flag -o $output$reload_objs'
+    fi
+    ;;
+esac
+
+
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
+set dummy ${ac_tool_prefix}objdump; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_OBJDUMP+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$OBJDUMP"; then
+  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+OBJDUMP=$ac_cv_prog_OBJDUMP
+if test -n "$OBJDUMP"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
+$as_echo "$OBJDUMP" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OBJDUMP"; then
+  ac_ct_OBJDUMP=$OBJDUMP
+  # Extract the first word of "objdump", so it can be a program name with args.
+set dummy objdump; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_OBJDUMP"; then
+  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_OBJDUMP="objdump"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
+if test -n "$ac_ct_OBJDUMP"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
+$as_echo "$ac_ct_OBJDUMP" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_OBJDUMP" = x; then
+    OBJDUMP="false"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    OBJDUMP=$ac_ct_OBJDUMP
+  fi
+else
+  OBJDUMP="$ac_cv_prog_OBJDUMP"
+fi
+
+test -z "$OBJDUMP" && OBJDUMP=objdump
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
+$as_echo_n "checking how to recognize dependent libraries... " >&6; }
+if ${lt_cv_deplibs_check_method+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# 'unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# that responds to the $file_magic_cmd with a given extended regex.
+# If you have 'file' or equivalent on your system and you're not sure
+# whether 'pass_all' will *always* work, you probably want this one.
+
+case $host_os in
+aix[4-9]*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+beos*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+bsdi[45]*)
+  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
+  lt_cv_file_magic_cmd='/usr/bin/file -L'
+  lt_cv_file_magic_test_file=/shlib/libc.so
+  ;;
+
+cygwin*)
+  # func_win32_libid is a shell function defined in ltmain.sh
+  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+  lt_cv_file_magic_cmd='func_win32_libid'
+  ;;
+
+mingw* | pw32*)
+  # Base MSYS/MinGW do not provide the 'file' command needed by
+  # func_win32_libid shell function, so use a weaker test based on 'objdump',
+  # unless we find 'file', for example because we are cross-compiling.
+  if ( file / ) >/dev/null 2>&1; then
+    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+    lt_cv_file_magic_cmd='func_win32_libid'
+  else
+    # Keep this pattern in sync with the one in func_win32_libid.
+    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
+    lt_cv_file_magic_cmd='$OBJDUMP -f'
+  fi
+  ;;
+
+cegcc*)
+  # use the weaker test based on 'objdump'. See mingw*.
+  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
+  lt_cv_file_magic_cmd='$OBJDUMP -f'
+  ;;
+
+darwin* | rhapsody*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+freebsd* | dragonfly*)
+  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+    case $host_cpu in
+    i*86 )
+      # Not sure whether the presence of OpenBSD here was a mistake.
+      # Let's accept both of them until this is cleared up.
+      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
+      lt_cv_file_magic_cmd=/usr/bin/file
+      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+      ;;
+    esac
+  else
+    lt_cv_deplibs_check_method=pass_all
+  fi
+  ;;
+
+haiku*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+hpux10.20* | hpux11*)
+  lt_cv_file_magic_cmd=/usr/bin/file
+  case $host_cpu in
+  ia64*)
+    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
+    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
+    ;;
+  hppa*64*)
+    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
+    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+    ;;
+  *)
+    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
+    lt_cv_file_magic_test_file=/usr/lib/libc.sl
+    ;;
+  esac
+  ;;
+
+interix[3-9]*)
+  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
+  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $LD in
+  *-32|*"-32 ") libmagic=32-bit;;
+  *-n32|*"-n32 ") libmagic=N32;;
+  *-64|*"-64 ") libmagic=64-bit;;
+  *) libmagic=never-match;;
+  esac
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+# This must be glibc/ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+netbsd*)
+  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+  else
+    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
+  fi
+  ;;
+
+newos6*)
+  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
+  lt_cv_file_magic_cmd=/usr/bin/file
+  lt_cv_file_magic_test_file=/usr/lib/libnls.so
+  ;;
+
+*nto* | *qnx*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+openbsd* | bitrig*)
+  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
+    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
+  else
+    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+  fi
+  ;;
+
+osf3* | osf4* | osf5*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+rdos*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+solaris*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+sysv4 | sysv4.3*)
+  case $host_vendor in
+  motorola)
+    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
+    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+    ;;
+  ncr)
+    lt_cv_deplibs_check_method=pass_all
+    ;;
+  sequent)
+    lt_cv_file_magic_cmd='/bin/file'
+    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
+    ;;
+  sni)
+    lt_cv_file_magic_cmd='/bin/file'
+    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
+    lt_cv_file_magic_test_file=/lib/libc.so
+    ;;
+  siemens)
+    lt_cv_deplibs_check_method=pass_all
+    ;;
+  pc)
+    lt_cv_deplibs_check_method=pass_all
+    ;;
+  esac
+  ;;
+
+tpf*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+esac
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
+$as_echo "$lt_cv_deplibs_check_method" >&6; }
+
+file_magic_glob=
+want_nocaseglob=no
+if test "$build" = "$host"; then
+  case $host_os in
+  mingw* | pw32*)
+    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
+      want_nocaseglob=yes
+    else
+      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
+    fi
+    ;;
+  esac
+fi
+
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
+set dummy ${ac_tool_prefix}dlltool; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_DLLTOOL+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$DLLTOOL"; then
+  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+DLLTOOL=$ac_cv_prog_DLLTOOL
+if test -n "$DLLTOOL"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
+$as_echo "$DLLTOOL" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_DLLTOOL"; then
+  ac_ct_DLLTOOL=$DLLTOOL
+  # Extract the first word of "dlltool", so it can be a program name with args.
+set dummy dlltool; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_DLLTOOL"; then
+  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
+if test -n "$ac_ct_DLLTOOL"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
+$as_echo "$ac_ct_DLLTOOL" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_DLLTOOL" = x; then
+    DLLTOOL="false"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    DLLTOOL=$ac_ct_DLLTOOL
+  fi
+else
+  DLLTOOL="$ac_cv_prog_DLLTOOL"
+fi
+
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
+$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
+if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_sharedlib_from_linklib_cmd='unknown'
+
+case $host_os in
+cygwin* | mingw* | pw32* | cegcc*)
+  # two different shell functions defined in ltmain.sh;
+  # decide which one to use based on capabilities of $DLLTOOL
+  case `$DLLTOOL --help 2>&1` in
+  *--identify-strict*)
+    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
+    ;;
+  *)
+    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
+    ;;
+  esac
+  ;;
+*)
+  # fallback: assume linklib IS sharedlib
+  lt_cv_sharedlib_from_linklib_cmd=$ECHO
+  ;;
+esac
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
+$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+  for ac_prog in ar
+  do
+    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_AR+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$AR"; then
+  ac_cv_prog_AR="$AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+AR=$ac_cv_prog_AR
+if test -n "$AR"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
+$as_echo "$AR" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+    test -n "$AR" && break
+  done
+fi
+if test -z "$AR"; then
+  ac_ct_AR=$AR
+  for ac_prog in ar
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_AR+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_AR"; then
+  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_AR="$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_AR=$ac_cv_prog_ac_ct_AR
+if test -n "$ac_ct_AR"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
+$as_echo "$ac_ct_AR" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  test -n "$ac_ct_AR" && break
+done
+
+  if test "x$ac_ct_AR" = x; then
+    AR="false"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    AR=$ac_ct_AR
+  fi
+fi
+
+: ${AR=ar}
+: ${AR_FLAGS=cru}
+
+
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
+$as_echo_n "checking for archiver @FILE support... " >&6; }
+if ${lt_cv_ar_at_file+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_ar_at_file=no
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  echo conftest.$ac_objext > conftest.lst
+      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
+      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
+  (eval $lt_ar_try) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }
+      if test 0 -eq "$ac_status"; then
+       # Ensure the archiver fails upon bogus file names.
+       rm -f conftest.$ac_objext libconftest.a
+       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
+  (eval $lt_ar_try) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }
+       if test 0 -ne "$ac_status"; then
+          lt_cv_ar_at_file=@
+        fi
+      fi
+      rm -f conftest.* libconftest.a
+
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
+$as_echo "$lt_cv_ar_at_file" >&6; }
+
+if test no = "$lt_cv_ar_at_file"; then
+  archiver_list_spec=
+else
+  archiver_list_spec=$lt_cv_ar_at_file
+fi
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_STRIP+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$STRIP"; then
+  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n "$STRIP"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
+$as_echo "$STRIP" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_STRIP"; then
+  ac_ct_STRIP=$STRIP
+  # Extract the first word of "strip", so it can be a program name with args.
+set dummy strip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_STRIP"; then
+  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_STRIP="strip"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n "$ac_ct_STRIP"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
+$as_echo "$ac_ct_STRIP" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_STRIP" = x; then
+    STRIP=":"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    STRIP=$ac_ct_STRIP
+  fi
+else
+  STRIP="$ac_cv_prog_STRIP"
+fi
+
+test -z "$STRIP" && STRIP=:
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_RANLIB+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$RANLIB"; then
+  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+RANLIB=$ac_cv_prog_RANLIB
+if test -n "$RANLIB"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
+$as_echo "$RANLIB" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_RANLIB"; then
+  ac_ct_RANLIB=$RANLIB
+  # Extract the first word of "ranlib", so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_RANLIB"; then
+  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_RANLIB="ranlib"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+if test -n "$ac_ct_RANLIB"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
+$as_echo "$ac_ct_RANLIB" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_RANLIB" = x; then
+    RANLIB=":"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    RANLIB=$ac_ct_RANLIB
+  fi
+else
+  RANLIB="$ac_cv_prog_RANLIB"
+fi
+
+test -z "$RANLIB" && RANLIB=:
+
+
+
+
+
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+  case $host_os in
+  bitrig* | openbsd*)
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
+    ;;
+  *)
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
+    ;;
+  esac
+  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
+fi
+
+case $host_os in
+  darwin*)
+    lock_old_archive_extraction=yes ;;
+  *)
+    lock_old_archive_extraction=no ;;
+esac
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
+$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
+if ${lt_cv_sys_global_symbol_pipe+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[BCDEGRST]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+  symcode='[BCDT]'
+  ;;
+cygwin* | mingw* | pw32* | cegcc*)
+  symcode='[ABCDGISTW]'
+  ;;
+hpux*)
+  if test ia64 = "$host_cpu"; then
+    symcode='[ABCDEGRST]'
+  fi
+  ;;
+irix* | nonstopux*)
+  symcode='[BCDEGRST]'
+  ;;
+osf*)
+  symcode='[BCDEGQRST]'
+  ;;
+solaris*)
+  symcode='[BDRT]'
+  ;;
+sco3.2v5*)
+  symcode='[DT]'
+  ;;
+sysv4.2uw2*)
+  symcode='[DT]'
+  ;;
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
+  symcode='[ABDT]'
+  ;;
+sysv4)
+  symcode='[DFNSTU]'
+  ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+case `$NM -V 2>&1` in
+*GNU* | *'with BFD'*)
+  symcode='[ABCDGIRSTW]' ;;
+esac
+
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+  # Gets list of data symbols to import.
+  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
+  # Adjust the below global symbol transforms to fixup imported variables.
+  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
+  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
+  lt_c_name_lib_hook="\
+  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
+  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
+else
+  # Disable hooks by default.
+  lt_cv_sys_global_symbol_to_import=
+  lt_cdecl_hook=
+  lt_c_name_hook=
+  lt_c_name_lib_hook=
+fi
+
+# Transform an extracted symbol line into a proper C declaration.
+# Some systems (esp. on ia64) link data and code symbols differently,
+# so use this general approach.
+lt_cv_sys_global_symbol_to_cdecl="sed -n"\
+$lt_cdecl_hook\
+" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
+" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
+$lt_c_name_hook\
+" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
+" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
+
+# Transform an extracted symbol line into symbol name with lib prefix and
+# symbol address.
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
+$lt_c_name_lib_hook\
+" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
+" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
+" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
+
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $build_os in
+mingw*)
+  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+  ;;
+esac
+
+# Try without a prefix underscore, then with it.
+for ac_symprfx in "" "_"; do
+
+  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
+  symxfrm="\\1 $ac_symprfx\\2 \\2"
+
+  # Write the raw and C identifiers.
+  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+    # Fake it for dumpbin and say T for any non-static function,
+    # D for any global variable and I for any imported variable.
+    # Also find C++ and __fastcall symbols from MSVC++,
+    # which start with @ or ?.
+    lt_cv_sys_global_symbol_pipe="$AWK '"\
+"     {last_section=section; section=\$ 3};"\
+"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
+"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
+"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
+"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
+"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
+"     \$ 0!~/External *\|/{next};"\
+"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
+"     {if(hide[section]) next};"\
+"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
+"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
+"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
+"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
+"     ' prfx=^$ac_symprfx"
+  else
+    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[     ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
+  fi
+  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
+
+  # Check to see that the pipe works correctly.
+  pipe_works=no
+
+  rm -f conftest*
+  cat > conftest.$ac_ext <<_LT_EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(void);
+void nm_test_func(void){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+_LT_EOF
+
+  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+    # Now try to grab the symbols.
+    nlist=conftest.nm
+    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
+  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } && test -s "$nlist"; then
+      # Try sorting and uniquifying the output.
+      if sort "$nlist" | uniq > "$nlist"T; then
+       mv -f "$nlist"T "$nlist"
+      else
+       rm -f "$nlist"T
+      fi
+
+      # Make sure that we snagged all the symbols we need.
+      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
+       if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
+         cat <<_LT_EOF > conftest.$ac_ext
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
+#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
+/* DATA imports from DLLs on WIN32 can't be const, because runtime
+   relocations are performed -- see ld's documentation on pseudo-relocs.  */
+# define LT_DLSYM_CONST
+#elif defined __osf__
+/* This system does not cope well with relocations in const data.  */
+# define LT_DLSYM_CONST
+#else
+# define LT_DLSYM_CONST const
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+_LT_EOF
+         # Now generate the symbol file.
+         eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
+
+         cat <<_LT_EOF >> conftest.$ac_ext
+
+/* The mapping between symbol names and symbols.  */
+LT_DLSYM_CONST struct {
+  const char *name;
+  void       *address;
+}
+lt__PROGRAM__LTX_preloaded_symbols[] =
+{
+  { "@PROGRAM@", (void *) 0 },
+_LT_EOF
+         $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
+         cat <<\_LT_EOF >> conftest.$ac_ext
+  {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+  return lt__PROGRAM__LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+_LT_EOF
+         # Now try linking the two files.
+         mv conftest.$ac_objext conftstm.$ac_objext
+         lt_globsym_save_LIBS=$LIBS
+         lt_globsym_save_CFLAGS=$CFLAGS
+         LIBS=conftstm.$ac_objext
+         CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
+         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } && test -s conftest$ac_exeext; then
+           pipe_works=yes
+         fi
+         LIBS=$lt_globsym_save_LIBS
+         CFLAGS=$lt_globsym_save_CFLAGS
+       else
+         echo "cannot find nm_test_func in $nlist" >&5
+       fi
+      else
+       echo "cannot find nm_test_var in $nlist" >&5
+      fi
+    else
+      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
+    fi
+  else
+    echo "$progname: failed program was:" >&5
+    cat conftest.$ac_ext >&5
+  fi
+  rm -rf conftest* conftst*
+
+  # Do not use the global_symbol_pipe unless it works.
+  if test yes = "$pipe_works"; then
+    break
+  else
+    lt_cv_sys_global_symbol_pipe=
+  fi
+done
+
+fi
+
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
+  lt_cv_sys_global_symbol_to_cdecl=
+fi
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
+$as_echo "failed" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
+$as_echo "ok" >&6; }
+fi
+
+# Response file support.
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+  nm_file_list_spec='@'
+elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
+  nm_file_list_spec='@'
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
+$as_echo_n "checking for sysroot... " >&6; }
+
+# Check whether --with-sysroot was given.
+if test "${with_sysroot+set}" = set; then :
+  withval=$with_sysroot;
+else
+  with_sysroot=no
+fi
+
+
+lt_sysroot=
+case $with_sysroot in #(
+ yes)
+   if test yes = "$GCC"; then
+     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
+   fi
+   ;; #(
+ /*)
+   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
+   ;; #(
+ no|'')
+   ;; #(
+ *)
+   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
+$as_echo "$with_sysroot" >&6; }
+   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
+   ;;
+esac
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
+$as_echo "${lt_sysroot:-no}" >&6; }
+
+
+
+
+
+# Check whether --enable-libtool-lock was given.
+if test "${enable_libtool_lock+set}" = set; then :
+  enableval=$enable_libtool_lock;
+fi
+
+test no = "$enable_libtool_lock" || enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+ia64-*-hpux*)
+  # Find out what ABI is being produced by ac_compile, and set mode
+  # options accordingly.
+  echo 'int i;' > conftest.$ac_ext
+  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+    case `/usr/bin/file conftest.$ac_objext` in
+      *ELF-32*)
+       HPUX_IA64_MODE=32
+       ;;
+      *ELF-64*)
+       HPUX_IA64_MODE=64
+       ;;
+    esac
+  fi
+  rm -rf conftest*
+  ;;
+*-*-irix6*)
+  # Find out what ABI is being produced by ac_compile, and set linker
+  # options accordingly.
+  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
+  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+    if test yes = "$lt_cv_prog_gnu_ld"; then
+      case `/usr/bin/file conftest.$ac_objext` in
+       *32-bit*)
+         LD="${LD-ld} -melf32bsmip"
+         ;;
+       *N32*)
+         LD="${LD-ld} -melf32bmipn32"
+         ;;
+       *64-bit*)
+         LD="${LD-ld} -melf64bmip"
+       ;;
+      esac
+    else
+      case `/usr/bin/file conftest.$ac_objext` in
+       *32-bit*)
+         LD="${LD-ld} -32"
+         ;;
+       *N32*)
+         LD="${LD-ld} -n32"
+         ;;
+       *64-bit*)
+         LD="${LD-ld} -64"
+         ;;
+      esac
+    fi
+  fi
+  rm -rf conftest*
+  ;;
+
+mips64*-*linux*)
+  # Find out what ABI is being produced by ac_compile, and set linker
+  # options accordingly.
+  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
+  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+    emul=elf
+    case `/usr/bin/file conftest.$ac_objext` in
+      *32-bit*)
+       emul="${emul}32"
+       ;;
+      *64-bit*)
+       emul="${emul}64"
+       ;;
+    esac
+    case `/usr/bin/file conftest.$ac_objext` in
+      *MSB*)
+       emul="${emul}btsmip"
+       ;;
+      *LSB*)
+       emul="${emul}ltsmip"
+       ;;
+    esac
+    case `/usr/bin/file conftest.$ac_objext` in
+      *N32*)
+       emul="${emul}n32"
+       ;;
+    esac
+    LD="${LD-ld} -m $emul"
+  fi
+  rm -rf conftest*
+  ;;
+
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
+s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+  # Find out what ABI is being produced by ac_compile, and set linker
+  # options accordingly.  Note that the listed cases only cover the
+  # situations where additional linker options are needed (such as when
+  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
+  # vice versa); the common cases where no linker options are needed do
+  # not appear in the list.
+  echo 'int i;' > conftest.$ac_ext
+  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+    case `/usr/bin/file conftest.o` in
+      *32-bit*)
+       case $host in
+         x86_64-*kfreebsd*-gnu)
+           LD="${LD-ld} -m elf_i386_fbsd"
+           ;;
+         x86_64-*linux*)
+           case `/usr/bin/file conftest.o` in
+             *x86-64*)
+               LD="${LD-ld} -m elf32_x86_64"
+               ;;
+             *)
+               LD="${LD-ld} -m elf_i386"
+               ;;
+           esac
+           ;;
+         powerpc64le-*linux*)
+           LD="${LD-ld} -m elf32lppclinux"
+           ;;
+         powerpc64-*linux*)
+           LD="${LD-ld} -m elf32ppclinux"
+           ;;
+         s390x-*linux*)
+           LD="${LD-ld} -m elf_s390"
+           ;;
+         sparc64-*linux*)
+           LD="${LD-ld} -m elf32_sparc"
+           ;;
+       esac
+       ;;
+      *64-bit*)
+       case $host in
+         x86_64-*kfreebsd*-gnu)
+           LD="${LD-ld} -m elf_x86_64_fbsd"
+           ;;
+         x86_64-*linux*)
+           LD="${LD-ld} -m elf_x86_64"
+           ;;
+         powerpcle-*linux*)
+           LD="${LD-ld} -m elf64lppc"
+           ;;
+         powerpc-*linux*)
+           LD="${LD-ld} -m elf64ppc"
+           ;;
+         s390*-*linux*|s390*-*tpf*)
+           LD="${LD-ld} -m elf64_s390"
+           ;;
+         sparc*-*linux*)
+           LD="${LD-ld} -m elf64_sparc"
+           ;;
+       esac
+       ;;
+    esac
+  fi
+  rm -rf conftest*
+  ;;
+
+*-*-sco3.2v5*)
+  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+  SAVE_CFLAGS=$CFLAGS
+  CFLAGS="$CFLAGS -belf"
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
+$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
+if ${lt_cv_cc_needs_belf+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  lt_cv_cc_needs_belf=yes
+else
+  lt_cv_cc_needs_belf=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+     ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
+$as_echo "$lt_cv_cc_needs_belf" >&6; }
+  if test yes != "$lt_cv_cc_needs_belf"; then
+    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+    CFLAGS=$SAVE_CFLAGS
+  fi
+  ;;
+*-*solaris*)
+  # Find out what ABI is being produced by ac_compile, and set linker
+  # options accordingly.
+  echo 'int i;' > conftest.$ac_ext
+  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+    case `/usr/bin/file conftest.o` in
+    *64-bit*)
+      case $lt_cv_prog_gnu_ld in
+      yes*)
+        case $host in
+        i?86-*-solaris*|x86_64-*-solaris*)
+          LD="${LD-ld} -m elf_x86_64"
+          ;;
+        sparc*-*-solaris*)
+          LD="${LD-ld} -m elf64_sparc"
+          ;;
+        esac
+        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
+        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
+          LD=${LD-ld}_sol2
+        fi
+        ;;
+      *)
+       if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
+         LD="${LD-ld} -64"
+       fi
+       ;;
+      esac
+      ;;
+    esac
+  fi
+  rm -rf conftest*
+  ;;
+esac
+
+need_locks=$enable_libtool_lock
+
+if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
+set dummy ${ac_tool_prefix}mt; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$MANIFEST_TOOL"; then
+  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
+if test -n "$MANIFEST_TOOL"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
+$as_echo "$MANIFEST_TOOL" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
+  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
+  # Extract the first word of "mt", so it can be a program name with args.
+set dummy mt; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_MANIFEST_TOOL"; then
+  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
+if test -n "$ac_ct_MANIFEST_TOOL"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
+$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_MANIFEST_TOOL" = x; then
+    MANIFEST_TOOL=":"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
+  fi
+else
+  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
+fi
+
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
+$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
+if ${lt_cv_path_mainfest_tool+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_path_mainfest_tool=no
+  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
+  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
+  cat conftest.err >&5
+  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
+    lt_cv_path_mainfest_tool=yes
+  fi
+  rm -f conftest*
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
+$as_echo "$lt_cv_path_mainfest_tool" >&6; }
+if test yes != "$lt_cv_path_mainfest_tool"; then
+  MANIFEST_TOOL=:
+fi
+
+
+
+
+
+
+  case $host_os in
+    rhapsody* | darwin*)
+    if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
+set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_DSYMUTIL+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$DSYMUTIL"; then
+  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+DSYMUTIL=$ac_cv_prog_DSYMUTIL
+if test -n "$DSYMUTIL"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
+$as_echo "$DSYMUTIL" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_DSYMUTIL"; then
+  ac_ct_DSYMUTIL=$DSYMUTIL
+  # Extract the first word of "dsymutil", so it can be a program name with args.
+set dummy dsymutil; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_DSYMUTIL"; then
+  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
+if test -n "$ac_ct_DSYMUTIL"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
+$as_echo "$ac_ct_DSYMUTIL" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_DSYMUTIL" = x; then
+    DSYMUTIL=":"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    DSYMUTIL=$ac_ct_DSYMUTIL
+  fi
+else
+  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
+fi
+
+    if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
+set dummy ${ac_tool_prefix}nmedit; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_NMEDIT+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$NMEDIT"; then
+  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+NMEDIT=$ac_cv_prog_NMEDIT
+if test -n "$NMEDIT"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
+$as_echo "$NMEDIT" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_NMEDIT"; then
+  ac_ct_NMEDIT=$NMEDIT
+  # Extract the first word of "nmedit", so it can be a program name with args.
+set dummy nmedit; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_NMEDIT"; then
+  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_NMEDIT="nmedit"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
+if test -n "$ac_ct_NMEDIT"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
+$as_echo "$ac_ct_NMEDIT" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_NMEDIT" = x; then
+    NMEDIT=":"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    NMEDIT=$ac_ct_NMEDIT
+  fi
+else
+  NMEDIT="$ac_cv_prog_NMEDIT"
+fi
+
+    if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
+set dummy ${ac_tool_prefix}lipo; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_LIPO+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$LIPO"; then
+  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+LIPO=$ac_cv_prog_LIPO
+if test -n "$LIPO"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
+$as_echo "$LIPO" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_LIPO"; then
+  ac_ct_LIPO=$LIPO
+  # Extract the first word of "lipo", so it can be a program name with args.
+set dummy lipo; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_LIPO"; then
+  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_LIPO="lipo"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
+if test -n "$ac_ct_LIPO"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
+$as_echo "$ac_ct_LIPO" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_LIPO" = x; then
+    LIPO=":"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    LIPO=$ac_ct_LIPO
+  fi
+else
+  LIPO="$ac_cv_prog_LIPO"
+fi
+
+    if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
+set dummy ${ac_tool_prefix}otool; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_OTOOL+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$OTOOL"; then
+  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+OTOOL=$ac_cv_prog_OTOOL
+if test -n "$OTOOL"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
+$as_echo "$OTOOL" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OTOOL"; then
+  ac_ct_OTOOL=$OTOOL
+  # Extract the first word of "otool", so it can be a program name with args.
+set dummy otool; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_OTOOL"; then
+  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_OTOOL="otool"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
+if test -n "$ac_ct_OTOOL"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
+$as_echo "$ac_ct_OTOOL" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_OTOOL" = x; then
+    OTOOL=":"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    OTOOL=$ac_ct_OTOOL
+  fi
+else
+  OTOOL="$ac_cv_prog_OTOOL"
+fi
+
+    if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
+set dummy ${ac_tool_prefix}otool64; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_OTOOL64+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$OTOOL64"; then
+  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+OTOOL64=$ac_cv_prog_OTOOL64
+if test -n "$OTOOL64"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
+$as_echo "$OTOOL64" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OTOOL64"; then
+  ac_ct_OTOOL64=$OTOOL64
+  # Extract the first word of "otool64", so it can be a program name with args.
+set dummy otool64; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_OTOOL64"; then
+  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_OTOOL64="otool64"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
+if test -n "$ac_ct_OTOOL64"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
+$as_echo "$ac_ct_OTOOL64" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_OTOOL64" = x; then
+    OTOOL64=":"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    OTOOL64=$ac_ct_OTOOL64
+  fi
+else
+  OTOOL64="$ac_cv_prog_OTOOL64"
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
+$as_echo_n "checking for -single_module linker flag... " >&6; }
+if ${lt_cv_apple_cc_single_mod+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_apple_cc_single_mod=no
+      if test -z "$LT_MULTI_MODULE"; then
+       # By default we will add the -single_module flag. You can override
+       # by either setting the environment variable LT_MULTI_MODULE
+       # non-empty at configure time, or by adding -multi_module to the
+       # link flags.
+       rm -rf libconftest.dylib*
+       echo "int foo(void){return 1;}" > conftest.c
+       echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+-dynamiclib -Wl,-single_module conftest.c" >&5
+       $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+         -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
+        _lt_result=$?
+       # If there is a non-empty error log, and "single_module"
+       # appears in it, assume the flag caused a linker warning
+        if test -s conftest.err && $GREP single_module conftest.err; then
+         cat conftest.err >&5
+       # Otherwise, if the output was created with a 0 exit code from
+       # the compiler, it worked.
+       elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
+         lt_cv_apple_cc_single_mod=yes
+       else
+         cat conftest.err >&5
+       fi
+       rm -rf libconftest.dylib*
+       rm -f conftest.*
+      fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
+$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
+$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
+if ${lt_cv_ld_exported_symbols_list+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_ld_exported_symbols_list=no
+      save_LDFLAGS=$LDFLAGS
+      echo "_main" > conftest.sym
+      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
+      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  lt_cv_ld_exported_symbols_list=yes
+else
+  lt_cv_ld_exported_symbols_list=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+       LDFLAGS=$save_LDFLAGS
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
+$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
+$as_echo_n "checking for -force_load linker flag... " >&6; }
+if ${lt_cv_ld_force_load+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_ld_force_load=no
+      cat > conftest.c << _LT_EOF
+int forced_loaded() { return 2;}
+_LT_EOF
+      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
+      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
+      echo "$AR cru libconftest.a conftest.o" >&5
+      $AR cru libconftest.a conftest.o 2>&5
+      echo "$RANLIB libconftest.a" >&5
+      $RANLIB libconftest.a 2>&5
+      cat > conftest.c << _LT_EOF
+int main() { return 0;}
+_LT_EOF
+      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
+      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
+      _lt_result=$?
+      if test -s conftest.err && $GREP force_load conftest.err; then
+       cat conftest.err >&5
+      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
+       lt_cv_ld_force_load=yes
+      else
+       cat conftest.err >&5
+      fi
+        rm -f conftest.err libconftest.a conftest conftest.c
+        rm -rf conftest.dSYM
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
+$as_echo "$lt_cv_ld_force_load" >&6; }
+    case $host_os in
+    rhapsody* | darwin1.[012])
+      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
+    darwin1.*)
+      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
+    darwin*) # darwin 5.x on
+      # if running on 10.5 or later, the deployment target defaults
+      # to the OS version, if on x86, and 10.4, the deployment
+      # target defaults to 10.4. Don't you love it?
+      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
+       10.0,*86*-darwin8*|10.0,*-darwin[91]*)
+         _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
+       10.[012]*)
+         _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
+       10.*)
+         _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
+      esac
+    ;;
+  esac
+    if test yes = "$lt_cv_apple_cc_single_mod"; then
+      _lt_dar_single_mod='$single_module'
+    fi
+    if test yes = "$lt_cv_ld_exported_symbols_list"; then
+      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
+    else
+      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
+    fi
+    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
+      _lt_dsymutil='~$DSYMUTIL $lib || :'
+    else
+      _lt_dsymutil=
+    fi
+    ;;
+  esac
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
+$as_echo_n "checking how to run the C preprocessor... " >&6; }
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+  CPP=
+fi
+if test -z "$CPP"; then
+  if ${ac_cv_prog_CPP+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+      # Double quotes because CPP needs to be expanded
+    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
+    do
+      ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+  # <limits.h> exists even on freestanding compilers.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. "Syntax error" is here to catch this case.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+                    Syntax error
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+
+else
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether nonexistent headers
+  # can be detected and how.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+  # Broken: success on invalid input.
+continue
+else
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+  break
+fi
+
+    done
+    ac_cv_prog_CPP=$CPP
+
+fi
+  CPP=$ac_cv_prog_CPP
+else
+  ac_cv_prog_CPP=$CPP
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
+$as_echo "$CPP" >&6; }
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+  # <limits.h> exists even on freestanding compilers.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. "Syntax error" is here to catch this case.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+                    Syntax error
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+
+else
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether nonexistent headers
+  # can be detected and how.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+  # Broken: success on invalid input.
+continue
+else
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+
+else
+  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
+$as_echo_n "checking for ANSI C header files... " >&6; }
+if ${ac_cv_header_stdc+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_cv_header_stdc=yes
+else
+  ac_cv_header_stdc=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+if test $ac_cv_header_stdc = yes; then
+  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <string.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  $EGREP "memchr" >/dev/null 2>&1; then :
+
+else
+  ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <stdlib.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+  $EGREP "free" >/dev/null 2>&1; then :
+
+else
+  ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+  if test "$cross_compiling" = yes; then :
+  :
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <ctype.h>
+#include <stdlib.h>
+#if ((' ' & 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) \
+                  (('a' <= (c) && (c) <= 'i') \
+                    || ('j' <= (c) && (c) <= 'r') \
+                    || ('s' <= (c) && (c) <= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
+
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int
+main ()
+{
+  int i;
+  for (i = 0; i < 256; i++)
+    if (XOR (islower (i), ISLOWER (i))
+       || toupper (i) != TOUPPER (i))
+      return 2;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+
+else
+  ac_cv_header_stdc=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+  conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
+$as_echo "$ac_cv_header_stdc" >&6; }
+if test $ac_cv_header_stdc = yes; then
+
+$as_echo "#define STDC_HEADERS 1" >>confdefs.h
+
+fi
+
+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+                 inttypes.h stdint.h unistd.h
+do :
+  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
+"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+  cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+for ac_header in dlfcn.h
+do :
+  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
+"
+if test "x$ac_cv_header_dlfcn_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_DLFCN_H 1
+_ACEOF
+
+fi
+
+done
+
+
+
+
+
+# Set options
+# Check whether --enable-static was given.
+if test "${enable_static+set}" = set; then :
+  enableval=$enable_static; p=${PACKAGE-default}
+    case $enableval in
+    yes) enable_static=yes ;;
+    no) enable_static=no ;;
+    *)
+     enable_static=no
+      # Look at the argument we got.  We use all the common list separators.
+      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
+      for pkg in $enableval; do
+       IFS=$lt_save_ifs
+       if test "X$pkg" = "X$p"; then
+         enable_static=yes
+       fi
+      done
+      IFS=$lt_save_ifs
+      ;;
+    esac
+else
+  enable_static=no
+fi
+
+
+
+
+
+
+
+
+
+
+        enable_dlopen=no
+
+
+  enable_win32_dll=no
+
+
+            # Check whether --enable-shared was given.
+if test "${enable_shared+set}" = set; then :
+  enableval=$enable_shared; p=${PACKAGE-default}
+    case $enableval in
+    yes) enable_shared=yes ;;
+    no) enable_shared=no ;;
+    *)
+      enable_shared=no
+      # Look at the argument we got.  We use all the common list separators.
+      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
+      for pkg in $enableval; do
+       IFS=$lt_save_ifs
+       if test "X$pkg" = "X$p"; then
+         enable_shared=yes
+       fi
+      done
+      IFS=$lt_save_ifs
+      ;;
+    esac
+else
+  enable_shared=yes
+fi
+
+
+
+
+
+
+
+
+
+
+
+# Check whether --with-pic was given.
+if test "${with_pic+set}" = set; then :
+  withval=$with_pic; lt_p=${PACKAGE-default}
+    case $withval in
+    yes|no) pic_mode=$withval ;;
+    *)
+      pic_mode=default
+      # Look at the argument we got.  We use all the common list separators.
+      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
+      for lt_pkg in $withval; do
+       IFS=$lt_save_ifs
+       if test "X$lt_pkg" = "X$lt_p"; then
+         pic_mode=yes
+       fi
+      done
+      IFS=$lt_save_ifs
+      ;;
+    esac
+else
+  pic_mode=default
+fi
+
+
+
+
+
+
+
+
+  # Check whether --enable-fast-install was given.
+if test "${enable_fast_install+set}" = set; then :
+  enableval=$enable_fast_install; p=${PACKAGE-default}
+    case $enableval in
+    yes) enable_fast_install=yes ;;
+    no) enable_fast_install=no ;;
+    *)
+      enable_fast_install=no
+      # Look at the argument we got.  We use all the common list separators.
+      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
+      for pkg in $enableval; do
+       IFS=$lt_save_ifs
+       if test "X$pkg" = "X$p"; then
+         enable_fast_install=yes
+       fi
+      done
+      IFS=$lt_save_ifs
+      ;;
+    esac
+else
+  enable_fast_install=yes
+fi
+
+
+
+
+
+
+
+
+
+
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS=$ltmain
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+test -z "$LN_S" && LN_S="ln -s"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+if test -n "${ZSH_VERSION+set}"; then
+   setopt NO_GLOB_SUBST
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
+$as_echo_n "checking for objdir... " >&6; }
+if ${lt_cv_objdir+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  rm -f .libs 2>/dev/null
+mkdir .libs 2>/dev/null
+if test -d .libs; then
+  lt_cv_objdir=.libs
+else
+  # MS-DOS does not allow filenames that begin with a dot.
+  lt_cv_objdir=_libs
+fi
+rmdir .libs 2>/dev/null
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
+$as_echo "$lt_cv_objdir" >&6; }
+objdir=$lt_cv_objdir
+
+
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define LT_OBJDIR "$lt_cv_objdir/"
+_ACEOF
+
+
+
+
+case $host_os in
+aix3*)
+  # AIX sometimes has problems with the GCC collect2 program.  For some
+  # reason, if we set the COLLECT_NAMES environment variable, the problems
+  # vanish in a puff of smoke.
+  if test set != "${COLLECT_NAMES+set}"; then
+    COLLECT_NAMES=
+    export COLLECT_NAMES
+  fi
+  ;;
+esac
+
+# Global variables:
+ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a '.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+
+with_gnu_ld=$lt_cv_prog_gnu_ld
+
+old_CC=$CC
+old_CFLAGS=$CFLAGS
+
+# Set sane defaults for various variables
+test -z "$CC" && CC=cc
+test -z "$LTCC" && LTCC=$CC
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
+test -z "$LD" && LD=ld
+test -z "$ac_objext" && ac_objext=o
+
+for cc_temp in $compiler""; do
+  case $cc_temp in
+    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+    \-*) ;;
+    *) break;;
+  esac
+done
+cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
+
+
+# Only perform the check for file, if the check method requires it
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+case $deplibs_check_method in
+file_magic*)
+  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
+$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
+if ${lt_cv_path_MAGIC_CMD+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  case $MAGIC_CMD in
+[\\/*] |  ?:[\\/]*)
+  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
+  ;;
+*)
+  lt_save_MAGIC_CMD=$MAGIC_CMD
+  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
+  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
+  for ac_dir in $ac_dummy; do
+    IFS=$lt_save_ifs
+    test -z "$ac_dir" && ac_dir=.
+    if test -f "$ac_dir/${ac_tool_prefix}file"; then
+      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
+      if test -n "$file_magic_test_file"; then
+       case $deplibs_check_method in
+       "file_magic "*)
+         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+         MAGIC_CMD=$lt_cv_path_MAGIC_CMD
+         if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+           $EGREP "$file_magic_regex" > /dev/null; then
+           :
+         else
+           cat <<_LT_EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such.  This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem.  Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+_LT_EOF
+         fi ;;
+       esac
+      fi
+      break
+    fi
+  done
+  IFS=$lt_save_ifs
+  MAGIC_CMD=$lt_save_MAGIC_CMD
+  ;;
+esac
+fi
+
+MAGIC_CMD=$lt_cv_path_MAGIC_CMD
+if test -n "$MAGIC_CMD"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
+$as_echo "$MAGIC_CMD" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+  if test -n "$ac_tool_prefix"; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
+$as_echo_n "checking for file... " >&6; }
+if ${lt_cv_path_MAGIC_CMD+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  case $MAGIC_CMD in
+[\\/*] |  ?:[\\/]*)
+  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
+  ;;
+*)
+  lt_save_MAGIC_CMD=$MAGIC_CMD
+  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
+  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
+  for ac_dir in $ac_dummy; do
+    IFS=$lt_save_ifs
+    test -z "$ac_dir" && ac_dir=.
+    if test -f "$ac_dir/file"; then
+      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
+      if test -n "$file_magic_test_file"; then
+       case $deplibs_check_method in
+       "file_magic "*)
+         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+         MAGIC_CMD=$lt_cv_path_MAGIC_CMD
+         if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+           $EGREP "$file_magic_regex" > /dev/null; then
+           :
+         else
+           cat <<_LT_EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such.  This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem.  Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+_LT_EOF
+         fi ;;
+       esac
+      fi
+      break
+    fi
+  done
+  IFS=$lt_save_ifs
+  MAGIC_CMD=$lt_save_MAGIC_CMD
+  ;;
+esac
+fi
+
+MAGIC_CMD=$lt_cv_path_MAGIC_CMD
+if test -n "$MAGIC_CMD"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
+$as_echo "$MAGIC_CMD" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  else
+    MAGIC_CMD=:
+  fi
+fi
+
+  fi
+  ;;
+esac
+
+# Use C for the default configuration in the libtool script
+
+lt_save_CC=$CC
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+# Source file extension for C test sources.
+ac_ext=c
+
+# Object file extension for compiled C test sources.
+objext=o
+objext=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}'
+
+
+
+
+
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+# Save the default compiler, since it gets overwritten when the other
+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
+compiler_DEFAULT=$CC
+
+# save warnings/boilerplate of simple test code
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$RM conftest*
+
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$RM -r conftest*
+
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+
+lt_prog_compiler_no_builtin_flag=
+
+if test yes = "$GCC"; then
+  case $cc_basename in
+  nvcc*)
+    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
+  *)
+    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
+  esac
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
+$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
+if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_prog_compiler_rtti_exceptions=no
+   ac_outfile=conftest.$ac_objext
+   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing "conftest.", or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   # The option is referenced via a variable to avoid confusing sed.
+   lt_compile=`echo "$ac_compile" | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+   (eval "$lt_compile" 2>conftest.err)
+   ac_status=$?
+   cat conftest.err >&5
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   if (exit $ac_status) && test -s "$ac_outfile"; then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings other than the usual output.
+     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
+     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+       lt_cv_prog_compiler_rtti_exceptions=yes
+     fi
+   fi
+   $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
+$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
+
+if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
+    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
+else
+    :
+fi
+
+fi
+
+
+
+
+
+
+  lt_prog_compiler_wl=
+lt_prog_compiler_pic=
+lt_prog_compiler_static=
+
+
+  if test yes = "$GCC"; then
+    lt_prog_compiler_wl='-Wl,'
+    lt_prog_compiler_static='-static'
+
+    case $host_os in
+      aix*)
+      # All AIX code is PIC.
+      if test ia64 = "$host_cpu"; then
+       # AIX 5 now supports IA64 processor
+       lt_prog_compiler_static='-Bstatic'
+      fi
+      lt_prog_compiler_pic='-fPIC'
+      ;;
+
+    amigaos*)
+      case $host_cpu in
+      powerpc)
+            # see comment about AmigaOS4 .so support
+            lt_prog_compiler_pic='-fPIC'
+        ;;
+      m68k)
+            # FIXME: we need at least 68020 code to build shared libraries, but
+            # adding the '-m68020' flag to GCC prevents building anything better,
+            # like '-m68040'.
+            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
+        ;;
+      esac
+      ;;
+
+    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+      # PIC is the default for these OSes.
+      ;;
+
+    mingw* | cygwin* | pw32* | os2* | cegcc*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      # Although the cygwin gcc ignores -fPIC, still need this for old-style
+      # (--disable-auto-import) libraries
+      lt_prog_compiler_pic='-DDLL_EXPORT'
+      ;;
+
+    darwin* | rhapsody*)
+      # PIC is the default on this platform
+      # Common symbols not allowed in MH_DYLIB files
+      lt_prog_compiler_pic='-fno-common'
+      ;;
+
+    haiku*)
+      # PIC is the default for Haiku.
+      # The "-static" flag exists, but is broken.
+      lt_prog_compiler_static=
+      ;;
+
+    hpux*)
+      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
+      # sets the default TLS model and affects inlining.
+      case $host_cpu in
+      hppa*64*)
+       # +Z the default
+       ;;
+      *)
+       lt_prog_compiler_pic='-fPIC'
+       ;;
+      esac
+      ;;
+
+    interix[3-9]*)
+      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+      # Instead, we relocate shared libraries at runtime.
+      ;;
+
+    msdosdjgpp*)
+      # Just because we use GCC doesn't mean we suddenly get shared libraries
+      # on systems that don't support them.
+      lt_prog_compiler_can_build_shared=no
+      enable_shared=no
+      ;;
+
+    *nto* | *qnx*)
+      # QNX uses GNU C++, but need to define -shared option too, otherwise
+      # it will coredump.
+      lt_prog_compiler_pic='-fPIC -shared'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec; then
+       lt_prog_compiler_pic=-Kconform_pic
+      fi
+      ;;
+
+    *)
+      lt_prog_compiler_pic='-fPIC'
+      ;;
+    esac
+
+    case $cc_basename in
+    nvcc*) # Cuda Compiler Driver 2.2
+      lt_prog_compiler_wl='-Xlinker '
+      if test -n "$lt_prog_compiler_pic"; then
+        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
+      fi
+      ;;
+    esac
+  else
+    # PORTME Check for flag to pass linker flags through the system compiler.
+    case $host_os in
+    aix*)
+      lt_prog_compiler_wl='-Wl,'
+      if test ia64 = "$host_cpu"; then
+       # AIX 5 now supports IA64 processor
+       lt_prog_compiler_static='-Bstatic'
+      else
+       lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
+      fi
+      ;;
+
+    darwin* | rhapsody*)
+      # PIC is the default on this platform
+      # Common symbols not allowed in MH_DYLIB files
+      lt_prog_compiler_pic='-fno-common'
+      case $cc_basename in
+      nagfor*)
+        # NAG Fortran compiler
+        lt_prog_compiler_wl='-Wl,-Wl,,'
+        lt_prog_compiler_pic='-PIC'
+        lt_prog_compiler_static='-Bstatic'
+        ;;
+      esac
+      ;;
+
+    mingw* | cygwin* | pw32* | os2* | cegcc*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      lt_prog_compiler_pic='-DDLL_EXPORT'
+      ;;
+
+    hpux9* | hpux10* | hpux11*)
+      lt_prog_compiler_wl='-Wl,'
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+      # not for PA HP-UX.
+      case $host_cpu in
+      hppa*64*|ia64*)
+       # +Z the default
+       ;;
+      *)
+       lt_prog_compiler_pic='+Z'
+       ;;
+      esac
+      # Is there a better lt_prog_compiler_static that works with the bundled CC?
+      lt_prog_compiler_static='$wl-a ${wl}archive'
+      ;;
+
+    irix5* | irix6* | nonstopux*)
+      lt_prog_compiler_wl='-Wl,'
+      # PIC (with -KPIC) is the default.
+      lt_prog_compiler_static='-non_shared'
+      ;;
+
+    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+      case $cc_basename in
+      # old Intel for x86_64, which still supported -KPIC.
+      ecc*)
+       lt_prog_compiler_wl='-Wl,'
+       lt_prog_compiler_pic='-KPIC'
+       lt_prog_compiler_static='-static'
+        ;;
+      # icc used to be incompatible with GCC.
+      # ICC 10 doesn't accept -KPIC any more.
+      icc* | ifort*)
+       lt_prog_compiler_wl='-Wl,'
+       lt_prog_compiler_pic='-fPIC'
+       lt_prog_compiler_static='-static'
+        ;;
+      # Lahey Fortran 8.1.
+      lf95*)
+       lt_prog_compiler_wl='-Wl,'
+       lt_prog_compiler_pic='--shared'
+       lt_prog_compiler_static='--static'
+       ;;
+      nagfor*)
+       # NAG Fortran compiler
+       lt_prog_compiler_wl='-Wl,-Wl,,'
+       lt_prog_compiler_pic='-PIC'
+       lt_prog_compiler_static='-Bstatic'
+       ;;
+      tcc*)
+       # Fabrice Bellard et al's Tiny C Compiler
+       lt_prog_compiler_wl='-Wl,'
+       lt_prog_compiler_pic='-fPIC'
+       lt_prog_compiler_static='-static'
+       ;;
+      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
+        # Portland Group compilers (*not* the Pentium gcc compiler,
+       # which looks to be a dead project)
+       lt_prog_compiler_wl='-Wl,'
+       lt_prog_compiler_pic='-fpic'
+       lt_prog_compiler_static='-Bstatic'
+        ;;
+      ccc*)
+        lt_prog_compiler_wl='-Wl,'
+        # All Alpha code is PIC.
+        lt_prog_compiler_static='-non_shared'
+        ;;
+      xl* | bgxl* | bgf* | mpixl*)
+       # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
+       lt_prog_compiler_wl='-Wl,'
+       lt_prog_compiler_pic='-qpic'
+       lt_prog_compiler_static='-qstaticlink'
+       ;;
+      *)
+       case `$CC -V 2>&1 | sed 5q` in
+       *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
+         # Sun Fortran 8.3 passes all unrecognized flags to the linker
+         lt_prog_compiler_pic='-KPIC'
+         lt_prog_compiler_static='-Bstatic'
+         lt_prog_compiler_wl=''
+         ;;
+       *Sun\ F* | *Sun*Fortran*)
+         lt_prog_compiler_pic='-KPIC'
+         lt_prog_compiler_static='-Bstatic'
+         lt_prog_compiler_wl='-Qoption ld '
+         ;;
+       *Sun\ C*)
+         # Sun C 5.9
+         lt_prog_compiler_pic='-KPIC'
+         lt_prog_compiler_static='-Bstatic'
+         lt_prog_compiler_wl='-Wl,'
+         ;;
+        *Intel*\ [CF]*Compiler*)
+         lt_prog_compiler_wl='-Wl,'
+         lt_prog_compiler_pic='-fPIC'
+         lt_prog_compiler_static='-static'
+         ;;
+       *Portland\ Group*)
+         lt_prog_compiler_wl='-Wl,'
+         lt_prog_compiler_pic='-fpic'
+         lt_prog_compiler_static='-Bstatic'
+         ;;
+       esac
+       ;;
+      esac
+      ;;
+
+    newsos6)
+      lt_prog_compiler_pic='-KPIC'
+      lt_prog_compiler_static='-Bstatic'
+      ;;
+
+    *nto* | *qnx*)
+      # QNX uses GNU C++, but need to define -shared option too, otherwise
+      # it will coredump.
+      lt_prog_compiler_pic='-fPIC -shared'
+      ;;
+
+    osf3* | osf4* | osf5*)
+      lt_prog_compiler_wl='-Wl,'
+      # All OSF/1 code is PIC.
+      lt_prog_compiler_static='-non_shared'
+      ;;
+
+    rdos*)
+      lt_prog_compiler_static='-non_shared'
+      ;;
+
+    solaris*)
+      lt_prog_compiler_pic='-KPIC'
+      lt_prog_compiler_static='-Bstatic'
+      case $cc_basename in
+      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
+       lt_prog_compiler_wl='-Qoption ld ';;
+      *)
+       lt_prog_compiler_wl='-Wl,';;
+      esac
+      ;;
+
+    sunos4*)
+      lt_prog_compiler_wl='-Qoption ld '
+      lt_prog_compiler_pic='-PIC'
+      lt_prog_compiler_static='-Bstatic'
+      ;;
+
+    sysv4 | sysv4.2uw2* | sysv4.3*)
+      lt_prog_compiler_wl='-Wl,'
+      lt_prog_compiler_pic='-KPIC'
+      lt_prog_compiler_static='-Bstatic'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec; then
+       lt_prog_compiler_pic='-Kconform_pic'
+       lt_prog_compiler_static='-Bstatic'
+      fi
+      ;;
+
+    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+      lt_prog_compiler_wl='-Wl,'
+      lt_prog_compiler_pic='-KPIC'
+      lt_prog_compiler_static='-Bstatic'
+      ;;
+
+    unicos*)
+      lt_prog_compiler_wl='-Wl,'
+      lt_prog_compiler_can_build_shared=no
+      ;;
+
+    uts4*)
+      lt_prog_compiler_pic='-pic'
+      lt_prog_compiler_static='-Bstatic'
+      ;;
+
+    *)
+      lt_prog_compiler_can_build_shared=no
+      ;;
+    esac
+  fi
+
+case $host_os in
+  # For platforms that do not support PIC, -DPIC is meaningless:
+  *djgpp*)
+    lt_prog_compiler_pic=
+    ;;
+  *)
+    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
+    ;;
+esac
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
+if ${lt_cv_prog_compiler_pic+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
+$as_echo "$lt_cv_prog_compiler_pic" >&6; }
+lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$lt_prog_compiler_pic"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
+$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
+if ${lt_cv_prog_compiler_pic_works+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_prog_compiler_pic_works=no
+   ac_outfile=conftest.$ac_objext
+   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing "conftest.", or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   # The option is referenced via a variable to avoid confusing sed.
+   lt_compile=`echo "$ac_compile" | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+   (eval "$lt_compile" 2>conftest.err)
+   ac_status=$?
+   cat conftest.err >&5
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   if (exit $ac_status) && test -s "$ac_outfile"; then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings other than the usual output.
+     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
+     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+       lt_cv_prog_compiler_pic_works=yes
+     fi
+   fi
+   $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
+$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
+
+if test yes = "$lt_cv_prog_compiler_pic_works"; then
+    case $lt_prog_compiler_pic in
+     "" | " "*) ;;
+     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
+     esac
+else
+    lt_prog_compiler_pic=
+     lt_prog_compiler_can_build_shared=no
+fi
+
+fi
+
+
+
+
+
+
+
+
+
+
+
+#
+# Check to make sure the static flag actually works.
+#
+wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
+$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
+if ${lt_cv_prog_compiler_static_works+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_prog_compiler_static_works=no
+   save_LDFLAGS=$LDFLAGS
+   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
+   echo "$lt_simple_link_test_code" > conftest.$ac_ext
+   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+     # The linker can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     if test -s conftest.err; then
+       # Append any errors to the config.log.
+       cat conftest.err 1>&5
+       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
+       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+       if diff conftest.exp conftest.er2 >/dev/null; then
+         lt_cv_prog_compiler_static_works=yes
+       fi
+     else
+       lt_cv_prog_compiler_static_works=yes
+     fi
+   fi
+   $RM -r conftest*
+   LDFLAGS=$save_LDFLAGS
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
+$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
+
+if test yes = "$lt_cv_prog_compiler_static_works"; then
+    :
+else
+    lt_prog_compiler_static=
+fi
+
+
+
+
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
+$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
+if ${lt_cv_prog_compiler_c_o+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_prog_compiler_c_o=no
+   $RM -r conftest 2>/dev/null
+   mkdir conftest
+   cd conftest
+   mkdir out
+   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+   lt_compiler_flag="-o out/conftest2.$ac_objext"
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing "conftest.", or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   lt_compile=`echo "$ac_compile" | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+   (eval "$lt_compile" 2>out/conftest.err)
+   ac_status=$?
+   cat out/conftest.err >&5
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   if (exit $ac_status) && test -s out/conftest2.$ac_objext
+   then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
+     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+       lt_cv_prog_compiler_c_o=yes
+     fi
+   fi
+   chmod u+w . 2>&5
+   $RM conftest*
+   # SGI C++ compiler will create directory out/ii_files/ for
+   # template instantiation
+   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
+   $RM out/* && rmdir out
+   cd ..
+   $RM -r conftest
+   $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
+$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
+
+
+
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
+$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
+if ${lt_cv_prog_compiler_c_o+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_prog_compiler_c_o=no
+   $RM -r conftest 2>/dev/null
+   mkdir conftest
+   cd conftest
+   mkdir out
+   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+   lt_compiler_flag="-o out/conftest2.$ac_objext"
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing "conftest.", or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   lt_compile=`echo "$ac_compile" | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+   (eval "$lt_compile" 2>out/conftest.err)
+   ac_status=$?
+   cat out/conftest.err >&5
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   if (exit $ac_status) && test -s out/conftest2.$ac_objext
+   then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
+     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+       lt_cv_prog_compiler_c_o=yes
+     fi
+   fi
+   chmod u+w . 2>&5
+   $RM conftest*
+   # SGI C++ compiler will create directory out/ii_files/ for
+   # template instantiation
+   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
+   $RM out/* && rmdir out
+   cd ..
+   $RM -r conftest
+   $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
+$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
+
+
+
+
+hard_links=nottested
+if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
+  # do not overwrite the value of need_locks provided by the user
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
+$as_echo_n "checking if we can lock with hard links... " >&6; }
+  hard_links=yes
+  $RM conftest*
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no
+  touch conftest.a
+  ln conftest.a conftest.b 2>&5 || hard_links=no
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
+$as_echo "$hard_links" >&6; }
+  if test no = "$hard_links"; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
+$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
+    need_locks=warn
+  fi
+else
+  need_locks=no
+fi
+
+
+
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
+$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
+
+  runpath_var=
+  allow_undefined_flag=
+  always_export_symbols=no
+  archive_cmds=
+  archive_expsym_cmds=
+  compiler_needs_object=no
+  enable_shared_with_static_runtimes=no
+  export_dynamic_flag_spec=
+  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+  hardcode_automatic=no
+  hardcode_direct=no
+  hardcode_direct_absolute=no
+  hardcode_libdir_flag_spec=
+  hardcode_libdir_separator=
+  hardcode_minus_L=no
+  hardcode_shlibpath_var=unsupported
+  inherit_rpath=no
+  link_all_deplibs=unknown
+  module_cmds=
+  module_expsym_cmds=
+  old_archive_from_new_cmds=
+  old_archive_from_expsyms_cmds=
+  thread_safe_flag_spec=
+  whole_archive_flag_spec=
+  # include_expsyms should be a list of space-separated symbols to be *always*
+  # included in the symbol list
+  include_expsyms=
+  # exclude_expsyms can be an extended regexp of symbols to exclude
+  # it will be wrapped by ' (' and ')$', so one must not match beginning or
+  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
+  # as well as any symbol that contains 'd'.
+  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
+  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+  # platforms (ab)use it in PIC code, but their linkers get confused if
+  # the symbol is explicitly referenced.  Since portable code cannot
+  # rely on this symbol name, it's probably fine to never include it in
+  # preloaded symbol tables.
+  # Exclude shared library initialization/finalization symbols.
+  extract_expsyms_cmds=
+
+  case $host_os in
+  cygwin* | mingw* | pw32* | cegcc*)
+    # FIXME: the MSVC++ port hasn't been tested in a loooong time
+    # When not using gcc, we currently assume that we are using
+    # Microsoft Visual C++.
+    if test yes != "$GCC"; then
+      with_gnu_ld=no
+    fi
+    ;;
+  interix*)
+    # we just hope/assume this is gcc and not c89 (= MSVC++)
+    with_gnu_ld=yes
+    ;;
+  openbsd* | bitrig*)
+    with_gnu_ld=no
+    ;;
+  esac
+
+  ld_shlibs=yes
+
+  # On some targets, GNU ld is compatible enough with the native linker
+  # that we're better off using the native interface for both.
+  lt_use_gnu_ld_interface=no
+  if test yes = "$with_gnu_ld"; then
+    case $host_os in
+      aix*)
+       # The AIX port of GNU ld has always aspired to compatibility
+       # with the native linker.  However, as the warning in the GNU ld
+       # block says, versions before 2.19.5* couldn't really create working
+       # shared libraries, regardless of the interface used.
+       case `$LD -v 2>&1` in
+         *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
+         *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
+         *\ \(GNU\ Binutils\)\ [3-9]*) ;;
+         *)
+           lt_use_gnu_ld_interface=yes
+           ;;
+       esac
+       ;;
+      *)
+       lt_use_gnu_ld_interface=yes
+       ;;
+    esac
+  fi
+
+  if test yes = "$lt_use_gnu_ld_interface"; then
+    # If archive_cmds runs LD, not CC, wlarc should be empty
+    wlarc='$wl'
+
+    # Set some defaults for GNU ld with shared library support. These
+    # are reset later if shared libraries are not supported. Putting them
+    # here allows them to be overridden if necessary.
+    runpath_var=LD_RUN_PATH
+    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
+    export_dynamic_flag_spec='$wl--export-dynamic'
+    # ancient GNU ld didn't support --whole-archive et. al.
+    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
+      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
+    else
+      whole_archive_flag_spec=
+    fi
+    supports_anon_versioning=no
+    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
+      *GNU\ gold*) supports_anon_versioning=yes ;;
+      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
+      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+      *\ 2.11.*) ;; # other 2.11 versions
+      *) supports_anon_versioning=yes ;;
+    esac
+
+    # See if GNU ld supports shared libraries.
+    case $host_os in
+    aix[3-9]*)
+      # On AIX/PPC, the GNU linker is very broken
+      if test ia64 != "$host_cpu"; then
+       ld_shlibs=no
+       cat <<_LT_EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.19, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support.  If you
+*** really care for shared libraries, you may want to install binutils
+*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
+*** You will then need to restart the configuration process.
+
+_LT_EOF
+      fi
+      ;;
+
+    amigaos*)
+      case $host_cpu in
+      powerpc)
+            # see comment about AmigaOS4 .so support
+            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+            archive_expsym_cmds=''
+        ;;
+      m68k)
+            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+            hardcode_libdir_flag_spec='-L$libdir'
+            hardcode_minus_L=yes
+        ;;
+      esac
+      ;;
+
+    beos*)
+      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+       allow_undefined_flag=unsupported
+       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+       # support --undefined.  This deserves some investigation.  FIXME
+       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+      else
+       ld_shlibs=no
+      fi
+      ;;
+
+    cygwin* | mingw* | pw32* | cegcc*)
+      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
+      # as there is no search path for DLLs.
+      hardcode_libdir_flag_spec='-L$libdir'
+      export_dynamic_flag_spec='$wl--export-all-symbols'
+      allow_undefined_flag=unsupported
+      always_export_symbols=no
+      enable_shared_with_static_runtimes=yes
+      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
+      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
+
+      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+       # If the export-symbols file already is a .def file, use it as
+       # is; otherwise, prepend EXPORTS...
+       archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
+          cp $export_symbols $output_objdir/$soname.def;
+        else
+          echo EXPORTS > $output_objdir/$soname.def;
+          cat $export_symbols >> $output_objdir/$soname.def;
+        fi~
+        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+      else
+       ld_shlibs=no
+      fi
+      ;;
+
+    haiku*)
+      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+      link_all_deplibs=yes
+      ;;
+
+    interix[3-9]*)
+      hardcode_direct=no
+      hardcode_shlibpath_var=no
+      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
+      export_dynamic_flag_spec='$wl-E'
+      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+      # Instead, shared libraries are loaded at an image base (0x10000000 by
+      # default) and relocated if they conflict, which is a slow very memory
+      # consuming and fragmenting process.  To avoid this, we pick a random,
+      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
+      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+      ;;
+
+    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
+      tmp_diet=no
+      if test linux-dietlibc = "$host_os"; then
+       case $cc_basename in
+         diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
+       esac
+      fi
+      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
+        && test no = "$tmp_diet"
+      then
+       tmp_addflag=' $pic_flag'
+       tmp_sharedflag='-shared'
+       case $cc_basename,$host_cpu in
+        pgcc*)                         # Portland Group C compiler
+         whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+         tmp_addflag=' $pic_flag'
+         ;;
+       pgf77* | pgf90* | pgf95* | pgfortran*)
+                                       # Portland Group f77 and f90 compilers
+         whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+         tmp_addflag=' $pic_flag -Mnomain' ;;
+       ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
+         tmp_addflag=' -i_dynamic' ;;
+       efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
+         tmp_addflag=' -i_dynamic -nofor_main' ;;
+       ifc* | ifort*)                  # Intel Fortran compiler
+         tmp_addflag=' -nofor_main' ;;
+       lf95*)                          # Lahey Fortran 8.1
+         whole_archive_flag_spec=
+         tmp_sharedflag='--shared' ;;
+        nagfor*)                        # NAGFOR 5.3
+          tmp_sharedflag='-Wl,-shared' ;;
+       xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
+         tmp_sharedflag='-qmkshrobj'
+         tmp_addflag= ;;
+       nvcc*)  # Cuda Compiler Driver 2.2
+         whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+         compiler_needs_object=yes
+         ;;
+       esac
+       case `$CC -V 2>&1 | sed 5q` in
+       *Sun\ C*)                       # Sun C 5.9
+         whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+         compiler_needs_object=yes
+         tmp_sharedflag='-G' ;;
+       *Sun\ F*)                       # Sun Fortran 8.3
+         tmp_sharedflag='-G' ;;
+       esac
+       archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+
+        if test yes = "$supports_anon_versioning"; then
+          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
+            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+            echo "local: *; };" >> $output_objdir/$libname.ver~
+            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
+        fi
+
+       case $cc_basename in
+       xlf* | bgf* | bgxlf* | mpixlf*)
+         # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
+         whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
+         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
+         archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
+         if test yes = "$supports_anon_versioning"; then
+           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
+              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+              echo "local: *; };" >> $output_objdir/$libname.ver~
+              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
+         fi
+         ;;
+       esac
+      else
+        ld_shlibs=no
+      fi
+      ;;
+
+    netbsd*)
+      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+       wlarc=
+      else
+       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+       archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+      fi
+      ;;
+
+    solaris*)
+      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
+       ld_shlibs=no
+       cat <<_LT_EOF 1>&2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems.  Therefore, libtool
+*** is disabling shared libraries support.  We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer.  Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+       archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+      else
+       ld_shlibs=no
+      fi
+      ;;
+
+    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
+      case `$LD -v 2>&1` in
+        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
+       ld_shlibs=no
+       cat <<_LT_EOF 1>&2
+
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
+*** reliably create shared libraries on SCO systems.  Therefore, libtool
+*** is disabling shared libraries support.  We urge you to upgrade GNU
+*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+       ;;
+       *)
+         # For security reasons, it is highly recommended that you always
+         # use absolute paths for naming shared libraries, and exclude the
+         # DT_RUNPATH tag from executables and libraries.  But doing so
+         # requires that you compile everything twice, which is a pain.
+         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
+           archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+           archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+         else
+           ld_shlibs=no
+         fi
+       ;;
+      esac
+      ;;
+
+    sunos4*)
+      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+      wlarc=
+      hardcode_direct=yes
+      hardcode_shlibpath_var=no
+      ;;
+
+    *)
+      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+       archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+      else
+       ld_shlibs=no
+      fi
+      ;;
+    esac
+
+    if test no = "$ld_shlibs"; then
+      runpath_var=
+      hardcode_libdir_flag_spec=
+      export_dynamic_flag_spec=
+      whole_archive_flag_spec=
+    fi
+  else
+    # PORTME fill in a description of your system's linker (not GNU ld)
+    case $host_os in
+    aix3*)
+      allow_undefined_flag=unsupported
+      always_export_symbols=yes
+      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+      # Note: this linker hardcodes the directories in LIBPATH if there
+      # are no directories specified by -L.
+      hardcode_minus_L=yes
+      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
+       # Neither direct hardcoding nor static linking is supported with a
+       # broken collect2.
+       hardcode_direct=unsupported
+      fi
+      ;;
+
+    aix[4-9]*)
+      if test ia64 = "$host_cpu"; then
+       # On IA64, the linker does run time linking by default, so we don't
+       # have to do anything special.
+       aix_use_runtimelinking=no
+       exp_sym_flag='-Bexport'
+       no_entry_flag=
+      else
+       # If we're using GNU nm, then we don't want the "-C" option.
+       # -C means demangle to AIX nm, but means don't demangle with GNU nm
+       # Also, AIX nm treats weak defined symbols like other global
+       # defined symbols, whereas GNU nm marks them as "W".
+       if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
+         export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+       else
+         export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+       fi
+       aix_use_runtimelinking=no
+
+       # Test if we are trying to use run time linking or normal
+       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+       # need to do runtime linking.
+       case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
+         for ld_flag in $LDFLAGS; do
+         if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
+           aix_use_runtimelinking=yes
+           break
+         fi
+         done
+         ;;
+       esac
+
+       exp_sym_flag='-bexport'
+       no_entry_flag='-bnoentry'
+      fi
+
+      # When large executables or shared objects are built, AIX ld can
+      # have problems creating the table of contents.  If linking a library
+      # or program results in "error TOC overflow" add -mminimal-toc to
+      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
+      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+      archive_cmds=''
+      hardcode_direct=yes
+      hardcode_direct_absolute=yes
+      hardcode_libdir_separator=':'
+      link_all_deplibs=yes
+      file_list_spec='$wl-f,'
+
+      if test yes = "$GCC"; then
+       case $host_os in aix4.[012]|aix4.[012].*)
+       # We only want to do this on AIX 4.2 and lower, the check
+       # below for broken collect2 doesn't work under 4.3+
+         collect2name=`$CC -print-prog-name=collect2`
+         if test -f "$collect2name" &&
+          strings "$collect2name" | $GREP resolve_lib_name >/dev/null
+         then
+         # We have reworked collect2
+         :
+         else
+         # We have old collect2
+         hardcode_direct=unsupported
+         # It fails to find uninstalled libraries when the uninstalled
+         # path is not listed in the libpath.  Setting hardcode_minus_L
+         # to unsupported forces relinking
+         hardcode_minus_L=yes
+         hardcode_libdir_flag_spec='-L$libdir'
+         hardcode_libdir_separator=
+         fi
+         ;;
+       esac
+       shared_flag='-shared'
+       if test yes = "$aix_use_runtimelinking"; then
+         shared_flag="$shared_flag "'$wl-G'
+       fi
+      else
+       # not using gcc
+       if test ia64 = "$host_cpu"; then
+       # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+       # chokes on -Wl,-G. The following line is correct:
+         shared_flag='-G'
+       else
+         if test yes = "$aix_use_runtimelinking"; then
+           shared_flag='$wl-G'
+         else
+           shared_flag='$wl-bM:SRE'
+         fi
+       fi
+      fi
+
+      export_dynamic_flag_spec='$wl-bexpall'
+      # It seems that -bexpall does not export symbols beginning with
+      # underscore (_), so it is better to generate a list of symbols to export.
+      always_export_symbols=yes
+      if test yes = "$aix_use_runtimelinking"; then
+       # Warning - without using the other runtime loading flags (-brtl),
+       # -berok will link without error, but may produce a broken library.
+       allow_undefined_flag='-berok'
+        # Determine the default libpath from the value encoded in an
+        # empty executable.
+        if test set = "${lt_cv_aix_libpath+set}"; then
+  aix_libpath=$lt_cv_aix_libpath
+else
+  if ${lt_cv_aix_libpath_+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+
+  lt_aix_libpath_sed='
+      /Import File Strings/,/^$/ {
+         /^0/ {
+             s/^0  *\([^ ]*\) *$/\1/
+             p
+         }
+      }'
+  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+  # Check for a 64-bit object if we didn't find anything.
+  if test -z "$lt_cv_aix_libpath_"; then
+    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+  fi
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+  if test -z "$lt_cv_aix_libpath_"; then
+    lt_cv_aix_libpath_=/usr/lib:/lib
+  fi
+
+fi
+
+  aix_libpath=$lt_cv_aix_libpath_
+fi
+
+        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
+        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
+      else
+       if test ia64 = "$host_cpu"; then
+         hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
+         allow_undefined_flag="-z nodefs"
+         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
+       else
+        # Determine the default libpath from the value encoded in an
+        # empty executable.
+        if test set = "${lt_cv_aix_libpath+set}"; then
+  aix_libpath=$lt_cv_aix_libpath
+else
+  if ${lt_cv_aix_libpath_+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+
+  lt_aix_libpath_sed='
+      /Import File Strings/,/^$/ {
+         /^0/ {
+             s/^0  *\([^ ]*\) *$/\1/
+             p
+         }
+      }'
+  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+  # Check for a 64-bit object if we didn't find anything.
+  if test -z "$lt_cv_aix_libpath_"; then
+    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+  fi
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+  if test -z "$lt_cv_aix_libpath_"; then
+    lt_cv_aix_libpath_=/usr/lib:/lib
+  fi
+
+fi
+
+  aix_libpath=$lt_cv_aix_libpath_
+fi
+
+        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
+         # Warning - without using the other run time loading flags,
+         # -berok will link without error, but may produce a broken library.
+         no_undefined_flag=' $wl-bernotok'
+         allow_undefined_flag=' $wl-berok'
+         if test yes = "$with_gnu_ld"; then
+           # We only use this code for GNU lds that support --whole-archive.
+           whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
+         else
+           # Exported symbols can be pulled into shared objects from archives
+           whole_archive_flag_spec='$convenience'
+         fi
+         archive_cmds_need_lc=yes
+         # This is similar to how AIX traditionally builds its shared libraries.
+         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+       fi
+      fi
+      ;;
+
+    amigaos*)
+      case $host_cpu in
+      powerpc)
+            # see comment about AmigaOS4 .so support
+            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+            archive_expsym_cmds=''
+        ;;
+      m68k)
+            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+            hardcode_libdir_flag_spec='-L$libdir'
+            hardcode_minus_L=yes
+        ;;
+      esac
+      ;;
+
+    bsdi[45]*)
+      export_dynamic_flag_spec=-rdynamic
+      ;;
+
+    cygwin* | mingw* | pw32* | cegcc*)
+      # When not using gcc, we currently assume that we are using
+      # Microsoft Visual C++.
+      # hardcode_libdir_flag_spec is actually meaningless, as there is
+      # no search path for DLLs.
+      case $cc_basename in
+      cl*)
+       # Native MSVC
+       hardcode_libdir_flag_spec=' '
+       allow_undefined_flag=unsupported
+       always_export_symbols=yes
+       file_list_spec='@'
+       # Tell ltmain to make .lib files, not .a files.
+       libext=lib
+       # Tell ltmain to make .dll files, not .so files.
+       shrext_cmds=.dll
+       # FIXME: Setting linknames here is a bad hack.
+       archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
+       archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
+            cp "$export_symbols" "$output_objdir/$soname.def";
+            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
+          else
+            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
+          fi~
+          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
+          linknames='
+       # The linker will not automatically build a static lib if we build a DLL.
+       # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
+       enable_shared_with_static_runtimes=yes
+       exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
+       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
+       # Don't use ranlib
+       old_postinstall_cmds='chmod 644 $oldlib'
+       postlink_cmds='lt_outputfile="@OUTPUT@"~
+          lt_tool_outputfile="@TOOL_OUTPUT@"~
+          case $lt_outputfile in
+            *.exe|*.EXE) ;;
+            *)
+              lt_outputfile=$lt_outputfile.exe
+              lt_tool_outputfile=$lt_tool_outputfile.exe
+              ;;
+          esac~
+          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
+            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
+            $RM "$lt_outputfile.manifest";
+          fi'
+       ;;
+      *)
+       # Assume MSVC wrapper
+       hardcode_libdir_flag_spec=' '
+       allow_undefined_flag=unsupported
+       # Tell ltmain to make .lib files, not .a files.
+       libext=lib
+       # Tell ltmain to make .dll files, not .so files.
+       shrext_cmds=.dll
+       # FIXME: Setting linknames here is a bad hack.
+       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
+       # The linker will automatically build a .lib file if we build a DLL.
+       old_archive_from_new_cmds='true'
+       # FIXME: Should let the user specify the lib program.
+       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
+       enable_shared_with_static_runtimes=yes
+       ;;
+      esac
+      ;;
+
+    darwin* | rhapsody*)
+
+
+  archive_cmds_need_lc=no
+  hardcode_direct=no
+  hardcode_automatic=yes
+  hardcode_shlibpath_var=unsupported
+  if test yes = "$lt_cv_ld_force_load"; then
+    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
+
+  else
+    whole_archive_flag_spec=''
+  fi
+  link_all_deplibs=yes
+  allow_undefined_flag=$_lt_dar_allow_undefined
+  case $cc_basename in
+     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
+     *) _lt_dar_can_shared=$GCC ;;
+  esac
+  if test yes = "$_lt_dar_can_shared"; then
+    output_verbose_link_cmd=func_echo_all
+    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
+    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
+    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
+    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
+
+  else
+  ld_shlibs=no
+  fi
+
+      ;;
+
+    dgux*)
+      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_shlibpath_var=no
+      ;;
+
+    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+    # support.  Future versions do this automatically, but an explicit c++rt0.o
+    # does not break anything, and helps significantly (at the cost of a little
+    # extra space).
+    freebsd2.2*)
+      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+      hardcode_libdir_flag_spec='-R$libdir'
+      hardcode_direct=yes
+      hardcode_shlibpath_var=no
+      ;;
+
+    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+    freebsd2.*)
+      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_direct=yes
+      hardcode_minus_L=yes
+      hardcode_shlibpath_var=no
+      ;;
+
+    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+    freebsd* | dragonfly*)
+      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+      hardcode_libdir_flag_spec='-R$libdir'
+      hardcode_direct=yes
+      hardcode_shlibpath_var=no
+      ;;
+
+    hpux9*)
+      if test yes = "$GCC"; then
+       archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
+      else
+       archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
+      fi
+      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
+      hardcode_libdir_separator=:
+      hardcode_direct=yes
+
+      # hardcode_minus_L: Not really in the search PATH,
+      # but as the default location of the library.
+      hardcode_minus_L=yes
+      export_dynamic_flag_spec='$wl-E'
+      ;;
+
+    hpux10*)
+      if test yes,no = "$GCC,$with_gnu_ld"; then
+       archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+      else
+       archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+      fi
+      if test no = "$with_gnu_ld"; then
+       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
+       hardcode_libdir_separator=:
+       hardcode_direct=yes
+       hardcode_direct_absolute=yes
+       export_dynamic_flag_spec='$wl-E'
+       # hardcode_minus_L: Not really in the search PATH,
+       # but as the default location of the library.
+       hardcode_minus_L=yes
+      fi
+      ;;
+
+    hpux11*)
+      if test yes,no = "$GCC,$with_gnu_ld"; then
+       case $host_cpu in
+       hppa*64*)
+         archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
+         ;;
+       ia64*)
+         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+         ;;
+       *)
+         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+         ;;
+       esac
+      else
+       case $host_cpu in
+       hppa*64*)
+         archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
+         ;;
+       ia64*)
+         archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+         ;;
+       *)
+
+         # Older versions of the 11.00 compiler do not understand -b yet
+         # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
+         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
+$as_echo_n "checking if $CC understands -b... " >&6; }
+if ${lt_cv_prog_compiler__b+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_prog_compiler__b=no
+   save_LDFLAGS=$LDFLAGS
+   LDFLAGS="$LDFLAGS -b"
+   echo "$lt_simple_link_test_code" > conftest.$ac_ext
+   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+     # The linker can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     if test -s conftest.err; then
+       # Append any errors to the config.log.
+       cat conftest.err 1>&5
+       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
+       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+       if diff conftest.exp conftest.er2 >/dev/null; then
+         lt_cv_prog_compiler__b=yes
+       fi
+     else
+       lt_cv_prog_compiler__b=yes
+     fi
+   fi
+   $RM -r conftest*
+   LDFLAGS=$save_LDFLAGS
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
+$as_echo "$lt_cv_prog_compiler__b" >&6; }
+
+if test yes = "$lt_cv_prog_compiler__b"; then
+    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+else
+    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+fi
+
+         ;;
+       esac
+      fi
+      if test no = "$with_gnu_ld"; then
+       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
+       hardcode_libdir_separator=:
+
+       case $host_cpu in
+       hppa*64*|ia64*)
+         hardcode_direct=no
+         hardcode_shlibpath_var=no
+         ;;
+       *)
+         hardcode_direct=yes
+         hardcode_direct_absolute=yes
+         export_dynamic_flag_spec='$wl-E'
+
+         # hardcode_minus_L: Not really in the search PATH,
+         # but as the default location of the library.
+         hardcode_minus_L=yes
+         ;;
+       esac
+      fi
+      ;;
+
+    irix5* | irix6* | nonstopux*)
+      if test yes = "$GCC"; then
+       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+       # Try to use the -exported_symbol ld option, if it does not
+       # work, assume that -exports_file does not work either and
+       # implicitly export all symbols.
+       # This should be the same for all languages, so no per-tag cache variable.
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
+$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
+if ${lt_cv_irix_exported_symbol+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  save_LDFLAGS=$LDFLAGS
+          LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
+          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+int foo (void) { return 0; }
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  lt_cv_irix_exported_symbol=yes
+else
+  lt_cv_irix_exported_symbol=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+           LDFLAGS=$save_LDFLAGS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
+$as_echo "$lt_cv_irix_exported_symbol" >&6; }
+       if test yes = "$lt_cv_irix_exported_symbol"; then
+          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
+       fi
+      else
+       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
+       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
+      fi
+      archive_cmds_need_lc='no'
+      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
+      hardcode_libdir_separator=:
+      inherit_rpath=yes
+      link_all_deplibs=yes
+      ;;
+
+    netbsd*)
+      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
+      else
+       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
+      fi
+      hardcode_libdir_flag_spec='-R$libdir'
+      hardcode_direct=yes
+      hardcode_shlibpath_var=no
+      ;;
+
+    newsos6)
+      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_direct=yes
+      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
+      hardcode_libdir_separator=:
+      hardcode_shlibpath_var=no
+      ;;
+
+    *nto* | *qnx*)
+      ;;
+
+    openbsd* | bitrig*)
+      if test -f /usr/libexec/ld.so; then
+       hardcode_direct=yes
+       hardcode_shlibpath_var=no
+       hardcode_direct_absolute=yes
+       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
+         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
+         hardcode_libdir_flag_spec='$wl-rpath,$libdir'
+         export_dynamic_flag_spec='$wl-E'
+       else
+         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+         hardcode_libdir_flag_spec='$wl-rpath,$libdir'
+       fi
+      else
+       ld_shlibs=no
+      fi
+      ;;
+
+    os2*)
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_minus_L=yes
+      allow_undefined_flag=unsupported
+      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+      ;;
+
+    osf3*)
+      if test yes = "$GCC"; then
+       allow_undefined_flag=' $wl-expect_unresolved $wl\*'
+       archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+      else
+       allow_undefined_flag=' -expect_unresolved \*'
+       archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
+      fi
+      archive_cmds_need_lc='no'
+      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
+      hardcode_libdir_separator=:
+      ;;
+
+    osf4* | osf5*)     # as osf3* with the addition of -msym flag
+      if test yes = "$GCC"; then
+       allow_undefined_flag=' $wl-expect_unresolved $wl\*'
+       archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
+      else
+       allow_undefined_flag=' -expect_unresolved \*'
+       archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
+       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
+          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
+
+       # Both c and cxx compiler support -rpath directly
+       hardcode_libdir_flag_spec='-rpath $libdir'
+      fi
+      archive_cmds_need_lc='no'
+      hardcode_libdir_separator=:
+      ;;
+
+    solaris*)
+      no_undefined_flag=' -z defs'
+      if test yes = "$GCC"; then
+       wlarc='$wl'
+       archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
+       archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+      else
+       case `$CC -V 2>&1` in
+       *"Compilers 5.0"*)
+         wlarc=''
+         archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
+         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
+         ;;
+       *)
+         wlarc='$wl'
+         archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
+         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+         ;;
+       esac
+      fi
+      hardcode_libdir_flag_spec='-R$libdir'
+      hardcode_shlibpath_var=no
+      case $host_os in
+      solaris2.[0-5] | solaris2.[0-5].*) ;;
+      *)
+       # The compiler driver will combine and reorder linker options,
+       # but understands '-z linker_flag'.  GCC discards it without '$wl',
+       # but is careful enough not to reorder.
+       # Supported since Solaris 2.6 (maybe 2.5.1?)
+       if test yes = "$GCC"; then
+         whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
+       else
+         whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
+       fi
+       ;;
+      esac
+      link_all_deplibs=yes
+      ;;
+
+    sunos4*)
+      if test sequent = "$host_vendor"; then
+       # Use $CC to link under sequent, because it throws in some extra .o
+       # files that make .init and .fini sections work.
+       archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+      else
+       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+      fi
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_direct=yes
+      hardcode_minus_L=yes
+      hardcode_shlibpath_var=no
+      ;;
+
+    sysv4)
+      case $host_vendor in
+       sni)
+         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+         hardcode_direct=yes # is this really true???
+       ;;
+       siemens)
+         ## LD is ld it makes a PLAMLIB
+         ## CC just makes a GrossModule.
+         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+         reload_cmds='$CC -r -o $output$reload_objs'
+         hardcode_direct=no
+        ;;
+       motorola)
+         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
+       ;;
+      esac
+      runpath_var='LD_RUN_PATH'
+      hardcode_shlibpath_var=no
+      ;;
+
+    sysv4.3*)
+      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_shlibpath_var=no
+      export_dynamic_flag_spec='-Bexport'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec; then
+       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+       hardcode_shlibpath_var=no
+       runpath_var=LD_RUN_PATH
+       hardcode_runpath_var=yes
+       ld_shlibs=yes
+      fi
+      ;;
+
+    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
+      no_undefined_flag='$wl-z,text'
+      archive_cmds_need_lc=no
+      hardcode_shlibpath_var=no
+      runpath_var='LD_RUN_PATH'
+
+      if test yes = "$GCC"; then
+       archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+       archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+      else
+       archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+       archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+      fi
+      ;;
+
+    sysv5* | sco3.2v5* | sco5v6*)
+      # Note: We CANNOT use -z defs as we might desire, because we do not
+      # link with -lc, and that would cause any symbols used from libc to
+      # always be unresolved, which means just about no library would
+      # ever link correctly.  If we're not using GNU ld we use -z text
+      # though, which does catch some bad symbols but isn't as heavy-handed
+      # as -z defs.
+      no_undefined_flag='$wl-z,text'
+      allow_undefined_flag='$wl-z,nodefs'
+      archive_cmds_need_lc=no
+      hardcode_shlibpath_var=no
+      hardcode_libdir_flag_spec='$wl-R,$libdir'
+      hardcode_libdir_separator=':'
+      link_all_deplibs=yes
+      export_dynamic_flag_spec='$wl-Bexport'
+      runpath_var='LD_RUN_PATH'
+
+      if test yes = "$GCC"; then
+       archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+       archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+      else
+       archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+       archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+      fi
+      ;;
+
+    uts4*)
+      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      hardcode_libdir_flag_spec='-L$libdir'
+      hardcode_shlibpath_var=no
+      ;;
+
+    *)
+      ld_shlibs=no
+      ;;
+    esac
+
+    if test sni = "$host_vendor"; then
+      case $host in
+      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+       export_dynamic_flag_spec='$wl-Blargedynsym'
+       ;;
+      esac
+    fi
+  fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
+$as_echo "$ld_shlibs" >&6; }
+test no = "$ld_shlibs" && can_build_shared=no
+
+with_gnu_ld=$with_gnu_ld
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+#
+# Do we need to explicitly link libc?
+#
+case "x$archive_cmds_need_lc" in
+x|xyes)
+  # Assume -lc should be added
+  archive_cmds_need_lc=yes
+
+  if test yes,yes = "$GCC,$enable_shared"; then
+    case $archive_cmds in
+    *'~'*)
+      # FIXME: we may have to deal with multi-command sequences.
+      ;;
+    '$CC '*)
+      # Test whether the compiler implicitly links with -lc since on some
+      # systems, -lgcc has to come before -lc. If gcc already passes -lc
+      # to ld, don't add -lc before -lgcc.
+      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
+$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
+if ${lt_cv_archive_cmds_need_lc+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  $RM conftest*
+       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } 2>conftest.err; then
+         soname=conftest
+         lib=conftest
+         libobjs=conftest.$ac_objext
+         deplibs=
+         wl=$lt_prog_compiler_wl
+         pic_flag=$lt_prog_compiler_pic
+         compiler_flags=-v
+         linker_flags=-v
+         verstring=
+         output_objdir=.
+         libname=conftest
+         lt_save_allow_undefined_flag=$allow_undefined_flag
+         allow_undefined_flag=
+         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
+  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }
+         then
+           lt_cv_archive_cmds_need_lc=no
+         else
+           lt_cv_archive_cmds_need_lc=yes
+         fi
+         allow_undefined_flag=$lt_save_allow_undefined_flag
+       else
+         cat conftest.err 1>&5
+       fi
+       $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
+$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
+      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
+      ;;
+    esac
+  fi
+  ;;
+esac
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
+$as_echo_n "checking dynamic linker characteristics... " >&6; }
+
+if test yes = "$GCC"; then
+  case $host_os in
+    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
+    *) lt_awk_arg='/^libraries:/' ;;
+  esac
+  case $host_os in
+    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
+    *) lt_sed_strip_eq='s|=/|/|g' ;;
+  esac
+  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
+  case $lt_search_path_spec in
+  *\;*)
+    # if the path contains ";" then we assume it to be the separator
+    # otherwise default to the standard path separator (i.e. ":") - it is
+    # assumed that no part of a normal pathname contains ";" but that should
+    # okay in the real world where ";" in dirpaths is itself problematic.
+    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
+    ;;
+  *)
+    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
+    ;;
+  esac
+  # Ok, now we have the path, separated by spaces, we can step through it
+  # and add multilib dir if necessary...
+  lt_tmp_lt_search_path_spec=
+  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
+  # ...but if some path component already ends with the multilib dir we assume
+  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
+  case "$lt_multi_os_dir; $lt_search_path_spec " in
+  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
+    lt_multi_os_dir=
+    ;;
+  esac
+  for lt_sys_path in $lt_search_path_spec; do
+    if test -d "$lt_sys_path$lt_multi_os_dir"; then
+      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
+    elif test -n "$lt_multi_os_dir"; then
+      test -d "$lt_sys_path" && \
+       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
+    fi
+  done
+  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
+BEGIN {RS = " "; FS = "/|\n";} {
+  lt_foo = "";
+  lt_count = 0;
+  for (lt_i = NF; lt_i > 0; lt_i--) {
+    if ($lt_i != "" && $lt_i != ".") {
+      if ($lt_i == "..") {
+        lt_count++;
+      } else {
+        if (lt_count == 0) {
+          lt_foo = "/" $lt_i lt_foo;
+        } else {
+          lt_count--;
+        }
+      }
+    }
+  }
+  if (lt_foo != "") { lt_freq[lt_foo]++; }
+  if (lt_freq[lt_foo] == 1) { print lt_foo; }
+}'`
+  # AWK program above erroneously prepends '/' to C:/dos/paths
+  # for these hosts.
+  case $host_os in
+    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
+      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
+  esac
+  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
+else
+  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+fi
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=.so
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
+  shlibpath_var=LIBPATH
+
+  # AIX 3 has no versioning support, so we append a major version to the name.
+  soname_spec='$libname$release$shared_ext$major'
+  ;;
+
+aix[4-9]*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  hardcode_into_libs=yes
+  if test ia64 = "$host_cpu"; then
+    # AIX 5 supports IA64
+    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
+    shlibpath_var=LD_LIBRARY_PATH
+  else
+    # With GCC up to 2.95.x, collect2 would create an import file
+    # for dependence libraries.  The import file would start with
+    # the line '#! .'.  This would cause the generated library to
+    # depend on '.', always an invalid library.  This was fixed in
+    # development snapshots of GCC prior to 3.0.
+    case $host_os in
+      aix4 | aix4.[01] | aix4.[01].*)
+      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+          echo ' yes '
+          echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
+       :
+      else
+       can_build_shared=no
+      fi
+      ;;
+    esac
+    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
+    # soname into executable. Probably we can add versioning support to
+    # collect2, so additional links can be useful in future.
+    if test yes = "$aix_use_runtimelinking"; then
+      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+      # instead of lib<name>.a to let people know that these are not
+      # typical AIX shared libraries.
+      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    else
+      # We preserve .a as extension for shared libraries through AIX4.2
+      # and later when we are not doing run time linking.
+      library_names_spec='$libname$release.a $libname.a'
+      soname_spec='$libname$release$shared_ext$major'
+    fi
+    shlibpath_var=LIBPATH
+  fi
+  ;;
+
+amigaos*)
+  case $host_cpu in
+  powerpc)
+    # Since July 2007 AmigaOS4 officially supports .so libraries.
+    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    ;;
+  m68k)
+    library_names_spec='$libname.ixlibrary $libname.a'
+    # Create ${libname}_ixlibrary.a entries in /sys/libs.
+    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+    ;;
+  esac
+  ;;
+
+beos*)
+  library_names_spec='$libname$shared_ext'
+  dynamic_linker="$host_os ld.so"
+  shlibpath_var=LIBRARY_PATH
+  ;;
+
+bsdi[45]*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+  # the default ld.so.conf also contains /usr/contrib/lib and
+  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+  # libtool to hard-code these into programs
+  ;;
+
+cygwin* | mingw* | pw32* | cegcc*)
+  version_type=windows
+  shrext_cmds=.dll
+  need_version=no
+  need_lib_prefix=no
+
+  case $GCC,$cc_basename in
+  yes,*)
+    # gcc
+    library_names_spec='$libname.dll.a'
+    # DLL is installed to $(libdir)/../bin by postinstall_cmds
+    postinstall_cmds='base_file=`basename \$file`~
+      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
+      dldir=$destdir/`dirname \$dlpath`~
+      test -d \$dldir || mkdir -p \$dldir~
+      $install_prog $dir/$dlname \$dldir/$dlname~
+      chmod a+x \$dldir/$dlname~
+      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+      fi'
+    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+      dlpath=$dir/\$dldll~
+       $RM \$dlpath'
+    shlibpath_overrides_runpath=yes
+
+    case $host_os in
+    cygwin*)
+      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
+
+      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
+      ;;
+    mingw* | cegcc*)
+      # MinGW DLLs use traditional 'lib' prefix
+      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
+      ;;
+    pw32*)
+      # pw32 DLLs use 'pw' prefix rather than 'lib'
+      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
+      ;;
+    esac
+    dynamic_linker='Win32 ld.exe'
+    ;;
+
+  *,cl*)
+    # Native MSVC
+    libname_spec='$name'
+    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
+    library_names_spec='$libname.dll.lib'
+
+    case $build_os in
+    mingw*)
+      sys_lib_search_path_spec=
+      lt_save_ifs=$IFS
+      IFS=';'
+      for lt_path in $LIB
+      do
+        IFS=$lt_save_ifs
+        # Let DOS variable expansion print the short 8.3 style file name.
+        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
+        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
+      done
+      IFS=$lt_save_ifs
+      # Convert to MSYS style.
+      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
+      ;;
+    cygwin*)
+      # Convert to unix form, then to dos form, then back to unix form
+      # but this time dos style (no spaces!) so that the unix form looks
+      # like /cygdrive/c/PROGRA~1:/cygdr...
+      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
+      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
+      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+      ;;
+    *)
+      sys_lib_search_path_spec=$LIB
+      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
+        # It is most probably a Windows format PATH.
+        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+      else
+        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+      fi
+      # FIXME: find the short name or the path components, as spaces are
+      # common. (e.g. "Program Files" -> "PROGRA~1")
+      ;;
+    esac
+
+    # DLL is installed to $(libdir)/../bin by postinstall_cmds
+    postinstall_cmds='base_file=`basename \$file`~
+      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
+      dldir=$destdir/`dirname \$dlpath`~
+      test -d \$dldir || mkdir -p \$dldir~
+      $install_prog $dir/$dlname \$dldir/$dlname'
+    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+      dlpath=$dir/\$dldll~
+       $RM \$dlpath'
+    shlibpath_overrides_runpath=yes
+    dynamic_linker='Win32 link.exe'
+    ;;
+
+  *)
+    # Assume MSVC wrapper
+    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
+    dynamic_linker='Win32 ld.exe'
+    ;;
+  esac
+  # FIXME: first we should search . and the directory the executable is in
+  shlibpath_var=PATH
+  ;;
+
+darwin* | rhapsody*)
+  dynamic_linker="$host_os dyld"
+  version_type=darwin
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
+  soname_spec='$libname$release$major$shared_ext'
+  shlibpath_overrides_runpath=yes
+  shlibpath_var=DYLD_LIBRARY_PATH
+  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
+
+  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
+  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+  ;;
+
+dgux*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+freebsd* | dragonfly*)
+  # DragonFly does not have aout.  When/if they implement a new
+  # versioning mechanism, adjust this.
+  if test -x /usr/bin/objformat; then
+    objformat=`/usr/bin/objformat`
+  else
+    case $host_os in
+    freebsd[23].*) objformat=aout ;;
+    *) objformat=elf ;;
+    esac
+  fi
+  version_type=freebsd-$objformat
+  case $version_type in
+    freebsd-elf*)
+      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
+      need_version=no
+      need_lib_prefix=no
+      ;;
+    freebsd-*)
+      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
+      need_version=yes
+      ;;
+  esac
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_os in
+  freebsd2.*)
+    shlibpath_overrides_runpath=yes
+    ;;
+  freebsd3.[01]* | freebsdelf3.[01]*)
+    shlibpath_overrides_runpath=yes
+    hardcode_into_libs=yes
+    ;;
+  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
+  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
+    shlibpath_overrides_runpath=no
+    hardcode_into_libs=yes
+    ;;
+  *) # from 4.6 on, and DragonFly
+    shlibpath_overrides_runpath=yes
+    hardcode_into_libs=yes
+    ;;
+  esac
+  ;;
+
+haiku*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  dynamic_linker="$host_os runtime_loader"
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
+  hardcode_into_libs=yes
+  ;;
+
+hpux9* | hpux10* | hpux11*)
+  # Give a soname corresponding to the major version so that dld.sl refuses to
+  # link against other versions.
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  case $host_cpu in
+  ia64*)
+    shrext_cmds='.so'
+    hardcode_into_libs=yes
+    dynamic_linker="$host_os dld.so"
+    shlibpath_var=LD_LIBRARY_PATH
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    soname_spec='$libname$release$shared_ext$major'
+    if test 32 = "$HPUX_IA64_MODE"; then
+      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+    else
+      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+    fi
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+    ;;
+  hppa*64*)
+    shrext_cmds='.sl'
+    hardcode_into_libs=yes
+    dynamic_linker="$host_os dld.sl"
+    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    soname_spec='$libname$release$shared_ext$major'
+    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+    ;;
+  *)
+    shrext_cmds='.sl'
+    dynamic_linker="$host_os dld.sl"
+    shlibpath_var=SHLIB_PATH
+    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    soname_spec='$libname$release$shared_ext$major'
+    ;;
+  esac
+  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
+  postinstall_cmds='chmod 555 $lib'
+  # or fails outright, so override atomically:
+  install_override_mode=555
+  ;;
+
+interix[3-9]*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $host_os in
+    nonstopux*) version_type=nonstopux ;;
+    *)
+       if test yes = "$lt_cv_prog_gnu_ld"; then
+               version_type=linux # correct to gnu/linux during the next big refactor
+       else
+               version_type=irix
+       fi ;;
+  esac
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='$libname$release$shared_ext$major'
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
+  case $host_os in
+  irix5* | nonstopux*)
+    libsuff= shlibsuff=
+    ;;
+  *)
+    case $LD in # libtool.m4 will add one of these switches to LD
+    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+      libsuff= shlibsuff= libmagic=32-bit;;
+    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+      libsuff=32 shlibsuff=N32 libmagic=N32;;
+    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+      libsuff=64 shlibsuff=64 libmagic=64-bit;;
+    *) libsuff= shlibsuff= libmagic=never-match;;
+    esac
+    ;;
+  esac
+  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+  shlibpath_overrides_runpath=no
+  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
+  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
+  hardcode_into_libs=yes
+  ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+  dynamic_linker=no
+  ;;
+
+linux*android*)
+  version_type=none # Android doesn't support versioned libraries.
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext'
+  soname_spec='$libname$release$shared_ext'
+  finish_cmds=
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+
+  # This implies no fast_install, which is unacceptable.
+  # Some rework will be needed to allow for fast_install
+  # before this can be enabled.
+  hardcode_into_libs=yes
+
+  dynamic_linker='Android linker'
+  # Don't embed -rpath directories since the linker doesn't support them.
+  hardcode_libdir_flag_spec='-L$libdir'
+  ;;
+
+# This must be glibc/ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+
+  # Some binutils ld are patched to set DT_RUNPATH
+  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_shlibpath_overrides_runpath=no
+    save_LDFLAGS=$LDFLAGS
+    save_libdir=$libdir
+    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
+        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
+    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
+  lt_cv_shlibpath_overrides_runpath=yes
+fi
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+    LDFLAGS=$save_LDFLAGS
+    libdir=$save_libdir
+
+fi
+
+  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
+
+  # This implies no fast_install, which is unacceptable.
+  # Some rework will be needed to allow for fast_install
+  # before this can be enabled.
+  hardcode_into_libs=yes
+
+  # Append ld.so.conf contents to the search path
+  if test -f /etc/ld.so.conf; then
+    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
+    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+  fi
+
+  # We used to test for /lib/ld.so.1 and disable shared libraries on
+  # powerpc, because MkLinux only supported shared libraries with the
+  # GNU dynamic linker.  Since this was broken with cross compilers,
+  # most powerpc-linux boxes support dynamic linking these days and
+  # people can always --disable-shared, the test was removed, and we
+  # assume the GNU/Linux dynamic linker is in use.
+  dynamic_linker='GNU/Linux ld.so'
+  ;;
+
+netbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
+    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+    dynamic_linker='NetBSD (a.out) ld.so'
+  else
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    soname_spec='$libname$release$shared_ext$major'
+    dynamic_linker='NetBSD ld.elf_so'
+  fi
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  ;;
+
+newsos6)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+*nto* | *qnx*)
+  version_type=qnx
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='ldqnx.so'
+  ;;
+
+openbsd* | bitrig*)
+  version_type=sunos
+  sys_lib_dlsearch_path_spec=/usr/lib
+  need_lib_prefix=no
+  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
+    need_version=no
+  else
+    need_version=yes
+  fi
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+os2*)
+  libname_spec='$name'
+  shrext_cmds=.dll
+  need_lib_prefix=no
+  library_names_spec='$libname$shared_ext $libname.a'
+  dynamic_linker='OS/2 ld.exe'
+  shlibpath_var=LIBPATH
+  ;;
+
+osf3* | osf4* | osf5*)
+  version_type=osf
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='$libname$release$shared_ext$major'
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+  ;;
+
+rdos*)
+  dynamic_linker=no
+  ;;
+
+solaris*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  # ldd complains unless libraries are executable
+  postinstall_cmds='chmod +x $lib'
+  ;;
+
+sunos4*)
+  version_type=sunos
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
+  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  if test yes = "$with_gnu_ld"; then
+    need_lib_prefix=no
+  fi
+  need_version=yes
+  ;;
+
+sysv4 | sysv4.3*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_vendor in
+    sni)
+      shlibpath_overrides_runpath=no
+      need_lib_prefix=no
+      runpath_var=LD_RUN_PATH
+      ;;
+    siemens)
+      need_lib_prefix=no
+      ;;
+    motorola)
+      need_lib_prefix=no
+      need_version=no
+      shlibpath_overrides_runpath=no
+      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+      ;;
+  esac
+  ;;
+
+sysv4*MP*)
+  if test -d /usr/nec; then
+    version_type=linux # correct to gnu/linux during the next big refactor
+    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
+    soname_spec='$libname$shared_ext.$major'
+    shlibpath_var=LD_LIBRARY_PATH
+  fi
+  ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+  version_type=freebsd-elf
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  if test yes = "$with_gnu_ld"; then
+    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
+  else
+    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
+    case $host_os in
+      sco3.2v5*)
+        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
+       ;;
+    esac
+  fi
+  sys_lib_dlsearch_path_spec='/usr/lib'
+  ;;
+
+tpf*)
+  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  ;;
+
+uts4*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+*)
+  dynamic_linker=no
+  ;;
+esac
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
+$as_echo "$dynamic_linker" >&6; }
+test no = "$dynamic_linker" && can_build_shared=no
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test yes = "$GCC"; then
+  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
+  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
+fi
+if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
+  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
+$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
+hardcode_action=
+if test -n "$hardcode_libdir_flag_spec" ||
+   test -n "$runpath_var" ||
+   test yes = "$hardcode_automatic"; then
+
+  # We can hardcode non-existent directories.
+  if test no != "$hardcode_direct" &&
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we
+     # have to relink, otherwise we might link with an installed library
+     # when we should be linking with a yet-to-be-installed one
+     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
+     test no != "$hardcode_minus_L"; then
+    # Linking always hardcodes the temporary library directory.
+    hardcode_action=relink
+  else
+    # We can link without hardcoding, and we can hardcode nonexisting dirs.
+    hardcode_action=immediate
+  fi
+else
+  # We cannot hardcode anything, or else we can only hardcode existing
+  # directories.
+  hardcode_action=unsupported
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
+$as_echo "$hardcode_action" >&6; }
+
+if test relink = "$hardcode_action" ||
+   test yes = "$inherit_rpath"; then
+  # Fast installation is not supported
+  enable_fast_install=no
+elif test yes = "$shlibpath_overrides_runpath" ||
+     test no = "$enable_shared"; then
+  # Fast installation is not necessary
+  enable_fast_install=needless
+fi
+
+
+
+
+
+
+  if test yes != "$enable_dlopen"; then
+  enable_dlopen=unknown
+  enable_dlopen_self=unknown
+  enable_dlopen_self_static=unknown
+else
+  lt_cv_dlopen=no
+  lt_cv_dlopen_libs=
+
+  case $host_os in
+  beos*)
+    lt_cv_dlopen=load_add_on
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=yes
+    ;;
+
+  mingw* | pw32* | cegcc*)
+    lt_cv_dlopen=LoadLibrary
+    lt_cv_dlopen_libs=
+    ;;
+
+  cygwin*)
+    lt_cv_dlopen=dlopen
+    lt_cv_dlopen_libs=
+    ;;
+
+  darwin*)
+    # if libdl is installed we need to link against it
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
+$as_echo_n "checking for dlopen in -ldl... " >&6; }
+if ${ac_cv_lib_dl_dlopen+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl  $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_lib_dl_dlopen=yes
+else
+  ac_cv_lib_dl_dlopen=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
+  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
+else
+
+    lt_cv_dlopen=dyld
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=yes
+
+fi
+
+    ;;
+
+  tpf*)
+    # Don't try to run any link tests for TPF.  We know it's impossible
+    # because TPF is a cross-compiler, and we know how we open DSOs.
+    lt_cv_dlopen=dlopen
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=no
+    ;;
+
+  *)
+    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
+if test "x$ac_cv_func_shl_load" = xyes; then :
+  lt_cv_dlopen=shl_load
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
+$as_echo_n "checking for shl_load in -ldld... " >&6; }
+if ${ac_cv_lib_dld_shl_load+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld  $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char shl_load ();
+int
+main ()
+{
+return shl_load ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_lib_dld_shl_load=yes
+else
+  ac_cv_lib_dld_shl_load=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
+$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
+if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
+  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
+else
+  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
+if test "x$ac_cv_func_dlopen" = xyes; then :
+  lt_cv_dlopen=dlopen
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
+$as_echo_n "checking for dlopen in -ldl... " >&6; }
+if ${ac_cv_lib_dl_dlopen+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl  $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_lib_dl_dlopen=yes
+else
+  ac_cv_lib_dl_dlopen=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
+  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
+$as_echo_n "checking for dlopen in -lsvld... " >&6; }
+if ${ac_cv_lib_svld_dlopen+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsvld  $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_lib_svld_dlopen=yes
+else
+  ac_cv_lib_svld_dlopen=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
+$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
+if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
+  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
+$as_echo_n "checking for dld_link in -ldld... " >&6; }
+if ${ac_cv_lib_dld_dld_link+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld  $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dld_link ();
+int
+main ()
+{
+return dld_link ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_lib_dld_dld_link=yes
+else
+  ac_cv_lib_dld_dld_link=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
+$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
+if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
+  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+    ;;
+  esac
+
+  if test no = "$lt_cv_dlopen"; then
+    enable_dlopen=no
+  else
+    enable_dlopen=yes
+  fi
+
+  case $lt_cv_dlopen in
+  dlopen)
+    save_CPPFLAGS=$CPPFLAGS
+    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+
+    save_LDFLAGS=$LDFLAGS
+    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
+
+    save_LIBS=$LIBS
+    LIBS="$lt_cv_dlopen_libs $LIBS"
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
+$as_echo_n "checking whether a program can dlopen itself... " >&6; }
+if ${lt_cv_dlopen_self+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+         if test yes = "$cross_compiling"; then :
+  lt_cv_dlopen_self=cross
+else
+  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+  lt_status=$lt_dlunknown
+  cat > conftest.$ac_ext <<_LT_EOF
+#line $LINENO "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+#  define LT_DLGLOBAL          RTLD_GLOBAL
+#else
+#  ifdef DL_GLOBAL
+#    define LT_DLGLOBAL                DL_GLOBAL
+#  else
+#    define LT_DLGLOBAL                0
+#  endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+#  ifdef RTLD_LAZY
+#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
+#  else
+#    ifdef DL_LAZY
+#      define LT_DLLAZY_OR_NOW         DL_LAZY
+#    else
+#      ifdef RTLD_NOW
+#        define LT_DLLAZY_OR_NOW       RTLD_NOW
+#      else
+#        ifdef DL_NOW
+#          define LT_DLLAZY_OR_NOW     DL_NOW
+#        else
+#          define LT_DLLAZY_OR_NOW     0
+#        endif
+#      endif
+#    endif
+#  endif
+#endif
+
+/* When -fvisbility=hidden is used, assume the code has been annotated
+   correspondingly for the symbols needed.  */
+#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
+int fnord () __attribute__((visibility("default")));
+#endif
+
+int fnord () { return 42; }
+int main ()
+{
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+  int status = $lt_dlunknown;
+
+  if (self)
+    {
+      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
+      else
+        {
+         if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
+          else puts (dlerror ());
+       }
+      /* dlclose (self); */
+    }
+  else
+    puts (dlerror ());
+
+  return status;
+}
+_LT_EOF
+  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
+    (./conftest; exit; ) >&5 2>/dev/null
+    lt_status=$?
+    case x$lt_status in
+      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
+      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
+      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
+    esac
+  else :
+    # compilation failed
+    lt_cv_dlopen_self=no
+  fi
+fi
+rm -fr conftest*
+
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
+$as_echo "$lt_cv_dlopen_self" >&6; }
+
+    if test yes = "$lt_cv_dlopen_self"; then
+      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
+      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
+$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
+if ${lt_cv_dlopen_self_static+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+         if test yes = "$cross_compiling"; then :
+  lt_cv_dlopen_self_static=cross
+else
+  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+  lt_status=$lt_dlunknown
+  cat > conftest.$ac_ext <<_LT_EOF
+#line $LINENO "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+#  define LT_DLGLOBAL          RTLD_GLOBAL
+#else
+#  ifdef DL_GLOBAL
+#    define LT_DLGLOBAL                DL_GLOBAL
+#  else
+#    define LT_DLGLOBAL                0
+#  endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+#  ifdef RTLD_LAZY
+#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
+#  else
+#    ifdef DL_LAZY
+#      define LT_DLLAZY_OR_NOW         DL_LAZY
+#    else
+#      ifdef RTLD_NOW
+#        define LT_DLLAZY_OR_NOW       RTLD_NOW
+#      else
+#        ifdef DL_NOW
+#          define LT_DLLAZY_OR_NOW     DL_NOW
+#        else
+#          define LT_DLLAZY_OR_NOW     0
+#        endif
+#      endif
+#    endif
+#  endif
+#endif
+
+/* When -fvisbility=hidden is used, assume the code has been annotated
+   correspondingly for the symbols needed.  */
+#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
+int fnord () __attribute__((visibility("default")));
+#endif
+
+int fnord () { return 42; }
+int main ()
+{
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+  int status = $lt_dlunknown;
+
+  if (self)
+    {
+      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
+      else
+        {
+         if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
+          else puts (dlerror ());
+       }
+      /* dlclose (self); */
+    }
+  else
+    puts (dlerror ());
+
+  return status;
+}
+_LT_EOF
+  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
+  (eval $ac_link) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
+    (./conftest; exit; ) >&5 2>/dev/null
+    lt_status=$?
+    case x$lt_status in
+      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
+      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
+      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
+    esac
+  else :
+    # compilation failed
+    lt_cv_dlopen_self_static=no
+  fi
+fi
+rm -fr conftest*
+
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
+$as_echo "$lt_cv_dlopen_self_static" >&6; }
+    fi
+
+    CPPFLAGS=$save_CPPFLAGS
+    LDFLAGS=$save_LDFLAGS
+    LIBS=$save_LIBS
+    ;;
+  esac
+
+  case $lt_cv_dlopen_self in
+  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+  *) enable_dlopen_self=unknown ;;
+  esac
+
+  case $lt_cv_dlopen_self_static in
+  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+  *) enable_dlopen_self_static=unknown ;;
+  esac
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+striplib=
+old_striplib=
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
+$as_echo_n "checking whether stripping libraries is possible... " >&6; }
+if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
+  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+  case $host_os in
+  darwin*)
+    if test -n "$STRIP"; then
+      striplib="$STRIP -x"
+      old_striplib="$STRIP -S"
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+    else
+      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    fi
+    ;;
+  *)
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+    ;;
+  esac
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+  # Report what library types will actually be built
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
+$as_echo_n "checking if libtool supports shared libraries... " >&6; }
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
+$as_echo "$can_build_shared" >&6; }
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
+$as_echo_n "checking whether to build shared libraries... " >&6; }
+  test no = "$can_build_shared" && enable_shared=no
+
+  # On AIX, shared libraries and static libraries use the same namespace, and
+  # are all built from PIC.
+  case $host_os in
+  aix3*)
+    test yes = "$enable_shared" && enable_static=no
+    if test -n "$RANLIB"; then
+      archive_cmds="$archive_cmds~\$RANLIB \$lib"
+      postinstall_cmds='$RANLIB $lib'
+    fi
+    ;;
+
+  aix[4-9]*)
+    if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
+      test yes = "$enable_shared" && enable_static=no
+    fi
+    ;;
+  esac
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
+$as_echo "$enable_shared" >&6; }
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
+$as_echo_n "checking whether to build static libraries... " >&6; }
+  # Make sure either enable_shared or enable_static is yes.
+  test yes = "$enable_shared" || enable_static=yes
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
+$as_echo "$enable_static" >&6; }
+
+
+
+
+fi
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+CC=$lt_save_CC
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+        ac_config_commands="$ac_config_commands libtool"
+
+
+
+
+# Only expand once:
+
+
+
+# Check for programs
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_CC="${ac_tool_prefix}gcc"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+  ac_ct_CC=$CC
+  # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_CC+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_CC"; then
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_CC="gcc"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_CC" = x; then
+    CC=""
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    CC=$ac_ct_CC
+  fi
+else
+  CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+          if test -n "$ac_tool_prefix"; then
+    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_CC="${ac_tool_prefix}cc"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  fi
+fi
+if test -z "$CC"; then
+  # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+  ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+       ac_prog_rejected=yes
+       continue
+     fi
+    ac_cv_prog_CC="cc"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+if test $ac_prog_rejected = yes; then
+  # We found a bogon in the path, so make sure we never use it.
+  set dummy $ac_cv_prog_CC
+  shift
+  if test $# != 0; then
+    # We chose a different compiler from the bogus one.
+    # However, it has the same basename, so the bogon will be chosen
+    # first if we set CC to just the basename; use the full file name.
+    shift
+    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+  fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$CC"; then
+  if test -n "$ac_tool_prefix"; then
+  for ac_prog in cl.exe
+  do
+    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$CC"; then
+  ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+    test -n "$CC" && break
+  done
+fi
+if test -z "$CC"; then
+  ac_ct_CC=$CC
+  for ac_prog in cl.exe
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_CC+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_CC"; then
+  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_CC="$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  test -n "$ac_ct_CC" && break
+done
+
+  if test "x$ac_ct_CC" = x; then
+    CC=""
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    CC=$ac_ct_CC
+  fi
+fi
+
+fi
+
+
+test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "no acceptable C compiler found in \$PATH
+See \`config.log' for more details" "$LINENO" 5; }
+
+# Provide some information about the compiler.
+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+for ac_option in --version -v -V -qversion; do
+  { { ac_try="$ac_compiler $ac_option >&5"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
+  ac_status=$?
+  if test -s conftest.err; then
+    sed '10a\
+... rest of stderr output deleted ...
+         10q' conftest.err >conftest.er1
+    cat conftest.er1 >&5
+  fi
+  rm -f conftest.er1 conftest.err
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }
+done
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
+if ${ac_cv_c_compiler_gnu+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+#ifndef __GNUC__
+       choke me
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_compiler_gnu=yes
+else
+  ac_compiler_gnu=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
+if test $ac_compiler_gnu = yes; then
+  GCC=yes
+else
+  GCC=
+fi
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
+$as_echo_n "checking whether $CC accepts -g... " >&6; }
+if ${ac_cv_prog_cc_g+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_save_c_werror_flag=$ac_c_werror_flag
+   ac_c_werror_flag=yes
+   ac_cv_prog_cc_g=no
+   CFLAGS="-g"
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_cv_prog_cc_g=yes
+else
+  CFLAGS=""
+      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+  ac_c_werror_flag=$ac_save_c_werror_flag
+        CFLAGS="-g"
+        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+  ac_cv_prog_cc_g=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+   ac_c_werror_flag=$ac_save_c_werror_flag
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
+$as_echo "$ac_cv_prog_cc_g" >&6; }
+if test "$ac_test_CFLAGS" = set; then
+  CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+  if test "$GCC" = yes; then
+    CFLAGS="-g -O2"
+  else
+    CFLAGS="-g"
+  fi
+else
+  if test "$GCC" = yes; then
+    CFLAGS="-O2"
+  else
+    CFLAGS=
+  fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
+$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
+if ${ac_cv_prog_cc_c89+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_cv_prog_cc_c89=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <stdarg.h>
+#include <stdio.h>
+struct stat;
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+     char **p;
+     int i;
+{
+  return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+  char *s;
+  va_list v;
+  va_start (v,p);
+  s = g (p, va_arg (v,int));
+  va_end (v);
+  return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
+   function prototypes and stuff, but not '\xHH' hex character constants.
+   These don't provoke an error unfortunately, instead are silently treated
+   as 'x'.  The following induces an error, until -std is added to get
+   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
+   array size at least.  It's necessary to write '\x00'==0 to get something
+   that's true only with -std.  */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
+   inside strings and character constants.  */
+#define FOO(x) 'x'
+int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
+  ;
+  return 0;
+}
+_ACEOF
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
+       -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+  CC="$ac_save_CC $ac_arg"
+  if ac_fn_c_try_compile "$LINENO"; then :
+  ac_cv_prog_cc_c89=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext
+  test "x$ac_cv_prog_cc_c89" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+
+fi
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c89" in
+  x)
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+$as_echo "none needed" >&6; } ;;
+  xno)
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+$as_echo "unsupported" >&6; } ;;
+  *)
+    CC="$CC $ac_cv_prog_cc_c89"
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
+$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
+esac
+if test "x$ac_cv_prog_cc_c89" != xno; then :
+
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
+$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
+if ${am_cv_prog_cc_c_o+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+  # Make sure it works both with $CC and with simple cc.
+  # Following AC_PROG_CC_C_O, we do the test twice because some
+  # compilers refuse to overwrite an existing .o file with -o,
+  # though they will create one.
+  am_cv_prog_cc_c_o=yes
+  for am_i in 1 2; do
+    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
+   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); } \
+         && test -f conftest2.$ac_objext; then
+      : OK
+    else
+      am_cv_prog_cc_c_o=no
+      break
+    fi
+  done
+  rm -f core conftest*
+  unset am_i
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
+$as_echo "$am_cv_prog_cc_c_o" >&6; }
+if test "$am_cv_prog_cc_c_o" != yes; then
+   # Losing compiler, so override with the script.
+   # FIXME: It is wrong to rewrite CC.
+   # But if we don't then we get into trouble of one sort or another.
+   # A longer-term fix would be to have automake use am__CC in this case,
+   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
+   CC="$am_aux_dir/compile $CC"
+fi
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+depcc="$CC"   am_compiler_list=
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
+$as_echo_n "checking dependency style of $depcc... " >&6; }
+if ${am_cv_CC_dependencies_compiler_type+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+  # We make a subdir and do the tests there.  Otherwise we can end up
+  # making bogus files that we don't know about and never remove.  For
+  # instance it was reported that on HP-UX the gcc test will end up
+  # making a dummy file named 'D' -- because '-MD' means "put the output
+  # in D".
+  rm -rf conftest.dir
+  mkdir conftest.dir
+  # Copy depcomp to subdir because otherwise we won't find it if we're
+  # using a relative directory.
+  cp "$am_depcomp" conftest.dir
+  cd conftest.dir
+  # We will build objects and dependencies in a subdirectory because
+  # it helps to detect inapplicable dependency modes.  For instance
+  # both Tru64's cc and ICC support -MD to output dependencies as a
+  # side effect of compilation, but ICC will put the dependencies in
+  # the current directory while Tru64 will put them in the object
+  # directory.
+  mkdir sub
+
+  am_cv_CC_dependencies_compiler_type=none
+  if test "$am_compiler_list" = ""; then
+     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+  fi
+  am__universal=false
+  case " $depcc " in #(
+     *\ -arch\ *\ -arch\ *) am__universal=true ;;
+     esac
+
+  for depmode in $am_compiler_list; do
+    # Setup a source with many dependencies, because some compilers
+    # like to wrap large dependency lists on column 80 (with \), and
+    # we should not choose a depcomp mode which is confused by this.
+    #
+    # We need to recreate these files for each test, as the compiler may
+    # overwrite some of them when testing with obscure command lines.
+    # This happens at least with the AIX C compiler.
+    : > sub/conftest.c
+    for i in 1 2 3 4 5 6; do
+      echo '#include "conftst'$i'.h"' >> sub/conftest.c
+      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
+      # Solaris 10 /bin/sh.
+      echo '/* dummy */' > sub/conftst$i.h
+    done
+    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+    # We check with '-c' and '-o' for the sake of the "dashmstdout"
+    # mode.  It turns out that the SunPro C++ compiler does not properly
+    # handle '-M -o', and we need to detect this.  Also, some Intel
+    # versions had trouble with output in subdirs.
+    am__obj=sub/conftest.${OBJEXT-o}
+    am__minus_obj="-o $am__obj"
+    case $depmode in
+    gcc)
+      # This depmode causes a compiler race in universal mode.
+      test "$am__universal" = false || continue
+      ;;
+    nosideeffect)
+      # After this tag, mechanisms are not by side-effect, so they'll
+      # only be used when explicitly requested.
+      if test "x$enable_dependency_tracking" = xyes; then
+       continue
+      else
+       break
+      fi
+      ;;
+    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
+      # This compiler won't grok '-c -o', but also, the minuso test has
+      # not run yet.  These depmodes are late enough in the game, and
+      # so weak that their functioning should not be impacted.
+      am__obj=conftest.${OBJEXT-o}
+      am__minus_obj=
+      ;;
+    none) break ;;
+    esac
+    if depmode=$depmode \
+       source=sub/conftest.c object=$am__obj \
+       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
+         >/dev/null 2>conftest.err &&
+       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
+       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+      # icc doesn't choke on unknown options, it will just issue warnings
+      # or remarks (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored or not supported.
+      # When given -MP, icc 7.0 and 7.1 complain thusly:
+      #   icc: Command line warning: ignoring option '-M'; no argument required
+      # The diagnosis changed in icc 8.0:
+      #   icc: Command line remark: option '-MP' not supported
+      if (grep 'ignoring option' conftest.err ||
+          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+        am_cv_CC_dependencies_compiler_type=$depmode
+        break
+      fi
+    fi
+  done
+
+  cd ..
+  rm -rf conftest.dir
+else
+  am_cv_CC_dependencies_compiler_type=none
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
+$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
+
+ if
+  test "x$enable_dependency_tracking" != xno \
+  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
+  am__fastdepCC_TRUE=
+  am__fastdepCC_FALSE='#'
+else
+  am__fastdepCC_TRUE='#'
+  am__fastdepCC_FALSE=
+fi
+
+
+
+ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+if test -z "$CXX"; then
+  if test -n "$CCC"; then
+    CXX=$CCC
+  else
+    if test -n "$ac_tool_prefix"; then
+  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
+  do
+    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CXX+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$CXX"; then
+  ac_cv_prog_CXX="$CXX" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+CXX=$ac_cv_prog_CXX
+if test -n "$CXX"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
+$as_echo "$CXX" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+    test -n "$CXX" && break
+  done
+fi
+if test -z "$CXX"; then
+  ac_ct_CXX=$CXX
+  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_CXX+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_CXX"; then
+  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_CXX="$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
+if test -n "$ac_ct_CXX"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
+$as_echo "$ac_ct_CXX" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  test -n "$ac_ct_CXX" && break
+done
+
+  if test "x$ac_ct_CXX" = x; then
+    CXX="g++"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    CXX=$ac_ct_CXX
+  fi
+fi
+
+  fi
+fi
+# Provide some information about the compiler.
+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+for ac_option in --version -v -V -qversion; do
+  { { ac_try="$ac_compiler $ac_option >&5"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
+  ac_status=$?
+  if test -s conftest.err; then
+    sed '10a\
+... rest of stderr output deleted ...
+         10q' conftest.err >conftest.er1
+    cat conftest.er1 >&5
+  fi
+  rm -f conftest.er1 conftest.err
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }
+done
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
+$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
+if ${ac_cv_cxx_compiler_gnu+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+#ifndef __GNUC__
+       choke me
+#endif
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+  ac_compiler_gnu=yes
+else
+  ac_compiler_gnu=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
+$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
+if test $ac_compiler_gnu = yes; then
+  GXX=yes
+else
+  GXX=
+fi
+ac_test_CXXFLAGS=${CXXFLAGS+set}
+ac_save_CXXFLAGS=$CXXFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
+$as_echo_n "checking whether $CXX accepts -g... " >&6; }
+if ${ac_cv_prog_cxx_g+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
+   ac_cxx_werror_flag=yes
+   ac_cv_prog_cxx_g=no
+   CXXFLAGS="-g"
+   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+  ac_cv_prog_cxx_g=yes
+else
+  CXXFLAGS=""
+      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+
+else
+  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
+        CXXFLAGS="-g"
+        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_compile "$LINENO"; then :
+  ac_cv_prog_cxx_g=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
+$as_echo "$ac_cv_prog_cxx_g" >&6; }
+if test "$ac_test_CXXFLAGS" = set; then
+  CXXFLAGS=$ac_save_CXXFLAGS
+elif test $ac_cv_prog_cxx_g = yes; then
+  if test "$GXX" = yes; then
+    CXXFLAGS="-g -O2"
+  else
+    CXXFLAGS="-g"
+  fi
+else
+  if test "$GXX" = yes; then
+    CXXFLAGS="-O2"
+  else
+    CXXFLAGS=
+  fi
+fi
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+depcc="$CXX"  am_compiler_list=
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
+$as_echo_n "checking dependency style of $depcc... " >&6; }
+if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+  # We make a subdir and do the tests there.  Otherwise we can end up
+  # making bogus files that we don't know about and never remove.  For
+  # instance it was reported that on HP-UX the gcc test will end up
+  # making a dummy file named 'D' -- because '-MD' means "put the output
+  # in D".
+  rm -rf conftest.dir
+  mkdir conftest.dir
+  # Copy depcomp to subdir because otherwise we won't find it if we're
+  # using a relative directory.
+  cp "$am_depcomp" conftest.dir
+  cd conftest.dir
+  # We will build objects and dependencies in a subdirectory because
+  # it helps to detect inapplicable dependency modes.  For instance
+  # both Tru64's cc and ICC support -MD to output dependencies as a
+  # side effect of compilation, but ICC will put the dependencies in
+  # the current directory while Tru64 will put them in the object
+  # directory.
+  mkdir sub
+
+  am_cv_CXX_dependencies_compiler_type=none
+  if test "$am_compiler_list" = ""; then
+     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+  fi
+  am__universal=false
+  case " $depcc " in #(
+     *\ -arch\ *\ -arch\ *) am__universal=true ;;
+     esac
+
+  for depmode in $am_compiler_list; do
+    # Setup a source with many dependencies, because some compilers
+    # like to wrap large dependency lists on column 80 (with \), and
+    # we should not choose a depcomp mode which is confused by this.
+    #
+    # We need to recreate these files for each test, as the compiler may
+    # overwrite some of them when testing with obscure command lines.
+    # This happens at least with the AIX C compiler.
+    : > sub/conftest.c
+    for i in 1 2 3 4 5 6; do
+      echo '#include "conftst'$i'.h"' >> sub/conftest.c
+      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
+      # Solaris 10 /bin/sh.
+      echo '/* dummy */' > sub/conftst$i.h
+    done
+    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+    # We check with '-c' and '-o' for the sake of the "dashmstdout"
+    # mode.  It turns out that the SunPro C++ compiler does not properly
+    # handle '-M -o', and we need to detect this.  Also, some Intel
+    # versions had trouble with output in subdirs.
+    am__obj=sub/conftest.${OBJEXT-o}
+    am__minus_obj="-o $am__obj"
+    case $depmode in
+    gcc)
+      # This depmode causes a compiler race in universal mode.
+      test "$am__universal" = false || continue
+      ;;
+    nosideeffect)
+      # After this tag, mechanisms are not by side-effect, so they'll
+      # only be used when explicitly requested.
+      if test "x$enable_dependency_tracking" = xyes; then
+       continue
+      else
+       break
+      fi
+      ;;
+    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
+      # This compiler won't grok '-c -o', but also, the minuso test has
+      # not run yet.  These depmodes are late enough in the game, and
+      # so weak that their functioning should not be impacted.
+      am__obj=conftest.${OBJEXT-o}
+      am__minus_obj=
+      ;;
+    none) break ;;
+    esac
+    if depmode=$depmode \
+       source=sub/conftest.c object=$am__obj \
+       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
+         >/dev/null 2>conftest.err &&
+       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
+       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+      # icc doesn't choke on unknown options, it will just issue warnings
+      # or remarks (even with -Werror).  So we grep stderr for any message
+      # that says an option was ignored or not supported.
+      # When given -MP, icc 7.0 and 7.1 complain thusly:
+      #   icc: Command line warning: ignoring option '-M'; no argument required
+      # The diagnosis changed in icc 8.0:
+      #   icc: Command line remark: option '-MP' not supported
+      if (grep 'ignoring option' conftest.err ||
+          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+        am_cv_CXX_dependencies_compiler_type=$depmode
+        break
+      fi
+    fi
+  done
+
+  cd ..
+  rm -rf conftest.dir
+else
+  am_cv_CXX_dependencies_compiler_type=none
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
+$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
+CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
+
+ if
+  test "x$enable_dependency_tracking" != xno \
+  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
+  am__fastdepCXX_TRUE=
+  am__fastdepCXX_FALSE='#'
+else
+  am__fastdepCXX_TRUE='#'
+  am__fastdepCXX_FALSE=
+fi
+
+
+
+
+func_stripname_cnf ()
+{
+  case $2 in
+  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
+  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
+  esac
+} # func_stripname_cnf
+
+      if test -n "$CXX" && ( test no != "$CXX" &&
+    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
+    (test g++ != "$CXX"))); then
+  ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
+$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
+if test -z "$CXXCPP"; then
+  if ${ac_cv_prog_CXXCPP+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+      # Double quotes because CXXCPP needs to be expanded
+    for CXXCPP in "$CXX -E" "/lib/cpp"
+    do
+      ac_preproc_ok=false
+for ac_cxx_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+  # <limits.h> exists even on freestanding compilers.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. "Syntax error" is here to catch this case.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+                    Syntax error
+_ACEOF
+if ac_fn_cxx_try_cpp "$LINENO"; then :
+
+else
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether nonexistent headers
+  # can be detected and how.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_cxx_try_cpp "$LINENO"; then :
+  # Broken: success on invalid input.
+continue
+else
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+  break
+fi
+
+    done
+    ac_cv_prog_CXXCPP=$CXXCPP
+
+fi
+  CXXCPP=$ac_cv_prog_CXXCPP
+else
+  ac_cv_prog_CXXCPP=$CXXCPP
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
+$as_echo "$CXXCPP" >&6; }
+ac_preproc_ok=false
+for ac_cxx_preproc_warn_flag in '' yes
+do
+  # Use a header file that comes with gcc, so configuring glibc
+  # with a fresh cross-compiler works.
+  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+  # <limits.h> exists even on freestanding compilers.
+  # On the NeXT, cc -E runs the code through the compiler's parser,
+  # not just through cpp. "Syntax error" is here to catch this case.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+                    Syntax error
+_ACEOF
+if ac_fn_cxx_try_cpp "$LINENO"; then :
+
+else
+  # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+  # OK, works on sane cases.  Now check whether nonexistent headers
+  # can be detected and how.
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_cxx_try_cpp "$LINENO"; then :
+  # Broken: success on invalid input.
+continue
+else
+  # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+
+else
+  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
+See \`config.log' for more details" "$LINENO" 5; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+else
+  _lt_caught_CXX_error=yes
+fi
+
+ac_ext=cpp
+ac_cpp='$CXXCPP $CPPFLAGS'
+ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
+
+archive_cmds_need_lc_CXX=no
+allow_undefined_flag_CXX=
+always_export_symbols_CXX=no
+archive_expsym_cmds_CXX=
+compiler_needs_object_CXX=no
+export_dynamic_flag_spec_CXX=
+hardcode_direct_CXX=no
+hardcode_direct_absolute_CXX=no
+hardcode_libdir_flag_spec_CXX=
+hardcode_libdir_separator_CXX=
+hardcode_minus_L_CXX=no
+hardcode_shlibpath_var_CXX=unsupported
+hardcode_automatic_CXX=no
+inherit_rpath_CXX=no
+module_cmds_CXX=
+module_expsym_cmds_CXX=
+link_all_deplibs_CXX=unknown
+old_archive_cmds_CXX=$old_archive_cmds
+reload_flag_CXX=$reload_flag
+reload_cmds_CXX=$reload_cmds
+no_undefined_flag_CXX=
+whole_archive_flag_spec_CXX=
+enable_shared_with_static_runtimes_CXX=no
+
+# Source file extension for C++ test sources.
+ac_ext=cpp
+
+# Object file extension for compiled C++ test sources.
+objext=o
+objext_CXX=$objext
+
+# No sense in running all these tests if we already determined that
+# the CXX compiler isn't working.  Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test yes != "$_lt_caught_CXX_error"; then
+  # Code to be used in simple compile tests
+  lt_simple_compile_test_code="int some_variable = 0;"
+
+  # Code to be used in simple link tests
+  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
+
+  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+
+
+
+
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+  # save warnings/boilerplate of simple test code
+  ac_outfile=conftest.$ac_objext
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$RM conftest*
+
+  ac_outfile=conftest.$ac_objext
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$RM -r conftest*
+
+
+  # Allow CC to be a program name with arguments.
+  lt_save_CC=$CC
+  lt_save_CFLAGS=$CFLAGS
+  lt_save_LD=$LD
+  lt_save_GCC=$GCC
+  GCC=$GXX
+  lt_save_with_gnu_ld=$with_gnu_ld
+  lt_save_path_LD=$lt_cv_path_LD
+  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
+    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
+  else
+    $as_unset lt_cv_prog_gnu_ld
+  fi
+  if test -n "${lt_cv_path_LDCXX+set}"; then
+    lt_cv_path_LD=$lt_cv_path_LDCXX
+  else
+    $as_unset lt_cv_path_LD
+  fi
+  test -z "${LDCXX+set}" || LD=$LDCXX
+  CC=${CXX-"c++"}
+  CFLAGS=$CXXFLAGS
+  compiler=$CC
+  compiler_CXX=$CC
+  for cc_temp in $compiler""; do
+  case $cc_temp in
+    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+    \-*) ;;
+    *) break;;
+  esac
+done
+cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
+
+
+  if test -n "$compiler"; then
+    # We don't want -fno-exception when compiling C++ code, so set the
+    # no_builtin_flag separately
+    if test yes = "$GXX"; then
+      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
+    else
+      lt_prog_compiler_no_builtin_flag_CXX=
+    fi
+
+    if test yes = "$GXX"; then
+      # Set up default GNU C++ configuration
+
+
+
+# Check whether --with-gnu-ld was given.
+if test "${with_gnu_ld+set}" = set; then :
+  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
+else
+  with_gnu_ld=no
+fi
+
+ac_prog=ld
+if test yes = "$GCC"; then
+  # Check if gcc -print-prog-name=ld gives a path.
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
+$as_echo_n "checking for ld used by $CC... " >&6; }
+  case $host in
+  *-*-mingw*)
+    # gcc leaves a trailing carriage return, which upsets mingw
+    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+  *)
+    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+  esac
+  case $ac_prog in
+    # Accept absolute paths.
+    [\\/]* | ?:[\\/]*)
+      re_direlt='/[^/][^/]*/\.\./'
+      # Canonicalize the pathname of ld
+      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
+      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
+       ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
+      done
+      test -z "$LD" && LD=$ac_prog
+      ;;
+  "")
+    # If it fails, then pretend we aren't using GCC.
+    ac_prog=ld
+    ;;
+  *)
+    # If it is relative, then search for the first ld in PATH.
+    with_gnu_ld=unknown
+    ;;
+  esac
+elif test yes = "$with_gnu_ld"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
+$as_echo_n "checking for GNU ld... " >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
+$as_echo_n "checking for non-GNU ld... " >&6; }
+fi
+if ${lt_cv_path_LD+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -z "$LD"; then
+  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
+  for ac_dir in $PATH; do
+    IFS=$lt_save_ifs
+    test -z "$ac_dir" && ac_dir=.
+    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+      lt_cv_path_LD=$ac_dir/$ac_prog
+      # Check to see if the program is GNU ld.  I'd rather use --version,
+      # but apparently some variants of GNU ld only accept -v.
+      # Break only if it was the GNU/non-GNU ld that we prefer.
+      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
+      *GNU* | *'with BFD'*)
+       test no != "$with_gnu_ld" && break
+       ;;
+      *)
+       test yes != "$with_gnu_ld" && break
+       ;;
+      esac
+    fi
+  done
+  IFS=$lt_save_ifs
+else
+  lt_cv_path_LD=$LD # Let the user override the test with a path.
+fi
+fi
+
+LD=$lt_cv_path_LD
+if test -n "$LD"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
+$as_echo "$LD" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
+$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
+if ${lt_cv_prog_gnu_ld+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  # I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+  lt_cv_prog_gnu_ld=yes
+  ;;
+*)
+  lt_cv_prog_gnu_ld=no
+  ;;
+esac
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
+$as_echo "$lt_cv_prog_gnu_ld" >&6; }
+with_gnu_ld=$lt_cv_prog_gnu_ld
+
+
+
+
+
+
+
+      # Check if GNU C++ uses GNU ld as the underlying linker, since the
+      # archiving commands below assume that GNU ld is being used.
+      if test yes = "$with_gnu_ld"; then
+        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
+        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+
+        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
+        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
+
+        # If archive_cmds runs LD, not CC, wlarc should be empty
+        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
+        #     investigate it a little bit more. (MM)
+        wlarc='$wl'
+
+        # ancient GNU ld didn't support --whole-archive et. al.
+        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
+         $GREP 'no-whole-archive' > /dev/null; then
+          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
+        else
+          whole_archive_flag_spec_CXX=
+        fi
+      else
+        with_gnu_ld=no
+        wlarc=
+
+        # A generic and very simple default shared library creation
+        # command for GNU C++ for the case where it uses the native
+        # linker, instead of GNU ld.  If possible, this setting should
+        # overridden to take advantage of the native linker features on
+        # the platform it is being used on.
+        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+      fi
+
+      # Commands to make compiler produce verbose output that lists
+      # what "hidden" libraries, object files and flags are used when
+      # linking a shared library.
+      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
+
+    else
+      GXX=no
+      with_gnu_ld=no
+      wlarc=
+    fi
+
+    # PORTME: fill in a description of your system's C++ link characteristics
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
+$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
+    ld_shlibs_CXX=yes
+    case $host_os in
+      aix3*)
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;;
+      aix[4-9]*)
+        if test ia64 = "$host_cpu"; then
+          # On IA64, the linker does run time linking by default, so we don't
+          # have to do anything special.
+          aix_use_runtimelinking=no
+          exp_sym_flag='-Bexport'
+          no_entry_flag=
+        else
+          aix_use_runtimelinking=no
+
+          # Test if we are trying to use run time linking or normal
+          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+          # need to do runtime linking.
+          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
+           for ld_flag in $LDFLAGS; do
+             case $ld_flag in
+             *-brtl*)
+               aix_use_runtimelinking=yes
+               break
+               ;;
+             esac
+           done
+           ;;
+          esac
+
+          exp_sym_flag='-bexport'
+          no_entry_flag='-bnoentry'
+        fi
+
+        # When large executables or shared objects are built, AIX ld can
+        # have problems creating the table of contents.  If linking a library
+        # or program results in "error TOC overflow" add -mminimal-toc to
+        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
+        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+        archive_cmds_CXX=''
+        hardcode_direct_CXX=yes
+        hardcode_direct_absolute_CXX=yes
+        hardcode_libdir_separator_CXX=':'
+        link_all_deplibs_CXX=yes
+        file_list_spec_CXX='$wl-f,'
+
+        if test yes = "$GXX"; then
+          case $host_os in aix4.[012]|aix4.[012].*)
+          # We only want to do this on AIX 4.2 and lower, the check
+          # below for broken collect2 doesn't work under 4.3+
+         collect2name=`$CC -print-prog-name=collect2`
+         if test -f "$collect2name" &&
+            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
+         then
+           # We have reworked collect2
+           :
+         else
+           # We have old collect2
+           hardcode_direct_CXX=unsupported
+           # It fails to find uninstalled libraries when the uninstalled
+           # path is not listed in the libpath.  Setting hardcode_minus_L
+           # to unsupported forces relinking
+           hardcode_minus_L_CXX=yes
+           hardcode_libdir_flag_spec_CXX='-L$libdir'
+           hardcode_libdir_separator_CXX=
+         fi
+          esac
+          shared_flag='-shared'
+         if test yes = "$aix_use_runtimelinking"; then
+           shared_flag=$shared_flag' $wl-G'
+         fi
+        else
+          # not using gcc
+          if test ia64 = "$host_cpu"; then
+         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+         # chokes on -Wl,-G. The following line is correct:
+         shared_flag='-G'
+          else
+           if test yes = "$aix_use_runtimelinking"; then
+             shared_flag='$wl-G'
+           else
+             shared_flag='$wl-bM:SRE'
+           fi
+          fi
+        fi
+
+        export_dynamic_flag_spec_CXX='$wl-bexpall'
+        # It seems that -bexpall does not export symbols beginning with
+        # underscore (_), so it is better to generate a list of symbols to
+       # export.
+        always_export_symbols_CXX=yes
+        if test yes = "$aix_use_runtimelinking"; then
+          # Warning - without using the other runtime loading flags (-brtl),
+          # -berok will link without error, but may produce a broken library.
+          allow_undefined_flag_CXX='-berok'
+          # Determine the default libpath from the value encoded in an empty
+          # executable.
+          if test set = "${lt_cv_aix_libpath+set}"; then
+  aix_libpath=$lt_cv_aix_libpath
+else
+  if ${lt_cv_aix_libpath__CXX+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+
+  lt_aix_libpath_sed='
+      /Import File Strings/,/^$/ {
+         /^0/ {
+             s/^0  *\([^ ]*\) *$/\1/
+             p
+         }
+      }'
+  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+  # Check for a 64-bit object if we didn't find anything.
+  if test -z "$lt_cv_aix_libpath__CXX"; then
+    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+  fi
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+  if test -z "$lt_cv_aix_libpath__CXX"; then
+    lt_cv_aix_libpath__CXX=/usr/lib:/lib
+  fi
+
+fi
+
+  aix_libpath=$lt_cv_aix_libpath__CXX
+fi
+
+          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
+
+          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
+        else
+          if test ia64 = "$host_cpu"; then
+           hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
+           allow_undefined_flag_CXX="-z nodefs"
+           archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
+          else
+           # Determine the default libpath from the value encoded in an
+           # empty executable.
+           if test set = "${lt_cv_aix_libpath+set}"; then
+  aix_libpath=$lt_cv_aix_libpath
+else
+  if ${lt_cv_aix_libpath__CXX+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+
+  lt_aix_libpath_sed='
+      /Import File Strings/,/^$/ {
+         /^0/ {
+             s/^0  *\([^ ]*\) *$/\1/
+             p
+         }
+      }'
+  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+  # Check for a 64-bit object if we didn't find anything.
+  if test -z "$lt_cv_aix_libpath__CXX"; then
+    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+  fi
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+  if test -z "$lt_cv_aix_libpath__CXX"; then
+    lt_cv_aix_libpath__CXX=/usr/lib:/lib
+  fi
+
+fi
+
+  aix_libpath=$lt_cv_aix_libpath__CXX
+fi
+
+           hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
+           # Warning - without using the other run time loading flags,
+           # -berok will link without error, but may produce a broken library.
+           no_undefined_flag_CXX=' $wl-bernotok'
+           allow_undefined_flag_CXX=' $wl-berok'
+           if test yes = "$with_gnu_ld"; then
+             # We only use this code for GNU lds that support --whole-archive.
+             whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
+           else
+             # Exported symbols can be pulled into shared objects from archives
+             whole_archive_flag_spec_CXX='$convenience'
+           fi
+           archive_cmds_need_lc_CXX=yes
+           # This is similar to how AIX traditionally builds its shared
+           # libraries.
+           archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+          fi
+        fi
+        ;;
+
+      beos*)
+       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+         allow_undefined_flag_CXX=unsupported
+         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+         # support --undefined.  This deserves some investigation.  FIXME
+         archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+       else
+         ld_shlibs_CXX=no
+       fi
+       ;;
+
+      chorus*)
+        case $cc_basename in
+          *)
+         # FIXME: insert proper C++ library support
+         ld_shlibs_CXX=no
+         ;;
+        esac
+        ;;
+
+      cygwin* | mingw* | pw32* | cegcc*)
+       case $GXX,$cc_basename in
+       ,cl* | no,cl*)
+         # Native MSVC
+         # hardcode_libdir_flag_spec is actually meaningless, as there is
+         # no search path for DLLs.
+         hardcode_libdir_flag_spec_CXX=' '
+         allow_undefined_flag_CXX=unsupported
+         always_export_symbols_CXX=yes
+         file_list_spec_CXX='@'
+         # Tell ltmain to make .lib files, not .a files.
+         libext=lib
+         # Tell ltmain to make .dll files, not .so files.
+         shrext_cmds=.dll
+         # FIXME: Setting linknames here is a bad hack.
+         archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
+         archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
+              cp "$export_symbols" "$output_objdir/$soname.def";
+              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
+            else
+              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
+            fi~
+            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
+            linknames='
+         # The linker will not automatically build a static lib if we build a DLL.
+         # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
+         enable_shared_with_static_runtimes_CXX=yes
+         # Don't use ranlib
+         old_postinstall_cmds_CXX='chmod 644 $oldlib'
+         postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
+            lt_tool_outputfile="@TOOL_OUTPUT@"~
+            case $lt_outputfile in
+              *.exe|*.EXE) ;;
+              *)
+                lt_outputfile=$lt_outputfile.exe
+                lt_tool_outputfile=$lt_tool_outputfile.exe
+                ;;
+            esac~
+            func_to_tool_file "$lt_outputfile"~
+            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
+              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
+              $RM "$lt_outputfile.manifest";
+            fi'
+         ;;
+       *)
+         # g++
+         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
+         # as there is no search path for DLLs.
+         hardcode_libdir_flag_spec_CXX='-L$libdir'
+         export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
+         allow_undefined_flag_CXX=unsupported
+         always_export_symbols_CXX=no
+         enable_shared_with_static_runtimes_CXX=yes
+
+         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+           # If the export-symbols file already is a .def file, use it as
+           # is; otherwise, prepend EXPORTS...
+           archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
+              cp $export_symbols $output_objdir/$soname.def;
+            else
+              echo EXPORTS > $output_objdir/$soname.def;
+              cat $export_symbols >> $output_objdir/$soname.def;
+            fi~
+            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+         else
+           ld_shlibs_CXX=no
+         fi
+         ;;
+       esac
+       ;;
+      darwin* | rhapsody*)
+
+
+  archive_cmds_need_lc_CXX=no
+  hardcode_direct_CXX=no
+  hardcode_automatic_CXX=yes
+  hardcode_shlibpath_var_CXX=unsupported
+  if test yes = "$lt_cv_ld_force_load"; then
+    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
+
+  else
+    whole_archive_flag_spec_CXX=''
+  fi
+  link_all_deplibs_CXX=yes
+  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
+  case $cc_basename in
+     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
+     *) _lt_dar_can_shared=$GCC ;;
+  esac
+  if test yes = "$_lt_dar_can_shared"; then
+    output_verbose_link_cmd=func_echo_all
+    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
+    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
+    archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
+    module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
+       if test yes != "$lt_cv_apple_cc_single_mod"; then
+      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
+      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
+    fi
+
+  else
+  ld_shlibs_CXX=no
+  fi
+
+       ;;
+
+      dgux*)
+        case $cc_basename in
+          ec++*)
+           # FIXME: insert proper C++ library support
+           ld_shlibs_CXX=no
+           ;;
+          ghcx*)
+           # Green Hills C++ Compiler
+           # FIXME: insert proper C++ library support
+           ld_shlibs_CXX=no
+           ;;
+          *)
+           # FIXME: insert proper C++ library support
+           ld_shlibs_CXX=no
+           ;;
+        esac
+        ;;
+
+      freebsd2.*)
+        # C++ shared libraries reported to be fairly broken before
+       # switch to ELF
+        ld_shlibs_CXX=no
+        ;;
+
+      freebsd-elf*)
+        archive_cmds_need_lc_CXX=no
+        ;;
+
+      freebsd* | dragonfly*)
+        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+        # conventions
+        ld_shlibs_CXX=yes
+        ;;
+
+      haiku*)
+        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+        link_all_deplibs_CXX=yes
+        ;;
+
+      hpux9*)
+        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
+        hardcode_libdir_separator_CXX=:
+        export_dynamic_flag_spec_CXX='$wl-E'
+        hardcode_direct_CXX=yes
+        hardcode_minus_L_CXX=yes # Not in the search PATH,
+                                            # but as the default
+                                            # location of the library.
+
+        case $cc_basename in
+          CC*)
+            # FIXME: insert proper C++ library support
+            ld_shlibs_CXX=no
+            ;;
+          aCC*)
+            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
+            # Commands to make compiler produce verbose output that lists
+            # what "hidden" libraries, object files and flags are used when
+            # linking a shared library.
+            #
+            # There doesn't appear to be a way to prevent this compiler from
+            # explicitly linking system object files so we need to strip them
+            # from the output so that they don't get included in the library
+            # dependencies.
+            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
+            ;;
+          *)
+            if test yes = "$GXX"; then
+              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
+            else
+              # FIXME: insert proper C++ library support
+              ld_shlibs_CXX=no
+            fi
+            ;;
+        esac
+        ;;
+
+      hpux10*|hpux11*)
+        if test no = "$with_gnu_ld"; then
+         hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
+         hardcode_libdir_separator_CXX=:
+
+          case $host_cpu in
+            hppa*64*|ia64*)
+              ;;
+            *)
+             export_dynamic_flag_spec_CXX='$wl-E'
+              ;;
+          esac
+        fi
+        case $host_cpu in
+          hppa*64*|ia64*)
+            hardcode_direct_CXX=no
+            hardcode_shlibpath_var_CXX=no
+            ;;
+          *)
+            hardcode_direct_CXX=yes
+            hardcode_direct_absolute_CXX=yes
+            hardcode_minus_L_CXX=yes # Not in the search PATH,
+                                                # but as the default
+                                                # location of the library.
+            ;;
+        esac
+
+        case $cc_basename in
+          CC*)
+           # FIXME: insert proper C++ library support
+           ld_shlibs_CXX=no
+           ;;
+          aCC*)
+           case $host_cpu in
+             hppa*64*)
+               archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+               ;;
+             ia64*)
+               archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+               ;;
+             *)
+               archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+               ;;
+           esac
+           # Commands to make compiler produce verbose output that lists
+           # what "hidden" libraries, object files and flags are used when
+           # linking a shared library.
+           #
+           # There doesn't appear to be a way to prevent this compiler from
+           # explicitly linking system object files so we need to strip them
+           # from the output so that they don't get included in the library
+           # dependencies.
+           output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
+           ;;
+          *)
+           if test yes = "$GXX"; then
+             if test no = "$with_gnu_ld"; then
+               case $host_cpu in
+                 hppa*64*)
+                   archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+                   ;;
+                 ia64*)
+                   archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+                   ;;
+                 *)
+                   archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+                   ;;
+               esac
+             fi
+           else
+             # FIXME: insert proper C++ library support
+             ld_shlibs_CXX=no
+           fi
+           ;;
+        esac
+        ;;
+
+      interix[3-9]*)
+       hardcode_direct_CXX=no
+       hardcode_shlibpath_var_CXX=no
+       hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
+       export_dynamic_flag_spec_CXX='$wl-E'
+       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+       # Instead, shared libraries are loaded at an image base (0x10000000 by
+       # default) and relocated if they conflict, which is a slow very memory
+       # consuming and fragmenting process.  To avoid this, we pick a random,
+       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
+       archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+       archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+       ;;
+      irix5* | irix6*)
+        case $cc_basename in
+          CC*)
+           # SGI C++
+           archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
+
+           # Archives containing C++ object files must be created using
+           # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
+           # necessary to make sure instantiated templates are included
+           # in the archive.
+           old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
+           ;;
+          *)
+           if test yes = "$GXX"; then
+             if test no = "$with_gnu_ld"; then
+               archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+             else
+               archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
+             fi
+           fi
+           link_all_deplibs_CXX=yes
+           ;;
+        esac
+        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
+        hardcode_libdir_separator_CXX=:
+        inherit_rpath_CXX=yes
+        ;;
+
+      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+        case $cc_basename in
+          KCC*)
+           # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+           # KCC will only create a shared library if the output file
+           # ends with ".so" (or ".sl" for HP-UX), so rename the library
+           # to its proper name (with version) after linking.
+           archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+           archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
+           # Commands to make compiler produce verbose output that lists
+           # what "hidden" libraries, object files and flags are used when
+           # linking a shared library.
+           #
+           # There doesn't appear to be a way to prevent this compiler from
+           # explicitly linking system object files so we need to strip them
+           # from the output so that they don't get included in the library
+           # dependencies.
+           output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
+
+           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
+           export_dynamic_flag_spec_CXX='$wl--export-dynamic'
+
+           # Archives containing C++ object files must be created using
+           # "CC -Bstatic", where "CC" is the KAI C++ compiler.
+           old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
+           ;;
+         icpc* | ecpc* )
+           # Intel C++
+           with_gnu_ld=yes
+           # version 8.0 and above of icpc choke on multiply defined symbols
+           # if we add $predep_objects and $postdep_objects, however 7.1 and
+           # earlier do not add the objects themselves.
+           case `$CC -V 2>&1` in
+             *"Version 7."*)
+               archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
+               archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+               ;;
+             *)  # Version 8.0 or newer
+               tmp_idyn=
+               case $host_cpu in
+                 ia64*) tmp_idyn=' -i_dynamic';;
+               esac
+               archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+               archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+               ;;
+           esac
+           archive_cmds_need_lc_CXX=no
+           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
+           export_dynamic_flag_spec_CXX='$wl--export-dynamic'
+           whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
+           ;;
+          pgCC* | pgcpp*)
+            # Portland Group C++ compiler
+           case `$CC -V` in
+           *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
+             prelink_cmds_CXX='tpldir=Template.dir~
+               rm -rf $tpldir~
+               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
+               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
+             old_archive_cmds_CXX='tpldir=Template.dir~
+                rm -rf $tpldir~
+                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
+                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
+                $RANLIB $oldlib'
+             archive_cmds_CXX='tpldir=Template.dir~
+                rm -rf $tpldir~
+                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
+                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
+             archive_expsym_cmds_CXX='tpldir=Template.dir~
+                rm -rf $tpldir~
+                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
+                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+             ;;
+           *) # Version 6 and above use weak symbols
+             archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
+             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+             ;;
+           esac
+
+           hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
+           export_dynamic_flag_spec_CXX='$wl--export-dynamic'
+           whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+            ;;
+         cxx*)
+           # Compaq C++
+           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
+           archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
+
+           runpath_var=LD_RUN_PATH
+           hardcode_libdir_flag_spec_CXX='-rpath $libdir'
+           hardcode_libdir_separator_CXX=:
+
+           # Commands to make compiler produce verbose output that lists
+           # what "hidden" libraries, object files and flags are used when
+           # linking a shared library.
+           #
+           # There doesn't appear to be a way to prevent this compiler from
+           # explicitly linking system object files so we need to strip them
+           # from the output so that they don't get included in the library
+           # dependencies.
+           output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
+           ;;
+         xl* | mpixl* | bgxl*)
+           # IBM XL 8.0 on PPC, with GNU ld
+           hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
+           export_dynamic_flag_spec_CXX='$wl--export-dynamic'
+           archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+           if test yes = "$supports_anon_versioning"; then
+             archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
+                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+                echo "local: *; };" >> $output_objdir/$libname.ver~
+                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
+           fi
+           ;;
+         *)
+           case `$CC -V 2>&1 | sed 5q` in
+           *Sun\ C*)
+             # Sun C++ 5.9
+             no_undefined_flag_CXX=' -zdefs'
+             archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+             archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
+             hardcode_libdir_flag_spec_CXX='-R$libdir'
+             whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+             compiler_needs_object_CXX=yes
+
+             # Not sure whether something based on
+             # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
+             # would be better.
+             output_verbose_link_cmd='func_echo_all'
+
+             # Archives containing C++ object files must be created using
+             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
+             # necessary to make sure instantiated templates are included
+             # in the archive.
+             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
+             ;;
+           esac
+           ;;
+       esac
+       ;;
+
+      lynxos*)
+        # FIXME: insert proper C++ library support
+       ld_shlibs_CXX=no
+       ;;
+
+      m88k*)
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+       ;;
+
+      mvs*)
+        case $cc_basename in
+          cxx*)
+           # FIXME: insert proper C++ library support
+           ld_shlibs_CXX=no
+           ;;
+         *)
+           # FIXME: insert proper C++ library support
+           ld_shlibs_CXX=no
+           ;;
+       esac
+       ;;
+
+      netbsd*)
+        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+         archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
+         wlarc=
+         hardcode_libdir_flag_spec_CXX='-R$libdir'
+         hardcode_direct_CXX=yes
+         hardcode_shlibpath_var_CXX=no
+       fi
+       # Workaround some broken pre-1.5 toolchains
+       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
+       ;;
+
+      *nto* | *qnx*)
+        ld_shlibs_CXX=yes
+       ;;
+
+      openbsd* | bitrig*)
+       if test -f /usr/libexec/ld.so; then
+         hardcode_direct_CXX=yes
+         hardcode_shlibpath_var_CXX=no
+         hardcode_direct_absolute_CXX=yes
+         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+         hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
+         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
+           archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
+           export_dynamic_flag_spec_CXX='$wl-E'
+           whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
+         fi
+         output_verbose_link_cmd=func_echo_all
+       else
+         ld_shlibs_CXX=no
+       fi
+       ;;
+
+      osf3* | osf4* | osf5*)
+        case $cc_basename in
+          KCC*)
+           # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+           # KCC will only create a shared library if the output file
+           # ends with ".so" (or ".sl" for HP-UX), so rename the library
+           # to its proper name (with version) after linking.
+           archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+
+           hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
+           hardcode_libdir_separator_CXX=:
+
+           # Archives containing C++ object files must be created using
+           # the KAI C++ compiler.
+           case $host in
+             osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
+             *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
+           esac
+           ;;
+          RCC*)
+           # Rational C++ 2.4.1
+           # FIXME: insert proper C++ library support
+           ld_shlibs_CXX=no
+           ;;
+          cxx*)
+           case $host in
+             osf3*)
+               allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
+               archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
+               hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
+               ;;
+             *)
+               allow_undefined_flag_CXX=' -expect_unresolved \*'
+               archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
+               archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
+                  echo "-hidden">> $lib.exp~
+                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
+                  $RM $lib.exp'
+               hardcode_libdir_flag_spec_CXX='-rpath $libdir'
+               ;;
+           esac
+
+           hardcode_libdir_separator_CXX=:
+
+           # Commands to make compiler produce verbose output that lists
+           # what "hidden" libraries, object files and flags are used when
+           # linking a shared library.
+           #
+           # There doesn't appear to be a way to prevent this compiler from
+           # explicitly linking system object files so we need to strip them
+           # from the output so that they don't get included in the library
+           # dependencies.
+           output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
+           ;;
+         *)
+           if test yes,no = "$GXX,$with_gnu_ld"; then
+             allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
+             case $host in
+               osf3*)
+                 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+                 ;;
+               *)
+                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+                 ;;
+             esac
+
+             hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
+             hardcode_libdir_separator_CXX=:
+
+             # Commands to make compiler produce verbose output that lists
+             # what "hidden" libraries, object files and flags are used when
+             # linking a shared library.
+             output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
+
+           else
+             # FIXME: insert proper C++ library support
+             ld_shlibs_CXX=no
+           fi
+           ;;
+        esac
+        ;;
+
+      psos*)
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;;
+
+      sunos4*)
+        case $cc_basename in
+          CC*)
+           # Sun C++ 4.x
+           # FIXME: insert proper C++ library support
+           ld_shlibs_CXX=no
+           ;;
+          lcc*)
+           # Lucid
+           # FIXME: insert proper C++ library support
+           ld_shlibs_CXX=no
+           ;;
+          *)
+           # FIXME: insert proper C++ library support
+           ld_shlibs_CXX=no
+           ;;
+        esac
+        ;;
+
+      solaris*)
+        case $cc_basename in
+          CC* | sunCC*)
+           # Sun C++ 4.2, 5.x and Centerline C++
+            archive_cmds_need_lc_CXX=yes
+           no_undefined_flag_CXX=' -zdefs'
+           archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+           archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+           hardcode_libdir_flag_spec_CXX='-R$libdir'
+           hardcode_shlibpath_var_CXX=no
+           case $host_os in
+             solaris2.[0-5] | solaris2.[0-5].*) ;;
+             *)
+               # The compiler driver will combine and reorder linker options,
+               # but understands '-z linker_flag'.
+               # Supported since Solaris 2.6 (maybe 2.5.1?)
+               whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
+               ;;
+           esac
+           link_all_deplibs_CXX=yes
+
+           output_verbose_link_cmd='func_echo_all'
+
+           # Archives containing C++ object files must be created using
+           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
+           # necessary to make sure instantiated templates are included
+           # in the archive.
+           old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
+           ;;
+          gcx*)
+           # Green Hills C++ Compiler
+           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
+
+           # The C++ compiler must be used to create the archive.
+           old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
+           ;;
+          *)
+           # GNU C++ compiler with Solaris linker
+           if test yes,no = "$GXX,$with_gnu_ld"; then
+             no_undefined_flag_CXX=' $wl-z ${wl}defs'
+             if $CC --version | $GREP -v '^2\.7' > /dev/null; then
+               archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
+               archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+               # Commands to make compiler produce verbose output that lists
+               # what "hidden" libraries, object files and flags are used when
+               # linking a shared library.
+               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
+             else
+               # g++ 2.7 appears to require '-G' NOT '-shared' on this
+               # platform.
+               archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
+               archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+               # Commands to make compiler produce verbose output that lists
+               # what "hidden" libraries, object files and flags are used when
+               # linking a shared library.
+               output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
+             fi
+
+             hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
+             case $host_os in
+               solaris2.[0-5] | solaris2.[0-5].*) ;;
+               *)
+                 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
+                 ;;
+             esac
+           fi
+           ;;
+        esac
+        ;;
+
+    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
+      no_undefined_flag_CXX='$wl-z,text'
+      archive_cmds_need_lc_CXX=no
+      hardcode_shlibpath_var_CXX=no
+      runpath_var='LD_RUN_PATH'
+
+      case $cc_basename in
+        CC*)
+         archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+         archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+         ;;
+       *)
+         archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+         archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+         ;;
+      esac
+      ;;
+
+      sysv5* | sco3.2v5* | sco5v6*)
+       # Note: We CANNOT use -z defs as we might desire, because we do not
+       # link with -lc, and that would cause any symbols used from libc to
+       # always be unresolved, which means just about no library would
+       # ever link correctly.  If we're not using GNU ld we use -z text
+       # though, which does catch some bad symbols but isn't as heavy-handed
+       # as -z defs.
+       no_undefined_flag_CXX='$wl-z,text'
+       allow_undefined_flag_CXX='$wl-z,nodefs'
+       archive_cmds_need_lc_CXX=no
+       hardcode_shlibpath_var_CXX=no
+       hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
+       hardcode_libdir_separator_CXX=':'
+       link_all_deplibs_CXX=yes
+       export_dynamic_flag_spec_CXX='$wl-Bexport'
+       runpath_var='LD_RUN_PATH'
+
+       case $cc_basename in
+          CC*)
+           archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+           archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+           old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
+              '"$old_archive_cmds_CXX"
+           reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
+              '"$reload_cmds_CXX"
+           ;;
+         *)
+           archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+           archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+           ;;
+       esac
+      ;;
+
+      tandem*)
+        case $cc_basename in
+          NCC*)
+           # NonStop-UX NCC 3.20
+           # FIXME: insert proper C++ library support
+           ld_shlibs_CXX=no
+           ;;
+          *)
+           # FIXME: insert proper C++ library support
+           ld_shlibs_CXX=no
+           ;;
+        esac
+        ;;
+
+      vxworks*)
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;;
+
+      *)
+        # FIXME: insert proper C++ library support
+        ld_shlibs_CXX=no
+        ;;
+    esac
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
+$as_echo "$ld_shlibs_CXX" >&6; }
+    test no = "$ld_shlibs_CXX" && can_build_shared=no
+
+    GCC_CXX=$GXX
+    LD_CXX=$LD
+
+    ## CAVEAT EMPTOR:
+    ## There is no encapsulation within the following macros, do not change
+    ## the running order or otherwise move them around unless you know exactly
+    ## what you are doing...
+    # Dependencies to place before and after the object being linked:
+predep_objects_CXX=
+postdep_objects_CXX=
+predeps_CXX=
+postdeps_CXX=
+compiler_lib_search_path_CXX=
+
+cat > conftest.$ac_ext <<_LT_EOF
+class Foo
+{
+public:
+  Foo (void) { a = 0; }
+private:
+  int a;
+};
+_LT_EOF
+
+
+_lt_libdeps_save_CFLAGS=$CFLAGS
+case "$CC $CFLAGS " in #(
+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
+*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
+esac
+
+if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  # Parse the compiler output and extract the necessary
+  # objects, libraries and library flags.
+
+  # Sentinel used to keep track of whether or not we are before
+  # the conftest object file.
+  pre_test_object_deps_done=no
+
+  for p in `eval "$output_verbose_link_cmd"`; do
+    case $prev$p in
+
+    -L* | -R* | -l*)
+       # Some compilers place space between "-{L,R}" and the path.
+       # Remove the space.
+       if test x-L = "$p" ||
+          test x-R = "$p"; then
+        prev=$p
+        continue
+       fi
+
+       # Expand the sysroot to ease extracting the directories later.
+       if test -z "$prev"; then
+         case $p in
+         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
+         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
+         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
+         esac
+       fi
+       case $p in
+       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
+       esac
+       if test no = "$pre_test_object_deps_done"; then
+        case $prev in
+        -L | -R)
+          # Internal compiler library paths should come after those
+          # provided the user.  The postdeps already come after the
+          # user supplied libs so there is no need to process them.
+          if test -z "$compiler_lib_search_path_CXX"; then
+            compiler_lib_search_path_CXX=$prev$p
+          else
+            compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
+          fi
+          ;;
+        # The "-l" case would never come before the object being
+        # linked, so don't bother handling this case.
+        esac
+       else
+        if test -z "$postdeps_CXX"; then
+          postdeps_CXX=$prev$p
+        else
+          postdeps_CXX="${postdeps_CXX} $prev$p"
+        fi
+       fi
+       prev=
+       ;;
+
+    *.lto.$objext) ;; # Ignore GCC LTO objects
+    *.$objext)
+       # This assumes that the test object file only shows up
+       # once in the compiler output.
+       if test "$p" = "conftest.$objext"; then
+        pre_test_object_deps_done=yes
+        continue
+       fi
+
+       if test no = "$pre_test_object_deps_done"; then
+        if test -z "$predep_objects_CXX"; then
+          predep_objects_CXX=$p
+        else
+          predep_objects_CXX="$predep_objects_CXX $p"
+        fi
+       else
+        if test -z "$postdep_objects_CXX"; then
+          postdep_objects_CXX=$p
+        else
+          postdep_objects_CXX="$postdep_objects_CXX $p"
+        fi
+       fi
+       ;;
+
+    *) ;; # Ignore the rest.
+
+    esac
+  done
+
+  # Clean up.
+  rm -f a.out a.exe
+else
+  echo "libtool.m4: error: problem compiling CXX test program"
+fi
+
+$RM -f confest.$objext
+CFLAGS=$_lt_libdeps_save_CFLAGS
+
+# PORTME: override above test on systems where it is broken
+case $host_os in
+interix[3-9]*)
+  # Interix 3.5 installs completely hosed .la files for C++, so rather than
+  # hack all around it, let's just trust "g++" to DTRT.
+  predep_objects_CXX=
+  postdep_objects_CXX=
+  postdeps_CXX=
+  ;;
+
+linux*)
+  case `$CC -V 2>&1 | sed 5q` in
+  *Sun\ C*)
+    # Sun C++ 5.9
+
+    # The more standards-conforming stlport4 library is
+    # incompatible with the Cstd library. Avoid specifying
+    # it if it's in CXXFLAGS. Ignore libCrun as
+    # -library=stlport4 depends on it.
+    case " $CXX $CXXFLAGS " in
+    *" -library=stlport4 "*)
+      solaris_use_stlport4=yes
+      ;;
+    esac
+
+    if test yes != "$solaris_use_stlport4"; then
+      postdeps_CXX='-library=Cstd -library=Crun'
+    fi
+    ;;
+  esac
+  ;;
+
+solaris*)
+  case $cc_basename in
+  CC* | sunCC*)
+    # The more standards-conforming stlport4 library is
+    # incompatible with the Cstd library. Avoid specifying
+    # it if it's in CXXFLAGS. Ignore libCrun as
+    # -library=stlport4 depends on it.
+    case " $CXX $CXXFLAGS " in
+    *" -library=stlport4 "*)
+      solaris_use_stlport4=yes
+      ;;
+    esac
+
+    # Adding this requires a known-good setup of shared libraries for
+    # Sun compiler versions before 5.6, else PIC objects from an old
+    # archive will be linked into the output, leading to subtle bugs.
+    if test yes != "$solaris_use_stlport4"; then
+      postdeps_CXX='-library=Cstd -library=Crun'
+    fi
+    ;;
+  esac
+  ;;
+esac
+
+
+case " $postdeps_CXX " in
+*" -lc "*) archive_cmds_need_lc_CXX=no ;;
+esac
+ compiler_lib_search_dirs_CXX=
+if test -n "${compiler_lib_search_path_CXX}"; then
+ compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+    lt_prog_compiler_wl_CXX=
+lt_prog_compiler_pic_CXX=
+lt_prog_compiler_static_CXX=
+
+
+  # C++ specific cases for pic, static, wl, etc.
+  if test yes = "$GXX"; then
+    lt_prog_compiler_wl_CXX='-Wl,'
+    lt_prog_compiler_static_CXX='-static'
+
+    case $host_os in
+    aix*)
+      # All AIX code is PIC.
+      if test ia64 = "$host_cpu"; then
+       # AIX 5 now supports IA64 processor
+       lt_prog_compiler_static_CXX='-Bstatic'
+      fi
+      lt_prog_compiler_pic_CXX='-fPIC'
+      ;;
+
+    amigaos*)
+      case $host_cpu in
+      powerpc)
+            # see comment about AmigaOS4 .so support
+            lt_prog_compiler_pic_CXX='-fPIC'
+        ;;
+      m68k)
+            # FIXME: we need at least 68020 code to build shared libraries, but
+            # adding the '-m68020' flag to GCC prevents building anything better,
+            # like '-m68040'.
+            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
+        ;;
+      esac
+      ;;
+
+    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+      # PIC is the default for these OSes.
+      ;;
+    mingw* | cygwin* | os2* | pw32* | cegcc*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      # Although the cygwin gcc ignores -fPIC, still need this for old-style
+      # (--disable-auto-import) libraries
+      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
+      ;;
+    darwin* | rhapsody*)
+      # PIC is the default on this platform
+      # Common symbols not allowed in MH_DYLIB files
+      lt_prog_compiler_pic_CXX='-fno-common'
+      ;;
+    *djgpp*)
+      # DJGPP does not support shared libraries at all
+      lt_prog_compiler_pic_CXX=
+      ;;
+    haiku*)
+      # PIC is the default for Haiku.
+      # The "-static" flag exists, but is broken.
+      lt_prog_compiler_static_CXX=
+      ;;
+    interix[3-9]*)
+      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+      # Instead, we relocate shared libraries at runtime.
+      ;;
+    sysv4*MP*)
+      if test -d /usr/nec; then
+       lt_prog_compiler_pic_CXX=-Kconform_pic
+      fi
+      ;;
+    hpux*)
+      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
+      # sets the default TLS model and affects inlining.
+      case $host_cpu in
+      hppa*64*)
+       ;;
+      *)
+       lt_prog_compiler_pic_CXX='-fPIC'
+       ;;
+      esac
+      ;;
+    *qnx* | *nto*)
+      # QNX uses GNU C++, but need to define -shared option too, otherwise
+      # it will coredump.
+      lt_prog_compiler_pic_CXX='-fPIC -shared'
+      ;;
+    *)
+      lt_prog_compiler_pic_CXX='-fPIC'
+      ;;
+    esac
+  else
+    case $host_os in
+      aix[4-9]*)
+       # All AIX code is PIC.
+       if test ia64 = "$host_cpu"; then
+         # AIX 5 now supports IA64 processor
+         lt_prog_compiler_static_CXX='-Bstatic'
+       else
+         lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
+       fi
+       ;;
+      chorus*)
+       case $cc_basename in
+       cxch68*)
+         # Green Hills C++ Compiler
+         # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
+         ;;
+       esac
+       ;;
+      mingw* | cygwin* | os2* | pw32* | cegcc*)
+       # This hack is so that the source file can tell whether it is being
+       # built for inclusion in a dll (and should export symbols for example).
+       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
+       ;;
+      dgux*)
+       case $cc_basename in
+         ec++*)
+           lt_prog_compiler_pic_CXX='-KPIC'
+           ;;
+         ghcx*)
+           # Green Hills C++ Compiler
+           lt_prog_compiler_pic_CXX='-pic'
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      freebsd* | dragonfly*)
+       # FreeBSD uses GNU C++
+       ;;
+      hpux9* | hpux10* | hpux11*)
+       case $cc_basename in
+         CC*)
+           lt_prog_compiler_wl_CXX='-Wl,'
+           lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
+           if test ia64 != "$host_cpu"; then
+             lt_prog_compiler_pic_CXX='+Z'
+           fi
+           ;;
+         aCC*)
+           lt_prog_compiler_wl_CXX='-Wl,'
+           lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
+           case $host_cpu in
+           hppa*64*|ia64*)
+             # +Z the default
+             ;;
+           *)
+             lt_prog_compiler_pic_CXX='+Z'
+             ;;
+           esac
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      interix*)
+       # This is c89, which is MS Visual C++ (no shared libs)
+       # Anyone wants to do a port?
+       ;;
+      irix5* | irix6* | nonstopux*)
+       case $cc_basename in
+         CC*)
+           lt_prog_compiler_wl_CXX='-Wl,'
+           lt_prog_compiler_static_CXX='-non_shared'
+           # CC pic flag -KPIC is the default.
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+       case $cc_basename in
+         KCC*)
+           # KAI C++ Compiler
+           lt_prog_compiler_wl_CXX='--backend -Wl,'
+           lt_prog_compiler_pic_CXX='-fPIC'
+           ;;
+         ecpc* )
+           # old Intel C++ for x86_64, which still supported -KPIC.
+           lt_prog_compiler_wl_CXX='-Wl,'
+           lt_prog_compiler_pic_CXX='-KPIC'
+           lt_prog_compiler_static_CXX='-static'
+           ;;
+         icpc* )
+           # Intel C++, used to be incompatible with GCC.
+           # ICC 10 doesn't accept -KPIC any more.
+           lt_prog_compiler_wl_CXX='-Wl,'
+           lt_prog_compiler_pic_CXX='-fPIC'
+           lt_prog_compiler_static_CXX='-static'
+           ;;
+         pgCC* | pgcpp*)
+           # Portland Group C++ compiler
+           lt_prog_compiler_wl_CXX='-Wl,'
+           lt_prog_compiler_pic_CXX='-fpic'
+           lt_prog_compiler_static_CXX='-Bstatic'
+           ;;
+         cxx*)
+           # Compaq C++
+           # Make sure the PIC flag is empty.  It appears that all Alpha
+           # Linux and Compaq Tru64 Unix objects are PIC.
+           lt_prog_compiler_pic_CXX=
+           lt_prog_compiler_static_CXX='-non_shared'
+           ;;
+         xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
+           # IBM XL 8.0, 9.0 on PPC and BlueGene
+           lt_prog_compiler_wl_CXX='-Wl,'
+           lt_prog_compiler_pic_CXX='-qpic'
+           lt_prog_compiler_static_CXX='-qstaticlink'
+           ;;
+         *)
+           case `$CC -V 2>&1 | sed 5q` in
+           *Sun\ C*)
+             # Sun C++ 5.9
+             lt_prog_compiler_pic_CXX='-KPIC'
+             lt_prog_compiler_static_CXX='-Bstatic'
+             lt_prog_compiler_wl_CXX='-Qoption ld '
+             ;;
+           esac
+           ;;
+       esac
+       ;;
+      lynxos*)
+       ;;
+      m88k*)
+       ;;
+      mvs*)
+       case $cc_basename in
+         cxx*)
+           lt_prog_compiler_pic_CXX='-W c,exportall'
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      netbsd*)
+       ;;
+      *qnx* | *nto*)
+        # QNX uses GNU C++, but need to define -shared option too, otherwise
+        # it will coredump.
+        lt_prog_compiler_pic_CXX='-fPIC -shared'
+        ;;
+      osf3* | osf4* | osf5*)
+       case $cc_basename in
+         KCC*)
+           lt_prog_compiler_wl_CXX='--backend -Wl,'
+           ;;
+         RCC*)
+           # Rational C++ 2.4.1
+           lt_prog_compiler_pic_CXX='-pic'
+           ;;
+         cxx*)
+           # Digital/Compaq C++
+           lt_prog_compiler_wl_CXX='-Wl,'
+           # Make sure the PIC flag is empty.  It appears that all Alpha
+           # Linux and Compaq Tru64 Unix objects are PIC.
+           lt_prog_compiler_pic_CXX=
+           lt_prog_compiler_static_CXX='-non_shared'
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      psos*)
+       ;;
+      solaris*)
+       case $cc_basename in
+         CC* | sunCC*)
+           # Sun C++ 4.2, 5.x and Centerline C++
+           lt_prog_compiler_pic_CXX='-KPIC'
+           lt_prog_compiler_static_CXX='-Bstatic'
+           lt_prog_compiler_wl_CXX='-Qoption ld '
+           ;;
+         gcx*)
+           # Green Hills C++ Compiler
+           lt_prog_compiler_pic_CXX='-PIC'
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      sunos4*)
+       case $cc_basename in
+         CC*)
+           # Sun C++ 4.x
+           lt_prog_compiler_pic_CXX='-pic'
+           lt_prog_compiler_static_CXX='-Bstatic'
+           ;;
+         lcc*)
+           # Lucid
+           lt_prog_compiler_pic_CXX='-pic'
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+       case $cc_basename in
+         CC*)
+           lt_prog_compiler_wl_CXX='-Wl,'
+           lt_prog_compiler_pic_CXX='-KPIC'
+           lt_prog_compiler_static_CXX='-Bstatic'
+           ;;
+       esac
+       ;;
+      tandem*)
+       case $cc_basename in
+         NCC*)
+           # NonStop-UX NCC 3.20
+           lt_prog_compiler_pic_CXX='-KPIC'
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      vxworks*)
+       ;;
+      *)
+       lt_prog_compiler_can_build_shared_CXX=no
+       ;;
+    esac
+  fi
+
+case $host_os in
+  # For platforms that do not support PIC, -DPIC is meaningless:
+  *djgpp*)
+    lt_prog_compiler_pic_CXX=
+    ;;
+  *)
+    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
+    ;;
+esac
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
+if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
+$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
+lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$lt_prog_compiler_pic_CXX"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
+$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
+if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_prog_compiler_pic_works_CXX=no
+   ac_outfile=conftest.$ac_objext
+   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing "conftest.", or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   # The option is referenced via a variable to avoid confusing sed.
+   lt_compile=`echo "$ac_compile" | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+   (eval "$lt_compile" 2>conftest.err)
+   ac_status=$?
+   cat conftest.err >&5
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   if (exit $ac_status) && test -s "$ac_outfile"; then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings other than the usual output.
+     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
+     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+       lt_cv_prog_compiler_pic_works_CXX=yes
+     fi
+   fi
+   $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
+$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
+
+if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
+    case $lt_prog_compiler_pic_CXX in
+     "" | " "*) ;;
+     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
+     esac
+else
+    lt_prog_compiler_pic_CXX=
+     lt_prog_compiler_can_build_shared_CXX=no
+fi
+
+fi
+
+
+
+
+
+#
+# Check to make sure the static flag actually works.
+#
+wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
+$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
+if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_prog_compiler_static_works_CXX=no
+   save_LDFLAGS=$LDFLAGS
+   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
+   echo "$lt_simple_link_test_code" > conftest.$ac_ext
+   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+     # The linker can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     if test -s conftest.err; then
+       # Append any errors to the config.log.
+       cat conftest.err 1>&5
+       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
+       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+       if diff conftest.exp conftest.er2 >/dev/null; then
+         lt_cv_prog_compiler_static_works_CXX=yes
+       fi
+     else
+       lt_cv_prog_compiler_static_works_CXX=yes
+     fi
+   fi
+   $RM -r conftest*
+   LDFLAGS=$save_LDFLAGS
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
+$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
+
+if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
+    :
+else
+    lt_prog_compiler_static_CXX=
+fi
+
+
+
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
+$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
+if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_prog_compiler_c_o_CXX=no
+   $RM -r conftest 2>/dev/null
+   mkdir conftest
+   cd conftest
+   mkdir out
+   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+   lt_compiler_flag="-o out/conftest2.$ac_objext"
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing "conftest.", or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   lt_compile=`echo "$ac_compile" | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+   (eval "$lt_compile" 2>out/conftest.err)
+   ac_status=$?
+   cat out/conftest.err >&5
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   if (exit $ac_status) && test -s out/conftest2.$ac_objext
+   then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
+     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+       lt_cv_prog_compiler_c_o_CXX=yes
+     fi
+   fi
+   chmod u+w . 2>&5
+   $RM conftest*
+   # SGI C++ compiler will create directory out/ii_files/ for
+   # template instantiation
+   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
+   $RM out/* && rmdir out
+   cd ..
+   $RM -r conftest
+   $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
+$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
+
+
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
+$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
+if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_prog_compiler_c_o_CXX=no
+   $RM -r conftest 2>/dev/null
+   mkdir conftest
+   cd conftest
+   mkdir out
+   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+   lt_compiler_flag="-o out/conftest2.$ac_objext"
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing "conftest.", or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   lt_compile=`echo "$ac_compile" | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
+   (eval "$lt_compile" 2>out/conftest.err)
+   ac_status=$?
+   cat out/conftest.err >&5
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   if (exit $ac_status) && test -s out/conftest2.$ac_objext
+   then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
+     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+       lt_cv_prog_compiler_c_o_CXX=yes
+     fi
+   fi
+   chmod u+w . 2>&5
+   $RM conftest*
+   # SGI C++ compiler will create directory out/ii_files/ for
+   # template instantiation
+   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
+   $RM out/* && rmdir out
+   cd ..
+   $RM -r conftest
+   $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
+$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
+
+
+
+
+hard_links=nottested
+if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
+  # do not overwrite the value of need_locks provided by the user
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
+$as_echo_n "checking if we can lock with hard links... " >&6; }
+  hard_links=yes
+  $RM conftest*
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no
+  touch conftest.a
+  ln conftest.a conftest.b 2>&5 || hard_links=no
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
+$as_echo "$hard_links" >&6; }
+  if test no = "$hard_links"; then
+    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
+$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
+    need_locks=warn
+  fi
+else
+  need_locks=no
+fi
+
+
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
+$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
+
+  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
+  case $host_os in
+  aix[4-9]*)
+    # If we're using GNU nm, then we don't want the "-C" option.
+    # -C means demangle to AIX nm, but means don't demangle with GNU nm
+    # Also, AIX nm treats weak defined symbols like other global defined
+    # symbols, whereas GNU nm marks them as "W".
+    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
+      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+    else
+      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+    fi
+    ;;
+  pw32*)
+    export_symbols_cmds_CXX=$ltdll_cmds
+    ;;
+  cygwin* | mingw* | cegcc*)
+    case $cc_basename in
+    cl*)
+      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
+      ;;
+    *)
+      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
+      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
+      ;;
+    esac
+    ;;
+  *)
+    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+    ;;
+  esac
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
+$as_echo "$ld_shlibs_CXX" >&6; }
+test no = "$ld_shlibs_CXX" && can_build_shared=no
+
+with_gnu_ld_CXX=$with_gnu_ld
+
+
+
+
+
+
+#
+# Do we need to explicitly link libc?
+#
+case "x$archive_cmds_need_lc_CXX" in
+x|xyes)
+  # Assume -lc should be added
+  archive_cmds_need_lc_CXX=yes
+
+  if test yes,yes = "$GCC,$enable_shared"; then
+    case $archive_cmds_CXX in
+    *'~'*)
+      # FIXME: we may have to deal with multi-command sequences.
+      ;;
+    '$CC '*)
+      # Test whether the compiler implicitly links with -lc since on some
+      # systems, -lgcc has to come before -lc. If gcc already passes -lc
+      # to ld, don't add -lc before -lgcc.
+      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
+$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
+if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  $RM conftest*
+       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; } 2>conftest.err; then
+         soname=conftest
+         lib=conftest
+         libobjs=conftest.$ac_objext
+         deplibs=
+         wl=$lt_prog_compiler_wl_CXX
+         pic_flag=$lt_prog_compiler_pic_CXX
+         compiler_flags=-v
+         linker_flags=-v
+         verstring=
+         output_objdir=.
+         libname=conftest
+         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
+         allow_undefined_flag_CXX=
+         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
+  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }
+         then
+           lt_cv_archive_cmds_need_lc_CXX=no
+         else
+           lt_cv_archive_cmds_need_lc_CXX=yes
+         fi
+         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
+       else
+         cat conftest.err 1>&5
+       fi
+       $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
+$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
+      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
+      ;;
+    esac
+  fi
+  ;;
+esac
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
+$as_echo_n "checking dynamic linker characteristics... " >&6; }
+
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=.so
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
+  shlibpath_var=LIBPATH
+
+  # AIX 3 has no versioning support, so we append a major version to the name.
+  soname_spec='$libname$release$shared_ext$major'
+  ;;
+
+aix[4-9]*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  hardcode_into_libs=yes
+  if test ia64 = "$host_cpu"; then
+    # AIX 5 supports IA64
+    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
+    shlibpath_var=LD_LIBRARY_PATH
+  else
+    # With GCC up to 2.95.x, collect2 would create an import file
+    # for dependence libraries.  The import file would start with
+    # the line '#! .'.  This would cause the generated library to
+    # depend on '.', always an invalid library.  This was fixed in
+    # development snapshots of GCC prior to 3.0.
+    case $host_os in
+      aix4 | aix4.[01] | aix4.[01].*)
+      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+          echo ' yes '
+          echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
+       :
+      else
+       can_build_shared=no
+      fi
+      ;;
+    esac
+    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
+    # soname into executable. Probably we can add versioning support to
+    # collect2, so additional links can be useful in future.
+    if test yes = "$aix_use_runtimelinking"; then
+      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+      # instead of lib<name>.a to let people know that these are not
+      # typical AIX shared libraries.
+      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    else
+      # We preserve .a as extension for shared libraries through AIX4.2
+      # and later when we are not doing run time linking.
+      library_names_spec='$libname$release.a $libname.a'
+      soname_spec='$libname$release$shared_ext$major'
+    fi
+    shlibpath_var=LIBPATH
+  fi
+  ;;
+
+amigaos*)
+  case $host_cpu in
+  powerpc)
+    # Since July 2007 AmigaOS4 officially supports .so libraries.
+    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    ;;
+  m68k)
+    library_names_spec='$libname.ixlibrary $libname.a'
+    # Create ${libname}_ixlibrary.a entries in /sys/libs.
+    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+    ;;
+  esac
+  ;;
+
+beos*)
+  library_names_spec='$libname$shared_ext'
+  dynamic_linker="$host_os ld.so"
+  shlibpath_var=LIBRARY_PATH
+  ;;
+
+bsdi[45]*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+  # the default ld.so.conf also contains /usr/contrib/lib and
+  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+  # libtool to hard-code these into programs
+  ;;
+
+cygwin* | mingw* | pw32* | cegcc*)
+  version_type=windows
+  shrext_cmds=.dll
+  need_version=no
+  need_lib_prefix=no
+
+  case $GCC,$cc_basename in
+  yes,*)
+    # gcc
+    library_names_spec='$libname.dll.a'
+    # DLL is installed to $(libdir)/../bin by postinstall_cmds
+    postinstall_cmds='base_file=`basename \$file`~
+      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
+      dldir=$destdir/`dirname \$dlpath`~
+      test -d \$dldir || mkdir -p \$dldir~
+      $install_prog $dir/$dlname \$dldir/$dlname~
+      chmod a+x \$dldir/$dlname~
+      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+      fi'
+    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+      dlpath=$dir/\$dldll~
+       $RM \$dlpath'
+    shlibpath_overrides_runpath=yes
+
+    case $host_os in
+    cygwin*)
+      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
+
+      ;;
+    mingw* | cegcc*)
+      # MinGW DLLs use traditional 'lib' prefix
+      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
+      ;;
+    pw32*)
+      # pw32 DLLs use 'pw' prefix rather than 'lib'
+      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
+      ;;
+    esac
+    dynamic_linker='Win32 ld.exe'
+    ;;
+
+  *,cl*)
+    # Native MSVC
+    libname_spec='$name'
+    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
+    library_names_spec='$libname.dll.lib'
+
+    case $build_os in
+    mingw*)
+      sys_lib_search_path_spec=
+      lt_save_ifs=$IFS
+      IFS=';'
+      for lt_path in $LIB
+      do
+        IFS=$lt_save_ifs
+        # Let DOS variable expansion print the short 8.3 style file name.
+        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
+        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
+      done
+      IFS=$lt_save_ifs
+      # Convert to MSYS style.
+      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
+      ;;
+    cygwin*)
+      # Convert to unix form, then to dos form, then back to unix form
+      # but this time dos style (no spaces!) so that the unix form looks
+      # like /cygdrive/c/PROGRA~1:/cygdr...
+      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
+      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
+      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+      ;;
+    *)
+      sys_lib_search_path_spec=$LIB
+      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
+        # It is most probably a Windows format PATH.
+        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+      else
+        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+      fi
+      # FIXME: find the short name or the path components, as spaces are
+      # common. (e.g. "Program Files" -> "PROGRA~1")
+      ;;
+    esac
+
+    # DLL is installed to $(libdir)/../bin by postinstall_cmds
+    postinstall_cmds='base_file=`basename \$file`~
+      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
+      dldir=$destdir/`dirname \$dlpath`~
+      test -d \$dldir || mkdir -p \$dldir~
+      $install_prog $dir/$dlname \$dldir/$dlname'
+    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+      dlpath=$dir/\$dldll~
+       $RM \$dlpath'
+    shlibpath_overrides_runpath=yes
+    dynamic_linker='Win32 link.exe'
+    ;;
+
+  *)
+    # Assume MSVC wrapper
+    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
+    dynamic_linker='Win32 ld.exe'
+    ;;
+  esac
+  # FIXME: first we should search . and the directory the executable is in
+  shlibpath_var=PATH
+  ;;
+
+darwin* | rhapsody*)
+  dynamic_linker="$host_os dyld"
+  version_type=darwin
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
+  soname_spec='$libname$release$major$shared_ext'
+  shlibpath_overrides_runpath=yes
+  shlibpath_var=DYLD_LIBRARY_PATH
+  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
+
+  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+  ;;
+
+dgux*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+freebsd* | dragonfly*)
+  # DragonFly does not have aout.  When/if they implement a new
+  # versioning mechanism, adjust this.
+  if test -x /usr/bin/objformat; then
+    objformat=`/usr/bin/objformat`
+  else
+    case $host_os in
+    freebsd[23].*) objformat=aout ;;
+    *) objformat=elf ;;
+    esac
+  fi
+  version_type=freebsd-$objformat
+  case $version_type in
+    freebsd-elf*)
+      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
+      need_version=no
+      need_lib_prefix=no
+      ;;
+    freebsd-*)
+      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
+      need_version=yes
+      ;;
+  esac
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_os in
+  freebsd2.*)
+    shlibpath_overrides_runpath=yes
+    ;;
+  freebsd3.[01]* | freebsdelf3.[01]*)
+    shlibpath_overrides_runpath=yes
+    hardcode_into_libs=yes
+    ;;
+  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
+  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
+    shlibpath_overrides_runpath=no
+    hardcode_into_libs=yes
+    ;;
+  *) # from 4.6 on, and DragonFly
+    shlibpath_overrides_runpath=yes
+    hardcode_into_libs=yes
+    ;;
+  esac
+  ;;
+
+haiku*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  dynamic_linker="$host_os runtime_loader"
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
+  hardcode_into_libs=yes
+  ;;
+
+hpux9* | hpux10* | hpux11*)
+  # Give a soname corresponding to the major version so that dld.sl refuses to
+  # link against other versions.
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  case $host_cpu in
+  ia64*)
+    shrext_cmds='.so'
+    hardcode_into_libs=yes
+    dynamic_linker="$host_os dld.so"
+    shlibpath_var=LD_LIBRARY_PATH
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    soname_spec='$libname$release$shared_ext$major'
+    if test 32 = "$HPUX_IA64_MODE"; then
+      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+    else
+      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+    fi
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+    ;;
+  hppa*64*)
+    shrext_cmds='.sl'
+    hardcode_into_libs=yes
+    dynamic_linker="$host_os dld.sl"
+    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    soname_spec='$libname$release$shared_ext$major'
+    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+    ;;
+  *)
+    shrext_cmds='.sl'
+    dynamic_linker="$host_os dld.sl"
+    shlibpath_var=SHLIB_PATH
+    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    soname_spec='$libname$release$shared_ext$major'
+    ;;
+  esac
+  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
+  postinstall_cmds='chmod 555 $lib'
+  # or fails outright, so override atomically:
+  install_override_mode=555
+  ;;
+
+interix[3-9]*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $host_os in
+    nonstopux*) version_type=nonstopux ;;
+    *)
+       if test yes = "$lt_cv_prog_gnu_ld"; then
+               version_type=linux # correct to gnu/linux during the next big refactor
+       else
+               version_type=irix
+       fi ;;
+  esac
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='$libname$release$shared_ext$major'
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
+  case $host_os in
+  irix5* | nonstopux*)
+    libsuff= shlibsuff=
+    ;;
+  *)
+    case $LD in # libtool.m4 will add one of these switches to LD
+    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+      libsuff= shlibsuff= libmagic=32-bit;;
+    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+      libsuff=32 shlibsuff=N32 libmagic=N32;;
+    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+      libsuff=64 shlibsuff=64 libmagic=64-bit;;
+    *) libsuff= shlibsuff= libmagic=never-match;;
+    esac
+    ;;
+  esac
+  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+  shlibpath_overrides_runpath=no
+  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
+  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
+  hardcode_into_libs=yes
+  ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+  dynamic_linker=no
+  ;;
+
+linux*android*)
+  version_type=none # Android doesn't support versioned libraries.
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext'
+  soname_spec='$libname$release$shared_ext'
+  finish_cmds=
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+
+  # This implies no fast_install, which is unacceptable.
+  # Some rework will be needed to allow for fast_install
+  # before this can be enabled.
+  hardcode_into_libs=yes
+
+  dynamic_linker='Android linker'
+  # Don't embed -rpath directories since the linker doesn't support them.
+  hardcode_libdir_flag_spec_CXX='-L$libdir'
+  ;;
+
+# This must be glibc/ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+
+  # Some binutils ld are patched to set DT_RUNPATH
+  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  lt_cv_shlibpath_overrides_runpath=no
+    save_LDFLAGS=$LDFLAGS
+    save_libdir=$libdir
+    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
+        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
+    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_cxx_try_link "$LINENO"; then :
+  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
+  lt_cv_shlibpath_overrides_runpath=yes
+fi
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+    LDFLAGS=$save_LDFLAGS
+    libdir=$save_libdir
+
+fi
+
+  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
+
+  # This implies no fast_install, which is unacceptable.
+  # Some rework will be needed to allow for fast_install
+  # before this can be enabled.
+  hardcode_into_libs=yes
+
+  # Append ld.so.conf contents to the search path
+  if test -f /etc/ld.so.conf; then
+    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
+    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+  fi
+
+  # We used to test for /lib/ld.so.1 and disable shared libraries on
+  # powerpc, because MkLinux only supported shared libraries with the
+  # GNU dynamic linker.  Since this was broken with cross compilers,
+  # most powerpc-linux boxes support dynamic linking these days and
+  # people can always --disable-shared, the test was removed, and we
+  # assume the GNU/Linux dynamic linker is in use.
+  dynamic_linker='GNU/Linux ld.so'
+  ;;
+
+netbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
+    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+    dynamic_linker='NetBSD (a.out) ld.so'
+  else
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    soname_spec='$libname$release$shared_ext$major'
+    dynamic_linker='NetBSD ld.elf_so'
+  fi
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  ;;
+
+newsos6)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+*nto* | *qnx*)
+  version_type=qnx
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='ldqnx.so'
+  ;;
+
+openbsd* | bitrig*)
+  version_type=sunos
+  sys_lib_dlsearch_path_spec=/usr/lib
+  need_lib_prefix=no
+  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
+    need_version=no
+  else
+    need_version=yes
+  fi
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+os2*)
+  libname_spec='$name'
+  shrext_cmds=.dll
+  need_lib_prefix=no
+  library_names_spec='$libname$shared_ext $libname.a'
+  dynamic_linker='OS/2 ld.exe'
+  shlibpath_var=LIBPATH
+  ;;
+
+osf3* | osf4* | osf5*)
+  version_type=osf
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='$libname$release$shared_ext$major'
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+  ;;
+
+rdos*)
+  dynamic_linker=no
+  ;;
+
+solaris*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  # ldd complains unless libraries are executable
+  postinstall_cmds='chmod +x $lib'
+  ;;
+
+sunos4*)
+  version_type=sunos
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
+  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  if test yes = "$with_gnu_ld"; then
+    need_lib_prefix=no
+  fi
+  need_version=yes
+  ;;
+
+sysv4 | sysv4.3*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_vendor in
+    sni)
+      shlibpath_overrides_runpath=no
+      need_lib_prefix=no
+      runpath_var=LD_RUN_PATH
+      ;;
+    siemens)
+      need_lib_prefix=no
+      ;;
+    motorola)
+      need_lib_prefix=no
+      need_version=no
+      shlibpath_overrides_runpath=no
+      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+      ;;
+  esac
+  ;;
+
+sysv4*MP*)
+  if test -d /usr/nec; then
+    version_type=linux # correct to gnu/linux during the next big refactor
+    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
+    soname_spec='$libname$shared_ext.$major'
+    shlibpath_var=LD_LIBRARY_PATH
+  fi
+  ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+  version_type=freebsd-elf
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  if test yes = "$with_gnu_ld"; then
+    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
+  else
+    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
+    case $host_os in
+      sco3.2v5*)
+        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
+       ;;
+    esac
+  fi
+  sys_lib_dlsearch_path_spec='/usr/lib'
+  ;;
+
+tpf*)
+  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  ;;
+
+uts4*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+*)
+  dynamic_linker=no
+  ;;
+esac
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
+$as_echo "$dynamic_linker" >&6; }
+test no = "$dynamic_linker" && can_build_shared=no
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test yes = "$GCC"; then
+  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
+  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
+fi
+if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
+  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
+$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
+hardcode_action_CXX=
+if test -n "$hardcode_libdir_flag_spec_CXX" ||
+   test -n "$runpath_var_CXX" ||
+   test yes = "$hardcode_automatic_CXX"; then
+
+  # We can hardcode non-existent directories.
+  if test no != "$hardcode_direct_CXX" &&
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we
+     # have to relink, otherwise we might link with an installed library
+     # when we should be linking with a yet-to-be-installed one
+     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
+     test no != "$hardcode_minus_L_CXX"; then
+    # Linking always hardcodes the temporary library directory.
+    hardcode_action_CXX=relink
+  else
+    # We can link without hardcoding, and we can hardcode nonexisting dirs.
+    hardcode_action_CXX=immediate
+  fi
+else
+  # We cannot hardcode anything, or else we can only hardcode existing
+  # directories.
+  hardcode_action_CXX=unsupported
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
+$as_echo "$hardcode_action_CXX" >&6; }
+
+if test relink = "$hardcode_action_CXX" ||
+   test yes = "$inherit_rpath_CXX"; then
+  # Fast installation is not supported
+  enable_fast_install=no
+elif test yes = "$shlibpath_overrides_runpath" ||
+     test no = "$enable_shared"; then
+  # Fast installation is not necessary
+  enable_fast_install=needless
+fi
+
+
+
+
+
+
+
+  fi # test -n "$compiler"
+
+  CC=$lt_save_CC
+  CFLAGS=$lt_save_CFLAGS
+  LDCXX=$LD
+  LD=$lt_save_LD
+  GCC=$lt_save_GCC
+  with_gnu_ld=$lt_save_with_gnu_ld
+  lt_cv_path_LDCXX=$lt_cv_path_LD
+  lt_cv_path_LD=$lt_save_path_LD
+  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
+  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
+fi # test yes != "$_lt_caught_CXX_error"
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
+       if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_PKG_CONFIG+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  case $PKG_CONFIG in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+  ;;
+esac
+fi
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
+if test -n "$PKG_CONFIG"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
+$as_echo "$PKG_CONFIG" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_path_PKG_CONFIG"; then
+  ac_pt_PKG_CONFIG=$PKG_CONFIG
+  # Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  case $ac_pt_PKG_CONFIG in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+  ;;
+esac
+fi
+ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
+if test -n "$ac_pt_PKG_CONFIG"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
+$as_echo "$ac_pt_PKG_CONFIG" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_pt_PKG_CONFIG" = x; then
+    PKG_CONFIG=""
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    PKG_CONFIG=$ac_pt_PKG_CONFIG
+  fi
+else
+  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
+fi
+
+fi
+if test -n "$PKG_CONFIG"; then
+       _pkg_min_version=0.20
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
+$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
+       if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
+               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+       else
+               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+               PKG_CONFIG=""
+       fi
+
+fi
+
+RAGEL=${RAGEL-"${am_missing_run}ragel"}
+
+
+GIT=${GIT-"${am_missing_run}git"}
+
+
+# Version
+
+
+
+
+HB_VERSION_MAJOR=0
+HB_VERSION_MINOR=9
+HB_VERSION_MICRO=35
+HB_VERSION=0.9.35
+
+
+
+
+
+# Libtool version
+
+
+
+
+HB_LIBTOOL_VERSION_INFO=935:0:935
+
+
+# Documentation
+have_gtk_doc=false
+
+
+
+
+  gtk_doc_requires="gtk-doc >= 1.15"
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
+$as_echo_n "checking for gtk-doc... " >&6; }
+  if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  have_gtk_doc=yes
+else
+  have_gtk_doc=no
+fi
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
+$as_echo "$have_gtk_doc" >&6; }
+
+  if test "$have_gtk_doc" = "no"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
+  You will not be able to create source packages with 'make dist'
+  because $gtk_doc_requires is not found." >&5
+$as_echo "$as_me: WARNING:
+  You will not be able to create source packages with 'make dist'
+  because $gtk_doc_requires is not found." >&2;}
+  fi
+
+            # Extract the first word of "gtkdoc-check", so it can be a program name with args.
+set dummy gtkdoc-check; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$GTKDOC_CHECK"; then
+  ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
+if test -n "$GTKDOC_CHECK"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
+$as_echo "$GTKDOC_CHECK" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  # Extract the first word of "gtkdoc-check", so it can be a program name with args.
+set dummy gtkdoc-check; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  case $GTKDOC_CHECK_PATH in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+  ;;
+esac
+fi
+GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
+if test -n "$GTKDOC_CHECK_PATH"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
+$as_echo "$GTKDOC_CHECK_PATH" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  for ac_prog in gtkdoc-rebase
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  case $GTKDOC_REBASE in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+  ;;
+esac
+fi
+GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
+if test -n "$GTKDOC_REBASE"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
+$as_echo "$GTKDOC_REBASE" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  test -n "$GTKDOC_REBASE" && break
+done
+test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
+
+  # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
+set dummy gtkdoc-mkpdf; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  case $GTKDOC_MKPDF in
+  [\\/]* | ?:[\\/]*)
+  ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
+  ;;
+  *)
+  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+  ;;
+esac
+fi
+GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
+if test -n "$GTKDOC_MKPDF"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
+$as_echo "$GTKDOC_MKPDF" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+# Check whether --with-html-dir was given.
+if test "${with_html_dir+set}" = set; then :
+  withval=$with_html_dir;
+else
+  with_html_dir='${datadir}/gtk-doc/html'
+fi
+
+  HTML_DIR="$with_html_dir"
+
+
+    # Check whether --enable-gtk-doc was given.
+if test "${enable_gtk_doc+set}" = set; then :
+  enableval=$enable_gtk_doc;
+else
+  enable_gtk_doc=no
+fi
+
+
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
+$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
+$as_echo "$enable_gtk_doc" >&6; }
+
+  if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
+    as_fn_error $? "
+  You must have $gtk_doc_requires installed to build documentation for
+  $PACKAGE_NAME. Please install gtk-doc or disable building the
+  documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
+  fi
+
+    if test "x$PACKAGE_NAME" != "xglib"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
+$as_echo_n "checking for GTKDOC_DEPS... " >&6; }
+
+if test -n "$PKG_CONFIG"; then
+    if test -n "$GTKDOC_DEPS_CFLAGS"; then
+        pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+if test -n "$PKG_CONFIG"; then
+    if test -n "$GTKDOC_DEPS_LIBS"; then
+        pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+        _pkg_short_errors_supported=yes
+else
+        _pkg_short_errors_supported=no
+fi
+        if test $_pkg_short_errors_supported = yes; then
+               GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
+        else
+               GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0"`
+        fi
+       # Put the nasty error message in config.log where it belongs
+       echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
+
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+                :
+elif test $pkg_failed = untried; then
+       :
+else
+       GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
+       GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+       :
+fi
+  fi
+
+    # Check whether --enable-gtk-doc-html was given.
+if test "${enable_gtk_doc_html+set}" = set; then :
+  enableval=$enable_gtk_doc_html;
+else
+  enable_gtk_doc_html=yes
+fi
+
+    # Check whether --enable-gtk-doc-pdf was given.
+if test "${enable_gtk_doc_pdf+set}" = set; then :
+  enableval=$enable_gtk_doc_pdf;
+else
+  enable_gtk_doc_pdf=no
+fi
+
+
+  if test -z "$GTKDOC_MKPDF"; then
+    enable_gtk_doc_pdf=no
+  fi
+
+  if test -z "$AM_DEFAULT_VERBOSITY"; then
+    AM_DEFAULT_VERBOSITY=1
+  fi
+
+
+   if test x$have_gtk_doc = xyes; then
+  HAVE_GTK_DOC_TRUE=
+  HAVE_GTK_DOC_FALSE='#'
+else
+  HAVE_GTK_DOC_TRUE='#'
+  HAVE_GTK_DOC_FALSE=
+fi
+
+   if test x$enable_gtk_doc = xyes; then
+  ENABLE_GTK_DOC_TRUE=
+  ENABLE_GTK_DOC_FALSE='#'
+else
+  ENABLE_GTK_DOC_TRUE='#'
+  ENABLE_GTK_DOC_FALSE=
+fi
+
+   if test x$enable_gtk_doc_html = xyes; then
+  GTK_DOC_BUILD_HTML_TRUE=
+  GTK_DOC_BUILD_HTML_FALSE='#'
+else
+  GTK_DOC_BUILD_HTML_TRUE='#'
+  GTK_DOC_BUILD_HTML_FALSE=
+fi
+
+   if test x$enable_gtk_doc_pdf = xyes; then
+  GTK_DOC_BUILD_PDF_TRUE=
+  GTK_DOC_BUILD_PDF_FALSE='#'
+else
+  GTK_DOC_BUILD_PDF_TRUE='#'
+  GTK_DOC_BUILD_PDF_FALSE=
+fi
+
+   if test -n "$LIBTOOL"; then
+  GTK_DOC_USE_LIBTOOL_TRUE=
+  GTK_DOC_USE_LIBTOOL_FALSE='#'
+else
+  GTK_DOC_USE_LIBTOOL_TRUE='#'
+  GTK_DOC_USE_LIBTOOL_FALSE=
+fi
+
+   if test -n "$GTKDOC_REBASE"; then
+  GTK_DOC_USE_REBASE_TRUE=
+  GTK_DOC_USE_REBASE_FALSE='#'
+else
+  GTK_DOC_USE_REBASE_TRUE='#'
+  GTK_DOC_USE_REBASE_FALSE=
+fi
+
+
+       if test "x$enable_gtk_doc" = xyes; then
+               have_gtk_doc=true
+       fi
+
+
+# Functions and headers
+for ac_func in atexit mprotect sysconf getpagesize mmap isatty
+do :
+  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
+  cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+done
+
+for ac_header in unistd.h sys/mman.h
+do :
+  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+  cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+# Compiler flags
+
+# The cast to long int works around a bug in the HP C Compiler,
+# see AC_CHECK_SIZEOF for more information.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of struct{char;}" >&5
+$as_echo_n "checking alignment of struct{char;}... " >&6; }
+if ${ac_cv_alignof_struct_char__+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_struct_char__"        "$ac_includes_default
+#ifndef offsetof
+# define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
+#endif
+typedef struct { char x; struct{char;} y; } ac__type_alignof_;"; then :
+
+else
+  if test "$ac_cv_type_struct_char__" = yes; then
+     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "cannot compute alignment of struct{char;}
+See \`config.log' for more details" "$LINENO" 5; }
+   else
+     ac_cv_alignof_struct_char__=0
+   fi
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_struct_char__" >&5
+$as_echo "$ac_cv_alignof_struct_char__" >&6; }
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define ALIGNOF_STRUCT_CHAR__ $ac_cv_alignof_struct_char__
+_ACEOF
+
+
+if test "x$GCC" = "xyes"; then
+
+       # Make symbols link locally
+       LDFLAGS="$LDFLAGS -Bsymbolic-functions"
+
+       # Make sure we don't link to libstdc++
+       CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
+
+       # Assorted warnings
+       CXXFLAGS="$CXXFLAGS -Wcast-align"
+
+       case "$host" in
+               *-*-mingw*)
+               ;;
+               *)
+                       # Hide inline methods
+                       CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
+               ;;
+       esac
+
+       case "$host" in
+               arm-*-*)
+                       if test "x$ac_cv_alignof_struct_char__" != x1; then
+                               # Request byte alignment
+                               CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
+                       fi
+               ;;
+       esac
+fi
+
+ if test "x$GCC" = "xyes"; then
+  HAVE_GCC_TRUE=
+  HAVE_GCC_FALSE='#'
+else
+  HAVE_GCC_TRUE='#'
+  HAVE_GCC_FALSE=
+fi
+
+
+hb_os_win32=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
+$as_echo_n "checking for native Win32... " >&6; }
+case "$host" in
+  *-*-mingw*)
+    hb_os_win32=yes
+    ;;
+esac
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_os_win32" >&5
+$as_echo "$hb_os_win32" >&6; }
+ if test "$hb_os_win32" = "yes"; then
+  OS_WIN32_TRUE=
+  OS_WIN32_FALSE='#'
+else
+  OS_WIN32_TRUE='#'
+  OS_WIN32_FALSE=
+fi
+
+
+have_pthread=false
+if test "$hb_os_win32" = no; then
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ax_pthread_ok=no
+
+# We used to check for pthread.h first, but this fails if pthread.h
+# requires special compiler flags (e.g. on True64 or Sequent).
+# It gets checked for in the link test anyway.
+
+# First of all, check if the user has set any of the PTHREAD_LIBS,
+# etcetera environment variables, and if threads linking works using
+# them:
+if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
+        save_CFLAGS="$CFLAGS"
+        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+        save_LIBS="$LIBS"
+        LIBS="$PTHREAD_LIBS $LIBS"
+        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
+$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
+        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char pthread_join ();
+int
+main ()
+{
+return pthread_join ();
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ax_pthread_ok=yes
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
+$as_echo "$ax_pthread_ok" >&6; }
+        if test x"$ax_pthread_ok" = xno; then
+                PTHREAD_LIBS=""
+                PTHREAD_CFLAGS=""
+        fi
+        LIBS="$save_LIBS"
+        CFLAGS="$save_CFLAGS"
+fi
+
+# We must check for the threads library under a number of different
+# names; the ordering is very important because some systems
+# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
+# libraries is broken (non-POSIX).
+
+# Create a list of thread flags to try.  Items starting with a "-" are
+# C compiler flags, and other items are library names, except for "none"
+# which indicates that we try without any flags at all, and "pthread-config"
+# which is a program returning the flags for the Pth emulation library.
+
+ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
+
+# The ordering *is* (sometimes) important.  Some notes on the
+# individual items follow:
+
+# pthreads: AIX (must check this before -lpthread)
+# none: in case threads are in libc; should be tried before -Kthread and
+#       other compiler flags to prevent continual compiler warnings
+# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
+# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
+# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
+# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
+# -pthreads: Solaris/gcc
+# -mthreads: Mingw32/gcc, Lynx/gcc
+# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
+#      doesn't hurt to check since this sometimes defines pthreads too;
+#      also defines -D_REENTRANT)
+#      ... -mt is also the pthreads flag for HP/aCC
+# pthread: Linux, etcetera
+# --thread-safe: KAI C++
+# pthread-config: use pthread-config program (for GNU Pth library)
+
+case ${host_os} in
+        solaris*)
+
+        # On Solaris (at least, for some versions), libc contains stubbed
+        # (non-functional) versions of the pthreads routines, so link-based
+        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
+        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
+        # a function called by this macro, so we could check for that, but
+        # who knows whether they'll stub that too in a future libc.)  So,
+        # we'll just look for -pthreads and -lpthread first:
+
+        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
+        ;;
+
+        darwin*)
+        ax_pthread_flags="-pthread $ax_pthread_flags"
+        ;;
+esac
+
+if test x"$ax_pthread_ok" = xno; then
+for flag in $ax_pthread_flags; do
+
+        case $flag in
+                none)
+                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
+$as_echo_n "checking whether pthreads work without any flags... " >&6; }
+                ;;
+
+                -*)
+                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
+$as_echo_n "checking whether pthreads work with $flag... " >&6; }
+                PTHREAD_CFLAGS="$flag"
+                ;;
+
+                pthread-config)
+                # Extract the first word of "pthread-config", so it can be a program name with args.
+set dummy pthread-config; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ax_pthread_config+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ax_pthread_config"; then
+  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ax_pthread_config="yes"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
+fi
+fi
+ax_pthread_config=$ac_cv_prog_ax_pthread_config
+if test -n "$ax_pthread_config"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
+$as_echo "$ax_pthread_config" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+                if test x"$ax_pthread_config" = xno; then continue; fi
+                PTHREAD_CFLAGS="`pthread-config --cflags`"
+                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
+                ;;
+
+                *)
+                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
+$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
+                PTHREAD_LIBS="-l$flag"
+                ;;
+        esac
+
+        save_LIBS="$LIBS"
+        save_CFLAGS="$CFLAGS"
+        LIBS="$PTHREAD_LIBS $LIBS"
+        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+
+        # Check for various functions.  We must include pthread.h,
+        # since some functions may be macros.  (On the Sequent, we
+        # need a special flag -Kthread to make this header compile.)
+        # We check for pthread_join because it is in -lpthread on IRIX
+        # while pthread_create is in libc.  We check for pthread_attr_init
+        # due to DEC craziness with -lpthreads.  We check for
+        # pthread_cleanup_push because it is one of the few pthread
+        # functions on Solaris that doesn't have a non-functional libc stub.
+        # We try pthread_create on general principles.
+        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <pthread.h>
+                        static void routine(void *a) { a = 0; }
+                        static void *start_routine(void *a) { return a; }
+int
+main ()
+{
+pthread_t th; pthread_attr_t attr;
+                        pthread_create(&th, 0, start_routine, 0);
+                        pthread_join(th, 0);
+                        pthread_attr_init(&attr);
+                        pthread_cleanup_push(routine, 0);
+                        pthread_cleanup_pop(0) /* ; */
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ax_pthread_ok=yes
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+
+        LIBS="$save_LIBS"
+        CFLAGS="$save_CFLAGS"
+
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
+$as_echo "$ax_pthread_ok" >&6; }
+        if test "x$ax_pthread_ok" = xyes; then
+                break;
+        fi
+
+        PTHREAD_LIBS=""
+        PTHREAD_CFLAGS=""
+done
+fi
+
+# Various other checks:
+if test "x$ax_pthread_ok" = xyes; then
+        save_LIBS="$LIBS"
+        LIBS="$PTHREAD_LIBS $LIBS"
+        save_CFLAGS="$CFLAGS"
+        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+
+        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
+        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
+$as_echo_n "checking for joinable pthread attribute... " >&6; }
+        attr_name=unknown
+        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
+            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <pthread.h>
+int
+main ()
+{
+int attr = $attr; return attr /* ; */
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  attr_name=$attr; break
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+        done
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
+$as_echo "$attr_name" >&6; }
+        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
+
+cat >>confdefs.h <<_ACEOF
+#define PTHREAD_CREATE_JOINABLE $attr_name
+_ACEOF
+
+        fi
+
+        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
+$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
+        flag=no
+        case ${host_os} in
+            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
+            osf* | hpux*) flag="-D_REENTRANT";;
+            solaris*)
+            if test "$GCC" = "yes"; then
+                flag="-D_REENTRANT"
+            else
+                flag="-mt -D_REENTRANT"
+            fi
+            ;;
+        esac
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
+$as_echo "${flag}" >&6; }
+        if test "x$flag" != xno; then
+            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
+        fi
+
+        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
+$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
+if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+
+                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+                    #include <pthread.h>
+int
+main ()
+{
+int i = PTHREAD_PRIO_INHERIT;
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  ax_cv_PTHREAD_PRIO_INHERIT=yes
+else
+  ax_cv_PTHREAD_PRIO_INHERIT=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
+$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
+        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
+
+$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
+
+fi
+
+        LIBS="$save_LIBS"
+        CFLAGS="$save_CFLAGS"
+
+        # More AIX lossage: must compile with xlc_r or cc_r
+        if test x"$GCC" != xyes; then
+          for ac_prog in xlc_r cc_r
+do
+  # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_PTHREAD_CC+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$PTHREAD_CC"; then
+  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_PTHREAD_CC="$ac_prog"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
+if test -n "$PTHREAD_CC"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
+$as_echo "$PTHREAD_CC" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+  test -n "$PTHREAD_CC" && break
+done
+test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
+
+        else
+          PTHREAD_CC=$CC
+        fi
+else
+        PTHREAD_CC="$CC"
+fi
+
+
+
+
+
+# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
+if test x"$ax_pthread_ok" = xyes; then
+        have_pthread=true
+        :
+else
+        ax_pthread_ok=no
+
+fi
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+fi
+if $have_pthread; then
+
+$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
+
+fi
+ if $have_pthread; then
+  HAVE_PTHREAD_TRUE=
+  HAVE_PTHREAD_FALSE='#'
+else
+  HAVE_PTHREAD_TRUE='#'
+  HAVE_PTHREAD_FALSE=
+fi
+
+
+
+have_ot=true
+if $have_ot; then
+
+$as_echo "#define HAVE_OT 1" >>confdefs.h
+
+fi
+ if $have_ot; then
+  HAVE_OT_TRUE=
+  HAVE_OT_FALSE='#'
+else
+  HAVE_OT_TRUE='#'
+  HAVE_OT_FALSE=
+fi
+
+
+have_fallback=true
+if $have_fallback; then
+
+$as_echo "#define HAVE_FALLBACK 1" >>confdefs.h
+
+fi
+ if $have_fallback; then
+  HAVE_FALLBACK_TRUE=
+  HAVE_FALLBACK_FALSE='#'
+else
+  HAVE_FALLBACK_TRUE='#'
+  HAVE_FALLBACK_FALSE=
+fi
+
+
+
+
+# Check whether --with-glib was given.
+if test "${with_glib+set}" = set; then :
+  withval=$with_glib;
+else
+  with_glib=auto
+fi
+
+have_glib=false
+if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
+$as_echo_n "checking for GLIB... " >&6; }
+
+if test -n "$PKG_CONFIG"; then
+    if test -n "$GLIB_CFLAGS"; then
+        pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+if test -n "$PKG_CONFIG"; then
+    if test -n "$GLIB_LIBS"; then
+        pkg_cv_GLIB_LIBS="$GLIB_LIBS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+        _pkg_short_errors_supported=yes
+else
+        _pkg_short_errors_supported=no
+fi
+        if test $_pkg_short_errors_supported = yes; then
+               GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= 2.16"`
+        else
+               GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.16"`
+        fi
+       # Put the nasty error message in config.log where it belongs
+       echo "$GLIB_PKG_ERRORS" >&5
+
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+                :
+elif test $pkg_failed = untried; then
+       :
+else
+       GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
+       GLIB_LIBS=$pkg_cv_GLIB_LIBS
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+       have_glib=true
+fi
+fi
+if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
+       as_fn_error $? "glib support requested but glib-2.0 not found" "$LINENO" 5
+fi
+if $have_glib; then
+
+$as_echo "#define HAVE_GLIB 1" >>confdefs.h
+
+fi
+ if $have_glib; then
+  HAVE_GLIB_TRUE=
+  HAVE_GLIB_FALSE='#'
+else
+  HAVE_GLIB_TRUE='#'
+  HAVE_GLIB_FALSE=
+fi
+
+
+
+
+# Check whether --with-gobject was given.
+if test "${with_gobject+set}" = set; then :
+  withval=$with_gobject;
+else
+  with_gobject=no
+fi
+
+have_gobject=false
+if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
+$as_echo_n "checking for GOBJECT... " >&6; }
+
+if test -n "$PKG_CONFIG"; then
+    if test -n "$GOBJECT_CFLAGS"; then
+        pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 glib-2.0" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+if test -n "$PKG_CONFIG"; then
+    if test -n "$GOBJECT_LIBS"; then
+        pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 glib-2.0\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "gobject-2.0 glib-2.0") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 glib-2.0" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+        _pkg_short_errors_supported=yes
+else
+        _pkg_short_errors_supported=no
+fi
+        if test $_pkg_short_errors_supported = yes; then
+               GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
+        else
+               GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0 glib-2.0"`
+        fi
+       # Put the nasty error message in config.log where it belongs
+       echo "$GOBJECT_PKG_ERRORS" >&5
+
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+                :
+elif test $pkg_failed = untried; then
+       :
+else
+       GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
+       GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+       have_gobject=true
+fi
+fi
+if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
+       as_fn_error $? "gobject support requested but gobject-2.0 / glib-2.0 not found" "$LINENO" 5
+fi
+if $have_gobject; then
+
+$as_echo "#define HAVE_GOBJECT 1" >>confdefs.h
+
+       GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
+
+fi
+ if $have_gobject; then
+  HAVE_GOBJECT_TRUE=
+  HAVE_GOBJECT_FALSE='#'
+else
+  HAVE_GOBJECT_TRUE='#'
+  HAVE_GOBJECT_FALSE=
+fi
+
+
+
+
+# Gobject-Introspection
+have_introspection=false
+
+       if $have_gobject; then
+
+
+
+                # Check whether --enable-introspection was given.
+if test "${enable_introspection+set}" = set; then :
+  enableval=$enable_introspection;
+else
+  enable_introspection=auto
+fi
+
+
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
+$as_echo_n "checking for gobject-introspection... " >&6; }
+
+        case $enable_introspection in #(
+  no) :
+            found_introspection="no (disabled, use --enable-introspection to enable)"
+     ;; #(
+      yes) :
+            if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  :
+else
+  as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
+fi
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  found_introspection=yes
+else
+  as_fn_error $? "You need to have gobject-introspection >= 1.34.0 installed to build HarfBuzz" "$LINENO" 5
+fi
+     ;; #(
+      auto) :
+            if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.34.0\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.34.0") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  found_introspection=yes
+else
+  found_introspection=no
+fi
+               enable_introspection=$found_introspection
+     ;; #(
+  *) :
+                as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
+     ;;
+esac
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
+$as_echo "$found_introspection" >&6; }
+
+    INTROSPECTION_SCANNER=
+    INTROSPECTION_COMPILER=
+    INTROSPECTION_GENERATE=
+    INTROSPECTION_GIRDIR=
+    INTROSPECTION_TYPELIBDIR=
+    if test "x$found_introspection" = "xyes"; then
+       INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
+       INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
+       INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
+       INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
+       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
+       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
+       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
+       INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
+    fi
+
+
+
+
+
+
+
+
+
+     if test "x$found_introspection" = "xyes"; then
+  HAVE_INTROSPECTION_TRUE=
+  HAVE_INTROSPECTION_FALSE='#'
+else
+  HAVE_INTROSPECTION_TRUE='#'
+  HAVE_INTROSPECTION_FALSE=
+fi
+
+
+
+               if test "x$found_introspection" = xyes; then
+                       have_introspection=true
+               fi
+       else
+                if false; then
+  HAVE_INTROSPECTION_TRUE=
+  HAVE_INTROSPECTION_FALSE='#'
+else
+  HAVE_INTROSPECTION_TRUE='#'
+  HAVE_INTROSPECTION_FALSE=
+fi
+
+       fi
+
+
+
+have_ucdn=true
+if $have_glib; then
+       have_ucdn=false
+fi
+if $have_ucdn; then
+
+$as_echo "#define HAVE_UCDN 1" >>confdefs.h
+
+fi
+ if $have_ucdn; then
+  HAVE_UCDN_TRUE=
+  HAVE_UCDN_FALSE='#'
+else
+  HAVE_UCDN_TRUE='#'
+  HAVE_UCDN_FALSE=
+fi
+
+
+
+
+# Check whether --with-cairo was given.
+if test "${with_cairo+set}" = set; then :
+  withval=$with_cairo;
+else
+  with_cairo=auto
+fi
+
+have_cairo=false
+if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
+$as_echo_n "checking for CAIRO... " >&6; }
+
+if test -n "$PKG_CONFIG"; then
+    if test -n "$CAIRO_CFLAGS"; then
+        pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.8.0" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+if test -n "$PKG_CONFIG"; then
+    if test -n "$CAIRO_LIBS"; then
+        pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.8.0\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "cairo >= 1.8.0") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.8.0" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+        _pkg_short_errors_supported=yes
+else
+        _pkg_short_errors_supported=no
+fi
+        if test $_pkg_short_errors_supported = yes; then
+               CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo >= 1.8.0"`
+        else
+               CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.8.0"`
+        fi
+       # Put the nasty error message in config.log where it belongs
+       echo "$CAIRO_PKG_ERRORS" >&5
+
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+                :
+elif test $pkg_failed = untried; then
+       :
+else
+       CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
+       CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+       have_cairo=true
+fi
+fi
+if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
+       as_fn_error $? "cairo support requested but not found" "$LINENO" 5
+fi
+if $have_cairo; then
+
+$as_echo "#define HAVE_CAIRO 1" >>confdefs.h
+
+fi
+ if $have_cairo; then
+  HAVE_CAIRO_TRUE=
+  HAVE_CAIRO_FALSE='#'
+else
+  HAVE_CAIRO_TRUE='#'
+  HAVE_CAIRO_FALSE=
+fi
+
+
+have_cairo_ft=false
+if $have_cairo; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_FT" >&5
+$as_echo_n "checking for CAIRO_FT... " >&6; }
+
+if test -n "$PKG_CONFIG"; then
+    if test -n "$CAIRO_FT_CFLAGS"; then
+        pkg_cv_CAIRO_FT_CFLAGS="$CAIRO_FT_CFLAGS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_CAIRO_FT_CFLAGS=`$PKG_CONFIG --cflags "cairo-ft" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+if test -n "$PKG_CONFIG"; then
+    if test -n "$CAIRO_FT_LIBS"; then
+        pkg_cv_CAIRO_FT_LIBS="$CAIRO_FT_LIBS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-ft\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "cairo-ft") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_CAIRO_FT_LIBS=`$PKG_CONFIG --libs "cairo-ft" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+        _pkg_short_errors_supported=yes
+else
+        _pkg_short_errors_supported=no
+fi
+        if test $_pkg_short_errors_supported = yes; then
+               CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo-ft"`
+        else
+               CAIRO_FT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo-ft"`
+        fi
+       # Put the nasty error message in config.log where it belongs
+       echo "$CAIRO_FT_PKG_ERRORS" >&5
+
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+                :
+elif test $pkg_failed = untried; then
+       :
+else
+       CAIRO_FT_CFLAGS=$pkg_cv_CAIRO_FT_CFLAGS
+       CAIRO_FT_LIBS=$pkg_cv_CAIRO_FT_LIBS
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+       have_cairo_ft=true
+fi
+fi
+if $have_cairo_ft; then
+
+$as_echo "#define HAVE_CAIRO_FT 1" >>confdefs.h
+
+fi
+ if $have_cairo_ft; then
+  HAVE_CAIRO_FT_TRUE=
+  HAVE_CAIRO_FT_FALSE='#'
+else
+  HAVE_CAIRO_FT_TRUE='#'
+  HAVE_CAIRO_FT_FALSE=
+fi
+
+
+
+
+# Check whether --with-icu was given.
+if test "${with_icu+set}" = set; then :
+  withval=$with_icu;
+else
+  with_icu=auto
+fi
+
+have_icu=false
+if test "x$with_icu" = "xyes" -o "x$with_icu" = "xauto"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU" >&5
+$as_echo_n "checking for ICU... " >&6; }
+
+if test -n "$PKG_CONFIG"; then
+    if test -n "$ICU_CFLAGS"; then
+        pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+if test -n "$PKG_CONFIG"; then
+    if test -n "$ICU_LIBS"; then
+        pkg_cv_ICU_LIBS="$ICU_LIBS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+        _pkg_short_errors_supported=yes
+else
+        _pkg_short_errors_supported=no
+fi
+        if test $_pkg_short_errors_supported = yes; then
+               ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "icu-uc"`
+        else
+               ICU_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "icu-uc"`
+        fi
+       # Put the nasty error message in config.log where it belongs
+       echo "$ICU_PKG_ERRORS" >&5
+
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+                :
+elif test $pkg_failed = untried; then
+       :
+else
+       ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
+       ICU_LIBS=$pkg_cv_ICU_LIBS
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+       have_icu=true
+fi
+
+               if test "$have_icu" != "true"; then
+               if test -n "$ac_tool_prefix"; then
+  # Extract the first word of "${ac_tool_prefix}icu-config", so it can be a program name with args.
+set dummy ${ac_tool_prefix}icu-config; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ICU_CONFIG+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ICU_CONFIG"; then
+  ac_cv_prog_ICU_CONFIG="$ICU_CONFIG" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ICU_CONFIG="${ac_tool_prefix}icu-config"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ICU_CONFIG=$ac_cv_prog_ICU_CONFIG
+if test -n "$ICU_CONFIG"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICU_CONFIG" >&5
+$as_echo "$ICU_CONFIG" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_ICU_CONFIG"; then
+  ac_ct_ICU_CONFIG=$ICU_CONFIG
+  # Extract the first word of "icu-config", so it can be a program name with args.
+set dummy icu-config; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_ICU_CONFIG+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  if test -n "$ac_ct_ICU_CONFIG"; then
+  ac_cv_prog_ac_ct_ICU_CONFIG="$ac_ct_ICU_CONFIG" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    for ac_exec_ext in '' $ac_executable_extensions; do
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_ICU_CONFIG="icu-config"
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+  done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_ICU_CONFIG=$ac_cv_prog_ac_ct_ICU_CONFIG
+if test -n "$ac_ct_ICU_CONFIG"; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ICU_CONFIG" >&5
+$as_echo "$ac_ct_ICU_CONFIG" >&6; }
+else
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+  if test "x$ac_ct_ICU_CONFIG" = x; then
+    ICU_CONFIG="no"
+  else
+    case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+    ICU_CONFIG=$ac_ct_ICU_CONFIG
+  fi
+else
+  ICU_CONFIG="$ac_cv_prog_ICU_CONFIG"
+fi
+
+               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU by using icu-config fallback" >&5
+$as_echo_n "checking for ICU by using icu-config fallback... " >&6; }
+               if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
+                       have_icu=true
+                       # We don't use --cflags as this gives us a lot of things that we don't
+                       # necessarily want, like debugging and optimization flags
+                       # See man (1) icu-config for more info.
+                       ICU_CFLAGS=`$ICU_CONFIG --cppflags`
+                       ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
+
+
+                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+               else
+                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+               fi
+       fi
+fi
+if test "x$with_icu" = "xyes" -a "x$have_icu" != "xtrue"; then
+       as_fn_error $? "icu support requested but icu-uc not found" "$LINENO" 5
+fi
+if $have_icu; then
+       CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
+
+$as_echo "#define HAVE_ICU 1" >>confdefs.h
+
+fi
+ if $have_icu; then
+  HAVE_ICU_TRUE=
+  HAVE_ICU_FALSE='#'
+else
+  HAVE_ICU_TRUE='#'
+  HAVE_ICU_FALSE=
+fi
+
+
+
+
+# Check whether --with-graphite2 was given.
+if test "${with_graphite2+set}" = set; then :
+  withval=$with_graphite2;
+else
+  with_graphite2=no
+fi
+
+have_graphite2=false
+if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GRAPHITE2" >&5
+$as_echo_n "checking for GRAPHITE2... " >&6; }
+
+if test -n "$PKG_CONFIG"; then
+    if test -n "$GRAPHITE2_CFLAGS"; then
+        pkg_cv_GRAPHITE2_CFLAGS="$GRAPHITE2_CFLAGS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"graphite2\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "graphite2") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_GRAPHITE2_CFLAGS=`$PKG_CONFIG --cflags "graphite2" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+if test -n "$PKG_CONFIG"; then
+    if test -n "$GRAPHITE2_LIBS"; then
+        pkg_cv_GRAPHITE2_LIBS="$GRAPHITE2_LIBS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"graphite2\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "graphite2") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_GRAPHITE2_LIBS=`$PKG_CONFIG --libs "graphite2" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+        _pkg_short_errors_supported=yes
+else
+        _pkg_short_errors_supported=no
+fi
+        if test $_pkg_short_errors_supported = yes; then
+               GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "graphite2"`
+        else
+               GRAPHITE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "graphite2"`
+        fi
+       # Put the nasty error message in config.log where it belongs
+       echo "$GRAPHITE2_PKG_ERRORS" >&5
+
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+                :
+elif test $pkg_failed = untried; then
+       :
+else
+       GRAPHITE2_CFLAGS=$pkg_cv_GRAPHITE2_CFLAGS
+       GRAPHITE2_LIBS=$pkg_cv_GRAPHITE2_LIBS
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+       have_graphite2=true
+fi
+fi
+if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
+       as_fn_error $? "graphite2 support requested but libgraphite2 not found" "$LINENO" 5
+fi
+if $have_graphite2; then
+
+$as_echo "#define HAVE_GRAPHITE2 1" >>confdefs.h
+
+fi
+ if $have_graphite2; then
+  HAVE_GRAPHITE2_TRUE=
+  HAVE_GRAPHITE2_FALSE='#'
+else
+  HAVE_GRAPHITE2_TRUE='#'
+  HAVE_GRAPHITE2_FALSE=
+fi
+
+
+
+
+# Check whether --with-freetype was given.
+if test "${with_freetype+set}" = set; then :
+  withval=$with_freetype;
+else
+  with_freetype=auto
+fi
+
+have_freetype=false
+if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
+$as_echo_n "checking for FREETYPE... " >&6; }
+
+if test -n "$PKG_CONFIG"; then
+    if test -n "$FREETYPE_CFLAGS"; then
+        pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.3.8\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.3.8") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.3.8" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+if test -n "$PKG_CONFIG"; then
+    if test -n "$FREETYPE_LIBS"; then
+        pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
+    else
+        if test -n "$PKG_CONFIG" && \
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 2.3.8\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "freetype2 >= 2.3.8") 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; then
+  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.3.8" 2>/dev/null`
+else
+  pkg_failed=yes
+fi
+    fi
+else
+       pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+        _pkg_short_errors_supported=yes
+else
+        _pkg_short_errors_supported=no
+fi
+        if test $_pkg_short_errors_supported = yes; then
+               FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2 >= 2.3.8"`
+        else
+               FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.3.8"`
+        fi
+       # Put the nasty error message in config.log where it belongs
+       echo "$FREETYPE_PKG_ERRORS" >&5
+
+       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+                :
+elif test $pkg_failed = untried; then
+       :
+else
+       FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
+       FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+       have_freetype=true
+fi
+fi
+if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
+       as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5
+fi
+if $have_freetype; then
+
+$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
+
+       _save_libs="$LIBS"
+       _save_cflags="$CFLAGS"
+       LIBS="$LIBS $FREETYPE_LIBS"
+       CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
+       for ac_func in FT_Face_GetCharVariantIndex
+do :
+  ac_fn_c_check_func "$LINENO" "FT_Face_GetCharVariantIndex" "ac_cv_func_FT_Face_GetCharVariantIndex"
+if test "x$ac_cv_func_FT_Face_GetCharVariantIndex" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_FT_FACE_GETCHARVARIANTINDEX 1
+_ACEOF
+
+fi
+done
+
+       LIBS="$_save_libs"
+       CFLAGS="$_save_cflags"
+fi
+ if $have_freetype; then
+  HAVE_FREETYPE_TRUE=
+  HAVE_FREETYPE_FALSE='#'
+else
+  HAVE_FREETYPE_TRUE='#'
+  HAVE_FREETYPE_FALSE=
+fi
+
+
+
+
+# Check whether --with-uniscribe was given.
+if test "${with_uniscribe+set}" = set; then :
+  withval=$with_uniscribe;
+else
+  with_uniscribe=no
+fi
+
+have_uniscribe=false
+if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
+       for ac_header in usp10.h windows.h
+do :
+  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+  cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+ have_uniscribe=true
+fi
+
+done
+
+fi
+if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
+       as_fn_error $? "uniscribe support requested but not found" "$LINENO" 5
+fi
+if $have_uniscribe; then
+       UNISCRIBE_CFLAGS=
+       UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
+
+
+
+$as_echo "#define HAVE_UNISCRIBE 1" >>confdefs.h
+
+fi
+ if $have_uniscribe; then
+  HAVE_UNISCRIBE_TRUE=
+  HAVE_UNISCRIBE_FALSE='#'
+else
+  HAVE_UNISCRIBE_TRUE='#'
+  HAVE_UNISCRIBE_FALSE=
+fi
+
+
+
+
+# Check whether --with-coretext was given.
+if test "${with_coretext+set}" = set; then :
+  withval=$with_coretext;
+else
+  with_coretext=no
+fi
+
+have_coretext=false
+if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
+       ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <ApplicationServices/ApplicationServices.h>
+"
+if test "x$ac_cv_type_CTFontRef" = xyes; then :
+  have_coretext=true
+fi
+
+
+       if $have_coretext; then
+               CORETEXT_CFLAGS=
+               CORETEXT_LIBS="-framework ApplicationServices"
+
+
+       else
+               # On iOS CoreText and CoreGraphics are stand-alone frameworks
+               if test "x$have_coretext" != "xtrue"; then
+                       ac_fn_c_check_type "$LINENO" "CTFontRef" "ac_cv_type_CTFontRef" "#include <CoreText/CoreText.h>
+"
+if test "x$ac_cv_type_CTFontRef" = xyes; then :
+  have_coretext=true
+fi
+
+               fi
+
+               if $have_coretext; then
+                       CORETEXT_CFLAGS=
+                       CORETEXT_LIBS="-framework CoreText -framework CoreGraphics"
+
+
+               fi
+       fi
+fi
+if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
+       as_fn_error $? "CoreText support requested but libcoretext not found" "$LINENO" 5
+fi
+if $have_coretext; then
+
+$as_echo "#define HAVE_CORETEXT 1" >>confdefs.h
+
+fi
+ if $have_coretext; then
+  HAVE_CORETEXT_TRUE=
+  HAVE_CORETEXT_FALSE='#'
+else
+  HAVE_CORETEXT_TRUE='#'
+  HAVE_CORETEXT_FALSE=
+fi
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
+$as_echo_n "checking for Intel atomic primitives... " >&6; }
+if ${hb_cv_have_intel_atomic_primitives+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+
+       hb_cv_have_intel_atomic_primitives=false
+       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+               void memory_barrier (void) { __sync_synchronize (); }
+               int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
+               int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
+               void mutex_unlock (int *m) { __sync_lock_release (m); }
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  hb_cv_have_intel_atomic_primitives=true
+
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_intel_atomic_primitives" >&5
+$as_echo "$hb_cv_have_intel_atomic_primitives" >&6; }
+if $hb_cv_have_intel_atomic_primitives; then
+
+$as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
+
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
+$as_echo_n "checking for Solaris atomic operations... " >&6; }
+if ${hb_cv_have_solaris_atomic_ops+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+
+       hb_cv_have_solaris_atomic_ops=false
+       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+               #include <atomic.h>
+               /* This requires Solaris Studio 12.2 or newer: */
+               #include <mbarrier.h>
+               void memory_barrier (void) { __machine_rw_barrier (); }
+               int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
+               void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
+
+int
+main ()
+{
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  hb_cv_have_solaris_atomic_ops=true
+
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hb_cv_have_solaris_atomic_ops" >&5
+$as_echo "$hb_cv_have_solaris_atomic_ops" >&6; }
+if $hb_cv_have_solaris_atomic_ops; then
+
+$as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
+
+fi
+
+if test "$os_win32" = no && ! $have_pthread; then
+       for ac_header in sched.h
+do :
+  ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
+if test "x$ac_cv_header_sched_h" = xyes; then :
+  cat >>confdefs.h <<_ACEOF
+#define HAVE_SCHED_H 1
+_ACEOF
+
+fi
+
+done
+
+       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
+$as_echo_n "checking for library containing sched_yield... " >&6; }
+if ${ac_cv_search_sched_yield+:} false; then :
+  $as_echo_n "(cached) " >&6
+else
+  ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char sched_yield ();
+int
+main ()
+{
+return sched_yield ();
+  ;
+  return 0;
+}
+_ACEOF
+for ac_lib in '' rt; do
+  if test -z "$ac_lib"; then
+    ac_res="none required"
+  else
+    ac_res=-l$ac_lib
+    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
+  fi
+  if ac_fn_c_try_link "$LINENO"; then :
+  ac_cv_search_sched_yield=$ac_res
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext
+  if ${ac_cv_search_sched_yield+:} false; then :
+  break
+fi
+done
+if ${ac_cv_search_sched_yield+:} false; then :
+
+else
+  ac_cv_search_sched_yield=no
+fi
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
+$as_echo "$ac_cv_search_sched_yield" >&6; }
+ac_res=$ac_cv_search_sched_yield
+if test "$ac_res" != no; then :
+  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+
+$as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
+
+fi
+
+fi
+
+
+ac_config_files="$ac_config_files Makefile src/Makefile src/hb-version.h src/hb-ucdn/Makefile util/Makefile test/Makefile test/api/Makefile test/shaping/Makefile docs/Makefile docs/reference/Makefile docs/reference/version.xml"
+
+
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems.  If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, we kill variables containing newlines.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+(
+  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
+    eval ac_val=\$$ac_var
+    case $ac_val in #(
+    *${as_nl}*)
+      case $ac_var in #(
+      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+      esac
+      case $ac_var in #(
+      _ | IFS | as_nl) ;; #(
+      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+      *) { eval $ac_var=; unset $ac_var;} ;;
+      esac ;;
+    esac
+  done
+
+  (set) 2>&1 |
+    case $as_nl`(ac_space=' '; set) 2>&1` in #(
+    *${as_nl}ac_space=\ *)
+      # `set' does not quote correctly, so add quotes: double-quote
+      # substitution turns \\\\ into \\, and sed turns \\ into \.
+      sed -n \
+       "s/'/'\\\\''/g;
+         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+      ;; #(
+    *)
+      # `set' quotes correctly as required by POSIX, so do not add quotes.
+      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+      ;;
+    esac |
+    sort
+) |
+  sed '
+     /^ac_cv_env_/b end
+     t clear
+     :clear
+     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+     t end
+     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+     :end' >>confcache
+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
+  if test -w "$cache_file"; then
+    if test "x$cache_file" != "x/dev/null"; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
+$as_echo "$as_me: updating cache $cache_file" >&6;}
+      if test ! -f "$cache_file" || test -h "$cache_file"; then
+       cat confcache >"$cache_file"
+      else
+        case $cache_file in #(
+        */* | ?:*)
+         mv -f confcache "$cache_file"$$ &&
+         mv -f "$cache_file"$$ "$cache_file" ;; #(
+        *)
+         mv -f confcache "$cache_file" ;;
+       esac
+      fi
+    fi
+  else
+    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
+$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
+  fi
+fi
+rm -f confcache
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+
+DEFS=-DHAVE_CONFIG_H
+
+ac_libobjs=
+ac_ltlibobjs=
+U=
+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
+  # 1. Remove the extension, and $U if already installed.
+  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
+  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
+  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
+  #    will be set to the directory where LIBOBJS objects are built.
+  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
+done
+LIBOBJS=$ac_libobjs
+
+LTLIBOBJS=$ac_ltlibobjs
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
+$as_echo_n "checking that generated files are newer than configure... " >&6; }
+   if test -n "$am_sleep_pid"; then
+     # Hide warnings about reused PIDs.
+     wait $am_sleep_pid 2>/dev/null
+   fi
+   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
+$as_echo "done" >&6; }
+ if test -n "$EXEEXT"; then
+  am__EXEEXT_TRUE=
+  am__EXEEXT_FALSE='#'
+else
+  am__EXEEXT_TRUE='#'
+  am__EXEEXT_FALSE=
+fi
+
+if test -z "${AUTOMAKE_OLDER_THAN_1_13_TRUE}" && test -z "${AUTOMAKE_OLDER_THAN_1_13_FALSE}"; then
+  as_fn_error $? "conditional \"AUTOMAKE_OLDER_THAN_1_13\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
+  as_fn_error $? "conditional \"AMDEP\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
+  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
+  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
+  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
+  as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
+  as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
+  as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
+  as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
+  as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
+  as_fn_error $? "conditional \"OS_WIN32\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_OT_TRUE}" && test -z "${HAVE_OT_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_OT\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_FALLBACK_TRUE}" && test -z "${HAVE_FALLBACK_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_FALLBACK\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_GOBJECT_TRUE}" && test -z "${HAVE_GOBJECT_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_GOBJECT\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_UCDN_TRUE}" && test -z "${HAVE_UCDN_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_UCDN\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_CAIRO_FT_TRUE}" && test -z "${HAVE_CAIRO_FT_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_CAIRO_FT\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_GRAPHITE2_TRUE}" && test -z "${HAVE_GRAPHITE2_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_GRAPHITE2\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_FREETYPE_TRUE}" && test -z "${HAVE_FREETYPE_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_FREETYPE\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_UNISCRIBE_TRUE}" && test -z "${HAVE_UNISCRIBE_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_UNISCRIBE\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_CORETEXT_TRUE}" && test -z "${HAVE_CORETEXT_FALSE}"; then
+  as_fn_error $? "conditional \"HAVE_CORETEXT\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+
+: "${CONFIG_STATUS=./config.status}"
+ac_write_fail=0
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
+$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
+as_write_fail=0
+cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+
+SHELL=\${CONFIG_SHELL-$SHELL}
+export SHELL
+_ASEOF
+cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
+  emulate sh
+  NULLCMD=:
+  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+"$@"}'='"$@"'
+  setopt NO_GLOB_SUBST
+else
+  case `(set -o) 2>/dev/null` in #(
+  *posix*) :
+    set -o posix ;; #(
+  *) :
+     ;;
+esac
+fi
+
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+  as_echo='print -r --'
+  as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+  as_echo='printf %s\n'
+  as_echo_n='printf %s'
+else
+  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+    as_echo_n='/usr/ucb/echo -n'
+  else
+    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+    as_echo_n_body='eval
+      arg=$1;
+      case $arg in #(
+      *"$as_nl"*)
+       expr "X$arg" : "X\\(.*\\)$as_nl";
+       arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+      esac;
+      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+    '
+    export as_echo_n_body
+    as_echo_n='sh -c $as_echo_n_body as_echo'
+  fi
+  export as_echo_body
+  as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+  PATH_SEPARATOR=:
+  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+      PATH_SEPARATOR=';'
+  }
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.  Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" ""       $as_nl"
+
+# Find who we are.  Look in the path if we contain no directory separator.
+as_myself=
+case $0 in #((
+  *[\\/]* ) as_myself=$0 ;;
+  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+  done
+IFS=$as_save_IFS
+
+     ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+  as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+  exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there.  '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+  as_status=$1; test $as_status -eq 0 && as_status=1
+  if test "$4"; then
+    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+  fi
+  $as_echo "$as_me: error: $2" >&2
+  as_fn_exit $as_status
+} # as_fn_error
+
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+  return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+  set +e
+  as_fn_set_status $1
+  exit $1
+} # as_fn_exit
+
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+  { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+  eval 'as_fn_append ()
+  {
+    eval $1+=\$2
+  }'
+else
+  as_fn_append ()
+  {
+    eval $1=\$$1\$2
+  }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+  eval 'as_fn_arith ()
+  {
+    as_val=$(( $* ))
+  }'
+else
+  as_fn_arith ()
+  {
+    as_val=`expr "$@" || test $? -eq 1`
+  }
+fi # as_fn_arith
+
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+   test "X`expr 00001 : '.*\(...\)'`" = X001; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+  as_basename=basename
+else
+  as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+  as_dirname=dirname
+else
+  as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+        X"$0" : 'X\(//\)$' \| \
+        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+    sed '/^.*\/\([^/][^/]*\)\/*$/{
+           s//\1/
+           q
+         }
+         /^X\/\(\/\/\)$/{
+           s//\1/
+           q
+         }
+         /^X\/\(\/\).*/{
+           s//\1/
+           q
+         }
+         s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+  case `echo 'xy\c'` in
+  *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
+  xy)  ECHO_C='\c';;
+  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
+       ECHO_T='        ';;
+  esac;;
+*)
+  ECHO_N='-n';;
+esac
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+  rm -f conf$$.dir/conf$$.file
+else
+  rm -f conf$$.dir
+  mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+  if ln -s conf$$.file conf$$ 2>/dev/null; then
+    as_ln_s='ln -s'
+    # ... but there are two gotchas:
+    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+    # In both cases, we have to default to `cp -pR'.
+    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+      as_ln_s='cp -pR'
+  elif ln conf$$.file conf$$ 2>/dev/null; then
+    as_ln_s=ln
+  else
+    as_ln_s='cp -pR'
+  fi
+else
+  as_ln_s='cp -pR'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+  case $as_dir in #(
+  -*) as_dir=./$as_dir;;
+  esac
+  test -d "$as_dir" || eval $as_mkdir_p || {
+    as_dirs=
+    while :; do
+      case $as_dir in #(
+      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+      *) as_qdir=$as_dir;;
+      esac
+      as_dirs="'$as_qdir' $as_dirs"
+      as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+        X"$as_dir" : 'X\(//\)[^/]' \| \
+        X"$as_dir" : 'X\(//\)$' \| \
+        X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+           s//\1/
+           q
+         }
+         /^X\(\/\/\)[^/].*/{
+           s//\1/
+           q
+         }
+         /^X\(\/\/\)$/{
+           s//\1/
+           q
+         }
+         /^X\(\/\).*/{
+           s//\1/
+           q
+         }
+         s/.*/./; q'`
+      test -d "$as_dir" && break
+    done
+    test -z "$as_dirs" || eval "mkdir $as_dirs"
+  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+if mkdir -p . 2>/dev/null; then
+  as_mkdir_p='mkdir -p "$as_dir"'
+else
+  test -d ./-p && rmdir ./-p
+  as_mkdir_p=false
+fi
+
+
+# as_fn_executable_p FILE
+# -----------------------
+# Test if FILE is an executable regular file.
+as_fn_executable_p ()
+{
+  test -f "$1" && test -x "$1"
+} # as_fn_executable_p
+as_test_x='test -x'
+as_executable_p=as_fn_executable_p
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 6>&1
+## ----------------------------------- ##
+## Main body of $CONFIG_STATUS script. ##
+## ----------------------------------- ##
+_ASEOF
+test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# Save the log message, to keep $0 and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by HarfBuzz $as_me 0.9.35, which was
+generated by GNU Autoconf 2.69.  Invocation command line was
+
+  CONFIG_FILES    = $CONFIG_FILES
+  CONFIG_HEADERS  = $CONFIG_HEADERS
+  CONFIG_LINKS    = $CONFIG_LINKS
+  CONFIG_COMMANDS = $CONFIG_COMMANDS
+  $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+_ACEOF
+
+case $ac_config_files in *"
+"*) set x $ac_config_files; shift; ac_config_files=$*;;
+esac
+
+case $ac_config_headers in *"
+"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
+esac
+
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+# Files that config.status was made for.
+config_files="$ac_config_files"
+config_headers="$ac_config_headers"
+config_commands="$ac_config_commands"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ac_cs_usage="\
+\`$as_me' instantiates files and other configuration actions
+from templates according to the current configuration.  Unless the files
+and actions are specified as TAGs, all are instantiated by default.
+
+Usage: $0 [OPTION]... [TAG]...
+
+  -h, --help       print this help, then exit
+  -V, --version    print version number and configuration settings, then exit
+      --config     print configuration, then exit
+  -q, --quiet, --silent
+                   do not print progress messages
+  -d, --debug      don't remove temporary files
+      --recheck    update $as_me by reconfiguring in the same conditions
+      --file=FILE[:TEMPLATE]
+                   instantiate the configuration file FILE
+      --header=FILE[:TEMPLATE]
+                   instantiate the configuration header FILE
+
+Configuration files:
+$config_files
+
+Configuration headers:
+$config_headers
+
+Configuration commands:
+$config_commands
+
+Report bugs to <http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz>.
+HarfBuzz home page: <http://harfbuzz.org/>."
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
+ac_cs_version="\\
+HarfBuzz config.status 0.9.35
+configured by $0, generated by GNU Autoconf 2.69,
+  with options \\"\$ac_cs_config\\"
+
+Copyright (C) 2012 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='$ac_pwd'
+srcdir='$srcdir'
+INSTALL='$INSTALL'
+MKDIR_P='$MKDIR_P'
+AWK='$AWK'
+test -n "\$AWK" || AWK=awk
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# The default lists apply if the user does not specify any file.
+ac_need_defaults=:
+while test $# != 0
+do
+  case $1 in
+  --*=?*)
+    ac_option=`expr "X$1" : 'X\([^=]*\)='`
+    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
+    ac_shift=:
+    ;;
+  --*=)
+    ac_option=`expr "X$1" : 'X\([^=]*\)='`
+    ac_optarg=
+    ac_shift=:
+    ;;
+  *)
+    ac_option=$1
+    ac_optarg=$2
+    ac_shift=shift
+    ;;
+  esac
+
+  case $ac_option in
+  # Handling of the options.
+  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+    ac_cs_recheck=: ;;
+  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+    $as_echo "$ac_cs_version"; exit ;;
+  --config | --confi | --conf | --con | --co | --c )
+    $as_echo "$ac_cs_config"; exit ;;
+  --debug | --debu | --deb | --de | --d | -d )
+    debug=: ;;
+  --file | --fil | --fi | --f )
+    $ac_shift
+    case $ac_optarg in
+    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+    '') as_fn_error $? "missing file argument" ;;
+    esac
+    as_fn_append CONFIG_FILES " '$ac_optarg'"
+    ac_need_defaults=false;;
+  --header | --heade | --head | --hea )
+    $ac_shift
+    case $ac_optarg in
+    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+    esac
+    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
+    ac_need_defaults=false;;
+  --he | --h)
+    # Conflict between --help and --header
+    as_fn_error $? "ambiguous option: \`$1'
+Try \`$0 --help' for more information.";;
+  --help | --hel | -h )
+    $as_echo "$ac_cs_usage"; exit ;;
+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+  | -silent | --silent | --silen | --sile | --sil | --si | --s)
+    ac_cs_silent=: ;;
+
+  # This is an error.
+  -*) as_fn_error $? "unrecognized option: \`$1'
+Try \`$0 --help' for more information." ;;
+
+  *) as_fn_append ac_config_targets " $1"
+     ac_need_defaults=false ;;
+
+  esac
+  shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+  exec 6>/dev/null
+  ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+if \$ac_cs_recheck; then
+  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+  shift
+  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
+  CONFIG_SHELL='$SHELL'
+  export CONFIG_SHELL
+  exec "\$@"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+exec 5>>config.log
+{
+  echo
+  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+  $as_echo "$ac_log"
+} >&5
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+#
+# INIT-COMMANDS
+#
+AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
+
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+sed_quote_subst='$sed_quote_subst'
+double_quote_subst='$double_quote_subst'
+delay_variable_subst='$delay_variable_subst'
+macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
+macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
+enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
+enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
+pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
+enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
+SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
+ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
+PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
+host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
+host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
+host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
+build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
+build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
+build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
+SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
+Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
+GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
+EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
+FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
+LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
+NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
+LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
+max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
+ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
+exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
+lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
+lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
+lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
+lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
+lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
+reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
+reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
+OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
+deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
+file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
+file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
+want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
+DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
+sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
+AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
+AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
+archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
+STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
+RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
+old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
+old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
+old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
+lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
+CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
+CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
+compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
+GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
+lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
+nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
+lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
+objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
+MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
+lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
+need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
+MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
+DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
+NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
+LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
+OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
+OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
+libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
+shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
+extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
+archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
+enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
+export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
+whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
+compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
+old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
+old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
+archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
+archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
+module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
+module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
+with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
+allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
+no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
+hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
+hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
+hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
+hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
+hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
+hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
+hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
+inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
+link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
+always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
+export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
+exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
+include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
+prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
+postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
+file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
+variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
+need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
+need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
+version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
+runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
+shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
+shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
+libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
+library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
+soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
+install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
+postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
+postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
+finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
+finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
+hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
+sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
+sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
+hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
+enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
+enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
+enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
+old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
+striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
+compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
+predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
+postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
+predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
+postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
+compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
+LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
+reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
+reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
+GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
+lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
+lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
+archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
+enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
+export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
+whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
+compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
+old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
+allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
+no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
+inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
+link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
+always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
+export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
+include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
+prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
+file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
+hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
+compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
+predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
+postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
+predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
+postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
+compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
+
+LTCC='$LTCC'
+LTCFLAGS='$LTCFLAGS'
+compiler='$compiler_DEFAULT'
+
+# A function that is used when there is no print builtin or printf.
+func_fallback_echo ()
+{
+  eval 'cat <<_LTECHO_EOF
+\$1
+_LTECHO_EOF'
+}
+
+# Quote evaled strings.
+for var in SHELL \
+ECHO \
+PATH_SEPARATOR \
+SED \
+GREP \
+EGREP \
+FGREP \
+LD \
+NM \
+LN_S \
+lt_SP2NL \
+lt_NL2SP \
+reload_flag \
+OBJDUMP \
+deplibs_check_method \
+file_magic_cmd \
+file_magic_glob \
+want_nocaseglob \
+DLLTOOL \
+sharedlib_from_linklib_cmd \
+AR \
+AR_FLAGS \
+archiver_list_spec \
+STRIP \
+RANLIB \
+CC \
+CFLAGS \
+compiler \
+lt_cv_sys_global_symbol_pipe \
+lt_cv_sys_global_symbol_to_cdecl \
+lt_cv_sys_global_symbol_to_import \
+lt_cv_sys_global_symbol_to_c_name_address \
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
+lt_cv_nm_interface \
+nm_file_list_spec \
+lt_prog_compiler_no_builtin_flag \
+lt_prog_compiler_pic \
+lt_prog_compiler_wl \
+lt_prog_compiler_static \
+lt_cv_prog_compiler_c_o \
+need_locks \
+MANIFEST_TOOL \
+DSYMUTIL \
+NMEDIT \
+LIPO \
+OTOOL \
+OTOOL64 \
+shrext_cmds \
+export_dynamic_flag_spec \
+whole_archive_flag_spec \
+compiler_needs_object \
+with_gnu_ld \
+allow_undefined_flag \
+no_undefined_flag \
+hardcode_libdir_flag_spec \
+hardcode_libdir_separator \
+exclude_expsyms \
+include_expsyms \
+file_list_spec \
+variables_saved_for_relink \
+libname_spec \
+library_names_spec \
+soname_spec \
+install_override_mode \
+finish_eval \
+old_striplib \
+striplib \
+compiler_lib_search_dirs \
+predep_objects \
+postdep_objects \
+predeps \
+postdeps \
+compiler_lib_search_path \
+LD_CXX \
+reload_flag_CXX \
+compiler_CXX \
+lt_prog_compiler_no_builtin_flag_CXX \
+lt_prog_compiler_pic_CXX \
+lt_prog_compiler_wl_CXX \
+lt_prog_compiler_static_CXX \
+lt_cv_prog_compiler_c_o_CXX \
+export_dynamic_flag_spec_CXX \
+whole_archive_flag_spec_CXX \
+compiler_needs_object_CXX \
+with_gnu_ld_CXX \
+allow_undefined_flag_CXX \
+no_undefined_flag_CXX \
+hardcode_libdir_flag_spec_CXX \
+hardcode_libdir_separator_CXX \
+exclude_expsyms_CXX \
+include_expsyms_CXX \
+file_list_spec_CXX \
+compiler_lib_search_dirs_CXX \
+predep_objects_CXX \
+postdep_objects_CXX \
+predeps_CXX \
+postdeps_CXX \
+compiler_lib_search_path_CXX; do
+    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
+    *[\\\\\\\`\\"\\\$]*)
+      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
+      ;;
+    *)
+      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+      ;;
+    esac
+done
+
+# Double-quote double-evaled strings.
+for var in reload_cmds \
+old_postinstall_cmds \
+old_postuninstall_cmds \
+old_archive_cmds \
+extract_expsyms_cmds \
+old_archive_from_new_cmds \
+old_archive_from_expsyms_cmds \
+archive_cmds \
+archive_expsym_cmds \
+module_cmds \
+module_expsym_cmds \
+export_symbols_cmds \
+prelink_cmds \
+postlink_cmds \
+postinstall_cmds \
+postuninstall_cmds \
+finish_cmds \
+sys_lib_search_path_spec \
+sys_lib_dlsearch_path_spec \
+reload_cmds_CXX \
+old_archive_cmds_CXX \
+old_archive_from_new_cmds_CXX \
+old_archive_from_expsyms_cmds_CXX \
+archive_cmds_CXX \
+archive_expsym_cmds_CXX \
+module_cmds_CXX \
+module_expsym_cmds_CXX \
+export_symbols_cmds_CXX \
+prelink_cmds_CXX \
+postlink_cmds_CXX; do
+    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
+    *[\\\\\\\`\\"\\\$]*)
+      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
+      ;;
+    *)
+      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+      ;;
+    esac
+done
+
+ac_aux_dir='$ac_aux_dir'
+
+# See if we are running on zsh, and set the options that allow our
+# commands through without removal of \ escapes INIT.
+if test -n "\${ZSH_VERSION+set}"; then
+   setopt NO_GLOB_SUBST
+fi
+
+
+    PACKAGE='$PACKAGE'
+    VERSION='$VERSION'
+    RM='$RM'
+    ofile='$ofile'
+
+
+
+
+
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+  case $ac_config_target in
+    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
+    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
+    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+    "src/hb-version.h") CONFIG_FILES="$CONFIG_FILES src/hb-version.h" ;;
+    "src/hb-ucdn/Makefile") CONFIG_FILES="$CONFIG_FILES src/hb-ucdn/Makefile" ;;
+    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
+    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
+    "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
+    "test/shaping/Makefile") CONFIG_FILES="$CONFIG_FILES test/shaping/Makefile" ;;
+    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
+    "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
+    "docs/reference/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/version.xml" ;;
+
+  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
+  esac
+done
+
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used.  Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
+  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
+fi
+
+# Have a temporary directory for convenience.  Make it in the build tree
+# simply because there is no reason against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+  tmp= ac_tmp=
+  trap 'exit_status=$?
+  : "${ac_tmp:=$tmp}"
+  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
+' 0
+  trap 'as_fn_exit 1' 1 2 13 15
+}
+# Create a (secure) tmp directory for tmp files.
+
+{
+  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+  test -d "$tmp"
+}  ||
+{
+  tmp=./conf$$-$RANDOM
+  (umask 077 && mkdir "$tmp")
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
+ac_tmp=$tmp
+
+# Set up the scripts for CONFIG_FILES section.
+# No need to generate them if there are no CONFIG_FILES.
+# This happens for instance with `./config.status config.h'.
+if test -n "$CONFIG_FILES"; then
+
+
+ac_cr=`echo X | tr X '\015'`
+# On cygwin, bash can eat \r inside `` if the user requested igncr.
+# But we know of no other shell where ac_cr would be empty at this
+# point, so we can use a bashism as a fallback.
+if test "x$ac_cr" = x; then
+  eval ac_cr=\$\'\\r\'
+fi
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+  ac_cs_awk_cr='\\r'
+else
+  ac_cs_awk_cr=$ac_cr
+fi
+
+echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
+_ACEOF
+
+
+{
+  echo "cat >conf$$subs.awk <<_ACEOF" &&
+  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
+  echo "_ACEOF"
+} >conf$$subs.sh ||
+  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
+ac_delim='%!_!# '
+for ac_last_try in false false false false false :; do
+  . ./conf$$subs.sh ||
+    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+
+  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
+  if test $ac_delim_n = $ac_delim_num; then
+    break
+  elif $ac_last_try; then
+    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+  else
+    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+  fi
+done
+rm -f conf$$subs.sh
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
+_ACEOF
+sed -n '
+h
+s/^/S["/; s/!.*/"]=/
+p
+g
+s/^[^!]*!//
+:repl
+t repl
+s/'"$ac_delim"'$//
+t delim
+:nl
+h
+s/\(.\{148\}\)..*/\1/
+t more1
+s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
+p
+n
+b repl
+:more1
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t nl
+:delim
+h
+s/\(.\{148\}\)..*/\1/
+t more2
+s/["\\]/\\&/g; s/^/"/; s/$/"/
+p
+b
+:more2
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t delim
+' <conf$$subs.awk | sed '
+/^[^""]/{
+  N
+  s/\n//
+}
+' >>$CONFIG_STATUS || ac_write_fail=1
+rm -f conf$$subs.awk
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+_ACAWK
+cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
+  for (key in S) S_is_set[key] = 1
+  FS = "\a"
+
+}
+{
+  line = $ 0
+  nfields = split(line, field, "@")
+  substed = 0
+  len = length(field[1])
+  for (i = 2; i < nfields; i++) {
+    key = field[i]
+    keylen = length(key)
+    if (S_is_set[key]) {
+      value = S[key]
+      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
+      len += length(value) + length(field[++i])
+      substed = 1
+    } else
+      len += 1 + keylen
+  }
+
+  print line
+}
+
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
+  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
+else
+  cat
+fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
+  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
+_ACEOF
+
+# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
+# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
+# trailing colons and then remove the whole line if VPATH becomes empty
+# (actually we leave an empty line to preserve line numbers).
+if test "x$srcdir" = x.; then
+  ac_vpsub='/^[         ]*VPATH[        ]*=[    ]*/{
+h
+s///
+s/^/:/
+s/[     ]*$/:/
+s/:\$(srcdir):/:/g
+s/:\${srcdir}:/:/g
+s/:@srcdir@:/:/g
+s/^:*//
+s/:*$//
+x
+s/\(=[  ]*\).*/\1/
+G
+s/\n//
+s/^[^=]*=[      ]*$//
+}'
+fi
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+fi # test -n "$CONFIG_FILES"
+
+# Set up the scripts for CONFIG_HEADERS section.
+# No need to generate them if there are no CONFIG_HEADERS.
+# This happens for instance with `./config.status Makefile'.
+if test -n "$CONFIG_HEADERS"; then
+cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
+BEGIN {
+_ACEOF
+
+# Transform confdefs.h into an awk script `defines.awk', embedded as
+# here-document in config.status, that substitutes the proper values into
+# config.h.in to produce config.h.
+
+# Create a delimiter string that does not exist in confdefs.h, to ease
+# handling of long lines.
+ac_delim='%!_!# '
+for ac_last_try in false false :; do
+  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
+  if test -z "$ac_tt"; then
+    break
+  elif $ac_last_try; then
+    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
+  else
+    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+  fi
+done
+
+# For the awk script, D is an array of macro values keyed by name,
+# likewise P contains macro parameters if any.  Preserve backslash
+# newline sequences.
+
+ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
+sed -n '
+s/.\{148\}/&'"$ac_delim"'/g
+t rset
+:rset
+s/^[    ]*#[    ]*define[       ][      ]*/ /
+t def
+d
+:def
+s/\\$//
+t bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3"/p
+s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2"/p
+d
+:bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[    ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3\\\\\\n"\\/p
+t cont
+s/^ \('"$ac_word_re"'\)[        ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
+t cont
+d
+:cont
+n
+s/.\{148\}/&'"$ac_delim"'/g
+t clear
+:clear
+s/\\$//
+t bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/"/p
+d
+:bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
+b cont
+' <confdefs.h | sed '
+s/'"$ac_delim"'/"\\\
+"/g' >>$CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+  for (key in D) D_is_set[key] = 1
+  FS = "\a"
+}
+/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
+  line = \$ 0
+  split(line, arg, " ")
+  if (arg[1] == "#") {
+    defundef = arg[2]
+    mac1 = arg[3]
+  } else {
+    defundef = substr(arg[1], 2)
+    mac1 = arg[2]
+  }
+  split(mac1, mac2, "(") #)
+  macro = mac2[1]
+  prefix = substr(line, 1, index(line, defundef) - 1)
+  if (D_is_set[macro]) {
+    # Preserve the white space surrounding the "#".
+    print prefix "define", macro P[macro] D[macro]
+    next
+  } else {
+    # Replace #undef with comments.  This is necessary, for example,
+    # in the case of _POSIX_SOURCE, which is predefined and required
+    # on some systems where configure will not decide to define it.
+    if (defundef == "undef") {
+      print "/*", prefix defundef, macro, "*/"
+      next
+    }
+  }
+}
+{ print }
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
+fi # test -n "$CONFIG_HEADERS"
+
+
+eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
+shift
+for ac_tag
+do
+  case $ac_tag in
+  :[FHLC]) ac_mode=$ac_tag; continue;;
+  esac
+  case $ac_mode$ac_tag in
+  :[FHL]*:*);;
+  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
+  :[FH]-) ac_tag=-:-;;
+  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+  esac
+  ac_save_IFS=$IFS
+  IFS=:
+  set x $ac_tag
+  IFS=$ac_save_IFS
+  shift
+  ac_file=$1
+  shift
+
+  case $ac_mode in
+  :L) ac_source=$1;;
+  :[FH])
+    ac_file_inputs=
+    for ac_f
+    do
+      case $ac_f in
+      -) ac_f="$ac_tmp/stdin";;
+      *) # Look for the file first in the build tree, then in the source tree
+        # (if the path is not absolute).  The absolute path cannot be DOS-style,
+        # because $ac_f cannot contain `:'.
+        test -f "$ac_f" ||
+          case $ac_f in
+          [\\/$]*) false;;
+          *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+          esac ||
+          as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
+      esac
+      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
+      as_fn_append ac_file_inputs " '$ac_f'"
+    done
+
+    # Let's still pretend it is `configure' which instantiates (i.e., don't
+    # use $as_me), people would be surprised to read:
+    #    /* config.h.  Generated by config.status.  */
+    configure_input='Generated from '`
+         $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
+       `' by configure.'
+    if test x"$ac_file" != x-; then
+      configure_input="$ac_file.  $configure_input"
+      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
+$as_echo "$as_me: creating $ac_file" >&6;}
+    fi
+    # Neutralize special characters interpreted by sed in replacement strings.
+    case $configure_input in #(
+    *\&* | *\|* | *\\* )
+       ac_sed_conf_input=`$as_echo "$configure_input" |
+       sed 's/[\\\\&|]/\\\\&/g'`;; #(
+    *) ac_sed_conf_input=$configure_input;;
+    esac
+
+    case $ac_tag in
+    *:-:* | *:-) cat >"$ac_tmp/stdin" \
+      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
+    esac
+    ;;
+  esac
+
+  ac_dir=`$as_dirname -- "$ac_file" ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+        X"$ac_file" : 'X\(//\)[^/]' \| \
+        X"$ac_file" : 'X\(//\)$' \| \
+        X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$ac_file" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+           s//\1/
+           q
+         }
+         /^X\(\/\/\)[^/].*/{
+           s//\1/
+           q
+         }
+         /^X\(\/\/\)$/{
+           s//\1/
+           q
+         }
+         /^X\(\/\).*/{
+           s//\1/
+           q
+         }
+         s/.*/./; q'`
+  as_dir="$ac_dir"; as_fn_mkdir_p
+  ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+  # A ".." for each directory in $ac_dir_suffix.
+  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+  case $ac_top_builddir_sub in
+  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+  esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+  .)  # We are building in place.
+    ac_srcdir=.
+    ac_top_srcdir=$ac_top_builddir_sub
+    ac_abs_top_srcdir=$ac_pwd ;;
+  [\\/]* | ?:[\\/]* )  # Absolute name.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir
+    ac_abs_top_srcdir=$srcdir ;;
+  *) # Relative name.
+    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_build_prefix$srcdir
+    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+  case $ac_mode in
+  :F)
+  #
+  # CONFIG_FILE
+  #
+
+  case $INSTALL in
+  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+  esac
+  ac_MKDIR_P=$MKDIR_P
+  case $MKDIR_P in
+  [\\/$]* | ?:[\\/]* ) ;;
+  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
+  esac
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# If the template does not know about datarootdir, expand it.
+# FIXME: This hack should be removed a few years after 2.60.
+ac_datarootdir_hack=; ac_datarootdir_seen=
+ac_sed_dataroot='
+/datarootdir/ {
+  p
+  q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p'
+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
+*datarootdir*) ac_datarootdir_seen=yes;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+  ac_datarootdir_hack='
+  s&@datadir@&$datadir&g
+  s&@docdir@&$docdir&g
+  s&@infodir@&$infodir&g
+  s&@localedir@&$localedir&g
+  s&@mandir@&$mandir&g
+  s&\\\${datarootdir}&$datarootdir&g' ;;
+esac
+_ACEOF
+
+# Neutralize VPATH when `$srcdir' = `.'.
+# Shell code in configure.ac might set extrasub.
+# FIXME: do we really want to maintain this feature?
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_sed_extra="$ac_vpsub
+$extrasub
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s|@configure_input@|$ac_sed_conf_input|;t t
+s&@top_builddir@&$ac_top_builddir_sub&;t t
+s&@top_build_prefix@&$ac_top_build_prefix&;t t
+s&@srcdir@&$ac_srcdir&;t t
+s&@abs_srcdir@&$ac_abs_srcdir&;t t
+s&@top_srcdir@&$ac_top_srcdir&;t t
+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
+s&@builddir@&$ac_builddir&;t t
+s&@abs_builddir@&$ac_abs_builddir&;t t
+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+s&@INSTALL@&$ac_INSTALL&;t t
+s&@MKDIR_P@&$ac_MKDIR_P&;t t
+$ac_datarootdir_hack
+"
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
+  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
+  { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' \
+      "$ac_tmp/out"`; test -z "$ac_out"; } &&
+  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined.  Please make sure it is defined" >&5
+$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined.  Please make sure it is defined" >&2;}
+
+  rm -f "$ac_tmp/stdin"
+  case $ac_file in
+  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
+  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
+  esac \
+  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ ;;
+  :H)
+  #
+  # CONFIG_HEADER
+  #
+  if test x"$ac_file" != x-; then
+    {
+      $as_echo "/* $configure_input  */" \
+      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
+    } >"$ac_tmp/config.h" \
+      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
+      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
+$as_echo "$as_me: $ac_file is unchanged" >&6;}
+    else
+      rm -f "$ac_file"
+      mv "$ac_tmp/config.h" "$ac_file" \
+       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+    fi
+  else
+    $as_echo "/* $configure_input  */" \
+      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
+      || as_fn_error $? "could not create -" "$LINENO" 5
+  fi
+# Compute "$ac_file"'s index in $config_headers.
+_am_arg="$ac_file"
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+  case $_am_header in
+    $_am_arg | $_am_arg:* )
+      break ;;
+    * )
+      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+  esac
+done
+echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
+$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+        X"$_am_arg" : 'X\(//\)[^/]' \| \
+        X"$_am_arg" : 'X\(//\)$' \| \
+        X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$_am_arg" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+           s//\1/
+           q
+         }
+         /^X\(\/\/\)[^/].*/{
+           s//\1/
+           q
+         }
+         /^X\(\/\/\)$/{
+           s//\1/
+           q
+         }
+         /^X\(\/\).*/{
+           s//\1/
+           q
+         }
+         s/.*/./; q'`/stamp-h$_am_stamp_count
+ ;;
+
+  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
+$as_echo "$as_me: executing $ac_file commands" >&6;}
+ ;;
+  esac
+
+
+  case $ac_file$ac_mode in
+    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
+  # Older Autoconf quotes --file arguments for eval, but not when files
+  # are listed without --file.  Let's play safe and only enable the eval
+  # if we detect the quoting.
+  case $CONFIG_FILES in
+  *\'*) eval set x "$CONFIG_FILES" ;;
+  *)   set x $CONFIG_FILES ;;
+  esac
+  shift
+  for mf
+  do
+    # Strip MF so we end up with the name of the file.
+    mf=`echo "$mf" | sed -e 's/:.*$//'`
+    # Check whether this is an Automake generated Makefile or not.
+    # We used to match only the files named 'Makefile.in', but
+    # some people rename them; so instead we look at the file content.
+    # Grep'ing the first line is not enough: some people post-process
+    # each Makefile.in and add a new line on top of each file to say so.
+    # Grep'ing the whole file is not good either: AIX grep has a line
+    # limit of 2048, but all sed's we know have understand at least 4000.
+    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
+      dirpart=`$as_dirname -- "$mf" ||
+$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+        X"$mf" : 'X\(//\)[^/]' \| \
+        X"$mf" : 'X\(//\)$' \| \
+        X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$mf" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+           s//\1/
+           q
+         }
+         /^X\(\/\/\)[^/].*/{
+           s//\1/
+           q
+         }
+         /^X\(\/\/\)$/{
+           s//\1/
+           q
+         }
+         /^X\(\/\).*/{
+           s//\1/
+           q
+         }
+         s/.*/./; q'`
+    else
+      continue
+    fi
+    # Extract the definition of DEPDIR, am__include, and am__quote
+    # from the Makefile without running 'make'.
+    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+    test -z "$DEPDIR" && continue
+    am__include=`sed -n 's/^am__include = //p' < "$mf"`
+    test -z "$am__include" && continue
+    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+    # Find all dependency output files, they are included files with
+    # $(DEPDIR) in their names.  We invoke sed twice because it is the
+    # simplest approach to changing $(DEPDIR) to its actual value in the
+    # expansion.
+    for file in `sed -n "
+      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
+        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
+      # Make sure the directory exists.
+      test -f "$dirpart/$file" && continue
+      fdir=`$as_dirname -- "$file" ||
+$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+        X"$file" : 'X\(//\)[^/]' \| \
+        X"$file" : 'X\(//\)$' \| \
+        X"$file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$file" |
+    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+           s//\1/
+           q
+         }
+         /^X\(\/\/\)[^/].*/{
+           s//\1/
+           q
+         }
+         /^X\(\/\/\)$/{
+           s//\1/
+           q
+         }
+         /^X\(\/\).*/{
+           s//\1/
+           q
+         }
+         s/.*/./; q'`
+      as_dir=$dirpart/$fdir; as_fn_mkdir_p
+      # echo "creating $dirpart/$file"
+      echo '# dummy' > "$dirpart/$file"
+    done
+  done
+}
+ ;;
+    "libtool":C)
+
+    # See if we are running on zsh, and set the options that allow our
+    # commands through without removal of \ escapes.
+    if test -n "${ZSH_VERSION+set}"; then
+      setopt NO_GLOB_SUBST
+    fi
+
+    cfgfile=${ofile}T
+    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
+    $RM "$cfgfile"
+
+    cat <<_LT_EOF >> "$cfgfile"
+#! $SHELL
+
+# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $as_me ($PACKAGE) $VERSION
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+#                 Foundation, Inc.
+#   Written by Gordon Matzigkeit, 1996
+#
+#   This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING.  If not, a copy
+# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
+# obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+# The names of the tagged configurations supported by this script.
+available_tags='CXX '
+
+# ### BEGIN LIBTOOL CONFIG
+
+# Which release of libtool.m4 was used?
+macro_version=$macro_version
+macro_revision=$macro_revision
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# What type of objects to build.
+pic_mode=$pic_mode
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# An echo program that protects backslashes.
+ECHO=$lt_ECHO
+
+# The PATH separator for the build system.
+PATH_SEPARATOR=$lt_PATH_SEPARATOR
+
+# The host system.
+host_alias=$host_alias
+host=$host
+host_os=$host_os
+
+# The build system.
+build_alias=$build_alias
+build=$build
+build_os=$build_os
+
+# A sed program that does not truncate output.
+SED=$lt_SED
+
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+Xsed="\$SED -e 1s/^X//"
+
+# A grep program that handles long lines.
+GREP=$lt_GREP
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# A literal string matcher.
+FGREP=$lt_FGREP
+
+# A BSD- or MS-compatible name lister.
+NM=$lt_NM
+
+# Whether we need soft or hard links.
+LN_S=$lt_LN_S
+
+# What is the maximum length of a command?
+max_cmd_len=$max_cmd_len
+
+# Object file suffix (normally "o").
+objext=$ac_objext
+
+# Executable file suffix (normally "").
+exeext=$exeext
+
+# whether the shell understands "unset".
+lt_unset=$lt_unset
+
+# turn spaces into newlines.
+SP2NL=$lt_lt_SP2NL
+
+# turn newlines into spaces.
+NL2SP=$lt_lt_NL2SP
+
+# convert \$build file names to \$host format.
+to_host_file_cmd=$lt_cv_to_host_file_cmd
+
+# convert \$build files to toolchain format.
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
+
+# An object symbol dumper.
+OBJDUMP=$lt_OBJDUMP
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method = "file_magic".
+file_magic_cmd=$lt_file_magic_cmd
+
+# How to find potential files when deplibs_check_method = "file_magic".
+file_magic_glob=$lt_file_magic_glob
+
+# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
+want_nocaseglob=$lt_want_nocaseglob
+
+# DLL creation program.
+DLLTOOL=$lt_DLLTOOL
+
+# Command to associate shared and link libraries.
+sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
+
+# The archiver.
+AR=$lt_AR
+
+# Flags to create an archive.
+AR_FLAGS=$lt_AR_FLAGS
+
+# How to feed a file listing to the archiver.
+archiver_list_spec=$lt_archiver_list_spec
+
+# A symbol stripping program.
+STRIP=$lt_STRIP
+
+# Commands used to install an old-style archive.
+RANLIB=$lt_RANLIB
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# Whether to use a lock for old archive extraction.
+lock_old_archive_extraction=$lock_old_archive_extraction
+
+# A C compiler.
+LTCC=$lt_CC
+
+# LTCC compiler flags.
+LTCFLAGS=$lt_CFLAGS
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration.
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm into a list of symbols to manually relocate.
+global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
+
+# Transform the output of nm in a C name address pair.
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# Transform the output of nm in a C name address pair when lib prefix is needed.
+global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
+
+# The name lister interface.
+nm_interface=$lt_lt_cv_nm_interface
+
+# Specify filename containing input files for \$NM.
+nm_file_list_spec=$lt_nm_file_list_spec
+
+# The root where to search for dependent libraries,and where our libraries should be installed.
+lt_sysroot=$lt_sysroot
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# Used to examine libraries when file_magic_cmd begins with "file".
+MAGIC_CMD=$MAGIC_CMD
+
+# Must we lock files when doing compilation?
+need_locks=$lt_need_locks
+
+# Manifest tool.
+MANIFEST_TOOL=$lt_MANIFEST_TOOL
+
+# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
+DSYMUTIL=$lt_DSYMUTIL
+
+# Tool to change global to local symbols on Mac OS X.
+NMEDIT=$lt_NMEDIT
+
+# Tool to manipulate fat objects and archives on Mac OS X.
+LIPO=$lt_LIPO
+
+# ldd/readelf like tool for Mach-O binaries on Mac OS X.
+OTOOL=$lt_OTOOL
+
+# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
+OTOOL64=$lt_OTOOL64
+
+# Old archive suffix (normally "a").
+libext=$libext
+
+# Shared library suffix (normally ".so").
+shrext_cmds=$lt_shrext_cmds
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at link time.
+variables_saved_for_relink=$lt_variables_saved_for_relink
+
+# Do we need the "lib" prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Library versioning type.
+version_type=$version_type
+
+# Shared library runtime path variable.
+runpath_var=$runpath_var
+
+# Shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names.  First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Permission mode override for installation of shared libraries.
+install_override_mode=$lt_install_override_mode
+
+# Command to use after installation of a shared archive.
+postinstall_cmds=$lt_postinstall_cmds
+
+# Command to use after uninstallation of a shared archive.
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# As "finish_cmds", except a single script fragment to be evaled but
+# not shown.
+finish_eval=$lt_finish_eval
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Compile-time system search path for libraries.
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries.
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+
+# The linker used to build libraries.
+LD=$lt_LD
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# Commands used to build an old-style archive.
+old_archive_cmds=$lt_old_archive_cmds
+
+# A language specific compiler.
+CC=$lt_compiler
+
+# Is the compiler the GNU compiler?
+with_gcc=$GCC
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc
+
+# Whether or not to disallow shared libs when runtime libs are static.
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec
+
+# Whether the compiler copes with passing no objects directly.
+compiler_needs_object=$lt_compiler_needs_object
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
+
+# Commands used to build a shared archive.
+archive_cmds=$lt_archive_cmds
+archive_expsym_cmds=$lt_archive_expsym_cmds
+
+# Commands used to build a loadable module if different from building
+# a shared archive.
+module_cmds=$lt_module_cmds
+module_expsym_cmds=$lt_module_expsym_cmds
+
+# Whether we are building with GNU ld or not.
+with_gnu_ld=$lt_with_gnu_ld
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag
+
+# Flag that enforces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
+
+# Whether we need a single "-rpath" flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator
+
+# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
+# DIR into the resulting binary.
+hardcode_direct=$hardcode_direct
+
+# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
+# DIR into the resulting binary and the resulting library dependency is
+# "absolute",i.e impossible to change by setting \$shlibpath_var if the
+# library is relocated.
+hardcode_direct_absolute=$hardcode_direct_absolute
+
+# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
+# into the resulting binary.
+hardcode_minus_L=$hardcode_minus_L
+
+# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
+# into the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var
+
+# Set to "yes" if building a shared library automatically hardcodes DIR
+# into the library and all subsequent libraries and executables linked
+# against it.
+hardcode_automatic=$hardcode_automatic
+
+# Set to yes if linker adds runtime paths of dependent libraries
+# to runtime path list.
+inherit_rpath=$inherit_rpath
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs
+
+# Set to "yes" if exported symbols are required.
+always_export_symbols=$always_export_symbols
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms
+
+# Commands necessary for linking programs (against libraries) with templates.
+prelink_cmds=$lt_prelink_cmds
+
+# Commands necessary for finishing linking programs.
+postlink_cmds=$lt_postlink_cmds
+
+# Specify filename containing input files.
+file_list_spec=$lt_file_list_spec
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action
+
+# The directories searched by this compiler when creating a shared library.
+compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
+
+# Dependencies to place before and after the objects being linked to
+# create a shared library.
+predep_objects=$lt_predep_objects
+postdep_objects=$lt_postdep_objects
+predeps=$lt_predeps
+postdeps=$lt_postdeps
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_compiler_lib_search_path
+
+# ### END LIBTOOL CONFIG
+
+_LT_EOF
+
+  case $host_os in
+  aix3*)
+    cat <<\_LT_EOF >> "$cfgfile"
+# AIX sometimes has problems with the GCC collect2 program.  For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test set != "${COLLECT_NAMES+set}"; then
+  COLLECT_NAMES=
+  export COLLECT_NAMES
+fi
+_LT_EOF
+    ;;
+  esac
+
+
+ltmain=$ac_aux_dir/ltmain.sh
+
+
+  # We use sed instead of cat because bash on DJGPP gets confused if
+  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
+  # text mode, it properly converts lines to CR/LF.  This bash problem
+  # is reportedly fixed, but why not run on old versions too?
+  sed '$q' "$ltmain" >> "$cfgfile" \
+     || (rm -f "$cfgfile"; exit 1)
+
+   mv -f "$cfgfile" "$ofile" ||
+    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
+  chmod +x "$ofile"
+
+
+    cat <<_LT_EOF >> "$ofile"
+
+# ### BEGIN LIBTOOL TAG CONFIG: CXX
+
+# The linker used to build libraries.
+LD=$lt_LD_CXX
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag_CXX
+reload_cmds=$lt_reload_cmds_CXX
+
+# Commands used to build an old-style archive.
+old_archive_cmds=$lt_old_archive_cmds_CXX
+
+# A language specific compiler.
+CC=$lt_compiler_CXX
+
+# Is the compiler the GNU compiler?
+with_gcc=$GCC_CXX
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic_CXX
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl_CXX
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static_CXX
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc_CXX
+
+# Whether or not to disallow shared libs when runtime libs are static.
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
+
+# Whether the compiler copes with passing no objects directly.
+compiler_needs_object=$lt_compiler_needs_object_CXX
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
+
+# Commands used to build a shared archive.
+archive_cmds=$lt_archive_cmds_CXX
+archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
+
+# Commands used to build a loadable module if different from building
+# a shared archive.
+module_cmds=$lt_module_cmds_CXX
+module_expsym_cmds=$lt_module_expsym_cmds_CXX
+
+# Whether we are building with GNU ld or not.
+with_gnu_ld=$lt_with_gnu_ld_CXX
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag_CXX
+
+# Flag that enforces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag_CXX
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
+
+# Whether we need a single "-rpath" flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
+
+# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
+# DIR into the resulting binary.
+hardcode_direct=$hardcode_direct_CXX
+
+# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
+# DIR into the resulting binary and the resulting library dependency is
+# "absolute",i.e impossible to change by setting \$shlibpath_var if the
+# library is relocated.
+hardcode_direct_absolute=$hardcode_direct_absolute_CXX
+
+# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
+# into the resulting binary.
+hardcode_minus_L=$hardcode_minus_L_CXX
+
+# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
+# into the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
+
+# Set to "yes" if building a shared library automatically hardcodes DIR
+# into the library and all subsequent libraries and executables linked
+# against it.
+hardcode_automatic=$hardcode_automatic_CXX
+
+# Set to yes if linker adds runtime paths of dependent libraries
+# to runtime path list.
+inherit_rpath=$inherit_rpath_CXX
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs_CXX
+
+# Set to "yes" if exported symbols are required.
+always_export_symbols=$always_export_symbols_CXX
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds_CXX
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms_CXX
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms_CXX
+
+# Commands necessary for linking programs (against libraries) with templates.
+prelink_cmds=$lt_prelink_cmds_CXX
+
+# Commands necessary for finishing linking programs.
+postlink_cmds=$lt_postlink_cmds_CXX
+
+# Specify filename containing input files.
+file_list_spec=$lt_file_list_spec_CXX
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action_CXX
+
+# The directories searched by this compiler when creating a shared library.
+compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
+
+# Dependencies to place before and after the objects being linked to
+# create a shared library.
+predep_objects=$lt_predep_objects_CXX
+postdep_objects=$lt_postdep_objects_CXX
+predeps=$lt_predeps_CXX
+postdeps=$lt_postdeps_CXX
+
+# The library search path used internally by the compiler when linking
+# a shared library.
+compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
+
+# ### END LIBTOOL TAG CONFIG: CXX
+_LT_EOF
+
+ ;;
+
+  esac
+done # for ac_tag
+
+
+as_fn_exit 0
+_ACEOF
+ac_clean_files=$ac_clean_files_save
+
+test $ac_write_fail = 0 ||
+  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
+
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded.  So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status.  When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != yes; then
+  ac_cs_success=:
+  ac_config_status_args=
+  test "$silent" = yes &&
+    ac_config_status_args="$ac_config_status_args --quiet"
+  exec 5>/dev/null
+  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+  exec 5>>config.log
+  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+  # would make configure fail if this is the last instruction.
+  $ac_cs_success || as_fn_exit 1
+fi
+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
+  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
+$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}:
+
+Build configuration:
+
+Unicode callbacks (you want at least one):
+       Glib:                   ${have_glib}
+       ICU:                    ${have_icu}
+       UCDN:                   ${have_ucdn}
+
+Font callbacks (the more the better):
+       FreeType:               ${have_freetype}
+
+Tools used for command-line utilities:
+       Cairo:                  ${have_cairo}
+
+Additional shapers (the more the better):
+       Graphite2:              ${have_graphite2}
+
+Platform shapers (not normally needed):
+       CoreText:               ${have_coretext}
+       Uniscribe:              ${have_uniscribe}
+
+Other features:
+       Documentation:          ${have_gtk_doc}
+       GObject bindings:       ${have_gobject}
+       Introspection:          ${have_introspection}
+" >&5
+$as_echo "$as_me:
+
+Build configuration:
+
+Unicode callbacks (you want at least one):
+       Glib:                   ${have_glib}
+       ICU:                    ${have_icu}
+       UCDN:                   ${have_ucdn}
+
+Font callbacks (the more the better):
+       FreeType:               ${have_freetype}
+
+Tools used for command-line utilities:
+       Cairo:                  ${have_cairo}
+
+Additional shapers (the more the better):
+       Graphite2:              ${have_graphite2}
+
+Platform shapers (not normally needed):
+       CoreText:               ${have_coretext}
+       Uniscribe:              ${have_uniscribe}
+
+Other features:
+       Documentation:          ${have_gtk_doc}
+       GObject bindings:       ${have_gobject}
+       Introspection:          ${have_introspection}
+" >&6;}
diff --git a/configure.ac b/configure.ac
new file mode 100644 (file)
index 0000000..b9e82d9
--- /dev/null
@@ -0,0 +1,459 @@
+AC_PREREQ([2.64])
+AC_INIT([HarfBuzz],
+        [0.9.35],
+        [http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz],
+        [harfbuzz],
+        [http://harfbuzz.org/])
+
+AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_SRCDIR([src/harfbuzz.pc.in])
+AC_CONFIG_HEADERS([config.h])
+
+AM_INIT_AUTOMAKE([1.11.1 gnits tar-pax dist-bzip2 no-dist-gzip -Wall no-define color-tests -Wno-portability])
+AM_CONDITIONAL(AUTOMAKE_OLDER_THAN_1_13, test $am__api_version = 1.11 -o $am__api_version = 1.12)
+AM_SILENT_RULES([yes])
+
+# Initialize libtool
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+LT_PREREQ([2.2])
+LT_INIT([disable-static])
+
+# Check for programs
+AC_PROG_CC
+AM_PROG_CC_C_O
+AC_PROG_CXX
+PKG_PROG_PKG_CONFIG([0.20])
+AM_MISSING_PROG([RAGEL], [ragel])
+AM_MISSING_PROG([GIT], [git])
+
+# Version
+m4_define(hb_version_triplet,m4_split(AC_PACKAGE_VERSION,[[.]]))
+m4_define(hb_version_major,m4_argn(1,hb_version_triplet))
+m4_define(hb_version_minor,m4_argn(2,hb_version_triplet))
+m4_define(hb_version_micro,m4_argn(3,hb_version_triplet))
+HB_VERSION_MAJOR=hb_version_major
+HB_VERSION_MINOR=hb_version_minor
+HB_VERSION_MICRO=hb_version_micro
+HB_VERSION=AC_PACKAGE_VERSION
+AC_SUBST(HB_VERSION_MAJOR)
+AC_SUBST(HB_VERSION_MINOR)
+AC_SUBST(HB_VERSION_MICRO)
+AC_SUBST(HB_VERSION)
+
+# Libtool version
+m4_define([hb_version_int],
+         m4_eval(hb_version_major*10000 + hb_version_minor*100 + hb_version_micro))
+m4_if(m4_eval(hb_version_minor % 2), [1],
+      dnl for unstable releases
+      [m4_define([hb_libtool_revision], 0)],
+      dnl for stable releases
+      [m4_define([hb_libtool_revision], hb_version_micro)])
+m4_define([hb_libtool_age],
+         m4_eval(hb_version_int - hb_libtool_revision))
+m4_define([hb_libtool_current],
+         m4_eval(hb_version_major + hb_libtool_age))
+HB_LIBTOOL_VERSION_INFO=hb_libtool_current:hb_libtool_revision:hb_libtool_age
+AC_SUBST(HB_LIBTOOL_VERSION_INFO)
+
+# Documentation
+have_gtk_doc=false
+m4_ifdef([GTK_DOC_CHECK], [
+GTK_DOC_CHECK([1.15],[--flavour no-tmpl])
+       if test "x$enable_gtk_doc" = xyes; then
+               have_gtk_doc=true
+       fi
+], [
+       AM_CONDITIONAL([ENABLE_GTK_DOC], false)
+])
+
+# Functions and headers
+AC_CHECK_FUNCS(atexit mprotect sysconf getpagesize mmap isatty)
+AC_CHECK_HEADERS(unistd.h sys/mman.h)
+
+# Compiler flags
+AC_CANONICAL_HOST
+AC_CHECK_ALIGNOF([struct{char;}])
+if test "x$GCC" = "xyes"; then
+
+       # Make symbols link locally
+       LDFLAGS="$LDFLAGS -Bsymbolic-functions"
+
+       # Make sure we don't link to libstdc++
+       CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions"
+
+       # Assorted warnings
+       CXXFLAGS="$CXXFLAGS -Wcast-align"
+
+       case "$host" in
+               *-*-mingw*)
+               ;;
+               *)
+                       # Hide inline methods
+                       CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
+               ;;
+       esac
+
+       case "$host" in
+               arm-*-*)
+                       if test "x$ac_cv_alignof_struct_char__" != x1; then
+                               # Request byte alignment
+                               CXXFLAGS="$CXXFLAGS -mstructure-size-boundary=8"
+                       fi
+               ;;
+       esac
+fi
+
+AM_CONDITIONAL(HAVE_GCC, test "x$GCC" = "xyes")
+
+hb_os_win32=no
+AC_MSG_CHECKING([for native Win32])
+case "$host" in
+  *-*-mingw*)
+    hb_os_win32=yes
+    ;;
+esac
+AC_MSG_RESULT([$hb_os_win32])
+AM_CONDITIONAL(OS_WIN32, test "$hb_os_win32" = "yes")
+
+have_pthread=false
+if test "$hb_os_win32" = no; then
+       AX_PTHREAD([have_pthread=true])
+fi
+if $have_pthread; then
+       AC_DEFINE(HAVE_PTHREAD, 1, [Have POSIX threads])
+fi
+AM_CONDITIONAL(HAVE_PTHREAD, $have_pthread)
+
+dnl ==========================================================================
+
+have_ot=true
+if $have_ot; then
+       AC_DEFINE(HAVE_OT, 1, [Have native OpenType Layout backend])
+fi
+AM_CONDITIONAL(HAVE_OT, $have_ot)
+
+have_fallback=true
+if $have_fallback; then
+       AC_DEFINE(HAVE_FALLBACK, 1, [Have simple TrueType Layout backend])
+fi
+AM_CONDITIONAL(HAVE_FALLBACK, $have_fallback)
+
+dnl ===========================================================================
+
+AC_ARG_WITH(glib,
+       [AS_HELP_STRING([--with-glib=@<:@yes/no/auto@:>@],
+                       [Use glib @<:@default=auto@:>@])],,
+       [with_glib=auto])
+have_glib=false
+if test "x$with_glib" = "xyes" -o "x$with_glib" = "xauto"; then
+       PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.16, have_glib=true, :)
+fi
+if test "x$with_glib" = "xyes" -a "x$have_glib" != "xtrue"; then
+       AC_MSG_ERROR([glib support requested but glib-2.0 not found])
+fi
+if $have_glib; then
+       AC_DEFINE(HAVE_GLIB, 1, [Have glib2 library])
+fi
+AM_CONDITIONAL(HAVE_GLIB, $have_glib)
+
+dnl ===========================================================================
+
+AC_ARG_WITH(gobject,
+       [AS_HELP_STRING([--with-gobject=@<:@yes/no/auto@:>@],
+                       [Use gobject @<:@default=auto@:>@])],,
+       [with_gobject=no])
+have_gobject=false
+if test "x$with_gobject" = "xyes" -o "x$with_gobject" = "xauto"; then
+       PKG_CHECK_MODULES(GOBJECT, gobject-2.0 glib-2.0, have_gobject=true, :)
+fi
+if test "x$with_gobject" = "xyes" -a "x$have_gobject" != "xtrue"; then
+       AC_MSG_ERROR([gobject support requested but gobject-2.0 / glib-2.0 not found])
+fi
+if $have_gobject; then
+       AC_DEFINE(HAVE_GOBJECT, 1, [Have gobject2 library])
+       GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
+       AC_SUBST(GLIB_MKENUMS)
+fi
+AM_CONDITIONAL(HAVE_GOBJECT, $have_gobject)
+
+dnl ===========================================================================
+
+
+dnl ===========================================================================
+# Gobject-Introspection
+have_introspection=false
+m4_ifdef([GOBJECT_INTROSPECTION_CHECK], [
+       if $have_gobject; then
+               GOBJECT_INTROSPECTION_CHECK([1.34.0])
+               if test "x$found_introspection" = xyes; then
+                       have_introspection=true
+               fi
+       else
+               AM_CONDITIONAL([HAVE_INTROSPECTION], false)
+       fi
+], [
+       AM_CONDITIONAL([HAVE_INTROSPECTION], false)
+])
+
+dnl ===========================================================================
+
+have_ucdn=true
+if $have_glib; then
+       have_ucdn=false
+fi
+if $have_ucdn; then
+       AC_DEFINE(HAVE_UCDN, 1, [Have UCDN Unicode functions])
+fi
+AM_CONDITIONAL(HAVE_UCDN, $have_ucdn)
+
+dnl ==========================================================================
+
+AC_ARG_WITH(cairo,
+       [AS_HELP_STRING([--with-cairo=@<:@yes/no/auto@:>@],
+                       [Use cairo @<:@default=auto@:>@])],,
+       [with_cairo=auto])
+have_cairo=false
+if test "x$with_cairo" = "xyes" -o "x$with_cairo" = "xauto"; then
+       PKG_CHECK_MODULES(CAIRO, cairo >= 1.8.0, have_cairo=true, :)
+fi
+if test "x$with_cairo" = "xyes" -a "x$have_cairo" != "xtrue"; then
+       AC_MSG_ERROR([cairo support requested but not found])
+fi
+if $have_cairo; then
+       AC_DEFINE(HAVE_CAIRO, 1, [Have cairo graphics library])
+fi
+AM_CONDITIONAL(HAVE_CAIRO, $have_cairo)
+
+have_cairo_ft=false
+if $have_cairo; then
+       PKG_CHECK_MODULES(CAIRO_FT, cairo-ft, have_cairo_ft=true, :)
+fi
+if $have_cairo_ft; then
+       AC_DEFINE(HAVE_CAIRO_FT, 1, [Have cairo-ft support in cairo graphics library])
+fi
+AM_CONDITIONAL(HAVE_CAIRO_FT, $have_cairo_ft)
+
+dnl ==========================================================================
+
+AC_ARG_WITH(icu,
+       [AS_HELP_STRING([--with-icu=@<:@yes/no/auto@:>@],
+                       [Use ICU @<:@default=auto@:>@])],,
+       [with_icu=auto])
+have_icu=false
+if test "x$with_icu" = "xyes" -o "x$with_icu" = "xauto"; then
+       PKG_CHECK_MODULES(ICU, icu-uc, have_icu=true, :)
+
+       dnl Fallback to icu-config if ICU pkg-config files could not be found
+       if test "$have_icu" != "true"; then
+               AC_CHECK_TOOL(ICU_CONFIG, icu-config, no)
+               AC_MSG_CHECKING([for ICU by using icu-config fallback])
+               if test "$ICU_CONFIG" != "no" && "$ICU_CONFIG" --version >/dev/null; then
+                       have_icu=true
+                       # We don't use --cflags as this gives us a lot of things that we don't
+                       # necessarily want, like debugging and optimization flags
+                       # See man (1) icu-config for more info.
+                       ICU_CFLAGS=`$ICU_CONFIG --cppflags`
+                       ICU_LIBS=`$ICU_CONFIG --ldflags-searchpath --ldflags-libsonly`
+                       AC_SUBST(ICU_CFLAGS)
+                       AC_SUBST(ICU_LIBS)
+                       AC_MSG_RESULT([yes])
+               else
+                       AC_MSG_RESULT([no])
+               fi
+       fi
+fi
+if test "x$with_icu" = "xyes" -a "x$have_icu" != "xtrue"; then
+       AC_MSG_ERROR([icu support requested but icu-uc not found])
+fi
+if $have_icu; then
+       CXXFLAGS="$CXXFLAGS `$PKG_CONFIG --variable=CXXFLAGS icu-uc`"
+       AC_DEFINE(HAVE_ICU, 1, [Have ICU library])
+fi
+AM_CONDITIONAL(HAVE_ICU, $have_icu)
+
+dnl ==========================================================================
+
+AC_ARG_WITH(graphite2,
+       [AS_HELP_STRING([--with-graphite2=@<:@yes/no/auto@:>@],
+                       [Use the graphite2 library @<:@default=no@:>@])],,
+       [with_graphite2=no])
+have_graphite2=false
+if test "x$with_graphite2" = "xyes" -o "x$with_graphite2" = "xauto"; then
+       PKG_CHECK_MODULES(GRAPHITE2, graphite2, have_graphite2=true, :)
+fi
+if test "x$with_graphite2" = "xyes" -a "x$have_graphite2" != "xtrue"; then
+       AC_MSG_ERROR([graphite2 support requested but libgraphite2 not found])
+fi
+if $have_graphite2; then
+    AC_DEFINE(HAVE_GRAPHITE2, 1, [Have Graphite2 library])
+fi
+AM_CONDITIONAL(HAVE_GRAPHITE2, $have_graphite2)
+
+dnl ==========================================================================
+
+AC_ARG_WITH(freetype,
+       [AS_HELP_STRING([--with-freetype=@<:@yes/no/auto@:>@],
+                       [Use the FreeType library @<:@default=auto@:>@])],,
+       [with_freetype=auto])
+have_freetype=false
+if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then
+       PKG_CHECK_MODULES(FREETYPE, freetype2 >= 2.3.8, have_freetype=true, :)
+fi
+if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then
+       AC_MSG_ERROR([FreeType support requested but libfreetype2 not found])
+fi
+if $have_freetype; then
+       AC_DEFINE(HAVE_FREETYPE, 1, [Have FreeType 2 library])
+       _save_libs="$LIBS"
+       _save_cflags="$CFLAGS"
+       LIBS="$LIBS $FREETYPE_LIBS"
+       CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
+       AC_CHECK_FUNCS(FT_Face_GetCharVariantIndex)
+       LIBS="$_save_libs"
+       CFLAGS="$_save_cflags"
+fi
+AM_CONDITIONAL(HAVE_FREETYPE, $have_freetype)
+
+dnl ===========================================================================
+
+AC_ARG_WITH(uniscribe,
+       [AS_HELP_STRING([--with-uniscribe=@<:@yes/no/auto@:>@],
+                       [Use the Uniscribe library @<:@default=no@:>@])],,
+       [with_uniscribe=no])
+have_uniscribe=false
+if test "x$with_uniscribe" = "xyes" -o "x$with_uniscribe" = "xauto"; then
+       AC_CHECK_HEADERS(usp10.h windows.h, have_uniscribe=true)
+fi
+if test "x$with_uniscribe" = "xyes" -a "x$have_uniscribe" != "xtrue"; then
+       AC_MSG_ERROR([uniscribe support requested but not found])
+fi
+if $have_uniscribe; then
+       UNISCRIBE_CFLAGS=
+       UNISCRIBE_LIBS="-lusp10 -lgdi32 -lrpcrt4"
+       AC_SUBST(UNISCRIBE_CFLAGS)
+       AC_SUBST(UNISCRIBE_LIBS)
+       AC_DEFINE(HAVE_UNISCRIBE, 1, [Have Uniscribe library])
+fi
+AM_CONDITIONAL(HAVE_UNISCRIBE, $have_uniscribe)
+
+dnl ===========================================================================
+
+AC_ARG_WITH(coretext,
+       [AS_HELP_STRING([--with-coretext=@<:@yes/no/auto@:>@],
+                       [Use CoreText @<:@default=no@:>@])],,
+       [with_coretext=no])
+have_coretext=false
+if test "x$with_coretext" = "xyes" -o "x$with_coretext" = "xauto"; then
+       AC_CHECK_TYPE(CTFontRef, have_coretext=true,, [#include <ApplicationServices/ApplicationServices.h>])
+
+       if $have_coretext; then
+               CORETEXT_CFLAGS=
+               CORETEXT_LIBS="-framework ApplicationServices"
+               AC_SUBST(CORETEXT_CFLAGS)
+               AC_SUBST(CORETEXT_LIBS)
+       else
+               # On iOS CoreText and CoreGraphics are stand-alone frameworks
+               if test "x$have_coretext" != "xtrue"; then
+                       AC_CHECK_TYPE(CTFontRef, have_coretext=true,, [#include <CoreText/CoreText.h>])
+               fi
+
+               if $have_coretext; then
+                       CORETEXT_CFLAGS=
+                       CORETEXT_LIBS="-framework CoreText -framework CoreGraphics"
+                       AC_SUBST(CORETEXT_CFLAGS)
+                       AC_SUBST(CORETEXT_LIBS)
+               fi
+       fi
+fi
+if test "x$with_coretext" = "xyes" -a "x$have_coretext" != "xtrue"; then
+       AC_MSG_ERROR([CoreText support requested but libcoretext not found])
+fi
+if $have_coretext; then
+       AC_DEFINE(HAVE_CORETEXT, 1, [Have Core Text backend])
+fi
+AM_CONDITIONAL(HAVE_CORETEXT, $have_coretext)
+
+dnl ===========================================================================
+
+AC_CACHE_CHECK([for Intel atomic primitives], hb_cv_have_intel_atomic_primitives, [
+       hb_cv_have_intel_atomic_primitives=false
+       AC_TRY_LINK([
+               void memory_barrier (void) { __sync_synchronize (); }
+               int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
+               int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
+               void mutex_unlock (int *m) { __sync_lock_release (m); }
+               ], [], hb_cv_have_intel_atomic_primitives=true
+       )
+])
+if $hb_cv_have_intel_atomic_primitives; then
+       AC_DEFINE(HAVE_INTEL_ATOMIC_PRIMITIVES, 1, [Have Intel __sync_* atomic primitives])
+fi
+
+dnl ===========================================================================
+
+AC_CACHE_CHECK([for Solaris atomic operations], hb_cv_have_solaris_atomic_ops, [
+       hb_cv_have_solaris_atomic_ops=false
+       AC_TRY_LINK([
+               #include <atomic.h>
+               /* This requires Solaris Studio 12.2 or newer: */
+               #include <mbarrier.h>
+               void memory_barrier (void) { __machine_rw_barrier (); }
+               int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
+               void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
+               ], [], hb_cv_have_solaris_atomic_ops=true
+       )
+])
+if $hb_cv_have_solaris_atomic_ops; then
+       AC_DEFINE(HAVE_SOLARIS_ATOMIC_OPS, 1, [Have Solaris __machine_*_barrier and atomic_* operations])
+fi
+
+if test "$os_win32" = no && ! $have_pthread; then
+       AC_CHECK_HEADERS(sched.h)
+       AC_SEARCH_LIBS(sched_yield,rt,AC_DEFINE(HAVE_SCHED_YIELD, 1, [Have sched_yield]))
+fi
+
+dnl ===========================================================================
+
+AC_CONFIG_FILES([
+Makefile
+src/Makefile
+src/hb-version.h
+src/hb-ucdn/Makefile
+util/Makefile
+test/Makefile
+test/api/Makefile
+test/shaping/Makefile
+docs/Makefile
+docs/reference/Makefile
+docs/reference/version.xml
+])
+
+AC_OUTPUT
+
+AC_MSG_NOTICE([
+
+Build configuration:
+
+Unicode callbacks (you want at least one):
+       Glib:                   ${have_glib}
+       ICU:                    ${have_icu}
+       UCDN:                   ${have_ucdn}
+
+Font callbacks (the more the better):
+       FreeType:               ${have_freetype}
+
+Tools used for command-line utilities:
+       Cairo:                  ${have_cairo}
+
+Additional shapers (the more the better):
+       Graphite2:              ${have_graphite2}
+
+Platform shapers (not normally needed):
+       CoreText:               ${have_coretext}
+       Uniscribe:              ${have_uniscribe}
+
+Other features:
+       Documentation:          ${have_gtk_doc}
+       GObject bindings:       ${have_gobject}
+       Introspection:          ${have_introspection}
+])
diff --git a/depcomp b/depcomp
new file mode 100755 (executable)
index 0000000..4ebd5b3
--- /dev/null
+++ b/depcomp
@@ -0,0 +1,791 @@
+#! /bin/sh
+# depcomp - compile a program generating dependencies as side-effects
+
+scriptversion=2013-05-30.07; # UTC
+
+# Copyright (C) 1999-2013 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
+
+case $1 in
+  '')
+    echo "$0: No command.  Try '$0 --help' for more information." 1>&2
+    exit 1;
+    ;;
+  -h | --h*)
+    cat <<\EOF
+Usage: depcomp [--help] [--version] PROGRAM [ARGS]
+
+Run PROGRAMS ARGS to compile a file, generating dependencies
+as side-effects.
+
+Environment variables:
+  depmode     Dependency tracking mode.
+  source      Source file read by 'PROGRAMS ARGS'.
+  object      Object file output by 'PROGRAMS ARGS'.
+  DEPDIR      directory where to store dependencies.
+  depfile     Dependency file to output.
+  tmpdepfile  Temporary file to use when outputting dependencies.
+  libtool     Whether libtool is used (yes/no).
+
+Report bugs to <bug-automake@gnu.org>.
+EOF
+    exit $?
+    ;;
+  -v | --v*)
+    echo "depcomp $scriptversion"
+    exit $?
+    ;;
+esac
+
+# Get the directory component of the given path, and save it in the
+# global variables '$dir'.  Note that this directory component will
+# be either empty or ending with a '/' character.  This is deliberate.
+set_dir_from ()
+{
+  case $1 in
+    */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
+      *) dir=;;
+  esac
+}
+
+# Get the suffix-stripped basename of the given path, and save it the
+# global variable '$base'.
+set_base_from ()
+{
+  base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
+}
+
+# If no dependency file was actually created by the compiler invocation,
+# we still have to create a dummy depfile, to avoid errors with the
+# Makefile "include basename.Plo" scheme.
+make_dummy_depfile ()
+{
+  echo "#dummy" > "$depfile"
+}
+
+# Factor out some common post-processing of the generated depfile.
+# Requires the auxiliary global variable '$tmpdepfile' to be set.
+aix_post_process_depfile ()
+{
+  # If the compiler actually managed to produce a dependency file,
+  # post-process it.
+  if test -f "$tmpdepfile"; then
+    # Each line is of the form 'foo.o: dependency.h'.
+    # Do two passes, one to just change these to
+    #   $object: dependency.h
+    # and one to simply output
+    #   dependency.h:
+    # which is needed to avoid the deleted-header problem.
+    { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
+      sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
+    } > "$depfile"
+    rm -f "$tmpdepfile"
+  else
+    make_dummy_depfile
+  fi
+}
+
+# A tabulation character.
+tab='  '
+# A newline character.
+nl='
+'
+# Character ranges might be problematic outside the C locale.
+# These definitions help.
+upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
+lower=abcdefghijklmnopqrstuvwxyz
+digits=0123456789
+alpha=${upper}${lower}
+
+if test -z "$depmode" || test -z "$source" || test -z "$object"; then
+  echo "depcomp: Variables source, object and depmode must be set" 1>&2
+  exit 1
+fi
+
+# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
+depfile=${depfile-`echo "$object" |
+  sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
+tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
+
+rm -f "$tmpdepfile"
+
+# Avoid interferences from the environment.
+gccflag= dashmflag=
+
+# Some modes work just like other modes, but use different flags.  We
+# parameterize here, but still list the modes in the big case below,
+# to make depend.m4 easier to write.  Note that we *cannot* use a case
+# here, because this file can only contain one case statement.
+if test "$depmode" = hp; then
+  # HP compiler uses -M and no extra arg.
+  gccflag=-M
+  depmode=gcc
+fi
+
+if test "$depmode" = dashXmstdout; then
+  # This is just like dashmstdout with a different argument.
+  dashmflag=-xM
+  depmode=dashmstdout
+fi
+
+cygpath_u="cygpath -u -f -"
+if test "$depmode" = msvcmsys; then
+  # This is just like msvisualcpp but w/o cygpath translation.
+  # Just convert the backslash-escaped backslashes to single forward
+  # slashes to satisfy depend.m4
+  cygpath_u='sed s,\\\\,/,g'
+  depmode=msvisualcpp
+fi
+
+if test "$depmode" = msvc7msys; then
+  # This is just like msvc7 but w/o cygpath translation.
+  # Just convert the backslash-escaped backslashes to single forward
+  # slashes to satisfy depend.m4
+  cygpath_u='sed s,\\\\,/,g'
+  depmode=msvc7
+fi
+
+if test "$depmode" = xlc; then
+  # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
+  gccflag=-qmakedep=gcc,-MF
+  depmode=gcc
+fi
+
+case "$depmode" in
+gcc3)
+## gcc 3 implements dependency tracking that does exactly what
+## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like
+## it if -MD -MP comes after the -MF stuff.  Hmm.
+## Unfortunately, FreeBSD c89 acceptance of flags depends upon
+## the command line argument order; so add the flags where they
+## appear in depend2.am.  Note that the slowdown incurred here
+## affects only configure: in makefiles, %FASTDEP% shortcuts this.
+  for arg
+  do
+    case $arg in
+    -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
+    *)  set fnord "$@" "$arg" ;;
+    esac
+    shift # fnord
+    shift # $arg
+  done
+  "$@"
+  stat=$?
+  if test $stat -ne 0; then
+    rm -f "$tmpdepfile"
+    exit $stat
+  fi
+  mv "$tmpdepfile" "$depfile"
+  ;;
+
+gcc)
+## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
+## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
+## (see the conditional assignment to $gccflag above).
+## There are various ways to get dependency output from gcc.  Here's
+## why we pick this rather obscure method:
+## - Don't want to use -MD because we'd like the dependencies to end
+##   up in a subdir.  Having to rename by hand is ugly.
+##   (We might end up doing this anyway to support other compilers.)
+## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
+##   -MM, not -M (despite what the docs say).  Also, it might not be
+##   supported by the other compilers which use the 'gcc' depmode.
+## - Using -M directly means running the compiler twice (even worse
+##   than renaming).
+  if test -z "$gccflag"; then
+    gccflag=-MD,
+  fi
+  "$@" -Wp,"$gccflag$tmpdepfile"
+  stat=$?
+  if test $stat -ne 0; then
+    rm -f "$tmpdepfile"
+    exit $stat
+  fi
+  rm -f "$depfile"
+  echo "$object : \\" > "$depfile"
+  # The second -e expression handles DOS-style file names with drive
+  # letters.
+  sed -e 's/^[^:]*: / /' \
+      -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
+## This next piece of magic avoids the "deleted header file" problem.
+## The problem is that when a header file which appears in a .P file
+## is deleted, the dependency causes make to die (because there is
+## typically no way to rebuild the header).  We avoid this by adding
+## dummy dependencies for each header file.  Too bad gcc doesn't do
+## this for us directly.
+## Some versions of gcc put a space before the ':'.  On the theory
+## that the space means something, we add a space to the output as
+## well.  hp depmode also adds that space, but also prefixes the VPATH
+## to the object.  Take care to not repeat it in the output.
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly.  Breaking it into two sed invocations is a workaround.
+  tr ' ' "$nl" < "$tmpdepfile" \
+    | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
+    | sed -e 's/$/ :/' >> "$depfile"
+  rm -f "$tmpdepfile"
+  ;;
+
+hp)
+  # This case exists only to let depend.m4 do its work.  It works by
+  # looking at the text of this script.  This case will never be run,
+  # since it is checked for above.
+  exit 1
+  ;;
+
+sgi)
+  if test "$libtool" = yes; then
+    "$@" "-Wp,-MDupdate,$tmpdepfile"
+  else
+    "$@" -MDupdate "$tmpdepfile"
+  fi
+  stat=$?
+  if test $stat -ne 0; then
+    rm -f "$tmpdepfile"
+    exit $stat
+  fi
+  rm -f "$depfile"
+
+  if test -f "$tmpdepfile"; then  # yes, the sourcefile depend on other files
+    echo "$object : \\" > "$depfile"
+    # Clip off the initial element (the dependent).  Don't try to be
+    # clever and replace this with sed code, as IRIX sed won't handle
+    # lines with more than a fixed number of characters (4096 in
+    # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines;
+    # the IRIX cc adds comments like '#:fec' to the end of the
+    # dependency line.
+    tr ' ' "$nl" < "$tmpdepfile" \
+      | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
+      | tr "$nl" ' ' >> "$depfile"
+    echo >> "$depfile"
+    # The second pass generates a dummy entry for each header file.
+    tr ' ' "$nl" < "$tmpdepfile" \
+      | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
+      >> "$depfile"
+  else
+    make_dummy_depfile
+  fi
+  rm -f "$tmpdepfile"
+  ;;
+
+xlc)
+  # This case exists only to let depend.m4 do its work.  It works by
+  # looking at the text of this script.  This case will never be run,
+  # since it is checked for above.
+  exit 1
+  ;;
+
+aix)
+  # The C for AIX Compiler uses -M and outputs the dependencies
+  # in a .u file.  In older versions, this file always lives in the
+  # current directory.  Also, the AIX compiler puts '$object:' at the
+  # start of each line; $object doesn't have directory information.
+  # Version 6 uses the directory in both cases.
+  set_dir_from "$object"
+  set_base_from "$object"
+  if test "$libtool" = yes; then
+    tmpdepfile1=$dir$base.u
+    tmpdepfile2=$base.u
+    tmpdepfile3=$dir.libs/$base.u
+    "$@" -Wc,-M
+  else
+    tmpdepfile1=$dir$base.u
+    tmpdepfile2=$dir$base.u
+    tmpdepfile3=$dir$base.u
+    "$@" -M
+  fi
+  stat=$?
+  if test $stat -ne 0; then
+    rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+    exit $stat
+  fi
+
+  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+  do
+    test -f "$tmpdepfile" && break
+  done
+  aix_post_process_depfile
+  ;;
+
+tcc)
+  # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
+  # FIXME: That version still under development at the moment of writing.
+  #        Make that this statement remains true also for stable, released
+  #        versions.
+  # It will wrap lines (doesn't matter whether long or short) with a
+  # trailing '\', as in:
+  #
+  #   foo.o : \
+  #    foo.c \
+  #    foo.h \
+  #
+  # It will put a trailing '\' even on the last line, and will use leading
+  # spaces rather than leading tabs (at least since its commit 0394caf7
+  # "Emit spaces for -MD").
+  "$@" -MD -MF "$tmpdepfile"
+  stat=$?
+  if test $stat -ne 0; then
+    rm -f "$tmpdepfile"
+    exit $stat
+  fi
+  rm -f "$depfile"
+  # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
+  # We have to change lines of the first kind to '$object: \'.
+  sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
+  # And for each line of the second kind, we have to emit a 'dep.h:'
+  # dummy dependency, to avoid the deleted-header problem.
+  sed -n -e 's|^  *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
+  rm -f "$tmpdepfile"
+  ;;
+
+## The order of this option in the case statement is important, since the
+## shell code in configure will try each of these formats in the order
+## listed in this file.  A plain '-MD' option would be understood by many
+## compilers, so we must ensure this comes after the gcc and icc options.
+pgcc)
+  # Portland's C compiler understands '-MD'.
+  # Will always output deps to 'file.d' where file is the root name of the
+  # source file under compilation, even if file resides in a subdirectory.
+  # The object file name does not affect the name of the '.d' file.
+  # pgcc 10.2 will output
+  #    foo.o: sub/foo.c sub/foo.h
+  # and will wrap long lines using '\' :
+  #    foo.o: sub/foo.c ... \
+  #     sub/foo.h ... \
+  #     ...
+  set_dir_from "$object"
+  # Use the source, not the object, to determine the base name, since
+  # that's sadly what pgcc will do too.
+  set_base_from "$source"
+  tmpdepfile=$base.d
+
+  # For projects that build the same source file twice into different object
+  # files, the pgcc approach of using the *source* file root name can cause
+  # problems in parallel builds.  Use a locking strategy to avoid stomping on
+  # the same $tmpdepfile.
+  lockdir=$base.d-lock
+  trap "
+    echo '$0: caught signal, cleaning up...' >&2
+    rmdir '$lockdir'
+    exit 1
+  " 1 2 13 15
+  numtries=100
+  i=$numtries
+  while test $i -gt 0; do
+    # mkdir is a portable test-and-set.
+    if mkdir "$lockdir" 2>/dev/null; then
+      # This process acquired the lock.
+      "$@" -MD
+      stat=$?
+      # Release the lock.
+      rmdir "$lockdir"
+      break
+    else
+      # If the lock is being held by a different process, wait
+      # until the winning process is done or we timeout.
+      while test -d "$lockdir" && test $i -gt 0; do
+        sleep 1
+        i=`expr $i - 1`
+      done
+    fi
+    i=`expr $i - 1`
+  done
+  trap - 1 2 13 15
+  if test $i -le 0; then
+    echo "$0: failed to acquire lock after $numtries attempts" >&2
+    echo "$0: check lockdir '$lockdir'" >&2
+    exit 1
+  fi
+
+  if test $stat -ne 0; then
+    rm -f "$tmpdepfile"
+    exit $stat
+  fi
+  rm -f "$depfile"
+  # Each line is of the form `foo.o: dependent.h',
+  # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
+  # Do two passes, one to just change these to
+  # `$object: dependent.h' and one to simply `dependent.h:'.
+  sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
+  # Some versions of the HPUX 10.20 sed can't process this invocation
+  # correctly.  Breaking it into two sed invocations is a workaround.
+  sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
+    | sed -e 's/$/ :/' >> "$depfile"
+  rm -f "$tmpdepfile"
+  ;;
+
+hp2)
+  # The "hp" stanza above does not work with aCC (C++) and HP's ia64
+  # compilers, which have integrated preprocessors.  The correct option
+  # to use with these is +Maked; it writes dependencies to a file named
+  # 'foo.d', which lands next to the object file, wherever that
+  # happens to be.
+  # Much of this is similar to the tru64 case; see comments there.
+  set_dir_from  "$object"
+  set_base_from "$object"
+  if test "$libtool" = yes; then
+    tmpdepfile1=$dir$base.d
+    tmpdepfile2=$dir.libs/$base.d
+    "$@" -Wc,+Maked
+  else
+    tmpdepfile1=$dir$base.d
+    tmpdepfile2=$dir$base.d
+    "$@" +Maked
+  fi
+  stat=$?
+  if test $stat -ne 0; then
+     rm -f "$tmpdepfile1" "$tmpdepfile2"
+     exit $stat
+  fi
+
+  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
+  do
+    test -f "$tmpdepfile" && break
+  done
+  if test -f "$tmpdepfile"; then
+    sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
+    # Add 'dependent.h:' lines.
+    sed -ne '2,${
+               s/^ *//
+               s/ \\*$//
+               s/$/:/
+               p
+             }' "$tmpdepfile" >> "$depfile"
+  else
+    make_dummy_depfile
+  fi
+  rm -f "$tmpdepfile" "$tmpdepfile2"
+  ;;
+
+tru64)
+  # The Tru64 compiler uses -MD to generate dependencies as a side
+  # effect.  'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
+  # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
+  # dependencies in 'foo.d' instead, so we check for that too.
+  # Subdirectories are respected.
+  set_dir_from  "$object"
+  set_base_from "$object"
+
+  if test "$libtool" = yes; then
+    # Libtool generates 2 separate objects for the 2 libraries.  These
+    # two compilations output dependencies in $dir.libs/$base.o.d and
+    # in $dir$base.o.d.  We have to check for both files, because
+    # one of the two compilations can be disabled.  We should prefer
+    # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
+    # automatically cleaned when .libs/ is deleted, while ignoring
+    # the former would cause a distcleancheck panic.
+    tmpdepfile1=$dir$base.o.d          # libtool 1.5
+    tmpdepfile2=$dir.libs/$base.o.d    # Likewise.
+    tmpdepfile3=$dir.libs/$base.d      # Compaq CCC V6.2-504
+    "$@" -Wc,-MD
+  else
+    tmpdepfile1=$dir$base.d
+    tmpdepfile2=$dir$base.d
+    tmpdepfile3=$dir$base.d
+    "$@" -MD
+  fi
+
+  stat=$?
+  if test $stat -ne 0; then
+    rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+    exit $stat
+  fi
+
+  for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+  do
+    test -f "$tmpdepfile" && break
+  done
+  # Same post-processing that is required for AIX mode.
+  aix_post_process_depfile
+  ;;
+
+msvc7)
+  if test "$libtool" = yes; then
+    showIncludes=-Wc,-showIncludes
+  else
+    showIncludes=-showIncludes
+  fi
+  "$@" $showIncludes > "$tmpdepfile"
+  stat=$?
+  grep -v '^Note: including file: ' "$tmpdepfile"
+  if test $stat -ne 0; then
+    rm -f "$tmpdepfile"
+    exit $stat
+  fi
+  rm -f "$depfile"
+  echo "$object : \\" > "$depfile"
+  # The first sed program below extracts the file names and escapes
+  # backslashes for cygpath.  The second sed program outputs the file
+  # name when reading, but also accumulates all include files in the
+  # hold buffer in order to output them again at the end.  This only
+  # works with sed implementations that can handle large buffers.
+  sed < "$tmpdepfile" -n '
+/^Note: including file:  *\(.*\)/ {
+  s//\1/
+  s/\\/\\\\/g
+  p
+}' | $cygpath_u | sort -u | sed -n '
+s/ /\\ /g
+s/\(.*\)/'"$tab"'\1 \\/p
+s/.\(.*\) \\/\1:/
+H
+$ {
+  s/.*/'"$tab"'/
+  G
+  p
+}' >> "$depfile"
+  echo >> "$depfile" # make sure the fragment doesn't end with a backslash
+  rm -f "$tmpdepfile"
+  ;;
+
+msvc7msys)
+  # This case exists only to let depend.m4 do its work.  It works by
+  # looking at the text of this script.  This case will never be run,
+  # since it is checked for above.
+  exit 1
+  ;;
+
+#nosideeffect)
+  # This comment above is used by automake to tell side-effect
+  # dependency tracking mechanisms from slower ones.
+
+dashmstdout)
+  # Important note: in order to support this mode, a compiler *must*
+  # always write the preprocessed file to stdout, regardless of -o.
+  "$@" || exit $?
+
+  # Remove the call to Libtool.
+  if test "$libtool" = yes; then
+    while test "X$1" != 'X--mode=compile'; do
+      shift
+    done
+    shift
+  fi
+
+  # Remove '-o $object'.
+  IFS=" "
+  for arg
+  do
+    case $arg in
+    -o)
+      shift
+      ;;
+    $object)
+      shift
+      ;;
+    *)
+      set fnord "$@" "$arg"
+      shift # fnord
+      shift # $arg
+      ;;
+    esac
+  done
+
+  test -z "$dashmflag" && dashmflag=-M
+  # Require at least two characters before searching for ':'
+  # in the target name.  This is to cope with DOS-style filenames:
+  # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
+  "$@" $dashmflag |
+    sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
+  rm -f "$depfile"
+  cat < "$tmpdepfile" > "$depfile"
+  # Some versions of the HPUX 10.20 sed can't process this sed invocation
+  # correctly.  Breaking it into two sed invocations is a workaround.
+  tr ' ' "$nl" < "$tmpdepfile" \
+    | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
+    | sed -e 's/$/ :/' >> "$depfile"
+  rm -f "$tmpdepfile"
+  ;;
+
+dashXmstdout)
+  # This case only exists to satisfy depend.m4.  It is never actually
+  # run, as this mode is specially recognized in the preamble.
+  exit 1
+  ;;
+
+makedepend)
+  "$@" || exit $?
+  # Remove any Libtool call
+  if test "$libtool" = yes; then
+    while test "X$1" != 'X--mode=compile'; do
+      shift
+    done
+    shift
+  fi
+  # X makedepend
+  shift
+  cleared=no eat=no
+  for arg
+  do
+    case $cleared in
+    no)
+      set ""; shift
+      cleared=yes ;;
+    esac
+    if test $eat = yes; then
+      eat=no
+      continue
+    fi
+    case "$arg" in
+    -D*|-I*)
+      set fnord "$@" "$arg"; shift ;;
+    # Strip any option that makedepend may not understand.  Remove
+    # the object too, otherwise makedepend will parse it as a source file.
+    -arch)
+      eat=yes ;;
+    -*|$object)
+      ;;
+    *)
+      set fnord "$@" "$arg"; shift ;;
+    esac
+  done
+  obj_suffix=`echo "$object" | sed 's/^.*\././'`
+  touch "$tmpdepfile"
+  ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
+  rm -f "$depfile"
+  # makedepend may prepend the VPATH from the source file name to the object.
+  # No need to regex-escape $object, excess matching of '.' is harmless.
+  sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
+  # Some versions of the HPUX 10.20 sed can't process the last invocation
+  # correctly.  Breaking it into two sed invocations is a workaround.
+  sed '1,2d' "$tmpdepfile" \
+    | tr ' ' "$nl" \
+    | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
+    | sed -e 's/$/ :/' >> "$depfile"
+  rm -f "$tmpdepfile" "$tmpdepfile".bak
+  ;;
+
+cpp)
+  # Important note: in order to support this mode, a compiler *must*
+  # always write the preprocessed file to stdout.
+  "$@" || exit $?
+
+  # Remove the call to Libtool.
+  if test "$libtool" = yes; then
+    while test "X$1" != 'X--mode=compile'; do
+      shift
+    done
+    shift
+  fi
+
+  # Remove '-o $object'.
+  IFS=" "
+  for arg
+  do
+    case $arg in
+    -o)
+      shift
+      ;;
+    $object)
+      shift
+      ;;
+    *)
+      set fnord "$@" "$arg"
+      shift # fnord
+      shift # $arg
+      ;;
+    esac
+  done
+
+  "$@" -E \
+    | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
+             -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
+    | sed '$ s: \\$::' > "$tmpdepfile"
+  rm -f "$depfile"
+  echo "$object : \\" > "$depfile"
+  cat < "$tmpdepfile" >> "$depfile"
+  sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
+  rm -f "$tmpdepfile"
+  ;;
+
+msvisualcpp)
+  # Important note: in order to support this mode, a compiler *must*
+  # always write the preprocessed file to stdout.
+  "$@" || exit $?
+
+  # Remove the call to Libtool.
+  if test "$libtool" = yes; then
+    while test "X$1" != 'X--mode=compile'; do
+      shift
+    done
+    shift
+  fi
+
+  IFS=" "
+  for arg
+  do
+    case "$arg" in
+    -o)
+      shift
+      ;;
+    $object)
+      shift
+      ;;
+    "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
+        set fnord "$@"
+        shift
+        shift
+        ;;
+    *)
+        set fnord "$@" "$arg"
+        shift
+        shift
+        ;;
+    esac
+  done
+  "$@" -E 2>/dev/null |
+  sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
+  rm -f "$depfile"
+  echo "$object : \\" > "$depfile"
+  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
+  echo "$tab" >> "$depfile"
+  sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
+  rm -f "$tmpdepfile"
+  ;;
+
+msvcmsys)
+  # This case exists only to let depend.m4 do its work.  It works by
+  # looking at the text of this script.  This case will never be run,
+  # since it is checked for above.
+  exit 1
+  ;;
+
+none)
+  exec "$@"
+  ;;
+
+*)
+  echo "Unknown depmode $depmode" 1>&2
+  exit 1
+  ;;
+esac
+
+exit 0
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/docs/Makefile.am b/docs/Makefile.am
new file mode 100644 (file)
index 0000000..f3ddc22
--- /dev/null
@@ -0,0 +1 @@
+SUBDIRS = reference
diff --git a/docs/Makefile.in b/docs/Makefile.in
new file mode 100644 (file)
index 0000000..615c464
--- /dev/null
@@ -0,0 +1,655 @@
+# Makefile.in generated by automake 1.14 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \  ]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs  ]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = docs
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ax_pthread.m4 \
+       $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
+       $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+       $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+       $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+       $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
+       ctags-recursive dvi-recursive html-recursive info-recursive \
+       install-data-recursive install-dvi-recursive \
+       install-exec-recursive install-html-recursive \
+       install-info-recursive install-pdf-recursive \
+       install-ps-recursive install-recursive installcheck-recursive \
+       installdirs-recursive pdf-recursive ps-recursive \
+       tags-recursive uninstall-recursive
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive        \
+  distclean-recursive maintainer-clean-recursive
+am__recursive_targets = \
+  $(RECURSIVE_TARGETS) \
+  $(RECURSIVE_CLEAN_TARGETS) \
+  $(am__extra_recursive_targets)
+AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
+       distdir
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates.  Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+  BEGIN { nonempty = 0; } \
+  { items[$$0] = 1; nonempty = 1; } \
+  END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique.  This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+  list='$(am__tagged_files)'; \
+  unique=`for i in $$list; do \
+    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+  done | $(am__uniquify_input)`
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+am__relativize = \
+  dir0=`pwd`; \
+  sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+  sed_rest='s,^[^/]*/*,,'; \
+  sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+  sed_butlast='s,/*[^/]*$$,,'; \
+  while test -n "$$dir1"; do \
+    first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+    if test "$$first" != "."; then \
+      if test "$$first" = ".."; then \
+        dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+        dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+      else \
+        first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+        if test "$$first2" = "$$first"; then \
+          dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+        else \
+          dir2="../$$dir2"; \
+        fi; \
+        dir0="$$dir0"/"$$first"; \
+      fi; \
+    fi; \
+    dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+  done; \
+  reldir="$$dir2"
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_FT_CFLAGS = @CAIRO_FT_CFLAGS@
+CAIRO_FT_LIBS = @CAIRO_FT_LIBS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CORETEXT_CFLAGS = @CORETEXT_CFLAGS@
+CORETEXT_LIBS = @CORETEXT_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
+FREETYPE_LIBS = @FREETYPE_LIBS@
+GIT = @GIT@
+GLIB_CFLAGS = @GLIB_CFLAGS@
+GLIB_LIBS = @GLIB_LIBS@
+GLIB_MKENUMS = @GLIB_MKENUMS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GRAPHITE2_CFLAGS = @GRAPHITE2_CFLAGS@
+GRAPHITE2_LIBS = @GRAPHITE2_LIBS@
+GREP = @GREP@
+GTKDOC_CHECK = @GTKDOC_CHECK@
+GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
+GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
+GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
+GTKDOC_MKPDF = @GTKDOC_MKPDF@
+GTKDOC_REBASE = @GTKDOC_REBASE@
+HB_LIBTOOL_VERSION_INFO = @HB_LIBTOOL_VERSION_INFO@
+HB_VERSION = @HB_VERSION@
+HB_VERSION_MAJOR = @HB_VERSION_MAJOR@
+HB_VERSION_MICRO = @HB_VERSION_MICRO@
+HB_VERSION_MINOR = @HB_VERSION_MINOR@
+HTML_DIR = @HTML_DIR@
+ICU_CFLAGS = @ICU_CFLAGS@
+ICU_CONFIG = @ICU_CONFIG@
+ICU_LIBS = @ICU_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@
+INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@
+INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@
+INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@
+INTROSPECTION_LIBS = @INTROSPECTION_LIBS@
+INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@
+INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@
+INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PTHREAD_CC = @PTHREAD_CC@
+PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
+PTHREAD_LIBS = @PTHREAD_LIBS@
+RAGEL = @RAGEL@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UNISCRIBE_CFLAGS = @UNISCRIBE_CFLAGS@
+UNISCRIBE_LIBS = @UNISCRIBE_LIBS@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+ax_pthread_config = @ax_pthread_config@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+SUBDIRS = reference
+all: all-recursive
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+       @for dep in $?; do \
+         case '$(am__configure_deps)' in \
+           *$$dep*) \
+             ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+               && { if test -f $@; then exit 0; else break; fi; }; \
+             exit 1;; \
+         esac; \
+       done; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits docs/Makefile'; \
+       $(am__cd) $(top_srcdir) && \
+         $(AUTOMAKE) --gnits docs/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+       @case '$?' in \
+         *config.status*) \
+           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+         *) \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+       esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run 'make' without going through this Makefile.
+# To change the values of 'make' variables: instead of editing Makefiles,
+# (1) if the variable is set in 'config.status', edit 'config.status'
+#     (which will cause the Makefiles to be regenerated when you run 'make');
+# (2) otherwise, pass the desired values on the 'make' command line.
+$(am__recursive_targets):
+       @fail=; \
+       if $(am__make_keepgoing); then \
+         failcom='fail=yes'; \
+       else \
+         failcom='exit 1'; \
+       fi; \
+       dot_seen=no; \
+       target=`echo $@ | sed s/-recursive//`; \
+       case "$@" in \
+         distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+         *) list='$(SUBDIRS)' ;; \
+       esac; \
+       for subdir in $$list; do \
+         echo "Making $$target in $$subdir"; \
+         if test "$$subdir" = "."; then \
+           dot_seen=yes; \
+           local_target="$$target-am"; \
+         else \
+           local_target="$$target"; \
+         fi; \
+         ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+         || eval $$failcom; \
+       done; \
+       if test "$$dot_seen" = "no"; then \
+         $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+       fi; test -z "$$fail"
+
+ID: $(am__tagged_files)
+       $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-recursive
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       set x; \
+       here=`pwd`; \
+       if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+         include_option=--etags-include; \
+         empty_fix=.; \
+       else \
+         include_option=--include; \
+         empty_fix=; \
+       fi; \
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         if test "$$subdir" = .; then :; else \
+           test ! -f $$subdir/TAGS || \
+             set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
+         fi; \
+       done; \
+       $(am__define_uniq_tagged_files); \
+       shift; \
+       if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+         test -n "$$unique" || unique=$$empty_fix; \
+         if test $$# -gt 0; then \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             "$$@" $$unique; \
+         else \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             $$unique; \
+         fi; \
+       fi
+ctags: ctags-recursive
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       $(am__define_uniq_tagged_files); \
+       test -z "$(CTAGS_ARGS)$$unique" \
+         || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+            $$unique
+
+GTAGS:
+       here=`$(am__cd) $(top_builddir) && pwd` \
+         && $(am__cd) $(top_srcdir) \
+         && gtags -i $(GTAGS_ARGS) "$$here"
+cscopelist: cscopelist-recursive
+
+cscopelist-am: $(am__tagged_files)
+       list='$(am__tagged_files)'; \
+       case "$(srcdir)" in \
+         [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+         *) sdir=$(subdir)/$(srcdir) ;; \
+       esac; \
+       for i in $$list; do \
+         if test -f "$$i"; then \
+           echo "$(subdir)/$$i"; \
+         else \
+           echo "$$sdir/$$i"; \
+         fi; \
+       done >> $(top_builddir)/cscope.files
+
+distclean-tags:
+       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+       @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       list='$(DISTFILES)'; \
+         dist_files=`for file in $$list; do echo $$file; done | \
+         sed -e "s|^$$srcdirstrip/||;t" \
+             -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+       case $$dist_files in \
+         */*) $(MKDIR_P) `echo "$$dist_files" | \
+                          sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+                          sort -u` ;; \
+       esac; \
+       for file in $$dist_files; do \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         if test -d $$d/$$file; then \
+           dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+           if test -d "$(distdir)/$$file"; then \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+         else \
+           test -f "$(distdir)/$$file" \
+           || cp -p $$d/$$file "$(distdir)/$$file" \
+           || exit 1; \
+         fi; \
+       done
+       @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+         if test "$$subdir" = .; then :; else \
+           $(am__make_dryrun) \
+             || test -d "$(distdir)/$$subdir" \
+             || $(MKDIR_P) "$(distdir)/$$subdir" \
+             || exit 1; \
+           dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+           $(am__relativize); \
+           new_distdir=$$reldir; \
+           dir1=$$subdir; dir2="$(top_distdir)"; \
+           $(am__relativize); \
+           new_top_distdir=$$reldir; \
+           echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+           echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+           ($(am__cd) $$subdir && \
+             $(MAKE) $(AM_MAKEFLAGS) \
+               top_distdir="$$new_top_distdir" \
+               distdir="$$new_distdir" \
+               am__remove_distdir=: \
+               am__skip_length_check=: \
+               am__skip_mode_fix=: \
+               distdir) \
+             || exit 1; \
+         fi; \
+       done
+check-am: all-am
+check: check-recursive
+all-am: Makefile
+installdirs: installdirs-recursive
+installdirs-am:
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+       if test -z '$(STRIP)'; then \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+             install; \
+       else \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+           "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+       fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+       -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+       -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+html-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-html-am:
+
+install-info: install-info-recursive
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: $(am__recursive_targets) install-am install-strip
+
+.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
+       check-am clean clean-generic clean-libtool cscopelist-am ctags \
+       ctags-am distclean distclean-generic distclean-libtool \
+       distclean-tags distdir dvi dvi-am html html-am info info-am \
+       install install-am install-data install-data-am install-dvi \
+       install-dvi-am install-exec install-exec-am install-html \
+       install-html-am install-info install-info-am install-man \
+       install-pdf install-pdf-am install-ps install-ps-am \
+       install-strip installcheck installcheck-am installdirs \
+       installdirs-am maintainer-clean maintainer-clean-generic \
+       mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
+       ps ps-am tags tags-am uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
new file mode 100644 (file)
index 0000000..f7a4ad6
--- /dev/null
@@ -0,0 +1,111 @@
+# Process this file with automake to produce Makefile.in
+
+# We require automake 1.6 at least.
+AUTOMAKE_OPTIONS = 1.6
+
+# This is a blank Makefile.am for using gtk-doc.
+# Copy this to your project's API docs directory and modify the variables to
+# suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples
+# of using the various options.
+
+# The name of the module, e.g. 'glib'.
+DOC_MODULE=harfbuzz
+
+# Uncomment for versioned docs and specify the version of the module, e.g. '2'.
+#DOC_MODULE_VERSION=$(HB_VERSION_MAJOR)
+
+# The top-level SGML file. You can change this if you want to.
+DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.xml
+
+# Directories containing the source code.
+# gtk-doc will search all .c and .h files beneath these paths
+# for inline comments documenting functions and macros.
+# e.g. DOC_SOURCE_DIR=$(top_srcdir)/gtk $(top_srcdir)/gdk
+DOC_SOURCE_DIR=$(top_srcdir)/src $(top_builddir)/src
+
+# Extra options to pass to gtkdoc-scangobj. Not normally needed.
+SCANGOBJ_OPTIONS=
+
+# Extra options to supply to gtkdoc-scan.
+# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
+SCAN_OPTIONS=--rebuild-types --deprecated-guards="HB_DISABLE_DEPRECATED"
+
+# Header files or dirs to ignore when scanning. Use base file/dir names
+# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h private_code
+IGNORE_HFILES=`cd $(top_srcdir)/src; find . -path './hb-*/*.h' | sed 's@^.*/@@'`
+if HAVE_GOBJECT
+else
+IGNORE_HFILES+=hb-gobject.h hb-gobject-enums.h hb-gobject-structs.h
+endif
+
+# Extra options to supply to gtkdoc-mkdb.
+# e.g. MKDB_OPTIONS=--xml-mode --output-format=xml
+MKDB_OPTIONS=--source-suffixes=h,cc --xml-mode --output-format=xml --ignore-files="$(IGNORE_HFILES)"
+
+# Extra options to supply to gtkdoc-mktmpl
+# e.g. MKTMPL_OPTIONS=--only-section-tmpl
+MKTMPL_OPTIONS=
+
+# Extra options to supply to gtkdoc-mkhtml
+MKHTML_OPTIONS=
+
+# Extra options to supply to gtkdoc-fixref. Not normally needed.
+# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html
+FIXXREF_OPTIONS=
+
+# Used for dependencies. The docs will be rebuilt if any of these change.
+# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
+# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
+HFILE_GLOB=$(top_srcdir)/src/hb.h $(top_srcdir)/src/hb-*.h
+CFILE_GLOB=$(top_srcdir)/src/hb-*.cc
+
+# Extra header to include when scanning, which are not under DOC_SOURCE_DIR
+# e.g. EXTRA_HFILES=$(top_srcdir}/contrib/extra.h
+EXTRA_HFILES=$(top_builddir)/src/hb-version.h
+
+# Images to copy into HTML directory.
+# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png
+HTML_IMAGES=
+
+# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
+# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
+content_files= version.xml
+
+# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
+# These files must be listed here *and* in content_files
+# e.g. expand_content_files=running.sgml
+expand_content_files=
+
+# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
+# Only needed if you are using gtkdoc-scangobj to dynamically query widget
+# signals and properties.
+# e.g. GTKDOC_CFLAGS=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
+# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
+GTKDOC_CFLAGS=
+GTKDOC_LIBS=$(top_builddir)/src/libharfbuzz.la
+if HAVE_GOBJECT
+GTKDOC_LIBS+=$(top_builddir)/src/libharfbuzz-gobject.la
+endif
+
+# This includes the standard gtk-doc make rules, copied by gtkdocize.
+include $(top_srcdir)/gtk-doc.make
+
+# Other files to distribute
+# e.g. EXTRA_DIST += version.xml.in
+EXTRA_DIST += version.xml.in
+
+# Files not to distribute
+# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types
+# for --rebuild-sections in $(SCAN_OPTIONS) e.g. $(DOC_MODULE)-sections.txt
+#DISTCLEANFILES +=
+
+# Comment this out if you want 'make check' to test you doc status
+# and run some sanity checks
+if ENABLE_GTK_DOC
+TESTS_ENVIRONMENT = cd $(srcdir) && \
+  DOC_MODULE=$(DOC_MODULE) DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE) \
+  SRCDIR=$(abs_srcdir) BUILDDIR=$(abs_builddir)
+#TESTS = $(GTKDOC_CHECK)
+endif
+
+-include $(top_srcdir)/git.mk
diff --git a/docs/reference/Makefile.in b/docs/reference/Makefile.in
new file mode 100644 (file)
index 0000000..d090c74
--- /dev/null
@@ -0,0 +1,852 @@
+# Makefile.in generated by automake 1.14 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# Process this file with automake to produce Makefile.in
+
+# -*- mode: makefile -*-
+
+####################################
+# Everything below here is generic #
+####################################
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \  ]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs  ]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+@HAVE_GOBJECT_FALSE@am__append_1 = hb-gobject.h hb-gobject-enums.h hb-gobject-structs.h
+@HAVE_GOBJECT_TRUE@am__append_2 = $(top_builddir)/src/libharfbuzz-gobject.la
+DIST_COMMON = $(top_srcdir)/gtk-doc.make $(srcdir)/Makefile.in \
+       $(srcdir)/Makefile.am $(srcdir)/version.xml.in
+subdir = docs/reference
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ax_pthread.m4 \
+       $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
+       $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+       $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+       $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+       $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES = version.xml
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_FT_CFLAGS = @CAIRO_FT_CFLAGS@
+CAIRO_FT_LIBS = @CAIRO_FT_LIBS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CORETEXT_CFLAGS = @CORETEXT_CFLAGS@
+CORETEXT_LIBS = @CORETEXT_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
+FREETYPE_LIBS = @FREETYPE_LIBS@
+GIT = @GIT@
+GLIB_CFLAGS = @GLIB_CFLAGS@
+GLIB_LIBS = @GLIB_LIBS@
+GLIB_MKENUMS = @GLIB_MKENUMS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GRAPHITE2_CFLAGS = @GRAPHITE2_CFLAGS@
+GRAPHITE2_LIBS = @GRAPHITE2_LIBS@
+GREP = @GREP@
+GTKDOC_CHECK = @GTKDOC_CHECK@
+GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
+GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
+GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
+GTKDOC_MKPDF = @GTKDOC_MKPDF@
+GTKDOC_REBASE = @GTKDOC_REBASE@
+HB_LIBTOOL_VERSION_INFO = @HB_LIBTOOL_VERSION_INFO@
+HB_VERSION = @HB_VERSION@
+HB_VERSION_MAJOR = @HB_VERSION_MAJOR@
+HB_VERSION_MICRO = @HB_VERSION_MICRO@
+HB_VERSION_MINOR = @HB_VERSION_MINOR@
+HTML_DIR = @HTML_DIR@
+ICU_CFLAGS = @ICU_CFLAGS@
+ICU_CONFIG = @ICU_CONFIG@
+ICU_LIBS = @ICU_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@
+INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@
+INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@
+INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@
+INTROSPECTION_LIBS = @INTROSPECTION_LIBS@
+INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@
+INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@
+INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PTHREAD_CC = @PTHREAD_CC@
+PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
+PTHREAD_LIBS = @PTHREAD_LIBS@
+RAGEL = @RAGEL@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UNISCRIBE_CFLAGS = @UNISCRIBE_CFLAGS@
+UNISCRIBE_LIBS = @UNISCRIBE_LIBS@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+ax_pthread_config = @ax_pthread_config@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+
+# We require automake 1.6 at least.
+AUTOMAKE_OPTIONS = 1.6
+
+# This is a blank Makefile.am for using gtk-doc.
+# Copy this to your project's API docs directory and modify the variables to
+# suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples
+# of using the various options.
+
+# The name of the module, e.g. 'glib'.
+DOC_MODULE = harfbuzz
+
+# Uncomment for versioned docs and specify the version of the module, e.g. '2'.
+#DOC_MODULE_VERSION=$(HB_VERSION_MAJOR)
+
+# The top-level SGML file. You can change this if you want to.
+DOC_MAIN_SGML_FILE = $(DOC_MODULE)-docs.xml
+
+# Directories containing the source code.
+# gtk-doc will search all .c and .h files beneath these paths
+# for inline comments documenting functions and macros.
+# e.g. DOC_SOURCE_DIR=$(top_srcdir)/gtk $(top_srcdir)/gdk
+DOC_SOURCE_DIR = $(top_srcdir)/src $(top_builddir)/src
+
+# Extra options to pass to gtkdoc-scangobj. Not normally needed.
+SCANGOBJ_OPTIONS = 
+
+# Extra options to supply to gtkdoc-scan.
+# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
+SCAN_OPTIONS = --rebuild-types --deprecated-guards="HB_DISABLE_DEPRECATED"
+
+# Header files or dirs to ignore when scanning. Use base file/dir names
+# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h private_code
+IGNORE_HFILES = `cd $(top_srcdir)/src; find . -path './hb-*/*.h' | sed \
+       's@^.*/@@'` $(am__append_1)
+
+# Extra options to supply to gtkdoc-mkdb.
+# e.g. MKDB_OPTIONS=--xml-mode --output-format=xml
+MKDB_OPTIONS = --source-suffixes=h,cc --xml-mode --output-format=xml --ignore-files="$(IGNORE_HFILES)"
+
+# Extra options to supply to gtkdoc-mktmpl
+# e.g. MKTMPL_OPTIONS=--only-section-tmpl
+MKTMPL_OPTIONS = 
+
+# Extra options to supply to gtkdoc-mkhtml
+MKHTML_OPTIONS = 
+
+# Extra options to supply to gtkdoc-fixref. Not normally needed.
+# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html
+FIXXREF_OPTIONS = 
+
+# Used for dependencies. The docs will be rebuilt if any of these change.
+# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
+# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
+HFILE_GLOB = $(top_srcdir)/src/hb.h $(top_srcdir)/src/hb-*.h
+CFILE_GLOB = $(top_srcdir)/src/hb-*.cc
+
+# Extra header to include when scanning, which are not under DOC_SOURCE_DIR
+# e.g. EXTRA_HFILES=$(top_srcdir}/contrib/extra.h
+EXTRA_HFILES = $(top_builddir)/src/hb-version.h
+
+# Images to copy into HTML directory.
+# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png
+HTML_IMAGES = 
+
+# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
+# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
+content_files = version.xml
+
+# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
+# These files must be listed here *and* in content_files
+# e.g. expand_content_files=running.sgml
+expand_content_files = 
+
+# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
+# Only needed if you are using gtkdoc-scangobj to dynamically query widget
+# signals and properties.
+# e.g. GTKDOC_CFLAGS=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
+# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
+GTKDOC_CFLAGS = 
+GTKDOC_LIBS = $(top_builddir)/src/libharfbuzz.la $(am__append_2)
+@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_CC = $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_LD = $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
+@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
+@GTK_DOC_USE_LIBTOOL_FALSE@GTKDOC_RUN = 
+@GTK_DOC_USE_LIBTOOL_TRUE@GTKDOC_RUN = $(LIBTOOL) --mode=execute
+
+# We set GPATH here; this gives us semantics for GNU make
+# which are more like other make's VPATH, when it comes to
+# whether a source that is a target of one rule is then
+# searched for in VPATH/GPATH.
+#
+GPATH = $(srcdir)
+TARGET_DIR = $(HTML_DIR)/$(DOC_MODULE)
+SETUP_FILES = \
+       $(content_files)                \
+       $(DOC_MAIN_SGML_FILE)           \
+       $(DOC_MODULE)-sections.txt      \
+       $(DOC_MODULE)-overrides.txt
+
+
+# This includes the standard gtk-doc make rules, copied by gtkdocize.
+
+# Other files to distribute
+# e.g. EXTRA_DIST += version.xml.in
+EXTRA_DIST = $(HTML_IMAGES) $(SETUP_FILES) version.xml.in
+DOC_STAMPS = setup-build.stamp scan-build.stamp sgml-build.stamp \
+       html-build.stamp pdf-build.stamp \
+       sgml.stamp html.stamp pdf.stamp
+
+SCANOBJ_FILES = \
+       $(DOC_MODULE).args       \
+       $(DOC_MODULE).hierarchy  \
+       $(DOC_MODULE).interfaces \
+       $(DOC_MODULE).prerequisites \
+       $(DOC_MODULE).signals
+
+REPORT_FILES = \
+       $(DOC_MODULE)-undocumented.txt \
+       $(DOC_MODULE)-undeclared.txt \
+       $(DOC_MODULE)-unused.txt
+
+CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) gtkdoc-check.test
+@GTK_DOC_BUILD_HTML_FALSE@HTML_BUILD_STAMP = 
+@GTK_DOC_BUILD_HTML_TRUE@HTML_BUILD_STAMP = html-build.stamp
+@GTK_DOC_BUILD_PDF_FALSE@PDF_BUILD_STAMP = 
+@GTK_DOC_BUILD_PDF_TRUE@PDF_BUILD_STAMP = pdf-build.stamp
+
+#### setup ####
+GTK_DOC_V_SETUP = $(GTK_DOC_V_SETUP_$(V))
+GTK_DOC_V_SETUP_ = $(GTK_DOC_V_SETUP_$(AM_DEFAULT_VERBOSITY))
+GTK_DOC_V_SETUP_0 = @echo "  DOC   Preparing build";
+
+#### scan ####
+GTK_DOC_V_SCAN = $(GTK_DOC_V_SCAN_$(V))
+GTK_DOC_V_SCAN_ = $(GTK_DOC_V_SCAN_$(AM_DEFAULT_VERBOSITY))
+GTK_DOC_V_SCAN_0 = @echo "  DOC   Scanning header files";
+GTK_DOC_V_INTROSPECT = $(GTK_DOC_V_INTROSPECT_$(V))
+GTK_DOC_V_INTROSPECT_ = $(GTK_DOC_V_INTROSPECT_$(AM_DEFAULT_VERBOSITY))
+GTK_DOC_V_INTROSPECT_0 = @echo "  DOC   Introspecting gobjects";
+
+#### xml ####
+GTK_DOC_V_XML = $(GTK_DOC_V_XML_$(V))
+GTK_DOC_V_XML_ = $(GTK_DOC_V_XML_$(AM_DEFAULT_VERBOSITY))
+GTK_DOC_V_XML_0 = @echo "  DOC   Building XML";
+
+#### html ####
+GTK_DOC_V_HTML = $(GTK_DOC_V_HTML_$(V))
+GTK_DOC_V_HTML_ = $(GTK_DOC_V_HTML_$(AM_DEFAULT_VERBOSITY))
+GTK_DOC_V_HTML_0 = @echo "  DOC   Building HTML";
+GTK_DOC_V_XREF = $(GTK_DOC_V_XREF_$(V))
+GTK_DOC_V_XREF_ = $(GTK_DOC_V_XREF_$(AM_DEFAULT_VERBOSITY))
+GTK_DOC_V_XREF_0 = @echo "  DOC   Fixing cross-references";
+
+#### pdf ####
+GTK_DOC_V_PDF = $(GTK_DOC_V_PDF_$(V))
+GTK_DOC_V_PDF_ = $(GTK_DOC_V_PDF_$(AM_DEFAULT_VERBOSITY))
+GTK_DOC_V_PDF_0 = @echo "  DOC   Building PDF";
+
+# Files not to distribute
+# for --rebuild-types in $(SCAN_OPTIONS), e.g. $(DOC_MODULE).types
+# for --rebuild-sections in $(SCAN_OPTIONS) e.g. $(DOC_MODULE)-sections.txt
+#DISTCLEANFILES +=
+
+# Comment this out if you want 'make check' to test you doc status
+# and run some sanity checks
+@ENABLE_GTK_DOC_TRUE@TESTS_ENVIRONMENT = cd $(srcdir) && \
+@ENABLE_GTK_DOC_TRUE@  DOC_MODULE=$(DOC_MODULE) DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE) \
+@ENABLE_GTK_DOC_TRUE@  SRCDIR=$(abs_srcdir) BUILDDIR=$(abs_builddir)
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am $(top_srcdir)/gtk-doc.make $(am__configure_deps)
+       @for dep in $?; do \
+         case '$(am__configure_deps)' in \
+           *$$dep*) \
+             ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+               && { if test -f $@; then exit 0; else break; fi; }; \
+             exit 1;; \
+         esac; \
+       done; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits docs/reference/Makefile'; \
+       $(am__cd) $(top_srcdir) && \
+         $(AUTOMAKE) --gnits docs/reference/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+       @case '$?' in \
+         *config.status*) \
+           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+         *) \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+       esac;
+$(top_srcdir)/gtk-doc.make:
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+version.xml: $(top_builddir)/config.status $(srcdir)/version.xml.in
+       cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+       @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       list='$(DISTFILES)'; \
+         dist_files=`for file in $$list; do echo $$file; done | \
+         sed -e "s|^$$srcdirstrip/||;t" \
+             -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+       case $$dist_files in \
+         */*) $(MKDIR_P) `echo "$$dist_files" | \
+                          sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+                          sort -u` ;; \
+       esac; \
+       for file in $$dist_files; do \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         if test -d $$d/$$file; then \
+           dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+           if test -d "$(distdir)/$$file"; then \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+         else \
+           test -f "$(distdir)/$$file" \
+           || cp -p $$d/$$file "$(distdir)/$$file" \
+           || exit 1; \
+         fi; \
+       done
+       $(MAKE) $(AM_MAKEFLAGS) \
+         top_distdir="$(top_distdir)" distdir="$(distdir)" \
+         dist-hook
+check-am: all-am
+check: check-am
+@ENABLE_GTK_DOC_FALSE@all-local:
+all-am: Makefile all-local
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+       if test -z '$(STRIP)'; then \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+             install; \
+       else \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+           "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+       fi
+mostlyclean-generic:
+
+clean-generic:
+       -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+       -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-local mostlyclean-am
+
+distclean: distclean-am
+       -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-local
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-data-local
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic \
+       maintainer-clean-local
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-local
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am all-local check check-am clean clean-generic \
+       clean-libtool clean-local cscopelist-am ctags-am dist-hook \
+       distclean distclean-generic distclean-libtool distclean-local \
+       distdir dvi dvi-am html html-am info info-am install \
+       install-am install-data install-data-am install-data-local \
+       install-dvi install-dvi-am install-exec install-exec-am \
+       install-html install-html-am install-info install-info-am \
+       install-man install-pdf install-pdf-am install-ps \
+       install-ps-am install-strip installcheck installcheck-am \
+       installdirs maintainer-clean maintainer-clean-generic \
+       maintainer-clean-local mostlyclean mostlyclean-generic \
+       mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \
+       uninstall-am uninstall-local
+
+
+gtkdoc-check.test: Makefile
+       $(AM_V_GEN)echo "#!/bin/sh -e" > $@; \
+               echo "$(GTKDOC_CHECK_PATH) || exit 1" >> $@; \
+               chmod +x $@
+
+all-gtk-doc: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
+.PHONY: all-gtk-doc
+
+@ENABLE_GTK_DOC_TRUE@all-local: all-gtk-doc
+
+docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
+
+$(REPORT_FILES): sgml-build.stamp
+
+setup-build.stamp:
+       -$(GTK_DOC_V_SETUP)if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
+           files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \
+           if test "x$$files" != "x" ; then \
+               for file in $$files ; do \
+                   destdir=`dirname $(abs_builddir)/$$file`; \
+                   test -d "$$destdir" || mkdir -p "$$destdir"; \
+                   test -f $(abs_srcdir)/$$file && \
+                       cp -pf $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \
+               done; \
+           fi; \
+       fi
+       $(AM_V_at)touch setup-build.stamp
+
+scan-build.stamp: setup-build.stamp $(HFILE_GLOB) $(CFILE_GLOB)
+       $(GTK_DOC_V_SCAN)_source_dir='' ; \
+       for i in $(DOC_SOURCE_DIR) ; do \
+           _source_dir="$${_source_dir} --source-dir=$$i" ; \
+       done ; \
+       gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES)
+       $(GTK_DOC_V_INTROSPECT)if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \
+           scanobj_options=""; \
+           gtkdoc-scangobj 2>&1 --help | grep  >/dev/null "\-\-verbose"; \
+           if test "$(?)" = "0"; then \
+               if test "x$(V)" = "x1"; then \
+                   scanobj_options="--verbose"; \
+               fi; \
+           fi; \
+           CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \
+           gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \
+       else \
+           for i in $(SCANOBJ_FILES) ; do \
+               test -f $$i || touch $$i ; \
+           done \
+       fi
+       $(AM_V_at)touch scan-build.stamp
+
+$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp
+       @true
+
+sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files)
+       $(GTK_DOC_V_XML)_source_dir='' ; \
+       for i in $(DOC_SOURCE_DIR) ; do \
+           _source_dir="$${_source_dir} --source-dir=$$i" ; \
+       done ; \
+       gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS)
+       $(AM_V_at)touch sgml-build.stamp
+
+sgml.stamp: sgml-build.stamp
+       @true
+
+html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
+       $(GTK_DOC_V_HTML)rm -rf html && mkdir html && \
+       mkhtml_options=""; \
+       gtkdoc-mkhtml 2>&1 --help | grep  >/dev/null "\-\-verbose"; \
+       if test "$(?)" = "0"; then \
+         if test "x$(V)" = "x1"; then \
+           mkhtml_options="$$mkhtml_options --verbose"; \
+         fi; \
+       fi; \
+       gtkdoc-mkhtml 2>&1 --help | grep  >/dev/null "\-\-path"; \
+       if test "$(?)" = "0"; then \
+         mkhtml_options="$$mkhtml_options --path=\"$(abs_srcdir)\""; \
+       fi; \
+       cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
+       -@test "x$(HTML_IMAGES)" = "x" || \
+       for file in $(HTML_IMAGES) ; do \
+         if test -f $(abs_srcdir)/$$file ; then \
+           cp $(abs_srcdir)/$$file $(abs_builddir)/html; \
+         fi; \
+         if test -f $(abs_builddir)/$$file ; then \
+           cp $(abs_builddir)/$$file $(abs_builddir)/html; \
+         fi; \
+       done;
+       $(GTK_DOC_V_XREF)gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
+       $(AM_V_at)touch html-build.stamp
+
+pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
+       $(GTK_DOC_V_PDF)rm -f $(DOC_MODULE).pdf && \
+       mkpdf_options=""; \
+       gtkdoc-mkpdf 2>&1 --help | grep  >/dev/null "\-\-verbose"; \
+       if test "$(?)" = "0"; then \
+         if test "x$(V)" = "x1"; then \
+           mkpdf_options="$$mkpdf_options --verbose"; \
+         fi; \
+       fi; \
+       if test "x$(HTML_IMAGES)" != "x"; then \
+         for img in $(HTML_IMAGES); do \
+           part=`dirname $$img`; \
+           echo $$mkpdf_options | grep >/dev/null "\-\-imgdir=$$part "; \
+           if test $$? != 0; then \
+             mkpdf_options="$$mkpdf_options --imgdir=$$part"; \
+           fi; \
+         done; \
+       fi; \
+       gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_options $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS)
+       $(AM_V_at)touch pdf-build.stamp
+
+##############
+
+clean-local:
+       @rm -f *~ *.bak
+       @rm -rf .libs
+       @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-types" ; then \
+         rm -f $(DOC_MODULE).types; \
+       fi
+
+distclean-local:
+       @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \
+           $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
+       @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
+           rm -f $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types; \
+       fi
+
+maintainer-clean-local:
+       @rm -rf xml html
+
+install-data-local:
+       @installfiles=`echo $(builddir)/html/*`; \
+       if test "$$installfiles" = '$(builddir)/html/*'; \
+       then echo 1>&2 'Nothing to install' ; \
+       else \
+         if test -n "$(DOC_MODULE_VERSION)"; then \
+           installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
+         else \
+           installdir="$(DESTDIR)$(TARGET_DIR)"; \
+         fi; \
+         $(mkinstalldirs) $${installdir} ; \
+         for i in $$installfiles; do \
+           echo ' $(INSTALL_DATA) '$$i ; \
+           $(INSTALL_DATA) $$i $${installdir}; \
+         done; \
+         if test -n "$(DOC_MODULE_VERSION)"; then \
+           mv -f $${installdir}/$(DOC_MODULE).devhelp2 \
+             $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \
+         fi; \
+         $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \
+       fi
+
+uninstall-local:
+       @if test -n "$(DOC_MODULE_VERSION)"; then \
+         installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
+       else \
+         installdir="$(DESTDIR)$(TARGET_DIR)"; \
+       fi; \
+       rm -rf $${installdir}
+
+#
+# Require gtk-doc when making dist
+#
+@HAVE_GTK_DOC_TRUE@dist-check-gtkdoc: docs
+@HAVE_GTK_DOC_FALSE@dist-check-gtkdoc:
+@HAVE_GTK_DOC_FALSE@   @echo "*** gtk-doc is needed to run 'make dist'.         ***"
+@HAVE_GTK_DOC_FALSE@   @echo "*** gtk-doc was not found when 'configure' ran.   ***"
+@HAVE_GTK_DOC_FALSE@   @echo "*** please install gtk-doc and rerun 'configure'. ***"
+@HAVE_GTK_DOC_FALSE@   @false
+
+dist-hook: dist-check-gtkdoc all-gtk-doc dist-hook-local
+       @mkdir $(distdir)/html
+       @cp ./html/* $(distdir)/html
+       @-cp ./$(DOC_MODULE).pdf $(distdir)/
+       @-cp ./$(DOC_MODULE).types $(distdir)/
+       @-cp ./$(DOC_MODULE)-sections.txt $(distdir)/
+       @cd $(distdir) && rm -f $(DISTCLEANFILES)
+       @$(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html
+
+.PHONY : dist-hook-local docs
+#TESTS = $(GTKDOC_CHECK)
+
+-include $(top_srcdir)/git.mk
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/docs/reference/harfbuzz-docs.xml b/docs/reference/harfbuzz-docs.xml
new file mode 100644 (file)
index 0000000..2731fab
--- /dev/null
@@ -0,0 +1,65 @@
+<?xml version="1.0"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
+               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
+  <!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
+  <!ENTITY version SYSTEM "version.xml">
+]>
+<book id="index">
+  <bookinfo>
+    <title>HarfBuzz Reference Manual</title>
+    <releaseinfo>
+      for HarfBuzz &version;.
+      <!--The latest version of this documentation can be found on-line at
+      <ulink role="online-location" url="http://[SERVER]/libharfbuzz/index.html">http://[SERVER]/libharfbuzz/</ulink>.-->
+    </releaseinfo>
+  </bookinfo>
+
+  <chapter>
+    <title>[Insert title here]</title>
+    <xi:include href="xml/hb.xml"/>
+    <xi:include href="xml/hb-common.xml"/>
+    <xi:include href="xml/hb-unicode.xml"/>
+    <xi:include href="xml/hb-buffer.xml"/>
+    <xi:include href="xml/hb-blob.xml"/>
+    <xi:include href="xml/hb-face.xml"/>
+    <xi:include href="xml/hb-font.xml"/>
+    <xi:include href="xml/hb-shape.xml"/>
+
+    <xi:include href="xml/hb-version.xml"/>
+    <xi:include href="xml/hb-deprecated.xml"/>
+
+    <xi:include href="xml/hb-set.xml"/>
+
+    <xi:include href="xml/hb-ot.xml"/>
+    <xi:include href="xml/hb-ot-layout.xml"/>
+    <xi:include href="xml/hb-ot-tag.xml"/>
+
+    <xi:include href="xml/hb-shape-plan.xml"/>
+
+    <xi:include href="xml/hb-glib.xml"/>
+    <xi:include href="xml/hb-icu.xml"/>
+
+    <xi:include href="xml/hb-ft.xml"/>
+
+    <xi:include href="xml/hb-graphite2.xml"/>
+    <xi:include href="xml/hb-uniscribe.xml"/>
+    <xi:include href="xml/hb-coretext.xml"/>
+
+    <xi:include href="xml/hb-gobject.xml"/>
+
+  </chapter>
+  <chapter id="object-tree">
+    <title>Object Hierarchy</title>
+     <xi:include href="xml/tree_index.sgml"/>
+  </chapter>
+  <index id="api-index-full">
+    <title>API Index</title>
+    <xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
+  </index>
+  <index id="deprecated-api-index" role="deprecated">
+    <title>Index of deprecated API</title>
+    <xi:include href="xml/api-index-deprecated.xml"><xi:fallback /></xi:include>
+  </index>
+
+  <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
+</book>
diff --git a/docs/reference/harfbuzz-overrides.txt b/docs/reference/harfbuzz-overrides.txt
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/reference/harfbuzz-sections.txt b/docs/reference/harfbuzz-sections.txt
new file mode 100644 (file)
index 0000000..b112047
--- /dev/null
@@ -0,0 +1,501 @@
+<SECTION>
+<FILE>hb</FILE>
+<SUBSECTION Private>
+HB_H_IN
+</SECTION>
+
+<SECTION>
+<FILE>hb-blob</FILE>
+hb_blob_create
+hb_blob_create_sub_blob
+hb_blob_destroy
+hb_blob_get_data
+hb_blob_get_data_writable
+hb_blob_get_empty
+hb_blob_get_length
+hb_blob_get_user_data
+hb_blob_is_immutable
+hb_blob_make_immutable
+hb_blob_reference
+hb_blob_set_user_data
+hb_blob_t
+hb_memory_mode_t
+</SECTION>
+
+<SECTION>
+<FILE>hb-buffer</FILE>
+HB_SEGMENT_PROPERTIES_DEFAULT
+hb_buffer_add
+hb_buffer_add_utf16
+hb_buffer_add_utf32
+hb_buffer_add_utf8
+hb_buffer_add_codepoints
+hb_buffer_allocation_successful
+hb_buffer_clear_contents
+hb_buffer_content_type_t
+hb_buffer_create
+hb_buffer_deserialize_glyphs
+hb_buffer_destroy
+hb_buffer_flags_t
+hb_buffer_get_content_type
+hb_buffer_get_direction
+hb_buffer_get_empty
+hb_buffer_get_flags
+hb_buffer_get_glyph_infos
+hb_buffer_get_glyph_positions
+hb_buffer_get_language
+hb_buffer_get_length
+hb_buffer_get_replacement_codepoint
+hb_buffer_get_script
+hb_buffer_get_segment_properties
+hb_buffer_get_unicode_funcs
+hb_buffer_get_user_data
+hb_buffer_guess_segment_properties
+hb_buffer_normalize_glyphs
+hb_buffer_pre_allocate
+hb_buffer_reference
+hb_buffer_reset
+hb_buffer_reverse
+hb_buffer_reverse_clusters
+hb_buffer_serialize_flags_t
+hb_buffer_serialize_format_from_string
+hb_buffer_serialize_format_t
+hb_buffer_serialize_format_to_string
+hb_buffer_serialize_glyphs
+hb_buffer_serialize_list_formats
+hb_buffer_set_content_type
+hb_buffer_set_direction
+hb_buffer_set_flags
+hb_buffer_set_language
+hb_buffer_set_length
+hb_buffer_set_replacement_codepoint
+hb_buffer_set_script
+hb_buffer_set_segment_properties
+hb_buffer_set_unicode_funcs
+hb_buffer_set_user_data
+hb_buffer_t
+hb_glyph_info_t
+hb_glyph_position_t
+hb_segment_properties_equal
+hb_segment_properties_hash
+hb_segment_properties_t
+</SECTION>
+
+<SECTION>
+<FILE>hb-common</FILE>
+HB_DIRECTION_REVERSE
+HB_LANGUAGE_INVALID
+HB_TAG
+HB_TAG_NONE
+HB_TAG_MAX
+HB_UNTAG
+hb_bool_t
+hb_codepoint_t
+hb_destroy_func_t
+hb_direction_from_string
+hb_direction_t
+hb_direction_to_string
+hb_language_from_string
+hb_language_get_default
+hb_language_t
+hb_language_to_string
+hb_mask_t
+hb_position_t
+hb_script_from_iso15924_tag
+hb_script_from_string
+hb_script_get_horizontal_direction
+hb_script_t
+hb_script_to_iso15924_tag
+hb_tag_from_string
+hb_tag_t
+hb_tag_to_string
+hb_user_data_key_t
+hb_var_int_t
+HB_DIRECTION_IS_BACKWARD
+HB_DIRECTION_IS_FORWARD
+HB_DIRECTION_IS_HORIZONTAL
+HB_DIRECTION_IS_VALID
+HB_DIRECTION_IS_VERTICAL
+<SUBSECTION Private>
+HB_BEGIN_DECLS
+HB_END_DECLS
+int16_t
+int32_t
+int64_t
+int8_t
+uint16_t
+uint32_t
+uint64_t
+uint8_t
+</SECTION>
+
+<SECTION>
+<FILE>hb-deprecated</FILE>
+HB_BUFFER_FLAGS_DEFAULT
+HB_BUFFER_SERIALIZE_FLAGS_DEFAULT
+HB_SCRIPT_CANADIAN_ABORIGINAL
+</SECTION>
+
+<SECTION>
+<FILE>hb-coretext</FILE>
+HB_CORETEXT_TAG_MORT
+HB_CORETEXT_TAG_MORX
+hb_coretext_face_create
+hb_coretext_face_get_cg_font
+hb_coretext_font_get_ct_font
+</SECTION>
+
+<SECTION>
+<FILE>hb-face</FILE>
+hb_face_create
+hb_face_create_for_tables
+hb_face_destroy
+hb_face_get_empty
+hb_face_get_glyph_count
+hb_face_get_index
+hb_face_get_upem
+hb_face_get_user_data
+hb_face_is_immutable
+hb_face_make_immutable
+hb_face_reference
+hb_face_reference_blob
+hb_face_reference_table
+hb_face_set_glyph_count
+hb_face_set_index
+hb_face_set_upem
+hb_face_set_user_data
+hb_face_t
+</SECTION>
+
+<SECTION>
+<FILE>hb-font</FILE>
+hb_font_add_glyph_origin_for_direction
+hb_font_create
+hb_font_create_sub_font
+hb_font_destroy
+hb_font_funcs_create
+hb_font_funcs_destroy
+hb_font_funcs_get_empty
+hb_font_funcs_get_user_data
+hb_font_funcs_is_immutable
+hb_font_funcs_make_immutable
+hb_font_funcs_reference
+hb_font_funcs_set_glyph_contour_point_func
+hb_font_funcs_set_glyph_extents_func
+hb_font_funcs_set_glyph_from_name_func
+hb_font_funcs_set_glyph_func
+hb_font_funcs_set_glyph_h_advance_func
+hb_font_funcs_set_glyph_h_kerning_func
+hb_font_funcs_set_glyph_h_origin_func
+hb_font_funcs_set_glyph_name_func
+hb_font_funcs_set_glyph_v_advance_func
+hb_font_funcs_set_glyph_v_kerning_func
+hb_font_funcs_set_glyph_v_origin_func
+hb_font_funcs_set_user_data
+hb_font_funcs_t
+hb_font_get_empty
+hb_font_get_face
+hb_font_get_glyph
+hb_font_get_glyph_advance_for_direction
+hb_font_get_glyph_advance_func_t
+hb_font_get_glyph_contour_point
+hb_font_get_glyph_contour_point_for_origin
+hb_font_get_glyph_contour_point_func_t
+hb_font_get_glyph_extents
+hb_font_get_glyph_extents_for_origin
+hb_font_get_glyph_extents_func_t
+hb_font_get_glyph_from_name
+hb_font_get_glyph_from_name_func_t
+hb_font_get_glyph_func_t
+hb_font_get_glyph_h_advance
+hb_font_get_glyph_h_advance_func_t
+hb_font_get_glyph_h_kerning
+hb_font_get_glyph_h_kerning_func_t
+hb_font_get_glyph_h_origin
+hb_font_get_glyph_h_origin_func_t
+hb_font_get_glyph_kerning_for_direction
+hb_font_get_glyph_kerning_func_t
+hb_font_get_glyph_name
+hb_font_get_glyph_name_func_t
+hb_font_get_glyph_origin_for_direction
+hb_font_get_glyph_origin_func_t
+hb_font_get_glyph_v_advance
+hb_font_get_glyph_v_advance_func_t
+hb_font_get_glyph_v_kerning
+hb_font_get_glyph_v_kerning_func_t
+hb_font_get_glyph_v_origin
+hb_font_get_glyph_v_origin_func_t
+hb_font_get_parent
+hb_font_get_ppem
+hb_font_get_scale
+hb_font_get_user_data
+hb_font_glyph_from_string
+hb_font_glyph_to_string
+hb_font_is_immutable
+hb_font_make_immutable
+hb_font_reference
+hb_font_set_funcs
+hb_font_set_funcs_data
+hb_font_set_ppem
+hb_font_set_scale
+hb_font_set_user_data
+hb_font_subtract_glyph_origin_for_direction
+hb_font_t
+hb_reference_table_func_t
+</SECTION>
+
+<SECTION>
+<FILE>hb-ft</FILE>
+hb_ft_face_create
+hb_ft_face_create_cached
+hb_ft_font_create
+hb_ft_font_get_face
+hb_ft_font_set_funcs
+</SECTION>
+
+<SECTION>
+<FILE>hb-glib</FILE>
+hb_glib_get_unicode_funcs
+hb_glib_script_from_script
+hb_glib_script_to_script
+</SECTION>
+
+<SECTION>
+<FILE>hb-gobject</FILE>
+HB_GOBJECT_TYPE_BLOB
+HB_GOBJECT_TYPE_BUFFER
+HB_GOBJECT_TYPE_BUFFER_CONTENT_TYPE
+HB_GOBJECT_TYPE_BUFFER_FLAGS
+HB_GOBJECT_TYPE_BUFFER_SERIALIZE_FLAGS
+HB_GOBJECT_TYPE_BUFFER_SERIALIZE_FORMAT
+HB_GOBJECT_TYPE_DIRECTION
+HB_GOBJECT_TYPE_FACE
+HB_GOBJECT_TYPE_FONT
+HB_GOBJECT_TYPE_FONT_FUNCS
+HB_GOBJECT_TYPE_MEMORY_MODE
+HB_GOBJECT_TYPE_OT_LAYOUT_GLYPH_CLASS
+HB_GOBJECT_TYPE_SCRIPT
+HB_GOBJECT_TYPE_SHAPE_PLAN
+HB_GOBJECT_TYPE_UNICODE_COMBINING_CLASS
+HB_GOBJECT_TYPE_UNICODE_FUNCS
+HB_GOBJECT_TYPE_UNICODE_GENERAL_CATEGORY
+hb_gobject_blob_get_type
+hb_gobject_buffer_content_type_get_type
+hb_gobject_buffer_flags_get_type
+hb_gobject_buffer_get_type
+hb_gobject_buffer_serialize_flags_get_type
+hb_gobject_buffer_serialize_format_get_type
+hb_gobject_direction_get_type
+hb_gobject_face_get_type
+hb_gobject_font_funcs_get_type
+hb_gobject_font_get_type
+hb_gobject_memory_mode_get_type
+hb_gobject_ot_layout_glyph_class_get_type
+hb_gobject_script_get_type
+hb_gobject_shape_plan_get_type
+hb_gobject_unicode_combining_class_get_type
+hb_gobject_unicode_funcs_get_type
+hb_gobject_unicode_general_category_get_type
+<SUBSECTION Private>
+HB_GOBJECT_H_IN
+</SECTION>
+
+<SECTION>
+<FILE>hb-gobject</FILE>
+
+</SECTION>
+
+<SECTION>
+<FILE>hb-graphite2</FILE>
+HB_GRAPHITE2_TAG_SILF
+hb_graphite2_face_get_gr_face
+hb_graphite2_font_get_gr_font
+</SECTION>
+
+<SECTION>
+<FILE>hb-icu</FILE>
+hb_icu_get_unicode_funcs
+hb_icu_script_from_script
+hb_icu_script_to_script
+</SECTION>
+
+<SECTION>
+<FILE>hb-ot</FILE>
+<SUBSECTION Private>
+HB_OT_H_IN
+</SECTION>
+
+<SECTION>
+<FILE>hb-ot-font</FILE>
+hb_ot_font_set_funcs
+</SECTION>
+
+<SECTION>
+<FILE>hb-ot-shape</FILE>
+hb_ot_shape_glyphs_closure
+</SECTION>
+
+<SECTION>
+<FILE>hb-ot-layout</FILE>
+HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX
+HB_OT_LAYOUT_NO_FEATURE_INDEX
+HB_OT_LAYOUT_NO_SCRIPT_INDEX
+HB_OT_TAG_GDEF
+HB_OT_TAG_GPOS
+HB_OT_TAG_GSUB
+hb_ot_layout_collect_lookups
+hb_ot_layout_feature_get_lookups
+hb_ot_layout_get_attach_points
+hb_ot_layout_get_glyph_class
+hb_ot_layout_get_glyphs_in_class
+hb_ot_layout_get_ligature_carets
+hb_ot_layout_get_size_params
+hb_ot_layout_glyph_class_t
+hb_ot_layout_glyph_sequence_func_t
+hb_ot_layout_has_glyph_classes
+hb_ot_layout_has_positioning
+hb_ot_layout_has_substitution
+hb_ot_layout_language_find_feature
+hb_ot_layout_language_get_feature_indexes
+hb_ot_layout_language_get_feature_tags
+hb_ot_layout_language_get_required_feature
+hb_ot_layout_lookup_collect_glyphs
+hb_ot_layout_lookup_substitute_closure
+hb_ot_layout_lookup_would_substitute
+hb_ot_layout_script_find_language
+hb_ot_layout_script_get_language_tags
+hb_ot_layout_table_choose_script
+hb_ot_layout_table_find_script
+hb_ot_layout_table_get_feature_tags
+hb_ot_layout_table_get_script_tags
+hb_ot_layout_table_get_lookup_count
+hb_ot_shape_plan_collect_lookups
+<SUBSECTION Private>
+Xhb_ot_layout_lookup_enumerate_sequences
+Xhb_ot_layout_lookup_position
+Xhb_ot_layout_lookup_substitute
+</SECTION>
+
+<SECTION>
+<FILE>hb-ot-tag</FILE>
+HB_OT_TAG_DEFAULT_LANGUAGE
+HB_OT_TAG_DEFAULT_SCRIPT
+hb_ot_tag_from_language
+hb_ot_tag_to_language
+hb_ot_tag_to_script
+hb_ot_tags_from_script
+</SECTION>
+
+<SECTION>
+<FILE>hb-set</FILE>
+HB_SET_VALUE_INVALID
+hb_set_add
+hb_set_add_range
+hb_set_allocation_successful
+hb_set_clear
+hb_set_create
+hb_set_del
+hb_set_del_range
+hb_set_destroy
+hb_set_get_empty
+hb_set_get_max
+hb_set_get_min
+hb_set_get_population
+hb_set_get_user_data
+hb_set_has
+hb_set_intersect
+hb_set_invert
+hb_set_is_empty
+hb_set_is_equal
+hb_set_next
+hb_set_next_range
+hb_set_reference
+hb_set_set
+hb_set_set_user_data
+hb_set_subtract
+hb_set_symmetric_difference
+hb_set_t
+hb_set_union
+</SECTION>
+
+<SECTION>
+<FILE>hb-shape</FILE>
+hb_feature_from_string
+hb_feature_t
+hb_feature_to_string
+hb_shape
+hb_shape_full
+hb_shape_list_shapers
+</SECTION>
+
+<SECTION>
+<FILE>hb-shape-plan</FILE>
+hb_shape_plan_create
+hb_shape_plan_create_cached
+hb_shape_plan_destroy
+hb_shape_plan_execute
+hb_shape_plan_get_empty
+hb_shape_plan_get_shaper
+hb_shape_plan_get_user_data
+hb_shape_plan_reference
+hb_shape_plan_set_user_data
+hb_shape_plan_t
+</SECTION>
+
+<SECTION>
+<FILE>hb-unicode</FILE>
+HB_UNICODE_MAX_DECOMPOSITION_LEN
+hb_unicode_combining_class
+hb_unicode_combining_class_func_t
+hb_unicode_combining_class_t
+hb_unicode_compose
+hb_unicode_compose_func_t
+hb_unicode_decompose
+hb_unicode_decompose_compatibility
+hb_unicode_decompose_func_t
+hb_unicode_eastasian_width
+hb_unicode_funcs_create
+hb_unicode_funcs_destroy
+hb_unicode_funcs_get_default
+hb_unicode_funcs_get_empty
+hb_unicode_funcs_get_parent
+hb_unicode_funcs_get_user_data
+hb_unicode_funcs_is_immutable
+hb_unicode_funcs_make_immutable
+hb_unicode_funcs_reference
+hb_unicode_funcs_set_combining_class_func
+hb_unicode_funcs_set_compose_func
+hb_unicode_funcs_set_decompose_compatibility_func
+hb_unicode_funcs_set_decompose_func
+hb_unicode_funcs_set_eastasian_width_func
+hb_unicode_funcs_set_general_category_func
+hb_unicode_funcs_set_mirroring_func
+hb_unicode_funcs_set_script_func
+hb_unicode_funcs_set_user_data
+hb_unicode_funcs_t
+hb_unicode_general_category
+hb_unicode_general_category_func_t
+hb_unicode_general_category_t
+hb_unicode_mirroring
+hb_unicode_mirroring_func_t
+hb_unicode_script
+hb_unicode_script_func_t
+</SECTION>
+
+<SECTION>
+<FILE>hb-uniscribe</FILE>
+hb_uniscribe_font_get_hfont
+hb_uniscribe_font_get_logfontw
+</SECTION>
+
+<SECTION>
+<FILE>hb-version</FILE>
+HB_VERSION_CHECK
+HB_VERSION_MAJOR
+HB_VERSION_MICRO
+HB_VERSION_MINOR
+HB_VERSION_STRING
+hb_version
+hb_version_check
+hb_version_string
+</SECTION>
diff --git a/docs/reference/harfbuzz.types b/docs/reference/harfbuzz.types
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/docs/reference/html/annotation-glossary.html b/docs/reference/html/annotation-glossary.html
new file mode 100644 (file)
index 0000000..a78200e
--- /dev/null
@@ -0,0 +1,75 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Annotation Glossary</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="prev" href="deprecated-api-index.html" title="Index of deprecated API">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts"><span id="nav_glossary"><a class="shortcut" href="#glsA">A</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#glsC">C</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#glsD">D</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#glsI">I</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#glsO">O</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#glsS">S</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#glsT">T</a></span></td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
+<td><a accesskey="p" href="deprecated-api-index.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><img src="right-insensitive.png" width="16" height="16" border="0"></td>
+</tr></table>
+<div class="glossary">
+<div class="titlepage"><div><div><h2 class="title">
+<a name="annotation-glossary"></a>Annotation Glossary</h2></div></div></div>
+<a name="glsA"></a><h3 class="title">A</h3>
+<dt>
+<a name="annotation-glossterm-allow-none"></a>allow-none</dt>
+<dd><p>NULL is ok, both for passing and for returning.</p></dd>
+<dt>
+<a name="annotation-glossterm-array"></a>array</dt>
+<dd><p>Parameter points to an array of items.</p></dd>
+<a name="glsC"></a><h3 class="title">C</h3>
+<dt>
+<a name="annotation-glossterm-closure"></a>closure</dt>
+<dd><p>This parameter is a 'user_data', for callbacks; many bindings can pass NULL here.</p></dd>
+<a name="glsD"></a><h3 class="title">D</h3>
+<dt>
+<a name="annotation-glossterm-destroy"></a>destroy</dt>
+<dd><p>This parameter is a 'destroy_data', for callbacks.</p></dd>
+<a name="glsI"></a><h3 class="title">I</h3>
+<dt>
+<a name="annotation-glossterm-inout"></a>inout</dt>
+<dd><p>Parameter for input and for returning results. Default is <acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>.</p></dd>
+<a name="glsO"></a><h3 class="title">O</h3>
+<dt>
+<a name="annotation-glossterm-out"></a>out</dt>
+<dd><p>Parameter for returning results. Default is <acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>.</p></dd>
+<a name="glsS"></a><h3 class="title">S</h3>
+<dt>
+<a name="annotation-glossterm-scope%20notified"></a>scope notified</dt>
+<dd><p>The callback is valid until the GDestroyNotify argument is called.</p></dd>
+<a name="glsT"></a><h3 class="title">T</h3>
+<dt>
+<a name="annotation-glossterm-transfer%20full"></a>transfer full</dt>
+<dd><p>Free data after the code is done.</p></dd>
+<dt>
+<a name="annotation-glossterm-transfer%20none"></a>transfer none</dt>
+<dd><p>Don't free data after the code is done.</p></dd>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/api-index-full.html b/docs/reference/html/api-index-full.html
new file mode 100644 (file)
index 0000000..bb4c5a0
--- /dev/null
@@ -0,0 +1,1449 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>API Index</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="prev" href="object-tree.html" title="Object Hierarchy">
+<link rel="next" href="deprecated-api-index.html" title="Index of deprecated API">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts"><span id="nav_index"><a class="shortcut" href="#idxB">B</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#idxC">C</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#idxD">D</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#idxF">F</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#idxG">G</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#idxI">I</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#idxL">L</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#idxM">M</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#idxO">O</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#idxP">P</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#idxR">R</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#idxS">S</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#idxT">T</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#idxU">U</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#idxV">V</a></span></td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
+<td><a accesskey="p" href="object-tree.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="deprecated-api-index.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="index">
+<div class="titlepage"><div><div><h2 class="title">
+<a name="api-index-full"></a>API Index</h2></div></div></div>
+<a name="idx"></a><a name="idxB"></a><h3 class="title">B</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-create" title="hb_blob_create ()">hb_blob_create</a>, function in <a class="link" href="harfbuzz-hb-blob.html" title="hb-blob">hb-blob</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-create-sub-blob" title="hb_blob_create_sub_blob ()">hb_blob_create_sub_blob</a>, function in <a class="link" href="harfbuzz-hb-blob.html" title="hb-blob">hb-blob</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-destroy" title="hb_blob_destroy ()">hb_blob_destroy</a>, function in <a class="link" href="harfbuzz-hb-blob.html" title="hb-blob">hb-blob</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-get-data" title="hb_blob_get_data ()">hb_blob_get_data</a>, function in <a class="link" href="harfbuzz-hb-blob.html" title="hb-blob">hb-blob</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-get-data-writable" title="hb_blob_get_data_writable ()">hb_blob_get_data_writable</a>, function in <a class="link" href="harfbuzz-hb-blob.html" title="hb-blob">hb-blob</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-get-empty" title="hb_blob_get_empty ()">hb_blob_get_empty</a>, function in <a class="link" href="harfbuzz-hb-blob.html" title="hb-blob">hb-blob</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-get-length" title="hb_blob_get_length ()">hb_blob_get_length</a>, function in <a class="link" href="harfbuzz-hb-blob.html" title="hb-blob">hb-blob</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-get-user-data" title="hb_blob_get_user_data ()">hb_blob_get_user_data</a>, function in <a class="link" href="harfbuzz-hb-blob.html" title="hb-blob">hb-blob</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-is-immutable" title="hb_blob_is_immutable ()">hb_blob_is_immutable</a>, function in <a class="link" href="harfbuzz-hb-blob.html" title="hb-blob">hb-blob</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-make-immutable" title="hb_blob_make_immutable ()">hb_blob_make_immutable</a>, function in <a class="link" href="harfbuzz-hb-blob.html" title="hb-blob">hb-blob</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-reference" title="hb_blob_reference ()">hb_blob_reference</a>, function in <a class="link" href="harfbuzz-hb-blob.html" title="hb-blob">hb-blob</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-set-user-data" title="hb_blob_set_user_data ()">hb_blob_set_user_data</a>, function in <a class="link" href="harfbuzz-hb-blob.html" title="hb-blob">hb-blob</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-t">hb_blob_t</a>, typedef in <a class="link" href="harfbuzz-hb-blob.html" title="hb-blob">hb-blob</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t">hb_bool_t</a>, typedef in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add" title="hb_buffer_add ()">hb_buffer_add</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-codepoints" title="hb_buffer_add_codepoints ()">hb_buffer_add_codepoints</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-utf16" title="hb_buffer_add_utf16 ()">hb_buffer_add_utf16</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-utf32" title="hb_buffer_add_utf32 ()">hb_buffer_add_utf32</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-utf8" title="hb_buffer_add_utf8 ()">hb_buffer_add_utf8</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-allocation-successful" title="hb_buffer_allocation_successful ()">hb_buffer_allocation_successful</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-clear-contents" title="hb_buffer_clear_contents ()">hb_buffer_clear_contents</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-content-type-t" title="enum hb_buffer_content_type_t">hb_buffer_content_type_t</a>, enum in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-create" title="hb_buffer_create ()">hb_buffer_create</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-deserialize-glyphs" title="hb_buffer_deserialize_glyphs ()">hb_buffer_deserialize_glyphs</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-destroy" title="hb_buffer_destroy ()">hb_buffer_destroy</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-deprecated.html#HB-BUFFER-FLAGS-DEFAULT:CAPS" title="HB_BUFFER_FLAGS_DEFAULT">HB_BUFFER_FLAGS_DEFAULT</a>, macro in <a class="link" href="harfbuzz-hb-deprecated.html" title="hb-deprecated">hb-deprecated</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-flags-t" title="enum hb_buffer_flags_t">hb_buffer_flags_t</a>, enum in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-content-type" title="hb_buffer_get_content_type ()">hb_buffer_get_content_type</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-direction" title="hb_buffer_get_direction ()">hb_buffer_get_direction</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-empty" title="hb_buffer_get_empty ()">hb_buffer_get_empty</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-flags" title="hb_buffer_get_flags ()">hb_buffer_get_flags</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-glyph-infos" title="hb_buffer_get_glyph_infos ()">hb_buffer_get_glyph_infos</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-glyph-positions" title="hb_buffer_get_glyph_positions ()">hb_buffer_get_glyph_positions</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-language" title="hb_buffer_get_language ()">hb_buffer_get_language</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-length" title="hb_buffer_get_length ()">hb_buffer_get_length</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-replacement-codepoint" title="hb_buffer_get_replacement_codepoint ()">hb_buffer_get_replacement_codepoint</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-script" title="hb_buffer_get_script ()">hb_buffer_get_script</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-segment-properties" title="hb_buffer_get_segment_properties ()">hb_buffer_get_segment_properties</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-unicode-funcs" title="hb_buffer_get_unicode_funcs ()">hb_buffer_get_unicode_funcs</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-user-data" title="hb_buffer_get_user_data ()">hb_buffer_get_user_data</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-guess-segment-properties" title="hb_buffer_guess_segment_properties ()">hb_buffer_guess_segment_properties</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-normalize-glyphs" title="hb_buffer_normalize_glyphs ()">hb_buffer_normalize_glyphs</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-pre-allocate" title="hb_buffer_pre_allocate ()">hb_buffer_pre_allocate</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-reference" title="hb_buffer_reference ()">hb_buffer_reference</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-reset" title="hb_buffer_reset ()">hb_buffer_reset</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-reverse" title="hb_buffer_reverse ()">hb_buffer_reverse</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-reverse-clusters" title="hb_buffer_reverse_clusters ()">hb_buffer_reverse_clusters</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-deprecated.html#HB-BUFFER-SERIALIZE-FLAGS-DEFAULT:CAPS" title="HB_BUFFER_SERIALIZE_FLAGS_DEFAULT">HB_BUFFER_SERIALIZE_FLAGS_DEFAULT</a>, macro in <a class="link" href="harfbuzz-hb-deprecated.html" title="hb-deprecated">hb-deprecated</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-flags-t" title="enum hb_buffer_serialize_flags_t">hb_buffer_serialize_flags_t</a>, enum in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-from-string" title="hb_buffer_serialize_format_from_string ()">hb_buffer_serialize_format_from_string</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t">hb_buffer_serialize_format_t</a>, enum in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-to-string" title="hb_buffer_serialize_format_to_string ()">hb_buffer_serialize_format_to_string</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-glyphs" title="hb_buffer_serialize_glyphs ()">hb_buffer_serialize_glyphs</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-list-formats" title="hb_buffer_serialize_list_formats ()">hb_buffer_serialize_list_formats</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-content-type" title="hb_buffer_set_content_type ()">hb_buffer_set_content_type</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-direction" title="hb_buffer_set_direction ()">hb_buffer_set_direction</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-flags" title="hb_buffer_set_flags ()">hb_buffer_set_flags</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-language" title="hb_buffer_set_language ()">hb_buffer_set_language</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-length" title="hb_buffer_set_length ()">hb_buffer_set_length</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-replacement-codepoint" title="hb_buffer_set_replacement_codepoint ()">hb_buffer_set_replacement_codepoint</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-script" title="hb_buffer_set_script ()">hb_buffer_set_script</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-segment-properties" title="hb_buffer_set_segment_properties ()">hb_buffer_set_segment_properties</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-unicode-funcs" title="hb_buffer_set_unicode_funcs ()">hb_buffer_set_unicode_funcs</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-user-data" title="hb_buffer_set_user_data ()">hb_buffer_set_user_data</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t">hb_buffer_t</a>, typedef in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<a name="idxC"></a><h3 class="title">C</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t">hb_codepoint_t</a>, typedef in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-coretext.html#hb-coretext-face-create" title="hb_coretext_face_create ()">hb_coretext_face_create</a>, function in <a class="link" href="harfbuzz-hb-coretext.html" title="hb-coretext">hb-coretext</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-coretext.html#hb-coretext-face-get-cg-font" title="hb_coretext_face_get_cg_font ()">hb_coretext_face_get_cg_font</a>, function in <a class="link" href="harfbuzz-hb-coretext.html" title="hb-coretext">hb-coretext</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-coretext.html#hb-coretext-font-get-ct-font" title="hb_coretext_font_get_ct_font ()">hb_coretext_font_get_ct_font</a>, function in <a class="link" href="harfbuzz-hb-coretext.html" title="hb-coretext">hb-coretext</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-coretext.html#HB-CORETEXT-TAG-MORT:CAPS" title="HB_CORETEXT_TAG_MORT">HB_CORETEXT_TAG_MORT</a>, macro in <a class="link" href="harfbuzz-hb-coretext.html" title="hb-coretext">hb-coretext</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-coretext.html#HB-CORETEXT-TAG-MORX:CAPS" title="HB_CORETEXT_TAG_MORX">HB_CORETEXT_TAG_MORX</a>, macro in <a class="link" href="harfbuzz-hb-coretext.html" title="hb-coretext">hb-coretext</a>
+</dt>
+<dd></dd>
+<a name="idxD"></a><h3 class="title">D</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()">hb_destroy_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-direction-from-string" title="hb_direction_from_string ()">hb_direction_from_string</a>, function in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-IS-BACKWARD:CAPS" title="HB_DIRECTION_IS_BACKWARD()">HB_DIRECTION_IS_BACKWARD</a>, macro in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-IS-FORWARD:CAPS" title="HB_DIRECTION_IS_FORWARD()">HB_DIRECTION_IS_FORWARD</a>, macro in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-IS-HORIZONTAL:CAPS" title="HB_DIRECTION_IS_HORIZONTAL()">HB_DIRECTION_IS_HORIZONTAL</a>, macro in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-IS-VALID:CAPS" title="HB_DIRECTION_IS_VALID()">HB_DIRECTION_IS_VALID</a>, macro in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-IS-VERTICAL:CAPS" title="HB_DIRECTION_IS_VERTICAL()">HB_DIRECTION_IS_VERTICAL</a>, macro in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-REVERSE:CAPS" title="HB_DIRECTION_REVERSE()">HB_DIRECTION_REVERSE</a>, macro in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t">hb_direction_t</a>, enum in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-direction-to-string" title="hb_direction_to_string ()">hb_direction_to_string</a>, function in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<a name="idxF"></a><h3 class="title">F</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-create" title="hb_face_create ()">hb_face_create</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-create-for-tables" title="hb_face_create_for_tables ()">hb_face_create_for_tables</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-destroy" title="hb_face_destroy ()">hb_face_destroy</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-get-empty" title="hb_face_get_empty ()">hb_face_get_empty</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-get-glyph-count" title="hb_face_get_glyph_count ()">hb_face_get_glyph_count</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-get-index" title="hb_face_get_index ()">hb_face_get_index</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-get-upem" title="hb_face_get_upem ()">hb_face_get_upem</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-get-user-data" title="hb_face_get_user_data ()">hb_face_get_user_data</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-is-immutable" title="hb_face_is_immutable ()">hb_face_is_immutable</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-make-immutable" title="hb_face_make_immutable ()">hb_face_make_immutable</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-reference" title="hb_face_reference ()">hb_face_reference</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-reference-blob" title="hb_face_reference_blob ()">hb_face_reference_blob</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-reference-table" title="hb_face_reference_table ()">hb_face_reference_table</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-set-glyph-count" title="hb_face_set_glyph_count ()">hb_face_set_glyph_count</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-set-index" title="hb_face_set_index ()">hb_face_set_index</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-set-upem" title="hb_face_set_upem ()">hb_face_set_upem</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-set-user-data" title="hb_face_set_user_data ()">hb_face_set_user_data</a>, function in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-face.html#hb-face-t">hb_face_t</a>, typedef in <a class="link" href="harfbuzz-hb-face.html" title="hb-face">hb-face</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape.html#hb-feature-from-string" title="hb_feature_from_string ()">hb_feature_from_string</a>, function in <a class="link" href="harfbuzz-hb-shape.html" title="hb-shape">hb-shape</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape.html#hb-feature-t-struct" title="hb_feature_t">hb_feature_t</a>, struct in <a class="link" href="harfbuzz-hb-shape.html" title="hb-shape">hb-shape</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape.html#hb-feature-to-string" title="hb_feature_to_string ()">hb_feature_to_string</a>, function in <a class="link" href="harfbuzz-hb-shape.html" title="hb-shape">hb-shape</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-add-glyph-origin-for-direction" title="hb_font_add_glyph_origin_for_direction ()">hb_font_add_glyph_origin_for_direction</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-create" title="hb_font_create ()">hb_font_create</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-create-sub-font" title="hb_font_create_sub_font ()">hb_font_create_sub_font</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-destroy" title="hb_font_destroy ()">hb_font_destroy</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-create" title="hb_font_funcs_create ()">hb_font_funcs_create</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-destroy" title="hb_font_funcs_destroy ()">hb_font_funcs_destroy</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-get-empty" title="hb_font_funcs_get_empty ()">hb_font_funcs_get_empty</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-get-user-data" title="hb_font_funcs_get_user_data ()">hb_font_funcs_get_user_data</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-is-immutable" title="hb_font_funcs_is_immutable ()">hb_font_funcs_is_immutable</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-make-immutable" title="hb_font_funcs_make_immutable ()">hb_font_funcs_make_immutable</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-reference" title="hb_font_funcs_reference ()">hb_font_funcs_reference</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-contour-point-func" title="hb_font_funcs_set_glyph_contour_point_func ()">hb_font_funcs_set_glyph_contour_point_func</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-extents-func" title="hb_font_funcs_set_glyph_extents_func ()">hb_font_funcs_set_glyph_extents_func</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-from-name-func" title="hb_font_funcs_set_glyph_from_name_func ()">hb_font_funcs_set_glyph_from_name_func</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-func" title="hb_font_funcs_set_glyph_func ()">hb_font_funcs_set_glyph_func</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-h-advance-func" title="hb_font_funcs_set_glyph_h_advance_func ()">hb_font_funcs_set_glyph_h_advance_func</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-h-kerning-func" title="hb_font_funcs_set_glyph_h_kerning_func ()">hb_font_funcs_set_glyph_h_kerning_func</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-h-origin-func" title="hb_font_funcs_set_glyph_h_origin_func ()">hb_font_funcs_set_glyph_h_origin_func</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-name-func" title="hb_font_funcs_set_glyph_name_func ()">hb_font_funcs_set_glyph_name_func</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-advance-func" title="hb_font_funcs_set_glyph_v_advance_func ()">hb_font_funcs_set_glyph_v_advance_func</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-kerning-func" title="hb_font_funcs_set_glyph_v_kerning_func ()">hb_font_funcs_set_glyph_v_kerning_func</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-origin-func" title="hb_font_funcs_set_glyph_v_origin_func ()">hb_font_funcs_set_glyph_v_origin_func</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-user-data" title="hb_font_funcs_set_user_data ()">hb_font_funcs_set_user_data</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t">hb_font_funcs_t</a>, typedef in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-empty" title="hb_font_get_empty ()">hb_font_get_empty</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-face" title="hb_font_get_face ()">hb_font_get_face</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph" title="hb_font_get_glyph ()">hb_font_get_glyph</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-advance-for-direction" title="hb_font_get_glyph_advance_for_direction ()">hb_font_get_glyph_advance_for_direction</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-advance-func-t" title="hb_font_get_glyph_advance_func_t ()">hb_font_get_glyph_advance_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-contour-point" title="hb_font_get_glyph_contour_point ()">hb_font_get_glyph_contour_point</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-contour-point-for-origin" title="hb_font_get_glyph_contour_point_for_origin ()">hb_font_get_glyph_contour_point_for_origin</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-contour-point-func-t" title="hb_font_get_glyph_contour_point_func_t ()">hb_font_get_glyph_contour_point_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-extents" title="hb_font_get_glyph_extents ()">hb_font_get_glyph_extents</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-extents-for-origin" title="hb_font_get_glyph_extents_for_origin ()">hb_font_get_glyph_extents_for_origin</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-extents-func-t" title="hb_font_get_glyph_extents_func_t ()">hb_font_get_glyph_extents_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-from-name" title="hb_font_get_glyph_from_name ()">hb_font_get_glyph_from_name</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-from-name-func-t" title="hb_font_get_glyph_from_name_func_t ()">hb_font_get_glyph_from_name_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-func-t" title="hb_font_get_glyph_func_t ()">hb_font_get_glyph_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-h-advance" title="hb_font_get_glyph_h_advance ()">hb_font_get_glyph_h_advance</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-h-advance-func-t" title="hb_font_get_glyph_h_advance_func_t">hb_font_get_glyph_h_advance_func_t</a>, typedef in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-h-kerning" title="hb_font_get_glyph_h_kerning ()">hb_font_get_glyph_h_kerning</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-h-kerning-func-t" title="hb_font_get_glyph_h_kerning_func_t">hb_font_get_glyph_h_kerning_func_t</a>, typedef in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-h-origin" title="hb_font_get_glyph_h_origin ()">hb_font_get_glyph_h_origin</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-h-origin-func-t" title="hb_font_get_glyph_h_origin_func_t">hb_font_get_glyph_h_origin_func_t</a>, typedef in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-kerning-for-direction" title="hb_font_get_glyph_kerning_for_direction ()">hb_font_get_glyph_kerning_for_direction</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-kerning-func-t" title="hb_font_get_glyph_kerning_func_t ()">hb_font_get_glyph_kerning_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-name" title="hb_font_get_glyph_name ()">hb_font_get_glyph_name</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-name-func-t" title="hb_font_get_glyph_name_func_t ()">hb_font_get_glyph_name_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-origin-for-direction" title="hb_font_get_glyph_origin_for_direction ()">hb_font_get_glyph_origin_for_direction</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-origin-func-t" title="hb_font_get_glyph_origin_func_t ()">hb_font_get_glyph_origin_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-v-advance" title="hb_font_get_glyph_v_advance ()">hb_font_get_glyph_v_advance</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-v-advance-func-t" title="hb_font_get_glyph_v_advance_func_t">hb_font_get_glyph_v_advance_func_t</a>, typedef in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-v-kerning" title="hb_font_get_glyph_v_kerning ()">hb_font_get_glyph_v_kerning</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-v-kerning-func-t" title="hb_font_get_glyph_v_kerning_func_t">hb_font_get_glyph_v_kerning_func_t</a>, typedef in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-v-origin" title="hb_font_get_glyph_v_origin ()">hb_font_get_glyph_v_origin</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-v-origin-func-t" title="hb_font_get_glyph_v_origin_func_t">hb_font_get_glyph_v_origin_func_t</a>, typedef in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-parent" title="hb_font_get_parent ()">hb_font_get_parent</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-ppem" title="hb_font_get_ppem ()">hb_font_get_ppem</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-scale" title="hb_font_get_scale ()">hb_font_get_scale</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-user-data" title="hb_font_get_user_data ()">hb_font_get_user_data</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-glyph-from-string" title="hb_font_glyph_from_string ()">hb_font_glyph_from_string</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-glyph-to-string" title="hb_font_glyph_to_string ()">hb_font_glyph_to_string</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-is-immutable" title="hb_font_is_immutable ()">hb_font_is_immutable</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-make-immutable" title="hb_font_make_immutable ()">hb_font_make_immutable</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-reference" title="hb_font_reference ()">hb_font_reference</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-set-funcs" title="hb_font_set_funcs ()">hb_font_set_funcs</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-set-funcs-data" title="hb_font_set_funcs_data ()">hb_font_set_funcs_data</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-set-ppem" title="hb_font_set_ppem ()">hb_font_set_ppem</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-set-scale" title="hb_font_set_scale ()">hb_font_set_scale</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-set-user-data" title="hb_font_set_user_data ()">hb_font_set_user_data</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-subtract-glyph-origin-for-direction" title="hb_font_subtract_glyph_origin_for_direction ()">hb_font_subtract_glyph_origin_for_direction</a>, function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-font-t">hb_font_t</a>, typedef in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ft.html#hb-ft-face-create" title="hb_ft_face_create ()">hb_ft_face_create</a>, function in <a class="link" href="harfbuzz-hb-ft.html" title="hb-ft">hb-ft</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ft.html#hb-ft-face-create-cached" title="hb_ft_face_create_cached ()">hb_ft_face_create_cached</a>, function in <a class="link" href="harfbuzz-hb-ft.html" title="hb-ft">hb-ft</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ft.html#hb-ft-font-create" title="hb_ft_font_create ()">hb_ft_font_create</a>, function in <a class="link" href="harfbuzz-hb-ft.html" title="hb-ft">hb-ft</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ft.html#hb-ft-font-get-face" title="hb_ft_font_get_face ()">hb_ft_font_get_face</a>, function in <a class="link" href="harfbuzz-hb-ft.html" title="hb-ft">hb-ft</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ft.html#hb-ft-font-set-funcs" title="hb_ft_font_set_funcs ()">hb_ft_font_set_funcs</a>, function in <a class="link" href="harfbuzz-hb-ft.html" title="hb-ft">hb-ft</a>
+</dt>
+<dd></dd>
+<a name="idxG"></a><h3 class="title">G</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-glib.html#hb-glib-get-unicode-funcs" title="hb_glib_get_unicode_funcs ()">hb_glib_get_unicode_funcs</a>, function in <a class="link" href="harfbuzz-hb-glib.html" title="hb-glib">hb-glib</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-glib.html#hb-glib-script-from-script" title="hb_glib_script_from_script ()">hb_glib_script_from_script</a>, function in <a class="link" href="harfbuzz-hb-glib.html" title="hb-glib">hb-glib</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-glib.html#hb-glib-script-to-script" title="hb_glib_script_to_script ()">hb_glib_script_to_script</a>, function in <a class="link" href="harfbuzz-hb-glib.html" title="hb-glib">hb-glib</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-info-t-struct" title="hb_glyph_info_t">hb_glyph_info_t</a>, struct in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-position-t-struct" title="hb_glyph_position_t">hb_glyph_position_t</a>, struct in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-graphite2.html#hb-graphite2-face-get-gr-face" title="hb_graphite2_face_get_gr_face ()">hb_graphite2_face_get_gr_face</a>, function in <a class="link" href="harfbuzz-hb-graphite2.html" title="hb-graphite2">hb-graphite2</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-graphite2.html#hb-graphite2-font-get-gr-font" title="hb_graphite2_font_get_gr_font ()">hb_graphite2_font_get_gr_font</a>, function in <a class="link" href="harfbuzz-hb-graphite2.html" title="hb-graphite2">hb-graphite2</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-graphite2.html#HB-GRAPHITE2-TAG-SILF:CAPS" title="HB_GRAPHITE2_TAG_SILF">HB_GRAPHITE2_TAG_SILF</a>, macro in <a class="link" href="harfbuzz-hb-graphite2.html" title="hb-graphite2">hb-graphite2</a>
+</dt>
+<dd></dd>
+<a name="idxI"></a><h3 class="title">I</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-icu.html#hb-icu-get-unicode-funcs" title="hb_icu_get_unicode_funcs ()">hb_icu_get_unicode_funcs</a>, function in <a class="link" href="harfbuzz-hb-icu.html" title="hb-icu">hb-icu</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-icu.html#hb-icu-script-from-script" title="hb_icu_script_from_script ()">hb_icu_script_from_script</a>, function in <a class="link" href="harfbuzz-hb-icu.html" title="hb-icu">hb-icu</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-icu.html#hb-icu-script-to-script" title="hb_icu_script_to_script ()">hb_icu_script_to_script</a>, function in <a class="link" href="harfbuzz-hb-icu.html" title="hb-icu">hb-icu</a>
+</dt>
+<dd></dd>
+<a name="idxL"></a><h3 class="title">L</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-language-from-string" title="hb_language_from_string ()">hb_language_from_string</a>, function in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-language-get-default" title="hb_language_get_default ()">hb_language_get_default</a>, function in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#HB-LANGUAGE-INVALID:CAPS" title="HB_LANGUAGE_INVALID">HB_LANGUAGE_INVALID</a>, macro in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-language-t">hb_language_t</a>, typedef in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-language-to-string" title="hb_language_to_string ()">hb_language_to_string</a>, function in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<a name="idxM"></a><h3 class="title">M</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-mask-t" title="hb_mask_t">hb_mask_t</a>, typedef in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-blob.html#hb-memory-mode-t" title="enum hb_memory_mode_t">hb_memory_mode_t</a>, enum in <a class="link" href="harfbuzz-hb-blob.html" title="hb-blob">hb-blob</a>
+</dt>
+<dd></dd>
+<a name="idxO"></a><h3 class="title">O</h3>
+<dt>
+hb_ot_font_set_funcs, function in hb-ot-font
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-collect-lookups" title="hb_ot_layout_collect_lookups ()">hb_ot_layout_collect_lookups</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#HB-OT-LAYOUT-DEFAULT-LANGUAGE-INDEX:CAPS" title="HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX">HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX</a>, macro in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-feature-get-lookups" title="hb_ot_layout_feature_get_lookups ()">hb_ot_layout_feature_get_lookups</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-get-attach-points" title="hb_ot_layout_get_attach_points ()">hb_ot_layout_get_attach_points</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-get-glyphs-in-class" title="hb_ot_layout_get_glyphs_in_class ()">hb_ot_layout_get_glyphs_in_class</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-get-glyph-class" title="hb_ot_layout_get_glyph_class ()">hb_ot_layout_get_glyph_class</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-get-ligature-carets" title="hb_ot_layout_get_ligature_carets ()">hb_ot_layout_get_ligature_carets</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-get-size-params" title="hb_ot_layout_get_size_params ()">hb_ot_layout_get_size_params</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-glyph-class-t" title="enum hb_ot_layout_glyph_class_t">hb_ot_layout_glyph_class_t</a>, enum in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-glyph-sequence-func-t" title="hb_ot_layout_glyph_sequence_func_t ()">hb_ot_layout_glyph_sequence_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-has-glyph-classes" title="hb_ot_layout_has_glyph_classes ()">hb_ot_layout_has_glyph_classes</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-has-positioning" title="hb_ot_layout_has_positioning ()">hb_ot_layout_has_positioning</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-has-substitution" title="hb_ot_layout_has_substitution ()">hb_ot_layout_has_substitution</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-language-find-feature" title="hb_ot_layout_language_find_feature ()">hb_ot_layout_language_find_feature</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-language-get-feature-indexes" title="hb_ot_layout_language_get_feature_indexes ()">hb_ot_layout_language_get_feature_indexes</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-language-get-feature-tags" title="hb_ot_layout_language_get_feature_tags ()">hb_ot_layout_language_get_feature_tags</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-language-get-required-feature" title="hb_ot_layout_language_get_required_feature ()">hb_ot_layout_language_get_required_feature</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-lookup-collect-glyphs" title="hb_ot_layout_lookup_collect_glyphs ()">hb_ot_layout_lookup_collect_glyphs</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-lookup-substitute-closure" title="hb_ot_layout_lookup_substitute_closure ()">hb_ot_layout_lookup_substitute_closure</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-lookup-would-substitute" title="hb_ot_layout_lookup_would_substitute ()">hb_ot_layout_lookup_would_substitute</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#HB-OT-LAYOUT-NO-FEATURE-INDEX:CAPS" title="HB_OT_LAYOUT_NO_FEATURE_INDEX">HB_OT_LAYOUT_NO_FEATURE_INDEX</a>, macro in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#HB-OT-LAYOUT-NO-SCRIPT-INDEX:CAPS" title="HB_OT_LAYOUT_NO_SCRIPT_INDEX">HB_OT_LAYOUT_NO_SCRIPT_INDEX</a>, macro in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-script-find-language" title="hb_ot_layout_script_find_language ()">hb_ot_layout_script_find_language</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-script-get-language-tags" title="hb_ot_layout_script_get_language_tags ()">hb_ot_layout_script_get_language_tags</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-table-choose-script" title="hb_ot_layout_table_choose_script ()">hb_ot_layout_table_choose_script</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-table-find-script" title="hb_ot_layout_table_find_script ()">hb_ot_layout_table_find_script</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-table-get-feature-tags" title="hb_ot_layout_table_get_feature_tags ()">hb_ot_layout_table_get_feature_tags</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-table-get-lookup-count" title="hb_ot_layout_table_get_lookup_count ()">hb_ot_layout_table_get_lookup_count</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-table-get-script-tags" title="hb_ot_layout_table_get_script_tags ()">hb_ot_layout_table_get_script_tags</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+hb_ot_shape_glyphs_closure, function in hb-ot-shape
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-shape-plan-collect-lookups" title="hb_ot_shape_plan_collect_lookups ()">hb_ot_shape_plan_collect_lookups</a>, function in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-tag.html#hb-ot-tags-from-script" title="hb_ot_tags_from_script ()">hb_ot_tags_from_script</a>, function in <a class="link" href="harfbuzz-hb-ot-tag.html" title="hb-ot-tag">hb-ot-tag</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-tag.html#HB-OT-TAG-DEFAULT-LANGUAGE:CAPS" title="HB_OT_TAG_DEFAULT_LANGUAGE">HB_OT_TAG_DEFAULT_LANGUAGE</a>, macro in <a class="link" href="harfbuzz-hb-ot-tag.html" title="hb-ot-tag">hb-ot-tag</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-tag.html#HB-OT-TAG-DEFAULT-SCRIPT:CAPS" title="HB_OT_TAG_DEFAULT_SCRIPT">HB_OT_TAG_DEFAULT_SCRIPT</a>, macro in <a class="link" href="harfbuzz-hb-ot-tag.html" title="hb-ot-tag">hb-ot-tag</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-tag.html#hb-ot-tag-from-language" title="hb_ot_tag_from_language ()">hb_ot_tag_from_language</a>, function in <a class="link" href="harfbuzz-hb-ot-tag.html" title="hb-ot-tag">hb-ot-tag</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#HB-OT-TAG-GDEF:CAPS" title="HB_OT_TAG_GDEF">HB_OT_TAG_GDEF</a>, macro in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#HB-OT-TAG-GPOS:CAPS" title="HB_OT_TAG_GPOS">HB_OT_TAG_GPOS</a>, macro in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-layout.html#HB-OT-TAG-GSUB:CAPS" title="HB_OT_TAG_GSUB">HB_OT_TAG_GSUB</a>, macro in <a class="link" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">hb-ot-layout</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-tag.html#hb-ot-tag-to-language" title="hb_ot_tag_to_language ()">hb_ot_tag_to_language</a>, function in <a class="link" href="harfbuzz-hb-ot-tag.html" title="hb-ot-tag">hb-ot-tag</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-ot-tag.html#hb-ot-tag-to-script" title="hb_ot_tag_to_script ()">hb_ot_tag_to_script</a>, function in <a class="link" href="harfbuzz-hb-ot-tag.html" title="hb-ot-tag">hb-ot-tag</a>
+</dt>
+<dd></dd>
+<a name="idxP"></a><h3 class="title">P</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t">hb_position_t</a>, typedef in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<a name="idxR"></a><h3 class="title">R</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-font.html#hb-reference-table-func-t" title="hb_reference_table_func_t ()">hb_reference_table_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-font.html" title="hb-font">hb-font</a>
+</dt>
+<dd></dd>
+<a name="idxS"></a><h3 class="title">S</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-deprecated.html#HB-SCRIPT-CANADIAN-ABORIGINAL:CAPS" title="HB_SCRIPT_CANADIAN_ABORIGINAL">HB_SCRIPT_CANADIAN_ABORIGINAL</a>, macro in <a class="link" href="harfbuzz-hb-deprecated.html" title="hb-deprecated">hb-deprecated</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-script-from-iso15924-tag" title="hb_script_from_iso15924_tag ()">hb_script_from_iso15924_tag</a>, function in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-script-from-string" title="hb_script_from_string ()">hb_script_from_string</a>, function in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-script-get-horizontal-direction" title="hb_script_get_horizontal_direction ()">hb_script_get_horizontal_direction</a>, function in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t">hb_script_t</a>, enum in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-script-to-iso15924-tag" title="hb_script_to_iso15924_tag ()">hb_script_to_iso15924_tag</a>, function in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#HB-SEGMENT-PROPERTIES-DEFAULT:CAPS" title="HB_SEGMENT_PROPERTIES_DEFAULT">HB_SEGMENT_PROPERTIES_DEFAULT</a>, macro in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-equal" title="hb_segment_properties_equal ()">hb_segment_properties_equal</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-hash" title="hb_segment_properties_hash ()">hb_segment_properties_hash</a>, function in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t-struct" title="hb_segment_properties_t">hb_segment_properties_t</a>, struct in <a class="link" href="harfbuzz-hb-buffer.html" title="hb-buffer">hb-buffer</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-add" title="hb_set_add ()">hb_set_add</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-add-range" title="hb_set_add_range ()">hb_set_add_range</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-allocation-successful" title="hb_set_allocation_successful ()">hb_set_allocation_successful</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-clear" title="hb_set_clear ()">hb_set_clear</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-create" title="hb_set_create ()">hb_set_create</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-del" title="hb_set_del ()">hb_set_del</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-del-range" title="hb_set_del_range ()">hb_set_del_range</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-destroy" title="hb_set_destroy ()">hb_set_destroy</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-get-empty" title="hb_set_get_empty ()">hb_set_get_empty</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-get-max" title="hb_set_get_max ()">hb_set_get_max</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-get-min" title="hb_set_get_min ()">hb_set_get_min</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-get-population" title="hb_set_get_population ()">hb_set_get_population</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-get-user-data" title="hb_set_get_user_data ()">hb_set_get_user_data</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-has" title="hb_set_has ()">hb_set_has</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-intersect" title="hb_set_intersect ()">hb_set_intersect</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-invert" title="hb_set_invert ()">hb_set_invert</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-is-empty" title="hb_set_is_empty ()">hb_set_is_empty</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-is-equal" title="hb_set_is_equal ()">hb_set_is_equal</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-next" title="hb_set_next ()">hb_set_next</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-next-range" title="hb_set_next_range ()">hb_set_next_range</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-reference" title="hb_set_reference ()">hb_set_reference</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-set" title="hb_set_set ()">hb_set_set</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-set-user-data" title="hb_set_set_user_data ()">hb_set_set_user_data</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-subtract" title="hb_set_subtract ()">hb_set_subtract</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-symmetric-difference" title="hb_set_symmetric_difference ()">hb_set_symmetric_difference</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-t">hb_set_t</a>, typedef in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#hb-set-union" title="hb_set_union ()">hb_set_union</a>, function in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-set.html#HB-SET-VALUE-INVALID:CAPS" title="HB_SET_VALUE_INVALID">HB_SET_VALUE_INVALID</a>, macro in <a class="link" href="harfbuzz-hb-set.html" title="hb-set">hb-set</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape.html#hb-shape" title="hb_shape ()">hb_shape</a>, function in <a class="link" href="harfbuzz-hb-shape.html" title="hb-shape">hb-shape</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape.html#hb-shape-full" title="hb_shape_full ()">hb_shape_full</a>, function in <a class="link" href="harfbuzz-hb-shape.html" title="hb-shape">hb-shape</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape.html#hb-shape-list-shapers" title="hb_shape_list_shapers ()">hb_shape_list_shapers</a>, function in <a class="link" href="harfbuzz-hb-shape.html" title="hb-shape">hb-shape</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-create" title="hb_shape_plan_create ()">hb_shape_plan_create</a>, function in <a class="link" href="harfbuzz-hb-shape-plan.html" title="hb-shape-plan">hb-shape-plan</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-create-cached" title="hb_shape_plan_create_cached ()">hb_shape_plan_create_cached</a>, function in <a class="link" href="harfbuzz-hb-shape-plan.html" title="hb-shape-plan">hb-shape-plan</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-destroy" title="hb_shape_plan_destroy ()">hb_shape_plan_destroy</a>, function in <a class="link" href="harfbuzz-hb-shape-plan.html" title="hb-shape-plan">hb-shape-plan</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-execute" title="hb_shape_plan_execute ()">hb_shape_plan_execute</a>, function in <a class="link" href="harfbuzz-hb-shape-plan.html" title="hb-shape-plan">hb-shape-plan</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-get-empty" title="hb_shape_plan_get_empty ()">hb_shape_plan_get_empty</a>, function in <a class="link" href="harfbuzz-hb-shape-plan.html" title="hb-shape-plan">hb-shape-plan</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-get-shaper" title="hb_shape_plan_get_shaper ()">hb_shape_plan_get_shaper</a>, function in <a class="link" href="harfbuzz-hb-shape-plan.html" title="hb-shape-plan">hb-shape-plan</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-get-user-data" title="hb_shape_plan_get_user_data ()">hb_shape_plan_get_user_data</a>, function in <a class="link" href="harfbuzz-hb-shape-plan.html" title="hb-shape-plan">hb-shape-plan</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-reference" title="hb_shape_plan_reference ()">hb_shape_plan_reference</a>, function in <a class="link" href="harfbuzz-hb-shape-plan.html" title="hb-shape-plan">hb-shape-plan</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-set-user-data" title="hb_shape_plan_set_user_data ()">hb_shape_plan_set_user_data</a>, function in <a class="link" href="harfbuzz-hb-shape-plan.html" title="hb-shape-plan">hb-shape-plan</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t">hb_shape_plan_t</a>, typedef in <a class="link" href="harfbuzz-hb-shape-plan.html" title="hb-shape-plan">hb-shape-plan</a>
+</dt>
+<dd></dd>
+<a name="idxT"></a><h3 class="title">T</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#HB-TAG:CAPS" title="HB_TAG()">HB_TAG</a>, macro in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-tag-from-string" title="hb_tag_from_string ()">hb_tag_from_string</a>, function in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#HB-TAG-MAX:CAPS" title="HB_TAG_MAX">HB_TAG_MAX</a>, macro in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#HB-TAG-NONE:CAPS" title="HB_TAG_NONE">HB_TAG_NONE</a>, macro in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t">hb_tag_t</a>, typedef in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-tag-to-string" title="hb_tag_to_string ()">hb_tag_to_string</a>, function in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<a name="idxU"></a><h3 class="title">U</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-combining-class" title="hb_unicode_combining_class ()">hb_unicode_combining_class</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-combining-class-func-t" title="hb_unicode_combining_class_func_t ()">hb_unicode_combining_class_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-combining-class-t" title="enum hb_unicode_combining_class_t">hb_unicode_combining_class_t</a>, enum in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-compose" title="hb_unicode_compose ()">hb_unicode_compose</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-compose-func-t" title="hb_unicode_compose_func_t ()">hb_unicode_compose_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-decompose" title="hb_unicode_decompose ()">hb_unicode_decompose</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-decompose-compatibility" title="hb_unicode_decompose_compatibility ()">hb_unicode_decompose_compatibility</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-decompose-func-t" title="hb_unicode_decompose_func_t ()">hb_unicode_decompose_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-eastasian-width" title="hb_unicode_eastasian_width ()">hb_unicode_eastasian_width</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-create" title="hb_unicode_funcs_create ()">hb_unicode_funcs_create</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-destroy" title="hb_unicode_funcs_destroy ()">hb_unicode_funcs_destroy</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-get-default" title="hb_unicode_funcs_get_default ()">hb_unicode_funcs_get_default</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-get-empty" title="hb_unicode_funcs_get_empty ()">hb_unicode_funcs_get_empty</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-get-parent" title="hb_unicode_funcs_get_parent ()">hb_unicode_funcs_get_parent</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-get-user-data" title="hb_unicode_funcs_get_user_data ()">hb_unicode_funcs_get_user_data</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-is-immutable" title="hb_unicode_funcs_is_immutable ()">hb_unicode_funcs_is_immutable</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-make-immutable" title="hb_unicode_funcs_make_immutable ()">hb_unicode_funcs_make_immutable</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-reference" title="hb_unicode_funcs_reference ()">hb_unicode_funcs_reference</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-combining-class-func" title="hb_unicode_funcs_set_combining_class_func ()">hb_unicode_funcs_set_combining_class_func</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-compose-func" title="hb_unicode_funcs_set_compose_func ()">hb_unicode_funcs_set_compose_func</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-decompose-compatibility-func" title="hb_unicode_funcs_set_decompose_compatibility_func ()">hb_unicode_funcs_set_decompose_compatibility_func</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-decompose-func" title="hb_unicode_funcs_set_decompose_func ()">hb_unicode_funcs_set_decompose_func</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-eastasian-width-func" title="hb_unicode_funcs_set_eastasian_width_func ()">hb_unicode_funcs_set_eastasian_width_func</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-general-category-func" title="hb_unicode_funcs_set_general_category_func ()">hb_unicode_funcs_set_general_category_func</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-mirroring-func" title="hb_unicode_funcs_set_mirroring_func ()">hb_unicode_funcs_set_mirroring_func</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-script-func" title="hb_unicode_funcs_set_script_func ()">hb_unicode_funcs_set_script_func</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-user-data" title="hb_unicode_funcs_set_user_data ()">hb_unicode_funcs_set_user_data</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t">hb_unicode_funcs_t</a>, typedef in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-general-category" title="hb_unicode_general_category ()">hb_unicode_general_category</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-general-category-func-t" title="hb_unicode_general_category_func_t ()">hb_unicode_general_category_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-general-category-t" title="enum hb_unicode_general_category_t">hb_unicode_general_category_t</a>, enum in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#HB-UNICODE-MAX-DECOMPOSITION-LEN:CAPS" title="HB_UNICODE_MAX_DECOMPOSITION_LEN">HB_UNICODE_MAX_DECOMPOSITION_LEN</a>, macro in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-mirroring" title="hb_unicode_mirroring ()">hb_unicode_mirroring</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-mirroring-func-t" title="hb_unicode_mirroring_func_t ()">hb_unicode_mirroring_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-script" title="hb_unicode_script ()">hb_unicode_script</a>, function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-script-func-t" title="hb_unicode_script_func_t ()">hb_unicode_script_func_t</a>, user_function in <a class="link" href="harfbuzz-hb-unicode.html" title="hb-unicode">hb-unicode</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-uniscribe.html#hb-uniscribe-font-get-hfont" title="hb_uniscribe_font_get_hfont ()">hb_uniscribe_font_get_hfont</a>, function in <a class="link" href="harfbuzz-hb-uniscribe.html" title="hb-uniscribe">hb-uniscribe</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-uniscribe.html#hb-uniscribe-font-get-logfontw" title="hb_uniscribe_font_get_logfontw ()">hb_uniscribe_font_get_logfontw</a>, function in <a class="link" href="harfbuzz-hb-uniscribe.html" title="hb-uniscribe">hb-uniscribe</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#HB-UNTAG:CAPS" title="HB_UNTAG()">HB_UNTAG</a>, macro in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t-struct" title="hb_user_data_key_t">hb_user_data_key_t</a>, struct in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<a name="idxV"></a><h3 class="title">V</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-common.html#hb-var-int-t" title="hb_var_int_t">hb_var_int_t</a>, union in <a class="link" href="harfbuzz-hb-common.html" title="hb-common">hb-common</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-version.html#hb-version" title="hb_version ()">hb_version</a>, function in <a class="link" href="harfbuzz-hb-version.html" title="hb-version">hb-version</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-version.html#HB-VERSION-MAJOR:CAPS" title="HB_VERSION_MAJOR">HB_VERSION_MAJOR</a>, macro in <a class="link" href="harfbuzz-hb-version.html" title="hb-version">hb-version</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-version.html#HB-VERSION-MICRO:CAPS" title="HB_VERSION_MICRO">HB_VERSION_MICRO</a>, macro in <a class="link" href="harfbuzz-hb-version.html" title="hb-version">hb-version</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-version.html#HB-VERSION-MINOR:CAPS" title="HB_VERSION_MINOR">HB_VERSION_MINOR</a>, macro in <a class="link" href="harfbuzz-hb-version.html" title="hb-version">hb-version</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-version.html#HB-VERSION-STRING:CAPS" title="HB_VERSION_STRING">HB_VERSION_STRING</a>, macro in <a class="link" href="harfbuzz-hb-version.html" title="hb-version">hb-version</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-version.html#hb-version-string" title="hb_version_string ()">hb_version_string</a>, function in <a class="link" href="harfbuzz-hb-version.html" title="hb-version">hb-version</a>
+</dt>
+<dd></dd>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/ch01.html b/docs/reference/html/ch01.html
new file mode 100644 (file)
index 0000000..58329ec
--- /dev/null
@@ -0,0 +1,98 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>[Insert title here]</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="prev" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="next" href="harfbuzz-hb.html" title="hb">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts"></td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
+<td><a accesskey="p" href="index.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="chapter">
+<div class="titlepage"><div><div><h2 class="title">
+<a name="idp8266576"></a>[Insert title here]</h2></div></div></div>
+<div class="toc"><dl>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb.html">hb</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-common.html">hb-common</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-unicode.html">hb-unicode</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-buffer.html">hb-buffer</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-blob.html">hb-blob</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-face.html">hb-face</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-font.html">hb-font</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-shape.html">hb-shape</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-version.html">hb-version</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-deprecated.html">hb-deprecated</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-set.html">hb-set</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-ot.html">hb-ot</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-ot-layout.html">hb-ot-layout</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-ot-tag.html">hb-ot-tag</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-shape-plan.html">hb-shape-plan</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-glib.html">hb-glib</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-icu.html">hb-icu</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-ft.html">hb-ft</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-graphite2.html">hb-graphite2</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-uniscribe.html">hb-uniscribe</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-coretext.html">hb-coretext</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-gobject.html">hb-gobject</a></span><span class="refpurpose"></span>
+</dt>
+</dl></div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/deprecated-api-index.html b/docs/reference/html/deprecated-api-index.html
new file mode 100644 (file)
index 0000000..3ccc21a
--- /dev/null
@@ -0,0 +1,46 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Index of deprecated API</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="prev" href="api-index-full.html" title="API Index">
+<link rel="next" href="annotation-glossary.html" title="Annotation Glossary">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts"><span id="nav_index"><a class="shortcut" href="#idxB">B</a>
+                     <span class="dim">|</span> 
+                  <a class="shortcut" href="#idxS">S</a></span></td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
+<td><a accesskey="p" href="api-index-full.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="annotation-glossary.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="index">
+<div class="titlepage"><div><div><h2 class="title">
+<a name="deprecated-api-index"></a>Index of deprecated API</h2></div></div></div>
+<a name="idx"></a><a name="idxB"></a><h3 class="title">B</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-deprecated.html#HB-BUFFER-FLAGS-DEFAULT:CAPS" title="HB_BUFFER_FLAGS_DEFAULT">HB_BUFFER_FLAGS_DEFAULT</a>, macro in <a class="link" href="harfbuzz-hb-deprecated.html" title="hb-deprecated">hb-deprecated</a>
+</dt>
+<dd></dd>
+<dt>
+<a class="link" href="harfbuzz-hb-deprecated.html#HB-BUFFER-SERIALIZE-FLAGS-DEFAULT:CAPS" title="HB_BUFFER_SERIALIZE_FLAGS_DEFAULT">HB_BUFFER_SERIALIZE_FLAGS_DEFAULT</a>, macro in <a class="link" href="harfbuzz-hb-deprecated.html" title="hb-deprecated">hb-deprecated</a>
+</dt>
+<dd></dd>
+<a name="idxS"></a><h3 class="title">S</h3>
+<dt>
+<a class="link" href="harfbuzz-hb-deprecated.html#HB-SCRIPT-CANADIAN-ABORIGINAL:CAPS" title="HB_SCRIPT_CANADIAN_ABORIGINAL">HB_SCRIPT_CANADIAN_ABORIGINAL</a>, macro in <a class="link" href="harfbuzz-hb-deprecated.html" title="hb-deprecated">hb-deprecated</a>
+</dt>
+<dd></dd>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-blob.html b/docs/reference/html/harfbuzz-hb-blob.html
new file mode 100644 (file)
index 0000000..00f828d
--- /dev/null
@@ -0,0 +1,610 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-blob</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-buffer.html" title="hb-buffer">
+<link rel="next" href="harfbuzz-hb-face.html" title="hb-face">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-blob.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-blob.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-buffer.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-face.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-blob"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-blob.top_of_page"></a>hb-blob</span></h2>
+<p>hb-blob</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-blob.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="returnvalue">hb_blob_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-create" title="hb_blob_create ()">hb_blob_create</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="returnvalue">hb_blob_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-create-sub-blob" title="hb_blob_create_sub_blob ()">hb_blob_create_sub_blob</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-destroy" title="hb_blob_destroy ()">hb_blob_destroy</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">const <span class="returnvalue">char</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-get-data" title="hb_blob_get_data ()">hb_blob_get_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">char</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-get-data-writable" title="hb_blob_get_data_writable ()">hb_blob_get_data_writable</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="returnvalue">hb_blob_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-get-empty" title="hb_blob_get_empty ()">hb_blob_get_empty</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-get-length" title="hb_blob_get_length ()">hb_blob_get_length</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-get-user-data" title="hb_blob_get_user_data ()">hb_blob_get_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-is-immutable" title="hb_blob_is_immutable ()">hb_blob_is_immutable</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-make-immutable" title="hb_blob_make_immutable ()">hb_blob_make_immutable</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="returnvalue">hb_blob_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-reference" title="hb_blob_reference ()">hb_blob_reference</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-set-user-data" title="hb_blob_set_user_data ()">hb_blob_set_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<a name="hb-blob-t"></a><div class="refsect1">
+<a name="harfbuzz-hb-blob.other"></a><h2>Types and Values</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="name">
+<col class="description">
+</colgroup>
+<tbody>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t">hb_blob_t</a></td>
+</tr>
+<tr>
+<td class="datatype_keyword">enum</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-blob.html#hb-memory-mode-t" title="enum hb_memory_mode_t">hb_memory_mode_t</a></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-blob.object-hierarchy"></a><h2>Object Hierarchy</h2>
+<pre class="screen">    GBoxed
+    <span class="lineart">╰──</span> hb_blob_t
+    GEnum
+    <span class="lineart">╰──</span> hb_memory_mode_t
+</pre>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-blob.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-blob.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="hb-blob-create"></a><h3>hb_blob_create ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="returnvalue">hb_blob_t</span></a> *
+hb_blob_create (<em class="parameter"><code>const <span class="type">char</span> *data</code></em>,
+                <em class="parameter"><code>unsigned <span class="type">int</span> length</code></em>,
+                <em class="parameter"><code><a class="link" href="harfbuzz-hb-blob.html#hb-memory-mode-t" title="enum hb_memory_mode_t"><span class="type">hb_memory_mode_t</span></a> mode</code></em>,
+                <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp8155232"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-blob-create-sub-blob"></a><h3>hb_blob_create_sub_blob ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="returnvalue">hb_blob_t</span></a> *
+hb_blob_create_sub_blob (<em class="parameter"><code><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="type">hb_blob_t</span></a> *parent</code></em>,
+                         <em class="parameter"><code>unsigned <span class="type">int</span> offset</code></em>,
+                         <em class="parameter"><code>unsigned <span class="type">int</span> length</code></em>);</pre>
+<p>Returns a blob that represents a range of bytes in <em class="parameter"><code>parent</code></em>
+.  The new
+blob is always created with <a class="link" href="harfbuzz-hb-blob.html#HB-MEMORY-MODE-READONLY:CAPS"><code class="literal">HB_MEMORY_MODE_READONLY</code></a>, meaning that it
+will never modify data in the parent blob.  The parent data is not
+expected to be modified, and will result in undefined behavior if it
+is.</p>
+<p>Makes <em class="parameter"><code>parent</code></em>
+ immutable.</p>
+<div class="refsect3">
+<a name="idp17402736"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>parent</p></td>
+<td class="parameter_description"><p>Parent blob.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>offset</p></td>
+<td class="parameter_description"><p>Start offset of sub-blob within <em class="parameter"><code>parent</code></em>
+, in bytes.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>length</p></td>
+<td class="parameter_description"><p>Length of sub-blob.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp17140192"></a><h4>Returns</h4>
+<p> New blob, or the empty blob if something failed or if
+<em class="parameter"><code>length</code></em>
+is zero or <em class="parameter"><code>offset</code></em>
+is beyond the end of <em class="parameter"><code>parent</code></em>
+'s data.  Destroy
+with <a class="link" href="harfbuzz-hb-blob.html#hb-blob-destroy" title="hb_blob_destroy ()"><code class="function">hb_blob_destroy()</code></a>.</p>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-blob-destroy"></a><h3>hb_blob_destroy ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_blob_destroy (<em class="parameter"><code><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="type">hb_blob_t</span></a> *blob</code></em>);</pre>
+<p>Descreases the reference count on <em class="parameter"><code>blob</code></em>
+, and if it reaches zero, destroys
+<em class="parameter"><code>blob</code></em>
+, freeing all memory, possibly calling the destroy-callback the blob
+was created for if it has not been called already.</p>
+<p>See TODO:link object types for more information.</p>
+<div class="refsect3">
+<a name="idp18089520"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>blob</p></td>
+<td class="parameter_description"><p>a blob.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-blob-get-data"></a><h3>hb_blob_get_data ()</h3>
+<pre class="programlisting">const <span class="returnvalue">char</span> *
+hb_blob_get_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="type">hb_blob_t</span></a> *blob</code></em>,
+                  <em class="parameter"><code>unsigned <span class="type">int</span> *length</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21534832"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>blob</p></td>
+<td class="parameter_description"><p>a blob.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>length</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp21133808"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=length]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-blob-get-data-writable"></a><h3>hb_blob_get_data_writable ()</h3>
+<pre class="programlisting"><span class="returnvalue">char</span> *
+hb_blob_get_data_writable (<em class="parameter"><code><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="type">hb_blob_t</span></a> *blob</code></em>,
+                           <em class="parameter"><code>unsigned <span class="type">int</span> *length</code></em>);</pre>
+<p>Tries to make blob data writable (possibly copying it) and
+return pointer to data.</p>
+<p>Fails if blob has been made immutable, or if memory allocation
+fails.</p>
+<div class="refsect3">
+<a name="idp21147760"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>blob</p></td>
+<td class="parameter_description"><p>a blob.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>length</p></td>
+<td class="parameter_description"><p> output length of the writable data. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp21159888"></a><h4>Returns</h4>
+<p> Writable blob data,
+or <code class="literal">NULL</code> if failed. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=length]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-blob-get-empty"></a><h3>hb_blob_get_empty ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="returnvalue">hb_blob_t</span></a> *
+hb_blob_get_empty (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<p>Returns the singleton empty blob.</p>
+<p>See TODO:link object types for more information.</p>
+<div class="refsect3">
+<a name="idp21172704"></a><h4>Returns</h4>
+<p> the empty blob. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-blob-get-length"></a><h3>hb_blob_get_length ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_blob_get_length (<em class="parameter"><code><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="type">hb_blob_t</span></a> *blob</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21183504"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>blob</p></td>
+<td class="parameter_description"><p>a blob.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp21191904"></a><h4>Returns</h4>
+<p> the length of blob data in bytes.</p>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-blob-get-user-data"></a><h3>hb_blob_get_user_data ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span> *
+hb_blob_get_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="type">hb_blob_t</span></a> *blob</code></em>,
+                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21203104"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>blob</p></td>
+<td class="parameter_description"><p>a blob.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>key</p></td>
+<td class="parameter_description"><p>key for data to get.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp21214112"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-blob-is-immutable"></a><h3>hb_blob_is_immutable ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_blob_is_immutable (<em class="parameter"><code><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="type">hb_blob_t</span></a> *blob</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21224768"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>blob</p></td>
+<td class="parameter_description"><p>a blob.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp21233168"></a><h4>Returns</h4>
+<p> TODO</p>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-blob-make-immutable"></a><h3>hb_blob_make_immutable ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_blob_make_immutable (<em class="parameter"><code><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="type">hb_blob_t</span></a> *blob</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21242720"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>blob</p></td>
+<td class="parameter_description"><p>a blob.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-blob-reference"></a><h3>hb_blob_reference ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="returnvalue">hb_blob_t</span></a> *
+hb_blob_reference (<em class="parameter"><code><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="type">hb_blob_t</span></a> *blob</code></em>);</pre>
+<p>Increases the reference count on <em class="parameter"><code>blob</code></em>
+.</p>
+<p>See TODO:link object types for more information.</p>
+<div class="refsect3">
+<a name="idp21260576"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>blob</p></td>
+<td class="parameter_description"><p>a blob.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp21268976"></a><h4>Returns</h4>
+<p> <em class="parameter"><code>blob</code></em>
+.</p>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-blob-set-user-data"></a><h3>hb_blob_set_user_data ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_blob_set_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="type">hb_blob_t</span></a> *blob</code></em>,
+                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>,
+                       <em class="parameter"><code><span class="type">void</span> *data</code></em>,
+                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>,
+                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="type">hb_bool_t</span></a> replace</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21285920"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>blob</p></td>
+<td class="parameter_description"><p>a blob.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>key</p></td>
+<td class="parameter_description"><p>key for data to set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>data</p></td>
+<td class="parameter_description"><p>data to set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>destroy</p></td>
+<td class="parameter_description"><p>callback to call when <em class="parameter"><code>data</code></em>
+is not needed anymore.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>replace</p></td>
+<td class="parameter_description"><p>whether to replace an existing data with the same key.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp21305600"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-blob.other_details"></a><h2>Types and Values</h2>
+<div class="refsect2">
+<a name="hb-blob-t"></a><h3>hb_blob_t</h3>
+<pre class="programlisting">typedef struct hb_blob_t hb_blob_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-memory-mode-t"></a><h3>enum hb_memory_mode_t</h3>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp21317472"></a><h4>Members</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="300px" class="enum_members_name">
+<col class="enum_members_description">
+<col width="200px" class="enum_members_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="enum_member_name"><p><a name="HB-MEMORY-MODE-DUPLICATE:CAPS"></a>HB_MEMORY_MODE_DUPLICATE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-MEMORY-MODE-READONLY:CAPS"></a>HB_MEMORY_MODE_READONLY</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-MEMORY-MODE-WRITABLE:CAPS"></a>HB_MEMORY_MODE_WRITABLE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-MEMORY-MODE-READONLY-MAY-MAKE-WRITABLE:CAPS"></a>HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+</div>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-buffer.html b/docs/reference/html/harfbuzz-hb-buffer.html
new file mode 100644 (file)
index 0000000..a4214dd
--- /dev/null
@@ -0,0 +1,1780 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-buffer</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-unicode.html" title="hb-unicode">
+<link rel="next" href="harfbuzz-hb-blob.html" title="hb-blob">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-buffer.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-buffer.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-unicode.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-blob.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-buffer"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-buffer.top_of_page"></a>hb-buffer</span></h2>
+<p>hb-buffer</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-buffer.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add" title="hb_buffer_add ()">hb_buffer_add</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-utf16" title="hb_buffer_add_utf16 ()">hb_buffer_add_utf16</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-utf32" title="hb_buffer_add_utf32 ()">hb_buffer_add_utf32</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-utf8" title="hb_buffer_add_utf8 ()">hb_buffer_add_utf8</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-add-codepoints" title="hb_buffer_add_codepoints ()">hb_buffer_add_codepoints</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-allocation-successful" title="hb_buffer_allocation_successful ()">hb_buffer_allocation_successful</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-clear-contents" title="hb_buffer_clear_contents ()">hb_buffer_clear_contents</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="returnvalue">hb_buffer_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-create" title="hb_buffer_create ()">hb_buffer_create</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-deserialize-glyphs" title="hb_buffer_deserialize_glyphs ()">hb_buffer_deserialize_glyphs</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-destroy" title="hb_buffer_destroy ()">hb_buffer_destroy</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-content-type-t" title="enum hb_buffer_content_type_t"><span class="returnvalue">hb_buffer_content_type_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-content-type" title="hb_buffer_get_content_type ()">hb_buffer_get_content_type</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="returnvalue">hb_direction_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-direction" title="hb_buffer_get_direction ()">hb_buffer_get_direction</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="returnvalue">hb_buffer_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-empty" title="hb_buffer_get_empty ()">hb_buffer_get_empty</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-flags-t" title="enum hb_buffer_flags_t"><span class="returnvalue">hb_buffer_flags_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-flags" title="hb_buffer_get_flags ()">hb_buffer_get_flags</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-info-t"><span class="returnvalue">hb_glyph_info_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-glyph-infos" title="hb_buffer_get_glyph_infos ()">hb_buffer_get_glyph_infos</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-position-t"><span class="returnvalue">hb_glyph_position_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-glyph-positions" title="hb_buffer_get_glyph_positions ()">hb_buffer_get_glyph_positions</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-language-t"><span class="returnvalue">hb_language_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-language" title="hb_buffer_get_language ()">hb_buffer_get_language</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-length" title="hb_buffer_get_length ()">hb_buffer_get_length</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="returnvalue">hb_codepoint_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-replacement-codepoint" title="hb_buffer_get_replacement_codepoint ()">hb_buffer_get_replacement_codepoint</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-script" title="hb_buffer_get_script ()">hb_buffer_get_script</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-segment-properties" title="hb_buffer_get_segment_properties ()">hb_buffer_get_segment_properties</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-unicode-funcs" title="hb_buffer_get_unicode_funcs ()">hb_buffer_get_unicode_funcs</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-get-user-data" title="hb_buffer_get_user_data ()">hb_buffer_get_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-guess-segment-properties" title="hb_buffer_guess_segment_properties ()">hb_buffer_guess_segment_properties</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-normalize-glyphs" title="hb_buffer_normalize_glyphs ()">hb_buffer_normalize_glyphs</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-pre-allocate" title="hb_buffer_pre_allocate ()">hb_buffer_pre_allocate</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="returnvalue">hb_buffer_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-reference" title="hb_buffer_reference ()">hb_buffer_reference</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-reset" title="hb_buffer_reset ()">hb_buffer_reset</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-reverse" title="hb_buffer_reverse ()">hb_buffer_reverse</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-reverse-clusters" title="hb_buffer_reverse_clusters ()">hb_buffer_reverse_clusters</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t"><span class="returnvalue">hb_buffer_serialize_format_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-from-string" title="hb_buffer_serialize_format_from_string ()">hb_buffer_serialize_format_from_string</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">const <span class="returnvalue">char</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-to-string" title="hb_buffer_serialize_format_to_string ()">hb_buffer_serialize_format_to_string</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-glyphs" title="hb_buffer_serialize_glyphs ()">hb_buffer_serialize_glyphs</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">const <span class="returnvalue">char</span> **
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-list-formats" title="hb_buffer_serialize_list_formats ()">hb_buffer_serialize_list_formats</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-content-type" title="hb_buffer_set_content_type ()">hb_buffer_set_content_type</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-direction" title="hb_buffer_set_direction ()">hb_buffer_set_direction</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-flags" title="hb_buffer_set_flags ()">hb_buffer_set_flags</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-language" title="hb_buffer_set_language ()">hb_buffer_set_language</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-length" title="hb_buffer_set_length ()">hb_buffer_set_length</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-replacement-codepoint" title="hb_buffer_set_replacement_codepoint ()">hb_buffer_set_replacement_codepoint</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-script" title="hb_buffer_set_script ()">hb_buffer_set_script</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-segment-properties" title="hb_buffer_set_segment_properties ()">hb_buffer_set_segment_properties</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-unicode-funcs" title="hb_buffer_set_unicode_funcs ()">hb_buffer_set_unicode_funcs</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-set-user-data" title="hb_buffer_set_user_data ()">hb_buffer_set_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-equal" title="hb_segment_properties_equal ()">hb_segment_properties_equal</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-hash" title="hb_segment_properties_hash ()">hb_segment_properties_hash</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<a name="hb-buffer-t"></a><a name="hb-glyph-info-t"></a><a name="hb-glyph-position-t"></a><a name="hb-segment-properties-t"></a><div class="refsect1">
+<a name="harfbuzz-hb-buffer.other"></a><h2>Types and Values</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="name">
+<col class="description">
+</colgroup>
+<tbody>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#HB-SEGMENT-PROPERTIES-DEFAULT:CAPS" title="HB_SEGMENT_PROPERTIES_DEFAULT">HB_SEGMENT_PROPERTIES_DEFAULT</a></td>
+</tr>
+<tr>
+<td class="datatype_keyword">enum</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-content-type-t" title="enum hb_buffer_content_type_t">hb_buffer_content_type_t</a></td>
+</tr>
+<tr>
+<td class="datatype_keyword">enum</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-flags-t" title="enum hb_buffer_flags_t">hb_buffer_flags_t</a></td>
+</tr>
+<tr>
+<td class="datatype_keyword">enum</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-flags-t" title="enum hb_buffer_serialize_flags_t">hb_buffer_serialize_flags_t</a></td>
+</tr>
+<tr>
+<td class="datatype_keyword">enum</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t">hb_buffer_serialize_format_t</a></td>
+</tr>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t">hb_buffer_t</a></td>
+</tr>
+<tr>
+<td class="datatype_keyword"> </td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-info-t-struct" title="hb_glyph_info_t">hb_glyph_info_t</a></td>
+</tr>
+<tr>
+<td class="datatype_keyword"> </td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-position-t-struct" title="hb_glyph_position_t">hb_glyph_position_t</a></td>
+</tr>
+<tr>
+<td class="datatype_keyword"> </td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t-struct" title="hb_segment_properties_t">hb_segment_properties_t</a></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-buffer.object-hierarchy"></a><h2>Object Hierarchy</h2>
+<pre class="screen">    GBoxed
+    <span class="lineart">├──</span> hb_buffer_t
+    <span class="lineart">├──</span> hb_glyph_info_t
+    <span class="lineart">├──</span> hb_glyph_position_t
+    <span class="lineart">╰──</span> hb_segment_properties_t
+    GEnum
+    <span class="lineart">├──</span> hb_buffer_content_type_t
+    <span class="lineart">╰──</span> hb_buffer_serialize_format_t
+    GFlags
+    <span class="lineart">├──</span> hb_buffer_flags_t
+    <span class="lineart">╰──</span> hb_buffer_serialize_flags_t
+</pre>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-buffer.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-buffer.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="hb-buffer-add"></a><h3>hb_buffer_add ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_add (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+               <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> codepoint</code></em>,
+               <em class="parameter"><code>unsigned <span class="type">int</span> cluster</code></em>);</pre>
+<div class="refsect3">
+<a name="idp20929456"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-add-utf16"></a><h3>hb_buffer_add_utf16 ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_add_utf16 (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                     <em class="parameter"><code>const <span class="type">uint16_t</span> *text</code></em>,
+                     <em class="parameter"><code><span class="type">int</span> text_length</code></em>,
+                     <em class="parameter"><code>unsigned <span class="type">int</span> item_offset</code></em>,
+                     <em class="parameter"><code><span class="type">int</span> item_length</code></em>);</pre>
+<div class="refsect3">
+<a name="idp20952352"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>text</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=text_length]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-add-utf32"></a><h3>hb_buffer_add_utf32 ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_add_utf32 (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                     <em class="parameter"><code>const <span class="type">uint32_t</span> *text</code></em>,
+                     <em class="parameter"><code><span class="type">int</span> text_length</code></em>,
+                     <em class="parameter"><code>unsigned <span class="type">int</span> item_offset</code></em>,
+                     <em class="parameter"><code><span class="type">int</span> item_length</code></em>);</pre>
+<div class="refsect3">
+<a name="idp20978960"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>text</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=text_length]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-add-utf8"></a><h3>hb_buffer_add_utf8 ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_add_utf8 (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                    <em class="parameter"><code>const <span class="type">char</span> *text</code></em>,
+                    <em class="parameter"><code><span class="type">int</span> text_length</code></em>,
+                    <em class="parameter"><code>unsigned <span class="type">int</span> item_offset</code></em>,
+                    <em class="parameter"><code><span class="type">int</span> item_length</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21005488"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>text</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=text_length]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-add-codepoints"></a><h3>hb_buffer_add_codepoints ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_add_codepoints (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                          <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *text</code></em>,
+                          <em class="parameter"><code><span class="type">int</span> text_length</code></em>,
+                          <em class="parameter"><code>unsigned <span class="type">int</span> item_offset</code></em>,
+                          <em class="parameter"><code><span class="type">int</span> item_length</code></em>);</pre>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-allocation-successful"></a><h3>hb_buffer_allocation_successful ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_buffer_allocation_successful (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21039872"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp21048272"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-clear-contents"></a><h3>hb_buffer_clear_contents ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_clear_contents (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21057392"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-create"></a><h3>hb_buffer_create ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="returnvalue">hb_buffer_t</span></a> *
+hb_buffer_create (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp21072704"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-deserialize-glyphs"></a><h3>hb_buffer_deserialize_glyphs ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_buffer_deserialize_glyphs (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                              <em class="parameter"><code>const <span class="type">char</span> *buf</code></em>,
+                              <em class="parameter"><code><span class="type">int</span> buf_len</code></em>,
+                              <em class="parameter"><code>const <span class="type">char</span> **end_ptr</code></em>,
+                              <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                              <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t"><span class="type">hb_buffer_serialize_format_t</span></a> format</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21089760"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>buf</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=buf_len]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>end_ptr</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22503936"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-destroy"></a><h3>hb_buffer_destroy ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_destroy (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22511728"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-get-content-type"></a><h3>hb_buffer_get_content_type ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-content-type-t" title="enum hb_buffer_content_type_t"><span class="returnvalue">hb_buffer_content_type_t</span></a>
+hb_buffer_get_content_type (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22525760"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22533264"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-get-direction"></a><h3>hb_buffer_get_direction ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="returnvalue">hb_direction_t</span></a>
+hb_buffer_get_direction (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22541056"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22548560"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-get-empty"></a><h3>hb_buffer_get_empty ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="returnvalue">hb_buffer_t</span></a> *
+hb_buffer_get_empty (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<div class="refsect3">
+<a name="idp22555808"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-get-flags"></a><h3>hb_buffer_get_flags ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-flags-t" title="enum hb_buffer_flags_t"><span class="returnvalue">hb_buffer_flags_t</span></a>
+hb_buffer_get_flags (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22565008"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22572512"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-get-glyph-infos"></a><h3>hb_buffer_get_glyph_infos ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-info-t"><span class="returnvalue">hb_glyph_info_t</span></a> *
+hb_buffer_get_glyph_infos (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                           <em class="parameter"><code>unsigned <span class="type">int</span> *length</code></em>);</pre>
+<p>Returns buffer glyph information array.  Returned pointer
+is valid as long as buffer contents are not modified.</p>
+<div class="refsect3">
+<a name="idp22582256"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>length</p></td>
+<td class="parameter_description"><p> output array length. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22593088"></a><h4>Returns</h4>
+<p> buffer glyph information array. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=length]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-get-glyph-positions"></a><h3>hb_buffer_get_glyph_positions ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-position-t"><span class="returnvalue">hb_glyph_position_t</span></a> *
+hb_buffer_get_glyph_positions (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                               <em class="parameter"><code>unsigned <span class="type">int</span> *length</code></em>);</pre>
+<p>Returns buffer glyph position array.  Returned pointer
+is valid as long as buffer contents are not modified.</p>
+<div class="refsect3">
+<a name="idp22604800"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>length</p></td>
+<td class="parameter_description"><p> output length. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22615632"></a><h4>Returns</h4>
+<p> buffer glyph position array. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=length]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-get-language"></a><h3>hb_buffer_get_language ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-language-t"><span class="returnvalue">hb_language_t</span></a>
+hb_buffer_get_language (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22625264"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22632768"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-get-length"></a><h3>hb_buffer_get_length ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_buffer_get_length (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<p>Returns the number of items in the buffer.</p>
+<div class="refsect3">
+<a name="idp22641136"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22648640"></a><h4>Returns</h4>
+<p> buffer length.</p>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-get-replacement-codepoint"></a><h3>hb_buffer_get_replacement_codepoint ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="returnvalue">hb_codepoint_t</span></a>
+hb_buffer_get_replacement_codepoint (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-get-script"></a><h3>hb_buffer_get_script ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+hb_buffer_get_script (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22663392"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22670896"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-get-segment-properties"></a><h3>hb_buffer_get_segment_properties ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_get_segment_properties (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> *props</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22680064"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-get-unicode-funcs"></a><h3>hb_buffer_get_unicode_funcs ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+hb_buffer_get_unicode_funcs (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22694096"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22701600"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-get-user-data"></a><h3>hb_buffer_get_user_data ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span> *
+hb_buffer_get_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                         <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22710768"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22718272"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-guess-segment-properties"></a><h3>hb_buffer_guess_segment_properties ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_guess_segment_properties (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<p>Sets unset buffer segment properties based on buffer Unicode
+contents.  If buffer is not empty, it must have content type
+<a class="link" href="harfbuzz-hb-buffer.html#HB-BUFFER-CONTENT-TYPE-UNICODE:CAPS"><code class="literal">HB_BUFFER_CONTENT_TYPE_UNICODE</code></a>.</p>
+<p>If buffer script is not set (ie. is <a class="link" href="harfbuzz-hb-common.html#HB-SCRIPT-INVALID:CAPS"><code class="literal">HB_SCRIPT_INVALID</code></a>), it
+will be set to the Unicode script of the first character in
+the buffer that has a script other than <a class="link" href="harfbuzz-hb-common.html#HB-SCRIPT-COMMON:CAPS"><code class="literal">HB_SCRIPT_COMMON</code></a>,
+<a class="link" href="harfbuzz-hb-common.html#HB-SCRIPT-INHERITED:CAPS"><code class="literal">HB_SCRIPT_INHERITED</code></a>, and <a class="link" href="harfbuzz-hb-common.html#HB-SCRIPT-UNKNOWN:CAPS"><code class="literal">HB_SCRIPT_UNKNOWN</code></a>.</p>
+<p>Next, if buffer direction is not set (ie. is <a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-INVALID:CAPS"><code class="literal">HB_DIRECTION_INVALID</code></a>),
+it will be set to the natural horizontal direction of the
+buffer script as returned by <a class="link" href="harfbuzz-hb-common.html#hb-script-get-horizontal-direction" title="hb_script_get_horizontal_direction ()"><code class="function">hb_script_get_horizontal_direction()</code></a>.</p>
+<p>Finally, if buffer language is not set (ie. is <a class="link" href="harfbuzz-hb-common.html#HB-LANGUAGE-INVALID:CAPS" title="HB_LANGUAGE_INVALID"><code class="literal">HB_LANGUAGE_INVALID</code></a>),
+it will be set to the process's default language as returned by
+<a class="link" href="harfbuzz-hb-common.html#hb-language-get-default" title="hb_language_get_default ()"><code class="function">hb_language_get_default()</code></a>.  This may change in the future by
+taking buffer script into consideration when choosing a language.</p>
+<div class="refsect3">
+<a name="idp22738080"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-normalize-glyphs"></a><h3>hb_buffer_normalize_glyphs ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_normalize_glyphs (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22752112"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-pre-allocate"></a><h3>hb_buffer_pre_allocate ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_buffer_pre_allocate (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                        <em class="parameter"><code>unsigned <span class="type">int</span> size</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22767664"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22775168"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-reference"></a><h3>hb_buffer_reference ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="returnvalue">hb_buffer_t</span></a> *
+hb_buffer_reference (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22782960"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22790464"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-reset"></a><h3>hb_buffer_reset ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_reset (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22799664"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-reverse"></a><h3>hb_buffer_reverse ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_reverse (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<p>Reverses buffer contents.</p>
+<div class="refsect3">
+<a name="idp22814128"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-reverse-clusters"></a><h3>hb_buffer_reverse_clusters ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_reverse_clusters (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>);</pre>
+<p>Reverses buffer clusters.  That is, the buffer contents are
+reversed, then each cluster (consecutive items having the
+same cluster number) are reversed again.</p>
+<div class="refsect3">
+<a name="idp22828768"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-serialize-format-from-string"></a><h3>hb_buffer_serialize_format_from_string ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t"><span class="returnvalue">hb_buffer_serialize_format_t</span></a>
+hb_buffer_serialize_format_from_string
+                               (<em class="parameter"><code>const <span class="type">char</span> *str</code></em>,
+                                <em class="parameter"><code><span class="type">int</span> len</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22844320"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-serialize-format-to-string"></a><h3>hb_buffer_serialize_format_to_string ()</h3>
+<pre class="programlisting">const <span class="returnvalue">char</span> *
+hb_buffer_serialize_format_to_string (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t"><span class="type">hb_buffer_serialize_format_t</span></a> format</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22852256"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-serialize-glyphs"></a><h3>hb_buffer_serialize_glyphs ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_buffer_serialize_glyphs (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                            <em class="parameter"><code>unsigned <span class="type">int</span> start</code></em>,
+                            <em class="parameter"><code>unsigned <span class="type">int</span> end</code></em>,
+                            <em class="parameter"><code><span class="type">char</span> *buf</code></em>,
+                            <em class="parameter"><code>unsigned <span class="type">int</span> buf_size</code></em>,
+                            <em class="parameter"><code>unsigned <span class="type">int</span> *buf_consumed</code></em>,
+                            <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                            <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t"><span class="type">hb_buffer_serialize_format_t</span></a> format</code></em>,
+                            <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-flags-t" title="enum hb_buffer_serialize_flags_t"><span class="type">hb_buffer_serialize_flags_t</span></a> flags</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22871776"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>buf</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=buf_size]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>buf_consumed</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22885936"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-serialize-list-formats"></a><h3>hb_buffer_serialize_list_formats ()</h3>
+<pre class="programlisting">const <span class="returnvalue">char</span> **
+hb_buffer_serialize_list_formats (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<div class="refsect3">
+<a name="idp22893328"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-set-content-type"></a><h3>hb_buffer_set_content_type ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_set_content_type (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                            <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-content-type-t" title="enum hb_buffer_content_type_t"><span class="type">hb_buffer_content_type_t</span></a> content_type</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22903904"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-set-direction"></a><h3>hb_buffer_set_direction ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_set_direction (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                         <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="type">hb_direction_t</span></a> direction</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22919312"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-set-flags"></a><h3>hb_buffer_set_flags ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_set_flags (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                     <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-flags-t" title="enum hb_buffer_flags_t"><span class="type">hb_buffer_flags_t</span></a> flags</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22934720"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-set-language"></a><h3>hb_buffer_set_language ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_set_language (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                        <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-language-t"><span class="type">hb_language_t</span></a> language</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22950128"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-set-length"></a><h3>hb_buffer_set_length ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_buffer_set_length (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                      <em class="parameter"><code>unsigned <span class="type">int</span> length</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22965680"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22973184"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-set-replacement-codepoint"></a><h3>hb_buffer_set_replacement_codepoint ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_set_replacement_codepoint (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                                     <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> replacement</code></em>);</pre>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-set-script"></a><h3>hb_buffer_set_script ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_set_script (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="type">hb_script_t</span></a> script</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22990256"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-set-segment-properties"></a><h3>hb_buffer_set_segment_properties ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_set_segment_properties (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                                  <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> *props</code></em>);</pre>
+<div class="refsect3">
+<a name="idp23005808"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-set-unicode-funcs"></a><h3>hb_buffer_set_unicode_funcs ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_buffer_set_unicode_funcs (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *unicode_funcs</code></em>);</pre>
+<div class="refsect3">
+<a name="idp23021216"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-set-user-data"></a><h3>hb_buffer_set_user_data ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_buffer_set_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                         <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>,
+                         <em class="parameter"><code><span class="type">void</span> *data</code></em>,
+                         <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>,
+                         <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="type">hb_bool_t</span></a> replace</code></em>);</pre>
+<div class="refsect3">
+<a name="idp23040752"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp23048256"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-segment-properties-equal"></a><h3>hb_segment_properties_equal ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_segment_properties_equal (<em class="parameter"><code>const <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> *a</code></em>,
+                             <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> *b</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23057632"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-segment-properties-hash"></a><h3>hb_segment_properties_hash ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_segment_properties_hash (<em class="parameter"><code>const <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> *p</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23065088"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-buffer.other_details"></a><h2>Types and Values</h2>
+<div class="refsect2">
+<a name="HB-SEGMENT-PROPERTIES-DEFAULT:CAPS"></a><h3>HB_SEGMENT_PROPERTIES_DEFAULT</h3>
+<pre class="programlisting">#define             HB_SEGMENT_PROPERTIES_DEFAULT</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-content-type-t"></a><h3>enum hb_buffer_content_type_t</h3>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23074720"></a><h4>Members</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="300px" class="enum_members_name">
+<col class="enum_members_description">
+<col width="200px" class="enum_members_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="enum_member_name"><p><a name="HB-BUFFER-CONTENT-TYPE-INVALID:CAPS"></a>HB_BUFFER_CONTENT_TYPE_INVALID</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-BUFFER-CONTENT-TYPE-UNICODE:CAPS"></a>HB_BUFFER_CONTENT_TYPE_UNICODE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-BUFFER-CONTENT-TYPE-GLYPHS:CAPS"></a>HB_BUFFER_CONTENT_TYPE_GLYPHS</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-flags-t"></a><h3>enum hb_buffer_flags_t</h3>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23090928"></a><h4>Members</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="300px" class="enum_members_name">
+<col class="enum_members_description">
+<col width="200px" class="enum_members_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="enum_member_name"><p><a name="HB-BUFFER-FLAG-DEFAULT:CAPS"></a>HB_BUFFER_FLAG_DEFAULT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-BUFFER-FLAG-BOT:CAPS"></a>HB_BUFFER_FLAG_BOT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-BUFFER-FLAG-EOT:CAPS"></a>HB_BUFFER_FLAG_EOT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-BUFFER-FLAG-PRESERVE-DEFAULT-IGNORABLES:CAPS"></a>HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-serialize-flags-t"></a><h3>enum hb_buffer_serialize_flags_t</h3>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23110400"></a><h4>Members</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="300px" class="enum_members_name">
+<col class="enum_members_description">
+<col width="200px" class="enum_members_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FLAG-DEFAULT:CAPS"></a>HB_BUFFER_SERIALIZE_FLAG_DEFAULT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FLAG-NO-CLUSTERS:CAPS"></a>HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FLAG-NO-POSITIONS:CAPS"></a>HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FLAG-NO-GLYPH-NAMES:CAPS"></a>HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-serialize-format-t"></a><h3>enum hb_buffer_serialize_format_t</h3>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23132992"></a><h4>Members</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="300px" class="enum_members_name">
+<col class="enum_members_description">
+<col width="200px" class="enum_members_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FORMAT-TEXT:CAPS"></a>HB_BUFFER_SERIALIZE_FORMAT_TEXT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FORMAT-JSON:CAPS"></a>HB_BUFFER_SERIALIZE_FORMAT_JSON</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-BUFFER-SERIALIZE-FORMAT-INVALID:CAPS"></a>HB_BUFFER_SERIALIZE_FORMAT_INVALID</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-buffer-t"></a><h3>hb_buffer_t</h3>
+<pre class="programlisting">typedef struct hb_buffer_t hb_buffer_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-glyph-info-t-struct"></a><h3>hb_glyph_info_t</h3>
+<pre class="programlisting">typedef struct {
+  hb_codepoint_t codepoint;
+  hb_mask_t      mask;
+  uint32_t       cluster;
+} hb_glyph_info_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-glyph-position-t-struct"></a><h3>hb_glyph_position_t</h3>
+<pre class="programlisting">typedef struct {
+  hb_position_t  x_advance;
+  hb_position_t  y_advance;
+  hb_position_t  x_offset;
+  hb_position_t  y_offset;
+} hb_glyph_position_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-segment-properties-t-struct"></a><h3>hb_segment_properties_t</h3>
+<pre class="programlisting">typedef struct {
+  hb_direction_t  direction;
+  hb_script_t     script;
+  hb_language_t   language;
+} hb_segment_properties_t;
+</pre>
+<p>
+</p>
+</div>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-common.html b/docs/reference/html/harfbuzz-hb-common.html
new file mode 100644 (file)
index 0000000..47aedb6
--- /dev/null
@@ -0,0 +1,1337 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-common</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb.html" title="hb">
+<link rel="next" href="harfbuzz-hb-unicode.html" title="hb-unicode">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-common.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-common.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-unicode.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-common"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-common.top_of_page"></a>hb-common</span></h2>
+<p>hb-common</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-common.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-REVERSE:CAPS" title="HB_DIRECTION_REVERSE()">HB_DIRECTION_REVERSE</a><span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-common.html#HB-LANGUAGE-INVALID:CAPS" title="HB_LANGUAGE_INVALID">HB_LANGUAGE_INVALID</a></td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#HB-TAG:CAPS" title="HB_TAG()">HB_TAG</a><span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#HB-UNTAG:CAPS" title="HB_UNTAG()">HB_UNTAG</a><span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()">*hb_destroy_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="returnvalue">hb_direction_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#hb-direction-from-string" title="hb_direction_from_string ()">hb_direction_from_string</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">const <span class="returnvalue">char</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#hb-direction-to-string" title="hb_direction_to_string ()">hb_direction_to_string</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-language-t"><span class="returnvalue">hb_language_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#hb-language-from-string" title="hb_language_from_string ()">hb_language_from_string</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-language-t"><span class="returnvalue">hb_language_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#hb-language-get-default" title="hb_language_get_default ()">hb_language_get_default</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">const <span class="returnvalue">char</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#hb-language-to-string" title="hb_language_to_string ()">hb_language_to_string</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#hb-script-from-iso15924-tag" title="hb_script_from_iso15924_tag ()">hb_script_from_iso15924_tag</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#hb-script-from-string" title="hb_script_from_string ()">hb_script_from_string</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="returnvalue">hb_direction_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#hb-script-get-horizontal-direction" title="hb_script_get_horizontal_direction ()">hb_script_get_horizontal_direction</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="returnvalue">hb_tag_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#hb-script-to-iso15924-tag" title="hb_script_to_iso15924_tag ()">hb_script_to_iso15924_tag</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="returnvalue">hb_tag_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#hb-tag-from-string" title="hb_tag_from_string ()">hb_tag_from_string</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#hb-tag-to-string" title="hb_tag_to_string ()">hb_tag_to_string</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-IS-BACKWARD:CAPS" title="HB_DIRECTION_IS_BACKWARD()">HB_DIRECTION_IS_BACKWARD</a><span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-IS-FORWARD:CAPS" title="HB_DIRECTION_IS_FORWARD()">HB_DIRECTION_IS_FORWARD</a><span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-IS-HORIZONTAL:CAPS" title="HB_DIRECTION_IS_HORIZONTAL()">HB_DIRECTION_IS_HORIZONTAL</a><span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-IS-VALID:CAPS" title="HB_DIRECTION_IS_VALID()">HB_DIRECTION_IS_VALID</a><span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-common.html#HB-DIRECTION-IS-VERTICAL:CAPS" title="HB_DIRECTION_IS_VERTICAL()">HB_DIRECTION_IS_VERTICAL</a><span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<a name="hb-language-t"></a><a name="hb-user-data-key-t"></a><div class="refsect1">
+<a name="harfbuzz-hb-common.other"></a><h2>Types and Values</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="name">
+<col class="description">
+</colgroup>
+<tbody>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-common.html#HB-TAG-NONE:CAPS" title="HB_TAG_NONE">HB_TAG_NONE</a></td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-common.html#HB-TAG-MAX:CAPS" title="HB_TAG_MAX">HB_TAG_MAX</a></td>
+</tr>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t">hb_bool_t</a></td>
+</tr>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t">hb_codepoint_t</a></td>
+</tr>
+<tr>
+<td class="datatype_keyword">enum</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t">hb_direction_t</a></td>
+</tr>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-common.html#hb-language-t">hb_language_t</a></td>
+</tr>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-common.html#hb-mask-t" title="hb_mask_t">hb_mask_t</a></td>
+</tr>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t">hb_position_t</a></td>
+</tr>
+<tr>
+<td class="datatype_keyword">enum</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t">hb_script_t</a></td>
+</tr>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t">hb_tag_t</a></td>
+</tr>
+<tr>
+<td class="datatype_keyword"> </td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t-struct" title="hb_user_data_key_t">hb_user_data_key_t</a></td>
+</tr>
+<tr>
+<td class="datatype_keyword"> </td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-common.html#hb-var-int-t" title="hb_var_int_t">hb_var_int_t</a></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-common.object-hierarchy"></a><h2>Object Hierarchy</h2>
+<pre class="screen">    GBoxed
+    <span class="lineart">├──</span> hb_language_t
+    <span class="lineart">╰──</span> hb_user_data_key_t
+    GEnum
+    <span class="lineart">├──</span> hb_direction_t
+    <span class="lineart">╰──</span> hb_script_t
+</pre>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-common.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-common.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="HB-DIRECTION-REVERSE:CAPS"></a><h3>HB_DIRECTION_REVERSE()</h3>
+<pre class="programlisting">#define HB_DIRECTION_REVERSE(dir) ((hb_direction_t) (((unsigned int) (dir)) ^ 1))
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-LANGUAGE-INVALID:CAPS"></a><h3>HB_LANGUAGE_INVALID</h3>
+<pre class="programlisting">#define HB_LANGUAGE_INVALID ((hb_language_t) NULL)
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-TAG:CAPS"></a><h3>HB_TAG()</h3>
+<pre class="programlisting">#define HB_TAG(c1,c2,c3,c4) ((hb_tag_t)((((uint8_t)(c1))&lt;&lt;24)|(((uint8_t)(c2))&lt;&lt;16)|(((uint8_t)(c3))&lt;&lt;8)|((uint8_t)(c4))))
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-UNTAG:CAPS"></a><h3>HB_UNTAG()</h3>
+<pre class="programlisting">#define HB_UNTAG(tag)   ((uint8_t)((tag)&gt;&gt;24)), ((uint8_t)((tag)&gt;&gt;16)), ((uint8_t)((tag)&gt;&gt;8)), ((uint8_t)(tag))
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-destroy-func-t"></a><h3>hb_destroy_func_t ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+<span class="c_punctuation">(</span>*hb_destroy_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-direction-from-string"></a><h3>hb_direction_from_string ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="returnvalue">hb_direction_t</span></a>
+hb_direction_from_string (<em class="parameter"><code>const <span class="type">char</span> *str</code></em>,
+                          <em class="parameter"><code><span class="type">int</span> len</code></em>);</pre>
+<div class="refsect3">
+<a name="idp18987296"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>str</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=len]</span></td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp18996800"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-direction-to-string"></a><h3>hb_direction_to_string ()</h3>
+<pre class="programlisting">const <span class="returnvalue">char</span> *
+hb_direction_to_string (<em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="type">hb_direction_t</span></a> direction</code></em>);</pre>
+<div class="refsect3">
+<a name="idp19006032"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-language-from-string"></a><h3>hb_language_from_string ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-language-t"><span class="returnvalue">hb_language_t</span></a>
+hb_language_from_string (<em class="parameter"><code>const <span class="type">char</span> *str</code></em>,
+                         <em class="parameter"><code><span class="type">int</span> len</code></em>);</pre>
+<div class="refsect3">
+<a name="idp19018560"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>str</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=len]</span></td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp19028064"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-language-get-default"></a><h3>hb_language_get_default ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-language-t"><span class="returnvalue">hb_language_t</span></a>
+hb_language_get_default (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<div class="refsect3">
+<a name="idp19036576"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-language-to-string"></a><h3>hb_language_to_string ()</h3>
+<pre class="programlisting">const <span class="returnvalue">char</span> *
+hb_language_to_string (<em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-language-t"><span class="type">hb_language_t</span></a> language</code></em>);</pre>
+<div class="refsect3">
+<a name="idp19045808"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-script-from-iso15924-tag"></a><h3>hb_script_from_iso15924_tag ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+hb_script_from_iso15924_tag (<em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> tag</code></em>);</pre>
+<div class="refsect3">
+<a name="idp19056528"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-script-from-string"></a><h3>hb_script_from_string ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+hb_script_from_string (<em class="parameter"><code>const <span class="type">char</span> *s</code></em>,
+                       <em class="parameter"><code><span class="type">int</span> len</code></em>);</pre>
+<div class="refsect3">
+<a name="idp19067392"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>s</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=len]</span></td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp19076896"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-script-get-horizontal-direction"></a><h3>hb_script_get_horizontal_direction ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="returnvalue">hb_direction_t</span></a>
+hb_script_get_horizontal_direction (<em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="type">hb_script_t</span></a> script</code></em>);</pre>
+<div class="refsect3">
+<a name="idp19086016"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-script-to-iso15924-tag"></a><h3>hb_script_to_iso15924_tag ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="returnvalue">hb_tag_t</span></a>
+hb_script_to_iso15924_tag (<em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="type">hb_script_t</span></a> script</code></em>);</pre>
+<div class="refsect3">
+<a name="idp19095136"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-tag-from-string"></a><h3>hb_tag_from_string ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="returnvalue">hb_tag_t</span></a>
+hb_tag_from_string (<em class="parameter"><code>const <span class="type">char</span> *str</code></em>,
+                    <em class="parameter"><code><span class="type">int</span> len</code></em>);</pre>
+<div class="refsect3">
+<a name="idp19105952"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>str</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=len]</span></td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp19115456"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-tag-to-string"></a><h3>hb_tag_to_string ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_tag_to_string (<em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> tag</code></em>,
+                  <em class="parameter"><code><span class="type">char</span> *buf</code></em>);</pre>
+<div class="refsect3">
+<a name="idp19126096"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buf</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> fixed-size=4]</span></td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-DIRECTION-IS-BACKWARD:CAPS"></a><h3>HB_DIRECTION_IS_BACKWARD()</h3>
+<pre class="programlisting">#define HB_DIRECTION_IS_BACKWARD(dir) ((((unsigned int) (dir)) &amp; ~2U) == 5)
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-DIRECTION-IS-FORWARD:CAPS"></a><h3>HB_DIRECTION_IS_FORWARD()</h3>
+<pre class="programlisting">#define HB_DIRECTION_IS_FORWARD(dir) ((((unsigned int) (dir)) &amp; ~2U) == 4)
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-DIRECTION-IS-HORIZONTAL:CAPS"></a><h3>HB_DIRECTION_IS_HORIZONTAL()</h3>
+<pre class="programlisting">#define HB_DIRECTION_IS_HORIZONTAL(dir) ((((unsigned int) (dir)) &amp; ~1U) == 4)
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-DIRECTION-IS-VALID:CAPS"></a><h3>HB_DIRECTION_IS_VALID()</h3>
+<pre class="programlisting">#define HB_DIRECTION_IS_VALID(dir) ((((unsigned int) (dir)) &amp; ~3U) == 4)
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-DIRECTION-IS-VERTICAL:CAPS"></a><h3>HB_DIRECTION_IS_VERTICAL()</h3>
+<pre class="programlisting">#define HB_DIRECTION_IS_VERTICAL(dir) ((((unsigned int) (dir)) &amp; ~1U) == 6)
+</pre>
+<p>
+</p>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-common.other_details"></a><h2>Types and Values</h2>
+<div class="refsect2">
+<a name="HB-TAG-NONE:CAPS"></a><h3>HB_TAG_NONE</h3>
+<pre class="programlisting">#define HB_TAG_NONE HB_TAG(0,0,0,0)
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-TAG-MAX:CAPS"></a><h3>HB_TAG_MAX</h3>
+<pre class="programlisting">#define HB_TAG_MAX HB_TAG(0xff,0xff,0xff,0xff)
+</pre>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-bool-t"></a><h3>hb_bool_t</h3>
+<pre class="programlisting">typedef int hb_bool_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-codepoint-t"></a><h3>hb_codepoint_t</h3>
+<pre class="programlisting">typedef uint32_t hb_codepoint_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-direction-t"></a><h3>enum hb_direction_t</h3>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp19182160"></a><h4>Members</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="300px" class="enum_members_name">
+<col class="enum_members_description">
+<col width="200px" class="enum_members_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="enum_member_name"><p><a name="HB-DIRECTION-INVALID:CAPS"></a>HB_DIRECTION_INVALID</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-DIRECTION-LTR:CAPS"></a>HB_DIRECTION_LTR</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-DIRECTION-RTL:CAPS"></a>HB_DIRECTION_RTL</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-DIRECTION-TTB:CAPS"></a>HB_DIRECTION_TTB</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-DIRECTION-BTT:CAPS"></a>HB_DIRECTION_BTT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-language-t"></a><h3>hb_language_t</h3>
+<pre class="programlisting">typedef const struct hb_language_impl_t *hb_language_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-mask-t"></a><h3>hb_mask_t</h3>
+<pre class="programlisting">typedef uint32_t hb_mask_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-position-t"></a><h3>hb_position_t</h3>
+<pre class="programlisting">typedef int32_t hb_position_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-script-t"></a><h3>enum hb_script_t</h3>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp19220528"></a><h4>Members</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="300px" class="enum_members_name">
+<col class="enum_members_description">
+<col width="200px" class="enum_members_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-COMMON:CAPS"></a>HB_SCRIPT_COMMON</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-INHERITED:CAPS"></a>HB_SCRIPT_INHERITED</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-UNKNOWN:CAPS"></a>HB_SCRIPT_UNKNOWN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-ARABIC:CAPS"></a>HB_SCRIPT_ARABIC</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-ARMENIAN:CAPS"></a>HB_SCRIPT_ARMENIAN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-BENGALI:CAPS"></a>HB_SCRIPT_BENGALI</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-CYRILLIC:CAPS"></a>HB_SCRIPT_CYRILLIC</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-DEVANAGARI:CAPS"></a>HB_SCRIPT_DEVANAGARI</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-GEORGIAN:CAPS"></a>HB_SCRIPT_GEORGIAN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-GREEK:CAPS"></a>HB_SCRIPT_GREEK</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-GUJARATI:CAPS"></a>HB_SCRIPT_GUJARATI</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-GURMUKHI:CAPS"></a>HB_SCRIPT_GURMUKHI</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-HANGUL:CAPS"></a>HB_SCRIPT_HANGUL</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-HAN:CAPS"></a>HB_SCRIPT_HAN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-HEBREW:CAPS"></a>HB_SCRIPT_HEBREW</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-HIRAGANA:CAPS"></a>HB_SCRIPT_HIRAGANA</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-KANNADA:CAPS"></a>HB_SCRIPT_KANNADA</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-KATAKANA:CAPS"></a>HB_SCRIPT_KATAKANA</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-LAO:CAPS"></a>HB_SCRIPT_LAO</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-LATIN:CAPS"></a>HB_SCRIPT_LATIN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-MALAYALAM:CAPS"></a>HB_SCRIPT_MALAYALAM</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-ORIYA:CAPS"></a>HB_SCRIPT_ORIYA</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-TAMIL:CAPS"></a>HB_SCRIPT_TAMIL</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-TELUGU:CAPS"></a>HB_SCRIPT_TELUGU</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-THAI:CAPS"></a>HB_SCRIPT_THAI</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-TIBETAN:CAPS"></a>HB_SCRIPT_TIBETAN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-BOPOMOFO:CAPS"></a>HB_SCRIPT_BOPOMOFO</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-BRAILLE:CAPS"></a>HB_SCRIPT_BRAILLE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-CANADIAN-SYLLABICS:CAPS"></a>HB_SCRIPT_CANADIAN_SYLLABICS</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-CHEROKEE:CAPS"></a>HB_SCRIPT_CHEROKEE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-ETHIOPIC:CAPS"></a>HB_SCRIPT_ETHIOPIC</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-KHMER:CAPS"></a>HB_SCRIPT_KHMER</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-MONGOLIAN:CAPS"></a>HB_SCRIPT_MONGOLIAN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-MYANMAR:CAPS"></a>HB_SCRIPT_MYANMAR</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-OGHAM:CAPS"></a>HB_SCRIPT_OGHAM</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-RUNIC:CAPS"></a>HB_SCRIPT_RUNIC</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-SINHALA:CAPS"></a>HB_SCRIPT_SINHALA</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-SYRIAC:CAPS"></a>HB_SCRIPT_SYRIAC</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-THAANA:CAPS"></a>HB_SCRIPT_THAANA</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-YI:CAPS"></a>HB_SCRIPT_YI</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-DESERET:CAPS"></a>HB_SCRIPT_DESERET</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-GOTHIC:CAPS"></a>HB_SCRIPT_GOTHIC</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-OLD-ITALIC:CAPS"></a>HB_SCRIPT_OLD_ITALIC</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-BUHID:CAPS"></a>HB_SCRIPT_BUHID</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-HANUNOO:CAPS"></a>HB_SCRIPT_HANUNOO</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-TAGALOG:CAPS"></a>HB_SCRIPT_TAGALOG</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-TAGBANWA:CAPS"></a>HB_SCRIPT_TAGBANWA</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-CYPRIOT:CAPS"></a>HB_SCRIPT_CYPRIOT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-LIMBU:CAPS"></a>HB_SCRIPT_LIMBU</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-LINEAR-B:CAPS"></a>HB_SCRIPT_LINEAR_B</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-OSMANYA:CAPS"></a>HB_SCRIPT_OSMANYA</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-SHAVIAN:CAPS"></a>HB_SCRIPT_SHAVIAN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-TAI-LE:CAPS"></a>HB_SCRIPT_TAI_LE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-UGARITIC:CAPS"></a>HB_SCRIPT_UGARITIC</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-BUGINESE:CAPS"></a>HB_SCRIPT_BUGINESE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-COPTIC:CAPS"></a>HB_SCRIPT_COPTIC</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-GLAGOLITIC:CAPS"></a>HB_SCRIPT_GLAGOLITIC</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-KHAROSHTHI:CAPS"></a>HB_SCRIPT_KHAROSHTHI</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-NEW-TAI-LUE:CAPS"></a>HB_SCRIPT_NEW_TAI_LUE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-OLD-PERSIAN:CAPS"></a>HB_SCRIPT_OLD_PERSIAN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-SYLOTI-NAGRI:CAPS"></a>HB_SCRIPT_SYLOTI_NAGRI</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-TIFINAGH:CAPS"></a>HB_SCRIPT_TIFINAGH</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-BALINESE:CAPS"></a>HB_SCRIPT_BALINESE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-CUNEIFORM:CAPS"></a>HB_SCRIPT_CUNEIFORM</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-NKO:CAPS"></a>HB_SCRIPT_NKO</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-PHAGS-PA:CAPS"></a>HB_SCRIPT_PHAGS_PA</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-PHOENICIAN:CAPS"></a>HB_SCRIPT_PHOENICIAN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-CARIAN:CAPS"></a>HB_SCRIPT_CARIAN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-CHAM:CAPS"></a>HB_SCRIPT_CHAM</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-KAYAH-LI:CAPS"></a>HB_SCRIPT_KAYAH_LI</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-LEPCHA:CAPS"></a>HB_SCRIPT_LEPCHA</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-LYCIAN:CAPS"></a>HB_SCRIPT_LYCIAN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-LYDIAN:CAPS"></a>HB_SCRIPT_LYDIAN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-OL-CHIKI:CAPS"></a>HB_SCRIPT_OL_CHIKI</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-REJANG:CAPS"></a>HB_SCRIPT_REJANG</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-SAURASHTRA:CAPS"></a>HB_SCRIPT_SAURASHTRA</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-SUNDANESE:CAPS"></a>HB_SCRIPT_SUNDANESE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-VAI:CAPS"></a>HB_SCRIPT_VAI</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-AVESTAN:CAPS"></a>HB_SCRIPT_AVESTAN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-BAMUM:CAPS"></a>HB_SCRIPT_BAMUM</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-EGYPTIAN-HIEROGLYPHS:CAPS"></a>HB_SCRIPT_EGYPTIAN_HIEROGLYPHS</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-IMPERIAL-ARAMAIC:CAPS"></a>HB_SCRIPT_IMPERIAL_ARAMAIC</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-INSCRIPTIONAL-PAHLAVI:CAPS"></a>HB_SCRIPT_INSCRIPTIONAL_PAHLAVI</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-INSCRIPTIONAL-PARTHIAN:CAPS"></a>HB_SCRIPT_INSCRIPTIONAL_PARTHIAN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-JAVANESE:CAPS"></a>HB_SCRIPT_JAVANESE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-KAITHI:CAPS"></a>HB_SCRIPT_KAITHI</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-LISU:CAPS"></a>HB_SCRIPT_LISU</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-MEETEI-MAYEK:CAPS"></a>HB_SCRIPT_MEETEI_MAYEK</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-OLD-SOUTH-ARABIAN:CAPS"></a>HB_SCRIPT_OLD_SOUTH_ARABIAN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-OLD-TURKIC:CAPS"></a>HB_SCRIPT_OLD_TURKIC</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-SAMARITAN:CAPS"></a>HB_SCRIPT_SAMARITAN</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-TAI-THAM:CAPS"></a>HB_SCRIPT_TAI_THAM</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-TAI-VIET:CAPS"></a>HB_SCRIPT_TAI_VIET</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-BATAK:CAPS"></a>HB_SCRIPT_BATAK</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-BRAHMI:CAPS"></a>HB_SCRIPT_BRAHMI</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-MANDAIC:CAPS"></a>HB_SCRIPT_MANDAIC</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-CHAKMA:CAPS"></a>HB_SCRIPT_CHAKMA</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-MEROITIC-CURSIVE:CAPS"></a>HB_SCRIPT_MEROITIC_CURSIVE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-MEROITIC-HIEROGLYPHS:CAPS"></a>HB_SCRIPT_MEROITIC_HIEROGLYPHS</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-MIAO:CAPS"></a>HB_SCRIPT_MIAO</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-SHARADA:CAPS"></a>HB_SCRIPT_SHARADA</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-SORA-SOMPENG:CAPS"></a>HB_SCRIPT_SORA_SOMPENG</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-TAKRI:CAPS"></a>HB_SCRIPT_TAKRI</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-BASSA-VAH:CAPS"></a>HB_SCRIPT_BASSA_VAH</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-CAUCASIAN-ALBANIAN:CAPS"></a>HB_SCRIPT_CAUCASIAN_ALBANIAN</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-DUPLOYAN:CAPS"></a>HB_SCRIPT_DUPLOYAN</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-ELBASAN:CAPS"></a>HB_SCRIPT_ELBASAN</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-GRANTHA:CAPS"></a>HB_SCRIPT_GRANTHA</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-KHOJKI:CAPS"></a>HB_SCRIPT_KHOJKI</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-KHUDAWADI:CAPS"></a>HB_SCRIPT_KHUDAWADI</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-LINEAR-A:CAPS"></a>HB_SCRIPT_LINEAR_A</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-MAHAJANI:CAPS"></a>HB_SCRIPT_MAHAJANI</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-MANICHAEAN:CAPS"></a>HB_SCRIPT_MANICHAEAN</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-MENDE-KIKAKUI:CAPS"></a>HB_SCRIPT_MENDE_KIKAKUI</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-MODI:CAPS"></a>HB_SCRIPT_MODI</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-MRO:CAPS"></a>HB_SCRIPT_MRO</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-NABATAEAN:CAPS"></a>HB_SCRIPT_NABATAEAN</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-OLD-NORTH-ARABIAN:CAPS"></a>HB_SCRIPT_OLD_NORTH_ARABIAN</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-OLD-PERMIC:CAPS"></a>HB_SCRIPT_OLD_PERMIC</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-PAHAWH-HMONG:CAPS"></a>HB_SCRIPT_PAHAWH_HMONG</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-PALMYRENE:CAPS"></a>HB_SCRIPT_PALMYRENE</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-PAU-CIN-HAU:CAPS"></a>HB_SCRIPT_PAU_CIN_HAU</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-PSALTER-PAHLAVI:CAPS"></a>HB_SCRIPT_PSALTER_PAHLAVI</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-SIDDHAM:CAPS"></a>HB_SCRIPT_SIDDHAM</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-TIRHUTA:CAPS"></a>HB_SCRIPT_TIRHUTA</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-WARANG-CITI:CAPS"></a>HB_SCRIPT_WARANG_CITI</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-INVALID:CAPS"></a>HB_SCRIPT_INVALID</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-MAX-VALUE:CAPS"></a>_HB_SCRIPT_MAX_VALUE</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-SCRIPT-MAX-VALUE-SIGNED:CAPS"></a>_HB_SCRIPT_MAX_VALUE_SIGNED</p></td>
+<td> </td>
+<td> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-tag-t"></a><h3>hb_tag_t</h3>
+<pre class="programlisting">typedef uint32_t hb_tag_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-user-data-key-t-struct"></a><h3>hb_user_data_key_t</h3>
+<pre class="programlisting">typedef struct {
+} hb_user_data_key_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-var-int-t"></a><h3>hb_var_int_t</h3>
+<p>
+</p>
+</div>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-coretext.html b/docs/reference/html/harfbuzz-hb-coretext.html
new file mode 100644 (file)
index 0000000..939d711
--- /dev/null
@@ -0,0 +1,144 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-coretext</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-uniscribe.html" title="hb-uniscribe">
+<link rel="next" href="harfbuzz-hb-gobject.html" title="hb-gobject">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-coretext.description" class="shortcut">Description</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-uniscribe.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-gobject.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-coretext"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-coretext.top_of_page"></a>hb-coretext</span></h2>
+<p>hb-coretext</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-coretext.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-coretext.html#hb-coretext-face-create" title="hb_coretext_face_create ()">hb_coretext_face_create</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">CGFontRef</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-coretext.html#hb-coretext-face-get-cg-font" title="hb_coretext_face_get_cg_font ()">hb_coretext_face_get_cg_font</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">CTFontRef</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-coretext.html#hb-coretext-font-get-ct-font" title="hb_coretext_font_get_ct_font ()">hb_coretext_font_get_ct_font</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-coretext.other"></a><h2>Types and Values</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="name">
+<col class="description">
+</colgroup>
+<tbody>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-coretext.html#HB-CORETEXT-TAG-MORT:CAPS" title="HB_CORETEXT_TAG_MORT">HB_CORETEXT_TAG_MORT</a></td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-coretext.html#HB-CORETEXT-TAG-MORX:CAPS" title="HB_CORETEXT_TAG_MORX">HB_CORETEXT_TAG_MORX</a></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-coretext.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-coretext.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="hb-coretext-face-create"></a><h3>hb_coretext_face_create ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+hb_coretext_face_create (<em class="parameter"><code><span class="type">CGFontRef</span> cg_font</code></em>);</pre>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-coretext-face-get-cg-font"></a><h3>hb_coretext_face_get_cg_font ()</h3>
+<pre class="programlisting"><span class="returnvalue">CGFontRef</span>
+hb_coretext_face_get_cg_font (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp19763168"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-coretext-font-get-ct-font"></a><h3>hb_coretext_font_get_ct_font ()</h3>
+<pre class="programlisting"><span class="returnvalue">CTFontRef</span>
+hb_coretext_font_get_ct_font (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23989600"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-coretext.other_details"></a><h2>Types and Values</h2>
+<div class="refsect2">
+<a name="HB-CORETEXT-TAG-MORT:CAPS"></a><h3>HB_CORETEXT_TAG_MORT</h3>
+<pre class="programlisting">#define HB_CORETEXT_TAG_MORT HB_TAG('m','o','r','t')
+</pre>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-CORETEXT-TAG-MORX:CAPS"></a><h3>HB_CORETEXT_TAG_MORX</h3>
+<pre class="programlisting">#define HB_CORETEXT_TAG_MORX HB_TAG('m','o','r','x')
+</pre>
+</div>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-deprecated.html b/docs/reference/html/harfbuzz-hb-deprecated.html
new file mode 100644 (file)
index 0000000..09961c1
--- /dev/null
@@ -0,0 +1,99 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-deprecated</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-version.html" title="hb-version">
+<link rel="next" href="harfbuzz-hb-set.html" title="hb-set">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-deprecated.description" class="shortcut">Description</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-version.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-set.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-deprecated"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-deprecated.top_of_page"></a>hb-deprecated</span></h2>
+<p>hb-deprecated</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-deprecated.other"></a><h2>Types and Values</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="name">
+<col class="description">
+</colgroup>
+<tbody>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-deprecated.html#HB-BUFFER-FLAGS-DEFAULT:CAPS" title="HB_BUFFER_FLAGS_DEFAULT">HB_BUFFER_FLAGS_DEFAULT</a></td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-deprecated.html#HB-BUFFER-SERIALIZE-FLAGS-DEFAULT:CAPS" title="HB_BUFFER_SERIALIZE_FLAGS_DEFAULT">HB_BUFFER_SERIALIZE_FLAGS_DEFAULT</a></td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-deprecated.html#HB-SCRIPT-CANADIAN-ABORIGINAL:CAPS" title="HB_SCRIPT_CANADIAN_ABORIGINAL">HB_SCRIPT_CANADIAN_ABORIGINAL</a></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-deprecated.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-deprecated.functions_details"></a><h2>Functions</h2>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-deprecated.other_details"></a><h2>Types and Values</h2>
+<div class="refsect2">
+<a name="HB-BUFFER-FLAGS-DEFAULT:CAPS"></a><h3>HB_BUFFER_FLAGS_DEFAULT</h3>
+<pre class="programlisting">#define HB_BUFFER_FLAGS_DEFAULT                    HB_BUFFER_FLAG_DEFAULT
+</pre>
+<div class="warning"><p><code class="literal">HB_BUFFER_FLAGS_DEFAULT</code> is deprecated and should not be used in newly-written code.</p></div>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-BUFFER-SERIALIZE-FLAGS-DEFAULT:CAPS"></a><h3>HB_BUFFER_SERIALIZE_FLAGS_DEFAULT</h3>
+<pre class="programlisting">#define HB_BUFFER_SERIALIZE_FLAGS_DEFAULT HB_BUFFER_SERIALIZE_FLAG_DEFAULT
+</pre>
+<div class="warning"><p><code class="literal">HB_BUFFER_SERIALIZE_FLAGS_DEFAULT</code> is deprecated and should not be used in newly-written code.</p></div>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-SCRIPT-CANADIAN-ABORIGINAL:CAPS"></a><h3>HB_SCRIPT_CANADIAN_ABORIGINAL</h3>
+<pre class="programlisting">#define HB_SCRIPT_CANADIAN_ABORIGINAL              HB_SCRIPT_CANADIAN_SYLLABICS
+</pre>
+<div class="warning"><p><code class="literal">HB_SCRIPT_CANADIAN_ABORIGINAL</code> is deprecated and should not be used in newly-written code.</p></div>
+<p>
+</p>
+</div>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-face.html b/docs/reference/html/harfbuzz-hb-face.html
new file mode 100644 (file)
index 0000000..4a2f856
--- /dev/null
@@ -0,0 +1,630 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-face</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-blob.html" title="hb-blob">
+<link rel="next" href="harfbuzz-hb-font.html" title="hb-font">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-face.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-face.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-blob.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-font.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-face"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-face.top_of_page"></a>hb-face</span></h2>
+<p>hb-face</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-face.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-create" title="hb_face_create ()">hb_face_create</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-create-for-tables" title="hb_face_create_for_tables ()">hb_face_create_for_tables</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-destroy" title="hb_face_destroy ()">hb_face_destroy</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-get-empty" title="hb_face_get_empty ()">hb_face_get_empty</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-get-glyph-count" title="hb_face_get_glyph_count ()">hb_face_get_glyph_count</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-get-index" title="hb_face_get_index ()">hb_face_get_index</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-get-upem" title="hb_face_get_upem ()">hb_face_get_upem</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-get-user-data" title="hb_face_get_user_data ()">hb_face_get_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-is-immutable" title="hb_face_is_immutable ()">hb_face_is_immutable</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-make-immutable" title="hb_face_make_immutable ()">hb_face_make_immutable</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-reference" title="hb_face_reference ()">hb_face_reference</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="returnvalue">hb_blob_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-reference-blob" title="hb_face_reference_blob ()">hb_face_reference_blob</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="returnvalue">hb_blob_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-reference-table" title="hb_face_reference_table ()">hb_face_reference_table</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-set-glyph-count" title="hb_face_set_glyph_count ()">hb_face_set_glyph_count</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-set-index" title="hb_face_set_index ()">hb_face_set_index</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-set-upem" title="hb_face_set_upem ()">hb_face_set_upem</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-set-user-data" title="hb_face_set_user_data ()">hb_face_set_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<a name="hb-face-t"></a><div class="refsect1">
+<a name="harfbuzz-hb-face.other"></a><h2>Types and Values</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="name">
+<col class="description">
+</colgroup>
+<tbody><tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-face.html#hb-face-t">hb_face_t</a></td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-face.object-hierarchy"></a><h2>Object Hierarchy</h2>
+<pre class="screen">    GBoxed
+    <span class="lineart">╰──</span> hb_face_t
+</pre>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-face.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-face.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="hb-face-create"></a><h3>hb_face_create ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+hb_face_create (<em class="parameter"><code><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="type">hb_blob_t</span></a> *blob</code></em>,
+                <em class="parameter"><code>unsigned <span class="type">int</span> index</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp17669104"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-create-for-tables"></a><h3>hb_face_create_for_tables ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+hb_face_create_for_tables (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-reference-table-func-t" title="hb_reference_table_func_t ()"><span class="type">hb_reference_table_func_t</span></a> reference_table_func</code></em>,
+                           <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                           <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp16965008"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>reference_table_func</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym> user_data][<acronym title="This parameter is a 'destroy_data', for callbacks."><span class="acronym">destroy</span></acronym> destroy][<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span></td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp17846736"></a><h4>Returns</h4>
+<p> (transfer full)</p>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-destroy"></a><h3>hb_face_destroy ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_face_destroy (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>);</pre>
+<div class="refsect3">
+<a name="idp14634400"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>face</p></td>
+<td class="parameter_description"><p>a face.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-get-empty"></a><h3>hb_face_get_empty ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+hb_face_get_empty (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<div class="refsect3">
+<a name="idp21412768"></a><h4>Returns</h4>
+<p> (transfer full)</p>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-get-glyph-count"></a><h3>hb_face_get_glyph_count ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_face_get_glyph_count (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22131376"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>face</p></td>
+<td class="parameter_description"><p>a face.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22139776"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-get-index"></a><h3>hb_face_get_index ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_face_get_index (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22148976"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>face</p></td>
+<td class="parameter_description"><p>a face.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22157376"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-get-upem"></a><h3>hb_face_get_upem ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_face_get_upem (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22166576"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>face</p></td>
+<td class="parameter_description"><p>a face.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22174976"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-get-user-data"></a><h3>hb_face_get_user_data ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span> *
+hb_face_get_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22185664"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>face</p></td>
+<td class="parameter_description"><p>a face.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22194064"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-is-immutable"></a><h3>hb_face_is_immutable ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_face_is_immutable (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22204720"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>face</p></td>
+<td class="parameter_description"><p>a face.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22213120"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-make-immutable"></a><h3>hb_face_make_immutable ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_face_make_immutable (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22222176"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>face</p></td>
+<td class="parameter_description"><p>a face.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-reference"></a><h3>hb_face_reference ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+hb_face_reference (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22238192"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>face</p></td>
+<td class="parameter_description"><p>a face.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22246592"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-reference-blob"></a><h3>hb_face_reference_blob ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="returnvalue">hb_blob_t</span></a> *
+hb_face_reference_blob (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22255648"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>face</p></td>
+<td class="parameter_description"><p>a face.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22264048"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-reference-table"></a><h3>hb_face_reference_table ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="returnvalue">hb_blob_t</span></a> *
+hb_face_reference_table (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                         <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> tag</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22276400"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>face</p></td>
+<td class="parameter_description"><p>a face.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22284800"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-set-glyph-count"></a><h3>hb_face_set_glyph_count ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_face_set_glyph_count (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                         <em class="parameter"><code>unsigned <span class="type">int</span> glyph_count</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22297328"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>face</p></td>
+<td class="parameter_description"><p>a face.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-set-index"></a><h3>hb_face_set_index ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_face_set_index (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                   <em class="parameter"><code>unsigned <span class="type">int</span> index</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22315120"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>face</p></td>
+<td class="parameter_description"><p>a face.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-set-upem"></a><h3>hb_face_set_upem ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_face_set_upem (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                  <em class="parameter"><code>unsigned <span class="type">int</span> upem</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22332912"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>face</p></td>
+<td class="parameter_description"><p>a face.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-face-set-user-data"></a><h3>hb_face_set_user_data ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_face_set_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>,
+                       <em class="parameter"><code><span class="type">void</span> *data</code></em>,
+                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>,
+                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="type">hb_bool_t</span></a> replace</code></em>);</pre>
+<div class="refsect3">
+<a name="idp22355472"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>face</p></td>
+<td class="parameter_description"><p>a face.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22363872"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-face.other_details"></a><h2>Types and Values</h2>
+<div class="refsect2">
+<a name="hb-face-t"></a><h3>hb_face_t</h3>
+<pre class="programlisting">typedef struct hb_face_t hb_face_t;
+</pre>
+<p>
+</p>
+</div>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-font.html b/docs/reference/html/harfbuzz-hb-font.html
new file mode 100644 (file)
index 0000000..2f91181
--- /dev/null
@@ -0,0 +1,2529 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-font</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-face.html" title="hb-face">
+<link rel="next" href="harfbuzz-hb-shape.html" title="hb-shape">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-font.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-font.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-face.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-shape.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-font"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-font.top_of_page"></a>hb-font</span></h2>
+<p>hb-font</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-font.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-add-glyph-origin-for-direction" title="hb_font_add_glyph_origin_for_direction ()">hb_font_add_glyph_origin_for_direction</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="returnvalue">hb_font_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-create" title="hb_font_create ()">hb_font_create</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="returnvalue">hb_font_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-create-sub-font" title="hb_font_create_sub_font ()">hb_font_create_sub_font</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-destroy" title="hb_font_destroy ()">hb_font_destroy</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="returnvalue">hb_font_funcs_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-create" title="hb_font_funcs_create ()">hb_font_funcs_create</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-destroy" title="hb_font_funcs_destroy ()">hb_font_funcs_destroy</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="returnvalue">hb_font_funcs_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-get-empty" title="hb_font_funcs_get_empty ()">hb_font_funcs_get_empty</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-get-user-data" title="hb_font_funcs_get_user_data ()">hb_font_funcs_get_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-is-immutable" title="hb_font_funcs_is_immutable ()">hb_font_funcs_is_immutable</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-make-immutable" title="hb_font_funcs_make_immutable ()">hb_font_funcs_make_immutable</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="returnvalue">hb_font_funcs_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-reference" title="hb_font_funcs_reference ()">hb_font_funcs_reference</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-contour-point-func" title="hb_font_funcs_set_glyph_contour_point_func ()">hb_font_funcs_set_glyph_contour_point_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-extents-func" title="hb_font_funcs_set_glyph_extents_func ()">hb_font_funcs_set_glyph_extents_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-from-name-func" title="hb_font_funcs_set_glyph_from_name_func ()">hb_font_funcs_set_glyph_from_name_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-func" title="hb_font_funcs_set_glyph_func ()">hb_font_funcs_set_glyph_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-h-advance-func" title="hb_font_funcs_set_glyph_h_advance_func ()">hb_font_funcs_set_glyph_h_advance_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-h-kerning-func" title="hb_font_funcs_set_glyph_h_kerning_func ()">hb_font_funcs_set_glyph_h_kerning_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-h-origin-func" title="hb_font_funcs_set_glyph_h_origin_func ()">hb_font_funcs_set_glyph_h_origin_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-name-func" title="hb_font_funcs_set_glyph_name_func ()">hb_font_funcs_set_glyph_name_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-advance-func" title="hb_font_funcs_set_glyph_v_advance_func ()">hb_font_funcs_set_glyph_v_advance_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-kerning-func" title="hb_font_funcs_set_glyph_v_kerning_func ()">hb_font_funcs_set_glyph_v_kerning_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-origin-func" title="hb_font_funcs_set_glyph_v_origin_func ()">hb_font_funcs_set_glyph_v_origin_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-set-user-data" title="hb_font_funcs_set_user_data ()">hb_font_funcs_set_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="returnvalue">hb_font_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-empty" title="hb_font_get_empty ()">hb_font_get_empty</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-face" title="hb_font_get_face ()">hb_font_get_face</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph" title="hb_font_get_glyph ()">hb_font_get_glyph</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-advance-for-direction" title="hb_font_get_glyph_advance_for_direction ()">hb_font_get_glyph_advance_for_direction</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="returnvalue">hb_position_t</span></a>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-advance-func-t" title="hb_font_get_glyph_advance_func_t ()">*hb_font_get_glyph_advance_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-contour-point" title="hb_font_get_glyph_contour_point ()">hb_font_get_glyph_contour_point</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-contour-point-for-origin" title="hb_font_get_glyph_contour_point_for_origin ()">hb_font_get_glyph_contour_point_for_origin</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-contour-point-func-t" title="hb_font_get_glyph_contour_point_func_t ()">*hb_font_get_glyph_contour_point_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-extents" title="hb_font_get_glyph_extents ()">hb_font_get_glyph_extents</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-extents-for-origin" title="hb_font_get_glyph_extents_for_origin ()">hb_font_get_glyph_extents_for_origin</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-extents-func-t" title="hb_font_get_glyph_extents_func_t ()">*hb_font_get_glyph_extents_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-from-name" title="hb_font_get_glyph_from_name ()">hb_font_get_glyph_from_name</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-from-name-func-t" title="hb_font_get_glyph_from_name_func_t ()">*hb_font_get_glyph_from_name_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-func-t" title="hb_font_get_glyph_func_t ()">*hb_font_get_glyph_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="returnvalue">hb_position_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-h-advance" title="hb_font_get_glyph_h_advance ()">hb_font_get_glyph_h_advance</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="returnvalue">hb_position_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-h-kerning" title="hb_font_get_glyph_h_kerning ()">hb_font_get_glyph_h_kerning</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-h-origin" title="hb_font_get_glyph_h_origin ()">hb_font_get_glyph_h_origin</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-kerning-for-direction" title="hb_font_get_glyph_kerning_for_direction ()">hb_font_get_glyph_kerning_for_direction</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="returnvalue">hb_position_t</span></a>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-kerning-func-t" title="hb_font_get_glyph_kerning_func_t ()">*hb_font_get_glyph_kerning_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-name" title="hb_font_get_glyph_name ()">hb_font_get_glyph_name</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-name-func-t" title="hb_font_get_glyph_name_func_t ()">*hb_font_get_glyph_name_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-origin-for-direction" title="hb_font_get_glyph_origin_for_direction ()">hb_font_get_glyph_origin_for_direction</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-origin-func-t" title="hb_font_get_glyph_origin_func_t ()">*hb_font_get_glyph_origin_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="returnvalue">hb_position_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-v-advance" title="hb_font_get_glyph_v_advance ()">hb_font_get_glyph_v_advance</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="returnvalue">hb_position_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-v-kerning" title="hb_font_get_glyph_v_kerning ()">hb_font_get_glyph_v_kerning</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-v-origin" title="hb_font_get_glyph_v_origin ()">hb_font_get_glyph_v_origin</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="returnvalue">hb_font_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-parent" title="hb_font_get_parent ()">hb_font_get_parent</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-ppem" title="hb_font_get_ppem ()">hb_font_get_ppem</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-scale" title="hb_font_get_scale ()">hb_font_get_scale</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-get-user-data" title="hb_font_get_user_data ()">hb_font_get_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-glyph-from-string" title="hb_font_glyph_from_string ()">hb_font_glyph_from_string</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-glyph-to-string" title="hb_font_glyph_to_string ()">hb_font_glyph_to_string</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-is-immutable" title="hb_font_is_immutable ()">hb_font_is_immutable</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-make-immutable" title="hb_font_make_immutable ()">hb_font_make_immutable</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="returnvalue">hb_font_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-reference" title="hb_font_reference ()">hb_font_reference</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-set-funcs" title="hb_font_set_funcs ()">hb_font_set_funcs</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-set-funcs-data" title="hb_font_set_funcs_data ()">hb_font_set_funcs_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-set-ppem" title="hb_font_set_ppem ()">hb_font_set_ppem</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-set-scale" title="hb_font_set_scale ()">hb_font_set_scale</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-set-user-data" title="hb_font_set_user_data ()">hb_font_set_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-subtract-glyph-origin-for-direction" title="hb_font_subtract_glyph_origin_for_direction ()">hb_font_subtract_glyph_origin_for_direction</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="returnvalue">hb_blob_t</span></a> *
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-font.html#hb-reference-table-func-t" title="hb_reference_table_func_t ()">*hb_reference_table_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<a name="hb-font-funcs-t"></a><a name="hb-font-t"></a><div class="refsect1">
+<a name="harfbuzz-hb-font.other"></a><h2>Types and Values</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="name">
+<col class="description">
+</colgroup>
+<tbody>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t">hb_font_funcs_t</a></td>
+</tr>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-h-advance-func-t" title="hb_font_get_glyph_h_advance_func_t">hb_font_get_glyph_h_advance_func_t</a></td>
+</tr>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-h-kerning-func-t" title="hb_font_get_glyph_h_kerning_func_t">hb_font_get_glyph_h_kerning_func_t</a></td>
+</tr>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-h-origin-func-t" title="hb_font_get_glyph_h_origin_func_t">hb_font_get_glyph_h_origin_func_t</a></td>
+</tr>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-v-advance-func-t" title="hb_font_get_glyph_v_advance_func_t">hb_font_get_glyph_v_advance_func_t</a></td>
+</tr>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-v-kerning-func-t" title="hb_font_get_glyph_v_kerning_func_t">hb_font_get_glyph_v_kerning_func_t</a></td>
+</tr>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-v-origin-func-t" title="hb_font_get_glyph_v_origin_func_t">hb_font_get_glyph_v_origin_func_t</a></td>
+</tr>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-font.html#hb-font-t">hb_font_t</a></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-font.object-hierarchy"></a><h2>Object Hierarchy</h2>
+<pre class="screen">    GBoxed
+    <span class="lineart">├──</span> hb_font_funcs_t
+    <span class="lineart">╰──</span> hb_font_t
+</pre>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-font.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-font.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="hb-font-add-glyph-origin-for-direction"></a><h3>hb_font_add_glyph_origin_for_direction ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_add_glyph_origin_for_direction
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="type">hb_direction_t</span></a> direction</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *x</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *y</code></em>);</pre>
+<div class="refsect3">
+<a name="idp24857136"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>x</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>y</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-create"></a><h3>hb_font_create ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="returnvalue">hb_font_t</span></a> *
+hb_font_create (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp24877744"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-create-sub-font"></a><h3>hb_font_create_sub_font ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="returnvalue">hb_font_t</span></a> *
+hb_font_create_sub_font (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *parent</code></em>);</pre>
+<div class="refsect3">
+<a name="idp24884992"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>parent</p></td>
+<td class="parameter_description"><p>parent font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp24892496"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-destroy"></a><h3>hb_font_destroy ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_destroy (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>);</pre>
+<div class="refsect3">
+<a name="idp24901696"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-create"></a><h3>hb_font_funcs_create ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="returnvalue">hb_font_funcs_t</span></a> *
+hb_font_funcs_create (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp24915104"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-destroy"></a><h3>hb_font_funcs_destroy ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_funcs_destroy (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>);</pre>
+<div class="refsect3">
+<a name="idp24922352"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-get-empty"></a><h3>hb_font_funcs_get_empty ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="returnvalue">hb_font_funcs_t</span></a> *
+hb_font_funcs_get_empty (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<div class="refsect3">
+<a name="idp24935840"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-get-user-data"></a><h3>hb_font_funcs_get_user_data ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span> *
+hb_font_funcs_get_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>);</pre>
+<div class="refsect3">
+<a name="idp24946416"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp24953920"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-is-immutable"></a><h3>hb_font_funcs_is_immutable ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_font_funcs_is_immutable (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>);</pre>
+<div class="refsect3">
+<a name="idp24963120"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp24970624"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-make-immutable"></a><h3>hb_font_funcs_make_immutable ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_funcs_make_immutable (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>);</pre>
+<div class="refsect3">
+<a name="idp24978416"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-reference"></a><h3>hb_font_funcs_reference ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="returnvalue">hb_font_funcs_t</span></a> *
+hb_font_funcs_reference (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>);</pre>
+<div class="refsect3">
+<a name="idp24992448"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp24999952"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-set-glyph-contour-point-func"></a><h3>hb_font_funcs_set_glyph_contour_point_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_funcs_set_glyph_contour_point_func
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-contour-point-func-t" title="hb_font_get_glyph_contour_point_func_t ()"><span class="type">hb_font_get_glyph_contour_point_func_t</span></a> func</code></em>,
+                                <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25014480"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>func</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym> user_data][<acronym title="This parameter is a 'destroy_data', for callbacks."><span class="acronym">destroy</span></acronym> destroy][<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-set-glyph-extents-func"></a><h3>hb_font_funcs_set_glyph_extents_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_funcs_set_glyph_extents_func (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>,
+                                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-extents-func-t" title="hb_font_get_glyph_extents_func_t ()"><span class="type">hb_font_get_glyph_extents_func_t</span></a> func</code></em>,
+                                      <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25040736"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>func</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym> user_data][<acronym title="This parameter is a 'destroy_data', for callbacks."><span class="acronym">destroy</span></acronym> destroy][<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-set-glyph-from-name-func"></a><h3>hb_font_funcs_set_glyph_from_name_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_funcs_set_glyph_from_name_func
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-from-name-func-t" title="hb_font_get_glyph_from_name_func_t ()"><span class="type">hb_font_get_glyph_from_name_func_t</span></a> func</code></em>,
+                                <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25067056"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-set-glyph-func"></a><h3>hb_font_funcs_set_glyph_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_funcs_set_glyph_func (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>,
+                              <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-func-t" title="hb_font_get_glyph_func_t ()"><span class="type">hb_font_get_glyph_func_t</span></a> func</code></em>,
+                              <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                              <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25088528"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-set-glyph-h-advance-func"></a><h3>hb_font_funcs_set_glyph_h_advance_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_funcs_set_glyph_h_advance_func
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-h-advance-func-t" title="hb_font_get_glyph_h_advance_func_t"><span class="type">hb_font_get_glyph_h_advance_func_t</span></a> func</code></em>,
+                                <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25110128"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>func</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym> user_data][<acronym title="This parameter is a 'destroy_data', for callbacks."><span class="acronym">destroy</span></acronym> destroy][<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-set-glyph-h-kerning-func"></a><h3>hb_font_funcs_set_glyph_h_kerning_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_funcs_set_glyph_h_kerning_func
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-h-kerning-func-t" title="hb_font_get_glyph_h_kerning_func_t"><span class="type">hb_font_get_glyph_h_kerning_func_t</span></a> func</code></em>,
+                                <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25136432"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>func</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym> user_data][<acronym title="This parameter is a 'destroy_data', for callbacks."><span class="acronym">destroy</span></acronym> destroy][<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-set-glyph-h-origin-func"></a><h3>hb_font_funcs_set_glyph_h_origin_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_funcs_set_glyph_h_origin_func (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>,
+                                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-h-origin-func-t" title="hb_font_get_glyph_h_origin_func_t"><span class="type">hb_font_get_glyph_h_origin_func_t</span></a> func</code></em>,
+                                       <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25162752"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>func</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym> user_data][<acronym title="This parameter is a 'destroy_data', for callbacks."><span class="acronym">destroy</span></acronym> destroy][<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-set-glyph-name-func"></a><h3>hb_font_funcs_set_glyph_name_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_funcs_set_glyph_name_func (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>,
+                                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-name-func-t" title="hb_font_get_glyph_name_func_t ()"><span class="type">hb_font_get_glyph_name_func_t</span></a> func</code></em>,
+                                   <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25188992"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-set-glyph-v-advance-func"></a><h3>hb_font_funcs_set_glyph_v_advance_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_funcs_set_glyph_v_advance_func
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-v-advance-func-t" title="hb_font_get_glyph_v_advance_func_t"><span class="type">hb_font_get_glyph_v_advance_func_t</span></a> func</code></em>,
+                                <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25210592"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>func</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym> user_data][<acronym title="This parameter is a 'destroy_data', for callbacks."><span class="acronym">destroy</span></acronym> destroy][<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-set-glyph-v-kerning-func"></a><h3>hb_font_funcs_set_glyph_v_kerning_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_funcs_set_glyph_v_kerning_func
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-v-kerning-func-t" title="hb_font_get_glyph_v_kerning_func_t"><span class="type">hb_font_get_glyph_v_kerning_func_t</span></a> func</code></em>,
+                                <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25236896"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>func</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym> user_data][<acronym title="This parameter is a 'destroy_data', for callbacks."><span class="acronym">destroy</span></acronym> destroy][<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-set-glyph-v-origin-func"></a><h3>hb_font_funcs_set_glyph_v_origin_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_funcs_set_glyph_v_origin_func (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>,
+                                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-get-glyph-v-origin-func-t" title="hb_font_get_glyph_v_origin_func_t"><span class="type">hb_font_get_glyph_v_origin_func_t</span></a> func</code></em>,
+                                       <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25263216"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>func</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym> user_data][<acronym title="This parameter is a 'destroy_data', for callbacks."><span class="acronym">destroy</span></acronym> destroy][<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-funcs-set-user-data"></a><h3>hb_font_funcs_set_user_data ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_font_funcs_set_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *ffuncs</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>,
+                             <em class="parameter"><code><span class="type">void</span> *data</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="type">hb_bool_t</span></a> replace</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25291120"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ffuncs</p></td>
+<td class="parameter_description"><p>font functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25299520"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-empty"></a><h3>hb_font_get_empty ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="returnvalue">hb_font_t</span></a> *
+hb_font_get_empty (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<div class="refsect3">
+<a name="idp25308272"></a><h4>Returns</h4>
+<p> (transfer full)</p>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-face"></a><h3>hb_font_get_face ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+hb_font_get_face (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25318112"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25326512"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph"></a><h3>hb_font_get_glyph ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_font_get_glyph (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> unicode</code></em>,
+                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> variation_selector</code></em>,
+                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *glyph</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25342432"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>glyph</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25354544"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-advance-for-direction"></a><h3>hb_font_get_glyph_advance_for_direction ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_get_glyph_advance_for_direction
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="type">hb_direction_t</span></a> direction</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *x</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *y</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25370832"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>x</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>y</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-advance-func-t"></a><h3>hb_font_get_glyph_advance_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="returnvalue">hb_position_t</span></a>
+<span class="c_punctuation">(</span>*hb_font_get_glyph_advance_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                     <em class="parameter"><code><span class="type">void</span> *font_data</code></em>,
+                                     <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                                     <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp25401296"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-contour-point"></a><h3>hb_font_get_glyph_contour_point ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_font_get_glyph_contour_point (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                 <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                                 <em class="parameter"><code>unsigned <span class="type">int</span> point_index</code></em>,
+                                 <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *x</code></em>,
+                                 <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *y</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25417088"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>x</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>y</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25432912"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-contour-point-for-origin"></a><h3>hb_font_get_glyph_contour_point_for_origin ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_font_get_glyph_contour_point_for_origin
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> point_index</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="type">hb_direction_t</span></a> direction</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *x</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *y</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25451136"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>x</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>y</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25466960"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-contour-point-func-t"></a><h3>hb_font_get_glyph_contour_point_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+<span class="c_punctuation">(</span>*hb_font_get_glyph_contour_point_func_t<span class="c_punctuation">)</span>
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                <em class="parameter"><code><span class="type">void</span> *font_data</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> point_index</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *x</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *y</code></em>,
+                                <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp25488288"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-extents"></a><h3>hb_font_get_glyph_extents ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_font_get_glyph_extents (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                           <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                           <em class="parameter"><code><span class="type">hb_glyph_extents_t</span> *extents</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25500512"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>extents</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25512624"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-extents-for-origin"></a><h3>hb_font_get_glyph_extents_for_origin ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_font_get_glyph_extents_for_origin (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="type">hb_direction_t</span></a> direction</code></em>,
+                                      <em class="parameter"><code><span class="type">hb_glyph_extents_t</span> *extents</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25527232"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>extents</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25539344"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-extents-func-t"></a><h3>hb_font_get_glyph_extents_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+<span class="c_punctuation">(</span>*hb_font_get_glyph_extents_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                     <em class="parameter"><code><span class="type">void</span> *font_data</code></em>,
+                                     <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                                     <em class="parameter"><code><span class="type">hb_glyph_extents_t</span> *extents</code></em>,
+                                     <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp25557120"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-from-name"></a><h3>hb_font_get_glyph_from_name ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_font_get_glyph_from_name (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                             <em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
+                             <em class="parameter"><code><span class="type">int</span> len</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *glyph</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25571216"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>name</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=len]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>glyph</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25587040"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-from-name-func-t"></a><h3>hb_font_get_glyph_from_name_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+<span class="c_punctuation">(</span>*hb_font_get_glyph_from_name_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                       <em class="parameter"><code><span class="type">void</span> *font_data</code></em>,
+                                       <em class="parameter"><code>const <span class="type">char</span> *name</code></em>,
+                                       <em class="parameter"><code><span class="type">int</span> len</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp25603280"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-func-t"></a><h3>hb_font_get_glyph_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+<span class="c_punctuation">(</span>*hb_font_get_glyph_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                             <em class="parameter"><code><span class="type">void</span> *font_data</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> unicode</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> variation_selector</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *glyph</code></em>,
+                             <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp25622080"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-h-advance"></a><h3>hb_font_get_glyph_h_advance ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="returnvalue">hb_position_t</span></a>
+hb_font_get_glyph_h_advance (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25632608"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25641008"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-h-kerning"></a><h3>hb_font_get_glyph_h_kerning ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="returnvalue">hb_position_t</span></a>
+hb_font_get_glyph_h_kerning (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> left_glyph</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> right_glyph</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25653840"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25662240"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-h-origin"></a><h3>hb_font_get_glyph_h_origin ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_font_get_glyph_h_origin (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                            <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                            <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *x</code></em>,
+                            <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *y</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25676768"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>x</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>y</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25692592"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-kerning-for-direction"></a><h3>hb_font_get_glyph_kerning_for_direction ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_get_glyph_kerning_for_direction
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> first_glyph</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> second_glyph</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="type">hb_direction_t</span></a> direction</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *x</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *y</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25710640"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>x</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>y</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-kerning-func-t"></a><h3>hb_font_get_glyph_kerning_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="returnvalue">hb_position_t</span></a>
+<span class="c_punctuation">(</span>*hb_font_get_glyph_kerning_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                     <em class="parameter"><code><span class="type">void</span> *font_data</code></em>,
+                                     <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> first_glyph</code></em>,
+                                     <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> second_glyph</code></em>,
+                                     <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp25742752"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-name"></a><h3>hb_font_get_glyph_name ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_font_get_glyph_name (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                        <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                        <em class="parameter"><code><span class="type">char</span> *name</code></em>,
+                        <em class="parameter"><code>unsigned <span class="type">int</span> size</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25756784"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>name</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=size]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25768896"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-name-func-t"></a><h3>hb_font_get_glyph_name_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+<span class="c_punctuation">(</span>*hb_font_get_glyph_name_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                  <em class="parameter"><code><span class="type">void</span> *font_data</code></em>,
+                                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                                  <em class="parameter"><code><span class="type">char</span> *name</code></em>,
+                                  <em class="parameter"><code>unsigned <span class="type">int</span> size</code></em>,
+                                  <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp25788480"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-origin-for-direction"></a><h3>hb_font_get_glyph_origin_for_direction ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_get_glyph_origin_for_direction
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="type">hb_direction_t</span></a> direction</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *x</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *y</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25804160"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>x</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>y</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-origin-func-t"></a><h3>hb_font_get_glyph_origin_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+<span class="c_punctuation">(</span>*hb_font_get_glyph_origin_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                    <em class="parameter"><code><span class="type">void</span> *font_data</code></em>,
+                                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *x</code></em>,
+                                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *y</code></em>,
+                                    <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp25837968"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-v-advance"></a><h3>hb_font_get_glyph_v_advance ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="returnvalue">hb_position_t</span></a>
+hb_font_get_glyph_v_advance (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25848496"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25856896"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-v-kerning"></a><h3>hb_font_get_glyph_v_kerning ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="returnvalue">hb_position_t</span></a>
+hb_font_get_glyph_v_kerning (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> top_glyph</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> bottom_glyph</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25869728"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25878128"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-v-origin"></a><h3>hb_font_get_glyph_v_origin ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_font_get_glyph_v_origin (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                            <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                            <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *x</code></em>,
+                            <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *y</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25892592"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>x</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>y</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25908416"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-parent"></a><h3>hb_font_get_parent ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="returnvalue">hb_font_t</span></a> *
+hb_font_get_parent (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25917776"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp25926176"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-ppem"></a><h3>hb_font_get_ppem ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_get_ppem (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                  <em class="parameter"><code>unsigned <span class="type">int</span> *x_ppem</code></em>,
+                  <em class="parameter"><code>unsigned <span class="type">int</span> *y_ppem</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25940768"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>x_ppem</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>y_ppem</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-scale"></a><h3>hb_font_get_scale ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_get_scale (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                   <em class="parameter"><code><span class="type">int</span> *x_scale</code></em>,
+                   <em class="parameter"><code><span class="type">int</span> *y_scale</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25967872"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>x_scale</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>y_scale</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-user-data"></a><h3>hb_font_get_user_data ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span> *
+hb_font_get_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>);</pre>
+<div class="refsect3">
+<a name="idp25993280"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp26001680"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-glyph-from-string"></a><h3>hb_font_glyph_from_string ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_font_glyph_from_string (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                           <em class="parameter"><code>const <span class="type">char</span> *s</code></em>,
+                           <em class="parameter"><code><span class="type">int</span> len</code></em>,
+                           <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *glyph</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26017984"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>s</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=len]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>glyph</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp26033808"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-glyph-to-string"></a><h3>hb_font_glyph_to_string ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_glyph_to_string (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                         <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                         <em class="parameter"><code><span class="type">char</span> *s</code></em>,
+                         <em class="parameter"><code>unsigned <span class="type">int</span> size</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26048448"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>s</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=size]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-is-immutable"></a><h3>hb_font_is_immutable ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_font_is_immutable (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26068512"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp26076912"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-make-immutable"></a><h3>hb_font_make_immutable ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_make_immutable (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26086288"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-reference"></a><h3>hb_font_reference ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="returnvalue">hb_font_t</span></a> *
+hb_font_reference (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26102624"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp26111024"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-set-funcs"></a><h3>hb_font_set_funcs ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_set_funcs (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t"><span class="type">hb_font_funcs_t</span></a> *klass</code></em>,
+                   <em class="parameter"><code><span class="type">void</span> *font_data</code></em>,
+                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26127008"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>klass</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'user_data', for callbacks; many bindings can pass NULL here."><span class="acronym">closure</span></acronym> font_data][<acronym title="This parameter is a 'destroy_data', for callbacks."><span class="acronym">destroy</span></acronym> destroy][<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-set-funcs-data"></a><h3>hb_font_set_funcs_data ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_set_funcs_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                        <em class="parameter"><code><span class="type">void</span> *font_data</code></em>,
+                        <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26151456"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>font_data</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'destroy_data', for callbacks."><span class="acronym">destroy</span></acronym> destroy][<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-set-ppem"></a><h3>hb_font_set_ppem ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_set_ppem (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                  <em class="parameter"><code>unsigned <span class="type">int</span> x_ppem</code></em>,
+                  <em class="parameter"><code>unsigned <span class="type">int</span> y_ppem</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26175696"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-set-scale"></a><h3>hb_font_set_scale ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_set_scale (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                   <em class="parameter"><code><span class="type">int</span> x_scale</code></em>,
+                   <em class="parameter"><code><span class="type">int</span> y_scale</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26195376"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-set-user-data"></a><h3>hb_font_set_user_data ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_font_set_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>,
+                       <em class="parameter"><code><span class="type">void</span> *data</code></em>,
+                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>,
+                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="type">hb_bool_t</span></a> replace</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26218448"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp26226848"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-subtract-glyph-origin-for-direction"></a><h3>hb_font_subtract_glyph_origin_for_direction ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_font_subtract_glyph_origin_for_direction
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="type">hb_direction_t</span></a> direction</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *x</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *y</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26243200"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>x</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>y</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-reference-table-func-t"></a><h3>hb_reference_table_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-blob.html#hb-blob-t"><span class="returnvalue">hb_blob_t</span></a> *
+<span class="c_punctuation">(</span>*hb_reference_table_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                              <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> tag</code></em>,
+                              <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp26271920"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-font.other_details"></a><h2>Types and Values</h2>
+<div class="refsect2">
+<a name="hb-font-funcs-t"></a><h3>hb_font_funcs_t</h3>
+<pre class="programlisting">typedef struct hb_font_funcs_t hb_font_funcs_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-h-advance-func-t"></a><h3>hb_font_get_glyph_h_advance_func_t</h3>
+<pre class="programlisting">typedef hb_font_get_glyph_advance_func_t hb_font_get_glyph_h_advance_func_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-h-kerning-func-t"></a><h3>hb_font_get_glyph_h_kerning_func_t</h3>
+<pre class="programlisting">typedef hb_font_get_glyph_kerning_func_t hb_font_get_glyph_h_kerning_func_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-h-origin-func-t"></a><h3>hb_font_get_glyph_h_origin_func_t</h3>
+<pre class="programlisting">typedef hb_font_get_glyph_origin_func_t hb_font_get_glyph_h_origin_func_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-v-advance-func-t"></a><h3>hb_font_get_glyph_v_advance_func_t</h3>
+<pre class="programlisting">typedef hb_font_get_glyph_advance_func_t hb_font_get_glyph_v_advance_func_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-v-kerning-func-t"></a><h3>hb_font_get_glyph_v_kerning_func_t</h3>
+<pre class="programlisting">typedef hb_font_get_glyph_kerning_func_t hb_font_get_glyph_v_kerning_func_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-get-glyph-v-origin-func-t"></a><h3>hb_font_get_glyph_v_origin_func_t</h3>
+<pre class="programlisting">typedef hb_font_get_glyph_origin_func_t hb_font_get_glyph_v_origin_func_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-font-t"></a><h3>hb_font_t</h3>
+<pre class="programlisting">typedef struct hb_font_t hb_font_t;
+</pre>
+<p>
+</p>
+</div>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-ft.html b/docs/reference/html/harfbuzz-hb-ft.html
new file mode 100644 (file)
index 0000000..5194725
--- /dev/null
@@ -0,0 +1,188 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-ft</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-icu.html" title="hb-icu">
+<link rel="next" href="harfbuzz-hb-graphite2.html" title="hb-graphite2">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-ft.description" class="shortcut">Description</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-icu.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-graphite2.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-ft"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-ft.top_of_page"></a>hb-ft</span></h2>
+<p>hb-ft</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ft.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ft.html#hb-ft-face-create" title="hb_ft_face_create ()">hb_ft_face_create</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ft.html#hb-ft-face-create-cached" title="hb_ft_face_create_cached ()">hb_ft_face_create_cached</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="returnvalue">hb_font_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ft.html#hb-ft-font-create" title="hb_ft_font_create ()">hb_ft_font_create</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">FT_Face</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ft.html#hb-ft-font-get-face" title="hb_ft_font_get_face ()">hb_ft_font_get_face</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ft.html#hb-ft-font-set-funcs" title="hb_ft_font_set_funcs ()">hb_ft_font_set_funcs</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ft.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ft.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="hb-ft-face-create"></a><h3>hb_ft_face_create ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+hb_ft_face_create (<em class="parameter"><code><span class="type">FT_Face</span> ft_face</code></em>,
+                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp15898752"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ft_face</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'destroy_data', for callbacks."><span class="acronym">destroy</span></acronym> destroy][<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span></td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp12575376"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ft-face-create-cached"></a><h3>hb_ft_face_create_cached ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="returnvalue">hb_face_t</span></a> *
+hb_ft_face_create_cached (<em class="parameter"><code><span class="type">FT_Face</span> ft_face</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26678384"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ft-font-create"></a><h3>hb_ft_font_create ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="returnvalue">hb_font_t</span></a> *
+hb_ft_font_create (<em class="parameter"><code><span class="type">FT_Face</span> ft_face</code></em>,
+                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp19378304"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ft_face</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="This parameter is a 'destroy_data', for callbacks."><span class="acronym">destroy</span></acronym> destroy][<acronym title="The callback is valid until the GDestroyNotify argument is called."><span class="acronym">scope notified</span></acronym>]</span></td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp24573216"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ft-font-get-face"></a><h3>hb_ft_font_get_face ()</h3>
+<pre class="programlisting"><span class="returnvalue">FT_Face</span>
+hb_ft_font_get_face (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp26520048"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ft-font-set-funcs"></a><h3>hb_ft_font_set_funcs ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_ft_font_set_funcs (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>);</pre>
+<p>
+</p>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ft.other_details"></a><h2>Types and Values</h2>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-glib.html b/docs/reference/html/harfbuzz-hb-glib.html
new file mode 100644 (file)
index 0000000..d8ebd68
--- /dev/null
@@ -0,0 +1,120 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-glib</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-shape-plan.html" title="hb-shape-plan">
+<link rel="next" href="harfbuzz-hb-icu.html" title="hb-icu">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-glib.description" class="shortcut">Description</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-shape-plan.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-icu.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-glib"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-glib.top_of_page"></a>hb-glib</span></h2>
+<p>hb-glib</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-glib.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-glib.html#hb-glib-get-unicode-funcs" title="hb_glib_get_unicode_funcs ()">hb_glib_get_unicode_funcs</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">GUnicodeScript</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-glib.html#hb-glib-script-from-script" title="hb_glib_script_from_script ()">hb_glib_script_from_script</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-glib.html#hb-glib-script-to-script" title="hb_glib_script_to_script ()">hb_glib_script_to_script</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-glib.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-glib.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="hb-glib-get-unicode-funcs"></a><h3>hb_glib_get_unicode_funcs ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+hb_glib_get_unicode_funcs (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp17205360"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-glib-script-from-script"></a><h3>hb_glib_script_from_script ()</h3>
+<pre class="programlisting"><span class="returnvalue">GUnicodeScript</span>
+hb_glib_script_from_script (<em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="type">hb_script_t</span></a> script</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp15952992"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-glib-script-to-script"></a><h3>hb_glib_script_to_script ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+hb_glib_script_to_script (<em class="parameter"><code><span class="type">GUnicodeScript</span> script</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp17801872"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-glib.other_details"></a><h2>Types and Values</h2>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-gobject.html b/docs/reference/html/harfbuzz-hb-gobject.html
new file mode 100644 (file)
index 0000000..2d21692
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-gobject</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-coretext.html" title="hb-coretext">
+<link rel="next" href="object-tree.html" title="Object Hierarchy">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-gobject.description" class="shortcut">Description</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-coretext.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="object-tree.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-gobject"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-gobject.top_of_page"></a>hb-gobject</span></h2>
+<p>hb-gobject</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-gobject.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-gobject.functions_details"></a><h2>Functions</h2>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-gobject.other_details"></a><h2>Types and Values</h2>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-graphite2.html b/docs/reference/html/harfbuzz-hb-graphite2.html
new file mode 100644 (file)
index 0000000..cc51db9
--- /dev/null
@@ -0,0 +1,120 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-graphite2</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-ft.html" title="hb-ft">
+<link rel="next" href="harfbuzz-hb-uniscribe.html" title="hb-uniscribe">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-graphite2.description" class="shortcut">Description</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-ft.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-uniscribe.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-graphite2"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-graphite2.top_of_page"></a>hb-graphite2</span></h2>
+<p>hb-graphite2</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-graphite2.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="function_type">
+<span class="returnvalue">gr_face</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-graphite2.html#hb-graphite2-face-get-gr-face" title="hb_graphite2_face_get_gr_face ()">hb_graphite2_face_get_gr_face</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">gr_font</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-graphite2.html#hb-graphite2-font-get-gr-font" title="hb_graphite2_font_get_gr_font ()">hb_graphite2_font_get_gr_font</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-graphite2.other"></a><h2>Types and Values</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="name">
+<col class="description">
+</colgroup>
+<tbody><tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-graphite2.html#HB-GRAPHITE2-TAG-SILF:CAPS" title="HB_GRAPHITE2_TAG_SILF">HB_GRAPHITE2_TAG_SILF</a></td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-graphite2.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-graphite2.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="hb-graphite2-face-get-gr-face"></a><h3>hb_graphite2_face_get_gr_face ()</h3>
+<pre class="programlisting"><span class="returnvalue">gr_face</span> *
+hb_graphite2_face_get_gr_face (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp9994096"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-graphite2-font-get-gr-font"></a><h3>hb_graphite2_font_get_gr_font ()</h3>
+<pre class="programlisting"><span class="returnvalue">gr_font</span> *
+hb_graphite2_font_get_gr_font (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp18663728"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-graphite2.other_details"></a><h2>Types and Values</h2>
+<div class="refsect2">
+<a name="HB-GRAPHITE2-TAG-SILF:CAPS"></a><h3>HB_GRAPHITE2_TAG_SILF</h3>
+<pre class="programlisting">#define HB_GRAPHITE2_TAG_SILF HB_TAG('S','i','l','f')
+</pre>
+<p>
+</p>
+</div>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-icu.html b/docs/reference/html/harfbuzz-hb-icu.html
new file mode 100644 (file)
index 0000000..77c031c
--- /dev/null
@@ -0,0 +1,120 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-icu</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-glib.html" title="hb-glib">
+<link rel="next" href="harfbuzz-hb-ft.html" title="hb-ft">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-icu.description" class="shortcut">Description</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-glib.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-ft.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-icu"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-icu.top_of_page"></a>hb-icu</span></h2>
+<p>hb-icu</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-icu.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-icu.html#hb-icu-get-unicode-funcs" title="hb_icu_get_unicode_funcs ()">hb_icu_get_unicode_funcs</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">UScriptCode</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-icu.html#hb-icu-script-from-script" title="hb_icu_script_from_script ()">hb_icu_script_from_script</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-icu.html#hb-icu-script-to-script" title="hb_icu_script_to_script ()">hb_icu_script_to_script</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-icu.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-icu.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="hb-icu-get-unicode-funcs"></a><h3>hb_icu_get_unicode_funcs ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+hb_icu_get_unicode_funcs (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp14261024"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-icu-script-from-script"></a><h3>hb_icu_script_from_script ()</h3>
+<pre class="programlisting"><span class="returnvalue">UScriptCode</span>
+hb_icu_script_from_script (<em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="type">hb_script_t</span></a> script</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp24211888"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-icu-script-to-script"></a><h3>hb_icu_script_to_script ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+hb_icu_script_to_script (<em class="parameter"><code><span class="type">UScriptCode</span> script</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp14646672"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-icu.other_details"></a><h2>Types and Values</h2>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-ot-layout.html b/docs/reference/html/harfbuzz-hb-ot-layout.html
new file mode 100644 (file)
index 0000000..32a2663
--- /dev/null
@@ -0,0 +1,771 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-ot-layout</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-ot.html" title="hb-ot">
+<link rel="next" href="harfbuzz-hb-ot-tag.html" title="hb-ot-tag">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-ot-layout.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-ot-layout.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-ot.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-ot-tag.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-ot-layout"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-ot-layout.top_of_page"></a>hb-ot-layout</span></h2>
+<p>hb-ot-layout</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ot-layout.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-collect-lookups" title="hb_ot_layout_collect_lookups ()">hb_ot_layout_collect_lookups</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-feature-get-lookups" title="hb_ot_layout_feature_get_lookups ()">hb_ot_layout_feature_get_lookups</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-get-attach-points" title="hb_ot_layout_get_attach_points ()">hb_ot_layout_get_attach_points</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-glyph-class-t" title="enum hb_ot_layout_glyph_class_t"><span class="returnvalue">hb_ot_layout_glyph_class_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-get-glyph-class" title="hb_ot_layout_get_glyph_class ()">hb_ot_layout_get_glyph_class</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-get-glyphs-in-class" title="hb_ot_layout_get_glyphs_in_class ()">hb_ot_layout_get_glyphs_in_class</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-get-ligature-carets" title="hb_ot_layout_get_ligature_carets ()">hb_ot_layout_get_ligature_carets</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-get-size-params" title="hb_ot_layout_get_size_params ()">hb_ot_layout_get_size_params</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-glyph-sequence-func-t" title="hb_ot_layout_glyph_sequence_func_t ()">*hb_ot_layout_glyph_sequence_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-has-glyph-classes" title="hb_ot_layout_has_glyph_classes ()">hb_ot_layout_has_glyph_classes</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-has-positioning" title="hb_ot_layout_has_positioning ()">hb_ot_layout_has_positioning</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-has-substitution" title="hb_ot_layout_has_substitution ()">hb_ot_layout_has_substitution</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-language-find-feature" title="hb_ot_layout_language_find_feature ()">hb_ot_layout_language_find_feature</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-language-get-feature-indexes" title="hb_ot_layout_language_get_feature_indexes ()">hb_ot_layout_language_get_feature_indexes</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-language-get-feature-tags" title="hb_ot_layout_language_get_feature_tags ()">hb_ot_layout_language_get_feature_tags</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-language-get-required-feature" title="hb_ot_layout_language_get_required_feature ()">hb_ot_layout_language_get_required_feature</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-lookup-collect-glyphs" title="hb_ot_layout_lookup_collect_glyphs ()">hb_ot_layout_lookup_collect_glyphs</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-lookup-substitute-closure" title="hb_ot_layout_lookup_substitute_closure ()">hb_ot_layout_lookup_substitute_closure</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-lookup-would-substitute" title="hb_ot_layout_lookup_would_substitute ()">hb_ot_layout_lookup_would_substitute</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-script-find-language" title="hb_ot_layout_script_find_language ()">hb_ot_layout_script_find_language</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-script-get-language-tags" title="hb_ot_layout_script_get_language_tags ()">hb_ot_layout_script_get_language_tags</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-table-choose-script" title="hb_ot_layout_table_choose_script ()">hb_ot_layout_table_choose_script</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-table-find-script" title="hb_ot_layout_table_find_script ()">hb_ot_layout_table_find_script</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-table-get-feature-tags" title="hb_ot_layout_table_get_feature_tags ()">hb_ot_layout_table_get_feature_tags</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-table-get-script-tags" title="hb_ot_layout_table_get_script_tags ()">hb_ot_layout_table_get_script_tags</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-table-get-lookup-count" title="hb_ot_layout_table_get_lookup_count ()">hb_ot_layout_table_get_lookup_count</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-shape-plan-collect-lookups" title="hb_ot_shape_plan_collect_lookups ()">hb_ot_shape_plan_collect_lookups</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ot-layout.other"></a><h2>Types and Values</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="name">
+<col class="description">
+</colgroup>
+<tbody>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-ot-layout.html#HB-OT-LAYOUT-DEFAULT-LANGUAGE-INDEX:CAPS" title="HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX">HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX</a></td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-ot-layout.html#HB-OT-LAYOUT-NO-FEATURE-INDEX:CAPS" title="HB_OT_LAYOUT_NO_FEATURE_INDEX">HB_OT_LAYOUT_NO_FEATURE_INDEX</a></td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-ot-layout.html#HB-OT-LAYOUT-NO-SCRIPT-INDEX:CAPS" title="HB_OT_LAYOUT_NO_SCRIPT_INDEX">HB_OT_LAYOUT_NO_SCRIPT_INDEX</a></td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-ot-layout.html#HB-OT-TAG-GDEF:CAPS" title="HB_OT_TAG_GDEF">HB_OT_TAG_GDEF</a></td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-ot-layout.html#HB-OT-TAG-GPOS:CAPS" title="HB_OT_TAG_GPOS">HB_OT_TAG_GPOS</a></td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-ot-layout.html#HB-OT-TAG-GSUB:CAPS" title="HB_OT_TAG_GSUB">HB_OT_TAG_GSUB</a></td>
+</tr>
+<tr>
+<td class="datatype_keyword">enum</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-glyph-class-t" title="enum hb_ot_layout_glyph_class_t">hb_ot_layout_glyph_class_t</a></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ot-layout.object-hierarchy"></a><h2>Object Hierarchy</h2>
+<pre class="screen">    GEnum
+    <span class="lineart">╰──</span> hb_ot_layout_glyph_class_t
+</pre>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ot-layout.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ot-layout.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="hb-ot-layout-collect-lookups"></a><h3>hb_ot_layout_collect_lookups ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_ot_layout_collect_lookups (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                              <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>,
+                              <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> *scripts</code></em>,
+                              <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> *languages</code></em>,
+                              <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> *features</code></em>,
+                              <em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *lookup_indexes</code></em>);</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-feature-get-lookups"></a><h3>hb_ot_layout_feature_get_lookups ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_ot_layout_feature_get_lookups (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>,
+                                  <em class="parameter"><code>unsigned <span class="type">int</span> feature_index</code></em>,
+                                  <em class="parameter"><code>unsigned <span class="type">int</span> start_offset</code></em>,
+                                  <em class="parameter"><code>unsigned <span class="type">int</span> *lookup_count</code></em>,
+                                  <em class="parameter"><code>unsigned <span class="type">int</span> *lookup_indexes</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23755552"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-get-attach-points"></a><h3>hb_ot_layout_get_attach_points ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_ot_layout_get_attach_points (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> start_offset</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> *point_count</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> *point_array</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23771216"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-get-glyph-class"></a><h3>hb_ot_layout_get_glyph_class ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-glyph-class-t" title="enum hb_ot_layout_glyph_class_t"><span class="returnvalue">hb_ot_layout_glyph_class_t</span></a>
+hb_ot_layout_get_glyph_class (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                              <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23781312"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-get-glyphs-in-class"></a><h3>hb_ot_layout_get_glyphs_in_class ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_ot_layout_get_glyphs_in_class (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-glyph-class-t" title="enum hb_ot_layout_glyph_class_t"><span class="type">hb_ot_layout_glyph_class_t</span></a> klass</code></em>,
+                                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *glyphs</code></em>);</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-get-ligature-carets"></a><h3>hb_ot_layout_get_ligature_carets ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_ot_layout_get_ligature_carets (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t"><span class="type">hb_direction_t</span></a> direction</code></em>,
+                                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> glyph</code></em>,
+                                  <em class="parameter"><code>unsigned <span class="type">int</span> start_offset</code></em>,
+                                  <em class="parameter"><code>unsigned <span class="type">int</span> *caret_count</code></em>,
+                                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-position-t" title="hb_position_t"><span class="type">hb_position_t</span></a> *caret_array</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23808736"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-get-size-params"></a><h3>hb_ot_layout_get_size_params ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_ot_layout_get_size_params (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                              <em class="parameter"><code>unsigned <span class="type">int</span> *design_size</code></em>,
+                              <em class="parameter"><code>unsigned <span class="type">int</span> *subfamily_id</code></em>,
+                              <em class="parameter"><code>unsigned <span class="type">int</span> *subfamily_name_id</code></em>,
+                              <em class="parameter"><code>unsigned <span class="type">int</span> *range_start</code></em>,
+                              <em class="parameter"><code>unsigned <span class="type">int</span> *range_end</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23826208"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-glyph-sequence-func-t"></a><h3>hb_ot_layout_glyph_sequence_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+<span class="c_punctuation">(</span>*hb_ot_layout_glyph_sequence_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>,
+                                       <em class="parameter"><code>unsigned <span class="type">int</span> lookup_index</code></em>,
+                                       <em class="parameter"><code>const <span class="type">hb_ot_layout_glyph_sequence_t</span> *sequence</code></em>,
+                                       <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23842928"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-has-glyph-classes"></a><h3>hb_ot_layout_has_glyph_classes ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_ot_layout_has_glyph_classes (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23851360"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-has-positioning"></a><h3>hb_ot_layout_has_positioning ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_ot_layout_has_positioning (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23859792"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-has-substitution"></a><h3>hb_ot_layout_has_substitution ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_ot_layout_has_substitution (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23868224"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-language-find-feature"></a><h3>hb_ot_layout_language_find_feature ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_ot_layout_language_find_feature (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>,
+                                    <em class="parameter"><code>unsigned <span class="type">int</span> script_index</code></em>,
+                                    <em class="parameter"><code>unsigned <span class="type">int</span> language_index</code></em>,
+                                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> feature_tag</code></em>,
+                                    <em class="parameter"><code>unsigned <span class="type">int</span> *feature_index</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23885344"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-language-get-feature-indexes"></a><h3>hb_ot_layout_language_get_feature_indexes ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_ot_layout_language_get_feature_indexes
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> script_index</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> language_index</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> start_offset</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> *feature_count</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> *feature_indexes</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23904336"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-language-get-feature-tags"></a><h3>hb_ot_layout_language_get_feature_tags ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_ot_layout_language_get_feature_tags
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> script_index</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> language_index</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> start_offset</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> *feature_count</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> *feature_tags</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23923344"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-language-get-required-feature"></a><h3>hb_ot_layout_language_get_required_feature ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_ot_layout_language_get_required_feature
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> script_index</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> language_index</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> *feature_index</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> *feature_tag</code></em>);</pre>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-lookup-collect-glyphs"></a><h3>hb_ot_layout_lookup_collect_glyphs ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_ot_layout_lookup_collect_glyphs (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>,
+                                    <em class="parameter"><code>unsigned <span class="type">int</span> lookup_index</code></em>,
+                                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *glyphs_before</code></em>,
+                                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *glyphs_input</code></em>,
+                                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *glyphs_after</code></em>,
+                                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *glyphs_output</code></em>);</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-lookup-substitute-closure"></a><h3>hb_ot_layout_lookup_substitute_closure ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_ot_layout_lookup_substitute_closure
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> lookup_index</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *glyphs</code></em>);</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-lookup-would-substitute"></a><h3>hb_ot_layout_lookup_would_substitute ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_ot_layout_lookup_would_substitute (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                      <em class="parameter"><code>unsigned <span class="type">int</span> lookup_index</code></em>,
+                                      <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *glyphs</code></em>,
+                                      <em class="parameter"><code>unsigned <span class="type">int</span> glyphs_length</code></em>,
+                                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="type">hb_bool_t</span></a> zero_context</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23980784"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-script-find-language"></a><h3>hb_ot_layout_script_find_language ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_ot_layout_script_find_language (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>,
+                                   <em class="parameter"><code>unsigned <span class="type">int</span> script_index</code></em>,
+                                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> language_tag</code></em>,
+                                   <em class="parameter"><code>unsigned <span class="type">int</span> *language_index</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp24314880"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-script-get-language-tags"></a><h3>hb_ot_layout_script_get_language_tags ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_ot_layout_script_get_language_tags (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>,
+                                       <em class="parameter"><code>unsigned <span class="type">int</span> script_index</code></em>,
+                                       <em class="parameter"><code>unsigned <span class="type">int</span> start_offset</code></em>,
+                                       <em class="parameter"><code>unsigned <span class="type">int</span> *language_count</code></em>,
+                                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> *language_tags</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp24331840"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-table-choose-script"></a><h3>hb_ot_layout_table_choose_script ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_ot_layout_table_choose_script (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>,
+                                  <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> *script_tags</code></em>,
+                                  <em class="parameter"><code>unsigned <span class="type">int</span> *script_index</code></em>,
+                                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> *chosen_script</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp24347152"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-table-find-script"></a><h3>hb_ot_layout_table_find_script ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_ot_layout_table_find_script (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> script_tag</code></em>,
+                                <em class="parameter"><code>unsigned <span class="type">int</span> *script_index</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp24360656"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-table-get-feature-tags"></a><h3>hb_ot_layout_table_get_feature_tags ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_ot_layout_table_get_feature_tags (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                     <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>,
+                                     <em class="parameter"><code>unsigned <span class="type">int</span> start_offset</code></em>,
+                                     <em class="parameter"><code>unsigned <span class="type">int</span> *feature_count</code></em>,
+                                     <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> *feature_tags</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp24375904"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-table-get-script-tags"></a><h3>hb_ot_layout_table_get_script_tags ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_ot_layout_table_get_script_tags (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>,
+                                    <em class="parameter"><code>unsigned <span class="type">int</span> start_offset</code></em>,
+                                    <em class="parameter"><code>unsigned <span class="type">int</span> *script_count</code></em>,
+                                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> *script_tags</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp24391392"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-table-get-lookup-count"></a><h3>hb_ot_layout_table_get_lookup_count ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_ot_layout_table_get_lookup_count (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                                     <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>);</pre>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-shape-plan-collect-lookups"></a><h3>hb_ot_shape_plan_collect_lookups ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_ot_shape_plan_collect_lookups (<em class="parameter"><code><a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"><span class="type">hb_shape_plan_t</span></a> *shape_plan</code></em>,
+                                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> table_tag</code></em>,
+                                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *lookup_indexes</code></em>);</pre>
+<p>
+</p>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ot-layout.other_details"></a><h2>Types and Values</h2>
+<div class="refsect2">
+<a name="HB-OT-LAYOUT-DEFAULT-LANGUAGE-INDEX:CAPS"></a><h3>HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX</h3>
+<pre class="programlisting">#define HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX 0xFFFFu
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-OT-LAYOUT-NO-FEATURE-INDEX:CAPS"></a><h3>HB_OT_LAYOUT_NO_FEATURE_INDEX</h3>
+<pre class="programlisting">#define HB_OT_LAYOUT_NO_FEATURE_INDEX              0xFFFFu
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-OT-LAYOUT-NO-SCRIPT-INDEX:CAPS"></a><h3>HB_OT_LAYOUT_NO_SCRIPT_INDEX</h3>
+<pre class="programlisting">#define HB_OT_LAYOUT_NO_SCRIPT_INDEX               0xFFFFu
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-OT-TAG-GDEF:CAPS"></a><h3>HB_OT_TAG_GDEF</h3>
+<pre class="programlisting">#define HB_OT_TAG_GDEF HB_TAG('G','D','E','F')
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-OT-TAG-GPOS:CAPS"></a><h3>HB_OT_TAG_GPOS</h3>
+<pre class="programlisting">#define HB_OT_TAG_GPOS HB_TAG('G','P','O','S')
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-OT-TAG-GSUB:CAPS"></a><h3>HB_OT_TAG_GSUB</h3>
+<pre class="programlisting">#define HB_OT_TAG_GSUB HB_TAG('G','S','U','B')
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-layout-glyph-class-t"></a><h3>enum hb_ot_layout_glyph_class_t</h3>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp24443872"></a><h4>Members</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="300px" class="enum_members_name">
+<col class="enum_members_description">
+<col width="200px" class="enum_members_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="enum_member_name"><p><a name="HB-OT-LAYOUT-GLYPH-CLASS-UNCLASSIFIED:CAPS"></a>HB_OT_LAYOUT_GLYPH_CLASS_UNCLASSIFIED</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-OT-LAYOUT-GLYPH-CLASS-BASE-GLYPH:CAPS"></a>HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-OT-LAYOUT-GLYPH-CLASS-LIGATURE:CAPS"></a>HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-OT-LAYOUT-GLYPH-CLASS-MARK:CAPS"></a>HB_OT_LAYOUT_GLYPH_CLASS_MARK</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-OT-LAYOUT-GLYPH-CLASS-COMPONENT:CAPS"></a>HB_OT_LAYOUT_GLYPH_CLASS_COMPONENT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+</div>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-ot-tag.html b/docs/reference/html/harfbuzz-hb-ot-tag.html
new file mode 100644 (file)
index 0000000..e909d29
--- /dev/null
@@ -0,0 +1,172 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-ot-tag</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">
+<link rel="next" href="harfbuzz-hb-shape-plan.html" title="hb-shape-plan">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-ot-tag.description" class="shortcut">Description</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-ot-layout.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-shape-plan.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-ot-tag"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-ot-tag.top_of_page"></a>hb-ot-tag</span></h2>
+<p>hb-ot-tag</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ot-tag.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="returnvalue">hb_tag_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-tag.html#hb-ot-tag-from-language" title="hb_ot_tag_from_language ()">hb_ot_tag_from_language</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-language-t"><span class="returnvalue">hb_language_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-tag.html#hb-ot-tag-to-language" title="hb_ot_tag_to_language ()">hb_ot_tag_to_language</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-tag.html#hb-ot-tag-to-script" title="hb_ot_tag_to_script ()">hb_ot_tag_to_script</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-ot-tag.html#hb-ot-tags-from-script" title="hb_ot_tags_from_script ()">hb_ot_tags_from_script</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ot-tag.other"></a><h2>Types and Values</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="name">
+<col class="description">
+</colgroup>
+<tbody>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-ot-tag.html#HB-OT-TAG-DEFAULT-LANGUAGE:CAPS" title="HB_OT_TAG_DEFAULT_LANGUAGE">HB_OT_TAG_DEFAULT_LANGUAGE</a></td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-ot-tag.html#HB-OT-TAG-DEFAULT-SCRIPT:CAPS" title="HB_OT_TAG_DEFAULT_SCRIPT">HB_OT_TAG_DEFAULT_SCRIPT</a></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ot-tag.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ot-tag.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="hb-ot-tag-from-language"></a><h3>hb_ot_tag_from_language ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="returnvalue">hb_tag_t</span></a>
+hb_ot_tag_from_language (<em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-language-t"><span class="type">hb_language_t</span></a> language</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp17314176"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-tag-to-language"></a><h3>hb_ot_tag_to_language ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-language-t"><span class="returnvalue">hb_language_t</span></a>
+hb_ot_tag_to_language (<em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> tag</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp17962528"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-tag-to-script"></a><h3>hb_ot_tag_to_script ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+hb_ot_tag_to_script (<em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> tag</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp20744864"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-ot-tags-from-script"></a><h3>hb_ot_tags_from_script ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_ot_tags_from_script (<em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="type">hb_script_t</span></a> script</code></em>,
+                        <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> *script_tag_1</code></em>,
+                        <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-tag-t" title="hb_tag_t"><span class="type">hb_tag_t</span></a> *script_tag_2</code></em>);</pre>
+<p>
+</p>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ot-tag.other_details"></a><h2>Types and Values</h2>
+<div class="refsect2">
+<a name="HB-OT-TAG-DEFAULT-LANGUAGE:CAPS"></a><h3>HB_OT_TAG_DEFAULT_LANGUAGE</h3>
+<pre class="programlisting">#define HB_OT_TAG_DEFAULT_LANGUAGE HB_TAG ('d', 'f', 'l', 't')
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-OT-TAG-DEFAULT-SCRIPT:CAPS"></a><h3>HB_OT_TAG_DEFAULT_SCRIPT</h3>
+<pre class="programlisting">#define HB_OT_TAG_DEFAULT_SCRIPT HB_TAG ('D', 'F', 'L', 'T')
+</pre>
+<p>
+</p>
+</div>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-ot.html b/docs/reference/html/harfbuzz-hb-ot.html
new file mode 100644 (file)
index 0000000..9c48aad
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-ot</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-set.html" title="hb-set">
+<link rel="next" href="harfbuzz-hb-ot-layout.html" title="hb-ot-layout">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-ot.description" class="shortcut">Description</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-set.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-ot-layout.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-ot"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-ot.top_of_page"></a>hb-ot</span></h2>
+<p>hb-ot</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ot.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ot.functions_details"></a><h2>Functions</h2>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-ot.other_details"></a><h2>Types and Values</h2>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-set.html b/docs/reference/html/harfbuzz-hb-set.html
new file mode 100644 (file)
index 0000000..3663879
--- /dev/null
@@ -0,0 +1,966 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-set</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-deprecated.html" title="hb-deprecated">
+<link rel="next" href="harfbuzz-hb-ot.html" title="hb-ot">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-set.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-set.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-deprecated.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-ot.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-set"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-set.top_of_page"></a>hb-set</span></h2>
+<p>hb-set</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-set.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-set.html#HB-SET-VALUE-INVALID:CAPS" title="HB_SET_VALUE_INVALID">HB_SET_VALUE_INVALID</a></td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-add" title="hb_set_add ()">hb_set_add</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-add-range" title="hb_set_add_range ()">hb_set_add_range</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-allocation-successful" title="hb_set_allocation_successful ()">hb_set_allocation_successful</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-clear" title="hb_set_clear ()">hb_set_clear</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="returnvalue">hb_set_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-create" title="hb_set_create ()">hb_set_create</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-del" title="hb_set_del ()">hb_set_del</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-del-range" title="hb_set_del_range ()">hb_set_del_range</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-destroy" title="hb_set_destroy ()">hb_set_destroy</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="returnvalue">hb_set_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-get-empty" title="hb_set_get_empty ()">hb_set_get_empty</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="returnvalue">hb_codepoint_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-get-max" title="hb_set_get_max ()">hb_set_get_max</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="returnvalue">hb_codepoint_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-get-min" title="hb_set_get_min ()">hb_set_get_min</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-get-population" title="hb_set_get_population ()">hb_set_get_population</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-get-user-data" title="hb_set_get_user_data ()">hb_set_get_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-has" title="hb_set_has ()">hb_set_has</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-intersect" title="hb_set_intersect ()">hb_set_intersect</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-invert" title="hb_set_invert ()">hb_set_invert</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-is-empty" title="hb_set_is_empty ()">hb_set_is_empty</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-is-equal" title="hb_set_is_equal ()">hb_set_is_equal</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-next" title="hb_set_next ()">hb_set_next</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-next-range" title="hb_set_next_range ()">hb_set_next_range</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="returnvalue">hb_set_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-reference" title="hb_set_reference ()">hb_set_reference</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-set" title="hb_set_set ()">hb_set_set</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-set-user-data" title="hb_set_set_user_data ()">hb_set_set_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-subtract" title="hb_set_subtract ()">hb_set_subtract</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-symmetric-difference" title="hb_set_symmetric_difference ()">hb_set_symmetric_difference</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-set.html#hb-set-union" title="hb_set_union ()">hb_set_union</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<a name="hb-set-t"></a><div class="refsect1">
+<a name="harfbuzz-hb-set.other"></a><h2>Types and Values</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="name">
+<col class="description">
+</colgroup>
+<tbody><tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-set.html#hb-set-t">hb_set_t</a></td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-set.object-hierarchy"></a><h2>Object Hierarchy</h2>
+<pre class="screen">    GBoxed
+    <span class="lineart">╰──</span> hb_set_t
+</pre>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-set.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-set.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="HB-SET-VALUE-INVALID:CAPS"></a><h3>HB_SET_VALUE_INVALID</h3>
+<pre class="programlisting">#define HB_SET_VALUE_INVALID ((hb_codepoint_t) -1)
+</pre>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-add"></a><h3>hb_set_add ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_set_add (<em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>,
+            <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> codepoint</code></em>);</pre>
+<div class="refsect3">
+<a name="idp23360080"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-add-range"></a><h3>hb_set_add_range ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_set_add_range (<em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>,
+                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> first</code></em>,
+                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> last</code></em>);</pre>
+<div class="refsect3">
+<a name="idp23503168"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-allocation-successful"></a><h3>hb_set_allocation_successful ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_set_allocation_successful (<em class="parameter"><code>const <a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>);</pre>
+<div class="refsect3">
+<a name="idp23519440"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp23527840"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-clear"></a><h3>hb_set_clear ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_set_clear (<em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>);</pre>
+<div class="refsect3">
+<a name="idp23536864"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-create"></a><h3>hb_set_create ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="returnvalue">hb_set_t</span></a> *
+hb_set_create (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp23552176"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-del"></a><h3>hb_set_del ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_set_del (<em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>,
+            <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> codepoint</code></em>);</pre>
+<div class="refsect3">
+<a name="idp23562208"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-del-range"></a><h3>hb_set_del_range ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_set_del_range (<em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>,
+                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> first</code></em>,
+                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> last</code></em>);</pre>
+<div class="refsect3">
+<a name="idp23581440"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-destroy"></a><h3>hb_set_destroy ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_set_destroy (<em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>);</pre>
+<div class="refsect3">
+<a name="idp23597440"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-get-empty"></a><h3>hb_set_get_empty ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="returnvalue">hb_set_t</span></a> *
+hb_set_get_empty (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<div class="refsect3">
+<a name="idp23612832"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-get-max"></a><h3>hb_set_get_max ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="returnvalue">hb_codepoint_t</span></a>
+hb_set_get_max (<em class="parameter"><code>const <a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>);</pre>
+<p>Finds the maximum number in the set.</p>
+<div class="refsect3">
+<a name="idp23624144"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp23632544"></a><h4>Returns</h4>
+<p> minimum of the set, or <a class="link" href="harfbuzz-hb-set.html#HB-SET-VALUE-INVALID:CAPS" title="HB_SET_VALUE_INVALID"><code class="literal">HB_SET_VALUE_INVALID</code></a> if set is empty.</p>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-get-min"></a><h3>hb_set_get_min ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="returnvalue">hb_codepoint_t</span></a>
+hb_set_get_min (<em class="parameter"><code>const <a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>);</pre>
+<p>Finds the minimum number in the set.</p>
+<div class="refsect3">
+<a name="idp23644080"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp23652480"></a><h4>Returns</h4>
+<p> minimum of the set, or <a class="link" href="harfbuzz-hb-set.html#HB-SET-VALUE-INVALID:CAPS" title="HB_SET_VALUE_INVALID"><code class="literal">HB_SET_VALUE_INVALID</code></a> if set is empty.</p>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-get-population"></a><h3>hb_set_get_population ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_set_get_population (<em class="parameter"><code>const <a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>);</pre>
+<p>Returns the number of numbers in the set.</p>
+<div class="refsect3">
+<a name="idp23664176"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp23672576"></a><h4>Returns</h4>
+<p> set population.</p>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-get-user-data"></a><h3>hb_set_get_user_data ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span> *
+hb_set_get_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>,
+                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>);</pre>
+<div class="refsect3">
+<a name="idp23683760"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp23692160"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-has"></a><h3>hb_set_has ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_set_has (<em class="parameter"><code>const <a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>,
+            <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> codepoint</code></em>);</pre>
+<div class="refsect3">
+<a name="idp23704576"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp23712976"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-intersect"></a><h3>hb_set_intersect ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_set_intersect (<em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>,
+                  <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *other</code></em>);</pre>
+<div class="refsect3">
+<a name="idp23723792"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-invert"></a><h3>hb_set_invert ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_set_invert (<em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>);</pre>
+<div class="refsect3">
+<a name="idp23739792"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-is-empty"></a><h3>hb_set_is_empty ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_set_is_empty (<em class="parameter"><code>const <a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26791456"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp26798960"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-is-equal"></a><h3>hb_set_is_equal ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_set_is_equal (<em class="parameter"><code>const <a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>,
+                 <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *other</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26808416"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp26815808"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-next"></a><h3>hb_set_next ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_set_next (<em class="parameter"><code>const <a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>,
+             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *codepoint</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26825120"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>codepoint</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp26835952"></a><h4>Returns</h4>
+<p> whether there was a next value.</p>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-next-range"></a><h3>hb_set_next_range ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_set_next_range (<em class="parameter"><code>const <a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>,
+                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *first</code></em>,
+                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *last</code></em>);</pre>
+<p>Gets the next consecutive range of numbers in <em class="parameter"><code>set</code></em>
+ that
+are greater than current value of <em class="parameter"><code>last</code></em>
+.</p>
+<div class="refsect3">
+<a name="idp26848880"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>first</p></td>
+<td class="parameter_description"><p> output first codepoint in the range. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>last</p></td>
+<td class="parameter_description"><p> input current last and output last codepoint in the range. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp26863040"></a><h4>Returns</h4>
+<p> whether there was a next range.</p>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-reference"></a><h3>hb_set_reference ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="returnvalue">hb_set_t</span></a> *
+hb_set_reference (<em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26871264"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp26878768"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-set"></a><h3>hb_set_set ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_set_set (<em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>,
+            <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *other</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26889488"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-set-user-data"></a><h3>hb_set_set_user_data ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_set_set_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>,
+                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>,
+                      <em class="parameter"><code><span class="type">void</span> *data</code></em>,
+                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>,
+                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="type">hb_bool_t</span></a> replace</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26909024"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>data</p></td>
+<td class="parameter_description"><p><em class="parameter"><code>destroy</code></em>
+(closure data):</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp26919424"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-subtract"></a><h3>hb_set_subtract ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_set_subtract (<em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>,
+                 <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *other</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26928736"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-symmetric-difference"></a><h3>hb_set_symmetric_difference ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_set_symmetric_difference (<em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>,
+                             <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *other</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26944288"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-set-union"></a><h3>hb_set_union ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_set_union (<em class="parameter"><code><a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *set</code></em>,
+              <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-set.html#hb-set-t"><span class="type">hb_set_t</span></a> *other</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26959840"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>set</p></td>
+<td class="parameter_description"><p>a set.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-set.other_details"></a><h2>Types and Values</h2>
+<div class="refsect2">
+<a name="hb-set-t"></a><h3>hb_set_t</h3>
+<pre class="programlisting">typedef struct hb_set_t hb_set_t;
+</pre>
+<p>
+</p>
+</div>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-shape-plan.html b/docs/reference/html/harfbuzz-hb-shape-plan.html
new file mode 100644 (file)
index 0000000..0fd311f
--- /dev/null
@@ -0,0 +1,405 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-shape-plan</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-ot-tag.html" title="hb-ot-tag">
+<link rel="next" href="harfbuzz-hb-glib.html" title="hb-glib">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-shape-plan.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-shape-plan.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-ot-tag.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-glib.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-shape-plan"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-shape-plan.top_of_page"></a>hb-shape-plan</span></h2>
+<p>hb-shape-plan</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-shape-plan.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"><span class="returnvalue">hb_shape_plan_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-create" title="hb_shape_plan_create ()">hb_shape_plan_create</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"><span class="returnvalue">hb_shape_plan_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-create-cached" title="hb_shape_plan_create_cached ()">hb_shape_plan_create_cached</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-destroy" title="hb_shape_plan_destroy ()">hb_shape_plan_destroy</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-execute" title="hb_shape_plan_execute ()">hb_shape_plan_execute</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"><span class="returnvalue">hb_shape_plan_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-get-empty" title="hb_shape_plan_get_empty ()">hb_shape_plan_get_empty</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">const <span class="returnvalue">char</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-get-shaper" title="hb_shape_plan_get_shaper ()">hb_shape_plan_get_shaper</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-get-user-data" title="hb_shape_plan_get_user_data ()">hb_shape_plan_get_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"><span class="returnvalue">hb_shape_plan_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-reference" title="hb_shape_plan_reference ()">hb_shape_plan_reference</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-set-user-data" title="hb_shape_plan_set_user_data ()">hb_shape_plan_set_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<a name="hb-shape-plan-t"></a><div class="refsect1">
+<a name="harfbuzz-hb-shape-plan.other"></a><h2>Types and Values</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="name">
+<col class="description">
+</colgroup>
+<tbody><tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t">hb_shape_plan_t</a></td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-shape-plan.object-hierarchy"></a><h2>Object Hierarchy</h2>
+<pre class="screen">    GBoxed
+    <span class="lineart">╰──</span> hb_shape_plan_t
+</pre>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-shape-plan.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-shape-plan.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="hb-shape-plan-create"></a><h3>hb_shape_plan_create ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"><span class="returnvalue">hb_shape_plan_t</span></a> *
+hb_shape_plan_create (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                      <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> *props</code></em>,
+                      <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-shape.html#hb-feature-t"><span class="type">hb_feature_t</span></a> *user_features</code></em>,
+                      <em class="parameter"><code>unsigned <span class="type">int</span> num_user_features</code></em>,
+                      <em class="parameter"><code>const <span class="type">char</span> * const *shaper_list</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp19672080"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-shape-plan-create-cached"></a><h3>hb_shape_plan_create_cached ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"><span class="returnvalue">hb_shape_plan_t</span></a> *
+hb_shape_plan_create_cached (<em class="parameter"><code><a class="link" href="harfbuzz-hb-face.html#hb-face-t"><span class="type">hb_face_t</span></a> *face</code></em>,
+                             <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t"><span class="type">hb_segment_properties_t</span></a> *props</code></em>,
+                             <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-shape.html#hb-feature-t"><span class="type">hb_feature_t</span></a> *user_features</code></em>,
+                             <em class="parameter"><code>unsigned <span class="type">int</span> num_user_features</code></em>,
+                             <em class="parameter"><code>const <span class="type">char</span> * const *shaper_list</code></em>);</pre>
+<div class="refsect3">
+<a name="idp18027296"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>user_features</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=num_user_features]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>shaper_list</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp21113632"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-shape-plan-destroy"></a><h3>hb_shape_plan_destroy ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_shape_plan_destroy (<em class="parameter"><code><a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"><span class="type">hb_shape_plan_t</span></a> *shape_plan</code></em>);</pre>
+<div class="refsect3">
+<a name="idp18653136"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>shape_plan</p></td>
+<td class="parameter_description"><p>a shape plan.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-shape-plan-execute"></a><h3>hb_shape_plan_execute ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_shape_plan_execute (<em class="parameter"><code><a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"><span class="type">hb_shape_plan_t</span></a> *shape_plan</code></em>,
+                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+                       <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-shape.html#hb-feature-t"><span class="type">hb_feature_t</span></a> *features</code></em>,
+                       <em class="parameter"><code>unsigned <span class="type">int</span> num_features</code></em>);</pre>
+<div class="refsect3">
+<a name="idp26555664"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>shape_plan</p></td>
+<td class="parameter_description"><p>a shape plan.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>features</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=num_features]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp24004304"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-shape-plan-get-empty"></a><h3>hb_shape_plan_get_empty ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"><span class="returnvalue">hb_shape_plan_t</span></a> *
+hb_shape_plan_get_empty (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<div class="refsect3">
+<a name="idp24012816"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-shape-plan-get-shaper"></a><h3>hb_shape_plan_get_shaper ()</h3>
+<pre class="programlisting">const <span class="returnvalue">char</span> *
+hb_shape_plan_get_shaper (<em class="parameter"><code><a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"><span class="type">hb_shape_plan_t</span></a> *shape_plan</code></em>);</pre>
+<div class="refsect3">
+<a name="idp24023712"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>shape_plan</p></td>
+<td class="parameter_description"><p>a shape plan.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp24032112"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-shape-plan-get-user-data"></a><h3>hb_shape_plan_get_user_data ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span> *
+hb_shape_plan_get_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"><span class="type">hb_shape_plan_t</span></a> *shape_plan</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>);</pre>
+<div class="refsect3">
+<a name="idp24044464"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>shape_plan</p></td>
+<td class="parameter_description"><p>a shape plan.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp24052864"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-shape-plan-reference"></a><h3>hb_shape_plan_reference ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"><span class="returnvalue">hb_shape_plan_t</span></a> *
+hb_shape_plan_reference (<em class="parameter"><code><a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"><span class="type">hb_shape_plan_t</span></a> *shape_plan</code></em>);</pre>
+<div class="refsect3">
+<a name="idp24063584"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>shape_plan</p></td>
+<td class="parameter_description"><p>a shape plan.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp24071984"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-shape-plan-set-user-data"></a><h3>hb_shape_plan_set_user_data ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_shape_plan_set_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"><span class="type">hb_shape_plan_t</span></a> *shape_plan</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>,
+                             <em class="parameter"><code><span class="type">void</span> *data</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="type">hb_bool_t</span></a> replace</code></em>);</pre>
+<div class="refsect3">
+<a name="idp24089232"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>shape_plan</p></td>
+<td class="parameter_description"><p>a shape plan.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp24097632"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-shape-plan.other_details"></a><h2>Types and Values</h2>
+<div class="refsect2">
+<a name="hb-shape-plan-t"></a><h3>hb_shape_plan_t</h3>
+<pre class="programlisting">typedef struct hb_shape_plan_t hb_shape_plan_t;
+</pre>
+<p>
+</p>
+</div>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-shape.html b/docs/reference/html/harfbuzz-hb-shape.html
new file mode 100644 (file)
index 0000000..288025d
--- /dev/null
@@ -0,0 +1,286 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-shape</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-font.html" title="hb-font">
+<link rel="next" href="harfbuzz-hb-version.html" title="hb-version">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-shape.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-shape.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-font.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-version.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-shape"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-shape.top_of_page"></a>hb-shape</span></h2>
+<p>hb-shape</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-shape.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-shape.html#hb-feature-from-string" title="hb_feature_from_string ()">hb_feature_from_string</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-shape.html#hb-feature-to-string" title="hb_feature_to_string ()">hb_feature_to_string</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-shape.html#hb-shape" title="hb_shape ()">hb_shape</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-shape.html#hb-shape-full" title="hb_shape_full ()">hb_shape_full</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">const <span class="returnvalue">char</span> **
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-shape.html#hb-shape-list-shapers" title="hb_shape_list_shapers ()">hb_shape_list_shapers</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<a name="hb-feature-t"></a><div class="refsect1">
+<a name="harfbuzz-hb-shape.other"></a><h2>Types and Values</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="name">
+<col class="description">
+</colgroup>
+<tbody><tr>
+<td class="datatype_keyword"> </td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-shape.html#hb-feature-t-struct" title="hb_feature_t">hb_feature_t</a></td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-shape.object-hierarchy"></a><h2>Object Hierarchy</h2>
+<pre class="screen">    GBoxed
+    <span class="lineart">╰──</span> hb_feature_t
+</pre>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-shape.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-shape.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="hb-feature-from-string"></a><h3>hb_feature_from_string ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_feature_from_string (<em class="parameter"><code>const <span class="type">char</span> *str</code></em>,
+                        <em class="parameter"><code><span class="type">int</span> len</code></em>,
+                        <em class="parameter"><code><a class="link" href="harfbuzz-hb-shape.html#hb-feature-t"><span class="type">hb_feature_t</span></a> *feature</code></em>);</pre>
+<div class="refsect3">
+<a name="idp17629440"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>str</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=len]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>feature</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp15995600"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-feature-to-string"></a><h3>hb_feature_to_string ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_feature_to_string (<em class="parameter"><code><a class="link" href="harfbuzz-hb-shape.html#hb-feature-t"><span class="type">hb_feature_t</span></a> *feature</code></em>,
+                      <em class="parameter"><code><span class="type">char</span> *buf</code></em>,
+                      <em class="parameter"><code>unsigned <span class="type">int</span> size</code></em>);</pre>
+<div class="refsect3">
+<a name="idp17672592"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>buf</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=size]</span></td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-shape"></a><h3>hb_shape ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_shape (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+          <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+          <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-shape.html#hb-feature-t"><span class="type">hb_feature_t</span></a> *features</code></em>,
+          <em class="parameter"><code>unsigned <span class="type">int</span> num_features</code></em>);</pre>
+<div class="refsect3">
+<a name="idp16399600"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>features</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=num_features]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-shape-full"></a><h3>hb_shape_full ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_shape_full (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>,
+               <em class="parameter"><code><a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t"><span class="type">hb_buffer_t</span></a> *buffer</code></em>,
+               <em class="parameter"><code>const <a class="link" href="harfbuzz-hb-shape.html#hb-feature-t"><span class="type">hb_feature_t</span></a> *features</code></em>,
+               <em class="parameter"><code>unsigned <span class="type">int</span> num_features</code></em>,
+               <em class="parameter"><code>const <span class="type">char</span> * const *shaper_list</code></em>);</pre>
+<div class="refsect3">
+<a name="idp14558768"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>font</p></td>
+<td class="parameter_description"><p>a font.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>buffer</p></td>
+<td class="parameter_description"><p>a buffer.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>features</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=num_features]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>shaper_list</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> zero-terminated=1]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp22383984"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-shape-list-shapers"></a><h3>hb_shape_list_shapers ()</h3>
+<pre class="programlisting">const <span class="returnvalue">char</span> **
+hb_shape_list_shapers (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<div class="refsect3">
+<a name="idp22392608"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-shape.other_details"></a><h2>Types and Values</h2>
+<div class="refsect2">
+<a name="hb-feature-t-struct"></a><h3>hb_feature_t</h3>
+<pre class="programlisting">typedef struct {
+  hb_tag_t      tag;
+  uint32_t      value;
+  unsigned int  start;
+  unsigned int  end;
+} hb_feature_t;
+</pre>
+<p>
+</p>
+</div>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-unicode.html b/docs/reference/html/harfbuzz-hb-unicode.html
new file mode 100644 (file)
index 0000000..a5ee566
--- /dev/null
@@ -0,0 +1,1523 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-unicode</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-common.html" title="hb-common">
+<link rel="next" href="harfbuzz-hb-buffer.html" title="hb-buffer">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-unicode.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-unicode.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-common.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-buffer.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-unicode"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-unicode.top_of_page"></a>hb-unicode</span></h2>
+<p>hb-unicode</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-unicode.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-unicode.html#HB-UNICODE-MAX-DECOMPOSITION-LEN:CAPS" title="HB_UNICODE_MAX_DECOMPOSITION_LEN">HB_UNICODE_MAX_DECOMPOSITION_LEN</a></td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-combining-class-t" title="enum hb_unicode_combining_class_t"><span class="returnvalue">hb_unicode_combining_class_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-combining-class" title="hb_unicode_combining_class ()">hb_unicode_combining_class</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-combining-class-t" title="enum hb_unicode_combining_class_t"><span class="returnvalue">hb_unicode_combining_class_t</span></a>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-combining-class-func-t" title="hb_unicode_combining_class_func_t ()">*hb_unicode_combining_class_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-compose" title="hb_unicode_compose ()">hb_unicode_compose</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-compose-func-t" title="hb_unicode_compose_func_t ()">*hb_unicode_compose_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-decompose" title="hb_unicode_decompose ()">hb_unicode_decompose</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-decompose-compatibility" title="hb_unicode_decompose_compatibility ()">hb_unicode_decompose_compatibility</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-decompose-func-t" title="hb_unicode_decompose_func_t ()">*hb_unicode_decompose_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">unsigned <span class="returnvalue">int</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-eastasian-width" title="hb_unicode_eastasian_width ()">hb_unicode_eastasian_width</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-create" title="hb_unicode_funcs_create ()">hb_unicode_funcs_create</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-destroy" title="hb_unicode_funcs_destroy ()">hb_unicode_funcs_destroy</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-get-default" title="hb_unicode_funcs_get_default ()">hb_unicode_funcs_get_default</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-get-empty" title="hb_unicode_funcs_get_empty ()">hb_unicode_funcs_get_empty</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-get-parent" title="hb_unicode_funcs_get_parent ()">hb_unicode_funcs_get_parent</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-get-user-data" title="hb_unicode_funcs_get_user_data ()">hb_unicode_funcs_get_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-is-immutable" title="hb_unicode_funcs_is_immutable ()">hb_unicode_funcs_is_immutable</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-make-immutable" title="hb_unicode_funcs_make_immutable ()">hb_unicode_funcs_make_immutable</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-reference" title="hb_unicode_funcs_reference ()">hb_unicode_funcs_reference</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-combining-class-func" title="hb_unicode_funcs_set_combining_class_func ()">hb_unicode_funcs_set_combining_class_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-compose-func" title="hb_unicode_funcs_set_compose_func ()">hb_unicode_funcs_set_compose_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-decompose-compatibility-func" title="hb_unicode_funcs_set_decompose_compatibility_func ()">hb_unicode_funcs_set_decompose_compatibility_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-decompose-func" title="hb_unicode_funcs_set_decompose_func ()">hb_unicode_funcs_set_decompose_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-eastasian-width-func" title="hb_unicode_funcs_set_eastasian_width_func ()">hb_unicode_funcs_set_eastasian_width_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-general-category-func" title="hb_unicode_funcs_set_general_category_func ()">hb_unicode_funcs_set_general_category_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-mirroring-func" title="hb_unicode_funcs_set_mirroring_func ()">hb_unicode_funcs_set_mirroring_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-script-func" title="hb_unicode_funcs_set_script_func ()">hb_unicode_funcs_set_script_func</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-user-data" title="hb_unicode_funcs_set_user_data ()">hb_unicode_funcs_set_user_data</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-general-category-t" title="enum hb_unicode_general_category_t"><span class="returnvalue">hb_unicode_general_category_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-general-category" title="hb_unicode_general_category ()">hb_unicode_general_category</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-general-category-t" title="enum hb_unicode_general_category_t"><span class="returnvalue">hb_unicode_general_category_t</span></a>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-general-category-func-t" title="hb_unicode_general_category_func_t ()">*hb_unicode_general_category_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="returnvalue">hb_codepoint_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-mirroring" title="hb_unicode_mirroring ()">hb_unicode_mirroring</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="returnvalue">hb_codepoint_t</span></a>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-mirroring-func-t" title="hb_unicode_mirroring_func_t ()">*hb_unicode_mirroring_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-script" title="hb_unicode_script ()">hb_unicode_script</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+</td>
+<td class="function_name">
+<span class="c_punctuation">(</span><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-script-func-t" title="hb_unicode_script_func_t ()">*hb_unicode_script_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<a name="hb-unicode-funcs-t"></a><div class="refsect1">
+<a name="harfbuzz-hb-unicode.other"></a><h2>Types and Values</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="name">
+<col class="description">
+</colgroup>
+<tbody>
+<tr>
+<td class="datatype_keyword">enum</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-combining-class-t" title="enum hb_unicode_combining_class_t">hb_unicode_combining_class_t</a></td>
+</tr>
+<tr>
+<td class="typedef_keyword">typedef</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t">hb_unicode_funcs_t</a></td>
+</tr>
+<tr>
+<td class="datatype_keyword">enum</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-general-category-t" title="enum hb_unicode_general_category_t">hb_unicode_general_category_t</a></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-unicode.object-hierarchy"></a><h2>Object Hierarchy</h2>
+<pre class="screen">    GBoxed
+    <span class="lineart">╰──</span> hb_unicode_funcs_t
+    GEnum
+    <span class="lineart">├──</span> hb_unicode_combining_class_t
+    <span class="lineart">╰──</span> hb_unicode_general_category_t
+</pre>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-unicode.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-unicode.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="HB-UNICODE-MAX-DECOMPOSITION-LEN:CAPS"></a><h3>HB_UNICODE_MAX_DECOMPOSITION_LEN</h3>
+<pre class="programlisting">#define HB_UNICODE_MAX_DECOMPOSITION_LEN (18+1) /* codepoints */
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-combining-class"></a><h3>hb_unicode_combining_class ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-combining-class-t" title="enum hb_unicode_combining_class_t"><span class="returnvalue">hb_unicode_combining_class_t</span></a>
+hb_unicode_combining_class (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                            <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> unicode</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp19818576"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-combining-class-func-t"></a><h3>hb_unicode_combining_class_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-combining-class-t" title="enum hb_unicode_combining_class_t"><span class="returnvalue">hb_unicode_combining_class_t</span></a>
+<span class="c_punctuation">(</span>*hb_unicode_combining_class_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> unicode</code></em>,
+                                      <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp19831776"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-compose"></a><h3>hb_unicode_compose ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_unicode_compose (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> a</code></em>,
+                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> b</code></em>,
+                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *ab</code></em>);</pre>
+<div class="refsect3">
+<a name="idp19845040"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>Unicode functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>ab</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp19857152"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-compose-func-t"></a><h3>hb_unicode_compose_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+<span class="c_punctuation">(</span>*hb_unicode_compose_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                              <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> a</code></em>,
+                              <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> b</code></em>,
+                              <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *ab</code></em>,
+                              <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp19874288"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-decompose"></a><h3>hb_unicode_decompose ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_unicode_decompose (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> ab</code></em>,
+                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *a</code></em>,
+                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *b</code></em>);</pre>
+<div class="refsect3">
+<a name="idp19887632"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>Unicode functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>a</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>b</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp19903456"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-decompose-compatibility"></a><h3>hb_unicode_decompose_compatibility ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_unicode_decompose_compatibility (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> u</code></em>,
+                                    <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *decomposed</code></em>);</pre>
+<div class="refsect3">
+<a name="idp19916016"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>Unicode functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>decomposed</p></td>
+<td class="parameter_description"><p>. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp19928128"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-decompose-func-t"></a><h3>hb_unicode_decompose_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+<span class="c_punctuation">(</span>*hb_unicode_decompose_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> ab</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *a</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> *b</code></em>,
+                                <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp19945264"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-eastasian-width"></a><h3>hb_unicode_eastasian_width ()</h3>
+<pre class="programlisting">unsigned <span class="returnvalue">int</span>
+hb_unicode_eastasian_width (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                            <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> unicode</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp19955504"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-create"></a><h3>hb_unicode_funcs_create ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+hb_unicode_funcs_create (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *parent</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp19963936"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-destroy"></a><h3>hb_unicode_funcs_destroy ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_unicode_funcs_destroy (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>);</pre>
+<div class="refsect3">
+<a name="idp19972448"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>Unicode functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-get-default"></a><h3>hb_unicode_funcs_get_default ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+hb_unicode_funcs_get_default (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp19987856"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-get-empty"></a><h3>hb_unicode_funcs_get_empty ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+hb_unicode_funcs_get_empty (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<div class="refsect3">
+<a name="idp19995760"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-get-parent"></a><h3>hb_unicode_funcs_get_parent ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+hb_unicode_funcs_get_parent (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>);</pre>
+<div class="refsect3">
+<a name="idp20006480"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>Unicode functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp20014880"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-get-user-data"></a><h3>hb_unicode_funcs_get_user_data ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span> *
+hb_unicode_funcs_get_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>);</pre>
+<div class="refsect3">
+<a name="idp20025632"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>Unicode functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp20034032"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-is-immutable"></a><h3>hb_unicode_funcs_is_immutable ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_unicode_funcs_is_immutable (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21543488"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>Unicode functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp21550992"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-make-immutable"></a><h3>hb_unicode_funcs_make_immutable ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_unicode_funcs_make_immutable (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21558784"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>Unicode functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-reference"></a><h3>hb_unicode_funcs_reference ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="returnvalue">hb_unicode_funcs_t</span></a> *
+hb_unicode_funcs_reference (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21572816"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>Unicode functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp21580320"></a><h4>Returns</h4>
+<p>. </p>
+<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-set-combining-class-func"></a><h3>hb_unicode_funcs_set_combining_class_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_unicode_funcs_set_combining_class_func
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-combining-class-func-t" title="hb_unicode_combining_class_func_t ()"><span class="type">hb_unicode_combining_class_func_t</span></a> func</code></em>,
+                                <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21593648"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>a Unicode function structure</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-set-compose-func"></a><h3>hb_unicode_funcs_set_compose_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_unicode_funcs_set_compose_func (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-compose-func-t" title="hb_unicode_compose_func_t ()"><span class="type">hb_unicode_compose_func_t</span></a> func</code></em>,
+                                   <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21611808"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>a Unicode function structure</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-set-decompose-compatibility-func"></a><h3>hb_unicode_funcs_set_decompose_compatibility_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_unicode_funcs_set_decompose_compatibility_func
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                                <em class="parameter"><code><span class="type">hb_unicode_decompose_compatibility_func_t</span> func</code></em>,
+                                <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21629968"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>a Unicode function structure</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-set-decompose-func"></a><h3>hb_unicode_funcs_set_decompose_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_unicode_funcs_set_decompose_func (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                                     <em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-decompose-func-t" title="hb_unicode_decompose_func_t ()"><span class="type">hb_unicode_decompose_func_t</span></a> func</code></em>,
+                                     <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                     <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21648128"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>a Unicode function structure</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-set-eastasian-width-func"></a><h3>hb_unicode_funcs_set_eastasian_width_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_unicode_funcs_set_eastasian_width_func
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                                <em class="parameter"><code><span class="type">hb_unicode_eastasian_width_func_t</span> func</code></em>,
+                                <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21666288"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>a Unicode function structure</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-set-general-category-func"></a><h3>hb_unicode_funcs_set_general_category_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_unicode_funcs_set_general_category_func
+                               (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-general-category-func-t" title="hb_unicode_general_category_func_t ()"><span class="type">hb_unicode_general_category_func_t</span></a> func</code></em>,
+                                <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21684448"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>a Unicode function structure</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-set-mirroring-func"></a><h3>hb_unicode_funcs_set_mirroring_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_unicode_funcs_set_mirroring_func (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                                     <em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-mirroring-func-t" title="hb_unicode_mirroring_func_t ()"><span class="type">hb_unicode_mirroring_func_t</span></a> func</code></em>,
+                                     <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                     <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21702608"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>a Unicode function structure</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-set-script-func"></a><h3>hb_unicode_funcs_set_script_func ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_unicode_funcs_set_script_func (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-script-func-t" title="hb_unicode_script_func_t ()"><span class="type">hb_unicode_script_func_t</span></a> func</code></em>,
+                                  <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
+                                  <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21720768"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>a Unicode function structure</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-set-user-data"></a><h3>hb_unicode_funcs_set_user_data ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="returnvalue">hb_bool_t</span></a>
+hb_unicode_funcs_set_user_data (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t"><span class="type">hb_user_data_key_t</span></a> *key</code></em>,
+                                <em class="parameter"><code><span class="type">void</span> *data</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-destroy-func-t" title="hb_destroy_func_t ()"><span class="type">hb_destroy_func_t</span></a> destroy</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-bool-t" title="hb_bool_t"><span class="type">hb_bool_t</span></a> replace</code></em>);</pre>
+<div class="refsect3">
+<a name="idp21740304"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>ufuncs</p></td>
+<td class="parameter_description"><p>Unicode functions.</p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="idp21747808"></a><h4>Returns</h4>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-general-category"></a><h3>hb_unicode_general_category ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-general-category-t" title="enum hb_unicode_general_category_t"><span class="returnvalue">hb_unicode_general_category_t</span></a>
+hb_unicode_general_category (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> unicode</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp21756896"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-general-category-func-t"></a><h3>hb_unicode_general_category_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-general-category-t" title="enum hb_unicode_general_category_t"><span class="returnvalue">hb_unicode_general_category_t</span></a>
+<span class="c_punctuation">(</span>*hb_unicode_general_category_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                                       <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> unicode</code></em>,
+                                       <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp21768192"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-mirroring"></a><h3>hb_unicode_mirroring ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="returnvalue">hb_codepoint_t</span></a>
+hb_unicode_mirroring (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                      <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> unicode</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp21777952"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-mirroring-func-t"></a><h3>hb_unicode_mirroring_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="returnvalue">hb_codepoint_t</span></a>
+<span class="c_punctuation">(</span>*hb_unicode_mirroring_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                                <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> unicode</code></em>,
+                                <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp21791664"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-script"></a><h3>hb_unicode_script ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+hb_unicode_script (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                   <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> unicode</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp21801936"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-script-func-t"></a><h3>hb_unicode_script_func_t ()</h3>
+<pre class="programlisting"><a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t"><span class="returnvalue">hb_script_t</span></a>
+<span class="c_punctuation">(</span>*hb_unicode_script_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"><span class="type">hb_unicode_funcs_t</span></a> *ufuncs</code></em>,
+                             <em class="parameter"><code><a class="link" href="harfbuzz-hb-common.html#hb-codepoint-t" title="hb_codepoint_t"><span class="type">hb_codepoint_t</span></a> unicode</code></em>,
+                             <em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp21815648"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-unicode.other_details"></a><h2>Types and Values</h2>
+<div class="refsect2">
+<a name="hb-unicode-combining-class-t"></a><h3>enum hb_unicode_combining_class_t</h3>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp21822720"></a><h4>Members</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="300px" class="enum_members_name">
+<col class="enum_members_description">
+<col width="200px" class="enum_members_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-NOT-REORDERED:CAPS"></a>HB_UNICODE_COMBINING_CLASS_NOT_REORDERED</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-OVERLAY:CAPS"></a>HB_UNICODE_COMBINING_CLASS_OVERLAY</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-NUKTA:CAPS"></a>HB_UNICODE_COMBINING_CLASS_NUKTA</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-KANA-VOICING:CAPS"></a>HB_UNICODE_COMBINING_CLASS_KANA_VOICING</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-VIRAMA:CAPS"></a>HB_UNICODE_COMBINING_CLASS_VIRAMA</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC10:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC10</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC11:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC11</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC12:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC12</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC13:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC13</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC14:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC14</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC15:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC15</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC16:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC16</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC17:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC17</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC18:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC18</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC19:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC19</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC20:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC20</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC21:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC21</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC22:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC22</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC23:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC23</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC24:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC24</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC25:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC25</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC26:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC26</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC27:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC27</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC28:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC28</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC29:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC29</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC30:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC30</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC31:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC31</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC32:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC32</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC33:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC33</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC34:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC34</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC35:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC35</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC36:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC36</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC84:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC84</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC91:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC91</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC103:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC103</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC107:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC107</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC118:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC118</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC122:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC122</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC129:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC129</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC130:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC130</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-CCC133:CAPS"></a>HB_UNICODE_COMBINING_CLASS_CCC133</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-ATTACHED-BELOW-LEFT:CAPS"></a>HB_UNICODE_COMBINING_CLASS_ATTACHED_BELOW_LEFT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-ATTACHED-BELOW:CAPS"></a>HB_UNICODE_COMBINING_CLASS_ATTACHED_BELOW</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-ATTACHED-ABOVE:CAPS"></a>HB_UNICODE_COMBINING_CLASS_ATTACHED_ABOVE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-ATTACHED-ABOVE-RIGHT:CAPS"></a>HB_UNICODE_COMBINING_CLASS_ATTACHED_ABOVE_RIGHT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-BELOW-LEFT:CAPS"></a>HB_UNICODE_COMBINING_CLASS_BELOW_LEFT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-BELOW:CAPS"></a>HB_UNICODE_COMBINING_CLASS_BELOW</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-BELOW-RIGHT:CAPS"></a>HB_UNICODE_COMBINING_CLASS_BELOW_RIGHT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-LEFT:CAPS"></a>HB_UNICODE_COMBINING_CLASS_LEFT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-RIGHT:CAPS"></a>HB_UNICODE_COMBINING_CLASS_RIGHT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-ABOVE-LEFT:CAPS"></a>HB_UNICODE_COMBINING_CLASS_ABOVE_LEFT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-ABOVE:CAPS"></a>HB_UNICODE_COMBINING_CLASS_ABOVE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-ABOVE-RIGHT:CAPS"></a>HB_UNICODE_COMBINING_CLASS_ABOVE_RIGHT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-DOUBLE-BELOW:CAPS"></a>HB_UNICODE_COMBINING_CLASS_DOUBLE_BELOW</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-DOUBLE-ABOVE:CAPS"></a>HB_UNICODE_COMBINING_CLASS_DOUBLE_ABOVE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-IOTA-SUBSCRIPT:CAPS"></a>HB_UNICODE_COMBINING_CLASS_IOTA_SUBSCRIPT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-COMBINING-CLASS-INVALID:CAPS"></a>HB_UNICODE_COMBINING_CLASS_INVALID</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-funcs-t"></a><h3>hb_unicode_funcs_t</h3>
+<pre class="programlisting">typedef struct hb_unicode_funcs_t hb_unicode_funcs_t;
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-unicode-general-category-t"></a><h3>enum hb_unicode_general_category_t</h3>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp22023440"></a><h4>Members</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="300px" class="enum_members_name">
+<col class="enum_members_description">
+<col width="200px" class="enum_members_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-CONTROL:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_CONTROL</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-FORMAT:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_FORMAT</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-UNASSIGNED:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_UNASSIGNED</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-PRIVATE-USE:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_PRIVATE_USE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-SURROGATE:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_SURROGATE</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-LOWERCASE-LETTER:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_LOWERCASE_LETTER</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-MODIFIER-LETTER:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_MODIFIER_LETTER</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-OTHER-LETTER:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_OTHER_LETTER</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-TITLECASE-LETTER:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_TITLECASE_LETTER</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-UPPERCASE-LETTER:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_UPPERCASE_LETTER</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-SPACING-MARK:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-ENCLOSING-MARK:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-NON-SPACING-MARK:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-DECIMAL-NUMBER:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_DECIMAL_NUMBER</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-LETTER-NUMBER:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_LETTER_NUMBER</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-OTHER-NUMBER:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_OTHER_NUMBER</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-CONNECT-PUNCTUATION:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_CONNECT_PUNCTUATION</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-DASH-PUNCTUATION:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_DASH_PUNCTUATION</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-CLOSE-PUNCTUATION:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_CLOSE_PUNCTUATION</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-FINAL-PUNCTUATION:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_FINAL_PUNCTUATION</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-INITIAL-PUNCTUATION:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_INITIAL_PUNCTUATION</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-OTHER-PUNCTUATION:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_OTHER_PUNCTUATION</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-OPEN-PUNCTUATION:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_OPEN_PUNCTUATION</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-CURRENCY-SYMBOL:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_CURRENCY_SYMBOL</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-MODIFIER-SYMBOL:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_MODIFIER_SYMBOL</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-MATH-SYMBOL:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_MATH_SYMBOL</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-OTHER-SYMBOL:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_OTHER_SYMBOL</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-LINE-SEPARATOR:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_LINE_SEPARATOR</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-PARAGRAPH-SEPARATOR:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_PARAGRAPH_SEPARATOR</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a name="HB-UNICODE-GENERAL-CATEGORY-SPACE-SEPARATOR:CAPS"></a>HB_UNICODE_GENERAL_CATEGORY_SPACE_SEPARATOR</p></td>
+<td class="enum_member_description"> </td>
+<td class="enum_member_annotations"> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+</div>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-uniscribe.html b/docs/reference/html/harfbuzz-hb-uniscribe.html
new file mode 100644 (file)
index 0000000..eb90c9f
--- /dev/null
@@ -0,0 +1,100 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-uniscribe</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-graphite2.html" title="hb-graphite2">
+<link rel="next" href="harfbuzz-hb-coretext.html" title="hb-coretext">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-uniscribe.description" class="shortcut">Description</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-graphite2.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-coretext.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-uniscribe"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-uniscribe.top_of_page"></a>hb-uniscribe</span></h2>
+<p>hb-uniscribe</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-uniscribe.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="function_type">
+<span class="returnvalue">HFONT</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-uniscribe.html#hb-uniscribe-font-get-hfont" title="hb_uniscribe_font_get_hfont ()">hb_uniscribe_font_get_hfont</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<span class="returnvalue">LOGFONTW</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-uniscribe.html#hb-uniscribe-font-get-logfontw" title="hb_uniscribe_font_get_logfontw ()">hb_uniscribe_font_get_logfontw</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-uniscribe.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-uniscribe.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="hb-uniscribe-font-get-hfont"></a><h3>hb_uniscribe_font_get_hfont ()</h3>
+<pre class="programlisting"><span class="returnvalue">HFONT</span>
+hb_uniscribe_font_get_hfont (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp18176784"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-uniscribe-font-get-logfontw"></a><h3>hb_uniscribe_font_get_logfontw ()</h3>
+<pre class="programlisting"><span class="returnvalue">LOGFONTW</span> *
+hb_uniscribe_font_get_logfontw (<em class="parameter"><code><a class="link" href="harfbuzz-hb-font.html#hb-font-t"><span class="type">hb_font_t</span></a> *font</code></em>);</pre>
+<p>
+</p>
+<div class="refsect3">
+<a name="idp19749248"></a><h4>Returns</h4>
+<p></p>
+</div>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-uniscribe.other_details"></a><h2>Types and Values</h2>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb-version.html b/docs/reference/html/harfbuzz-hb-version.html
new file mode 100644 (file)
index 0000000..a20d726
--- /dev/null
@@ -0,0 +1,182 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb-version</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="harfbuzz-hb-shape.html" title="hb-shape">
+<link rel="next" href="harfbuzz-hb-deprecated.html" title="hb-deprecated">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb-version.description" class="shortcut">Description</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="harfbuzz-hb-shape.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-deprecated.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb-version"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb-version.top_of_page"></a>hb-version</span></h2>
+<p>hb-version</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb-version.functions"></a><h2>Functions</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="functions_return">
+<col class="functions_name">
+</colgroup>
+<tbody>
+<tr>
+<td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-version.html#hb-version" title="hb_version ()">hb_version</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">const <span class="returnvalue">char</span> *
+</td>
+<td class="function_name">
+<a class="link" href="harfbuzz-hb-version.html#hb-version-string" title="hb_version_string ()">hb_version_string</a> <span class="c_punctuation">()</span>
+</td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-version.other"></a><h2>Types and Values</h2>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="name">
+<col class="description">
+</colgroup>
+<tbody>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-version.html#HB-VERSION-MAJOR:CAPS" title="HB_VERSION_MAJOR">HB_VERSION_MAJOR</a></td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-version.html#HB-VERSION-MICRO:CAPS" title="HB_VERSION_MICRO">HB_VERSION_MICRO</a></td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-version.html#HB-VERSION-MINOR:CAPS" title="HB_VERSION_MINOR">HB_VERSION_MINOR</a></td>
+</tr>
+<tr>
+<td class="define_keyword">#define</td>
+<td class="function_name"><a class="link" href="harfbuzz-hb-version.html#HB-VERSION-STRING:CAPS" title="HB_VERSION_STRING">HB_VERSION_STRING</a></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-version.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-version.functions_details"></a><h2>Functions</h2>
+<div class="refsect2">
+<a name="hb-version"></a><h3>hb_version ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+hb_version (<em class="parameter"><code>unsigned <span class="type">int</span> *major</code></em>,
+            <em class="parameter"><code>unsigned <span class="type">int</span> *minor</code></em>,
+            <em class="parameter"><code>unsigned <span class="type">int</span> *micro</code></em>);</pre>
+<div class="refsect3">
+<a name="idp17096464"></a><h4>Parameters</h4>
+<div class="informaltable"><table width="100%" border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>major</p></td>
+<td class="parameter_description"><p> Library major version component. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>minor</p></td>
+<td class="parameter_description"><p> Library minor version component. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+<tr>
+<td class="parameter_name"><p>micro</p></td>
+<td class="parameter_description"><p> Library micro version component. </p></td>
+<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="hb-version-string"></a><h3>hb_version_string ()</h3>
+<pre class="programlisting">const <span class="returnvalue">char</span> *
+hb_version_string (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
+<p>Returns library version as a string with three components.</p>
+<div class="refsect3">
+<a name="idp21398048"></a><h4>Returns</h4>
+<p> library version string.</p>
+<p></p>
+</div>
+<p class="since">Since 1.0</p>
+</div>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb-version.other_details"></a><h2>Types and Values</h2>
+<div class="refsect2">
+<a name="HB-VERSION-MAJOR:CAPS"></a><h3>HB_VERSION_MAJOR</h3>
+<pre class="programlisting">#define HB_VERSION_MAJOR 0
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-VERSION-MICRO:CAPS"></a><h3>HB_VERSION_MICRO</h3>
+<pre class="programlisting">#define HB_VERSION_MICRO 35
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-VERSION-MINOR:CAPS"></a><h3>HB_VERSION_MINOR</h3>
+<pre class="programlisting">#define HB_VERSION_MINOR 9
+</pre>
+<p>
+</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="HB-VERSION-STRING:CAPS"></a><h3>HB_VERSION_STRING</h3>
+<pre class="programlisting">#define HB_VERSION_STRING "0.9.35"
+</pre>
+<p>
+</p>
+</div>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz-hb.html b/docs/reference/html/harfbuzz-hb.html
new file mode 100644 (file)
index 0000000..0ce86d6
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>hb</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="ch01.html" title="[Insert title here]">
+<link rel="prev" href="ch01.html" title="[Insert title here]">
+<link rel="next" href="harfbuzz-hb-common.html" title="hb-common">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts">
+<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
+                  <a href="#harfbuzz-hb.description" class="shortcut">Description</a></span>
+</td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
+<td><a accesskey="p" href="ch01.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="harfbuzz-hb-common.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="refentry">
+<a name="harfbuzz-hb"></a><div class="titlepage"></div>
+<div class="refnamediv"><table width="100%"><tr>
+<td valign="top">
+<h2><span class="refentrytitle"><a name="harfbuzz-hb.top_of_page"></a>hb</span></h2>
+<p>hb</p>
+</td>
+<td class="gallery_image" valign="top" align="right"></td>
+</tr></table></div>
+<div class="refsect1">
+<a name="harfbuzz-hb.description"></a><h2>Description</h2>
+<p>
+</p>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb.functions_details"></a><h2>Functions</h2>
+</div>
+<div class="refsect1">
+<a name="harfbuzz-hb.other_details"></a><h2>Types and Values</h2>
+</div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/harfbuzz.devhelp2 b/docs/reference/html/harfbuzz.devhelp2
new file mode 100644 (file)
index 0000000..4fdf9d4
--- /dev/null
@@ -0,0 +1,378 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<!DOCTYPE book PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
+<book xmlns="http://www.devhelp.net/book" title="HarfBuzz Reference Manual" link="index.html" author="" name="harfbuzz" version="2" language="c">
+  <chapters>
+    <sub name="[Insert title here]" link="ch01.html">
+      <sub name="hb" link="harfbuzz-hb.html"/>
+      <sub name="hb-common" link="harfbuzz-hb-common.html"/>
+      <sub name="hb-unicode" link="harfbuzz-hb-unicode.html"/>
+      <sub name="hb-buffer" link="harfbuzz-hb-buffer.html"/>
+      <sub name="hb-blob" link="harfbuzz-hb-blob.html"/>
+      <sub name="hb-face" link="harfbuzz-hb-face.html"/>
+      <sub name="hb-font" link="harfbuzz-hb-font.html"/>
+      <sub name="hb-shape" link="harfbuzz-hb-shape.html"/>
+      <sub name="hb-version" link="harfbuzz-hb-version.html"/>
+      <sub name="hb-deprecated" link="harfbuzz-hb-deprecated.html"/>
+      <sub name="hb-set" link="harfbuzz-hb-set.html"/>
+      <sub name="hb-ot" link="harfbuzz-hb-ot.html"/>
+      <sub name="hb-ot-layout" link="harfbuzz-hb-ot-layout.html"/>
+      <sub name="hb-ot-tag" link="harfbuzz-hb-ot-tag.html"/>
+      <sub name="hb-shape-plan" link="harfbuzz-hb-shape-plan.html"/>
+      <sub name="hb-glib" link="harfbuzz-hb-glib.html"/>
+      <sub name="hb-icu" link="harfbuzz-hb-icu.html"/>
+      <sub name="hb-ft" link="harfbuzz-hb-ft.html"/>
+      <sub name="hb-graphite2" link="harfbuzz-hb-graphite2.html"/>
+      <sub name="hb-uniscribe" link="harfbuzz-hb-uniscribe.html"/>
+      <sub name="hb-coretext" link="harfbuzz-hb-coretext.html"/>
+      <sub name="hb-gobject" link="harfbuzz-hb-gobject.html"/>
+    </sub>
+    <sub name="Object Hierarchy" link="object-tree.html"/>
+    <sub name="API Index" link="api-index-full.html"/>
+    <sub name="Index of deprecated API" link="deprecated-api-index.html"/>
+    <sub name="Annotation Glossary" link="annotation-glossary.html"/>
+  </chapters>
+  <functions>
+    <keyword type="macro" name="HB_DIRECTION_REVERSE()" link="harfbuzz-hb-common.html#HB-DIRECTION-REVERSE:CAPS"/>
+    <keyword type="macro" name="HB_LANGUAGE_INVALID" link="harfbuzz-hb-common.html#HB-LANGUAGE-INVALID:CAPS"/>
+    <keyword type="macro" name="HB_TAG()" link="harfbuzz-hb-common.html#HB-TAG:CAPS"/>
+    <keyword type="macro" name="HB_UNTAG()" link="harfbuzz-hb-common.html#HB-UNTAG:CAPS"/>
+    <keyword type="function" name="hb_destroy_func_t ()" link="harfbuzz-hb-common.html#hb-destroy-func-t"/>
+    <keyword type="function" name="hb_direction_from_string ()" link="harfbuzz-hb-common.html#hb-direction-from-string" since="1.0"/>
+    <keyword type="function" name="hb_direction_to_string ()" link="harfbuzz-hb-common.html#hb-direction-to-string" since="1.0"/>
+    <keyword type="function" name="hb_language_from_string ()" link="harfbuzz-hb-common.html#hb-language-from-string" since="1.0"/>
+    <keyword type="function" name="hb_language_get_default ()" link="harfbuzz-hb-common.html#hb-language-get-default" since="1.0"/>
+    <keyword type="function" name="hb_language_to_string ()" link="harfbuzz-hb-common.html#hb-language-to-string" since="1.0"/>
+    <keyword type="function" name="hb_script_from_iso15924_tag ()" link="harfbuzz-hb-common.html#hb-script-from-iso15924-tag" since="1.0"/>
+    <keyword type="function" name="hb_script_from_string ()" link="harfbuzz-hb-common.html#hb-script-from-string" since="1.0"/>
+    <keyword type="function" name="hb_script_get_horizontal_direction ()" link="harfbuzz-hb-common.html#hb-script-get-horizontal-direction" since="1.0"/>
+    <keyword type="function" name="hb_script_to_iso15924_tag ()" link="harfbuzz-hb-common.html#hb-script-to-iso15924-tag" since="1.0"/>
+    <keyword type="function" name="hb_tag_from_string ()" link="harfbuzz-hb-common.html#hb-tag-from-string" since="1.0"/>
+    <keyword type="function" name="hb_tag_to_string ()" link="harfbuzz-hb-common.html#hb-tag-to-string" since="1.0"/>
+    <keyword type="macro" name="HB_DIRECTION_IS_BACKWARD()" link="harfbuzz-hb-common.html#HB-DIRECTION-IS-BACKWARD:CAPS"/>
+    <keyword type="macro" name="HB_DIRECTION_IS_FORWARD()" link="harfbuzz-hb-common.html#HB-DIRECTION-IS-FORWARD:CAPS"/>
+    <keyword type="macro" name="HB_DIRECTION_IS_HORIZONTAL()" link="harfbuzz-hb-common.html#HB-DIRECTION-IS-HORIZONTAL:CAPS"/>
+    <keyword type="macro" name="HB_DIRECTION_IS_VALID()" link="harfbuzz-hb-common.html#HB-DIRECTION-IS-VALID:CAPS"/>
+    <keyword type="macro" name="HB_DIRECTION_IS_VERTICAL()" link="harfbuzz-hb-common.html#HB-DIRECTION-IS-VERTICAL:CAPS"/>
+    <keyword type="macro" name="HB_TAG_NONE" link="harfbuzz-hb-common.html#HB-TAG-NONE:CAPS"/>
+    <keyword type="macro" name="HB_TAG_MAX" link="harfbuzz-hb-common.html#HB-TAG-MAX:CAPS"/>
+    <keyword type="typedef" name="hb_bool_t" link="harfbuzz-hb-common.html#hb-bool-t"/>
+    <keyword type="typedef" name="hb_codepoint_t" link="harfbuzz-hb-common.html#hb-codepoint-t"/>
+    <keyword type="enum" name="enum hb_direction_t" link="harfbuzz-hb-common.html#hb-direction-t"/>
+    <keyword type="typedef" name="hb_language_t" link="harfbuzz-hb-common.html#hb-language-t"/>
+    <keyword type="typedef" name="hb_mask_t" link="harfbuzz-hb-common.html#hb-mask-t"/>
+    <keyword type="typedef" name="hb_position_t" link="harfbuzz-hb-common.html#hb-position-t"/>
+    <keyword type="enum" name="enum hb_script_t" link="harfbuzz-hb-common.html#hb-script-t"/>
+    <keyword type="typedef" name="hb_tag_t" link="harfbuzz-hb-common.html#hb-tag-t"/>
+    <keyword type="struct" name="hb_user_data_key_t" link="harfbuzz-hb-common.html#hb-user-data-key-t-struct"/>
+    <keyword type="union" name="hb_var_int_t" link="harfbuzz-hb-common.html#hb-var-int-t"/>
+    <keyword type="macro" name="HB_UNICODE_MAX_DECOMPOSITION_LEN" link="harfbuzz-hb-unicode.html#HB-UNICODE-MAX-DECOMPOSITION-LEN:CAPS"/>
+    <keyword type="function" name="hb_unicode_combining_class ()" link="harfbuzz-hb-unicode.html#hb-unicode-combining-class"/>
+    <keyword type="function" name="hb_unicode_combining_class_func_t ()" link="harfbuzz-hb-unicode.html#hb-unicode-combining-class-func-t"/>
+    <keyword type="function" name="hb_unicode_compose ()" link="harfbuzz-hb-unicode.html#hb-unicode-compose" since="1.0"/>
+    <keyword type="function" name="hb_unicode_compose_func_t ()" link="harfbuzz-hb-unicode.html#hb-unicode-compose-func-t"/>
+    <keyword type="function" name="hb_unicode_decompose ()" link="harfbuzz-hb-unicode.html#hb-unicode-decompose" since="1.0"/>
+    <keyword type="function" name="hb_unicode_decompose_compatibility ()" link="harfbuzz-hb-unicode.html#hb-unicode-decompose-compatibility" since="1.0"/>
+    <keyword type="function" name="hb_unicode_decompose_func_t ()" link="harfbuzz-hb-unicode.html#hb-unicode-decompose-func-t"/>
+    <keyword type="function" name="hb_unicode_eastasian_width ()" link="harfbuzz-hb-unicode.html#hb-unicode-eastasian-width"/>
+    <keyword type="function" name="hb_unicode_funcs_create ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-create"/>
+    <keyword type="function" name="hb_unicode_funcs_destroy ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-destroy" since="1.0"/>
+    <keyword type="function" name="hb_unicode_funcs_get_default ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-get-default"/>
+    <keyword type="function" name="hb_unicode_funcs_get_empty ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-get-empty" since="1.0"/>
+    <keyword type="function" name="hb_unicode_funcs_get_parent ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-get-parent" since="1.0"/>
+    <keyword type="function" name="hb_unicode_funcs_get_user_data ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-get-user-data" since="1.0"/>
+    <keyword type="function" name="hb_unicode_funcs_is_immutable ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-is-immutable" since="1.0"/>
+    <keyword type="function" name="hb_unicode_funcs_make_immutable ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-make-immutable" since="1.0"/>
+    <keyword type="function" name="hb_unicode_funcs_reference ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-reference" since="1.0"/>
+    <keyword type="function" name="hb_unicode_funcs_set_combining_class_func ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-combining-class-func" since="1.0"/>
+    <keyword type="function" name="hb_unicode_funcs_set_compose_func ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-compose-func" since="1.0"/>
+    <keyword type="function" name="hb_unicode_funcs_set_decompose_compatibility_func ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-decompose-compatibility-func" since="1.0"/>
+    <keyword type="function" name="hb_unicode_funcs_set_decompose_func ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-decompose-func" since="1.0"/>
+    <keyword type="function" name="hb_unicode_funcs_set_eastasian_width_func ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-eastasian-width-func" since="1.0"/>
+    <keyword type="function" name="hb_unicode_funcs_set_general_category_func ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-general-category-func" since="1.0"/>
+    <keyword type="function" name="hb_unicode_funcs_set_mirroring_func ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-mirroring-func" since="1.0"/>
+    <keyword type="function" name="hb_unicode_funcs_set_script_func ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-script-func" since="1.0"/>
+    <keyword type="function" name="hb_unicode_funcs_set_user_data ()" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-set-user-data" since="1.0"/>
+    <keyword type="function" name="hb_unicode_general_category ()" link="harfbuzz-hb-unicode.html#hb-unicode-general-category"/>
+    <keyword type="function" name="hb_unicode_general_category_func_t ()" link="harfbuzz-hb-unicode.html#hb-unicode-general-category-func-t"/>
+    <keyword type="function" name="hb_unicode_mirroring ()" link="harfbuzz-hb-unicode.html#hb-unicode-mirroring"/>
+    <keyword type="function" name="hb_unicode_mirroring_func_t ()" link="harfbuzz-hb-unicode.html#hb-unicode-mirroring-func-t"/>
+    <keyword type="function" name="hb_unicode_script ()" link="harfbuzz-hb-unicode.html#hb-unicode-script"/>
+    <keyword type="function" name="hb_unicode_script_func_t ()" link="harfbuzz-hb-unicode.html#hb-unicode-script-func-t"/>
+    <keyword type="enum" name="enum hb_unicode_combining_class_t" link="harfbuzz-hb-unicode.html#hb-unicode-combining-class-t"/>
+    <keyword type="typedef" name="hb_unicode_funcs_t" link="harfbuzz-hb-unicode.html#hb-unicode-funcs-t"/>
+    <keyword type="enum" name="enum hb_unicode_general_category_t" link="harfbuzz-hb-unicode.html#hb-unicode-general-category-t"/>
+    <keyword type="function" name="hb_buffer_add ()" link="harfbuzz-hb-buffer.html#hb-buffer-add" since="1.0"/>
+    <keyword type="function" name="hb_buffer_add_utf16 ()" link="harfbuzz-hb-buffer.html#hb-buffer-add-utf16" since="1.0"/>
+    <keyword type="function" name="hb_buffer_add_utf32 ()" link="harfbuzz-hb-buffer.html#hb-buffer-add-utf32" since="1.0"/>
+    <keyword type="function" name="hb_buffer_add_utf8 ()" link="harfbuzz-hb-buffer.html#hb-buffer-add-utf8" since="1.0"/>
+    <keyword type="function" name="hb_buffer_add_codepoints ()" link="harfbuzz-hb-buffer.html#hb-buffer-add-codepoints" since="1.0"/>
+    <keyword type="function" name="hb_buffer_allocation_successful ()" link="harfbuzz-hb-buffer.html#hb-buffer-allocation-successful" since="1.0"/>
+    <keyword type="function" name="hb_buffer_clear_contents ()" link="harfbuzz-hb-buffer.html#hb-buffer-clear-contents" since="1.0"/>
+    <keyword type="function" name="hb_buffer_create ()" link="harfbuzz-hb-buffer.html#hb-buffer-create"/>
+    <keyword type="function" name="hb_buffer_deserialize_glyphs ()" link="harfbuzz-hb-buffer.html#hb-buffer-deserialize-glyphs" since="1.0"/>
+    <keyword type="function" name="hb_buffer_destroy ()" link="harfbuzz-hb-buffer.html#hb-buffer-destroy" since="1.0"/>
+    <keyword type="function" name="hb_buffer_get_content_type ()" link="harfbuzz-hb-buffer.html#hb-buffer-get-content-type" since="1.0"/>
+    <keyword type="function" name="hb_buffer_get_direction ()" link="harfbuzz-hb-buffer.html#hb-buffer-get-direction" since="1.0"/>
+    <keyword type="function" name="hb_buffer_get_empty ()" link="harfbuzz-hb-buffer.html#hb-buffer-get-empty" since="1.0"/>
+    <keyword type="function" name="hb_buffer_get_flags ()" link="harfbuzz-hb-buffer.html#hb-buffer-get-flags" since="1.0"/>
+    <keyword type="function" name="hb_buffer_get_glyph_infos ()" link="harfbuzz-hb-buffer.html#hb-buffer-get-glyph-infos" since="1.0"/>
+    <keyword type="function" name="hb_buffer_get_glyph_positions ()" link="harfbuzz-hb-buffer.html#hb-buffer-get-glyph-positions" since="1.0"/>
+    <keyword type="function" name="hb_buffer_get_language ()" link="harfbuzz-hb-buffer.html#hb-buffer-get-language" since="1.0"/>
+    <keyword type="function" name="hb_buffer_get_length ()" link="harfbuzz-hb-buffer.html#hb-buffer-get-length" since="1.0"/>
+    <keyword type="function" name="hb_buffer_get_replacement_codepoint ()" link="harfbuzz-hb-buffer.html#hb-buffer-get-replacement-codepoint" since="1.0"/>
+    <keyword type="function" name="hb_buffer_get_script ()" link="harfbuzz-hb-buffer.html#hb-buffer-get-script" since="1.0"/>
+    <keyword type="function" name="hb_buffer_get_segment_properties ()" link="harfbuzz-hb-buffer.html#hb-buffer-get-segment-properties" since="1.0"/>
+    <keyword type="function" name="hb_buffer_get_unicode_funcs ()" link="harfbuzz-hb-buffer.html#hb-buffer-get-unicode-funcs" since="1.0"/>
+    <keyword type="function" name="hb_buffer_get_user_data ()" link="harfbuzz-hb-buffer.html#hb-buffer-get-user-data" since="1.0"/>
+    <keyword type="function" name="hb_buffer_guess_segment_properties ()" link="harfbuzz-hb-buffer.html#hb-buffer-guess-segment-properties" since="1.0"/>
+    <keyword type="function" name="hb_buffer_normalize_glyphs ()" link="harfbuzz-hb-buffer.html#hb-buffer-normalize-glyphs" since="1.0"/>
+    <keyword type="function" name="hb_buffer_pre_allocate ()" link="harfbuzz-hb-buffer.html#hb-buffer-pre-allocate" since="1.0"/>
+    <keyword type="function" name="hb_buffer_reference ()" link="harfbuzz-hb-buffer.html#hb-buffer-reference" since="1.0"/>
+    <keyword type="function" name="hb_buffer_reset ()" link="harfbuzz-hb-buffer.html#hb-buffer-reset" since="1.0"/>
+    <keyword type="function" name="hb_buffer_reverse ()" link="harfbuzz-hb-buffer.html#hb-buffer-reverse" since="1.0"/>
+    <keyword type="function" name="hb_buffer_reverse_clusters ()" link="harfbuzz-hb-buffer.html#hb-buffer-reverse-clusters" since="1.0"/>
+    <keyword type="function" name="hb_buffer_serialize_format_from_string ()" link="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-from-string" since="1.0"/>
+    <keyword type="function" name="hb_buffer_serialize_format_to_string ()" link="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-to-string" since="1.0"/>
+    <keyword type="function" name="hb_buffer_serialize_glyphs ()" link="harfbuzz-hb-buffer.html#hb-buffer-serialize-glyphs" since="1.0"/>
+    <keyword type="function" name="hb_buffer_serialize_list_formats ()" link="harfbuzz-hb-buffer.html#hb-buffer-serialize-list-formats" since="1.0"/>
+    <keyword type="function" name="hb_buffer_set_content_type ()" link="harfbuzz-hb-buffer.html#hb-buffer-set-content-type" since="1.0"/>
+    <keyword type="function" name="hb_buffer_set_direction ()" link="harfbuzz-hb-buffer.html#hb-buffer-set-direction" since="1.0"/>
+    <keyword type="function" name="hb_buffer_set_flags ()" link="harfbuzz-hb-buffer.html#hb-buffer-set-flags" since="1.0"/>
+    <keyword type="function" name="hb_buffer_set_language ()" link="harfbuzz-hb-buffer.html#hb-buffer-set-language" since="1.0"/>
+    <keyword type="function" name="hb_buffer_set_length ()" link="harfbuzz-hb-buffer.html#hb-buffer-set-length" since="1.0"/>
+    <keyword type="function" name="hb_buffer_set_replacement_codepoint ()" link="harfbuzz-hb-buffer.html#hb-buffer-set-replacement-codepoint" since="1.0"/>
+    <keyword type="function" name="hb_buffer_set_script ()" link="harfbuzz-hb-buffer.html#hb-buffer-set-script" since="1.0"/>
+    <keyword type="function" name="hb_buffer_set_segment_properties ()" link="harfbuzz-hb-buffer.html#hb-buffer-set-segment-properties" since="1.0"/>
+    <keyword type="function" name="hb_buffer_set_unicode_funcs ()" link="harfbuzz-hb-buffer.html#hb-buffer-set-unicode-funcs" since="1.0"/>
+    <keyword type="function" name="hb_buffer_set_user_data ()" link="harfbuzz-hb-buffer.html#hb-buffer-set-user-data" since="1.0"/>
+    <keyword type="function" name="hb_segment_properties_equal ()" link="harfbuzz-hb-buffer.html#hb-segment-properties-equal"/>
+    <keyword type="function" name="hb_segment_properties_hash ()" link="harfbuzz-hb-buffer.html#hb-segment-properties-hash"/>
+    <keyword type="macro" name="HB_SEGMENT_PROPERTIES_DEFAULT" link="harfbuzz-hb-buffer.html#HB-SEGMENT-PROPERTIES-DEFAULT:CAPS"/>
+    <keyword type="enum" name="enum hb_buffer_content_type_t" link="harfbuzz-hb-buffer.html#hb-buffer-content-type-t"/>
+    <keyword type="enum" name="enum hb_buffer_flags_t" link="harfbuzz-hb-buffer.html#hb-buffer-flags-t"/>
+    <keyword type="enum" name="enum hb_buffer_serialize_flags_t" link="harfbuzz-hb-buffer.html#hb-buffer-serialize-flags-t"/>
+    <keyword type="enum" name="enum hb_buffer_serialize_format_t" link="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t"/>
+    <keyword type="typedef" name="hb_buffer_t" link="harfbuzz-hb-buffer.html#hb-buffer-t"/>
+    <keyword type="struct" name="hb_glyph_info_t" link="harfbuzz-hb-buffer.html#hb-glyph-info-t-struct"/>
+    <keyword type="struct" name="hb_glyph_position_t" link="harfbuzz-hb-buffer.html#hb-glyph-position-t-struct"/>
+    <keyword type="struct" name="hb_segment_properties_t" link="harfbuzz-hb-buffer.html#hb-segment-properties-t-struct"/>
+    <keyword type="function" name="hb_blob_create ()" link="harfbuzz-hb-blob.html#hb-blob-create"/>
+    <keyword type="function" name="hb_blob_create_sub_blob ()" link="harfbuzz-hb-blob.html#hb-blob-create-sub-blob" since="1.0"/>
+    <keyword type="function" name="hb_blob_destroy ()" link="harfbuzz-hb-blob.html#hb-blob-destroy" since="1.0"/>
+    <keyword type="function" name="hb_blob_get_data ()" link="harfbuzz-hb-blob.html#hb-blob-get-data" since="1.0"/>
+    <keyword type="function" name="hb_blob_get_data_writable ()" link="harfbuzz-hb-blob.html#hb-blob-get-data-writable" since="1.0"/>
+    <keyword type="function" name="hb_blob_get_empty ()" link="harfbuzz-hb-blob.html#hb-blob-get-empty" since="1.0"/>
+    <keyword type="function" name="hb_blob_get_length ()" link="harfbuzz-hb-blob.html#hb-blob-get-length" since="1.0"/>
+    <keyword type="function" name="hb_blob_get_user_data ()" link="harfbuzz-hb-blob.html#hb-blob-get-user-data" since="1.0"/>
+    <keyword type="function" name="hb_blob_is_immutable ()" link="harfbuzz-hb-blob.html#hb-blob-is-immutable" since="1.0"/>
+    <keyword type="function" name="hb_blob_make_immutable ()" link="harfbuzz-hb-blob.html#hb-blob-make-immutable" since="1.0"/>
+    <keyword type="function" name="hb_blob_reference ()" link="harfbuzz-hb-blob.html#hb-blob-reference" since="1.0"/>
+    <keyword type="function" name="hb_blob_set_user_data ()" link="harfbuzz-hb-blob.html#hb-blob-set-user-data" since="1.0"/>
+    <keyword type="typedef" name="hb_blob_t" link="harfbuzz-hb-blob.html#hb-blob-t"/>
+    <keyword type="enum" name="enum hb_memory_mode_t" link="harfbuzz-hb-blob.html#hb-memory-mode-t"/>
+    <keyword type="function" name="hb_face_create ()" link="harfbuzz-hb-face.html#hb-face-create"/>
+    <keyword type="function" name="hb_face_create_for_tables ()" link="harfbuzz-hb-face.html#hb-face-create-for-tables" since="1.0"/>
+    <keyword type="function" name="hb_face_destroy ()" link="harfbuzz-hb-face.html#hb-face-destroy" since="1.0"/>
+    <keyword type="function" name="hb_face_get_empty ()" link="harfbuzz-hb-face.html#hb-face-get-empty" since="1.0"/>
+    <keyword type="function" name="hb_face_get_glyph_count ()" link="harfbuzz-hb-face.html#hb-face-get-glyph-count" since="1.0"/>
+    <keyword type="function" name="hb_face_get_index ()" link="harfbuzz-hb-face.html#hb-face-get-index" since="1.0"/>
+    <keyword type="function" name="hb_face_get_upem ()" link="harfbuzz-hb-face.html#hb-face-get-upem" since="1.0"/>
+    <keyword type="function" name="hb_face_get_user_data ()" link="harfbuzz-hb-face.html#hb-face-get-user-data" since="1.0"/>
+    <keyword type="function" name="hb_face_is_immutable ()" link="harfbuzz-hb-face.html#hb-face-is-immutable" since="1.0"/>
+    <keyword type="function" name="hb_face_make_immutable ()" link="harfbuzz-hb-face.html#hb-face-make-immutable" since="1.0"/>
+    <keyword type="function" name="hb_face_reference ()" link="harfbuzz-hb-face.html#hb-face-reference" since="1.0"/>
+    <keyword type="function" name="hb_face_reference_blob ()" link="harfbuzz-hb-face.html#hb-face-reference-blob" since="1.0"/>
+    <keyword type="function" name="hb_face_reference_table ()" link="harfbuzz-hb-face.html#hb-face-reference-table" since="1.0"/>
+    <keyword type="function" name="hb_face_set_glyph_count ()" link="harfbuzz-hb-face.html#hb-face-set-glyph-count" since="1.0"/>
+    <keyword type="function" name="hb_face_set_index ()" link="harfbuzz-hb-face.html#hb-face-set-index" since="1.0"/>
+    <keyword type="function" name="hb_face_set_upem ()" link="harfbuzz-hb-face.html#hb-face-set-upem" since="1.0"/>
+    <keyword type="function" name="hb_face_set_user_data ()" link="harfbuzz-hb-face.html#hb-face-set-user-data" since="1.0"/>
+    <keyword type="typedef" name="hb_face_t" link="harfbuzz-hb-face.html#hb-face-t"/>
+    <keyword type="function" name="hb_font_add_glyph_origin_for_direction ()" link="harfbuzz-hb-font.html#hb-font-add-glyph-origin-for-direction" since="1.0"/>
+    <keyword type="function" name="hb_font_create ()" link="harfbuzz-hb-font.html#hb-font-create"/>
+    <keyword type="function" name="hb_font_create_sub_font ()" link="harfbuzz-hb-font.html#hb-font-create-sub-font" since="1.0"/>
+    <keyword type="function" name="hb_font_destroy ()" link="harfbuzz-hb-font.html#hb-font-destroy" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_create ()" link="harfbuzz-hb-font.html#hb-font-funcs-create"/>
+    <keyword type="function" name="hb_font_funcs_destroy ()" link="harfbuzz-hb-font.html#hb-font-funcs-destroy" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_get_empty ()" link="harfbuzz-hb-font.html#hb-font-funcs-get-empty" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_get_user_data ()" link="harfbuzz-hb-font.html#hb-font-funcs-get-user-data" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_is_immutable ()" link="harfbuzz-hb-font.html#hb-font-funcs-is-immutable" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_make_immutable ()" link="harfbuzz-hb-font.html#hb-font-funcs-make-immutable" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_reference ()" link="harfbuzz-hb-font.html#hb-font-funcs-reference" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_set_glyph_contour_point_func ()" link="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-contour-point-func" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_set_glyph_extents_func ()" link="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-extents-func" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_set_glyph_from_name_func ()" link="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-from-name-func" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_set_glyph_func ()" link="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-func" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_set_glyph_h_advance_func ()" link="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-h-advance-func" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_set_glyph_h_kerning_func ()" link="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-h-kerning-func" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_set_glyph_h_origin_func ()" link="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-h-origin-func" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_set_glyph_name_func ()" link="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-name-func" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_set_glyph_v_advance_func ()" link="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-advance-func" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_set_glyph_v_kerning_func ()" link="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-kerning-func" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_set_glyph_v_origin_func ()" link="harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-origin-func" since="1.0"/>
+    <keyword type="function" name="hb_font_funcs_set_user_data ()" link="harfbuzz-hb-font.html#hb-font-funcs-set-user-data" since="1.0"/>
+    <keyword type="function" name="hb_font_get_empty ()" link="harfbuzz-hb-font.html#hb-font-get-empty" since="1.0"/>
+    <keyword type="function" name="hb_font_get_face ()" link="harfbuzz-hb-font.html#hb-font-get-face" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph ()" link="harfbuzz-hb-font.html#hb-font-get-glyph" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph_advance_for_direction ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-advance-for-direction" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph_advance_func_t ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-advance-func-t"/>
+    <keyword type="function" name="hb_font_get_glyph_contour_point ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-contour-point" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph_contour_point_for_origin ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-contour-point-for-origin" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph_contour_point_func_t ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-contour-point-func-t"/>
+    <keyword type="function" name="hb_font_get_glyph_extents ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-extents" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph_extents_for_origin ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-extents-for-origin" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph_extents_func_t ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-extents-func-t"/>
+    <keyword type="function" name="hb_font_get_glyph_from_name ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-from-name" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph_from_name_func_t ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-from-name-func-t"/>
+    <keyword type="function" name="hb_font_get_glyph_func_t ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-func-t"/>
+    <keyword type="function" name="hb_font_get_glyph_h_advance ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-h-advance" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph_h_kerning ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-h-kerning" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph_h_origin ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-h-origin" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph_kerning_for_direction ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-kerning-for-direction" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph_kerning_func_t ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-kerning-func-t"/>
+    <keyword type="function" name="hb_font_get_glyph_name ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-name" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph_name_func_t ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-name-func-t"/>
+    <keyword type="function" name="hb_font_get_glyph_origin_for_direction ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-origin-for-direction" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph_origin_func_t ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-origin-func-t"/>
+    <keyword type="function" name="hb_font_get_glyph_v_advance ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-v-advance" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph_v_kerning ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-v-kerning" since="1.0"/>
+    <keyword type="function" name="hb_font_get_glyph_v_origin ()" link="harfbuzz-hb-font.html#hb-font-get-glyph-v-origin" since="1.0"/>
+    <keyword type="function" name="hb_font_get_parent ()" link="harfbuzz-hb-font.html#hb-font-get-parent" since="1.0"/>
+    <keyword type="function" name="hb_font_get_ppem ()" link="harfbuzz-hb-font.html#hb-font-get-ppem" since="1.0"/>
+    <keyword type="function" name="hb_font_get_scale ()" link="harfbuzz-hb-font.html#hb-font-get-scale" since="1.0"/>
+    <keyword type="function" name="hb_font_get_user_data ()" link="harfbuzz-hb-font.html#hb-font-get-user-data" since="1.0"/>
+    <keyword type="function" name="hb_font_glyph_from_string ()" link="harfbuzz-hb-font.html#hb-font-glyph-from-string" since="1.0"/>
+    <keyword type="function" name="hb_font_glyph_to_string ()" link="harfbuzz-hb-font.html#hb-font-glyph-to-string" since="1.0"/>
+    <keyword type="function" name="hb_font_is_immutable ()" link="harfbuzz-hb-font.html#hb-font-is-immutable" since="1.0"/>
+    <keyword type="function" name="hb_font_make_immutable ()" link="harfbuzz-hb-font.html#hb-font-make-immutable" since="1.0"/>
+    <keyword type="function" name="hb_font_reference ()" link="harfbuzz-hb-font.html#hb-font-reference" since="1.0"/>
+    <keyword type="function" name="hb_font_set_funcs ()" link="harfbuzz-hb-font.html#hb-font-set-funcs" since="1.0"/>
+    <keyword type="function" name="hb_font_set_funcs_data ()" link="harfbuzz-hb-font.html#hb-font-set-funcs-data" since="1.0"/>
+    <keyword type="function" name="hb_font_set_ppem ()" link="harfbuzz-hb-font.html#hb-font-set-ppem" since="1.0"/>
+    <keyword type="function" name="hb_font_set_scale ()" link="harfbuzz-hb-font.html#hb-font-set-scale" since="1.0"/>
+    <keyword type="function" name="hb_font_set_user_data ()" link="harfbuzz-hb-font.html#hb-font-set-user-data" since="1.0"/>
+    <keyword type="function" name="hb_font_subtract_glyph_origin_for_direction ()" link="harfbuzz-hb-font.html#hb-font-subtract-glyph-origin-for-direction" since="1.0"/>
+    <keyword type="function" name="hb_reference_table_func_t ()" link="harfbuzz-hb-font.html#hb-reference-table-func-t"/>
+    <keyword type="typedef" name="hb_font_funcs_t" link="harfbuzz-hb-font.html#hb-font-funcs-t"/>
+    <keyword type="typedef" name="hb_font_get_glyph_h_advance_func_t" link="harfbuzz-hb-font.html#hb-font-get-glyph-h-advance-func-t"/>
+    <keyword type="typedef" name="hb_font_get_glyph_h_kerning_func_t" link="harfbuzz-hb-font.html#hb-font-get-glyph-h-kerning-func-t"/>
+    <keyword type="typedef" name="hb_font_get_glyph_h_origin_func_t" link="harfbuzz-hb-font.html#hb-font-get-glyph-h-origin-func-t"/>
+    <keyword type="typedef" name="hb_font_get_glyph_v_advance_func_t" link="harfbuzz-hb-font.html#hb-font-get-glyph-v-advance-func-t"/>
+    <keyword type="typedef" name="hb_font_get_glyph_v_kerning_func_t" link="harfbuzz-hb-font.html#hb-font-get-glyph-v-kerning-func-t"/>
+    <keyword type="typedef" name="hb_font_get_glyph_v_origin_func_t" link="harfbuzz-hb-font.html#hb-font-get-glyph-v-origin-func-t"/>
+    <keyword type="typedef" name="hb_font_t" link="harfbuzz-hb-font.html#hb-font-t"/>
+    <keyword type="function" name="hb_feature_from_string ()" link="harfbuzz-hb-shape.html#hb-feature-from-string" since="1.0"/>
+    <keyword type="function" name="hb_feature_to_string ()" link="harfbuzz-hb-shape.html#hb-feature-to-string" since="1.0"/>
+    <keyword type="function" name="hb_shape ()" link="harfbuzz-hb-shape.html#hb-shape" since="1.0"/>
+    <keyword type="function" name="hb_shape_full ()" link="harfbuzz-hb-shape.html#hb-shape-full" since="1.0"/>
+    <keyword type="function" name="hb_shape_list_shapers ()" link="harfbuzz-hb-shape.html#hb-shape-list-shapers" since="1.0"/>
+    <keyword type="struct" name="hb_feature_t" link="harfbuzz-hb-shape.html#hb-feature-t-struct"/>
+    <keyword type="function" name="hb_version ()" link="harfbuzz-hb-version.html#hb-version" since="1.0"/>
+    <keyword type="function" name="hb_version_string ()" link="harfbuzz-hb-version.html#hb-version-string" since="1.0"/>
+    <keyword type="macro" name="HB_VERSION_MAJOR" link="harfbuzz-hb-version.html#HB-VERSION-MAJOR:CAPS"/>
+    <keyword type="macro" name="HB_VERSION_MICRO" link="harfbuzz-hb-version.html#HB-VERSION-MICRO:CAPS"/>
+    <keyword type="macro" name="HB_VERSION_MINOR" link="harfbuzz-hb-version.html#HB-VERSION-MINOR:CAPS"/>
+    <keyword type="macro" name="HB_VERSION_STRING" link="harfbuzz-hb-version.html#HB-VERSION-STRING:CAPS"/>
+    <keyword type="macro" name="HB_BUFFER_FLAGS_DEFAULT" link="harfbuzz-hb-deprecated.html#HB-BUFFER-FLAGS-DEFAULT:CAPS" deprecated=""/>
+    <keyword type="macro" name="HB_BUFFER_SERIALIZE_FLAGS_DEFAULT" link="harfbuzz-hb-deprecated.html#HB-BUFFER-SERIALIZE-FLAGS-DEFAULT:CAPS" deprecated=""/>
+    <keyword type="macro" name="HB_SCRIPT_CANADIAN_ABORIGINAL" link="harfbuzz-hb-deprecated.html#HB-SCRIPT-CANADIAN-ABORIGINAL:CAPS" deprecated=""/>
+    <keyword type="macro" name="HB_SET_VALUE_INVALID" link="harfbuzz-hb-set.html#HB-SET-VALUE-INVALID:CAPS"/>
+    <keyword type="function" name="hb_set_add ()" link="harfbuzz-hb-set.html#hb-set-add" since="1.0"/>
+    <keyword type="function" name="hb_set_add_range ()" link="harfbuzz-hb-set.html#hb-set-add-range" since="1.0"/>
+    <keyword type="function" name="hb_set_allocation_successful ()" link="harfbuzz-hb-set.html#hb-set-allocation-successful" since="1.0"/>
+    <keyword type="function" name="hb_set_clear ()" link="harfbuzz-hb-set.html#hb-set-clear" since="1.0"/>
+    <keyword type="function" name="hb_set_create ()" link="harfbuzz-hb-set.html#hb-set-create"/>
+    <keyword type="function" name="hb_set_del ()" link="harfbuzz-hb-set.html#hb-set-del" since="1.0"/>
+    <keyword type="function" name="hb_set_del_range ()" link="harfbuzz-hb-set.html#hb-set-del-range" since="1.0"/>
+    <keyword type="function" name="hb_set_destroy ()" link="harfbuzz-hb-set.html#hb-set-destroy" since="1.0"/>
+    <keyword type="function" name="hb_set_get_empty ()" link="harfbuzz-hb-set.html#hb-set-get-empty" since="1.0"/>
+    <keyword type="function" name="hb_set_get_max ()" link="harfbuzz-hb-set.html#hb-set-get-max" since="1.0"/>
+    <keyword type="function" name="hb_set_get_min ()" link="harfbuzz-hb-set.html#hb-set-get-min" since="1.0"/>
+    <keyword type="function" name="hb_set_get_population ()" link="harfbuzz-hb-set.html#hb-set-get-population" since="1.0"/>
+    <keyword type="function" name="hb_set_get_user_data ()" link="harfbuzz-hb-set.html#hb-set-get-user-data" since="1.0"/>
+    <keyword type="function" name="hb_set_has ()" link="harfbuzz-hb-set.html#hb-set-has" since="1.0"/>
+    <keyword type="function" name="hb_set_intersect ()" link="harfbuzz-hb-set.html#hb-set-intersect" since="1.0"/>
+    <keyword type="function" name="hb_set_invert ()" link="harfbuzz-hb-set.html#hb-set-invert" since="1.0"/>
+    <keyword type="function" name="hb_set_is_empty ()" link="harfbuzz-hb-set.html#hb-set-is-empty" since="1.0"/>
+    <keyword type="function" name="hb_set_is_equal ()" link="harfbuzz-hb-set.html#hb-set-is-equal" since="1.0"/>
+    <keyword type="function" name="hb_set_next ()" link="harfbuzz-hb-set.html#hb-set-next" since="1.0"/>
+    <keyword type="function" name="hb_set_next_range ()" link="harfbuzz-hb-set.html#hb-set-next-range" since="1.0"/>
+    <keyword type="function" name="hb_set_reference ()" link="harfbuzz-hb-set.html#hb-set-reference" since="1.0"/>
+    <keyword type="function" name="hb_set_set ()" link="harfbuzz-hb-set.html#hb-set-set" since="1.0"/>
+    <keyword type="function" name="hb_set_set_user_data ()" link="harfbuzz-hb-set.html#hb-set-set-user-data" since="1.0"/>
+    <keyword type="function" name="hb_set_subtract ()" link="harfbuzz-hb-set.html#hb-set-subtract" since="1.0"/>
+    <keyword type="function" name="hb_set_symmetric_difference ()" link="harfbuzz-hb-set.html#hb-set-symmetric-difference" since="1.0"/>
+    <keyword type="function" name="hb_set_union ()" link="harfbuzz-hb-set.html#hb-set-union" since="1.0"/>
+    <keyword type="typedef" name="hb_set_t" link="harfbuzz-hb-set.html#hb-set-t"/>
+    <keyword type="function" name="hb_ot_layout_collect_lookups ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-collect-lookups"/>
+    <keyword type="function" name="hb_ot_layout_feature_get_lookups ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-feature-get-lookups"/>
+    <keyword type="function" name="hb_ot_layout_get_attach_points ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-get-attach-points"/>
+    <keyword type="function" name="hb_ot_layout_get_glyph_class ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-get-glyph-class"/>
+    <keyword type="function" name="hb_ot_layout_get_glyphs_in_class ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-get-glyphs-in-class"/>
+    <keyword type="function" name="hb_ot_layout_get_ligature_carets ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-get-ligature-carets"/>
+    <keyword type="function" name="hb_ot_layout_get_size_params ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-get-size-params"/>
+    <keyword type="function" name="hb_ot_layout_glyph_sequence_func_t ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-glyph-sequence-func-t"/>
+    <keyword type="function" name="hb_ot_layout_has_glyph_classes ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-has-glyph-classes"/>
+    <keyword type="function" name="hb_ot_layout_has_positioning ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-has-positioning"/>
+    <keyword type="function" name="hb_ot_layout_has_substitution ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-has-substitution"/>
+    <keyword type="function" name="hb_ot_layout_language_find_feature ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-language-find-feature"/>
+    <keyword type="function" name="hb_ot_layout_language_get_feature_indexes ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-language-get-feature-indexes"/>
+    <keyword type="function" name="hb_ot_layout_language_get_feature_tags ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-language-get-feature-tags"/>
+    <keyword type="function" name="hb_ot_layout_language_get_required_feature ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-language-get-required-feature"/>
+    <keyword type="function" name="hb_ot_layout_lookup_collect_glyphs ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-lookup-collect-glyphs"/>
+    <keyword type="function" name="hb_ot_layout_lookup_substitute_closure ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-lookup-substitute-closure"/>
+    <keyword type="function" name="hb_ot_layout_lookup_would_substitute ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-lookup-would-substitute"/>
+    <keyword type="function" name="hb_ot_layout_script_find_language ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-script-find-language"/>
+    <keyword type="function" name="hb_ot_layout_script_get_language_tags ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-script-get-language-tags"/>
+    <keyword type="function" name="hb_ot_layout_table_choose_script ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-table-choose-script"/>
+    <keyword type="function" name="hb_ot_layout_table_find_script ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-table-find-script"/>
+    <keyword type="function" name="hb_ot_layout_table_get_feature_tags ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-table-get-feature-tags"/>
+    <keyword type="function" name="hb_ot_layout_table_get_script_tags ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-table-get-script-tags"/>
+    <keyword type="function" name="hb_ot_layout_table_get_lookup_count ()" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-table-get-lookup-count"/>
+    <keyword type="function" name="hb_ot_shape_plan_collect_lookups ()" link="harfbuzz-hb-ot-layout.html#hb-ot-shape-plan-collect-lookups"/>
+    <keyword type="macro" name="HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX" link="harfbuzz-hb-ot-layout.html#HB-OT-LAYOUT-DEFAULT-LANGUAGE-INDEX:CAPS"/>
+    <keyword type="macro" name="HB_OT_LAYOUT_NO_FEATURE_INDEX" link="harfbuzz-hb-ot-layout.html#HB-OT-LAYOUT-NO-FEATURE-INDEX:CAPS"/>
+    <keyword type="macro" name="HB_OT_LAYOUT_NO_SCRIPT_INDEX" link="harfbuzz-hb-ot-layout.html#HB-OT-LAYOUT-NO-SCRIPT-INDEX:CAPS"/>
+    <keyword type="macro" name="HB_OT_TAG_GDEF" link="harfbuzz-hb-ot-layout.html#HB-OT-TAG-GDEF:CAPS"/>
+    <keyword type="macro" name="HB_OT_TAG_GPOS" link="harfbuzz-hb-ot-layout.html#HB-OT-TAG-GPOS:CAPS"/>
+    <keyword type="macro" name="HB_OT_TAG_GSUB" link="harfbuzz-hb-ot-layout.html#HB-OT-TAG-GSUB:CAPS"/>
+    <keyword type="enum" name="enum hb_ot_layout_glyph_class_t" link="harfbuzz-hb-ot-layout.html#hb-ot-layout-glyph-class-t"/>
+    <keyword type="function" name="hb_ot_tag_from_language ()" link="harfbuzz-hb-ot-tag.html#hb-ot-tag-from-language"/>
+    <keyword type="function" name="hb_ot_tag_to_language ()" link="harfbuzz-hb-ot-tag.html#hb-ot-tag-to-language"/>
+    <keyword type="function" name="hb_ot_tag_to_script ()" link="harfbuzz-hb-ot-tag.html#hb-ot-tag-to-script"/>
+    <keyword type="function" name="hb_ot_tags_from_script ()" link="harfbuzz-hb-ot-tag.html#hb-ot-tags-from-script"/>
+    <keyword type="macro" name="HB_OT_TAG_DEFAULT_LANGUAGE" link="harfbuzz-hb-ot-tag.html#HB-OT-TAG-DEFAULT-LANGUAGE:CAPS"/>
+    <keyword type="macro" name="HB_OT_TAG_DEFAULT_SCRIPT" link="harfbuzz-hb-ot-tag.html#HB-OT-TAG-DEFAULT-SCRIPT:CAPS"/>
+    <keyword type="function" name="hb_shape_plan_create ()" link="harfbuzz-hb-shape-plan.html#hb-shape-plan-create"/>
+    <keyword type="function" name="hb_shape_plan_create_cached ()" link="harfbuzz-hb-shape-plan.html#hb-shape-plan-create-cached" since="1.0"/>
+    <keyword type="function" name="hb_shape_plan_destroy ()" link="harfbuzz-hb-shape-plan.html#hb-shape-plan-destroy" since="1.0"/>
+    <keyword type="function" name="hb_shape_plan_execute ()" link="harfbuzz-hb-shape-plan.html#hb-shape-plan-execute" since="1.0"/>
+    <keyword type="function" name="hb_shape_plan_get_empty ()" link="harfbuzz-hb-shape-plan.html#hb-shape-plan-get-empty" since="1.0"/>
+    <keyword type="function" name="hb_shape_plan_get_shaper ()" link="harfbuzz-hb-shape-plan.html#hb-shape-plan-get-shaper" since="1.0"/>
+    <keyword type="function" name="hb_shape_plan_get_user_data ()" link="harfbuzz-hb-shape-plan.html#hb-shape-plan-get-user-data" since="1.0"/>
+    <keyword type="function" name="hb_shape_plan_reference ()" link="harfbuzz-hb-shape-plan.html#hb-shape-plan-reference" since="1.0"/>
+    <keyword type="function" name="hb_shape_plan_set_user_data ()" link="harfbuzz-hb-shape-plan.html#hb-shape-plan-set-user-data" since="1.0"/>
+    <keyword type="typedef" name="hb_shape_plan_t" link="harfbuzz-hb-shape-plan.html#hb-shape-plan-t"/>
+    <keyword type="function" name="hb_glib_get_unicode_funcs ()" link="harfbuzz-hb-glib.html#hb-glib-get-unicode-funcs"/>
+    <keyword type="function" name="hb_glib_script_from_script ()" link="harfbuzz-hb-glib.html#hb-glib-script-from-script"/>
+    <keyword type="function" name="hb_glib_script_to_script ()" link="harfbuzz-hb-glib.html#hb-glib-script-to-script"/>
+    <keyword type="function" name="hb_icu_get_unicode_funcs ()" link="harfbuzz-hb-icu.html#hb-icu-get-unicode-funcs"/>
+    <keyword type="function" name="hb_icu_script_from_script ()" link="harfbuzz-hb-icu.html#hb-icu-script-from-script"/>
+    <keyword type="function" name="hb_icu_script_to_script ()" link="harfbuzz-hb-icu.html#hb-icu-script-to-script"/>
+    <keyword type="function" name="hb_ft_face_create ()" link="harfbuzz-hb-ft.html#hb-ft-face-create" since="1.0"/>
+    <keyword type="function" name="hb_ft_face_create_cached ()" link="harfbuzz-hb-ft.html#hb-ft-face-create-cached" since="1.0"/>
+    <keyword type="function" name="hb_ft_font_create ()" link="harfbuzz-hb-ft.html#hb-ft-font-create" since="1.0"/>
+    <keyword type="function" name="hb_ft_font_get_face ()" link="harfbuzz-hb-ft.html#hb-ft-font-get-face"/>
+    <keyword type="function" name="hb_ft_font_set_funcs ()" link="harfbuzz-hb-ft.html#hb-ft-font-set-funcs"/>
+    <keyword type="function" name="hb_graphite2_face_get_gr_face ()" link="harfbuzz-hb-graphite2.html#hb-graphite2-face-get-gr-face"/>
+    <keyword type="function" name="hb_graphite2_font_get_gr_font ()" link="harfbuzz-hb-graphite2.html#hb-graphite2-font-get-gr-font"/>
+    <keyword type="macro" name="HB_GRAPHITE2_TAG_SILF" link="harfbuzz-hb-graphite2.html#HB-GRAPHITE2-TAG-SILF:CAPS"/>
+    <keyword type="function" name="hb_uniscribe_font_get_hfont ()" link="harfbuzz-hb-uniscribe.html#hb-uniscribe-font-get-hfont"/>
+    <keyword type="function" name="hb_uniscribe_font_get_logfontw ()" link="harfbuzz-hb-uniscribe.html#hb-uniscribe-font-get-logfontw"/>
+    <keyword type="function" name="hb_coretext_face_create ()" link="harfbuzz-hb-coretext.html#hb-coretext-face-create"/>
+    <keyword type="function" name="hb_coretext_face_get_cg_font ()" link="harfbuzz-hb-coretext.html#hb-coretext-face-get-cg-font"/>
+    <keyword type="function" name="hb_coretext_font_get_ct_font ()" link="harfbuzz-hb-coretext.html#hb-coretext-font-get-ct-font"/>
+    <keyword type="macro" name="HB_CORETEXT_TAG_MORT" link="harfbuzz-hb-coretext.html#HB-CORETEXT-TAG-MORT:CAPS"/>
+    <keyword type="macro" name="HB_CORETEXT_TAG_MORX" link="harfbuzz-hb-coretext.html#HB-CORETEXT-TAG-MORX:CAPS"/>
+  </functions>
+</book>
diff --git a/docs/reference/html/home.png b/docs/reference/html/home.png
new file mode 100644 (file)
index 0000000..9346b33
Binary files /dev/null and b/docs/reference/html/home.png differ
diff --git a/docs/reference/html/index.html b/docs/reference/html/index.html
new file mode 100644 (file)
index 0000000..d5cc2bb
--- /dev/null
@@ -0,0 +1,105 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>HarfBuzz Reference Manual</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="next" href="ch01.html" title="[Insert title here]">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<div class="book">
+<div class="titlepage">
+<div>
+<div><table class="navigation" id="top" width="100%" cellpadding="2" cellspacing="0"><tr><th valign="middle"><p class="title">HarfBuzz Reference Manual</p></th></tr></table></div>
+<div><p class="releaseinfo">
+      for HarfBuzz 0.9.35
+.
+      
+    </p></div>
+</div>
+<hr>
+</div>
+<div class="toc"><dl>
+<dt><span class="chapter"><a href="ch01.html">[Insert title here]</a></span></dt>
+<dd><dl>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb.html">hb</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-common.html">hb-common</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-unicode.html">hb-unicode</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-buffer.html">hb-buffer</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-blob.html">hb-blob</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-face.html">hb-face</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-font.html">hb-font</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-shape.html">hb-shape</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-version.html">hb-version</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-deprecated.html">hb-deprecated</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-set.html">hb-set</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-ot.html">hb-ot</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-ot-layout.html">hb-ot-layout</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-ot-tag.html">hb-ot-tag</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-shape-plan.html">hb-shape-plan</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-glib.html">hb-glib</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-icu.html">hb-icu</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-ft.html">hb-ft</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-graphite2.html">hb-graphite2</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-uniscribe.html">hb-uniscribe</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-coretext.html">hb-coretext</a></span><span class="refpurpose"></span>
+</dt>
+<dt>
+<span class="refentrytitle"><a href="harfbuzz-hb-gobject.html">hb-gobject</a></span><span class="refpurpose"></span>
+</dt>
+</dl></dd>
+<dt><span class="chapter"><a href="object-tree.html">Object Hierarchy</a></span></dt>
+<dt><span class="index"><a href="api-index-full.html">API Index</a></span></dt>
+<dt><span class="index"><a href="deprecated-api-index.html">Index of deprecated API</a></span></dt>
+<dt><span class="glossary"><a href="annotation-glossary.html">Annotation Glossary</a></span></dt>
+</dl></div>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/index.sgml b/docs/reference/html/index.sgml
new file mode 100644 (file)
index 0000000..e9d29e0
--- /dev/null
@@ -0,0 +1,496 @@
+<ANCHOR id="harfbuzz-hb" href="harfbuzz/harfbuzz-hb.html">
+<ANCHOR id="harfbuzz-hb.description" href="harfbuzz/harfbuzz-hb.html#harfbuzz-hb.description">
+<ANCHOR id="harfbuzz-hb.functions_details" href="harfbuzz/harfbuzz-hb.html#harfbuzz-hb.functions_details">
+<ANCHOR id="harfbuzz-hb.other_details" href="harfbuzz/harfbuzz-hb.html#harfbuzz-hb.other_details">
+<ANCHOR id="harfbuzz-hb-common" href="harfbuzz/harfbuzz-hb-common.html">
+<ANCHOR id="harfbuzz-hb-common.functions" href="harfbuzz/harfbuzz-hb-common.html#harfbuzz-hb-common.functions">
+<ANCHOR id="hb-language-t" href="harfbuzz/harfbuzz-hb-common.html#hb-language-t">
+<ANCHOR id="hb-user-data-key-t" href="harfbuzz/harfbuzz-hb-common.html#hb-user-data-key-t">
+<ANCHOR id="harfbuzz-hb-common.other" href="harfbuzz/harfbuzz-hb-common.html#harfbuzz-hb-common.other">
+<ANCHOR id="harfbuzz-hb-common.object-hierarchy" href="harfbuzz/harfbuzz-hb-common.html#harfbuzz-hb-common.object-hierarchy">
+<ANCHOR id="harfbuzz-hb-common.description" href="harfbuzz/harfbuzz-hb-common.html#harfbuzz-hb-common.description">
+<ANCHOR id="harfbuzz-hb-common.functions_details" href="harfbuzz/harfbuzz-hb-common.html#harfbuzz-hb-common.functions_details">
+<ANCHOR id="HB-DIRECTION-REVERSE:CAPS" href="harfbuzz/harfbuzz-hb-common.html#HB-DIRECTION-REVERSE:CAPS">
+<ANCHOR id="HB-LANGUAGE-INVALID:CAPS" href="harfbuzz/harfbuzz-hb-common.html#HB-LANGUAGE-INVALID:CAPS">
+<ANCHOR id="HB-TAG:CAPS" href="harfbuzz/harfbuzz-hb-common.html#HB-TAG:CAPS">
+<ANCHOR id="HB-UNTAG:CAPS" href="harfbuzz/harfbuzz-hb-common.html#HB-UNTAG:CAPS">
+<ANCHOR id="hb-destroy-func-t" href="harfbuzz/harfbuzz-hb-common.html#hb-destroy-func-t">
+<ANCHOR id="hb-direction-from-string" href="harfbuzz/harfbuzz-hb-common.html#hb-direction-from-string">
+<ANCHOR id="hb-direction-to-string" href="harfbuzz/harfbuzz-hb-common.html#hb-direction-to-string">
+<ANCHOR id="hb-language-from-string" href="harfbuzz/harfbuzz-hb-common.html#hb-language-from-string">
+<ANCHOR id="hb-language-get-default" href="harfbuzz/harfbuzz-hb-common.html#hb-language-get-default">
+<ANCHOR id="hb-language-to-string" href="harfbuzz/harfbuzz-hb-common.html#hb-language-to-string">
+<ANCHOR id="hb-script-from-iso15924-tag" href="harfbuzz/harfbuzz-hb-common.html#hb-script-from-iso15924-tag">
+<ANCHOR id="hb-script-from-string" href="harfbuzz/harfbuzz-hb-common.html#hb-script-from-string">
+<ANCHOR id="hb-script-get-horizontal-direction" href="harfbuzz/harfbuzz-hb-common.html#hb-script-get-horizontal-direction">
+<ANCHOR id="hb-script-to-iso15924-tag" href="harfbuzz/harfbuzz-hb-common.html#hb-script-to-iso15924-tag">
+<ANCHOR id="hb-tag-from-string" href="harfbuzz/harfbuzz-hb-common.html#hb-tag-from-string">
+<ANCHOR id="hb-tag-to-string" href="harfbuzz/harfbuzz-hb-common.html#hb-tag-to-string">
+<ANCHOR id="HB-DIRECTION-IS-BACKWARD:CAPS" href="harfbuzz/harfbuzz-hb-common.html#HB-DIRECTION-IS-BACKWARD:CAPS">
+<ANCHOR id="HB-DIRECTION-IS-FORWARD:CAPS" href="harfbuzz/harfbuzz-hb-common.html#HB-DIRECTION-IS-FORWARD:CAPS">
+<ANCHOR id="HB-DIRECTION-IS-HORIZONTAL:CAPS" href="harfbuzz/harfbuzz-hb-common.html#HB-DIRECTION-IS-HORIZONTAL:CAPS">
+<ANCHOR id="HB-DIRECTION-IS-VALID:CAPS" href="harfbuzz/harfbuzz-hb-common.html#HB-DIRECTION-IS-VALID:CAPS">
+<ANCHOR id="HB-DIRECTION-IS-VERTICAL:CAPS" href="harfbuzz/harfbuzz-hb-common.html#HB-DIRECTION-IS-VERTICAL:CAPS">
+<ANCHOR id="harfbuzz-hb-common.other_details" href="harfbuzz/harfbuzz-hb-common.html#harfbuzz-hb-common.other_details">
+<ANCHOR id="HB-TAG-NONE:CAPS" href="harfbuzz/harfbuzz-hb-common.html#HB-TAG-NONE:CAPS">
+<ANCHOR id="HB-TAG-MAX:CAPS" href="harfbuzz/harfbuzz-hb-common.html#HB-TAG-MAX:CAPS">
+<ANCHOR id="hb-bool-t" href="harfbuzz/harfbuzz-hb-common.html#hb-bool-t">
+<ANCHOR id="hb-codepoint-t" href="harfbuzz/harfbuzz-hb-common.html#hb-codepoint-t">
+<ANCHOR id="hb-direction-t" href="harfbuzz/harfbuzz-hb-common.html#hb-direction-t">
+<ANCHOR id="hb-language-t" href="harfbuzz/harfbuzz-hb-common.html#hb-language-t">
+<ANCHOR id="hb-mask-t" href="harfbuzz/harfbuzz-hb-common.html#hb-mask-t">
+<ANCHOR id="hb-position-t" href="harfbuzz/harfbuzz-hb-common.html#hb-position-t">
+<ANCHOR id="hb-script-t" href="harfbuzz/harfbuzz-hb-common.html#hb-script-t">
+<ANCHOR id="hb-tag-t" href="harfbuzz/harfbuzz-hb-common.html#hb-tag-t">
+<ANCHOR id="hb-user-data-key-t-struct" href="harfbuzz/harfbuzz-hb-common.html#hb-user-data-key-t-struct">
+<ANCHOR id="hb-var-int-t" href="harfbuzz/harfbuzz-hb-common.html#hb-var-int-t">
+<ANCHOR id="harfbuzz-hb-unicode" href="harfbuzz/harfbuzz-hb-unicode.html">
+<ANCHOR id="harfbuzz-hb-unicode.functions" href="harfbuzz/harfbuzz-hb-unicode.html#harfbuzz-hb-unicode.functions">
+<ANCHOR id="hb-unicode-funcs-t" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-t">
+<ANCHOR id="harfbuzz-hb-unicode.other" href="harfbuzz/harfbuzz-hb-unicode.html#harfbuzz-hb-unicode.other">
+<ANCHOR id="harfbuzz-hb-unicode.object-hierarchy" href="harfbuzz/harfbuzz-hb-unicode.html#harfbuzz-hb-unicode.object-hierarchy">
+<ANCHOR id="harfbuzz-hb-unicode.description" href="harfbuzz/harfbuzz-hb-unicode.html#harfbuzz-hb-unicode.description">
+<ANCHOR id="harfbuzz-hb-unicode.functions_details" href="harfbuzz/harfbuzz-hb-unicode.html#harfbuzz-hb-unicode.functions_details">
+<ANCHOR id="HB-UNICODE-MAX-DECOMPOSITION-LEN:CAPS" href="harfbuzz/harfbuzz-hb-unicode.html#HB-UNICODE-MAX-DECOMPOSITION-LEN:CAPS">
+<ANCHOR id="hb-unicode-combining-class" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-combining-class">
+<ANCHOR id="hb-unicode-combining-class-func-t" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-combining-class-func-t">
+<ANCHOR id="hb-unicode-compose" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-compose">
+<ANCHOR id="hb-unicode-compose-func-t" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-compose-func-t">
+<ANCHOR id="hb-unicode-decompose" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-decompose">
+<ANCHOR id="hb-unicode-decompose-compatibility" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-decompose-compatibility">
+<ANCHOR id="hb-unicode-decompose-func-t" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-decompose-func-t">
+<ANCHOR id="hb-unicode-eastasian-width" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-eastasian-width">
+<ANCHOR id="hb-unicode-funcs-create" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-create">
+<ANCHOR id="hb-unicode-funcs-destroy" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-destroy">
+<ANCHOR id="hb-unicode-funcs-get-default" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-get-default">
+<ANCHOR id="hb-unicode-funcs-get-empty" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-get-empty">
+<ANCHOR id="hb-unicode-funcs-get-parent" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-get-parent">
+<ANCHOR id="hb-unicode-funcs-get-user-data" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-get-user-data">
+<ANCHOR id="hb-unicode-funcs-is-immutable" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-is-immutable">
+<ANCHOR id="hb-unicode-funcs-make-immutable" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-make-immutable">
+<ANCHOR id="hb-unicode-funcs-reference" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-reference">
+<ANCHOR id="hb-unicode-funcs-set-combining-class-func" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-set-combining-class-func">
+<ANCHOR id="hb-unicode-funcs-set-compose-func" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-set-compose-func">
+<ANCHOR id="hb-unicode-funcs-set-decompose-compatibility-func" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-set-decompose-compatibility-func">
+<ANCHOR id="hb-unicode-funcs-set-decompose-func" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-set-decompose-func">
+<ANCHOR id="hb-unicode-funcs-set-eastasian-width-func" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-set-eastasian-width-func">
+<ANCHOR id="hb-unicode-funcs-set-general-category-func" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-set-general-category-func">
+<ANCHOR id="hb-unicode-funcs-set-mirroring-func" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-set-mirroring-func">
+<ANCHOR id="hb-unicode-funcs-set-script-func" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-set-script-func">
+<ANCHOR id="hb-unicode-funcs-set-user-data" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-set-user-data">
+<ANCHOR id="hb-unicode-general-category" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-general-category">
+<ANCHOR id="hb-unicode-general-category-func-t" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-general-category-func-t">
+<ANCHOR id="hb-unicode-mirroring" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-mirroring">
+<ANCHOR id="hb-unicode-mirroring-func-t" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-mirroring-func-t">
+<ANCHOR id="hb-unicode-script" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-script">
+<ANCHOR id="hb-unicode-script-func-t" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-script-func-t">
+<ANCHOR id="harfbuzz-hb-unicode.other_details" href="harfbuzz/harfbuzz-hb-unicode.html#harfbuzz-hb-unicode.other_details">
+<ANCHOR id="hb-unicode-combining-class-t" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-combining-class-t">
+<ANCHOR id="hb-unicode-funcs-t" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-funcs-t">
+<ANCHOR id="hb-unicode-general-category-t" href="harfbuzz/harfbuzz-hb-unicode.html#hb-unicode-general-category-t">
+<ANCHOR id="harfbuzz-hb-buffer" href="harfbuzz/harfbuzz-hb-buffer.html">
+<ANCHOR id="harfbuzz-hb-buffer.functions" href="harfbuzz/harfbuzz-hb-buffer.html#harfbuzz-hb-buffer.functions">
+<ANCHOR id="hb-buffer-t" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-t">
+<ANCHOR id="hb-glyph-info-t" href="harfbuzz/harfbuzz-hb-buffer.html#hb-glyph-info-t">
+<ANCHOR id="hb-glyph-position-t" href="harfbuzz/harfbuzz-hb-buffer.html#hb-glyph-position-t">
+<ANCHOR id="hb-segment-properties-t" href="harfbuzz/harfbuzz-hb-buffer.html#hb-segment-properties-t">
+<ANCHOR id="harfbuzz-hb-buffer.other" href="harfbuzz/harfbuzz-hb-buffer.html#harfbuzz-hb-buffer.other">
+<ANCHOR id="harfbuzz-hb-buffer.object-hierarchy" href="harfbuzz/harfbuzz-hb-buffer.html#harfbuzz-hb-buffer.object-hierarchy">
+<ANCHOR id="harfbuzz-hb-buffer.description" href="harfbuzz/harfbuzz-hb-buffer.html#harfbuzz-hb-buffer.description">
+<ANCHOR id="harfbuzz-hb-buffer.functions_details" href="harfbuzz/harfbuzz-hb-buffer.html#harfbuzz-hb-buffer.functions_details">
+<ANCHOR id="hb-buffer-add" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-add">
+<ANCHOR id="hb-buffer-add-utf16" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-add-utf16">
+<ANCHOR id="hb-buffer-add-utf32" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-add-utf32">
+<ANCHOR id="hb-buffer-add-utf8" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-add-utf8">
+<ANCHOR id="hb-buffer-add-codepoints" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-add-codepoints">
+<ANCHOR id="hb-buffer-allocation-successful" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-allocation-successful">
+<ANCHOR id="hb-buffer-clear-contents" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-clear-contents">
+<ANCHOR id="hb-buffer-create" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-create">
+<ANCHOR id="hb-buffer-deserialize-glyphs" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-deserialize-glyphs">
+<ANCHOR id="hb-buffer-destroy" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-destroy">
+<ANCHOR id="hb-buffer-get-content-type" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-get-content-type">
+<ANCHOR id="hb-buffer-get-direction" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-get-direction">
+<ANCHOR id="hb-buffer-get-empty" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-get-empty">
+<ANCHOR id="hb-buffer-get-flags" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-get-flags">
+<ANCHOR id="hb-buffer-get-glyph-infos" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-get-glyph-infos">
+<ANCHOR id="hb-buffer-get-glyph-positions" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-get-glyph-positions">
+<ANCHOR id="hb-buffer-get-language" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-get-language">
+<ANCHOR id="hb-buffer-get-length" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-get-length">
+<ANCHOR id="hb-buffer-get-replacement-codepoint" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-get-replacement-codepoint">
+<ANCHOR id="hb-buffer-get-script" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-get-script">
+<ANCHOR id="hb-buffer-get-segment-properties" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-get-segment-properties">
+<ANCHOR id="hb-buffer-get-unicode-funcs" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-get-unicode-funcs">
+<ANCHOR id="hb-buffer-get-user-data" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-get-user-data">
+<ANCHOR id="hb-buffer-guess-segment-properties" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-guess-segment-properties">
+<ANCHOR id="hb-buffer-normalize-glyphs" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-normalize-glyphs">
+<ANCHOR id="hb-buffer-pre-allocate" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-pre-allocate">
+<ANCHOR id="hb-buffer-reference" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-reference">
+<ANCHOR id="hb-buffer-reset" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-reset">
+<ANCHOR id="hb-buffer-reverse" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-reverse">
+<ANCHOR id="hb-buffer-reverse-clusters" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-reverse-clusters">
+<ANCHOR id="hb-buffer-serialize-format-from-string" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-serialize-format-from-string">
+<ANCHOR id="hb-buffer-serialize-format-to-string" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-serialize-format-to-string">
+<ANCHOR id="hb-buffer-serialize-glyphs" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-serialize-glyphs">
+<ANCHOR id="hb-buffer-serialize-list-formats" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-serialize-list-formats">
+<ANCHOR id="hb-buffer-set-content-type" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-set-content-type">
+<ANCHOR id="hb-buffer-set-direction" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-set-direction">
+<ANCHOR id="hb-buffer-set-flags" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-set-flags">
+<ANCHOR id="hb-buffer-set-language" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-set-language">
+<ANCHOR id="hb-buffer-set-length" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-set-length">
+<ANCHOR id="hb-buffer-set-replacement-codepoint" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-set-replacement-codepoint">
+<ANCHOR id="hb-buffer-set-script" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-set-script">
+<ANCHOR id="hb-buffer-set-segment-properties" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-set-segment-properties">
+<ANCHOR id="hb-buffer-set-unicode-funcs" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-set-unicode-funcs">
+<ANCHOR id="hb-buffer-set-user-data" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-set-user-data">
+<ANCHOR id="hb-segment-properties-equal" href="harfbuzz/harfbuzz-hb-buffer.html#hb-segment-properties-equal">
+<ANCHOR id="hb-segment-properties-hash" href="harfbuzz/harfbuzz-hb-buffer.html#hb-segment-properties-hash">
+<ANCHOR id="harfbuzz-hb-buffer.other_details" href="harfbuzz/harfbuzz-hb-buffer.html#harfbuzz-hb-buffer.other_details">
+<ANCHOR id="HB-SEGMENT-PROPERTIES-DEFAULT:CAPS" href="harfbuzz/harfbuzz-hb-buffer.html#HB-SEGMENT-PROPERTIES-DEFAULT:CAPS">
+<ANCHOR id="hb-buffer-content-type-t" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-content-type-t">
+<ANCHOR id="hb-buffer-flags-t" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-flags-t">
+<ANCHOR id="hb-buffer-serialize-flags-t" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-serialize-flags-t">
+<ANCHOR id="hb-buffer-serialize-format-t" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t">
+<ANCHOR id="hb-buffer-t" href="harfbuzz/harfbuzz-hb-buffer.html#hb-buffer-t">
+<ANCHOR id="hb-glyph-info-t-struct" href="harfbuzz/harfbuzz-hb-buffer.html#hb-glyph-info-t-struct">
+<ANCHOR id="hb-glyph-position-t-struct" href="harfbuzz/harfbuzz-hb-buffer.html#hb-glyph-position-t-struct">
+<ANCHOR id="hb-segment-properties-t-struct" href="harfbuzz/harfbuzz-hb-buffer.html#hb-segment-properties-t-struct">
+<ANCHOR id="harfbuzz-hb-blob" href="harfbuzz/harfbuzz-hb-blob.html">
+<ANCHOR id="harfbuzz-hb-blob.functions" href="harfbuzz/harfbuzz-hb-blob.html#harfbuzz-hb-blob.functions">
+<ANCHOR id="hb-blob-t" href="harfbuzz/harfbuzz-hb-blob.html#hb-blob-t">
+<ANCHOR id="harfbuzz-hb-blob.other" href="harfbuzz/harfbuzz-hb-blob.html#harfbuzz-hb-blob.other">
+<ANCHOR id="harfbuzz-hb-blob.object-hierarchy" href="harfbuzz/harfbuzz-hb-blob.html#harfbuzz-hb-blob.object-hierarchy">
+<ANCHOR id="harfbuzz-hb-blob.description" href="harfbuzz/harfbuzz-hb-blob.html#harfbuzz-hb-blob.description">
+<ANCHOR id="harfbuzz-hb-blob.functions_details" href="harfbuzz/harfbuzz-hb-blob.html#harfbuzz-hb-blob.functions_details">
+<ANCHOR id="hb-blob-create" href="harfbuzz/harfbuzz-hb-blob.html#hb-blob-create">
+<ANCHOR id="hb-blob-create-sub-blob" href="harfbuzz/harfbuzz-hb-blob.html#hb-blob-create-sub-blob">
+<ANCHOR id="hb-blob-destroy" href="harfbuzz/harfbuzz-hb-blob.html#hb-blob-destroy">
+<ANCHOR id="hb-blob-get-data" href="harfbuzz/harfbuzz-hb-blob.html#hb-blob-get-data">
+<ANCHOR id="hb-blob-get-data-writable" href="harfbuzz/harfbuzz-hb-blob.html#hb-blob-get-data-writable">
+<ANCHOR id="hb-blob-get-empty" href="harfbuzz/harfbuzz-hb-blob.html#hb-blob-get-empty">
+<ANCHOR id="hb-blob-get-length" href="harfbuzz/harfbuzz-hb-blob.html#hb-blob-get-length">
+<ANCHOR id="hb-blob-get-user-data" href="harfbuzz/harfbuzz-hb-blob.html#hb-blob-get-user-data">
+<ANCHOR id="hb-blob-is-immutable" href="harfbuzz/harfbuzz-hb-blob.html#hb-blob-is-immutable">
+<ANCHOR id="hb-blob-make-immutable" href="harfbuzz/harfbuzz-hb-blob.html#hb-blob-make-immutable">
+<ANCHOR id="hb-blob-reference" href="harfbuzz/harfbuzz-hb-blob.html#hb-blob-reference">
+<ANCHOR id="hb-blob-set-user-data" href="harfbuzz/harfbuzz-hb-blob.html#hb-blob-set-user-data">
+<ANCHOR id="harfbuzz-hb-blob.other_details" href="harfbuzz/harfbuzz-hb-blob.html#harfbuzz-hb-blob.other_details">
+<ANCHOR id="hb-blob-t" href="harfbuzz/harfbuzz-hb-blob.html#hb-blob-t">
+<ANCHOR id="hb-memory-mode-t" href="harfbuzz/harfbuzz-hb-blob.html#hb-memory-mode-t">
+<ANCHOR id="harfbuzz-hb-face" href="harfbuzz/harfbuzz-hb-face.html">
+<ANCHOR id="harfbuzz-hb-face.functions" href="harfbuzz/harfbuzz-hb-face.html#harfbuzz-hb-face.functions">
+<ANCHOR id="hb-face-t" href="harfbuzz/harfbuzz-hb-face.html#hb-face-t">
+<ANCHOR id="harfbuzz-hb-face.other" href="harfbuzz/harfbuzz-hb-face.html#harfbuzz-hb-face.other">
+<ANCHOR id="harfbuzz-hb-face.object-hierarchy" href="harfbuzz/harfbuzz-hb-face.html#harfbuzz-hb-face.object-hierarchy">
+<ANCHOR id="harfbuzz-hb-face.description" href="harfbuzz/harfbuzz-hb-face.html#harfbuzz-hb-face.description">
+<ANCHOR id="harfbuzz-hb-face.functions_details" href="harfbuzz/harfbuzz-hb-face.html#harfbuzz-hb-face.functions_details">
+<ANCHOR id="hb-face-create" href="harfbuzz/harfbuzz-hb-face.html#hb-face-create">
+<ANCHOR id="hb-face-create-for-tables" href="harfbuzz/harfbuzz-hb-face.html#hb-face-create-for-tables">
+<ANCHOR id="hb-face-destroy" href="harfbuzz/harfbuzz-hb-face.html#hb-face-destroy">
+<ANCHOR id="hb-face-get-empty" href="harfbuzz/harfbuzz-hb-face.html#hb-face-get-empty">
+<ANCHOR id="hb-face-get-glyph-count" href="harfbuzz/harfbuzz-hb-face.html#hb-face-get-glyph-count">
+<ANCHOR id="hb-face-get-index" href="harfbuzz/harfbuzz-hb-face.html#hb-face-get-index">
+<ANCHOR id="hb-face-get-upem" href="harfbuzz/harfbuzz-hb-face.html#hb-face-get-upem">
+<ANCHOR id="hb-face-get-user-data" href="harfbuzz/harfbuzz-hb-face.html#hb-face-get-user-data">
+<ANCHOR id="hb-face-is-immutable" href="harfbuzz/harfbuzz-hb-face.html#hb-face-is-immutable">
+<ANCHOR id="hb-face-make-immutable" href="harfbuzz/harfbuzz-hb-face.html#hb-face-make-immutable">
+<ANCHOR id="hb-face-reference" href="harfbuzz/harfbuzz-hb-face.html#hb-face-reference">
+<ANCHOR id="hb-face-reference-blob" href="harfbuzz/harfbuzz-hb-face.html#hb-face-reference-blob">
+<ANCHOR id="hb-face-reference-table" href="harfbuzz/harfbuzz-hb-face.html#hb-face-reference-table">
+<ANCHOR id="hb-face-set-glyph-count" href="harfbuzz/harfbuzz-hb-face.html#hb-face-set-glyph-count">
+<ANCHOR id="hb-face-set-index" href="harfbuzz/harfbuzz-hb-face.html#hb-face-set-index">
+<ANCHOR id="hb-face-set-upem" href="harfbuzz/harfbuzz-hb-face.html#hb-face-set-upem">
+<ANCHOR id="hb-face-set-user-data" href="harfbuzz/harfbuzz-hb-face.html#hb-face-set-user-data">
+<ANCHOR id="harfbuzz-hb-face.other_details" href="harfbuzz/harfbuzz-hb-face.html#harfbuzz-hb-face.other_details">
+<ANCHOR id="hb-face-t" href="harfbuzz/harfbuzz-hb-face.html#hb-face-t">
+<ANCHOR id="harfbuzz-hb-font" href="harfbuzz/harfbuzz-hb-font.html">
+<ANCHOR id="harfbuzz-hb-font.functions" href="harfbuzz/harfbuzz-hb-font.html#harfbuzz-hb-font.functions">
+<ANCHOR id="hb-font-funcs-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-t">
+<ANCHOR id="hb-font-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-t">
+<ANCHOR id="harfbuzz-hb-font.other" href="harfbuzz/harfbuzz-hb-font.html#harfbuzz-hb-font.other">
+<ANCHOR id="harfbuzz-hb-font.object-hierarchy" href="harfbuzz/harfbuzz-hb-font.html#harfbuzz-hb-font.object-hierarchy">
+<ANCHOR id="harfbuzz-hb-font.description" href="harfbuzz/harfbuzz-hb-font.html#harfbuzz-hb-font.description">
+<ANCHOR id="harfbuzz-hb-font.functions_details" href="harfbuzz/harfbuzz-hb-font.html#harfbuzz-hb-font.functions_details">
+<ANCHOR id="hb-font-add-glyph-origin-for-direction" href="harfbuzz/harfbuzz-hb-font.html#hb-font-add-glyph-origin-for-direction">
+<ANCHOR id="hb-font-create" href="harfbuzz/harfbuzz-hb-font.html#hb-font-create">
+<ANCHOR id="hb-font-create-sub-font" href="harfbuzz/harfbuzz-hb-font.html#hb-font-create-sub-font">
+<ANCHOR id="hb-font-destroy" href="harfbuzz/harfbuzz-hb-font.html#hb-font-destroy">
+<ANCHOR id="hb-font-funcs-create" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-create">
+<ANCHOR id="hb-font-funcs-destroy" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-destroy">
+<ANCHOR id="hb-font-funcs-get-empty" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-get-empty">
+<ANCHOR id="hb-font-funcs-get-user-data" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-get-user-data">
+<ANCHOR id="hb-font-funcs-is-immutable" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-is-immutable">
+<ANCHOR id="hb-font-funcs-make-immutable" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-make-immutable">
+<ANCHOR id="hb-font-funcs-reference" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-reference">
+<ANCHOR id="hb-font-funcs-set-glyph-contour-point-func" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-contour-point-func">
+<ANCHOR id="hb-font-funcs-set-glyph-extents-func" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-extents-func">
+<ANCHOR id="hb-font-funcs-set-glyph-from-name-func" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-from-name-func">
+<ANCHOR id="hb-font-funcs-set-glyph-func" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-func">
+<ANCHOR id="hb-font-funcs-set-glyph-h-advance-func" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-h-advance-func">
+<ANCHOR id="hb-font-funcs-set-glyph-h-kerning-func" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-h-kerning-func">
+<ANCHOR id="hb-font-funcs-set-glyph-h-origin-func" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-h-origin-func">
+<ANCHOR id="hb-font-funcs-set-glyph-name-func" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-name-func">
+<ANCHOR id="hb-font-funcs-set-glyph-v-advance-func" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-advance-func">
+<ANCHOR id="hb-font-funcs-set-glyph-v-kerning-func" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-kerning-func">
+<ANCHOR id="hb-font-funcs-set-glyph-v-origin-func" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-set-glyph-v-origin-func">
+<ANCHOR id="hb-font-funcs-set-user-data" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-set-user-data">
+<ANCHOR id="hb-font-get-empty" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-empty">
+<ANCHOR id="hb-font-get-face" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-face">
+<ANCHOR id="hb-font-get-glyph" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph">
+<ANCHOR id="hb-font-get-glyph-advance-for-direction" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-advance-for-direction">
+<ANCHOR id="hb-font-get-glyph-advance-func-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-advance-func-t">
+<ANCHOR id="hb-font-get-glyph-contour-point" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-contour-point">
+<ANCHOR id="hb-font-get-glyph-contour-point-for-origin" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-contour-point-for-origin">
+<ANCHOR id="hb-font-get-glyph-contour-point-func-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-contour-point-func-t">
+<ANCHOR id="hb-font-get-glyph-extents" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-extents">
+<ANCHOR id="hb-font-get-glyph-extents-for-origin" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-extents-for-origin">
+<ANCHOR id="hb-font-get-glyph-extents-func-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-extents-func-t">
+<ANCHOR id="hb-font-get-glyph-from-name" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-from-name">
+<ANCHOR id="hb-font-get-glyph-from-name-func-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-from-name-func-t">
+<ANCHOR id="hb-font-get-glyph-func-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-func-t">
+<ANCHOR id="hb-font-get-glyph-h-advance" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-h-advance">
+<ANCHOR id="hb-font-get-glyph-h-kerning" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-h-kerning">
+<ANCHOR id="hb-font-get-glyph-h-origin" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-h-origin">
+<ANCHOR id="hb-font-get-glyph-kerning-for-direction" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-kerning-for-direction">
+<ANCHOR id="hb-font-get-glyph-kerning-func-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-kerning-func-t">
+<ANCHOR id="hb-font-get-glyph-name" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-name">
+<ANCHOR id="hb-font-get-glyph-name-func-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-name-func-t">
+<ANCHOR id="hb-font-get-glyph-origin-for-direction" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-origin-for-direction">
+<ANCHOR id="hb-font-get-glyph-origin-func-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-origin-func-t">
+<ANCHOR id="hb-font-get-glyph-v-advance" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-v-advance">
+<ANCHOR id="hb-font-get-glyph-v-kerning" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-v-kerning">
+<ANCHOR id="hb-font-get-glyph-v-origin" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-v-origin">
+<ANCHOR id="hb-font-get-parent" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-parent">
+<ANCHOR id="hb-font-get-ppem" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-ppem">
+<ANCHOR id="hb-font-get-scale" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-scale">
+<ANCHOR id="hb-font-get-user-data" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-user-data">
+<ANCHOR id="hb-font-glyph-from-string" href="harfbuzz/harfbuzz-hb-font.html#hb-font-glyph-from-string">
+<ANCHOR id="hb-font-glyph-to-string" href="harfbuzz/harfbuzz-hb-font.html#hb-font-glyph-to-string">
+<ANCHOR id="hb-font-is-immutable" href="harfbuzz/harfbuzz-hb-font.html#hb-font-is-immutable">
+<ANCHOR id="hb-font-make-immutable" href="harfbuzz/harfbuzz-hb-font.html#hb-font-make-immutable">
+<ANCHOR id="hb-font-reference" href="harfbuzz/harfbuzz-hb-font.html#hb-font-reference">
+<ANCHOR id="hb-font-set-funcs" href="harfbuzz/harfbuzz-hb-font.html#hb-font-set-funcs">
+<ANCHOR id="hb-font-set-funcs-data" href="harfbuzz/harfbuzz-hb-font.html#hb-font-set-funcs-data">
+<ANCHOR id="hb-font-set-ppem" href="harfbuzz/harfbuzz-hb-font.html#hb-font-set-ppem">
+<ANCHOR id="hb-font-set-scale" href="harfbuzz/harfbuzz-hb-font.html#hb-font-set-scale">
+<ANCHOR id="hb-font-set-user-data" href="harfbuzz/harfbuzz-hb-font.html#hb-font-set-user-data">
+<ANCHOR id="hb-font-subtract-glyph-origin-for-direction" href="harfbuzz/harfbuzz-hb-font.html#hb-font-subtract-glyph-origin-for-direction">
+<ANCHOR id="hb-reference-table-func-t" href="harfbuzz/harfbuzz-hb-font.html#hb-reference-table-func-t">
+<ANCHOR id="harfbuzz-hb-font.other_details" href="harfbuzz/harfbuzz-hb-font.html#harfbuzz-hb-font.other_details">
+<ANCHOR id="hb-font-funcs-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-funcs-t">
+<ANCHOR id="hb-font-get-glyph-h-advance-func-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-h-advance-func-t">
+<ANCHOR id="hb-font-get-glyph-h-kerning-func-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-h-kerning-func-t">
+<ANCHOR id="hb-font-get-glyph-h-origin-func-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-h-origin-func-t">
+<ANCHOR id="hb-font-get-glyph-v-advance-func-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-v-advance-func-t">
+<ANCHOR id="hb-font-get-glyph-v-kerning-func-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-v-kerning-func-t">
+<ANCHOR id="hb-font-get-glyph-v-origin-func-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-get-glyph-v-origin-func-t">
+<ANCHOR id="hb-font-t" href="harfbuzz/harfbuzz-hb-font.html#hb-font-t">
+<ANCHOR id="harfbuzz-hb-shape" href="harfbuzz/harfbuzz-hb-shape.html">
+<ANCHOR id="harfbuzz-hb-shape.functions" href="harfbuzz/harfbuzz-hb-shape.html#harfbuzz-hb-shape.functions">
+<ANCHOR id="hb-feature-t" href="harfbuzz/harfbuzz-hb-shape.html#hb-feature-t">
+<ANCHOR id="harfbuzz-hb-shape.other" href="harfbuzz/harfbuzz-hb-shape.html#harfbuzz-hb-shape.other">
+<ANCHOR id="harfbuzz-hb-shape.object-hierarchy" href="harfbuzz/harfbuzz-hb-shape.html#harfbuzz-hb-shape.object-hierarchy">
+<ANCHOR id="harfbuzz-hb-shape.description" href="harfbuzz/harfbuzz-hb-shape.html#harfbuzz-hb-shape.description">
+<ANCHOR id="harfbuzz-hb-shape.functions_details" href="harfbuzz/harfbuzz-hb-shape.html#harfbuzz-hb-shape.functions_details">
+<ANCHOR id="hb-feature-from-string" href="harfbuzz/harfbuzz-hb-shape.html#hb-feature-from-string">
+<ANCHOR id="hb-feature-to-string" href="harfbuzz/harfbuzz-hb-shape.html#hb-feature-to-string">
+<ANCHOR id="hb-shape" href="harfbuzz/harfbuzz-hb-shape.html#hb-shape">
+<ANCHOR id="hb-shape-full" href="harfbuzz/harfbuzz-hb-shape.html#hb-shape-full">
+<ANCHOR id="hb-shape-list-shapers" href="harfbuzz/harfbuzz-hb-shape.html#hb-shape-list-shapers">
+<ANCHOR id="harfbuzz-hb-shape.other_details" href="harfbuzz/harfbuzz-hb-shape.html#harfbuzz-hb-shape.other_details">
+<ANCHOR id="hb-feature-t-struct" href="harfbuzz/harfbuzz-hb-shape.html#hb-feature-t-struct">
+<ANCHOR id="harfbuzz-hb-version" href="harfbuzz/harfbuzz-hb-version.html">
+<ANCHOR id="harfbuzz-hb-version.functions" href="harfbuzz/harfbuzz-hb-version.html#harfbuzz-hb-version.functions">
+<ANCHOR id="harfbuzz-hb-version.other" href="harfbuzz/harfbuzz-hb-version.html#harfbuzz-hb-version.other">
+<ANCHOR id="harfbuzz-hb-version.description" href="harfbuzz/harfbuzz-hb-version.html#harfbuzz-hb-version.description">
+<ANCHOR id="harfbuzz-hb-version.functions_details" href="harfbuzz/harfbuzz-hb-version.html#harfbuzz-hb-version.functions_details">
+<ANCHOR id="hb-version" href="harfbuzz/harfbuzz-hb-version.html#hb-version">
+<ANCHOR id="hb-version-string" href="harfbuzz/harfbuzz-hb-version.html#hb-version-string">
+<ANCHOR id="harfbuzz-hb-version.other_details" href="harfbuzz/harfbuzz-hb-version.html#harfbuzz-hb-version.other_details">
+<ANCHOR id="HB-VERSION-MAJOR:CAPS" href="harfbuzz/harfbuzz-hb-version.html#HB-VERSION-MAJOR:CAPS">
+<ANCHOR id="HB-VERSION-MICRO:CAPS" href="harfbuzz/harfbuzz-hb-version.html#HB-VERSION-MICRO:CAPS">
+<ANCHOR id="HB-VERSION-MINOR:CAPS" href="harfbuzz/harfbuzz-hb-version.html#HB-VERSION-MINOR:CAPS">
+<ANCHOR id="HB-VERSION-STRING:CAPS" href="harfbuzz/harfbuzz-hb-version.html#HB-VERSION-STRING:CAPS">
+<ANCHOR id="harfbuzz-hb-deprecated" href="harfbuzz/harfbuzz-hb-deprecated.html">
+<ANCHOR id="harfbuzz-hb-deprecated.other" href="harfbuzz/harfbuzz-hb-deprecated.html#harfbuzz-hb-deprecated.other">
+<ANCHOR id="harfbuzz-hb-deprecated.description" href="harfbuzz/harfbuzz-hb-deprecated.html#harfbuzz-hb-deprecated.description">
+<ANCHOR id="harfbuzz-hb-deprecated.functions_details" href="harfbuzz/harfbuzz-hb-deprecated.html#harfbuzz-hb-deprecated.functions_details">
+<ANCHOR id="harfbuzz-hb-deprecated.other_details" href="harfbuzz/harfbuzz-hb-deprecated.html#harfbuzz-hb-deprecated.other_details">
+<ANCHOR id="HB-BUFFER-FLAGS-DEFAULT:CAPS" href="harfbuzz/harfbuzz-hb-deprecated.html#HB-BUFFER-FLAGS-DEFAULT:CAPS">
+<ANCHOR id="HB-BUFFER-SERIALIZE-FLAGS-DEFAULT:CAPS" href="harfbuzz/harfbuzz-hb-deprecated.html#HB-BUFFER-SERIALIZE-FLAGS-DEFAULT:CAPS">
+<ANCHOR id="HB-SCRIPT-CANADIAN-ABORIGINAL:CAPS" href="harfbuzz/harfbuzz-hb-deprecated.html#HB-SCRIPT-CANADIAN-ABORIGINAL:CAPS">
+<ANCHOR id="harfbuzz-hb-set" href="harfbuzz/harfbuzz-hb-set.html">
+<ANCHOR id="harfbuzz-hb-set.functions" href="harfbuzz/harfbuzz-hb-set.html#harfbuzz-hb-set.functions">
+<ANCHOR id="hb-set-t" href="harfbuzz/harfbuzz-hb-set.html#hb-set-t">
+<ANCHOR id="harfbuzz-hb-set.other" href="harfbuzz/harfbuzz-hb-set.html#harfbuzz-hb-set.other">
+<ANCHOR id="harfbuzz-hb-set.object-hierarchy" href="harfbuzz/harfbuzz-hb-set.html#harfbuzz-hb-set.object-hierarchy">
+<ANCHOR id="harfbuzz-hb-set.description" href="harfbuzz/harfbuzz-hb-set.html#harfbuzz-hb-set.description">
+<ANCHOR id="harfbuzz-hb-set.functions_details" href="harfbuzz/harfbuzz-hb-set.html#harfbuzz-hb-set.functions_details">
+<ANCHOR id="HB-SET-VALUE-INVALID:CAPS" href="harfbuzz/harfbuzz-hb-set.html#HB-SET-VALUE-INVALID:CAPS">
+<ANCHOR id="hb-set-add" href="harfbuzz/harfbuzz-hb-set.html#hb-set-add">
+<ANCHOR id="hb-set-add-range" href="harfbuzz/harfbuzz-hb-set.html#hb-set-add-range">
+<ANCHOR id="hb-set-allocation-successful" href="harfbuzz/harfbuzz-hb-set.html#hb-set-allocation-successful">
+<ANCHOR id="hb-set-clear" href="harfbuzz/harfbuzz-hb-set.html#hb-set-clear">
+<ANCHOR id="hb-set-create" href="harfbuzz/harfbuzz-hb-set.html#hb-set-create">
+<ANCHOR id="hb-set-del" href="harfbuzz/harfbuzz-hb-set.html#hb-set-del">
+<ANCHOR id="hb-set-del-range" href="harfbuzz/harfbuzz-hb-set.html#hb-set-del-range">
+<ANCHOR id="hb-set-destroy" href="harfbuzz/harfbuzz-hb-set.html#hb-set-destroy">
+<ANCHOR id="hb-set-get-empty" href="harfbuzz/harfbuzz-hb-set.html#hb-set-get-empty">
+<ANCHOR id="hb-set-get-max" href="harfbuzz/harfbuzz-hb-set.html#hb-set-get-max">
+<ANCHOR id="hb-set-get-min" href="harfbuzz/harfbuzz-hb-set.html#hb-set-get-min">
+<ANCHOR id="hb-set-get-population" href="harfbuzz/harfbuzz-hb-set.html#hb-set-get-population">
+<ANCHOR id="hb-set-get-user-data" href="harfbuzz/harfbuzz-hb-set.html#hb-set-get-user-data">
+<ANCHOR id="hb-set-has" href="harfbuzz/harfbuzz-hb-set.html#hb-set-has">
+<ANCHOR id="hb-set-intersect" href="harfbuzz/harfbuzz-hb-set.html#hb-set-intersect">
+<ANCHOR id="hb-set-invert" href="harfbuzz/harfbuzz-hb-set.html#hb-set-invert">
+<ANCHOR id="hb-set-is-empty" href="harfbuzz/harfbuzz-hb-set.html#hb-set-is-empty">
+<ANCHOR id="hb-set-is-equal" href="harfbuzz/harfbuzz-hb-set.html#hb-set-is-equal">
+<ANCHOR id="hb-set-next" href="harfbuzz/harfbuzz-hb-set.html#hb-set-next">
+<ANCHOR id="hb-set-next-range" href="harfbuzz/harfbuzz-hb-set.html#hb-set-next-range">
+<ANCHOR id="hb-set-reference" href="harfbuzz/harfbuzz-hb-set.html#hb-set-reference">
+<ANCHOR id="hb-set-set" href="harfbuzz/harfbuzz-hb-set.html#hb-set-set">
+<ANCHOR id="hb-set-set-user-data" href="harfbuzz/harfbuzz-hb-set.html#hb-set-set-user-data">
+<ANCHOR id="hb-set-subtract" href="harfbuzz/harfbuzz-hb-set.html#hb-set-subtract">
+<ANCHOR id="hb-set-symmetric-difference" href="harfbuzz/harfbuzz-hb-set.html#hb-set-symmetric-difference">
+<ANCHOR id="hb-set-union" href="harfbuzz/harfbuzz-hb-set.html#hb-set-union">
+<ANCHOR id="harfbuzz-hb-set.other_details" href="harfbuzz/harfbuzz-hb-set.html#harfbuzz-hb-set.other_details">
+<ANCHOR id="hb-set-t" href="harfbuzz/harfbuzz-hb-set.html#hb-set-t">
+<ANCHOR id="harfbuzz-hb-ot" href="harfbuzz/harfbuzz-hb-ot.html">
+<ANCHOR id="harfbuzz-hb-ot.description" href="harfbuzz/harfbuzz-hb-ot.html#harfbuzz-hb-ot.description">
+<ANCHOR id="harfbuzz-hb-ot.functions_details" href="harfbuzz/harfbuzz-hb-ot.html#harfbuzz-hb-ot.functions_details">
+<ANCHOR id="harfbuzz-hb-ot.other_details" href="harfbuzz/harfbuzz-hb-ot.html#harfbuzz-hb-ot.other_details">
+<ANCHOR id="harfbuzz-hb-ot-layout" href="harfbuzz/harfbuzz-hb-ot-layout.html">
+<ANCHOR id="harfbuzz-hb-ot-layout.functions" href="harfbuzz/harfbuzz-hb-ot-layout.html#harfbuzz-hb-ot-layout.functions">
+<ANCHOR id="harfbuzz-hb-ot-layout.other" href="harfbuzz/harfbuzz-hb-ot-layout.html#harfbuzz-hb-ot-layout.other">
+<ANCHOR id="harfbuzz-hb-ot-layout.object-hierarchy" href="harfbuzz/harfbuzz-hb-ot-layout.html#harfbuzz-hb-ot-layout.object-hierarchy">
+<ANCHOR id="harfbuzz-hb-ot-layout.description" href="harfbuzz/harfbuzz-hb-ot-layout.html#harfbuzz-hb-ot-layout.description">
+<ANCHOR id="harfbuzz-hb-ot-layout.functions_details" href="harfbuzz/harfbuzz-hb-ot-layout.html#harfbuzz-hb-ot-layout.functions_details">
+<ANCHOR id="hb-ot-layout-collect-lookups" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-collect-lookups">
+<ANCHOR id="hb-ot-layout-feature-get-lookups" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-feature-get-lookups">
+<ANCHOR id="hb-ot-layout-get-attach-points" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-get-attach-points">
+<ANCHOR id="hb-ot-layout-get-glyph-class" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-get-glyph-class">
+<ANCHOR id="hb-ot-layout-get-glyphs-in-class" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-get-glyphs-in-class">
+<ANCHOR id="hb-ot-layout-get-ligature-carets" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-get-ligature-carets">
+<ANCHOR id="hb-ot-layout-get-size-params" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-get-size-params">
+<ANCHOR id="hb-ot-layout-glyph-sequence-func-t" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-glyph-sequence-func-t">
+<ANCHOR id="hb-ot-layout-has-glyph-classes" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-has-glyph-classes">
+<ANCHOR id="hb-ot-layout-has-positioning" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-has-positioning">
+<ANCHOR id="hb-ot-layout-has-substitution" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-has-substitution">
+<ANCHOR id="hb-ot-layout-language-find-feature" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-language-find-feature">
+<ANCHOR id="hb-ot-layout-language-get-feature-indexes" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-language-get-feature-indexes">
+<ANCHOR id="hb-ot-layout-language-get-feature-tags" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-language-get-feature-tags">
+<ANCHOR id="hb-ot-layout-language-get-required-feature" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-language-get-required-feature">
+<ANCHOR id="hb-ot-layout-lookup-collect-glyphs" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-lookup-collect-glyphs">
+<ANCHOR id="hb-ot-layout-lookup-substitute-closure" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-lookup-substitute-closure">
+<ANCHOR id="hb-ot-layout-lookup-would-substitute" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-lookup-would-substitute">
+<ANCHOR id="hb-ot-layout-script-find-language" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-script-find-language">
+<ANCHOR id="hb-ot-layout-script-get-language-tags" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-script-get-language-tags">
+<ANCHOR id="hb-ot-layout-table-choose-script" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-table-choose-script">
+<ANCHOR id="hb-ot-layout-table-find-script" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-table-find-script">
+<ANCHOR id="hb-ot-layout-table-get-feature-tags" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-table-get-feature-tags">
+<ANCHOR id="hb-ot-layout-table-get-script-tags" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-table-get-script-tags">
+<ANCHOR id="hb-ot-layout-table-get-lookup-count" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-table-get-lookup-count">
+<ANCHOR id="hb-ot-shape-plan-collect-lookups" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-shape-plan-collect-lookups">
+<ANCHOR id="harfbuzz-hb-ot-layout.other_details" href="harfbuzz/harfbuzz-hb-ot-layout.html#harfbuzz-hb-ot-layout.other_details">
+<ANCHOR id="HB-OT-LAYOUT-DEFAULT-LANGUAGE-INDEX:CAPS" href="harfbuzz/harfbuzz-hb-ot-layout.html#HB-OT-LAYOUT-DEFAULT-LANGUAGE-INDEX:CAPS">
+<ANCHOR id="HB-OT-LAYOUT-NO-FEATURE-INDEX:CAPS" href="harfbuzz/harfbuzz-hb-ot-layout.html#HB-OT-LAYOUT-NO-FEATURE-INDEX:CAPS">
+<ANCHOR id="HB-OT-LAYOUT-NO-SCRIPT-INDEX:CAPS" href="harfbuzz/harfbuzz-hb-ot-layout.html#HB-OT-LAYOUT-NO-SCRIPT-INDEX:CAPS">
+<ANCHOR id="HB-OT-TAG-GDEF:CAPS" href="harfbuzz/harfbuzz-hb-ot-layout.html#HB-OT-TAG-GDEF:CAPS">
+<ANCHOR id="HB-OT-TAG-GPOS:CAPS" href="harfbuzz/harfbuzz-hb-ot-layout.html#HB-OT-TAG-GPOS:CAPS">
+<ANCHOR id="HB-OT-TAG-GSUB:CAPS" href="harfbuzz/harfbuzz-hb-ot-layout.html#HB-OT-TAG-GSUB:CAPS">
+<ANCHOR id="hb-ot-layout-glyph-class-t" href="harfbuzz/harfbuzz-hb-ot-layout.html#hb-ot-layout-glyph-class-t">
+<ANCHOR id="harfbuzz-hb-ot-tag" href="harfbuzz/harfbuzz-hb-ot-tag.html">
+<ANCHOR id="harfbuzz-hb-ot-tag.functions" href="harfbuzz/harfbuzz-hb-ot-tag.html#harfbuzz-hb-ot-tag.functions">
+<ANCHOR id="harfbuzz-hb-ot-tag.other" href="harfbuzz/harfbuzz-hb-ot-tag.html#harfbuzz-hb-ot-tag.other">
+<ANCHOR id="harfbuzz-hb-ot-tag.description" href="harfbuzz/harfbuzz-hb-ot-tag.html#harfbuzz-hb-ot-tag.description">
+<ANCHOR id="harfbuzz-hb-ot-tag.functions_details" href="harfbuzz/harfbuzz-hb-ot-tag.html#harfbuzz-hb-ot-tag.functions_details">
+<ANCHOR id="hb-ot-tag-from-language" href="harfbuzz/harfbuzz-hb-ot-tag.html#hb-ot-tag-from-language">
+<ANCHOR id="hb-ot-tag-to-language" href="harfbuzz/harfbuzz-hb-ot-tag.html#hb-ot-tag-to-language">
+<ANCHOR id="hb-ot-tag-to-script" href="harfbuzz/harfbuzz-hb-ot-tag.html#hb-ot-tag-to-script">
+<ANCHOR id="hb-ot-tags-from-script" href="harfbuzz/harfbuzz-hb-ot-tag.html#hb-ot-tags-from-script">
+<ANCHOR id="harfbuzz-hb-ot-tag.other_details" href="harfbuzz/harfbuzz-hb-ot-tag.html#harfbuzz-hb-ot-tag.other_details">
+<ANCHOR id="HB-OT-TAG-DEFAULT-LANGUAGE:CAPS" href="harfbuzz/harfbuzz-hb-ot-tag.html#HB-OT-TAG-DEFAULT-LANGUAGE:CAPS">
+<ANCHOR id="HB-OT-TAG-DEFAULT-SCRIPT:CAPS" href="harfbuzz/harfbuzz-hb-ot-tag.html#HB-OT-TAG-DEFAULT-SCRIPT:CAPS">
+<ANCHOR id="harfbuzz-hb-shape-plan" href="harfbuzz/harfbuzz-hb-shape-plan.html">
+<ANCHOR id="harfbuzz-hb-shape-plan.functions" href="harfbuzz/harfbuzz-hb-shape-plan.html#harfbuzz-hb-shape-plan.functions">
+<ANCHOR id="hb-shape-plan-t" href="harfbuzz/harfbuzz-hb-shape-plan.html#hb-shape-plan-t">
+<ANCHOR id="harfbuzz-hb-shape-plan.other" href="harfbuzz/harfbuzz-hb-shape-plan.html#harfbuzz-hb-shape-plan.other">
+<ANCHOR id="harfbuzz-hb-shape-plan.object-hierarchy" href="harfbuzz/harfbuzz-hb-shape-plan.html#harfbuzz-hb-shape-plan.object-hierarchy">
+<ANCHOR id="harfbuzz-hb-shape-plan.description" href="harfbuzz/harfbuzz-hb-shape-plan.html#harfbuzz-hb-shape-plan.description">
+<ANCHOR id="harfbuzz-hb-shape-plan.functions_details" href="harfbuzz/harfbuzz-hb-shape-plan.html#harfbuzz-hb-shape-plan.functions_details">
+<ANCHOR id="hb-shape-plan-create" href="harfbuzz/harfbuzz-hb-shape-plan.html#hb-shape-plan-create">
+<ANCHOR id="hb-shape-plan-create-cached" href="harfbuzz/harfbuzz-hb-shape-plan.html#hb-shape-plan-create-cached">
+<ANCHOR id="hb-shape-plan-destroy" href="harfbuzz/harfbuzz-hb-shape-plan.html#hb-shape-plan-destroy">
+<ANCHOR id="hb-shape-plan-execute" href="harfbuzz/harfbuzz-hb-shape-plan.html#hb-shape-plan-execute">
+<ANCHOR id="hb-shape-plan-get-empty" href="harfbuzz/harfbuzz-hb-shape-plan.html#hb-shape-plan-get-empty">
+<ANCHOR id="hb-shape-plan-get-shaper" href="harfbuzz/harfbuzz-hb-shape-plan.html#hb-shape-plan-get-shaper">
+<ANCHOR id="hb-shape-plan-get-user-data" href="harfbuzz/harfbuzz-hb-shape-plan.html#hb-shape-plan-get-user-data">
+<ANCHOR id="hb-shape-plan-reference" href="harfbuzz/harfbuzz-hb-shape-plan.html#hb-shape-plan-reference">
+<ANCHOR id="hb-shape-plan-set-user-data" href="harfbuzz/harfbuzz-hb-shape-plan.html#hb-shape-plan-set-user-data">
+<ANCHOR id="harfbuzz-hb-shape-plan.other_details" href="harfbuzz/harfbuzz-hb-shape-plan.html#harfbuzz-hb-shape-plan.other_details">
+<ANCHOR id="hb-shape-plan-t" href="harfbuzz/harfbuzz-hb-shape-plan.html#hb-shape-plan-t">
+<ANCHOR id="harfbuzz-hb-glib" href="harfbuzz/harfbuzz-hb-glib.html">
+<ANCHOR id="harfbuzz-hb-glib.functions" href="harfbuzz/harfbuzz-hb-glib.html#harfbuzz-hb-glib.functions">
+<ANCHOR id="harfbuzz-hb-glib.description" href="harfbuzz/harfbuzz-hb-glib.html#harfbuzz-hb-glib.description">
+<ANCHOR id="harfbuzz-hb-glib.functions_details" href="harfbuzz/harfbuzz-hb-glib.html#harfbuzz-hb-glib.functions_details">
+<ANCHOR id="hb-glib-get-unicode-funcs" href="harfbuzz/harfbuzz-hb-glib.html#hb-glib-get-unicode-funcs">
+<ANCHOR id="hb-glib-script-from-script" href="harfbuzz/harfbuzz-hb-glib.html#hb-glib-script-from-script">
+<ANCHOR id="hb-glib-script-to-script" href="harfbuzz/harfbuzz-hb-glib.html#hb-glib-script-to-script">
+<ANCHOR id="harfbuzz-hb-glib.other_details" href="harfbuzz/harfbuzz-hb-glib.html#harfbuzz-hb-glib.other_details">
+<ANCHOR id="harfbuzz-hb-icu" href="harfbuzz/harfbuzz-hb-icu.html">
+<ANCHOR id="harfbuzz-hb-icu.functions" href="harfbuzz/harfbuzz-hb-icu.html#harfbuzz-hb-icu.functions">
+<ANCHOR id="harfbuzz-hb-icu.description" href="harfbuzz/harfbuzz-hb-icu.html#harfbuzz-hb-icu.description">
+<ANCHOR id="harfbuzz-hb-icu.functions_details" href="harfbuzz/harfbuzz-hb-icu.html#harfbuzz-hb-icu.functions_details">
+<ANCHOR id="hb-icu-get-unicode-funcs" href="harfbuzz/harfbuzz-hb-icu.html#hb-icu-get-unicode-funcs">
+<ANCHOR id="hb-icu-script-from-script" href="harfbuzz/harfbuzz-hb-icu.html#hb-icu-script-from-script">
+<ANCHOR id="hb-icu-script-to-script" href="harfbuzz/harfbuzz-hb-icu.html#hb-icu-script-to-script">
+<ANCHOR id="harfbuzz-hb-icu.other_details" href="harfbuzz/harfbuzz-hb-icu.html#harfbuzz-hb-icu.other_details">
+<ANCHOR id="harfbuzz-hb-ft" href="harfbuzz/harfbuzz-hb-ft.html">
+<ANCHOR id="harfbuzz-hb-ft.functions" href="harfbuzz/harfbuzz-hb-ft.html#harfbuzz-hb-ft.functions">
+<ANCHOR id="harfbuzz-hb-ft.description" href="harfbuzz/harfbuzz-hb-ft.html#harfbuzz-hb-ft.description">
+<ANCHOR id="harfbuzz-hb-ft.functions_details" href="harfbuzz/harfbuzz-hb-ft.html#harfbuzz-hb-ft.functions_details">
+<ANCHOR id="hb-ft-face-create" href="harfbuzz/harfbuzz-hb-ft.html#hb-ft-face-create">
+<ANCHOR id="hb-ft-face-create-cached" href="harfbuzz/harfbuzz-hb-ft.html#hb-ft-face-create-cached">
+<ANCHOR id="hb-ft-font-create" href="harfbuzz/harfbuzz-hb-ft.html#hb-ft-font-create">
+<ANCHOR id="hb-ft-font-get-face" href="harfbuzz/harfbuzz-hb-ft.html#hb-ft-font-get-face">
+<ANCHOR id="hb-ft-font-set-funcs" href="harfbuzz/harfbuzz-hb-ft.html#hb-ft-font-set-funcs">
+<ANCHOR id="harfbuzz-hb-ft.other_details" href="harfbuzz/harfbuzz-hb-ft.html#harfbuzz-hb-ft.other_details">
+<ANCHOR id="harfbuzz-hb-graphite2" href="harfbuzz/harfbuzz-hb-graphite2.html">
+<ANCHOR id="harfbuzz-hb-graphite2.functions" href="harfbuzz/harfbuzz-hb-graphite2.html#harfbuzz-hb-graphite2.functions">
+<ANCHOR id="harfbuzz-hb-graphite2.other" href="harfbuzz/harfbuzz-hb-graphite2.html#harfbuzz-hb-graphite2.other">
+<ANCHOR id="harfbuzz-hb-graphite2.description" href="harfbuzz/harfbuzz-hb-graphite2.html#harfbuzz-hb-graphite2.description">
+<ANCHOR id="harfbuzz-hb-graphite2.functions_details" href="harfbuzz/harfbuzz-hb-graphite2.html#harfbuzz-hb-graphite2.functions_details">
+<ANCHOR id="hb-graphite2-face-get-gr-face" href="harfbuzz/harfbuzz-hb-graphite2.html#hb-graphite2-face-get-gr-face">
+<ANCHOR id="hb-graphite2-font-get-gr-font" href="harfbuzz/harfbuzz-hb-graphite2.html#hb-graphite2-font-get-gr-font">
+<ANCHOR id="harfbuzz-hb-graphite2.other_details" href="harfbuzz/harfbuzz-hb-graphite2.html#harfbuzz-hb-graphite2.other_details">
+<ANCHOR id="HB-GRAPHITE2-TAG-SILF:CAPS" href="harfbuzz/harfbuzz-hb-graphite2.html#HB-GRAPHITE2-TAG-SILF:CAPS">
+<ANCHOR id="harfbuzz-hb-uniscribe" href="harfbuzz/harfbuzz-hb-uniscribe.html">
+<ANCHOR id="harfbuzz-hb-uniscribe.functions" href="harfbuzz/harfbuzz-hb-uniscribe.html#harfbuzz-hb-uniscribe.functions">
+<ANCHOR id="harfbuzz-hb-uniscribe.description" href="harfbuzz/harfbuzz-hb-uniscribe.html#harfbuzz-hb-uniscribe.description">
+<ANCHOR id="harfbuzz-hb-uniscribe.functions_details" href="harfbuzz/harfbuzz-hb-uniscribe.html#harfbuzz-hb-uniscribe.functions_details">
+<ANCHOR id="hb-uniscribe-font-get-hfont" href="harfbuzz/harfbuzz-hb-uniscribe.html#hb-uniscribe-font-get-hfont">
+<ANCHOR id="hb-uniscribe-font-get-logfontw" href="harfbuzz/harfbuzz-hb-uniscribe.html#hb-uniscribe-font-get-logfontw">
+<ANCHOR id="harfbuzz-hb-uniscribe.other_details" href="harfbuzz/harfbuzz-hb-uniscribe.html#harfbuzz-hb-uniscribe.other_details">
+<ANCHOR id="harfbuzz-hb-coretext" href="harfbuzz/harfbuzz-hb-coretext.html">
+<ANCHOR id="harfbuzz-hb-coretext.functions" href="harfbuzz/harfbuzz-hb-coretext.html#harfbuzz-hb-coretext.functions">
+<ANCHOR id="harfbuzz-hb-coretext.other" href="harfbuzz/harfbuzz-hb-coretext.html#harfbuzz-hb-coretext.other">
+<ANCHOR id="harfbuzz-hb-coretext.description" href="harfbuzz/harfbuzz-hb-coretext.html#harfbuzz-hb-coretext.description">
+<ANCHOR id="harfbuzz-hb-coretext.functions_details" href="harfbuzz/harfbuzz-hb-coretext.html#harfbuzz-hb-coretext.functions_details">
+<ANCHOR id="hb-coretext-face-create" href="harfbuzz/harfbuzz-hb-coretext.html#hb-coretext-face-create">
+<ANCHOR id="hb-coretext-face-get-cg-font" href="harfbuzz/harfbuzz-hb-coretext.html#hb-coretext-face-get-cg-font">
+<ANCHOR id="hb-coretext-font-get-ct-font" href="harfbuzz/harfbuzz-hb-coretext.html#hb-coretext-font-get-ct-font">
+<ANCHOR id="harfbuzz-hb-coretext.other_details" href="harfbuzz/harfbuzz-hb-coretext.html#harfbuzz-hb-coretext.other_details">
+<ANCHOR id="HB-CORETEXT-TAG-MORT:CAPS" href="harfbuzz/harfbuzz-hb-coretext.html#HB-CORETEXT-TAG-MORT:CAPS">
+<ANCHOR id="HB-CORETEXT-TAG-MORX:CAPS" href="harfbuzz/harfbuzz-hb-coretext.html#HB-CORETEXT-TAG-MORX:CAPS">
+<ANCHOR id="harfbuzz-hb-gobject" href="harfbuzz/harfbuzz-hb-gobject.html">
+<ANCHOR id="harfbuzz-hb-gobject.description" href="harfbuzz/harfbuzz-hb-gobject.html#harfbuzz-hb-gobject.description">
+<ANCHOR id="harfbuzz-hb-gobject.functions_details" href="harfbuzz/harfbuzz-hb-gobject.html#harfbuzz-hb-gobject.functions_details">
+<ANCHOR id="harfbuzz-hb-gobject.other_details" href="harfbuzz/harfbuzz-hb-gobject.html#harfbuzz-hb-gobject.other_details">
+<ANCHOR id="annotation-glossterm-allow-none" href="harfbuzz/annotation-glossary.html#annotation-glossterm-allow-none">
+<ANCHOR id="annotation-glossterm-array" href="harfbuzz/annotation-glossary.html#annotation-glossterm-array">
+<ANCHOR id="annotation-glossterm-closure" href="harfbuzz/annotation-glossary.html#annotation-glossterm-closure">
+<ANCHOR id="annotation-glossterm-destroy" href="harfbuzz/annotation-glossary.html#annotation-glossterm-destroy">
+<ANCHOR id="annotation-glossterm-inout" href="harfbuzz/annotation-glossary.html#annotation-glossterm-inout">
+<ANCHOR id="annotation-glossterm-out" href="harfbuzz/annotation-glossary.html#annotation-glossterm-out">
+<ANCHOR id="annotation-glossterm-scope notified" href="harfbuzz/annotation-glossary.html#annotation-glossterm-scope notified">
+<ANCHOR id="annotation-glossterm-transfer full" href="harfbuzz/annotation-glossary.html#annotation-glossterm-transfer full">
+<ANCHOR id="annotation-glossterm-transfer none" href="harfbuzz/annotation-glossary.html#annotation-glossterm-transfer none">
diff --git a/docs/reference/html/left-insensitive.png b/docs/reference/html/left-insensitive.png
new file mode 100644 (file)
index 0000000..3269393
Binary files /dev/null and b/docs/reference/html/left-insensitive.png differ
diff --git a/docs/reference/html/left.png b/docs/reference/html/left.png
new file mode 100644 (file)
index 0000000..2abde03
Binary files /dev/null and b/docs/reference/html/left.png differ
diff --git a/docs/reference/html/object-tree.html b/docs/reference/html/object-tree.html
new file mode 100644 (file)
index 0000000..c4f447b
--- /dev/null
@@ -0,0 +1,59 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Object Hierarchy</title>
+<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
+<link rel="home" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="up" href="index.html" title="HarfBuzz Reference Manual">
+<link rel="prev" href="harfbuzz-hb-gobject.html" title="hb-gobject">
+<link rel="next" href="api-index-full.html" title="API Index">
+<meta name="generator" content="GTK-Doc V1.20.1 (XML mode)">
+<link rel="stylesheet" href="style.css" type="text/css">
+</head>
+<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
+<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
+<td width="100%" align="left" class="shortcuts"></td>
+<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
+<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
+<td><a accesskey="p" href="harfbuzz-hb-gobject.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
+<td><a accesskey="n" href="api-index-full.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
+</tr></table>
+<div class="chapter">
+<div class="titlepage"><div><div><h2 class="title">
+<a name="object-tree"></a>Object Hierarchy</h2></div></div></div>
+<pre class="screen">
+    GBoxed
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-blob.html#hb-blob-t">hb_blob_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-t">hb_buffer_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-face.html#hb-face-t">hb_face_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-shape.html#hb-feature-t">hb_feature_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-font.html#hb-font-funcs-t">hb_font_funcs_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-font.html#hb-font-t">hb_font_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-info-t">hb_glyph_info_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-buffer.html#hb-glyph-position-t">hb_glyph_position_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-common.html#hb-language-t">hb_language_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-buffer.html#hb-segment-properties-t">hb_segment_properties_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-set.html#hb-set-t">hb_set_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-shape-plan.html#hb-shape-plan-t">hb_shape_plan_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-funcs-t">hb_unicode_funcs_t</a>
+    <span class="lineart">╰──</span> <a class="link" href="harfbuzz-hb-common.html#hb-user-data-key-t">hb_user_data_key_t</a>
+    GEnum
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-content-type-t" title="enum hb_buffer_content_type_t">hb_buffer_content_type_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-format-t" title="enum hb_buffer_serialize_format_t">hb_buffer_serialize_format_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-common.html#hb-direction-t" title="enum hb_direction_t">hb_direction_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-blob.html#hb-memory-mode-t" title="enum hb_memory_mode_t">hb_memory_mode_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-ot-layout.html#hb-ot-layout-glyph-class-t" title="enum hb_ot_layout_glyph_class_t">hb_ot_layout_glyph_class_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-common.html#hb-script-t" title="enum hb_script_t">hb_script_t</a>
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-combining-class-t" title="enum hb_unicode_combining_class_t">hb_unicode_combining_class_t</a>
+    <span class="lineart">╰──</span> <a class="link" href="harfbuzz-hb-unicode.html#hb-unicode-general-category-t" title="enum hb_unicode_general_category_t">hb_unicode_general_category_t</a>
+    GFlags
+    <span class="lineart">├──</span> <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-flags-t" title="enum hb_buffer_flags_t">hb_buffer_flags_t</a>
+    <span class="lineart">╰──</span> <a class="link" href="harfbuzz-hb-buffer.html#hb-buffer-serialize-flags-t" title="enum hb_buffer_serialize_flags_t">hb_buffer_serialize_flags_t</a>
+</pre>
+</div>
+<div class="footer">
+<hr>
+          Generated by GTK-Doc V1.20.1</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/docs/reference/html/right-insensitive.png b/docs/reference/html/right-insensitive.png
new file mode 100644 (file)
index 0000000..4c95785
Binary files /dev/null and b/docs/reference/html/right-insensitive.png differ
diff --git a/docs/reference/html/right.png b/docs/reference/html/right.png
new file mode 100644 (file)
index 0000000..76260ec
Binary files /dev/null and b/docs/reference/html/right.png differ
diff --git a/docs/reference/html/style.css b/docs/reference/html/style.css
new file mode 100644 (file)
index 0000000..c141ddd
--- /dev/null
@@ -0,0 +1,476 @@
+body
+{
+  font-family: cantarell, sans-serif;
+}
+.synopsis, .classsynopsis
+{
+  /* tango:aluminium 1/2 */
+  background: #eeeeec;
+  background: rgba(238, 238, 236, 0.5);
+  border: solid 1px rgb(238, 238, 236);
+  padding: 0.5em;
+}
+.programlisting
+{
+  /* tango:sky blue 0/1 */
+  /* fallback for no rgba support */
+  background: #e6f3ff;
+  border: solid 1px #729fcf;
+  background: rgba(114, 159, 207, 0.1);
+  border: solid 1px rgba(114, 159, 207, 0.2);
+  padding: 0.5em;
+}
+.variablelist
+{
+  padding: 4px;
+  margin-left: 3em;
+}
+.variablelist td:first-child
+{
+  vertical-align: top;
+}
+
+div.gallery-float
+{
+  float: left;
+  padding: 10px;
+}
+div.gallery-float img
+{
+  border-style: none;
+}
+div.gallery-spacer
+{
+  clear: both;
+}
+
+a, a:visited
+{
+  text-decoration: none;
+  /* tango:sky blue 2 */
+  color: #3465a4;
+}
+a:hover
+{
+  text-decoration: underline;
+  /* tango:sky blue 1 */
+  color: #729fcf;
+}
+
+div.informaltable table
+{
+  border-collapse: separate;
+  border-spacing: 1em 0.5em;
+  border: none;
+}
+
+div.informaltable table td, div.informaltable table th
+{
+  vertical-align: top;
+}
+
+.function_type,
+.variable_type,
+.property_type,
+.signal_type,
+.parameter_name,
+.struct_member_name,
+.union_member_name,
+.define_keyword,
+.datatype_keyword,
+.typedef_keyword
+{
+  text-align: right;
+}
+
+/* dim non-primary columns */
+.c_punctuation,
+.function_type,
+.variable_type,
+.property_type,
+.signal_type,
+.define_keyword,
+.datatype_keyword,
+.typedef_keyword,
+.property_flags,
+.signal_flags,
+.parameter_annotations,
+.enum_member_annotations,
+.struct_member_annotations,
+.union_member_annotations
+{
+  color: #888a85;
+}
+
+.function_type a,
+.function_type a:visited,
+.function_type a:hover,
+.property_type a,
+.property_type a:visited,
+.property_type a:hover,
+.signal_type a,
+.signal_type a:visited,
+.signal_type a:hover,
+.signal_flags a,
+.signal_flags a:visited,
+.signal_flags a:hover
+{
+ color: #729fcf;
+}
+
+td p
+{
+  margin: 0.25em;
+}
+
+div.table table
+{
+  border-collapse: collapse;
+  border-spacing: 0px;
+  /* tango:aluminium 3 */
+  border: solid 1px #babdb6;
+}
+
+div.table table td, div.table table th
+{
+  /* tango:aluminium 3 */
+  border: solid 1px #babdb6;
+  padding: 3px;
+  vertical-align: top;
+}
+
+div.table table th
+{
+  /* tango:aluminium 2 */
+  background-color: #d3d7cf;
+}
+
+h4
+{
+  color: #555753;
+}
+
+hr
+{
+  /* tango:aluminium 1 */
+  color: #d3d7cf;
+  background: #d3d7cf;
+  border: none 0px;
+  height: 1px;
+  clear: both;
+  margin: 2.0em 0em 2.0em 0em;
+}
+
+dl.toc dt
+{
+  padding-bottom: 0.25em;
+}
+
+dl.toc > dd > dl > dt
+{
+  padding-top: 0.25em;
+  padding-bottom: 0.25em;
+}
+
+dl.toc > dt
+{
+  padding-top: 1em;
+  padding-bottom: 0.5em;
+  font-weight: bold;
+}
+
+.parameter
+{
+  font-style: normal;
+}
+
+.footer
+{
+  padding-top: 3.5em;
+  /* tango:aluminium 3 */
+  color: #babdb6;
+  text-align: center;
+  font-size: 80%;
+}
+
+.informalfigure,
+.figure
+{
+  margin: 1em;
+}
+
+.informalexample,
+.example
+{
+  margin-top: 1em;
+  margin-bottom: 1em;
+}
+
+.warning
+{
+  /* tango:orange 0/1 */
+  background: #ffeed9;
+  background: rgba(252, 175, 62, 0.1);
+  border-color: #ffb04f;
+  border-color: rgba(252, 175, 62, 0.2);
+}
+.note
+{
+  /* tango:chameleon 0/0.5 */
+  background: #d8ffb2;
+  background: rgba(138, 226, 52, 0.1);
+  border-color: #abf562;
+  border-color: rgba(138, 226, 52, 0.2);
+}
+div.blockquote
+{
+  border-color: #eeeeec;
+}
+.note, .warning, div.blockquote
+{
+  padding: 0.5em;
+  border-width: 1px;
+  border-style: solid;
+  margin: 2em;
+}
+.note p, .warning p
+{
+  margin: 0;
+}
+
+div.warning h3.title,
+div.note h3.title
+{
+  display: none;
+}
+
+p + div.section
+{
+  margin-top: 1em;
+}
+
+div.refnamediv,
+div.refsynopsisdiv,
+div.refsect1,
+div.refsect2,
+div.toc,
+div.section
+{
+  margin-bottom: 1em;
+}
+
+/* blob links */
+h2 .extralinks, h3 .extralinks
+{
+  float: right;
+  /* tango:aluminium 3 */
+  color: #babdb6;
+  font-size: 80%;
+  font-weight: normal;
+}
+
+.lineart
+{
+  color: #d3d7cf;
+  font-weight: normal;
+}
+
+.annotation
+{
+  /* tango:aluminium 5 */
+  color: #555753;
+  font-weight: normal;
+}
+
+.structfield
+{
+  font-style: normal;
+  font-weight: normal;
+}
+
+acronym,abbr 
+{
+  border-bottom: 1px dotted gray;
+}
+
+/* code listings */
+
+.listing_code .programlisting .normal,
+.listing_code .programlisting .normal a,
+.listing_code .programlisting .number,
+.listing_code .programlisting .cbracket,
+.listing_code .programlisting .symbol     { color: #555753; }
+.listing_code .programlisting .comment,
+.listing_code .programlisting .linenum    { color: #babdb6; } /* tango: aluminium 3 */
+.listing_code .programlisting .function,
+.listing_code .programlisting .function a,
+.listing_code .programlisting .preproc    { color: #204a87; } /* tango: sky blue 3  */
+.listing_code .programlisting .string     { color: #ad7fa8; } /* tango: plum */
+.listing_code .programlisting .keyword,
+.listing_code .programlisting .usertype,
+.listing_code .programlisting .type,
+.listing_code .programlisting .type a     { color: #4e9a06; } /* tango: chameleon 3  */
+
+.listing_frame {
+  /* tango:sky blue 1 */
+  border: solid 1px #729fcf;
+  border: solid 1px rgba(114, 159, 207, 0.2);
+  padding: 0px;
+}
+
+.listing_lines, .listing_code {
+  margin-top: 0px;
+  margin-bottom: 0px;
+  padding: 0.5em;
+}
+.listing_lines {
+  /* tango:sky blue 0.5 */
+  background: #a6c5e3;
+  background: rgba(114, 159, 207, 0.2);
+  /* tango:aluminium 6 */
+  color: #2e3436;
+}
+.listing_code {
+  /* tango:sky blue 0 */
+  background: #e6f3ff;
+  background: rgba(114, 159, 207, 0.1);
+}
+.listing_code .programlisting {
+  /* override from previous */
+  border: none 0px;
+  padding: 0px;
+  background: none;
+}
+.listing_lines pre, .listing_code pre {
+  margin: 0px;
+}
+
+@media screen {
+  sup a.footnote
+  {
+    position: relative;
+    top: 0em ! important;
+  }
+  /* this is needed so that the local anchors are displayed below the naviagtion */
+  div.footnote a[name], div.refnamediv a[name], div.refsect1 a[name], div.refsect2 a[name], div.index a[name], div.glossary a[name], div.sect1 a[name]
+  {
+    display: inline-block;
+    position: relative;
+    top:-5em;
+  }
+  /* this seems to be a bug in the xsl style sheets when generating indexes */
+  div.index div.index
+  {
+    top: 0em;
+  }
+  /* make space for the fixed navigation bar and add space at the bottom so that
+   * link targets appear somewhat close to top
+   */
+  body
+  {
+    padding-top: 2.5em;
+    padding-bottom: 500px;
+    max-width: 60em;
+  }
+  p
+  {
+    max-width: 60em;
+  }
+  /* style and size the navigation bar */
+  table.navigation#top
+  {
+    position: fixed;
+    background: #e2e2e2;
+    border-bottom: solid 1px #babdb6;
+    border-spacing: 5px;
+    margin-top: 0;
+    margin-bottom: 0;
+    top: 0;
+    left: 0;
+    z-index: 10;
+  }
+  table.navigation#top td
+  {
+    padding-left: 6px;
+    padding-right: 6px;
+  }
+  .navigation a, .navigation a:visited
+  {
+    /* tango:sky blue 3 */
+    color: #204a87;
+  }
+  .navigation a:hover
+  {
+    /* tango:sky blue 2 */
+    color: #3465a4;
+  }
+  td.shortcuts
+  {
+    /* tango:sky blue 2 */
+    color: #3465a4;
+    font-size: 80%;
+    white-space: nowrap;
+  }
+  td.shortcuts .dim
+  {
+    color: #babdb6;
+  }
+  .navigation .title
+  {
+    font-size: 80%;
+    max-width: none;
+    margin: 0px;
+    font-weight: normal;
+  }
+}
+@media screen and (min-width: 60em) {
+  /* screen larger than 60em */
+  body { margin: auto; }
+}
+@media screen and (max-width: 60em) {
+  /* screen less than 60em */
+  #nav_hierarchy { display: none; }
+  #nav_interfaces { display: none; }
+  #nav_prerequisites { display: none; }
+  #nav_derived_interfaces { display: none; }
+  #nav_implementations { display: none; }
+  #nav_child_properties { display: none; }
+  #nav_style_properties { display: none; }
+  #nav_index { display: none; }
+  #nav_glossary { display: none; }
+  .gallery_image { display: none; }
+  .property_flags { display: none; }
+  .signal_flags { display: none; }
+  .parameter_annotations { display: none; }
+  .enum_member_annotations { display: none; }
+  .struct_member_annotations { display: none; }
+  .union_member_annotations { display: none; }
+  /* now that a column is hidden, optimize space */
+  col.parameters_name { width: auto; }
+  col.parameters_description { width: auto; }
+  col.struct_members_name { width: auto; }
+  col.struct_members_description { width: auto; }
+  col.enum_members_name { width: auto; }
+  col.enum_members_description { width: auto; }
+  col.union_members_name { width: auto; }
+  col.union_members_description { width: auto; }
+  .listing_lines { display: none; }
+}
+@media print {
+  table.navigation {
+    visibility: collapse;
+    display: none;
+  }
+  div.titlepage table.navigation {
+    visibility: visible;
+    display: table;
+    background: #e2e2e2;
+    border: solid 1px #babdb6;
+    margin-top: 0;
+    margin-bottom: 0;
+    top: 0;
+    left: 0;
+    height: 3em;
+  }
+}
+
diff --git a/docs/reference/html/up-insensitive.png b/docs/reference/html/up-insensitive.png
new file mode 100644 (file)
index 0000000..f404986
Binary files /dev/null and b/docs/reference/html/up-insensitive.png differ
diff --git a/docs/reference/html/up.png b/docs/reference/html/up.png
new file mode 100644 (file)
index 0000000..80b4b37
Binary files /dev/null and b/docs/reference/html/up.png differ
diff --git a/docs/reference/version.xml b/docs/reference/version.xml
new file mode 100644 (file)
index 0000000..8e99e29
--- /dev/null
@@ -0,0 +1 @@
+0.9.35
diff --git a/docs/reference/version.xml.in b/docs/reference/version.xml.in
new file mode 100644 (file)
index 0000000..de213c2
--- /dev/null
@@ -0,0 +1 @@
+@HB_VERSION@
diff --git a/gtk-doc.make b/gtk-doc.make
new file mode 100644 (file)
index 0000000..e791656
--- /dev/null
@@ -0,0 +1,289 @@
+# -*- mode: makefile -*-
+
+####################################
+# Everything below here is generic #
+####################################
+
+if GTK_DOC_USE_LIBTOOL
+GTKDOC_CC = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+GTKDOC_LD = $(LIBTOOL) --tag=CC --mode=link $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
+GTKDOC_RUN = $(LIBTOOL) --mode=execute
+else
+GTKDOC_CC = $(CC) $(INCLUDES) $(GTKDOC_DEPS_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+GTKDOC_LD = $(CC) $(GTKDOC_DEPS_LIBS) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
+GTKDOC_RUN =
+endif
+
+# We set GPATH here; this gives us semantics for GNU make
+# which are more like other make's VPATH, when it comes to
+# whether a source that is a target of one rule is then
+# searched for in VPATH/GPATH.
+#
+GPATH = $(srcdir)
+
+TARGET_DIR=$(HTML_DIR)/$(DOC_MODULE)
+
+SETUP_FILES = \
+       $(content_files)                \
+       $(DOC_MAIN_SGML_FILE)           \
+       $(DOC_MODULE)-sections.txt      \
+       $(DOC_MODULE)-overrides.txt
+
+EXTRA_DIST =                           \
+       $(HTML_IMAGES)                  \
+       $(SETUP_FILES)
+
+DOC_STAMPS=setup-build.stamp scan-build.stamp sgml-build.stamp \
+       html-build.stamp pdf-build.stamp \
+       sgml.stamp html.stamp pdf.stamp
+
+SCANOBJ_FILES =                 \
+       $(DOC_MODULE).args       \
+       $(DOC_MODULE).hierarchy  \
+       $(DOC_MODULE).interfaces \
+       $(DOC_MODULE).prerequisites \
+       $(DOC_MODULE).signals
+
+REPORT_FILES = \
+       $(DOC_MODULE)-undocumented.txt \
+       $(DOC_MODULE)-undeclared.txt \
+       $(DOC_MODULE)-unused.txt
+
+gtkdoc-check.test: Makefile
+       $(AM_V_GEN)echo "#!/bin/sh -e" > $@; \
+               echo "$(GTKDOC_CHECK_PATH) || exit 1" >> $@; \
+               chmod +x $@
+
+CLEANFILES = $(SCANOBJ_FILES) $(REPORT_FILES) $(DOC_STAMPS) gtkdoc-check.test
+
+if GTK_DOC_BUILD_HTML
+HTML_BUILD_STAMP=html-build.stamp
+else
+HTML_BUILD_STAMP=
+endif
+if GTK_DOC_BUILD_PDF
+PDF_BUILD_STAMP=pdf-build.stamp
+else
+PDF_BUILD_STAMP=
+endif
+
+all-gtk-doc: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
+.PHONY: all-gtk-doc
+
+if ENABLE_GTK_DOC
+all-local: all-gtk-doc
+endif
+
+docs: $(HTML_BUILD_STAMP) $(PDF_BUILD_STAMP)
+
+$(REPORT_FILES): sgml-build.stamp
+
+#### setup ####
+
+GTK_DOC_V_SETUP=$(GTK_DOC_V_SETUP_$(V))
+GTK_DOC_V_SETUP_=$(GTK_DOC_V_SETUP_$(AM_DEFAULT_VERBOSITY))
+GTK_DOC_V_SETUP_0=@echo "  DOC   Preparing build";
+
+setup-build.stamp:
+       -$(GTK_DOC_V_SETUP)if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
+           files=`echo $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types`; \
+           if test "x$$files" != "x" ; then \
+               for file in $$files ; do \
+                   destdir=`dirname $(abs_builddir)/$$file`; \
+                   test -d "$$destdir" || mkdir -p "$$destdir"; \
+                   test -f $(abs_srcdir)/$$file && \
+                       cp -pf $(abs_srcdir)/$$file $(abs_builddir)/$$file || true; \
+               done; \
+           fi; \
+       fi
+       $(AM_V_at)touch setup-build.stamp
+
+
+#### scan ####
+
+GTK_DOC_V_SCAN=$(GTK_DOC_V_SCAN_$(V))
+GTK_DOC_V_SCAN_=$(GTK_DOC_V_SCAN_$(AM_DEFAULT_VERBOSITY))
+GTK_DOC_V_SCAN_0=@echo "  DOC   Scanning header files";
+
+GTK_DOC_V_INTROSPECT=$(GTK_DOC_V_INTROSPECT_$(V))
+GTK_DOC_V_INTROSPECT_=$(GTK_DOC_V_INTROSPECT_$(AM_DEFAULT_VERBOSITY))
+GTK_DOC_V_INTROSPECT_0=@echo "  DOC   Introspecting gobjects";
+
+scan-build.stamp: setup-build.stamp $(HFILE_GLOB) $(CFILE_GLOB)
+       $(GTK_DOC_V_SCAN)_source_dir='' ; \
+       for i in $(DOC_SOURCE_DIR) ; do \
+           _source_dir="$${_source_dir} --source-dir=$$i" ; \
+       done ; \
+       gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES)
+       $(GTK_DOC_V_INTROSPECT)if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \
+           scanobj_options=""; \
+           gtkdoc-scangobj 2>&1 --help | grep  >/dev/null "\-\-verbose"; \
+           if test "$(?)" = "0"; then \
+               if test "x$(V)" = "x1"; then \
+                   scanobj_options="--verbose"; \
+               fi; \
+           fi; \
+           CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" \
+           gtkdoc-scangobj $(SCANGOBJ_OPTIONS) $$scanobj_options --module=$(DOC_MODULE); \
+       else \
+           for i in $(SCANOBJ_FILES) ; do \
+               test -f $$i || touch $$i ; \
+           done \
+       fi
+       $(AM_V_at)touch scan-build.stamp
+
+$(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt: scan-build.stamp
+       @true
+
+#### xml ####
+
+GTK_DOC_V_XML=$(GTK_DOC_V_XML_$(V))
+GTK_DOC_V_XML_=$(GTK_DOC_V_XML_$(AM_DEFAULT_VERBOSITY))
+GTK_DOC_V_XML_0=@echo "  DOC   Building XML";
+
+sgml-build.stamp: setup-build.stamp $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt $(expand_content_files)
+       $(GTK_DOC_V_XML)_source_dir='' ; \
+       for i in $(DOC_SOURCE_DIR) ; do \
+           _source_dir="$${_source_dir} --source-dir=$$i" ; \
+       done ; \
+       gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS)
+       $(AM_V_at)touch sgml-build.stamp
+
+sgml.stamp: sgml-build.stamp
+       @true
+
+#### html ####
+
+GTK_DOC_V_HTML=$(GTK_DOC_V_HTML_$(V))
+GTK_DOC_V_HTML_=$(GTK_DOC_V_HTML_$(AM_DEFAULT_VERBOSITY))
+GTK_DOC_V_HTML_0=@echo "  DOC   Building HTML";
+
+GTK_DOC_V_XREF=$(GTK_DOC_V_XREF_$(V))
+GTK_DOC_V_XREF_=$(GTK_DOC_V_XREF_$(AM_DEFAULT_VERBOSITY))
+GTK_DOC_V_XREF_0=@echo "  DOC   Fixing cross-references";
+
+html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
+       $(GTK_DOC_V_HTML)rm -rf html && mkdir html && \
+       mkhtml_options=""; \
+       gtkdoc-mkhtml 2>&1 --help | grep  >/dev/null "\-\-verbose"; \
+       if test "$(?)" = "0"; then \
+         if test "x$(V)" = "x1"; then \
+           mkhtml_options="$$mkhtml_options --verbose"; \
+         fi; \
+       fi; \
+       gtkdoc-mkhtml 2>&1 --help | grep  >/dev/null "\-\-path"; \
+       if test "$(?)" = "0"; then \
+         mkhtml_options="$$mkhtml_options --path=\"$(abs_srcdir)\""; \
+       fi; \
+       cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE)
+       -@test "x$(HTML_IMAGES)" = "x" || \
+       for file in $(HTML_IMAGES) ; do \
+         if test -f $(abs_srcdir)/$$file ; then \
+           cp $(abs_srcdir)/$$file $(abs_builddir)/html; \
+         fi; \
+         if test -f $(abs_builddir)/$$file ; then \
+           cp $(abs_builddir)/$$file $(abs_builddir)/html; \
+         fi; \
+       done;
+       $(GTK_DOC_V_XREF)gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS)
+       $(AM_V_at)touch html-build.stamp
+
+#### pdf ####
+
+GTK_DOC_V_PDF=$(GTK_DOC_V_PDF_$(V))
+GTK_DOC_V_PDF_=$(GTK_DOC_V_PDF_$(AM_DEFAULT_VERBOSITY))
+GTK_DOC_V_PDF_0=@echo "  DOC   Building PDF";
+
+pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files)
+       $(GTK_DOC_V_PDF)rm -f $(DOC_MODULE).pdf && \
+       mkpdf_options=""; \
+       gtkdoc-mkpdf 2>&1 --help | grep  >/dev/null "\-\-verbose"; \
+       if test "$(?)" = "0"; then \
+         if test "x$(V)" = "x1"; then \
+           mkpdf_options="$$mkpdf_options --verbose"; \
+         fi; \
+       fi; \
+       if test "x$(HTML_IMAGES)" != "x"; then \
+         for img in $(HTML_IMAGES); do \
+           part=`dirname $$img`; \
+           echo $$mkpdf_options | grep >/dev/null "\-\-imgdir=$$part "; \
+           if test $$? != 0; then \
+             mkpdf_options="$$mkpdf_options --imgdir=$$part"; \
+           fi; \
+         done; \
+       fi; \
+       gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_options $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS)
+       $(AM_V_at)touch pdf-build.stamp
+
+##############
+
+clean-local:
+       @rm -f *~ *.bak
+       @rm -rf .libs
+       @if echo $(SCAN_OPTIONS) | grep -q "\-\-rebuild-types" ; then \
+         rm -f $(DOC_MODULE).types; \
+       fi
+
+distclean-local:
+       @rm -rf xml html $(REPORT_FILES) $(DOC_MODULE).pdf \
+           $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt
+       @if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \
+           rm -f $(SETUP_FILES) $(expand_content_files) $(DOC_MODULE).types; \
+       fi
+
+maintainer-clean-local:
+       @rm -rf xml html
+
+install-data-local:
+       @installfiles=`echo $(builddir)/html/*`; \
+       if test "$$installfiles" = '$(builddir)/html/*'; \
+       then echo 1>&2 'Nothing to install' ; \
+       else \
+         if test -n "$(DOC_MODULE_VERSION)"; then \
+           installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
+         else \
+           installdir="$(DESTDIR)$(TARGET_DIR)"; \
+         fi; \
+         $(mkinstalldirs) $${installdir} ; \
+         for i in $$installfiles; do \
+           echo ' $(INSTALL_DATA) '$$i ; \
+           $(INSTALL_DATA) $$i $${installdir}; \
+         done; \
+         if test -n "$(DOC_MODULE_VERSION)"; then \
+           mv -f $${installdir}/$(DOC_MODULE).devhelp2 \
+             $${installdir}/$(DOC_MODULE)-$(DOC_MODULE_VERSION).devhelp2; \
+         fi; \
+         $(GTKDOC_REBASE) --relative --dest-dir=$(DESTDIR) --html-dir=$${installdir}; \
+       fi
+
+uninstall-local:
+       @if test -n "$(DOC_MODULE_VERSION)"; then \
+         installdir="$(DESTDIR)$(TARGET_DIR)-$(DOC_MODULE_VERSION)"; \
+       else \
+         installdir="$(DESTDIR)$(TARGET_DIR)"; \
+       fi; \
+       rm -rf $${installdir}
+
+#
+# Require gtk-doc when making dist
+#
+if HAVE_GTK_DOC
+dist-check-gtkdoc: docs
+else
+dist-check-gtkdoc:
+       @echo "*** gtk-doc is needed to run 'make dist'.         ***"
+       @echo "*** gtk-doc was not found when 'configure' ran.   ***"
+       @echo "*** please install gtk-doc and rerun 'configure'. ***"
+       @false
+endif
+
+dist-hook: dist-check-gtkdoc all-gtk-doc dist-hook-local
+       @mkdir $(distdir)/html
+       @cp ./html/* $(distdir)/html
+       @-cp ./$(DOC_MODULE).pdf $(distdir)/
+       @-cp ./$(DOC_MODULE).types $(distdir)/
+       @-cp ./$(DOC_MODULE)-sections.txt $(distdir)/
+       @cd $(distdir) && rm -f $(DISTCLEANFILES)
+       @$(GTKDOC_REBASE) --online --relative --html-dir=$(distdir)/html
+
+.PHONY : dist-hook-local docs
diff --git a/harfbuzz.doap b/harfbuzz.doap
new file mode 100644 (file)
index 0000000..d2896eb
--- /dev/null
@@ -0,0 +1,24 @@
+<Project xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
+         xmlns:foaf="http://xmlns.com/foaf/0.1/"
+         xmlns="http://usefulinc.com/ns/doap#">
+
+  <name xml:lang="en">harfbuzz</name>
+  <shortdesc xml:lang="en">Text shaping library</shortdesc>
+
+  <homepage
+  rdf:resource="http://harfbuzz.org/" />
+  <mailing-list
+  rdf:resource="http://lists.freedesktop.org/mailman/listinfo/harfbuzz" />
+  <!--download-page
+  rdf:resource=""/-->
+  <bug-database
+  rdf:resource="http://bugs.freedesktop.org/enter_bug.cgi?product=harfbuzz"/>
+
+  <maintainer>
+    <foaf:Person>
+      <foaf:name>Behdad Esfahbod</foaf:name>
+      <foaf:mbox rdf:resource="mailto:harfbuzz@behdad.org" />
+    </foaf:Person>
+  </maintainer>
+</Project>
diff --git a/install-sh b/install-sh
new file mode 100755 (executable)
index 0000000..377bb86
--- /dev/null
@@ -0,0 +1,527 @@
+#!/bin/sh
+# install - install a program, script, or datafile
+
+scriptversion=2011-11-20.07; # UTC
+
+# This originates from X11R5 (mit/util/scripts/install.sh), which was
+# later released in X11R6 (xc/config/util/install.sh) with the
+# following copyright and license.
+#
+# Copyright (C) 1994 X Consortium
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
+# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# Except as contained in this notice, the name of the X Consortium shall not
+# be used in advertising or otherwise to promote the sale, use or other deal-
+# ings in this Software without prior written authorization from the X Consor-
+# tium.
+#
+#
+# FSF changes to this file are in the public domain.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# 'make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch.
+
+nl='
+'
+IFS=" ""       $nl"
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit=${DOITPROG-}
+if test -z "$doit"; then
+  doit_exec=exec
+else
+  doit_exec=$doit
+fi
+
+# Put in absolute file names if you don't have them in your path;
+# or use environment vars.
+
+chgrpprog=${CHGRPPROG-chgrp}
+chmodprog=${CHMODPROG-chmod}
+chownprog=${CHOWNPROG-chown}
+cmpprog=${CMPPROG-cmp}
+cpprog=${CPPROG-cp}
+mkdirprog=${MKDIRPROG-mkdir}
+mvprog=${MVPROG-mv}
+rmprog=${RMPROG-rm}
+stripprog=${STRIPPROG-strip}
+
+posix_glob='?'
+initialize_posix_glob='
+  test "$posix_glob" != "?" || {
+    if (set -f) 2>/dev/null; then
+      posix_glob=
+    else
+      posix_glob=:
+    fi
+  }
+'
+
+posix_mkdir=
+
+# Desired mode of installed file.
+mode=0755
+
+chgrpcmd=
+chmodcmd=$chmodprog
+chowncmd=
+mvcmd=$mvprog
+rmcmd="$rmprog -f"
+stripcmd=
+
+src=
+dst=
+dir_arg=
+dst_arg=
+
+copy_on_change=false
+no_target_directory=
+
+usage="\
+Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
+   or: $0 [OPTION]... SRCFILES... DIRECTORY
+   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
+   or: $0 [OPTION]... -d DIRECTORIES...
+
+In the 1st form, copy SRCFILE to DSTFILE.
+In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
+In the 4th, create DIRECTORIES.
+
+Options:
+     --help     display this help and exit.
+     --version  display version info and exit.
+
+  -c            (ignored)
+  -C            install only if different (preserve the last data modification time)
+  -d            create directories instead of installing files.
+  -g GROUP      $chgrpprog installed files to GROUP.
+  -m MODE       $chmodprog installed files to MODE.
+  -o USER       $chownprog installed files to USER.
+  -s            $stripprog installed files.
+  -t DIRECTORY  install into DIRECTORY.
+  -T            report an error if DSTFILE is a directory.
+
+Environment variables override the default commands:
+  CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
+  RMPROG STRIPPROG
+"
+
+while test $# -ne 0; do
+  case $1 in
+    -c) ;;
+
+    -C) copy_on_change=true;;
+
+    -d) dir_arg=true;;
+
+    -g) chgrpcmd="$chgrpprog $2"
+       shift;;
+
+    --help) echo "$usage"; exit $?;;
+
+    -m) mode=$2
+       case $mode in
+         *' '* | *'    '* | *'
+'*       | *'*'* | *'?'* | *'['*)
+           echo "$0: invalid mode: $mode" >&2
+           exit 1;;
+       esac
+       shift;;
+
+    -o) chowncmd="$chownprog $2"
+       shift;;
+
+    -s) stripcmd=$stripprog;;
+
+    -t) dst_arg=$2
+       # Protect names problematic for 'test' and other utilities.
+       case $dst_arg in
+         -* | [=\(\)!]) dst_arg=./$dst_arg;;
+       esac
+       shift;;
+
+    -T) no_target_directory=true;;
+
+    --version) echo "$0 $scriptversion"; exit $?;;
+
+    --)        shift
+       break;;
+
+    -*)        echo "$0: invalid option: $1" >&2
+       exit 1;;
+
+    *)  break;;
+  esac
+  shift
+done
+
+if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
+  # When -d is used, all remaining arguments are directories to create.
+  # When -t is used, the destination is already specified.
+  # Otherwise, the last argument is the destination.  Remove it from $@.
+  for arg
+  do
+    if test -n "$dst_arg"; then
+      # $@ is not empty: it contains at least $arg.
+      set fnord "$@" "$dst_arg"
+      shift # fnord
+    fi
+    shift # arg
+    dst_arg=$arg
+    # Protect names problematic for 'test' and other utilities.
+    case $dst_arg in
+      -* | [=\(\)!]) dst_arg=./$dst_arg;;
+    esac
+  done
+fi
+
+if test $# -eq 0; then
+  if test -z "$dir_arg"; then
+    echo "$0: no input file specified." >&2
+    exit 1
+  fi
+  # It's OK to call 'install-sh -d' without argument.
+  # This can happen when creating conditional directories.
+  exit 0
+fi
+
+if test -z "$dir_arg"; then
+  do_exit='(exit $ret); exit $ret'
+  trap "ret=129; $do_exit" 1
+  trap "ret=130; $do_exit" 2
+  trap "ret=141; $do_exit" 13
+  trap "ret=143; $do_exit" 15
+
+  # Set umask so as not to create temps with too-generous modes.
+  # However, 'strip' requires both read and write access to temps.
+  case $mode in
+    # Optimize common cases.
+    *644) cp_umask=133;;
+    *755) cp_umask=22;;
+
+    *[0-7])
+      if test -z "$stripcmd"; then
+       u_plus_rw=
+      else
+       u_plus_rw='% 200'
+      fi
+      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
+    *)
+      if test -z "$stripcmd"; then
+       u_plus_rw=
+      else
+       u_plus_rw=,u+rw
+      fi
+      cp_umask=$mode$u_plus_rw;;
+  esac
+fi
+
+for src
+do
+  # Protect names problematic for 'test' and other utilities.
+  case $src in
+    -* | [=\(\)!]) src=./$src;;
+  esac
+
+  if test -n "$dir_arg"; then
+    dst=$src
+    dstdir=$dst
+    test -d "$dstdir"
+    dstdir_status=$?
+  else
+
+    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
+    # might cause directories to be created, which would be especially bad
+    # if $src (and thus $dsttmp) contains '*'.
+    if test ! -f "$src" && test ! -d "$src"; then
+      echo "$0: $src does not exist." >&2
+      exit 1
+    fi
+
+    if test -z "$dst_arg"; then
+      echo "$0: no destination specified." >&2
+      exit 1
+    fi
+    dst=$dst_arg
+
+    # If destination is a directory, append the input filename; won't work
+    # if double slashes aren't ignored.
+    if test -d "$dst"; then
+      if test -n "$no_target_directory"; then
+       echo "$0: $dst_arg: Is a directory" >&2
+       exit 1
+      fi
+      dstdir=$dst
+      dst=$dstdir/`basename "$src"`
+      dstdir_status=0
+    else
+      # Prefer dirname, but fall back on a substitute if dirname fails.
+      dstdir=`
+       (dirname "$dst") 2>/dev/null ||
+       expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+            X"$dst" : 'X\(//\)[^/]' \| \
+            X"$dst" : 'X\(//\)$' \| \
+            X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
+       echo X"$dst" |
+           sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+                  s//\1/
+                  q
+                }
+                /^X\(\/\/\)[^/].*/{
+                  s//\1/
+                  q
+                }
+                /^X\(\/\/\)$/{
+                  s//\1/
+                  q
+                }
+                /^X\(\/\).*/{
+                  s//\1/
+                  q
+                }
+                s/.*/./; q'
+      `
+
+      test -d "$dstdir"
+      dstdir_status=$?
+    fi
+  fi
+
+  obsolete_mkdir_used=false
+
+  if test $dstdir_status != 0; then
+    case $posix_mkdir in
+      '')
+       # Create intermediate dirs using mode 755 as modified by the umask.
+       # This is like FreeBSD 'install' as of 1997-10-28.
+       umask=`umask`
+       case $stripcmd.$umask in
+         # Optimize common cases.
+         *[2367][2367]) mkdir_umask=$umask;;
+         .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
+
+         *[0-7])
+           mkdir_umask=`expr $umask + 22 \
+             - $umask % 100 % 40 + $umask % 20 \
+             - $umask % 10 % 4 + $umask % 2
+           `;;
+         *) mkdir_umask=$umask,go-w;;
+       esac
+
+       # With -d, create the new directory with the user-specified mode.
+       # Otherwise, rely on $mkdir_umask.
+       if test -n "$dir_arg"; then
+         mkdir_mode=-m$mode
+       else
+         mkdir_mode=
+       fi
+
+       posix_mkdir=false
+       case $umask in
+         *[123567][0-7][0-7])
+           # POSIX mkdir -p sets u+wx bits regardless of umask, which
+           # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
+           ;;
+         *)
+           tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
+           trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
+
+           if (umask $mkdir_umask &&
+               exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
+           then
+             if test -z "$dir_arg" || {
+                  # Check for POSIX incompatibilities with -m.
+                  # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
+                  # other-writable bit of parent directory when it shouldn't.
+                  # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
+                  ls_ld_tmpdir=`ls -ld "$tmpdir"`
+                  case $ls_ld_tmpdir in
+                    d????-?r-*) different_mode=700;;
+                    d????-?--*) different_mode=755;;
+                    *) false;;
+                  esac &&
+                  $mkdirprog -m$different_mode -p -- "$tmpdir" && {
+                    ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
+                    test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
+                  }
+                }
+             then posix_mkdir=:
+             fi
+             rmdir "$tmpdir/d" "$tmpdir"
+           else
+             # Remove any dirs left behind by ancient mkdir implementations.
+             rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
+           fi
+           trap '' 0;;
+       esac;;
+    esac
+
+    if
+      $posix_mkdir && (
+       umask $mkdir_umask &&
+       $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
+      )
+    then :
+    else
+
+      # The umask is ridiculous, or mkdir does not conform to POSIX,
+      # or it failed possibly due to a race condition.  Create the
+      # directory the slow way, step by step, checking for races as we go.
+
+      case $dstdir in
+       /*) prefix='/';;
+       [-=\(\)!]*) prefix='./';;
+       *)  prefix='';;
+      esac
+
+      eval "$initialize_posix_glob"
+
+      oIFS=$IFS
+      IFS=/
+      $posix_glob set -f
+      set fnord $dstdir
+      shift
+      $posix_glob set +f
+      IFS=$oIFS
+
+      prefixes=
+
+      for d
+      do
+       test X"$d" = X && continue
+
+       prefix=$prefix$d
+       if test -d "$prefix"; then
+         prefixes=
+       else
+         if $posix_mkdir; then
+           (umask=$mkdir_umask &&
+            $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
+           # Don't fail if two instances are running concurrently.
+           test -d "$prefix" || exit 1
+         else
+           case $prefix in
+             *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
+             *) qprefix=$prefix;;
+           esac
+           prefixes="$prefixes '$qprefix'"
+         fi
+       fi
+       prefix=$prefix/
+      done
+
+      if test -n "$prefixes"; then
+       # Don't fail if two instances are running concurrently.
+       (umask $mkdir_umask &&
+        eval "\$doit_exec \$mkdirprog $prefixes") ||
+         test -d "$dstdir" || exit 1
+       obsolete_mkdir_used=true
+      fi
+    fi
+  fi
+
+  if test -n "$dir_arg"; then
+    { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
+    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
+    { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
+      test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
+  else
+
+    # Make a couple of temp file names in the proper directory.
+    dsttmp=$dstdir/_inst.$$_
+    rmtmp=$dstdir/_rm.$$_
+
+    # Trap to clean up those temp files at exit.
+    trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
+
+    # Copy the file name to the temp name.
+    (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
+
+    # and set any options; do chmod last to preserve setuid bits.
+    #
+    # If any of these fail, we abort the whole thing.  If we want to
+    # ignore errors from any of these, just make sure not to ignore
+    # errors from the above "$doit $cpprog $src $dsttmp" command.
+    #
+    { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
+    { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
+    { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
+    { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
+
+    # If -C, don't bother to copy if it wouldn't change the file.
+    if $copy_on_change &&
+       old=`LC_ALL=C ls -dlL "$dst"    2>/dev/null` &&
+       new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
+
+       eval "$initialize_posix_glob" &&
+       $posix_glob set -f &&
+       set X $old && old=:$2:$4:$5:$6 &&
+       set X $new && new=:$2:$4:$5:$6 &&
+       $posix_glob set +f &&
+
+       test "$old" = "$new" &&
+       $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
+    then
+      rm -f "$dsttmp"
+    else
+      # Rename the file to the real destination.
+      $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
+
+      # The rename failed, perhaps because mv can't rename something else
+      # to itself, or perhaps because mv is so ancient that it does not
+      # support -f.
+      {
+       # Now remove or move aside any old file at destination location.
+       # We try this two ways since rm can't unlink itself on some
+       # systems and the destination file might be busy for other
+       # reasons.  In this case, the final cleanup might fail but the new
+       # file should still install successfully.
+       {
+         test ! -f "$dst" ||
+         $doit $rmcmd -f "$dst" 2>/dev/null ||
+         { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
+           { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
+         } ||
+         { echo "$0: cannot unlink or rename $dst" >&2
+           (exit 1); exit 1
+         }
+       } &&
+
+       # Now rename the file to the real destination.
+       $doit $mvcmd "$dsttmp" "$dst"
+      }
+    fi || exit 1
+
+    trap '' 0
+  fi
+done
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/ltmain.sh b/ltmain.sh
new file mode 100644 (file)
index 0000000..a50a21a
--- /dev/null
+++ b/ltmain.sh
@@ -0,0 +1,10932 @@
+#! /bin/sh
+
+# libtool (GNU libtool) 2.4.2.418
+# Provide generalized library-building support services.
+# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
+
+# Copyright (C) 1996-2013 Free Software Foundation, Inc.
+# This is free software; see the source for copying conditions.  There is NO
+# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+# GNU Libtool is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+
+PROGRAM=libtool
+PACKAGE=libtool
+VERSION=2.4.2.418
+package_revision=2.4.2.418
+
+
+## ------ ##
+## Usage. ##
+## ------ ##
+
+# Run './libtool --help' for help with using this script from the
+# command line.
+
+
+## ------------------------------- ##
+## User overridable command paths. ##
+## ------------------------------- ##
+
+# After configure completes, it has a better idea of some of the
+# shell tools we need than the defaults used by the functions shared
+# with bootstrap, so set those here where they can still be over-
+# ridden by the user, but otherwise take precedence.
+
+: ${AUTOCONF="autoconf"}
+: ${AUTOMAKE="automake"}
+
+
+## -------------------------- ##
+## Source external libraries. ##
+## -------------------------- ##
+
+# Much of our low-level functionality needs to be sourced from external
+# libraries, which are installed to $pkgauxdir.
+
+# Set a version string for this script.
+scriptversion=2013-08-23.20; # UTC
+
+# General shell script boiler plate, and helper functions.
+# Written by Gary V. Vaughan, 2004
+
+# Copyright (C) 2004-2013 Free Software Foundation, Inc.
+# This is free software; see the source for copying conditions.  There is NO
+# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+
+# As a special exception to the GNU General Public License, if you distribute
+# this file as part of a program or library that is built using GNU Libtool,
+# you may include this file under the same distribution terms that you use
+# for the rest of that program.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Please report bugs or propose patches to gary@gnu.org.
+
+
+## ------ ##
+## Usage. ##
+## ------ ##
+
+# Evaluate this file near the top of your script to gain access to
+# the functions and variables defined here:
+#
+#   . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
+#
+# If you need to override any of the default environment variable
+# settings, do that before evaluating this file.
+
+
+## -------------------- ##
+## Shell normalisation. ##
+## -------------------- ##
+
+# Some shells need a little help to be as Bourne compatible as possible.
+# Before doing anything else, make sure all that help has been provided!
+
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
+  emulate sh
+  NULLCMD=:
+  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '${1+"$@"}'='"$@"'
+  setopt NO_GLOB_SUBST
+else
+  case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
+fi
+
+# NLS nuisances: We save the old values in case they are required later.
+_G_user_locale=
+_G_safe_locale=
+for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+do
+  eval "if test set = \"\${$_G_var+set}\"; then
+          save_$_G_var=\$$_G_var
+          $_G_var=C
+         export $_G_var
+         _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\"
+         _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
+       fi"
+done
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+# Make sure IFS has a sensible default
+sp=' '
+nl='
+'
+IFS="$sp       $nl"
+
+# There are still modern systems that have problems with 'echo' mis-
+# handling backslashes, among others, so make sure $bs_echo is set to a
+# command that correctly interprets backslashes.
+# (this code from Autoconf 2.68)
+
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+bs_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+bs_echo=$bs_echo$bs_echo$bs_echo$bs_echo$bs_echo
+bs_echo=$bs_echo$bs_echo$bs_echo$bs_echo$bs_echo$bs_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+    && (test "X`print -r -- $bs_echo`" = "X$bs_echo") 2>/dev/null; then
+  bs_echo='print -r --'
+  bs_echo_n='print -rn --'
+elif (test "X`printf %s $bs_echo`" = "X$bs_echo") 2>/dev/null; then
+  bs_echo='printf %s\n'
+  bs_echo_n='printf %s'
+else
+  if test "X`(/usr/ucb/echo -n -n $bs_echo) 2>/dev/null`" = "X-n $bs_echo"; then
+    bs_echo_body='eval /usr/ucb/echo -n "$1$nl"'
+    bs_echo_n='/usr/ucb/echo -n'
+  else
+    bs_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+    bs_echo_n_body='eval
+      arg=$1;
+      case $arg in #(
+      *"$nl"*)
+       expr "X$arg" : "X\\(.*\\)$nl";
+       arg=`expr "X$arg" : ".*$nl\\(.*\\)"`;;
+      esac;
+      expr "X$arg" : "X\\(.*\\)" | tr -d "$nl"
+    '
+    export bs_echo_n_body
+    bs_echo_n='sh -c $bs_echo_n_body bs_echo'
+  fi
+  export bs_echo_body
+  bs_echo='sh -c $bs_echo_body bs_echo'
+fi
+
+
+## ------------------------------- ##
+## User overridable command paths. ##
+## ------------------------------- ##
+
+# All uppercase variable names are used for environment variables.  These
+# variables can be overridden by the user before calling a script that
+# uses them if a suitable command of that name is not already available
+# in the command search PATH.
+
+: ${CP="cp -f"}
+: ${ECHO="$bs_echo"}
+: ${EGREP="grep -E"}
+: ${FGREP="grep -F"}
+: ${GREP="grep"}
+: ${LN_S="ln -s"}
+: ${MAKE="make"}
+: ${MKDIR="mkdir"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+: ${SED="sed"}
+: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
+
+
+## -------------------- ##
+## Useful sed snippets. ##
+## -------------------- ##
+
+sed_dirname='s|/[^/]*$||'
+sed_basename='s|^.*/||'
+
+# Sed substitution that helps us do robust quoting.  It backslashifies
+# metacharacters that are still active within double-quoted strings.
+sed_quote_subst='s|\([`"$\\]\)|\\\1|g'
+
+# Same as above, but do not quote variable references.
+sed_double_quote_subst='s/\(["`\\]\)/\\\1/g'
+
+# Sed substitution that turns a string into a regex matching for the
+# string literally.
+sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g'
+
+# Sed substitution that converts a w32 file name or path
+# that contains forward slashes, into one that contains
+# (escaped) backslashes.  A very naive implementation.
+sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
+
+# Re-'\' parameter expansions in output of sed_double_quote_subst that
+# were '\'-ed in input to the same.  If an odd number of '\' preceded a
+# '$' in input to sed_double_quote_subst, that '$' was protected from
+# expansion.  Since each input '\' is now two '\'s, look for any number
+# of runs of four '\'s followed by two '\'s and then a '$'.  '\' that '$'.
+_G_bs='\\'
+_G_bs2='\\\\'
+_G_bs4='\\\\\\\\'
+_G_dollar='\$'
+sed_double_backslash="\
+  s/$_G_bs4/&\\
+/g
+  s/^$_G_bs2$_G_dollar/$_G_bs&/
+  s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g
+  s/\n//g"
+
+
+## ----------------- ##
+## Global variables. ##
+## ----------------- ##
+
+# Except for the global variables explicitly listed below, the following
+# functions in the '^func_' namespace, and the '^require_' namespace
+# variables initialised in the 'Resource management' section, sourcing
+# this file will not pollute your global namespace with anything
+# else. There's no portable way to scope variables in Bourne shell
+# though, so actually running these functions will sometimes place
+# results into a variable named after the function, and often use
+# temporary variables in the '^_G_' namespace. If you are careful to
+# avoid using those namespaces casually in your sourcing script, things
+# should continue to work as you expect. And, of course, you can freely
+# overwrite any of the functions or variables defined here before
+# calling anything to customize them.
+
+EXIT_SUCCESS=0
+EXIT_FAILURE=1
+EXIT_MISMATCH=63  # $? = 63 is used to indicate version mismatch to missing.
+EXIT_SKIP=77     # $? = 77 is used to indicate a skipped test to automake.
+
+# Allow overriding, eg assuming that you follow the convention of
+# putting '$debug_cmd' at the start of all your functions, you can get
+# bash to show function call trace with:
+#
+#    debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
+debug_cmd=${debug_cmd-":"}
+exit_cmd=:
+
+# By convention, finish your script with:
+#
+#    exit $exit_status
+#
+# so that you can set exit_status to non-zero if you want to indicate
+# something went wrong during execution without actually bailing out at
+# the point of failure.
+exit_status=$EXIT_SUCCESS
+
+# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
+# is ksh but when the shell is invoked as "sh" and the current value of
+# the _XPG environment variable is not equal to 1 (one), the special
+# positional parameter $0, within a function call, is the name of the
+# function.
+progpath=$0
+
+# The name of this program.
+progname=`$bs_echo "$progpath" |$SED "$sed_basename"`
+
+# Make sure we have an absolute progpath for reexecution:
+case $progpath in
+  [\\/]*|[A-Za-z]:\\*) ;;
+  *[\\/]*)
+     progdir=`$bs_echo "$progpath" |$SED "$sed_dirname"`
+     progdir=`cd "$progdir" && pwd`
+     progpath=$progdir/$progname
+     ;;
+  *)
+     _G_IFS=$IFS
+     IFS=${PATH_SEPARATOR-:}
+     for progdir in $PATH; do
+       IFS=$_G_IFS
+       test -x "$progdir/$progname" && break
+     done
+     IFS=$_G_IFS
+     test -n "$progdir" || progdir=`pwd`
+     progpath=$progdir/$progname
+     ;;
+esac
+
+
+## ----------------- ##
+## Standard options. ##
+## ----------------- ##
+
+# The following options affect the operation of the functions defined
+# below, and should be set appropriately depending on run-time para-
+# meters passed on the command line.
+
+opt_dry_run=false
+opt_quiet=false
+opt_verbose=false
+
+# Categories 'all' and 'none' are always available.  Append any others
+# you will pass as the first argument to func_warning from your own
+# code.
+warning_categories=
+
+# By default, display warnings according to 'opt_warning_types'.  Set
+# 'warning_func'  to ':' to elide all warnings, or func_fatal_error to
+# treat the next displayed warning as a fatal error.
+warning_func=func_warn_and_continue
+
+# Set to 'all' to display all warnings, 'none' to suppress all
+# warnings, or a space delimited list of some subset of
+# 'warning_categories' to display only the listed warnings.
+opt_warning_types=all
+
+
+## -------------------- ##
+## Resource management. ##
+## -------------------- ##
+
+# This section contains definitions for functions that each ensure a
+# particular resource (a file, or a non-empty configuration variable for
+# example) is available, and if appropriate to extract default values
+# from pertinent package files. Call them using their associated
+# 'require_*' variable to ensure that they are executed, at most, once.
+#
+# It's entirely deliberate that calling these functions can set
+# variables that don't obey the namespace limitations obeyed by the rest
+# of this file, in order that that they be as useful as possible to
+# callers.
+
+
+# require_term_colors
+# -------------------
+# Allow display of bold text on terminals that support it.
+require_term_colors=func_require_term_colors
+func_require_term_colors ()
+{
+    $debug_cmd
+
+    test -t 1 && {
+      # COLORTERM and USE_ANSI_COLORS environment variables take
+      # precedence, because most terminfo databases neglect to describe
+      # whether color sequences are supported.
+      test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
+
+      if test 1 = "$USE_ANSI_COLORS"; then
+        # Standard ANSI escape sequences
+        tc_reset='\e[0m'
+        tc_bold='\e[1m';   tc_standout='\e[7m'
+        tc_red='\e[31m';   tc_green='\e[32m'
+        tc_blue='\e[34m';  tc_cyan='\e[36m'
+      else
+        # Otherwise trust the terminfo database after all.
+        test -n "`tput sgr0 2>/dev/null`" && {
+          tc_reset=`tput sgr0`
+          test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
+          tc_standout=$tc_bold
+          test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
+          test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
+          test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
+          test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
+          test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
+        }
+      fi
+    }
+
+    require_term_colors=:
+}
+
+
+## ----------------- ##
+## Function library. ##
+## ----------------- ##
+
+# This section contains a variety of useful functions to call in your
+# scripts. Take note of the portable wrappers for features provided by
+# some modern shells, which will fall back to slower equivalents on
+# less featureful shells.
+
+
+# func_append VAR VALUE
+# ---------------------
+# Append VALUE onto the existing contents of VAR.
+
+  # We should try to minimise forks, especially on Windows where they are
+  # unreasonably slow, so skip the feature probes when bash or zsh are
+  # being used:
+  if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then
+    : ${_G_HAVE_ARITH_OP="yes"}
+    : ${_G_HAVE_XSI_OPS="yes"}
+    # The += operator was introduced in bash 3.1
+    case $BASH_VERSION in
+      [12].* | 3.0 | 3.0*) ;;
+      *)
+        : ${_G_HAVE_PLUSEQ_OP="yes"}
+        ;;
+    esac
+  fi
+
+  # _G_HAVE_PLUSEQ_OP
+  # Can be empty, in which case the shell is probed, "yes" if += is
+  # useable or anything else if it does not work.
+  test -z "$_G_HAVE_PLUSEQ_OP" \
+    && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \
+    && _G_HAVE_PLUSEQ_OP=yes
+
+if test yes = "$_G_HAVE_PLUSEQ_OP"
+then
+  # This is an XSI compatible shell, allowing a faster implementation...
+  eval 'func_append ()
+  {
+    $debug_cmd
+
+    eval "$1+=\$2"
+  }'
+else
+  # ...otherwise fall back to using expr, which is often a shell builtin.
+  func_append ()
+  {
+    $debug_cmd
+
+    eval "$1=\$$1\$2"
+  }
+fi
+
+
+# func_append_quoted VAR VALUE
+# ----------------------------
+# Quote VALUE and append to the end of shell variable VAR, separated
+# by a space.
+if test yes = "$_G_HAVE_PLUSEQ_OP"; then
+  eval 'func_append_quoted ()
+  {
+    $debug_cmd
+
+    func_quote_for_eval "$2"
+    eval "$1+=\\ \$func_quote_for_eval_result"
+  }'
+else
+  func_append_quoted ()
+  {
+    $debug_cmd
+
+    func_quote_for_eval "$2"
+    eval "$1=\$$1\\ \$func_quote_for_eval_result"
+  }
+fi
+
+
+# func_append_uniq VAR VALUE
+# --------------------------
+# Append unique VALUE onto the existing contents of VAR, assuming
+# entries are delimited by the first character of VALUE.  For example:
+#
+#   func_append_uniq options " --another-option option-argument"
+#
+# will only append to $options if " --another-option option-argument "
+# is not already present somewhere in $options already (note spaces at
+# each end implied by leading space in second argument).
+func_append_uniq ()
+{
+    $debug_cmd
+
+    eval _G_current_value='`$bs_echo $'$1'`'
+    _G_delim=`expr "$2" : '\(.\)'`
+
+    case $_G_delim$_G_current_value$_G_delim in
+      *"$2$_G_delim"*) ;;
+      *) func_append "$@" ;;
+    esac
+}
+
+
+# func_arith TERM...
+# ------------------
+# Set func_arith_result to the result of evaluating TERMs.
+  test -z "$_G_HAVE_ARITH_OP" \
+    && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \
+    && _G_HAVE_ARITH_OP=yes
+
+if test yes = "$_G_HAVE_ARITH_OP"; then
+  eval 'func_arith ()
+  {
+    $debug_cmd
+
+    func_arith_result=$(( $* ))
+  }'
+else
+  func_arith ()
+  {
+    $debug_cmd
+
+    func_arith_result=`expr "$@"`
+  }
+fi
+
+
+# func_basename FILE
+# ------------------
+# Set func_basename_result to FILE with everything up to and including
+# the last / stripped.
+if test yes = "$_G_HAVE_XSI_OPS"; then
+  # If this shell supports suffix pattern removal, then use it to avoid
+  # forking. Hide the definitions single quotes in case the shell chokes
+  # on unsupported syntax...
+  _b='func_basename_result=${1##*/}'
+  _d='case $1 in
+        */*) func_dirname_result=${1%/*}$2 ;;
+        *  ) func_dirname_result=$3        ;;
+      esac'
+
+else
+  # ...otherwise fall back to using sed.
+  _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`'
+  _d='func_dirname_result=`$ECHO "$1"  |$SED "$sed_dirname"`
+      if test "X$func_dirname_result" = "X$1"; then
+        func_dirname_result=$3
+      else
+        func_append func_dirname_result "$2"
+      fi'
+fi
+
+eval 'func_basename ()
+{
+    $debug_cmd
+
+    '"$_b"'
+}'
+
+
+# func_dirname FILE APPEND NONDIR_REPLACEMENT
+# -------------------------------------------
+# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
+# otherwise set result to NONDIR_REPLACEMENT.
+eval 'func_dirname ()
+{
+    $debug_cmd
+
+    '"$_d"'
+}'
+
+
+# func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT
+# --------------------------------------------------------
+# Perform func_basename and func_dirname in a single function
+# call:
+#   dirname:  Compute the dirname of FILE.  If nonempty,
+#             add APPEND to the result, otherwise set result
+#             to NONDIR_REPLACEMENT.
+#             value returned in "$func_dirname_result"
+#   basename: Compute filename of FILE.
+#             value retuned in "$func_basename_result"
+# For efficiency, we do not delegate to the functions above but instead
+# duplicate the functionality here.
+eval 'func_dirname_and_basename ()
+{
+    $debug_cmd
+
+    '"$_b"'
+    '"$_d"'
+}'
+
+
+# func_echo ARG...
+# ----------------
+# Echo program name prefixed message.
+func_echo ()
+{
+    $debug_cmd
+
+    _G_message=$*
+
+    func_echo_IFS=$IFS
+    IFS=$nl
+    for _G_line in $_G_message; do
+      IFS=$func_echo_IFS
+      $bs_echo "$progname: $_G_line"
+    done
+    IFS=$func_echo_IFS
+}
+
+
+# func_echo_all ARG...
+# --------------------
+# Invoke $ECHO with all args, space-separated.
+func_echo_all ()
+{
+    $ECHO "$*"
+}
+
+
+# func_echo_infix_1 INFIX ARG...
+# ------------------------------
+# Echo program name, followed by INFIX on the first line, with any
+# additional lines not showing INFIX.
+func_echo_infix_1 ()
+{
+    $debug_cmd
+
+    $require_term_colors
+
+    _G_infix=$1; shift
+    _G_indent=$_G_infix
+    _G_prefix="$progname: $_G_infix: "
+    _G_message=$*
+
+    # Strip color escape sequences before counting printable length
+    for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan"
+    do
+      test -n "$_G_tc" && {
+        _G_esc_tc=`$bs_echo "$_G_tc" | sed "$sed_make_literal_regex"`
+        _G_indent=`$bs_echo "$_G_indent" | sed "s|$_G_esc_tc||g"`
+      }
+    done
+    _G_indent="$progname: "`echo "$_G_indent" | sed 's|.| |g'`"  " ## exclude from sc_prohibit_nested_quotes
+
+    func_echo_infix_1_IFS=$IFS
+    IFS=$nl
+    for _G_line in $_G_message; do
+      IFS=$func_echo_infix_1_IFS
+      $bs_echo "$_G_prefix$tc_bold$_G_line$tc_reset" >&2
+      _G_prefix=$_G_indent
+    done
+    IFS=$func_echo_infix_1_IFS
+}
+
+
+# func_error ARG...
+# -----------------
+# Echo program name prefixed message to standard error.
+func_error ()
+{
+    $debug_cmd
+
+    $require_term_colors
+
+    func_echo_infix_1 "  $tc_standout${tc_red}error$tc_reset" "$*" >&2
+}
+
+
+# func_fatal_error ARG...
+# -----------------------
+# Echo program name prefixed message to standard error, and exit.
+func_fatal_error ()
+{
+    $debug_cmd
+
+    func_error "$*"
+    exit $EXIT_FAILURE
+}
+
+
+# func_grep EXPRESSION FILENAME
+# -----------------------------
+# Check whether EXPRESSION matches any line of FILENAME, without output.
+func_grep ()
+{
+    $debug_cmd
+
+    $GREP "$1" "$2" >/dev/null 2>&1
+}
+
+
+# func_len STRING
+# ---------------
+# Set func_len_result to the length of STRING. STRING may not
+# start with a hyphen.
+  test -z "$_G_HAVE_XSI_OPS" \
+    && (eval 'x=a/b/c;
+      test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
+    && _G_HAVE_XSI_OPS=yes
+
+if test yes = "$_G_HAVE_XSI_OPS"; then
+  eval 'func_len ()
+  {
+    $debug_cmd
+
+    func_len_result=${#1}
+  }'
+else
+  func_len ()
+  {
+    $debug_cmd
+
+    func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
+  }
+fi
+
+
+# func_mkdir_p DIRECTORY-PATH
+# ---------------------------
+# Make sure the entire path to DIRECTORY-PATH is available.
+func_mkdir_p ()
+{
+    $debug_cmd
+
+    _G_directory_path=$1
+    _G_dir_list=
+
+    if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
+
+      # Protect directory names starting with '-'
+      case $_G_directory_path in
+        -*) _G_directory_path=./$_G_directory_path ;;
+      esac
+
+      # While some portion of DIR does not yet exist...
+      while test ! -d "$_G_directory_path"; do
+        # ...make a list in topmost first order.  Use a colon delimited
+       # list incase some portion of path contains whitespace.
+        _G_dir_list=$_G_directory_path:$_G_dir_list
+
+        # If the last portion added has no slash in it, the list is done
+        case $_G_directory_path in */*) ;; *) break ;; esac
+
+        # ...otherwise throw away the child directory and loop
+        _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
+      done
+      _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'`
+
+      func_mkdir_p_IFS=$IFS; IFS=:
+      for _G_dir in $_G_dir_list; do
+       IFS=$func_mkdir_p_IFS
+        # mkdir can fail with a 'File exist' error if two processes
+        # try to create one of the directories concurrently.  Don't
+        # stop in that case!
+        $MKDIR "$_G_dir" 2>/dev/null || :
+      done
+      IFS=$func_mkdir_p_IFS
+
+      # Bail out if we (or some other process) failed to create a directory.
+      test -d "$_G_directory_path" || \
+        func_fatal_error "Failed to create '$1'"
+    fi
+}
+
+
+# func_mktempdir [BASENAME]
+# -------------------------
+# Make a temporary directory that won't clash with other running
+# libtool processes, and avoids race conditions if possible.  If
+# given, BASENAME is the basename for that directory.
+func_mktempdir ()
+{
+    $debug_cmd
+
+    _G_template=${TMPDIR-/tmp}/${1-$progname}
+
+    if test : = "$opt_dry_run"; then
+      # Return a directory name, but don't create it in dry-run mode
+      _G_tmpdir=$_G_template-$$
+    else
+
+      # If mktemp works, use that first and foremost
+      _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
+
+      if test ! -d "$_G_tmpdir"; then
+        # Failing that, at least try and use $RANDOM to avoid a race
+        _G_tmpdir=$_G_template-${RANDOM-0}$$
+
+        func_mktempdir_umask=`umask`
+        umask 0077
+        $MKDIR "$_G_tmpdir"
+        umask $func_mktempdir_umask
+      fi
+
+      # If we're not in dry-run mode, bomb out on failure
+      test -d "$_G_tmpdir" || \
+        func_fatal_error "cannot create temporary directory '$_G_tmpdir'"
+    fi
+
+    $ECHO "$_G_tmpdir"
+}
+
+
+# func_normal_abspath PATH
+# ------------------------
+# Remove doubled-up and trailing slashes, "." path components,
+# and cancel out any ".." path components in PATH after making
+# it an absolute path.
+func_normal_abspath ()
+{
+    $debug_cmd
+
+    # These SED scripts presuppose an absolute path with a trailing slash.
+    _G_pathcar='s|^/\([^/]*\).*$|\1|'
+    _G_pathcdr='s|^/[^/]*||'
+    _G_removedotparts=':dotsl
+               s|/\./|/|g
+               t dotsl
+               s|/\.$|/|'
+    _G_collapseslashes='s|/\{1,\}|/|g'
+    _G_finalslash='s|/*$|/|'
+
+    # Start from root dir and reassemble the path.
+    func_normal_abspath_result=
+    func_normal_abspath_tpath=$1
+    func_normal_abspath_altnamespace=
+    case $func_normal_abspath_tpath in
+      "")
+        # Empty path, that just means $cwd.
+        func_stripname '' '/' "`pwd`"
+        func_normal_abspath_result=$func_stripname_result
+        return
+        ;;
+      # The next three entries are used to spot a run of precisely
+      # two leading slashes without using negated character classes;
+      # we take advantage of case's first-match behaviour.
+      ///*)
+        # Unusual form of absolute path, do nothing.
+        ;;
+      //*)
+        # Not necessarily an ordinary path; POSIX reserves leading '//'
+        # and for example Cygwin uses it to access remote file shares
+        # over CIFS/SMB, so we conserve a leading double slash if found.
+        func_normal_abspath_altnamespace=/
+        ;;
+      /*)
+        # Absolute path, do nothing.
+        ;;
+      *)
+        # Relative path, prepend $cwd.
+        func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
+        ;;
+    esac
+
+    # Cancel out all the simple stuff to save iterations.  We also want
+    # the path to end with a slash for ease of parsing, so make sure
+    # there is one (and only one) here.
+    func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
+          -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
+    while :; do
+      # Processed it all yet?
+      if test / = "$func_normal_abspath_tpath"; then
+        # If we ascended to the root using ".." the result may be empty now.
+        if test -z "$func_normal_abspath_result"; then
+          func_normal_abspath_result=/
+        fi
+        break
+      fi
+      func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
+          -e "$_G_pathcar"`
+      func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
+          -e "$_G_pathcdr"`
+      # Figure out what to do with it
+      case $func_normal_abspath_tcomponent in
+        "")
+          # Trailing empty path component, ignore it.
+          ;;
+        ..)
+          # Parent dir; strip last assembled component from result.
+          func_dirname "$func_normal_abspath_result"
+          func_normal_abspath_result=$func_dirname_result
+          ;;
+        *)
+          # Actual path component, append it.
+          func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent"
+          ;;
+      esac
+    done
+    # Restore leading double-slash if one was found on entry.
+    func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
+}
+
+
+# func_notquiet ARG...
+# --------------------
+# Echo program name prefixed message only when not in quiet mode.
+func_notquiet ()
+{
+    $debug_cmd
+
+    $opt_quiet || func_echo ${1+"$@"}
+
+    # A bug in bash halts the script if the last line of a function
+    # fails when set -e is in force, so we need another command to
+    # work around that:
+    :
+}
+
+
+# func_relative_path SRCDIR DSTDIR
+# --------------------------------
+# Set func_relative_path_result to the relative path from SRCDIR to DSTDIR.
+func_relative_path ()
+{
+    $debug_cmd
+
+    func_relative_path_result=
+    func_normal_abspath "$1"
+    func_relative_path_tlibdir=$func_normal_abspath_result
+    func_normal_abspath "$2"
+    func_relative_path_tbindir=$func_normal_abspath_result
+
+    # Ascend the tree starting from libdir
+    while :; do
+      # check if we have found a prefix of bindir
+      case $func_relative_path_tbindir in
+        $func_relative_path_tlibdir)
+          # found an exact match
+          func_relative_path_tcancelled=
+          break
+          ;;
+        $func_relative_path_tlibdir*)
+          # found a matching prefix
+          func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
+          func_relative_path_tcancelled=$func_stripname_result
+          if test -z "$func_relative_path_result"; then
+            func_relative_path_result=.
+          fi
+          break
+          ;;
+        *)
+          func_dirname $func_relative_path_tlibdir
+          func_relative_path_tlibdir=$func_dirname_result
+          if test -z "$func_relative_path_tlibdir"; then
+            # Have to descend all the way to the root!
+            func_relative_path_result=../$func_relative_path_result
+            func_relative_path_tcancelled=$func_relative_path_tbindir
+            break
+          fi
+          func_relative_path_result=../$func_relative_path_result
+          ;;
+      esac
+    done
+
+    # Now calculate path; take care to avoid doubling-up slashes.
+    func_stripname '' '/' "$func_relative_path_result"
+    func_relative_path_result=$func_stripname_result
+    func_stripname '/' '/' "$func_relative_path_tcancelled"
+    if test -n "$func_stripname_result"; then
+      func_append func_relative_path_result "/$func_stripname_result"
+    fi
+
+    # Normalisation. If bindir is libdir, return '.' else relative path.
+    if test -n "$func_relative_path_result"; then
+      func_stripname './' '' "$func_relative_path_result"
+      func_relative_path_result=$func_stripname_result
+    fi
+
+    test -n "$func_relative_path_result" || func_relative_path_result=.
+
+    :
+}
+
+
+# func_quote_for_eval ARG...
+# --------------------------
+# Aesthetically quote ARGs to be evaled later.
+# This function returns two values:
+#   i) func_quote_for_eval_result
+#      double-quoted, suitable for a subsequent eval
+#  ii) func_quote_for_eval_unquoted_result
+#      has all characters that are still active within double
+#      quotes backslashified.
+func_quote_for_eval ()
+{
+    $debug_cmd
+
+    func_quote_for_eval_unquoted_result=
+    func_quote_for_eval_result=
+    while test 0 -lt $#; do
+      case $1 in
+        *[\\\`\"\$]*)
+         _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
+        *)
+          _G_unquoted_arg=$1 ;;
+      esac
+      if test -n "$func_quote_for_eval_unquoted_result"; then
+       func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
+      else
+        func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
+      fi
+
+      case $_G_unquoted_arg in
+        # Double-quote args containing shell metacharacters to delay
+        # word splitting, command substitution and variable expansion
+        # for a subsequent eval.
+        # Many Bourne shells cannot handle close brackets correctly
+        # in scan sets, so we specify it separately.
+        *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \  ]*|*]*|"")
+          _G_quoted_arg=\"$_G_unquoted_arg\"
+          ;;
+        *)
+          _G_quoted_arg=$_G_unquoted_arg
+         ;;
+      esac
+
+      if test -n "$func_quote_for_eval_result"; then
+       func_append func_quote_for_eval_result " $_G_quoted_arg"
+      else
+        func_append func_quote_for_eval_result "$_G_quoted_arg"
+      fi
+      shift
+    done
+}
+
+
+# func_quote_for_expand ARG
+# -------------------------
+# Aesthetically quote ARG to be evaled later; same as above,
+# but do not quote variable references.
+func_quote_for_expand ()
+{
+    $debug_cmd
+
+    case $1 in
+      *[\\\`\"]*)
+       _G_arg=`$ECHO "$1" | $SED \
+           -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
+      *)
+        _G_arg=$1 ;;
+    esac
+
+    case $_G_arg in
+      # Double-quote args containing shell metacharacters to delay
+      # word splitting and command substitution for a subsequent eval.
+      # Many Bourne shells cannot handle close brackets correctly
+      # in scan sets, so we specify it separately.
+      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \    ]*|*]*|"")
+        _G_arg=\"$_G_arg\"
+        ;;
+    esac
+
+    func_quote_for_expand_result=$_G_arg
+}
+
+
+# func_stripname PREFIX SUFFIX NAME
+# ---------------------------------
+# strip PREFIX and SUFFIX from NAME, and store in func_stripname_result.
+# PREFIX and SUFFIX must not contain globbing or regex special
+# characters, hashes, percent signs, but SUFFIX may contain a leading
+# dot (in which case that matches only a dot).
+if test yes = "$_G_HAVE_XSI_OPS"; then
+  eval 'func_stripname ()
+  {
+    $debug_cmd
+
+    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
+    # positional parameters, so assign one to ordinary variable first.
+    func_stripname_result=$3
+    func_stripname_result=${func_stripname_result#"$1"}
+    func_stripname_result=${func_stripname_result%"$2"}
+  }'
+else
+  func_stripname ()
+  {
+    $debug_cmd
+
+    case $2 in
+      .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
+      *)  func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
+    esac
+  }
+fi
+
+
+# func_show_eval CMD [FAIL_EXP]
+# -----------------------------
+# Unless opt_quiet is true, then output CMD.  Then, if opt_dryrun is
+# not true, evaluate CMD.  If the evaluation of CMD fails, and FAIL_EXP
+# is given, then evaluate it.
+func_show_eval ()
+{
+    $debug_cmd
+
+    _G_cmd=$1
+    _G_fail_exp=${2-':'}
+
+    func_quote_for_expand "$_G_cmd"
+    eval "func_notquiet $func_quote_for_expand_result"
+
+    $opt_dry_run || {
+      eval "$_G_cmd"
+      _G_status=$?
+      if test 0 -ne "$_G_status"; then
+       eval "(exit $_G_status); $_G_fail_exp"
+      fi
+    }
+}
+
+
+# func_show_eval_locale CMD [FAIL_EXP]
+# ------------------------------------
+# Unless opt_quiet is true, then output CMD.  Then, if opt_dryrun is
+# not true, evaluate CMD.  If the evaluation of CMD fails, and FAIL_EXP
+# is given, then evaluate it.  Use the saved locale for evaluation.
+func_show_eval_locale ()
+{
+    $debug_cmd
+
+    _G_cmd=$1
+    _G_fail_exp=${2-':'}
+
+    $opt_quiet || {
+      func_quote_for_expand "$_G_cmd"
+      eval "func_echo $func_quote_for_expand_result"
+    }
+
+    $opt_dry_run || {
+      eval "$_G_user_locale
+           $_G_cmd"
+      _G_status=$?
+      eval "$_G_safe_locale"
+      if test 0 -ne "$_G_status"; then
+       eval "(exit $_G_status); $_G_fail_exp"
+      fi
+    }
+}
+
+
+# func_tr_sh
+# ----------
+# Turn $1 into a string suitable for a shell variable name.
+# Result is stored in $func_tr_sh_result.  All characters
+# not in the set a-zA-Z0-9_ are replaced with '_'. Further,
+# if $1 begins with a digit, a '_' is prepended as well.
+func_tr_sh ()
+{
+    $debug_cmd
+
+    case $1 in
+    [0-9]* | *[!a-zA-Z0-9_]*)
+      func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
+      ;;
+    * )
+      func_tr_sh_result=$1
+      ;;
+    esac
+}
+
+
+# func_verbose ARG...
+# -------------------
+# Echo program name prefixed message in verbose mode only.
+func_verbose ()
+{
+    $debug_cmd
+
+    $opt_verbose && func_echo "$*"
+
+    :
+}
+
+
+# func_warn_and_continue ARG...
+# -----------------------------
+# Echo program name prefixed warning message to standard error.
+func_warn_and_continue ()
+{
+    $debug_cmd
+
+    $require_term_colors
+
+    func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2
+}
+
+
+# func_warning CATEGORY ARG...
+# ----------------------------
+# Echo program name prefixed warning message to standard error. Warning
+# messages can be filtered according to CATEGORY, where this function
+# elides messages where CATEGORY is not listed in the global variable
+# 'opt_warning_types'.
+func_warning ()
+{
+    $debug_cmd
+
+    # CATEGORY must be in the warning_categories list!
+    case " $warning_categories " in
+      *" $1 "*) ;;
+      *) func_internal_error "invalid warning category '$1'" ;;
+    esac
+
+    _G_category=$1
+    shift
+
+    case " $opt_warning_types " in
+      *" $_G_category "*) $warning_func ${1+"$@"} ;;
+    esac
+}
+
+
+# func_sort_ver VER1 VER2
+# -----------------------
+# 'sort -V' is not generally available.
+# Note this deviates from the version comparison in automake
+# in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
+# but this should suffice as we won't be specifying old
+# version formats or redundant trailing .0 in bootstrap.conf.
+# If we did want full compatibility then we should probably
+# use m4_version_compare from autoconf.
+func_sort_ver ()
+{
+    $debug_cmd
+
+    ver1=$1
+    ver2=$2
+
+    # Split on '.' and compare each component.
+    i=1
+    while :; do
+      p1=`echo "$ver1" |cut -d. -f$i`
+      p2=`echo "$ver2" |cut -d. -f$i`
+      if test ! "$p1"; then
+        echo "$1 $2"
+        break
+      elif test ! "$p2"; then
+        echo "$2 $1"
+        break
+      elif test ! "$p1" = "$p2"; then
+        if test "$p1" -gt "$p2" 2>/dev/null; then # numeric comparison
+          echo "$2 $1"
+        elif test "$p2" -gt "$p1" 2>/dev/null; then # numeric comparison
+          echo "$1 $2"
+        else # numeric, then lexicographic comparison
+          lp=`printf "$p1\n$p2\n" |sort -n |tail -n1`
+          if test "$lp" = "$p2"; then
+            echo "$1 $2"
+          else
+            echo "$2 $1"
+          fi
+        fi
+        break
+      fi
+      i=`expr $i + 1`
+    done
+}
+
+
+# Local variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
+# time-stamp-time-zone: "UTC"
+# End:
+#! /bin/sh
+
+# Set a version string for this script.
+scriptversion=2012-10-21.11; # UTC
+
+# A portable, pluggable option parser for Bourne shell.
+# Written by Gary V. Vaughan, 2010
+
+# Copyright (C) 2010-2013 Free Software Foundation, Inc.
+# This is free software; see the source for copying conditions.  There is NO
+# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+# Please report bugs or propose patches to gary@gnu.org.
+
+
+## ------ ##
+## Usage. ##
+## ------ ##
+
+# This file is a library for parsing options in your shell scripts along
+# with assorted other useful supporting features that you can make use
+# of too.
+#
+# For the simplest scripts you might need only:
+#
+#   #!/bin/sh
+#   . relative/path/to/funclib.sh
+#   . relative/path/to/options-parser
+#   scriptversion=1.0
+#   func_options ${1+"$@"}
+#   eval set dummy "$func_options_result"; shift
+#   ...rest of your script...
+#
+# In order for the '--version' option to work, you will need to have a
+# suitably formatted comment like the one at the top of this file
+# starting with '# Written by ' and ending with '# warranty; '.
+#
+# For '-h' and '--help' to work, you will also need a one line
+# description of your script's purpose in a comment directly above the
+# '# Written by ' line, like the one at the top of this file.
+#
+# The default options also support '--debug', which will turn on shell
+# execution tracing (see the comment above debug_cmd below for another
+# use), and '--verbose' and the func_verbose function to allow your script
+# to display verbose messages only when your user has specified
+# '--verbose'.
+#
+# After sourcing this file, you can plug processing for additional
+# options by amending the variables from the 'Configuration' section
+# below, and following the instructions in the 'Option parsing'
+# section further down.
+
+## -------------- ##
+## Configuration. ##
+## -------------- ##
+
+# You should override these variables in your script after sourcing this
+# file so that they reflect the customisations you have added to the
+# option parser.
+
+# The usage line for option parsing errors and the start of '-h' and
+# '--help' output messages. You can embed shell variables for delayed
+# expansion at the time the message is displayed, but you will need to
+# quote other shell meta-characters carefully to prevent them being
+# expanded when the contents are evaled.
+usage='$progpath [OPTION]...'
+
+# Short help message in response to '-h' and '--help'.  Add to this or
+# override it after sourcing this library to reflect the full set of
+# options your script accepts.
+usage_message="\
+       --debug        enable verbose shell tracing
+   -W, --warnings=CATEGORY
+                      report the warnings falling in CATEGORY [all]
+   -v, --verbose      verbosely report processing
+       --version      print version information and exit
+   -h, --help         print short or long help message and exit
+"
+
+# Additional text appended to 'usage_message' in response to '--help'.
+long_help_message="
+Warning categories include:
+       'all'          show all warnings
+       'none'         turn off all the warnings
+       'error'        warnings are treated as fatal errors"
+
+# Help message printed before fatal option parsing errors.
+fatal_help="Try '\$progname --help' for more information."
+
+
+
+## ------------------------- ##
+## Hook function management. ##
+## ------------------------- ##
+
+# This section contains functions for adding, removing, and running hooks
+# to the main code.  A hook is just a named list of of function, that can
+# be run in order later on.
+
+# func_hookable FUNC_NAME
+# -----------------------
+# Declare that FUNC_NAME will run hooks added with
+# 'func_add_hook FUNC_NAME ...'.
+func_hookable ()
+{
+    $debug_cmd
+
+    func_append hookable_fns " $1"
+}
+
+
+# func_add_hook FUNC_NAME HOOK_FUNC
+# ---------------------------------
+# Request that FUNC_NAME call HOOK_FUNC before it returns.  FUNC_NAME must
+# first have been declared "hookable" by a call to 'func_hookable'.
+func_add_hook ()
+{
+    $debug_cmd
+
+    case " $hookable_fns " in
+      *" $1 "*) ;;
+      *) func_fatal_error "'$1' does not accept hook functions." ;;
+    esac
+
+    eval func_append ${1}_hooks '" $2"'
+}
+
+
+# func_remove_hook FUNC_NAME HOOK_FUNC
+# ------------------------------------
+# Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
+func_remove_hook ()
+{
+    $debug_cmd
+
+    eval ${1}_hooks='`$bs_echo "\$'$1'_hooks" |$SED "s| '$2'||"`'
+}
+
+
+# func_run_hooks FUNC_NAME [ARG]...
+# ---------------------------------
+# Run all hook functions registered to FUNC_NAME.
+# It is assumed that the list of hook functions contains nothing more
+# than a whitespace-delimited list of legal shell function names, and
+# no effort is wasted trying to catch shell meta-characters or preserve
+# whitespace.
+func_run_hooks ()
+{
+    $debug_cmd
+
+    case " $hookable_fns " in
+      *" $1 "*) ;;
+      *) func_fatal_error "'$1' does not support hook funcions.n" ;;
+    esac
+
+    eval _G_hook_fns=\$$1_hooks; shift
+
+    for _G_hook in $_G_hook_fns; do
+      eval $_G_hook '"$@"'
+
+      # store returned options list back into positional
+      # parameters for next 'cmd' execution.
+      eval _G_hook_result=\$${_G_hook}_result
+      eval set dummy "$_G_hook_result"; shift
+    done
+
+    func_quote_for_eval ${1+"$@"}
+    func_run_hooks_result=$func_quote_for_eval_result
+}
+
+
+
+## --------------- ##
+## Option parsing. ##
+## --------------- ##
+
+# In order to add your own option parsing hooks, you must accept the
+# full positional parameter list in your hook function, remove any
+# options that you action, and then pass back the remaining unprocessed
+# options in '<hooked_function_name>_result', escaped suitably for
+# 'eval'.  Like this:
+#
+#    my_options_prep ()
+#    {
+#        $debug_cmd
+#
+#        # Extend the existing usage message.
+#        usage_message=$usage_message'
+#      -s, --silent       don'\''t print informational messages
+#    '
+#
+#        func_quote_for_eval ${1+"$@"}
+#        my_options_prep_result=$func_quote_for_eval_result
+#    }
+#    func_add_hook func_options_prep my_options_prep
+#
+#
+#    my_silent_option ()
+#    {
+#        $debug_cmd
+#
+#        # Note that for efficiency, we parse as many options as we can
+#        # recognise in a loop before passing the remainder back to the
+#        # caller on the first unrecognised argument we encounter.
+#        while test $# -gt 0; do
+#          opt=$1; shift
+#          case $opt in
+#            --silent|-s) opt_silent=: ;;
+#            # Separate non-argument short options:
+#            -s*)         func_split_short_opt "$_G_opt"
+#                         set dummy "$func_split_short_opt_name" \
+#                             "-$func_split_short_opt_arg" ${1+"$@"}
+#                         shift
+#                         ;;
+#            *)            set dummy "$_G_opt" "$*"; shift; break ;;
+#          esac
+#        done
+#
+#        func_quote_for_eval ${1+"$@"}
+#        my_silent_option_result=$func_quote_for_eval_result
+#    }
+#    func_add_hook func_parse_options my_silent_option
+#
+#
+#    my_option_validation ()
+#    {
+#        $debug_cmd
+#
+#        $opt_silent && $opt_verbose && func_fatal_help "\
+#    '--silent' and '--verbose' options are mutually exclusive."
+#
+#        func_quote_for_eval ${1+"$@"}
+#        my_option_validation_result=$func_quote_for_eval_result
+#    }
+#    func_add_hook func_validate_options my_option_validation
+#
+# You'll alse need to manually amend $usage_message to reflect the extra
+# options you parse.  It's preferable to append if you can, so that
+# multiple option parsing hooks can be added safely.
+
+
+# func_options [ARG]...
+# ---------------------
+# All the functions called inside func_options are hookable. See the
+# individual implementations for details.
+func_hookable func_options
+func_options ()
+{
+    $debug_cmd
+
+    func_options_prep ${1+"$@"}
+    eval func_parse_options \
+        ${func_options_prep_result+"$func_options_prep_result"}
+    eval func_validate_options \
+        ${func_parse_options_result+"$func_parse_options_result"}
+
+    eval func_run_hooks func_options \
+        ${func_validate_options_result+"$func_validate_options_result"}
+
+    # save modified positional parameters for caller
+    func_options_result=$func_run_hooks_result
+}
+
+
+# func_options_prep [ARG]...
+# --------------------------
+# All initialisations required before starting the option parse loop.
+# Note that when calling hook functions, we pass through the list of
+# positional parameters.  If a hook function modifies that list, and
+# needs to propogate that back to rest of this script, then the complete
+# modified list must be put in 'func_run_hooks_result' before
+# returning.
+func_hookable func_options_prep
+func_options_prep ()
+{
+    $debug_cmd
+
+    # Option defaults:
+    opt_verbose=false
+    opt_warning_types=
+
+    func_run_hooks func_options_prep ${1+"$@"}
+
+    # save modified positional parameters for caller
+    func_options_prep_result=$func_run_hooks_result
+}
+
+
+# func_parse_options [ARG]...
+# ---------------------------
+# The main option parsing loop.
+func_hookable func_parse_options
+func_parse_options ()
+{
+    $debug_cmd
+
+    func_parse_options_result=
+
+    # this just eases exit handling
+    while test $# -gt 0; do
+      # Defer to hook functions for initial option parsing, so they
+      # get priority in the event of reusing an option name.
+      func_run_hooks func_parse_options ${1+"$@"}
+
+      # Adjust func_parse_options positional parameters to match
+      eval set dummy "$func_run_hooks_result"; shift
+
+      # Break out of the loop if we already parsed every option.
+      test $# -gt 0 || break
+
+      _G_opt=$1
+      shift
+      case $_G_opt in
+        --debug|-x)   debug_cmd='set -x'
+                      func_echo "enabling shell trace mode"
+                      $debug_cmd
+                      ;;
+
+        --no-warnings|--no-warning|--no-warn)
+                      set dummy --warnings none ${1+"$@"}
+                      shift
+                     ;;
+
+        --warnings|--warning|-W)
+                      test $# = 0 && func_missing_arg $_G_opt && break
+                      case " $warning_categories $1" in
+                        *" $1 "*)
+                          # trailing space prevents matching last $1 above
+                          func_append_uniq opt_warning_types " $1"
+                          ;;
+                        *all)
+                          opt_warning_types=$warning_categories
+                          ;;
+                        *none)
+                          opt_warning_types=none
+                          warning_func=:
+                          ;;
+                        *error)
+                          opt_warning_types=$warning_categories
+                          warning_func=func_fatal_error
+                          ;;
+                        *)
+                          func_fatal_error \
+                             "unsupported warning category: '$1'"
+                          ;;
+                      esac
+                      shift
+                      ;;
+
+        --verbose|-v) opt_verbose=: ;;
+        --version)    func_version ;;
+        -\?|-h)       func_usage ;;
+        --help)       func_help ;;
+
+       # Separate optargs to long options (plugins may need this):
+       --*=*)        func_split_equals "$_G_opt"
+                     set dummy "$func_split_equals_lhs" \
+                          "$func_split_equals_rhs" ${1+"$@"}
+                      shift
+                      ;;
+
+       # Separate optargs to short options:
+        -W*)
+                      func_split_short_opt "$_G_opt"
+                      set dummy "$func_split_short_opt_name" \
+                          "$func_split_short_opt_arg" ${1+"$@"}
+                      shift
+                      ;;
+
+        # Separate non-argument short options:
+        -\?*|-h*|-v*|-x*)
+                      func_split_short_opt "$_G_opt"
+                      set dummy "$func_split_short_opt_name" \
+                          "-$func_split_short_opt_arg" ${1+"$@"}
+                      shift
+                      ;;
+
+        --)           break ;;
+        -*)           func_fatal_help "unrecognised option: '$_G_opt'" ;;
+        *)            set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
+      esac
+    done
+
+    # save modified positional parameters for caller
+    func_quote_for_eval ${1+"$@"}
+    func_parse_options_result=$func_quote_for_eval_result
+}
+
+
+# func_validate_options [ARG]...
+# ------------------------------
+# Perform any sanity checks on option settings and/or unconsumed
+# arguments.
+func_hookable func_validate_options
+func_validate_options ()
+{
+    $debug_cmd
+
+    # Display all warnings if -W was not given.
+    test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
+
+    func_run_hooks func_validate_options ${1+"$@"}
+
+    # Bail if the options were screwed!
+    $exit_cmd $EXIT_FAILURE
+
+    # save modified positional parameters for caller
+    func_validate_options_result=$func_run_hooks_result
+}
+
+
+
+## ------------------##
+## Helper functions. ##
+## ------------------##
+
+# This section contains the helper functions used by the rest of the
+# hookable option parser framework in ascii-betical order.
+
+
+# func_fatal_help ARG...
+# ----------------------
+# Echo program name prefixed message to standard error, followed by
+# a help hint, and exit.
+func_fatal_help ()
+{
+    $debug_cmd
+
+    eval \$bs_echo \""Usage: $usage"\"
+    eval \$bs_echo \""$fatal_help"\"
+    func_error ${1+"$@"}
+    exit $EXIT_FAILURE
+}
+
+
+# func_help
+# ---------
+# Echo long help message to standard output and exit.
+func_help ()
+{
+    $debug_cmd
+
+    func_usage_message
+    $bs_echo "$long_help_message"
+    exit 0
+}
+
+
+# func_missing_arg ARGNAME
+# ------------------------
+# Echo program name prefixed message to standard error and set global
+# exit_cmd.
+func_missing_arg ()
+{
+    $debug_cmd
+
+    func_error "Missing argument for '$1'."
+    exit_cmd=exit
+}
+
+
+# func_split_equals STRING
+# ------------------------
+# Set func_split_equals_lhs and func_split_equals_rhs shell variables after
+# splitting STRING at the '=' sign.
+test -z "$_G_HAVE_XSI_OPS" \
+    && (eval 'x=a/b/c;
+      test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
+    && _G_HAVE_XSI_OPS=yes
+
+if test yes = "$_G_HAVE_XSI_OPS"
+then
+  # This is an XSI compatible shell, allowing a faster implementation...
+  eval 'func_split_equals ()
+  {
+      $debug_cmd
+
+      func_split_equals_lhs=${1%%=*}
+      func_split_equals_rhs=${1#*=}
+      test "x$func_split_equals_lhs" = "x$1" \
+        && func_split_equals_rhs=
+  }'
+else
+  # ...otherwise fall back to using expr, which is often a shell builtin.
+  func_split_equals ()
+  {
+      $debug_cmd
+
+      func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
+      func_split_equals_rhs=
+      test "x$func_split_equals_lhs" = "x$1" \
+        || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
+  }
+fi #func_split_equals
+
+
+# func_split_short_opt SHORTOPT
+# -----------------------------
+# Set func_split_short_opt_name and func_split_short_opt_arg shell
+# variables after splitting SHORTOPT after the 2nd character.
+if test yes = "$_G_HAVE_XSI_OPS"
+then
+  # This is an XSI compatible shell, allowing a faster implementation...
+  eval 'func_split_short_opt ()
+  {
+      $debug_cmd
+
+      func_split_short_opt_arg=${1#??}
+      func_split_short_opt_name=${1%"$func_split_short_opt_arg"}
+  }'
+else
+  # ...otherwise fall back to using expr, which is often a shell builtin.
+  func_split_short_opt ()
+  {
+      $debug_cmd
+
+      func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
+      func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
+  }
+fi #func_split_short_opt
+
+
+# func_usage
+# ----------
+# Echo short help message to standard output and exit.
+func_usage ()
+{
+    $debug_cmd
+
+    func_usage_message
+    $bs_echo "Run '$progname --help |${PAGER-more}' for full usage"
+    exit 0
+}
+
+
+# func_usage_message
+# ------------------
+# Echo short help message to standard output.
+func_usage_message ()
+{
+    $debug_cmd
+
+    eval \$bs_echo \""Usage: $usage"\"
+    echo
+    $SED -n 's|^# ||
+        /^Written by/{
+          x;p;x
+        }
+       h
+       /^Written by/q' < "$progpath"
+    echo
+    eval \$bs_echo \""$usage_message"\"
+}
+
+
+# func_version
+# ------------
+# Echo version message to standard output and exit.
+func_version ()
+{
+    $debug_cmd
+
+    printf '%s\n' "$progname $scriptversion"
+    $SED -n '/^##/q
+        /(C)/!b go
+        :more
+        /\./!{
+          N
+          s|\n# | |
+          b more
+        }
+        :go
+        /^# Written by /,/# warranty; / {
+          s|^# ||
+          s|^# *$||
+          s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
+          p
+        }
+        /^# Written by / {
+          s|^# ||
+          p
+        }
+        /^warranty; /q' < "$progpath"
+
+    exit $?
+}
+
+
+# Local variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
+# time-stamp-time-zone: "UTC"
+# End:
+
+# Set a version string.
+scriptversion='(GNU libtool) 2.4.2.418'
+
+
+# func_echo ARG...
+# ----------------
+# Libtool also displays the current mode in messages, so override
+# funclib.sh func_echo with this custom definition.
+func_echo ()
+{
+    $debug_cmd
+
+    _G_message=$*
+
+    func_echo_IFS=$IFS
+    IFS=$nl
+    for _G_line in $_G_message; do
+      IFS=$func_echo_IFS
+      $bs_echo "$progname${opt_mode+: $opt_mode}: $_G_line"
+    done
+    IFS=$func_echo_IFS
+}
+
+
+# func_warning ARG...
+# -------------------
+# Libtool warnings are not categorized, so override funclib.sh
+# func_warning with this simpler definition.
+func_warning ()
+{
+    $debug_cmd
+
+    $warning_func ${1+"$@"}
+}
+
+
+## ---------------- ##
+## Options parsing. ##
+## ---------------- ##
+
+# Hook in the functions to make sure our own options are parsed during
+# the option parsing loop.
+
+usage='$progpath [OPTION]... [MODE-ARG]...'
+
+# Short help message in response to '-h'.
+usage_message="Options:
+       --config             show all configuration variables
+       --debug              enable verbose shell tracing
+   -n, --dry-run            display commands without modifying any files
+       --features           display basic configuration information and exit
+       --mode=MODE          use operation mode MODE
+       --no-warnings        equivalent to '-Wnone'
+       --preserve-dup-deps  don't remove duplicate dependency libraries
+       --quiet, --silent    don't print informational messages
+       --tag=TAG            use configuration variables from tag TAG
+   -v, --verbose            print more informational messages than default
+       --version            print version information
+   -W, --warnings=CATEGORY  report the warnings falling in CATEGORY [all]
+   -h, --help, --help-all   print short, long, or detailed help message
+"
+
+# Additional text appended to 'usage_message' in response to '--help'.
+long_help_message=$long_help_message"
+
+MODE must be one of the following:
+
+       clean           remove files from the build directory
+       compile         compile a source file into a libtool object
+       execute         automatically set library path, then run a program
+       finish          complete the installation of libtool libraries
+       install         install libraries or executables
+       link            create a library or an executable
+       uninstall       remove libraries from an installed directory
+
+MODE-ARGS vary depending on the MODE.  When passed as first option,
+'--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
+Try '$progname --help --mode=MODE' for a more detailed description of MODE.
+
+When reporting a bug, please describe a test case to reproduce it and
+include the following information:
+
+       host-triplet:   $host
+       shell:          $SHELL
+       compiler:       $LTCC
+       compiler flags: $LTCFLAGS
+       linker:         $LD (gnu? $with_gnu_ld)
+       version:        $progname (GNU libtool) 2.4.2.418
+       automake:       `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
+       autoconf:       `($AUTOCONF --version) 2>/dev/null |$SED 1q`
+
+Report bugs to <bug-libtool@gnu.org>.
+GNU libtool home page: <http://www.gnu.org/software/libtool/>.
+General help using GNU software: <http://www.gnu.org/gethelp/>."
+
+
+# func_lo2o OBJECT-NAME
+# ---------------------
+# Transform OBJECT-NAME from a '.lo' suffix to the platform specific
+# object suffix.
+
+lo2o=s/\\.lo\$/.$objext/
+o2lo=s/\\.$objext\$/.lo/
+
+if test yes = "$_G_HAVE_XSI_OPS"; then
+  eval 'func_lo2o ()
+  {
+    case $1 in
+      *.lo) func_lo2o_result=${1%.lo}.$objext ;;
+      *   ) func_lo2o_result=$1               ;;
+    esac
+  }'
+
+  # func_xform LIBOBJ-OR-SOURCE
+  # ---------------------------
+  # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
+  # suffix to a '.lo' libtool-object suffix.
+  eval 'func_xform ()
+  {
+    func_xform_result=${1%.*}.lo
+  }'
+else
+  # ...otherwise fall back to using sed.
+  func_lo2o ()
+  {
+    func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"`
+  }
+
+  func_xform ()
+  {
+    func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'`
+  }
+fi
+
+
+# func_fatal_configuration ARG...
+# -------------------------------
+# Echo program name prefixed message to standard error, followed by
+# a configuration failure hint, and exit.
+func_fatal_configuration ()
+{
+    func__fatal_error ${1+"$@"} \
+      "See the $PACKAGE documentation for more information." \
+      "Fatal configuration error."
+}
+
+
+# func_config
+# -----------
+# Display the configuration for all the tags in this script.
+func_config ()
+{
+    re_begincf='^# ### BEGIN LIBTOOL'
+    re_endcf='^# ### END LIBTOOL'
+
+    # Default configuration.
+    $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
+
+    # Now print the configurations for the tags.
+    for tagname in $taglist; do
+      $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
+    done
+
+    exit $?
+}
+
+
+# func_features
+# -------------
+# Display the features supported by this script.
+func_features ()
+{
+    echo "host: $host"
+    if test yes = "$build_libtool_libs"; then
+      echo "enable shared libraries"
+    else
+      echo "disable shared libraries"
+    fi
+    if test yes = "$build_old_libs"; then
+      echo "enable static libraries"
+    else
+      echo "disable static libraries"
+    fi
+
+    exit $?
+}
+
+
+# func_enable_tag TAGNAME
+# -----------------------
+# Verify that TAGNAME is valid, and either flag an error and exit, or
+# enable the TAGNAME tag.  We also add TAGNAME to the global $taglist
+# variable here.
+func_enable_tag ()
+{
+    # Global variable:
+    tagname=$1
+
+    re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
+    re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
+    sed_extractcf=/$re_begincf/,/$re_endcf/p
+
+    # Validate tagname.
+    case $tagname in
+      *[!-_A-Za-z0-9,/]*)
+        func_fatal_error "invalid tag name: $tagname"
+        ;;
+    esac
+
+    # Don't test for the "default" C tag, as we know it's
+    # there but not specially marked.
+    case $tagname in
+        CC) ;;
+    *)
+        if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
+         taglist="$taglist $tagname"
+
+         # Evaluate the configuration.  Be careful to quote the path
+         # and the sed script, to avoid splitting on whitespace, but
+         # also don't use non-portable quotes within backquotes within
+         # quotes we have to do it in 2 steps:
+         extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
+         eval "$extractedcf"
+        else
+         func_error "ignoring unknown tag $tagname"
+        fi
+        ;;
+    esac
+}
+
+
+# func_check_version_match
+# ------------------------
+# Ensure that we are using m4 macros, and libtool script from the same
+# release of libtool.
+func_check_version_match ()
+{
+    if test "$package_revision" != "$macro_revision"; then
+      if test "$VERSION" != "$macro_version"; then
+        if test -z "$macro_version"; then
+          cat >&2 <<_LT_EOF
+$progname: Version mismatch error.  This is $PACKAGE $VERSION, but the
+$progname: definition of this LT_INIT comes from an older release.
+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
+$progname: and run autoconf again.
+_LT_EOF
+        else
+          cat >&2 <<_LT_EOF
+$progname: Version mismatch error.  This is $PACKAGE $VERSION, but the
+$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
+$progname: and run autoconf again.
+_LT_EOF
+        fi
+      else
+        cat >&2 <<_LT_EOF
+$progname: Version mismatch error.  This is $PACKAGE $VERSION, revision $package_revision,
+$progname: but the definition of this LT_INIT comes from revision $macro_revision.
+$progname: You should recreate aclocal.m4 with macros from revision $package_revision
+$progname: of $PACKAGE $VERSION and run autoconf again.
+_LT_EOF
+      fi
+
+      exit $EXIT_MISMATCH
+    fi
+}
+
+
+# libtool_options_prep [ARG]...
+# -----------------------------
+# Preparation for options parsed by libtool.
+libtool_options_prep ()
+{
+    $debug_mode
+
+    # Option defaults:
+    opt_config=false
+    opt_dlopen=
+    opt_dry_run=false
+    opt_help=false
+    opt_mode=
+    opt_preserve_dup_deps=false
+    opt_quiet=false
+
+    nonopt=
+    preserve_args=
+
+    # Shorthand for --mode=foo, only valid as the first argument
+    case $1 in
+    clean|clea|cle|cl)
+      shift; set dummy --mode clean ${1+"$@"}; shift
+      ;;
+    compile|compil|compi|comp|com|co|c)
+      shift; set dummy --mode compile ${1+"$@"}; shift
+      ;;
+    execute|execut|execu|exec|exe|ex|e)
+      shift; set dummy --mode execute ${1+"$@"}; shift
+      ;;
+    finish|finis|fini|fin|fi|f)
+      shift; set dummy --mode finish ${1+"$@"}; shift
+      ;;
+    install|instal|insta|inst|ins|in|i)
+      shift; set dummy --mode install ${1+"$@"}; shift
+      ;;
+    link|lin|li|l)
+      shift; set dummy --mode link ${1+"$@"}; shift
+      ;;
+    uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
+      shift; set dummy --mode uninstall ${1+"$@"}; shift
+      ;;
+    esac
+
+    # Pass back the list of options.
+    func_quote_for_eval ${1+"$@"}
+    libtool_options_prep_result=$func_quote_for_eval_result
+}
+func_add_hook func_options_prep libtool_options_prep
+
+
+# libtool_parse_options [ARG]...
+# ---------------------------------
+# Provide handling for libtool specific options.
+libtool_parse_options ()
+{
+    $debug_cmd
+
+    # Perform our own loop to consume as many options as possible in
+    # each iteration.
+    while test $# -gt 0; do
+      _G_opt=$1
+      shift
+      case $_G_opt in
+        --dry-run|--dryrun|-n)
+                        opt_dry_run=:
+                        ;;
+
+        --config)       func_config ;;
+
+        --dlopen|-dlopen)
+                        opt_dlopen="${opt_dlopen+$opt_dlopen
+}$1"
+                        shift
+                        ;;
+
+        --preserve-dup-deps)
+                        opt_preserve_dup_deps=: ;;
+
+        --features)     func_features ;;
+
+        --finish)       set dummy --mode finish ${1+"$@"}; shift ;;
+
+        --help)         opt_help=: ;;
+
+        --help-all)     opt_help=': help-all' ;;
+
+        --mode)         test $# = 0 && func_missing_arg $_G_opt && break
+                        opt_mode=$1
+                        case $1 in
+                          # Valid mode arguments:
+                          clean|compile|execute|finish|install|link|relink|uninstall) ;;
+
+                          # Catch anything else as an error
+                          *) func_error "invalid argument for $_G_opt"
+                             exit_cmd=exit
+                             break
+                             ;;
+                        esac
+                        shift
+                        ;;
+
+        --no-silent|--no-quiet)
+                        opt_quiet=false
+                        func_append preserve_args " $_G_opt"
+                        ;;
+
+        --no-warnings|--no-warning|--no-warn)
+                        opt_warning=false
+                        func_append preserve_args " $_G_opt"
+                        ;;
+
+        --no-verbose)
+                        opt_verbose=false
+                        func_append preserve_args " $_G_opt"
+                        ;;
+
+        --silent|--quiet)
+                        opt_quiet=:
+                        opt_verbose=false
+                        func_append preserve_args " $_G_opt"
+                        ;;
+
+        --tag)          test $# = 0 && func_missing_arg $_G_opt && break
+                        opt_tag=$1
+                        func_append preserve_args " $_G_opt $1"
+                        func_enable_tag "$1"
+                        shift
+                        ;;
+
+        --verbose|-v)   opt_quiet=false
+                        opt_verbose=:
+                        func_append preserve_args " $_G_opt"
+                        ;;
+
+       # An option not handled by this hook function:
+        *)             set dummy "$_G_opt" ${1+"$@"};  shift; break  ;;
+      esac
+    done
+
+
+    # save modified positional parameters for caller
+    func_quote_for_eval ${1+"$@"}
+    libtool_parse_options_result=$func_quote_for_eval_result
+}
+func_add_hook func_parse_options libtool_parse_options
+
+
+
+# libtool_validate_options [ARG]...
+# ---------------------------------
+# Perform any sanity checks on option settings and/or unconsumed
+# arguments.
+libtool_validate_options ()
+{
+    # save first non-option argument
+    if test 0 -lt $#; then
+      nonopt=$1
+      shift
+    fi
+
+    # preserve --debug
+    test : = "$debug_cmd" || func_append preserve_args " --debug"
+
+    case $host in
+      *cygwin* | *mingw* | *pw32* | *cegcc*)
+        # don't eliminate duplications in $postdeps and $predeps
+        opt_duplicate_compiler_generated_deps=:
+        ;;
+      *)
+        opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
+        ;;
+    esac
+
+    $opt_help || {
+      # Sanity checks first:
+      func_check_version_match
+
+      test yes != "$build_libtool_libs" \
+        && test yes != "$build_old_libs" \
+        && func_fatal_configuration "not configured to build any kind of library"
+
+      # Darwin sucks
+      eval std_shrext=\"$shrext_cmds\"
+
+      # Only execute mode is allowed to have -dlopen flags.
+      if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
+        func_error "unrecognized option '-dlopen'"
+        $ECHO "$help" 1>&2
+        exit $EXIT_FAILURE
+      fi
+
+      # Change the help message to a mode-specific one.
+      generic_help=$help
+      help="Try '$progname --help --mode=$opt_mode' for more information."
+    }
+
+    # Pass back the unparsed argument list
+    func_quote_for_eval ${1+"$@"}
+    libtool_validate_options_result=$func_quote_for_eval_result
+}
+func_add_hook func_validate_options libtool_validate_options
+
+
+# Process options as early as possible so that --help and --version
+# can return quickly.
+func_options ${1+"$@"}
+eval set dummy "$func_options_result"; shift
+
+
+
+## ----------- ##
+##    Main.    ##
+## ----------- ##
+
+magic='%%%MAGIC variable%%%'
+magic_exe='%%%MAGIC EXE variable%%%'
+
+# Global variables.
+extracted_archives=
+extracted_serial=0
+
+# If this variable is set in any of the actions, the command in it
+# will be execed at the end.  This prevents here-documents from being
+# left over by shells.
+exec_cmd=
+
+
+# A function that is used when there is no print builtin or printf.
+func_fallback_echo ()
+{
+  eval 'cat <<_LTECHO_EOF
+$1
+_LTECHO_EOF'
+}
+
+# func_lalib_p file
+# True iff FILE is a libtool '.la' library or '.lo' object file.
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_lalib_p ()
+{
+    test -f "$1" &&
+      $SED -e 4q "$1" 2>/dev/null \
+        | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
+}
+
+# func_lalib_unsafe_p file
+# True iff FILE is a libtool '.la' library or '.lo' object file.
+# This function implements the same check as func_lalib_p without
+# resorting to external programs.  To this end, it redirects stdin and
+# closes it afterwards, without saving the original file descriptor.
+# As a safety measure, use it only where a negative result would be
+# fatal anyway.  Works if 'file' does not exist.
+func_lalib_unsafe_p ()
+{
+    lalib_p=no
+    if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
+       for lalib_p_l in 1 2 3 4
+       do
+           read lalib_p_line
+           case $lalib_p_line in
+               \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
+           esac
+       done
+       exec 0<&5 5<&-
+    fi
+    test yes = "$lalib_p"
+}
+
+# func_ltwrapper_script_p file
+# True iff FILE is a libtool wrapper script
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_script_p ()
+{
+    func_lalib_p "$1"
+}
+
+# func_ltwrapper_executable_p file
+# True iff FILE is a libtool wrapper executable
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_executable_p ()
+{
+    func_ltwrapper_exec_suffix=
+    case $1 in
+    *.exe) ;;
+    *) func_ltwrapper_exec_suffix=.exe ;;
+    esac
+    $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
+}
+
+# func_ltwrapper_scriptname file
+# Assumes file is an ltwrapper_executable
+# uses $file to determine the appropriate filename for a
+# temporary ltwrapper_script.
+func_ltwrapper_scriptname ()
+{
+    func_dirname_and_basename "$1" "" "."
+    func_stripname '' '.exe' "$func_basename_result"
+    func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper
+}
+
+# func_ltwrapper_p file
+# True iff FILE is a libtool wrapper script or wrapper executable
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_p ()
+{
+    func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
+}
+
+
+# func_execute_cmds commands fail_cmd
+# Execute tilde-delimited COMMANDS.
+# If FAIL_CMD is given, eval that upon failure.
+# FAIL_CMD may read-access the current command in variable CMD!
+func_execute_cmds ()
+{
+    $debug_cmd
+
+    save_ifs=$IFS; IFS='~'
+    for cmd in $1; do
+      IFS=$sp$nl
+      eval cmd=\"$cmd\"
+      IFS=$save_ifs
+      func_show_eval "$cmd" "${2-:}"
+    done
+    IFS=$save_ifs
+}
+
+
+# func_source file
+# Source FILE, adding directory component if necessary.
+# Note that it is not necessary on cygwin/mingw to append a dot to
+# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
+# behavior happens only for exec(3), not for open(2)!  Also, sourcing
+# 'FILE.' does not work on cygwin managed mounts.
+func_source ()
+{
+    $debug_cmd
+
+    case $1 in
+    */* | *\\*)        . "$1" ;;
+    *)         . "./$1" ;;
+    esac
+}
+
+
+# func_resolve_sysroot PATH
+# Replace a leading = in PATH with a sysroot.  Store the result into
+# func_resolve_sysroot_result
+func_resolve_sysroot ()
+{
+  func_resolve_sysroot_result=$1
+  case $func_resolve_sysroot_result in
+  =*)
+    func_stripname '=' '' "$func_resolve_sysroot_result"
+    func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
+    ;;
+  esac
+}
+
+# func_replace_sysroot PATH
+# If PATH begins with the sysroot, replace it with = and
+# store the result into func_replace_sysroot_result.
+func_replace_sysroot ()
+{
+  case $lt_sysroot:$1 in
+  ?*:"$lt_sysroot"*)
+    func_stripname "$lt_sysroot" '' "$1"
+    func_replace_sysroot_result='='$func_stripname_result
+    ;;
+  *)
+    # Including no sysroot.
+    func_replace_sysroot_result=$1
+    ;;
+  esac
+}
+
+# func_infer_tag arg
+# Infer tagged configuration to use if any are available and
+# if one wasn't chosen via the "--tag" command line option.
+# Only attempt this if the compiler in the base compile
+# command doesn't match the default compiler.
+# arg is usually of the form 'gcc ...'
+func_infer_tag ()
+{
+    $debug_cmd
+
+    if test -n "$available_tags" && test -z "$tagname"; then
+      CC_quoted=
+      for arg in $CC; do
+       func_append_quoted CC_quoted "$arg"
+      done
+      CC_expanded=`func_echo_all $CC`
+      CC_quoted_expanded=`func_echo_all $CC_quoted`
+      case $@ in
+      # Blanks in the command may have been stripped by the calling shell,
+      # but not from the CC environment variable when configure was run.
+      " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
+      " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
+      # Blanks at the start of $base_compile will cause this to fail
+      # if we don't check for them as well.
+      *)
+       for z in $available_tags; do
+         if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
+           # Evaluate the configuration.
+           eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
+           CC_quoted=
+           for arg in $CC; do
+             # Double-quote args containing other shell metacharacters.
+             func_append_quoted CC_quoted "$arg"
+           done
+           CC_expanded=`func_echo_all $CC`
+           CC_quoted_expanded=`func_echo_all $CC_quoted`
+           case "$@ " in
+           " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
+           " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
+             # The compiler in the base compile command matches
+             # the one in the tagged configuration.
+             # Assume this is the tagged configuration we want.
+             tagname=$z
+             break
+             ;;
+           esac
+         fi
+       done
+       # If $tagname still isn't set, then no tagged configuration
+       # was found and let the user know that the "--tag" command
+       # line option must be used.
+       if test -z "$tagname"; then
+         func_echo "unable to infer tagged configuration"
+         func_fatal_error "specify a tag with '--tag'"
+#      else
+#        func_verbose "using $tagname tagged configuration"
+       fi
+       ;;
+      esac
+    fi
+}
+
+
+
+# func_write_libtool_object output_name pic_name nonpic_name
+# Create a libtool object file (analogous to a ".la" file),
+# but don't create it if we're doing a dry run.
+func_write_libtool_object ()
+{
+    write_libobj=$1
+    if test yes = "$build_libtool_libs"; then
+      write_lobj=\'$2\'
+    else
+      write_lobj=none
+    fi
+
+    if test yes = "$build_old_libs"; then
+      write_oldobj=\'$3\'
+    else
+      write_oldobj=none
+    fi
+
+    $opt_dry_run || {
+      cat >${write_libobj}T <<EOF
+# $write_libobj - a libtool object file
+# Generated by $PROGRAM (GNU $PACKAGE) $VERSION
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object=$write_lobj
+
+# Name of the non-PIC object
+non_pic_object=$write_oldobj
+
+EOF
+      $MV "${write_libobj}T" "$write_libobj"
+    }
+}
+
+
+##################################################
+# FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
+##################################################
+
+# func_convert_core_file_wine_to_w32 ARG
+# Helper function used by file name conversion functions when $build is *nix,
+# and $host is mingw, cygwin, or some other w32 environment. Relies on a
+# correctly configured wine environment available, with the winepath program
+# in $build's $PATH.
+#
+# ARG is the $build file name to be converted to w32 format.
+# Result is available in $func_convert_core_file_wine_to_w32_result, and will
+# be empty on error (or when ARG is empty)
+func_convert_core_file_wine_to_w32 ()
+{
+  $debug_cmd
+
+  func_convert_core_file_wine_to_w32_result=$1
+  if test -n "$1"; then
+    # Unfortunately, winepath does not exit with a non-zero error code, so we
+    # are forced to check the contents of stdout. On the other hand, if the
+    # command is not found, the shell will set an exit code of 127 and print
+    # *an error message* to stdout. So we must check for both error code of
+    # zero AND non-empty stdout, which explains the odd construction:
+    func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
+    if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
+      func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
+        $SED -e "$sed_naive_backslashify"`
+    else
+      func_convert_core_file_wine_to_w32_result=
+    fi
+  fi
+}
+# end: func_convert_core_file_wine_to_w32
+
+
+# func_convert_core_path_wine_to_w32 ARG
+# Helper function used by path conversion functions when $build is *nix, and
+# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
+# configured wine environment available, with the winepath program in $build's
+# $PATH. Assumes ARG has no leading or trailing path separator characters.
+#
+# ARG is path to be converted from $build format to win32.
+# Result is available in $func_convert_core_path_wine_to_w32_result.
+# Unconvertible file (directory) names in ARG are skipped; if no directory names
+# are convertible, then the result may be empty.
+func_convert_core_path_wine_to_w32 ()
+{
+  $debug_cmd
+
+  # unfortunately, winepath doesn't convert paths, only file names
+  func_convert_core_path_wine_to_w32_result=
+  if test -n "$1"; then
+    oldIFS=$IFS
+    IFS=:
+    for func_convert_core_path_wine_to_w32_f in $1; do
+      IFS=$oldIFS
+      func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
+      if test -n "$func_convert_core_file_wine_to_w32_result"; then
+        if test -z "$func_convert_core_path_wine_to_w32_result"; then
+          func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result
+        else
+          func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
+        fi
+      fi
+    done
+    IFS=$oldIFS
+  fi
+}
+# end: func_convert_core_path_wine_to_w32
+
+
+# func_cygpath ARGS...
+# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
+# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
+# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
+# (2), returns the Cygwin file name or path in func_cygpath_result (input
+# file name or path is assumed to be in w32 format, as previously converted
+# from $build's *nix or MSYS format). In case (3), returns the w32 file name
+# or path in func_cygpath_result (input file name or path is assumed to be in
+# Cygwin format). Returns an empty string on error.
+#
+# ARGS are passed to cygpath, with the last one being the file name or path to
+# be converted.
+#
+# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
+# environment variable; do not put it in $PATH.
+func_cygpath ()
+{
+  $debug_cmd
+
+  if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
+    func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
+    if test "$?" -ne 0; then
+      # on failure, ensure result is empty
+      func_cygpath_result=
+    fi
+  else
+    func_cygpath_result=
+    func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
+  fi
+}
+#end: func_cygpath
+
+
+# func_convert_core_msys_to_w32 ARG
+# Convert file name or path ARG from MSYS format to w32 format.  Return
+# result in func_convert_core_msys_to_w32_result.
+func_convert_core_msys_to_w32 ()
+{
+  $debug_cmd
+
+  # awkward: cmd appends spaces to result
+  func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
+    $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
+}
+#end: func_convert_core_msys_to_w32
+
+
+# func_convert_file_check ARG1 ARG2
+# Verify that ARG1 (a file name in $build format) was converted to $host
+# format in ARG2. Otherwise, emit an error message, but continue (resetting
+# func_to_host_file_result to ARG1).
+func_convert_file_check ()
+{
+  $debug_cmd
+
+  if test -z "$2" && test -n "$1"; then
+    func_error "Could not determine host file name corresponding to"
+    func_error "  '$1'"
+    func_error "Continuing, but uninstalled executables may not work."
+    # Fallback:
+    func_to_host_file_result=$1
+  fi
+}
+# end func_convert_file_check
+
+
+# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
+# Verify that FROM_PATH (a path in $build format) was converted to $host
+# format in TO_PATH. Otherwise, emit an error message, but continue, resetting
+# func_to_host_file_result to a simplistic fallback value (see below).
+func_convert_path_check ()
+{
+  $debug_cmd
+
+  if test -z "$4" && test -n "$3"; then
+    func_error "Could not determine the host path corresponding to"
+    func_error "  '$3'"
+    func_error "Continuing, but uninstalled executables may not work."
+    # Fallback.  This is a deliberately simplistic "conversion" and
+    # should not be "improved".  See libtool.info.
+    if test "x$1" != "x$2"; then
+      lt_replace_pathsep_chars="s|$1|$2|g"
+      func_to_host_path_result=`echo "$3" |
+        $SED -e "$lt_replace_pathsep_chars"`
+    else
+      func_to_host_path_result=$3
+    fi
+  fi
+}
+# end func_convert_path_check
+
+
+# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
+# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
+# and appending REPL if ORIG matches BACKPAT.
+func_convert_path_front_back_pathsep ()
+{
+  $debug_cmd
+
+  case $4 in
+  $1 ) func_to_host_path_result=$3$func_to_host_path_result
+    ;;
+  esac
+  case $4 in
+  $2 ) func_append func_to_host_path_result "$3"
+    ;;
+  esac
+}
+# end func_convert_path_front_back_pathsep
+
+
+##################################################
+# $build to $host FILE NAME CONVERSION FUNCTIONS #
+##################################################
+# invoked via '$to_host_file_cmd ARG'
+#
+# In each case, ARG is the path to be converted from $build to $host format.
+# Result will be available in $func_to_host_file_result.
+
+
+# func_to_host_file ARG
+# Converts the file name ARG from $build format to $host format. Return result
+# in func_to_host_file_result.
+func_to_host_file ()
+{
+  $debug_cmd
+
+  $to_host_file_cmd "$1"
+}
+# end func_to_host_file
+
+
+# func_to_tool_file ARG LAZY
+# converts the file name ARG from $build format to toolchain format. Return
+# result in func_to_tool_file_result.  If the conversion in use is listed
+# in (the comma separated) LAZY, no conversion takes place.
+func_to_tool_file ()
+{
+  $debug_cmd
+
+  case ,$2, in
+    *,"$to_tool_file_cmd",*)
+      func_to_tool_file_result=$1
+      ;;
+    *)
+      $to_tool_file_cmd "$1"
+      func_to_tool_file_result=$func_to_host_file_result
+      ;;
+  esac
+}
+# end func_to_tool_file
+
+
+# func_convert_file_noop ARG
+# Copy ARG to func_to_host_file_result.
+func_convert_file_noop ()
+{
+  func_to_host_file_result=$1
+}
+# end func_convert_file_noop
+
+
+# func_convert_file_msys_to_w32 ARG
+# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
+# conversion to w32 is not available inside the cwrapper.  Returns result in
+# func_to_host_file_result.
+func_convert_file_msys_to_w32 ()
+{
+  $debug_cmd
+
+  func_to_host_file_result=$1
+  if test -n "$1"; then
+    func_convert_core_msys_to_w32 "$1"
+    func_to_host_file_result=$func_convert_core_msys_to_w32_result
+  fi
+  func_convert_file_check "$1" "$func_to_host_file_result"
+}
+# end func_convert_file_msys_to_w32
+
+
+# func_convert_file_cygwin_to_w32 ARG
+# Convert file name ARG from Cygwin to w32 format.  Returns result in
+# func_to_host_file_result.
+func_convert_file_cygwin_to_w32 ()
+{
+  $debug_cmd
+
+  func_to_host_file_result=$1
+  if test -n "$1"; then
+    # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
+    # LT_CYGPATH in this case.
+    func_to_host_file_result=`cygpath -m "$1"`
+  fi
+  func_convert_file_check "$1" "$func_to_host_file_result"
+}
+# end func_convert_file_cygwin_to_w32
+
+
+# func_convert_file_nix_to_w32 ARG
+# Convert file name ARG from *nix to w32 format.  Requires a wine environment
+# and a working winepath. Returns result in func_to_host_file_result.
+func_convert_file_nix_to_w32 ()
+{
+  $debug_cmd
+
+  func_to_host_file_result=$1
+  if test -n "$1"; then
+    func_convert_core_file_wine_to_w32 "$1"
+    func_to_host_file_result=$func_convert_core_file_wine_to_w32_result
+  fi
+  func_convert_file_check "$1" "$func_to_host_file_result"
+}
+# end func_convert_file_nix_to_w32
+
+
+# func_convert_file_msys_to_cygwin ARG
+# Convert file name ARG from MSYS to Cygwin format.  Requires LT_CYGPATH set.
+# Returns result in func_to_host_file_result.
+func_convert_file_msys_to_cygwin ()
+{
+  $debug_cmd
+
+  func_to_host_file_result=$1
+  if test -n "$1"; then
+    func_convert_core_msys_to_w32 "$1"
+    func_cygpath -u "$func_convert_core_msys_to_w32_result"
+    func_to_host_file_result=$func_cygpath_result
+  fi
+  func_convert_file_check "$1" "$func_to_host_file_result"
+}
+# end func_convert_file_msys_to_cygwin
+
+
+# func_convert_file_nix_to_cygwin ARG
+# Convert file name ARG from *nix to Cygwin format.  Requires Cygwin installed
+# in a wine environment, working winepath, and LT_CYGPATH set.  Returns result
+# in func_to_host_file_result.
+func_convert_file_nix_to_cygwin ()
+{
+  $debug_cmd
+
+  func_to_host_file_result=$1
+  if test -n "$1"; then
+    # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
+    func_convert_core_file_wine_to_w32 "$1"
+    func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
+    func_to_host_file_result=$func_cygpath_result
+  fi
+  func_convert_file_check "$1" "$func_to_host_file_result"
+}
+# end func_convert_file_nix_to_cygwin
+
+
+#############################################
+# $build to $host PATH CONVERSION FUNCTIONS #
+#############################################
+# invoked via '$to_host_path_cmd ARG'
+#
+# In each case, ARG is the path to be converted from $build to $host format.
+# The result will be available in $func_to_host_path_result.
+#
+# Path separators are also converted from $build format to $host format.  If
+# ARG begins or ends with a path separator character, it is preserved (but
+# converted to $host format) on output.
+#
+# All path conversion functions are named using the following convention:
+#   file name conversion function    : func_convert_file_X_to_Y ()
+#   path conversion function         : func_convert_path_X_to_Y ()
+# where, for any given $build/$host combination the 'X_to_Y' value is the
+# same.  If conversion functions are added for new $build/$host combinations,
+# the two new functions must follow this pattern, or func_init_to_host_path_cmd
+# will break.
+
+
+# func_init_to_host_path_cmd
+# Ensures that function "pointer" variable $to_host_path_cmd is set to the
+# appropriate value, based on the value of $to_host_file_cmd.
+to_host_path_cmd=
+func_init_to_host_path_cmd ()
+{
+  $debug_cmd
+
+  if test -z "$to_host_path_cmd"; then
+    func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
+    to_host_path_cmd=func_convert_path_$func_stripname_result
+  fi
+}
+
+
+# func_to_host_path ARG
+# Converts the path ARG from $build format to $host format. Return result
+# in func_to_host_path_result.
+func_to_host_path ()
+{
+  $debug_cmd
+
+  func_init_to_host_path_cmd
+  $to_host_path_cmd "$1"
+}
+# end func_to_host_path
+
+
+# func_convert_path_noop ARG
+# Copy ARG to func_to_host_path_result.
+func_convert_path_noop ()
+{
+  func_to_host_path_result=$1
+}
+# end func_convert_path_noop
+
+
+# func_convert_path_msys_to_w32 ARG
+# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
+# conversion to w32 is not available inside the cwrapper.  Returns result in
+# func_to_host_path_result.
+func_convert_path_msys_to_w32 ()
+{
+  $debug_cmd
+
+  func_to_host_path_result=$1
+  if test -n "$1"; then
+    # Remove leading and trailing path separator characters from ARG.  MSYS
+    # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
+    # and winepath ignores them completely.
+    func_stripname : : "$1"
+    func_to_host_path_tmp1=$func_stripname_result
+    func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
+    func_to_host_path_result=$func_convert_core_msys_to_w32_result
+    func_convert_path_check : ";" \
+      "$func_to_host_path_tmp1" "$func_to_host_path_result"
+    func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
+  fi
+}
+# end func_convert_path_msys_to_w32
+
+
+# func_convert_path_cygwin_to_w32 ARG
+# Convert path ARG from Cygwin to w32 format.  Returns result in
+# func_to_host_file_result.
+func_convert_path_cygwin_to_w32 ()
+{
+  $debug_cmd
+
+  func_to_host_path_result=$1
+  if test -n "$1"; then
+    # See func_convert_path_msys_to_w32:
+    func_stripname : : "$1"
+    func_to_host_path_tmp1=$func_stripname_result
+    func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
+    func_convert_path_check : ";" \
+      "$func_to_host_path_tmp1" "$func_to_host_path_result"
+    func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
+  fi
+}
+# end func_convert_path_cygwin_to_w32
+
+
+# func_convert_path_nix_to_w32 ARG
+# Convert path ARG from *nix to w32 format.  Requires a wine environment and
+# a working winepath.  Returns result in func_to_host_file_result.
+func_convert_path_nix_to_w32 ()
+{
+  $debug_cmd
+
+  func_to_host_path_result=$1
+  if test -n "$1"; then
+    # See func_convert_path_msys_to_w32:
+    func_stripname : : "$1"
+    func_to_host_path_tmp1=$func_stripname_result
+    func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
+    func_to_host_path_result=$func_convert_core_path_wine_to_w32_result
+    func_convert_path_check : ";" \
+      "$func_to_host_path_tmp1" "$func_to_host_path_result"
+    func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
+  fi
+}
+# end func_convert_path_nix_to_w32
+
+
+# func_convert_path_msys_to_cygwin ARG
+# Convert path ARG from MSYS to Cygwin format.  Requires LT_CYGPATH set.
+# Returns result in func_to_host_file_result.
+func_convert_path_msys_to_cygwin ()
+{
+  $debug_cmd
+
+  func_to_host_path_result=$1
+  if test -n "$1"; then
+    # See func_convert_path_msys_to_w32:
+    func_stripname : : "$1"
+    func_to_host_path_tmp1=$func_stripname_result
+    func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
+    func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
+    func_to_host_path_result=$func_cygpath_result
+    func_convert_path_check : : \
+      "$func_to_host_path_tmp1" "$func_to_host_path_result"
+    func_convert_path_front_back_pathsep ":*" "*:" : "$1"
+  fi
+}
+# end func_convert_path_msys_to_cygwin
+
+
+# func_convert_path_nix_to_cygwin ARG
+# Convert path ARG from *nix to Cygwin format.  Requires Cygwin installed in a
+# a wine environment, working winepath, and LT_CYGPATH set.  Returns result in
+# func_to_host_file_result.
+func_convert_path_nix_to_cygwin ()
+{
+  $debug_cmd
+
+  func_to_host_path_result=$1
+  if test -n "$1"; then
+    # Remove leading and trailing path separator characters from
+    # ARG. msys behavior is inconsistent here, cygpath turns them
+    # into '.;' and ';.', and winepath ignores them completely.
+    func_stripname : : "$1"
+    func_to_host_path_tmp1=$func_stripname_result
+    func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
+    func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
+    func_to_host_path_result=$func_cygpath_result
+    func_convert_path_check : : \
+      "$func_to_host_path_tmp1" "$func_to_host_path_result"
+    func_convert_path_front_back_pathsep ":*" "*:" : "$1"
+  fi
+}
+# end func_convert_path_nix_to_cygwin
+
+
+# func_dll_def_p FILE
+# True iff FILE is a Windows DLL '.def' file.
+# Keep in sync with _LT_DLL_DEF_P in libtool.m4
+func_dll_def_p ()
+{
+  $debug_cmd
+
+  func_dll_def_p_tmp=`$SED -n \
+    -e 's/^[    ]*//' \
+    -e '/^\(;.*\)*$/d' \
+    -e 's/^\(EXPORTS\|LIBRARY\)\([      ].*\)*$/DEF/p' \
+    -e q \
+    "$1"`
+  test DEF = "$func_dll_def_p_tmp"
+}
+
+
+# func_mode_compile arg...
+func_mode_compile ()
+{
+    $debug_cmd
+
+    # Get the compilation command and the source file.
+    base_compile=
+    srcfile=$nonopt  #  always keep a non-empty value in "srcfile"
+    suppress_opt=yes
+    suppress_output=
+    arg_mode=normal
+    libobj=
+    later=
+    pie_flag=
+
+    for arg
+    do
+      case $arg_mode in
+      arg  )
+       # do not "continue".  Instead, add this to base_compile
+       lastarg=$arg
+       arg_mode=normal
+       ;;
+
+      target )
+       libobj=$arg
+       arg_mode=normal
+       continue
+       ;;
+
+      normal )
+       # Accept any command-line options.
+       case $arg in
+       -o)
+         test -n "$libobj" && \
+           func_fatal_error "you cannot specify '-o' more than once"
+         arg_mode=target
+         continue
+         ;;
+
+       -pie | -fpie | -fPIE)
+          func_append pie_flag " $arg"
+         continue
+         ;;
+
+       -shared | -static | -prefer-pic | -prefer-non-pic)
+         func_append later " $arg"
+         continue
+         ;;
+
+       -no-suppress)
+         suppress_opt=no
+         continue
+         ;;
+
+       -Xcompiler)
+         arg_mode=arg  #  the next one goes into the "base_compile" arg list
+         continue      #  The current "srcfile" will either be retained or
+         ;;            #  replaced later.  I would guess that would be a bug.
+
+       -Wc,*)
+         func_stripname '-Wc,' '' "$arg"
+         args=$func_stripname_result
+         lastarg=
+         save_ifs=$IFS; IFS=,
+         for arg in $args; do
+           IFS=$save_ifs
+           func_append_quoted lastarg "$arg"
+         done
+         IFS=$save_ifs
+         func_stripname ' ' '' "$lastarg"
+         lastarg=$func_stripname_result
+
+         # Add the arguments to base_compile.
+         func_append base_compile " $lastarg"
+         continue
+         ;;
+
+       *)
+         # Accept the current argument as the source file.
+         # The previous "srcfile" becomes the current argument.
+         #
+         lastarg=$srcfile
+         srcfile=$arg
+         ;;
+       esac  #  case $arg
+       ;;
+      esac    #  case $arg_mode
+
+      # Aesthetically quote the previous argument.
+      func_append_quoted base_compile "$lastarg"
+    done # for arg
+
+    case $arg_mode in
+    arg)
+      func_fatal_error "you must specify an argument for -Xcompile"
+      ;;
+    target)
+      func_fatal_error "you must specify a target with '-o'"
+      ;;
+    *)
+      # Get the name of the library object.
+      test -z "$libobj" && {
+       func_basename "$srcfile"
+       libobj=$func_basename_result
+      }
+      ;;
+    esac
+
+    # Recognize several different file suffixes.
+    # If the user specifies -o file.o, it is replaced with file.lo
+    case $libobj in
+    *.[cCFSifmso] | \
+    *.ada | *.adb | *.ads | *.asm | \
+    *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
+    *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
+      func_xform "$libobj"
+      libobj=$func_xform_result
+      ;;
+    esac
+
+    case $libobj in
+    *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
+    *)
+      func_fatal_error "cannot determine name of library object from '$libobj'"
+      ;;
+    esac
+
+    func_infer_tag $base_compile
+
+    for arg in $later; do
+      case $arg in
+      -shared)
+       test yes = "$build_libtool_libs" \
+         || func_fatal_configuration "cannot build a shared library"
+       build_old_libs=no
+       continue
+       ;;
+
+      -static)
+       build_libtool_libs=no
+       build_old_libs=yes
+       continue
+       ;;
+
+      -prefer-pic)
+       pic_mode=yes
+       continue
+       ;;
+
+      -prefer-non-pic)
+       pic_mode=no
+       continue
+       ;;
+      esac
+    done
+
+    func_quote_for_eval "$libobj"
+    test "X$libobj" != "X$func_quote_for_eval_result" \
+      && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"'   &()|`$[]' \
+      && func_warning "libobj name '$libobj' may not contain shell special characters."
+    func_dirname_and_basename "$obj" "/" ""
+    objname=$func_basename_result
+    xdir=$func_dirname_result
+    lobj=$xdir$objdir/$objname
+
+    test -z "$base_compile" && \
+      func_fatal_help "you must specify a compilation command"
+
+    # Delete any leftover library objects.
+    if test yes = "$build_old_libs"; then
+      removelist="$obj $lobj $libobj ${libobj}T"
+    else
+      removelist="$lobj $libobj ${libobj}T"
+    fi
+
+    # On Cygwin there's no "real" PIC flag so we must build both object types
+    case $host_os in
+    cygwin* | mingw* | pw32* | os2* | cegcc*)
+      pic_mode=default
+      ;;
+    esac
+    if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
+      # non-PIC code in shared libraries is not supported
+      pic_mode=default
+    fi
+
+    # Calculate the filename of the output object if compiler does
+    # not support -o with -c
+    if test no = "$compiler_c_o"; then
+      output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext
+      lockfile=$output_obj.lock
+    else
+      output_obj=
+      need_locks=no
+      lockfile=
+    fi
+
+    # Lock this critical section if it is needed
+    # We use this script file to make the link, it avoids creating a new file
+    if test yes = "$need_locks"; then
+      until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
+       func_echo "Waiting for $lockfile to be removed"
+       sleep 2
+      done
+    elif test warn = "$need_locks"; then
+      if test -f "$lockfile"; then
+       $ECHO "\
+*** ERROR, $lockfile exists and contains:
+`cat $lockfile 2>/dev/null`
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support '-c' and '-o' together.  If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+       $opt_dry_run || $RM $removelist
+       exit $EXIT_FAILURE
+      fi
+      func_append removelist " $output_obj"
+      $ECHO "$srcfile" > "$lockfile"
+    fi
+
+    $opt_dry_run || $RM $removelist
+    func_append removelist " $lockfile"
+    trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
+
+    func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
+    srcfile=$func_to_tool_file_result
+    func_quote_for_eval "$srcfile"
+    qsrcfile=$func_quote_for_eval_result
+
+    # Only build a PIC object if we are building libtool libraries.
+    if test yes = "$build_libtool_libs"; then
+      # Without this assignment, base_compile gets emptied.
+      fbsd_hideous_sh_bug=$base_compile
+
+      if test no != "$pic_mode"; then
+       command="$base_compile $qsrcfile $pic_flag"
+      else
+       # Don't build PIC code
+       command="$base_compile $qsrcfile"
+      fi
+
+      func_mkdir_p "$xdir$objdir"
+
+      if test -z "$output_obj"; then
+       # Place PIC objects in $objdir
+       func_append command " -o $lobj"
+      fi
+
+      func_show_eval_locale "$command" \
+          'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
+
+      if test warn = "$need_locks" &&
+        test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+       $ECHO "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support '-c' and '-o' together.  If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+       $opt_dry_run || $RM $removelist
+       exit $EXIT_FAILURE
+      fi
+
+      # Just move the object if needed, then go on to compile the next one
+      if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
+       func_show_eval '$MV "$output_obj" "$lobj"' \
+         'error=$?; $opt_dry_run || $RM $removelist; exit $error'
+      fi
+
+      # Allow error messages only from the first compilation.
+      if test yes = "$suppress_opt"; then
+       suppress_output=' >/dev/null 2>&1'
+      fi
+    fi
+
+    # Only build a position-dependent object if we build old libraries.
+    if test yes = "$build_old_libs"; then
+      if test yes != "$pic_mode"; then
+       # Don't build PIC code
+       command="$base_compile $qsrcfile$pie_flag"
+      else
+       command="$base_compile $qsrcfile $pic_flag"
+      fi
+      if test yes = "$compiler_c_o"; then
+       func_append command " -o $obj"
+      fi
+
+      # Suppress compiler output if we already did a PIC compilation.
+      func_append command "$suppress_output"
+      func_show_eval_locale "$command" \
+        '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
+
+      if test warn = "$need_locks" &&
+        test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+       $ECHO "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support '-c' and '-o' together.  If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+       $opt_dry_run || $RM $removelist
+       exit $EXIT_FAILURE
+      fi
+
+      # Just move the object if needed
+      if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
+       func_show_eval '$MV "$output_obj" "$obj"' \
+         'error=$?; $opt_dry_run || $RM $removelist; exit $error'
+      fi
+    fi
+
+    $opt_dry_run || {
+      func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
+
+      # Unlock the critical section if it was locked
+      if test no != "$need_locks"; then
+       removelist=$lockfile
+        $RM "$lockfile"
+      fi
+    }
+
+    exit $EXIT_SUCCESS
+}
+
+$opt_help || {
+  test compile = "$opt_mode" && func_mode_compile ${1+"$@"}
+}
+
+func_mode_help ()
+{
+    # We need to display help for each of the modes.
+    case $opt_mode in
+      "")
+        # Generic help is extracted from the usage comments
+        # at the start of this file.
+        func_help
+        ;;
+
+      clean)
+        $ECHO \
+"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
+
+Remove files from the build directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically '/bin/rm').  RM-OPTIONS are options (such as '-f') to be passed
+to RM.
+
+If FILE is a libtool library, object or program, all the files associated
+with it are deleted. Otherwise, only FILE itself is deleted using RM."
+        ;;
+
+      compile)
+      $ECHO \
+"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
+
+Compile a source file into a libtool library object.
+
+This mode accepts the following additional options:
+
+  -o OUTPUT-FILE    set the output file name to OUTPUT-FILE
+  -no-suppress      do not suppress compiler output for multiple passes
+  -prefer-pic       try to build PIC objects only
+  -prefer-non-pic   try to build non-PIC objects only
+  -shared           do not build a '.o' file suitable for static linking
+  -static           only build a '.o' file suitable for static linking
+  -Wc,FLAG          pass FLAG directly to the compiler
+
+COMPILE-COMMAND is a command to be used in creating a 'standard' object file
+from the given SOURCEFILE.
+
+The output file name is determined by removing the directory component from
+SOURCEFILE, then substituting the C source code suffix '.c' with the
+library object suffix, '.lo'."
+        ;;
+
+      execute)
+        $ECHO \
+"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
+
+Automatically set library path, then run a program.
+
+This mode accepts the following additional options:
+
+  -dlopen FILE      add the directory containing FILE to the library path
+
+This mode sets the library path environment variable according to '-dlopen'
+flags.
+
+If any of the ARGS are libtool executable wrappers, then they are translated
+into their corresponding uninstalled binary, and any of their required library
+directories are added to the library path.
+
+Then, COMMAND is executed, with ARGS as arguments."
+        ;;
+
+      finish)
+        $ECHO \
+"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
+
+Complete the installation of libtool libraries.
+
+Each LIBDIR is a directory that contains libtool libraries.
+
+The commands that this mode executes may require superuser privileges.  Use
+the '--dry-run' option if you just want to see what would be executed."
+        ;;
+
+      install)
+        $ECHO \
+"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
+
+Install executables or libraries.
+
+INSTALL-COMMAND is the installation command.  The first component should be
+either the 'install' or 'cp' program.
+
+The following components of INSTALL-COMMAND are treated specially:
+
+  -inst-prefix-dir PREFIX-DIR  Use PREFIX-DIR as a staging area for installation
+
+The rest of the components are interpreted as arguments to that command (only
+BSD-compatible install options are recognized)."
+        ;;
+
+      link)
+        $ECHO \
+"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
+
+Link object files or libraries together to form another library, or to
+create an executable program.
+
+LINK-COMMAND is a command using the C compiler that you would use to create
+a program from several object files.
+
+The following components of LINK-COMMAND are treated specially:
+
+  -all-static       do not do any dynamic linking at all
+  -avoid-version    do not add a version suffix if possible
+  -bindir BINDIR    specify path to binaries directory (for systems where
+                    libraries must be found in the PATH setting at runtime)
+  -dlopen FILE      '-dlpreopen' FILE if it cannot be dlopened at runtime
+  -dlpreopen FILE   link in FILE and add its symbols to lt_preloaded_symbols
+  -export-dynamic   allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
+  -export-symbols SYMFILE
+                    try to export only the symbols listed in SYMFILE
+  -export-symbols-regex REGEX
+                    try to export only the symbols matching REGEX
+  -LLIBDIR          search LIBDIR for required installed libraries
+  -lNAME            OUTPUT-FILE requires the installed library libNAME
+  -module           build a library that can dlopened
+  -no-fast-install  disable the fast-install mode
+  -no-install       link a not-installable executable
+  -no-undefined     declare that a library does not refer to external symbols
+  -o OUTPUT-FILE    create OUTPUT-FILE from the specified objects
+  -objectlist FILE  Use a list of object files found in FILE to specify objects
+  -precious-files-regex REGEX
+                    don't remove output files matching REGEX
+  -release RELEASE  specify package release information
+  -rpath LIBDIR     the created library will eventually be installed in LIBDIR
+  -R[ ]LIBDIR       add LIBDIR to the runtime path of programs and libraries
+  -shared           only do dynamic linking of libtool libraries
+  -shrext SUFFIX    override the standard shared library file extension
+  -static           do not do any dynamic linking of uninstalled libtool libraries
+  -static-libtool-libs
+                    do not do any dynamic linking of libtool libraries
+  -version-info CURRENT[:REVISION[:AGE]]
+                    specify library version info [each variable defaults to 0]
+  -weak LIBNAME     declare that the target provides the LIBNAME interface
+  -Wc,FLAG
+  -Xcompiler FLAG   pass linker-specific FLAG directly to the compiler
+  -Wl,FLAG
+  -Xlinker FLAG     pass linker-specific FLAG directly to the linker
+  -XCClinker FLAG   pass link-specific FLAG to the compiler driver (CC)
+
+All other options (arguments beginning with '-') are ignored.
+
+Every other argument is treated as a filename.  Files ending in '.la' are
+treated as uninstalled libtool libraries, other files are standard or library
+object files.
+
+If the OUTPUT-FILE ends in '.la', then a libtool library is created,
+only library objects ('.lo' files) may be specified, and '-rpath' is
+required, except when creating a convenience library.
+
+If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
+using 'ar' and 'ranlib', or on Windows using 'lib'.
+
+If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
+is created, otherwise an executable program is created."
+        ;;
+
+      uninstall)
+        $ECHO \
+"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
+
+Remove libraries from an installation directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically '/bin/rm').  RM-OPTIONS are options (such as '-f') to be passed
+to RM.
+
+If FILE is a libtool library, all the files associated with it are deleted.
+Otherwise, only FILE itself is deleted using RM."
+        ;;
+
+      *)
+        func_fatal_help "invalid operation mode '$opt_mode'"
+        ;;
+    esac
+
+    echo
+    $ECHO "Try '$progname --help' for more information about other modes."
+}
+
+# Now that we've collected a possible --mode arg, show help if necessary
+if $opt_help; then
+  if test : = "$opt_help"; then
+    func_mode_help
+  else
+    {
+      func_help noexit
+      for opt_mode in compile link execute install finish uninstall clean; do
+       func_mode_help
+      done
+    } | sed -n '1p; 2,$s/^Usage:/  or: /p'
+    {
+      func_help noexit
+      for opt_mode in compile link execute install finish uninstall clean; do
+       echo
+       func_mode_help
+      done
+    } |
+    sed '1d
+      /^When reporting/,/^Report/{
+       H
+       d
+      }
+      $x
+      /information about other modes/d
+      /more detailed .*MODE/d
+      s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
+  fi
+  exit $?
+fi
+
+
+# func_mode_execute arg...
+func_mode_execute ()
+{
+    $debug_cmd
+
+    # The first argument is the command name.
+    cmd=$nonopt
+    test -z "$cmd" && \
+      func_fatal_help "you must specify a COMMAND"
+
+    # Handle -dlopen flags immediately.
+    for file in $opt_dlopen; do
+      test -f "$file" \
+       || func_fatal_help "'$file' is not a file"
+
+      dir=
+      case $file in
+      *.la)
+       func_resolve_sysroot "$file"
+       file=$func_resolve_sysroot_result
+
+       # Check to see that this really is a libtool archive.
+       func_lalib_unsafe_p "$file" \
+         || func_fatal_help "'$lib' is not a valid libtool archive"
+
+       # Read the libtool library.
+       dlname=
+       library_names=
+       func_source "$file"
+
+       # Skip this library if it cannot be dlopened.
+       if test -z "$dlname"; then
+         # Warn if it was a shared library.
+         test -n "$library_names" && \
+           func_warning "'$file' was not linked with '-export-dynamic'"
+         continue
+       fi
+
+       func_dirname "$file" "" "."
+       dir=$func_dirname_result
+
+       if test -f "$dir/$objdir/$dlname"; then
+         func_append dir "/$objdir"
+       else
+         if test ! -f "$dir/$dlname"; then
+           func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'"
+         fi
+       fi
+       ;;
+
+      *.lo)
+       # Just add the directory containing the .lo file.
+       func_dirname "$file" "" "."
+       dir=$func_dirname_result
+       ;;
+
+      *)
+       func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
+       continue
+       ;;
+      esac
+
+      # Get the absolute pathname.
+      absdir=`cd "$dir" && pwd`
+      test -n "$absdir" && dir=$absdir
+
+      # Now add the directory to shlibpath_var.
+      if eval "test -z \"\$$shlibpath_var\""; then
+       eval "$shlibpath_var=\"\$dir\""
+      else
+       eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
+      fi
+    done
+
+    # This variable tells wrapper scripts just to set shlibpath_var
+    # rather than running their programs.
+    libtool_execute_magic=$magic
+
+    # Check if any of the arguments is a wrapper script.
+    args=
+    for file
+    do
+      case $file in
+      -* | *.la | *.lo ) ;;
+      *)
+       # Do a test to see if this is really a libtool program.
+       if func_ltwrapper_script_p "$file"; then
+         func_source "$file"
+         # Transform arg to wrapped name.
+         file=$progdir/$program
+       elif func_ltwrapper_executable_p "$file"; then
+         func_ltwrapper_scriptname "$file"
+         func_source "$func_ltwrapper_scriptname_result"
+         # Transform arg to wrapped name.
+         file=$progdir/$program
+       fi
+       ;;
+      esac
+      # Quote arguments (to preserve shell metacharacters).
+      func_append_quoted args "$file"
+    done
+
+    if $opt_dry_run; then
+      # Display what would be done.
+      if test -n "$shlibpath_var"; then
+       eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
+       echo "export $shlibpath_var"
+      fi
+      $ECHO "$cmd$args"
+      exit $EXIT_SUCCESS
+    else
+      if test -n "$shlibpath_var"; then
+       # Export the shlibpath_var.
+       eval "export $shlibpath_var"
+      fi
+
+      # Restore saved environment variables
+      for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+      do
+       eval "if test \"\${save_$lt_var+set}\" = set; then
+                $lt_var=\$save_$lt_var; export $lt_var
+             else
+               $lt_unset $lt_var
+             fi"
+      done
+
+      # Now prepare to actually exec the command.
+      exec_cmd=\$cmd$args
+    fi
+}
+
+test execute = "$opt_mode" && func_mode_execute ${1+"$@"}
+
+
+# func_mode_finish arg...
+func_mode_finish ()
+{
+    $debug_cmd
+
+    libs=
+    libdirs=
+    admincmds=
+
+    for opt in "$nonopt" ${1+"$@"}
+    do
+      if test -d "$opt"; then
+       func_append libdirs " $opt"
+
+      elif test -f "$opt"; then
+       if func_lalib_unsafe_p "$opt"; then
+         func_append libs " $opt"
+       else
+         func_warning "'$opt' is not a valid libtool archive"
+       fi
+
+      else
+       func_fatal_error "invalid argument '$opt'"
+      fi
+    done
+
+    if test -n "$libs"; then
+      if test -n "$lt_sysroot"; then
+        sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
+        sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
+      else
+        sysroot_cmd=
+      fi
+
+      # Remove sysroot references
+      if $opt_dry_run; then
+        for lib in $libs; do
+          echo "removing references to $lt_sysroot and '=' prefixes from $lib"
+        done
+      else
+        tmpdir=`func_mktempdir`
+        for lib in $libs; do
+         sed -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
+           > $tmpdir/tmp-la
+         mv -f $tmpdir/tmp-la $lib
+       done
+        ${RM}r "$tmpdir"
+      fi
+    fi
+
+    if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
+      for libdir in $libdirs; do
+       if test -n "$finish_cmds"; then
+         # Do each command in the finish commands.
+         func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
+'"$cmd"'"'
+       fi
+       if test -n "$finish_eval"; then
+         # Do the single finish_eval.
+         eval cmds=\"$finish_eval\"
+         $opt_dry_run || eval "$cmds" || func_append admincmds "
+       $cmds"
+       fi
+      done
+    fi
+
+    # Exit here if they wanted silent mode.
+    $opt_quiet && exit $EXIT_SUCCESS
+
+    if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
+      echo "----------------------------------------------------------------------"
+      echo "Libraries have been installed in:"
+      for libdir in $libdirs; do
+       $ECHO "   $libdir"
+      done
+      echo
+      echo "If you ever happen to want to link against installed libraries"
+      echo "in a given directory, LIBDIR, you must either use libtool, and"
+      echo "specify the full pathname of the library, or use the '-LLIBDIR'"
+      echo "flag during linking and do at least one of the following:"
+      if test -n "$shlibpath_var"; then
+       echo "   - add LIBDIR to the '$shlibpath_var' environment variable"
+       echo "     during execution"
+      fi
+      if test -n "$runpath_var"; then
+       echo "   - add LIBDIR to the '$runpath_var' environment variable"
+       echo "     during linking"
+      fi
+      if test -n "$hardcode_libdir_flag_spec"; then
+       libdir=LIBDIR
+       eval flag=\"$hardcode_libdir_flag_spec\"
+
+       $ECHO "   - use the '$flag' linker flag"
+      fi
+      if test -n "$admincmds"; then
+       $ECHO "   - have your system administrator run these commands:$admincmds"
+      fi
+      if test -f /etc/ld.so.conf; then
+       echo "   - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
+      fi
+      echo
+
+      echo "See any operating system documentation about shared libraries for"
+      case $host in
+       solaris2.[6789]|solaris2.1[0-9])
+         echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
+         echo "pages."
+         ;;
+       *)
+         echo "more information, such as the ld(1) and ld.so(8) manual pages."
+         ;;
+      esac
+      echo "----------------------------------------------------------------------"
+    fi
+    exit $EXIT_SUCCESS
+}
+
+test finish = "$opt_mode" && func_mode_finish ${1+"$@"}
+
+
+# func_mode_install arg...
+func_mode_install ()
+{
+    $debug_cmd
+
+    # There may be an optional sh(1) argument at the beginning of
+    # install_prog (especially on Windows NT).
+    if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" ||
+       # Allow the use of GNU shtool's install command.
+       case $nonopt in *shtool*) :;; *) false;; esac
+    then
+      # Aesthetically quote it.
+      func_quote_for_eval "$nonopt"
+      install_prog="$func_quote_for_eval_result "
+      arg=$1
+      shift
+    else
+      install_prog=
+      arg=$nonopt
+    fi
+
+    # The real first argument should be the name of the installation program.
+    # Aesthetically quote it.
+    func_quote_for_eval "$arg"
+    func_append install_prog "$func_quote_for_eval_result"
+    install_shared_prog=$install_prog
+    case " $install_prog " in
+      *[\\\ /]cp\ *) install_cp=: ;;
+      *) install_cp=false ;;
+    esac
+
+    # We need to accept at least all the BSD install flags.
+    dest=
+    files=
+    opts=
+    prev=
+    install_type=
+    isdir=false
+    stripme=
+    no_mode=:
+    for arg
+    do
+      arg2=
+      if test -n "$dest"; then
+       func_append files " $dest"
+       dest=$arg
+       continue
+      fi
+
+      case $arg in
+      -d) isdir=: ;;
+      -f)
+       if $install_cp; then :; else
+         prev=$arg
+       fi
+       ;;
+      -g | -m | -o)
+       prev=$arg
+       ;;
+      -s)
+       stripme=" -s"
+       continue
+       ;;
+      -*)
+       ;;
+      *)
+       # If the previous option needed an argument, then skip it.
+       if test -n "$prev"; then
+         if test X-m = "X$prev" && test -n "$install_override_mode"; then
+           arg2=$install_override_mode
+           no_mode=false
+         fi
+         prev=
+       else
+         dest=$arg
+         continue
+       fi
+       ;;
+      esac
+
+      # Aesthetically quote the argument.
+      func_quote_for_eval "$arg"
+      func_append install_prog " $func_quote_for_eval_result"
+      if test -n "$arg2"; then
+       func_quote_for_eval "$arg2"
+      fi
+      func_append install_shared_prog " $func_quote_for_eval_result"
+    done
+
+    test -z "$install_prog" && \
+      func_fatal_help "you must specify an install program"
+
+    test -n "$prev" && \
+      func_fatal_help "the '$prev' option requires an argument"
+
+    if test -n "$install_override_mode" && $no_mode; then
+      if $install_cp; then :; else
+       func_quote_for_eval "$install_override_mode"
+       func_append install_shared_prog " -m $func_quote_for_eval_result"
+      fi
+    fi
+
+    if test -z "$files"; then
+      if test -z "$dest"; then
+       func_fatal_help "no file or destination specified"
+      else
+       func_fatal_help "you must specify a destination"
+      fi
+    fi
+
+    # Strip any trailing slash from the destination.
+    func_stripname '' '/' "$dest"
+    dest=$func_stripname_result
+
+    # Check to see that the destination is a directory.
+    test -d "$dest" && isdir=:
+    if $isdir; then
+      destdir=$dest
+      destname=
+    else
+      func_dirname_and_basename "$dest" "" "."
+      destdir=$func_dirname_result
+      destname=$func_basename_result
+
+      # Not a directory, so check to see that there is only one file specified.
+      set dummy $files; shift
+      test "$#" -gt 1 && \
+       func_fatal_help "'$dest' is not a directory"
+    fi
+    case $destdir in
+    [\\/]* | [A-Za-z]:[\\/]*) ;;
+    *)
+      for file in $files; do
+       case $file in
+       *.lo) ;;
+       *)
+         func_fatal_help "'$destdir' must be an absolute directory name"
+         ;;
+       esac
+      done
+      ;;
+    esac
+
+    # This variable tells wrapper scripts just to set variables rather
+    # than running their programs.
+    libtool_install_magic=$magic
+
+    staticlibs=
+    future_libdirs=
+    current_libdirs=
+    for file in $files; do
+
+      # Do each installation.
+      case $file in
+      *.$libext)
+       # Do the static libraries later.
+       func_append staticlibs " $file"
+       ;;
+
+      *.la)
+       func_resolve_sysroot "$file"
+       file=$func_resolve_sysroot_result
+
+       # Check to see that this really is a libtool archive.
+       func_lalib_unsafe_p "$file" \
+         || func_fatal_help "'$file' is not a valid libtool archive"
+
+       library_names=
+       old_library=
+       relink_command=
+       func_source "$file"
+
+       # Add the libdir to current_libdirs if it is the destination.
+       if test "X$destdir" = "X$libdir"; then
+         case "$current_libdirs " in
+         *" $libdir "*) ;;
+         *) func_append current_libdirs " $libdir" ;;
+         esac
+       else
+         # Note the libdir as a future libdir.
+         case "$future_libdirs " in
+         *" $libdir "*) ;;
+         *) func_append future_libdirs " $libdir" ;;
+         esac
+       fi
+
+       func_dirname "$file" "/" ""
+       dir=$func_dirname_result
+       func_append dir "$objdir"
+
+       if test -n "$relink_command"; then
+         # Determine the prefix the user has applied to our future dir.
+         inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
+
+         # Don't allow the user to place us outside of our expected
+         # location b/c this prevents finding dependent libraries that
+         # are installed to the same prefix.
+         # At present, this check doesn't affect windows .dll's that
+         # are installed into $libdir/../bin (currently, that works fine)
+         # but it's something to keep an eye on.
+         test "$inst_prefix_dir" = "$destdir" && \
+           func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir"
+
+         if test -n "$inst_prefix_dir"; then
+           # Stick the inst_prefix_dir data into the link command.
+           relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
+         else
+           relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
+         fi
+
+         func_warning "relinking '$file'"
+         func_show_eval "$relink_command" \
+           'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"'
+       fi
+
+       # See the names of the shared library.
+       set dummy $library_names; shift
+       if test -n "$1"; then
+         realname=$1
+         shift
+
+         srcname=$realname
+         test -n "$relink_command" && srcname=${realname}T
+
+         # Install the shared library and build the symlinks.
+         func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
+             'exit $?'
+         tstripme=$stripme
+         case $host_os in
+         cygwin* | mingw* | pw32* | cegcc*)
+           case $realname in
+           *.dll.a)
+             tstripme=
+             ;;
+           esac
+           ;;
+         esac
+         if test -n "$tstripme" && test -n "$striplib"; then
+           func_show_eval "$striplib $destdir/$realname" 'exit $?'
+         fi
+
+         if test "$#" -gt 0; then
+           # Delete the old symlinks, and create new ones.
+           # Try 'ln -sf' first, because the 'ln' binary might depend on
+           # the symlink we replace!  Solaris /bin/ln does not understand -f,
+           # so we also need to try rm && ln -s.
+           for linkname
+           do
+             test "$linkname" != "$realname" \
+               && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
+           done
+         fi
+
+         # Do each command in the postinstall commands.
+         lib=$destdir/$realname
+         func_execute_cmds "$postinstall_cmds" 'exit $?'
+       fi
+
+       # Install the pseudo-library for information purposes.
+       func_basename "$file"
+       name=$func_basename_result
+       instname=$dir/${name}i
+       func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
+
+       # Maybe install the static library, too.
+       test -n "$old_library" && func_append staticlibs " $dir/$old_library"
+       ;;
+
+      *.lo)
+       # Install (i.e. copy) a libtool object.
+
+       # Figure out destination file name, if it wasn't already specified.
+       if test -n "$destname"; then
+         destfile=$destdir/$destname
+       else
+         func_basename "$file"
+         destfile=$func_basename_result
+         destfile=$destdir/$destfile
+       fi
+
+       # Deduce the name of the destination old-style object file.
+       case $destfile in
+       *.lo)
+         func_lo2o "$destfile"
+         staticdest=$func_lo2o_result
+         ;;
+       *.$objext)
+         staticdest=$destfile
+         destfile=
+         ;;
+       *)
+         func_fatal_help "cannot copy a libtool object to '$destfile'"
+         ;;
+       esac
+
+       # Install the libtool object if requested.
+       test -n "$destfile" && \
+         func_show_eval "$install_prog $file $destfile" 'exit $?'
+
+       # Install the old object if enabled.
+       if test yes = "$build_old_libs"; then
+         # Deduce the name of the old-style object file.
+         func_lo2o "$file"
+         staticobj=$func_lo2o_result
+         func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
+       fi
+       exit $EXIT_SUCCESS
+       ;;
+
+      *)
+       # Figure out destination file name, if it wasn't already specified.
+       if test -n "$destname"; then
+         destfile=$destdir/$destname
+       else
+         func_basename "$file"
+         destfile=$func_basename_result
+         destfile=$destdir/$destfile
+       fi
+
+       # If the file is missing, and there is a .exe on the end, strip it
+       # because it is most likely a libtool script we actually want to
+       # install
+       stripped_ext=
+       case $file in
+         *.exe)
+           if test ! -f "$file"; then
+             func_stripname '' '.exe' "$file"
+             file=$func_stripname_result
+             stripped_ext=.exe
+           fi
+           ;;
+       esac
+
+       # Do a test to see if this is really a libtool program.
+       case $host in
+       *cygwin* | *mingw*)
+           if func_ltwrapper_executable_p "$file"; then
+             func_ltwrapper_scriptname "$file"
+             wrapper=$func_ltwrapper_scriptname_result
+           else
+             func_stripname '' '.exe' "$file"
+             wrapper=$func_stripname_result
+           fi
+           ;;
+       *)
+           wrapper=$file
+           ;;
+       esac
+       if func_ltwrapper_script_p "$wrapper"; then
+         notinst_deplibs=
+         relink_command=
+
+         func_source "$wrapper"
+
+         # Check the variables that should have been set.
+         test -z "$generated_by_libtool_version" && \
+           func_fatal_error "invalid libtool wrapper script '$wrapper'"
+
+         finalize=:
+         for lib in $notinst_deplibs; do
+           # Check to see that each library is installed.
+           libdir=
+           if test -f "$lib"; then
+             func_source "$lib"
+           fi
+           libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'`
+           if test -n "$libdir" && test ! -f "$libfile"; then
+             func_warning "'$lib' has not been installed in '$libdir'"
+             finalize=false
+           fi
+         done
+
+         relink_command=
+         func_source "$wrapper"
+
+         outputname=
+         if test no = "$fast_install" && test -n "$relink_command"; then
+           $opt_dry_run || {
+             if $finalize; then
+               tmpdir=`func_mktempdir`
+               func_basename "$file$stripped_ext"
+               file=$func_basename_result
+               outputname=$tmpdir/$file
+               # Replace the output file specification.
+               relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
+
+               $opt_quiet || {
+                 func_quote_for_expand "$relink_command"
+                 eval "func_echo $func_quote_for_expand_result"
+               }
+               if eval "$relink_command"; then :
+                 else
+                 func_error "error: relink '$file' with the above command before installing it"
+                 $opt_dry_run || ${RM}r "$tmpdir"
+                 continue
+               fi
+               file=$outputname
+             else
+               func_warning "cannot relink '$file'"
+             fi
+           }
+         else
+           # Install the binary that we compiled earlier.
+           file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
+         fi
+       fi
+
+       # remove .exe since cygwin /usr/bin/install will append another
+       # one anyway
+       case $install_prog,$host in
+       */usr/bin/install*,*cygwin*)
+         case $file:$destfile in
+         *.exe:*.exe)
+           # this is ok
+           ;;
+         *.exe:*)
+           destfile=$destfile.exe
+           ;;
+         *:*.exe)
+           func_stripname '' '.exe' "$destfile"
+           destfile=$func_stripname_result
+           ;;
+         esac
+         ;;
+       esac
+       func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
+       $opt_dry_run || if test -n "$outputname"; then
+         ${RM}r "$tmpdir"
+       fi
+       ;;
+      esac
+    done
+
+    for file in $staticlibs; do
+      func_basename "$file"
+      name=$func_basename_result
+
+      # Set up the ranlib parameters.
+      oldlib=$destdir/$name
+      func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
+      tool_oldlib=$func_to_tool_file_result
+
+      func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
+
+      if test -n "$stripme" && test -n "$old_striplib"; then
+       func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
+      fi
+
+      # Do each command in the postinstall commands.
+      func_execute_cmds "$old_postinstall_cmds" 'exit $?'
+    done
+
+    test -n "$future_libdirs" && \
+      func_warning "remember to run '$progname --finish$future_libdirs'"
+
+    if test -n "$current_libdirs"; then
+      # Maybe just do a dry run.
+      $opt_dry_run && current_libdirs=" -n$current_libdirs"
+      exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
+    else
+      exit $EXIT_SUCCESS
+    fi
+}
+
+test install = "$opt_mode" && func_mode_install ${1+"$@"}
+
+
+# func_generate_dlsyms outputname originator pic_p
+# Extract symbols from dlprefiles and create ${outputname}S.o with
+# a dlpreopen symbol table.
+func_generate_dlsyms ()
+{
+    $debug_cmd
+
+    my_outputname=$1
+    my_originator=$2
+    my_pic_p=${3-false}
+    my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
+    my_dlsyms=
+
+    if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
+      if test -n "$NM" && test -n "$global_symbol_pipe"; then
+       my_dlsyms=${my_outputname}S.c
+      else
+       func_error "not configured to extract global symbols from dlpreopened files"
+      fi
+    fi
+
+    if test -n "$my_dlsyms"; then
+      case $my_dlsyms in
+      "") ;;
+      *.c)
+       # Discover the nlist of each of the dlfiles.
+       nlist=$output_objdir/$my_outputname.nm
+
+       func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
+
+       # Parse the name list into a source file.
+       func_verbose "creating $output_objdir/$my_dlsyms"
+
+       $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
+/* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
+/* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */
+
+#ifdef __cplusplus
+extern \"C\" {
+#endif
+
+#if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
+#pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
+#endif
+
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
+#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
+/* DATA imports from DLLs on WIN32 can't be const, because runtime
+   relocations are performed -- see ld's documentation on pseudo-relocs.  */
+# define LT_DLSYM_CONST
+#elif defined __osf__
+/* This system does not cope well with relocations in const data.  */
+# define LT_DLSYM_CONST
+#else
+# define LT_DLSYM_CONST const
+#endif
+
+#define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
+
+/* External symbol declarations for the compiler. */\
+"
+
+       if test yes = "$dlself"; then
+         func_verbose "generating symbol list for '$output'"
+
+         $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
+
+         # Add our own program objects to the symbol list.
+         progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
+         for progfile in $progfiles; do
+           func_to_tool_file "$progfile" func_convert_file_msys_to_w32
+           func_verbose "extracting global C symbols from '$func_to_tool_file_result'"
+           $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
+         done
+
+         if test -n "$exclude_expsyms"; then
+           $opt_dry_run || {
+             eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
+             eval '$MV "$nlist"T "$nlist"'
+           }
+         fi
+
+         if test -n "$export_symbols_regex"; then
+           $opt_dry_run || {
+             eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
+             eval '$MV "$nlist"T "$nlist"'
+           }
+         fi
+
+         # Prepare the list of exported symbols
+         if test -z "$export_symbols"; then
+           export_symbols=$output_objdir/$outputname.exp
+           $opt_dry_run || {
+             $RM $export_symbols
+             eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
+             case $host in
+             *cygwin* | *mingw* | *cegcc* )
+                eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
+                eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
+               ;;
+             esac
+           }
+         else
+           $opt_dry_run || {
+             eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
+             eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
+             eval '$MV "$nlist"T "$nlist"'
+             case $host in
+               *cygwin* | *mingw* | *cegcc* )
+                 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
+                 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
+                 ;;
+             esac
+           }
+         fi
+       fi
+
+       for dlprefile in $dlprefiles; do
+         func_verbose "extracting global C symbols from '$dlprefile'"
+         func_basename "$dlprefile"
+         name=$func_basename_result
+          case $host in
+           *cygwin* | *mingw* | *cegcc* )
+             # if an import library, we need to obtain dlname
+             if func_win32_import_lib_p "$dlprefile"; then
+               func_tr_sh "$dlprefile"
+               eval "curr_lafile=\$libfile_$func_tr_sh_result"
+               dlprefile_dlbasename=
+               if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
+                 # Use subshell, to avoid clobbering current variable values
+                 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
+                 if test -n "$dlprefile_dlname"; then
+                   func_basename "$dlprefile_dlname"
+                   dlprefile_dlbasename=$func_basename_result
+                 else
+                   # no lafile. user explicitly requested -dlpreopen <import library>.
+                   $sharedlib_from_linklib_cmd "$dlprefile"
+                   dlprefile_dlbasename=$sharedlib_from_linklib_result
+                 fi
+               fi
+               $opt_dry_run || {
+                 if test -n "$dlprefile_dlbasename"; then
+                   eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
+                 else
+                   func_warning "Could not compute DLL name from $name"
+                   eval '$ECHO ": $name " >> "$nlist"'
+                 fi
+                 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
+                 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
+                   $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
+               }
+             else # not an import lib
+               $opt_dry_run || {
+                 eval '$ECHO ": $name " >> "$nlist"'
+                 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
+                 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
+               }
+             fi
+           ;;
+           *)
+             $opt_dry_run || {
+               eval '$ECHO ": $name " >> "$nlist"'
+               func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
+               eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
+             }
+           ;;
+          esac
+       done
+
+       $opt_dry_run || {
+         # Make sure we have at least an empty file.
+         test -f "$nlist" || : > "$nlist"
+
+         if test -n "$exclude_expsyms"; then
+           $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
+           $MV "$nlist"T "$nlist"
+         fi
+
+         # Try sorting and uniquifying the output.
+         if $GREP -v "^: " < "$nlist" |
+             if sort -k 3 </dev/null >/dev/null 2>&1; then
+               sort -k 3
+             else
+               sort +2
+             fi |
+             uniq > "$nlist"S; then
+           :
+         else
+           $GREP -v "^: " < "$nlist" > "$nlist"S
+         fi
+
+         if test -f "$nlist"S; then
+           eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
+         else
+           echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
+         fi
+
+         func_show_eval '$RM "${nlist}I"'
+         if test -n "$global_symbol_to_import"; then
+           eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I'
+         fi
+
+         echo >> "$output_objdir/$my_dlsyms" "\
+
+/* The mapping between symbol names and symbols.  */
+typedef struct {
+  const char *name;
+  void *address;
+} lt_dlsymlist;
+extern LT_DLSYM_CONST lt_dlsymlist
+lt_${my_prefix}_LTX_preloaded_symbols[];\
+"
+
+         if test -s "$nlist"I; then
+           echo >> "$output_objdir/$my_dlsyms" "\
+static void lt_syminit(void)
+{
+  LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols;
+  for (; symbol->name; ++symbol)
+    {"
+           $SED 's/.*/      if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms"
+           echo >> "$output_objdir/$my_dlsyms" "\
+    }
+}"
+         fi
+         echo >> "$output_objdir/$my_dlsyms" "\
+LT_DLSYM_CONST lt_dlsymlist
+lt_${my_prefix}_LTX_preloaded_symbols[] =
+{ {\"$my_originator\", (void *) 0},"
+
+         if test -s "$nlist"I; then
+           echo >> "$output_objdir/$my_dlsyms" "\
+  {\"@INIT@\", (void *) &lt_syminit},"
+         fi
+
+         case $need_lib_prefix in
+         no)
+           eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
+           ;;
+         *)
+           eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
+           ;;
+         esac
+         echo >> "$output_objdir/$my_dlsyms" "\
+  {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+  return lt_${my_prefix}_LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif\
+"
+       } # !$opt_dry_run
+
+       pic_flag_for_symtable=
+       case "$compile_command " in
+       *" -static "*) ;;
+       *)
+         case $host in
+         # compiling the symbol table file with pic_flag works around
+         # a FreeBSD bug that causes programs to crash when -lm is
+         # linked before any other PIC object.  But we must not use
+         # pic_flag when linking with -static.  The problem exists in
+         # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
+         *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
+           pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
+         *-*-hpux*)
+           pic_flag_for_symtable=" $pic_flag"  ;;
+         *)
+           $my_pic_p && pic_flag_for_symtable=" $pic_flag"
+           ;;
+         esac
+         ;;
+       esac
+       symtab_cflags=
+       for arg in $LTCFLAGS; do
+         case $arg in
+         -pie | -fpie | -fPIE) ;;
+         *) func_append symtab_cflags " $arg" ;;
+         esac
+       done
+
+       # Now compile the dynamic symbol file.
+       func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
+
+       # Clean up the generated files.
+       func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"'
+
+       # Transform the symbol file into the correct name.
+       symfileobj=$output_objdir/${my_outputname}S.$objext
+       case $host in
+       *cygwin* | *mingw* | *cegcc* )
+         if test -f "$output_objdir/$my_outputname.def"; then
+           compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
+           finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
+         else
+           compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
+           finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
+         fi
+         ;;
+       *)
+         compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
+         finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
+         ;;
+       esac
+       ;;
+      *)
+       func_fatal_error "unknown suffix for '$my_dlsyms'"
+       ;;
+      esac
+    else
+      # We keep going just in case the user didn't refer to
+      # lt_preloaded_symbols.  The linker will fail if global_symbol_pipe
+      # really was required.
+
+      # Nullify the symbol file.
+      compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
+      finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
+    fi
+}
+
+# func_cygming_gnu_implib_p ARG
+# This predicate returns with zero status (TRUE) if
+# ARG is a GNU/binutils-style import library. Returns
+# with nonzero status (FALSE) otherwise.
+func_cygming_gnu_implib_p ()
+{
+  $debug_cmd
+
+  func_to_tool_file "$1" func_convert_file_msys_to_w32
+  func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
+  test -n "$func_cygming_gnu_implib_tmp"
+}
+
+# func_cygming_ms_implib_p ARG
+# This predicate returns with zero status (TRUE) if
+# ARG is an MS-style import library. Returns
+# with nonzero status (FALSE) otherwise.
+func_cygming_ms_implib_p ()
+{
+  $debug_cmd
+
+  func_to_tool_file "$1" func_convert_file_msys_to_w32
+  func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
+  test -n "$func_cygming_ms_implib_tmp"
+}
+
+# func_win32_libid arg
+# return the library type of file 'arg'
+#
+# Need a lot of goo to handle *both* DLLs and import libs
+# Has to be a shell function in order to 'eat' the argument
+# that is supplied when $file_magic_command is called.
+# Despite the name, also deal with 64 bit binaries.
+func_win32_libid ()
+{
+  $debug_cmd
+
+  win32_libid_type=unknown
+  win32_fileres=`file -L $1 2>/dev/null`
+  case $win32_fileres in
+  *ar\ archive\ import\ library*) # definitely import
+    win32_libid_type="x86 archive import"
+    ;;
+  *ar\ archive*) # could be an import, or static
+    # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
+    if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
+       $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
+      case $nm_interface in
+      "MS dumpbin")
+       if func_cygming_ms_implib_p "$1" ||
+          func_cygming_gnu_implib_p "$1"
+       then
+         win32_nmres=import
+       else
+         win32_nmres=
+       fi
+       ;;
+      *)
+       func_to_tool_file "$1" func_convert_file_msys_to_w32
+       win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
+         $SED -n -e '
+           1,100{
+               / I /{
+                   s|.*|import|
+                   p
+                   q
+               }
+           }'`
+       ;;
+      esac
+      case $win32_nmres in
+      import*)  win32_libid_type="x86 archive import";;
+      *)        win32_libid_type="x86 archive static";;
+      esac
+    fi
+    ;;
+  *DLL*)
+    win32_libid_type="x86 DLL"
+    ;;
+  *executable*) # but shell scripts are "executable" too...
+    case $win32_fileres in
+    *MS\ Windows\ PE\ Intel*)
+      win32_libid_type="x86 DLL"
+      ;;
+    esac
+    ;;
+  esac
+  $ECHO "$win32_libid_type"
+}
+
+# func_cygming_dll_for_implib ARG
+#
+# Platform-specific function to extract the
+# name of the DLL associated with the specified
+# import library ARG.
+# Invoked by eval'ing the libtool variable
+#    $sharedlib_from_linklib_cmd
+# Result is available in the variable
+#    $sharedlib_from_linklib_result
+func_cygming_dll_for_implib ()
+{
+  $debug_cmd
+
+  sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
+}
+
+# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
+#
+# The is the core of a fallback implementation of a
+# platform-specific function to extract the name of the
+# DLL associated with the specified import library LIBNAME.
+#
+# SECTION_NAME is either .idata$6 or .idata$7, depending
+# on the platform and compiler that created the implib.
+#
+# Echos the name of the DLL associated with the
+# specified import library.
+func_cygming_dll_for_implib_fallback_core ()
+{
+  $debug_cmd
+
+  match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
+  $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
+    $SED '/^Contents of section '"$match_literal"':/{
+      # Place marker at beginning of archive member dllname section
+      s/.*/====MARK====/
+      p
+      d
+    }
+    # These lines can sometimes be longer than 43 characters, but
+    # are always uninteresting
+    /:[         ]*file format pe[i]\{,1\}-/d
+    /^In archive [^:]*:/d
+    # Ensure marker is printed
+    /^====MARK====/p
+    # Remove all lines with less than 43 characters
+    /^.\{43\}/!d
+    # From remaining lines, remove first 43 characters
+    s/^.\{43\}//' |
+    $SED -n '
+      # Join marker and all lines until next marker into a single line
+      /^====MARK====/ b para
+      H
+      $ b para
+      b
+      :para
+      x
+      s/\n//g
+      # Remove the marker
+      s/^====MARK====//
+      # Remove trailing dots and whitespace
+      s/[\. \t]*$//
+      # Print
+      /./p' |
+    # we now have a list, one entry per line, of the stringified
+    # contents of the appropriate section of all members of the
+    # archive that possess that section. Heuristic: eliminate
+    # all those that have a first or second character that is
+    # a '.' (that is, objdump's representation of an unprintable
+    # character.) This should work for all archives with less than
+    # 0x302f exports -- but will fail for DLLs whose name actually
+    # begins with a literal '.' or a single character followed by
+    # a '.'.
+    #
+    # Of those that remain, print the first one.
+    $SED -e '/^\./d;/^.\./d;q'
+}
+
+# func_cygming_dll_for_implib_fallback ARG
+# Platform-specific function to extract the
+# name of the DLL associated with the specified
+# import library ARG.
+#
+# This fallback implementation is for use when $DLLTOOL
+# does not support the --identify-strict option.
+# Invoked by eval'ing the libtool variable
+#    $sharedlib_from_linklib_cmd
+# Result is available in the variable
+#    $sharedlib_from_linklib_result
+func_cygming_dll_for_implib_fallback ()
+{
+  $debug_cmd
+
+  if func_cygming_gnu_implib_p "$1"; then
+    # binutils import library
+    sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
+  elif func_cygming_ms_implib_p "$1"; then
+    # ms-generated import library
+    sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
+  else
+    # unknown
+    sharedlib_from_linklib_result=
+  fi
+}
+
+
+# func_extract_an_archive dir oldlib
+func_extract_an_archive ()
+{
+    $debug_cmd
+
+    f_ex_an_ar_dir=$1; shift
+    f_ex_an_ar_oldlib=$1
+    if test yes = "$lock_old_archive_extraction"; then
+      lockfile=$f_ex_an_ar_oldlib.lock
+      until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
+       func_echo "Waiting for $lockfile to be removed"
+       sleep 2
+      done
+    fi
+    func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
+                  'stat=$?; rm -f "$lockfile"; exit $stat'
+    if test yes = "$lock_old_archive_extraction"; then
+      $opt_dry_run || rm -f "$lockfile"
+    fi
+    if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
+     :
+    else
+      func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
+    fi
+}
+
+
+# func_extract_archives gentop oldlib ...
+func_extract_archives ()
+{
+    $debug_cmd
+
+    my_gentop=$1; shift
+    my_oldlibs=${1+"$@"}
+    my_oldobjs=
+    my_xlib=
+    my_xabs=
+    my_xdir=
+
+    for my_xlib in $my_oldlibs; do
+      # Extract the objects.
+      case $my_xlib in
+       [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
+       *) my_xabs=`pwd`"/$my_xlib" ;;
+      esac
+      func_basename "$my_xlib"
+      my_xlib=$func_basename_result
+      my_xlib_u=$my_xlib
+      while :; do
+        case " $extracted_archives " in
+       *" $my_xlib_u "*)
+         func_arith $extracted_serial + 1
+         extracted_serial=$func_arith_result
+         my_xlib_u=lt$extracted_serial-$my_xlib ;;
+       *) break ;;
+       esac
+      done
+      extracted_archives="$extracted_archives $my_xlib_u"
+      my_xdir=$my_gentop/$my_xlib_u
+
+      func_mkdir_p "$my_xdir"
+
+      case $host in
+      *-darwin*)
+       func_verbose "Extracting $my_xabs"
+       # Do not bother doing anything if just a dry run
+       $opt_dry_run || {
+         darwin_orig_dir=`pwd`
+         cd $my_xdir || exit $?
+         darwin_archive=$my_xabs
+         darwin_curdir=`pwd`
+         func_basename "$darwin_archive"
+         darwin_base_archive=$func_basename_result
+         darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
+         if test -n "$darwin_arches"; then
+           darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
+           darwin_arch=
+           func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
+           for darwin_arch in  $darwin_arches; do
+             func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
+             $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive"
+             cd "unfat-$$/$darwin_base_archive-$darwin_arch"
+             func_extract_an_archive "`pwd`" "$darwin_base_archive"
+             cd "$darwin_curdir"
+             $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
+           done # $darwin_arches
+            ## Okay now we've a bunch of thin objects, gotta fatten them up :)
+           darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
+           darwin_file=
+           darwin_files=
+           for darwin_file in $darwin_filelist; do
+             darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
+             $LIPO -create -output "$darwin_file" $darwin_files
+           done # $darwin_filelist
+           $RM -rf unfat-$$
+           cd "$darwin_orig_dir"
+         else
+           cd $darwin_orig_dir
+           func_extract_an_archive "$my_xdir" "$my_xabs"
+         fi # $darwin_arches
+       } # !$opt_dry_run
+       ;;
+      *)
+        func_extract_an_archive "$my_xdir" "$my_xabs"
+       ;;
+      esac
+      my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
+    done
+
+    func_extract_archives_result=$my_oldobjs
+}
+
+
+# func_emit_wrapper [arg=no]
+#
+# Emit a libtool wrapper script on stdout.
+# Don't directly open a file because we may want to
+# incorporate the script contents within a cygwin/mingw
+# wrapper executable.  Must ONLY be called from within
+# func_mode_link because it depends on a number of variables
+# set therein.
+#
+# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
+# variable will take.  If 'yes', then the emitted script
+# will assume that the directory where it is stored is
+# the $objdir directory.  This is a cygwin/mingw-specific
+# behavior.
+func_emit_wrapper ()
+{
+       func_emit_wrapper_arg1=${1-no}
+
+       $ECHO "\
+#! $SHELL
+
+# $output - temporary wrapper script for $objdir/$outputname
+# Generated by $PROGRAM (GNU $PACKAGE) $VERSION
+#
+# The $output program cannot be directly executed until all the libtool
+# libraries that it depends on are installed.
+#
+# This wrapper script should never be moved out of the build directory.
+# If it is, it will not operate correctly.
+
+# Sed substitution that helps us do robust quoting.  It backslashifies
+# metacharacters that are still active within double-quoted strings.
+sed_quote_subst='$sed_quote_subst'
+
+# Be Bourne compatible
+if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
+  emulate sh
+  NULLCMD=:
+  # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
+  # is contrary to our usage.  Disable this feature.
+  alias -g '\${1+\"\$@\"}'='\"\$@\"'
+  setopt NO_GLOB_SUBST
+else
+  case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+relink_command=\"$relink_command\"
+
+# This environment variable determines our operation mode.
+if test \"\$libtool_install_magic\" = \"$magic\"; then
+  # install mode needs the following variables:
+  generated_by_libtool_version='$macro_version'
+  notinst_deplibs='$notinst_deplibs'
+else
+  # When we are sourced in execute mode, \$file and \$ECHO are already set.
+  if test \"\$libtool_execute_magic\" != \"$magic\"; then
+    file=\"\$0\""
+
+    qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
+    $ECHO "\
+
+# A function that is used when there is no print builtin or printf.
+func_fallback_echo ()
+{
+  eval 'cat <<_LTECHO_EOF
+\$1
+_LTECHO_EOF'
+}
+    ECHO=\"$qECHO\"
+  fi
+
+# Very basic option parsing. These options are (a) specific to
+# the libtool wrapper, (b) are identical between the wrapper
+# /script/ and the wrapper /executable/ that is used only on
+# windows platforms, and (c) all begin with the string "--lt-"
+# (application programs are unlikely to have options that match
+# this pattern).
+#
+# There are only two supported options: --lt-debug and
+# --lt-dump-script. There is, deliberately, no --lt-help.
+#
+# The first argument to this parsing function should be the
+# script's $0 value, followed by "$@".
+lt_option_debug=
+func_parse_lt_options ()
+{
+  lt_script_arg0=\$0
+  shift
+  for lt_opt
+  do
+    case \"\$lt_opt\" in
+    --lt-debug) lt_option_debug=1 ;;
+    --lt-dump-script)
+        lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
+        test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
+        lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
+        cat \"\$lt_dump_D/\$lt_dump_F\"
+        exit 0
+      ;;
+    --lt-*)
+        \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
+        exit 1
+      ;;
+    esac
+  done
+
+  # Print the debug banner immediately:
+  if test -n \"\$lt_option_debug\"; then
+    echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2
+  fi
+}
+
+# Used when --lt-debug. Prints its arguments to stdout
+# (redirection is the responsibility of the caller)
+func_lt_dump_args ()
+{
+  lt_dump_args_N=1;
+  for lt_arg
+  do
+    \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\"
+    lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
+  done
+}
+
+# Core function for launching the target application
+func_exec_program_core ()
+{
+"
+  case $host in
+  # Backslashes separate directories on plain windows
+  *-*-mingw | *-*-os2* | *-cegcc*)
+    $ECHO "\
+      if test -n \"\$lt_option_debug\"; then
+        \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2
+        func_lt_dump_args \${1+\"\$@\"} 1>&2
+      fi
+      exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
+"
+    ;;
+
+  *)
+    $ECHO "\
+      if test -n \"\$lt_option_debug\"; then
+        \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2
+        func_lt_dump_args \${1+\"\$@\"} 1>&2
+      fi
+      exec \"\$progdir/\$program\" \${1+\"\$@\"}
+"
+    ;;
+  esac
+  $ECHO "\
+      \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
+      exit 1
+}
+
+# A function to encapsulate launching the target application
+# Strips options in the --lt-* namespace from \$@ and
+# launches target application with the remaining arguments.
+func_exec_program ()
+{
+  case \" \$* \" in
+  *\\ --lt-*)
+    for lt_wr_arg
+    do
+      case \$lt_wr_arg in
+      --lt-*) ;;
+      *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
+      esac
+      shift
+    done ;;
+  esac
+  func_exec_program_core \${1+\"\$@\"}
+}
+
+  # Parse options
+  func_parse_lt_options \"\$0\" \${1+\"\$@\"}
+
+  # Find the directory that this script lives in.
+  thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
+  test \"x\$thisdir\" = \"x\$file\" && thisdir=.
+
+  # Follow symbolic links until we get to the real thisdir.
+  file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
+  while test -n \"\$file\"; do
+    destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
+
+    # If there was a directory component, then change thisdir.
+    if test \"x\$destdir\" != \"x\$file\"; then
+      case \"\$destdir\" in
+      [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
+      *) thisdir=\"\$thisdir/\$destdir\" ;;
+      esac
+    fi
+
+    file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
+    file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
+  done
+
+  # Usually 'no', except on cygwin/mingw when embedded into
+  # the cwrapper.
+  WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
+  if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
+    # special case for '.'
+    if test \"\$thisdir\" = \".\"; then
+      thisdir=\`pwd\`
+    fi
+    # remove .libs from thisdir
+    case \"\$thisdir\" in
+    *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
+    $objdir )   thisdir=. ;;
+    esac
+  fi
+
+  # Try to get the absolute directory name.
+  absdir=\`cd \"\$thisdir\" && pwd\`
+  test -n \"\$absdir\" && thisdir=\"\$absdir\"
+"
+
+       if test yes = "$fast_install"; then
+         $ECHO "\
+  program=lt-'$outputname'$exeext
+  progdir=\"\$thisdir/$objdir\"
+
+  if test ! -f \"\$progdir/\$program\" ||
+     { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
+       test \"X\$file\" != \"X\$progdir/\$program\"; }; then
+
+    file=\"\$\$-\$program\"
+
+    if test ! -d \"\$progdir\"; then
+      $MKDIR \"\$progdir\"
+    else
+      $RM \"\$progdir/\$file\"
+    fi"
+
+         $ECHO "\
+
+    # relink executable if necessary
+    if test -n \"\$relink_command\"; then
+      if relink_command_output=\`eval \$relink_command 2>&1\`; then :
+      else
+       $ECHO \"\$relink_command_output\" >&2
+       $RM \"\$progdir/\$file\"
+       exit 1
+      fi
+    fi
+
+    $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
+    { $RM \"\$progdir/\$program\";
+      $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
+    $RM \"\$progdir/\$file\"
+  fi"
+       else
+         $ECHO "\
+  program='$outputname'
+  progdir=\"\$thisdir/$objdir\"
+"
+       fi
+
+       $ECHO "\
+
+  if test -f \"\$progdir/\$program\"; then"
+
+       # fixup the dll searchpath if we need to.
+       #
+       # Fix the DLL searchpath if we need to.  Do this before prepending
+       # to shlibpath, because on Windows, both are PATH and uninstalled
+       # libraries must come first.
+       if test -n "$dllsearchpath"; then
+         $ECHO "\
+    # Add the dll search path components to the executable PATH
+    PATH=$dllsearchpath:\$PATH
+"
+       fi
+
+       # Export our shlibpath_var if we have one.
+       if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
+         $ECHO "\
+    # Add our own library path to $shlibpath_var
+    $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
+
+    # Some systems cannot cope with colon-terminated $shlibpath_var
+    # The second colon is a workaround for a bug in BeOS R4 sed
+    $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
+
+    export $shlibpath_var
+"
+       fi
+
+       $ECHO "\
+    if test \"\$libtool_execute_magic\" != \"$magic\"; then
+      # Run the actual program with our arguments.
+      func_exec_program \${1+\"\$@\"}
+    fi
+  else
+    # The program doesn't exist.
+    \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2
+    \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
+    \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
+    exit 1
+  fi
+fi\
+"
+}
+
+
+# func_emit_cwrapperexe_src
+# emit the source code for a wrapper executable on stdout
+# Must ONLY be called from within func_mode_link because
+# it depends on a number of variable set therein.
+func_emit_cwrapperexe_src ()
+{
+       cat <<EOF
+
+/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
+   Generated by $PROGRAM (GNU $PACKAGE) $VERSION
+
+   The $output program cannot be directly executed until all the libtool
+   libraries that it depends on are installed.
+
+   This wrapper executable should never be moved out of the build directory.
+   If it is, it will not operate correctly.
+*/
+EOF
+           cat <<"EOF"
+#ifdef _MSC_VER
+# define _CRT_SECURE_NO_DEPRECATE 1
+#endif
+#include <stdio.h>
+#include <stdlib.h>
+#ifdef _MSC_VER
+# include <direct.h>
+# include <process.h>
+# include <io.h>
+#else
+# include <unistd.h>
+# include <stdint.h>
+# ifdef __CYGWIN__
+#  include <io.h>
+# endif
+#endif
+#include <malloc.h>
+#include <stdarg.h>
+#include <assert.h>
+#include <string.h>
+#include <ctype.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <sys/stat.h>
+
+#define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
+
+/* declarations of non-ANSI functions */
+#if defined __MINGW32__
+# ifdef __STRICT_ANSI__
+int _putenv (const char *);
+# endif
+#elif defined __CYGWIN__
+# ifdef __STRICT_ANSI__
+char *realpath (const char *, char *);
+int putenv (char *);
+int setenv (const char *, const char *, int);
+# endif
+/* #elif defined other_platform || defined ... */
+#endif
+
+/* portability defines, excluding path handling macros */
+#if defined _MSC_VER
+# define setmode _setmode
+# define stat    _stat
+# define chmod   _chmod
+# define getcwd  _getcwd
+# define putenv  _putenv
+# define S_IXUSR _S_IEXEC
+#elif defined __MINGW32__
+# define setmode _setmode
+# define stat    _stat
+# define chmod   _chmod
+# define getcwd  _getcwd
+# define putenv  _putenv
+#elif defined __CYGWIN__
+# define HAVE_SETENV
+# define FOPEN_WB "wb"
+/* #elif defined other platforms ... */
+#endif
+
+#if defined PATH_MAX
+# define LT_PATHMAX PATH_MAX
+#elif defined MAXPATHLEN
+# define LT_PATHMAX MAXPATHLEN
+#else
+# define LT_PATHMAX 1024
+#endif
+
+#ifndef S_IXOTH
+# define S_IXOTH 0
+#endif
+#ifndef S_IXGRP
+# define S_IXGRP 0
+#endif
+
+/* path handling portability macros */
+#ifndef DIR_SEPARATOR
+# define DIR_SEPARATOR '/'
+# define PATH_SEPARATOR ':'
+#endif
+
+#if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \
+  defined __OS2__
+# define HAVE_DOS_BASED_FILE_SYSTEM
+# define FOPEN_WB "wb"
+# ifndef DIR_SEPARATOR_2
+#  define DIR_SEPARATOR_2 '\\'
+# endif
+# ifndef PATH_SEPARATOR_2
+#  define PATH_SEPARATOR_2 ';'
+# endif
+#endif
+
+#ifndef DIR_SEPARATOR_2
+# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
+#else /* DIR_SEPARATOR_2 */
+# define IS_DIR_SEPARATOR(ch) \
+       (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
+#endif /* DIR_SEPARATOR_2 */
+
+#ifndef PATH_SEPARATOR_2
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
+#else /* PATH_SEPARATOR_2 */
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
+#endif /* PATH_SEPARATOR_2 */
+
+#ifndef FOPEN_WB
+# define FOPEN_WB "w"
+#endif
+#ifndef _O_BINARY
+# define _O_BINARY 0
+#endif
+
+#define XMALLOC(type, num)      ((type *) xmalloc ((num) * sizeof(type)))
+#define XFREE(stale) do { \
+  if (stale) { free (stale); stale = 0; } \
+} while (0)
+
+#if defined LT_DEBUGWRAPPER
+static int lt_debug = 1;
+#else
+static int lt_debug = 0;
+#endif
+
+const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
+
+void *xmalloc (size_t num);
+char *xstrdup (const char *string);
+const char *base_name (const char *name);
+char *find_executable (const char *wrapper);
+char *chase_symlinks (const char *pathspec);
+int make_executable (const char *path);
+int check_executable (const char *path);
+char *strendzap (char *str, const char *pat);
+void lt_debugprintf (const char *file, int line, const char *fmt, ...);
+void lt_fatal (const char *file, int line, const char *message, ...);
+static const char *nonnull (const char *s);
+static const char *nonempty (const char *s);
+void lt_setenv (const char *name, const char *value);
+char *lt_extend_str (const char *orig_value, const char *add, int to_end);
+void lt_update_exe_path (const char *name, const char *value);
+void lt_update_lib_path (const char *name, const char *value);
+char **prepare_spawn (char **argv);
+void lt_dump_script (FILE *f);
+EOF
+
+           cat <<EOF
+volatile const char * MAGIC_EXE = "$magic_exe";
+const char * LIB_PATH_VARNAME = "$shlibpath_var";
+EOF
+
+           if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
+              func_to_host_path "$temp_rpath"
+             cat <<EOF
+const char * LIB_PATH_VALUE   = "$func_to_host_path_result";
+EOF
+           else
+             cat <<"EOF"
+const char * LIB_PATH_VALUE   = "";
+EOF
+           fi
+
+           if test -n "$dllsearchpath"; then
+              func_to_host_path "$dllsearchpath:"
+             cat <<EOF
+const char * EXE_PATH_VARNAME = "PATH";
+const char * EXE_PATH_VALUE   = "$func_to_host_path_result";
+EOF
+           else
+             cat <<"EOF"
+const char * EXE_PATH_VARNAME = "";
+const char * EXE_PATH_VALUE   = "";
+EOF
+           fi
+
+           if test yes = "$fast_install"; then
+             cat <<EOF
+const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
+EOF
+           else
+             cat <<EOF
+const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
+EOF
+           fi
+
+
+           cat <<"EOF"
+
+#define LTWRAPPER_OPTION_PREFIX         "--lt-"
+
+static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
+static const char *dumpscript_opt       = LTWRAPPER_OPTION_PREFIX "dump-script";
+static const char *debug_opt            = LTWRAPPER_OPTION_PREFIX "debug";
+
+int
+main (int argc, char *argv[])
+{
+  char **newargz;
+  int  newargc;
+  char *tmp_pathspec;
+  char *actual_cwrapper_path;
+  char *actual_cwrapper_name;
+  char *target_name;
+  char *lt_argv_zero;
+  int rval = 127;
+
+  int i;
+
+  program_name = (char *) xstrdup (base_name (argv[0]));
+  newargz = XMALLOC (char *, (size_t) argc + 1);
+
+  /* very simple arg parsing; don't want to rely on getopt
+   * also, copy all non cwrapper options to newargz, except
+   * argz[0], which is handled differently
+   */
+  newargc=0;
+  for (i = 1; i < argc; i++)
+    {
+      if (STREQ (argv[i], dumpscript_opt))
+       {
+EOF
+           case $host in
+             *mingw* | *cygwin* )
+               # make stdout use "unix" line endings
+               echo "          setmode(1,_O_BINARY);"
+               ;;
+             esac
+
+           cat <<"EOF"
+         lt_dump_script (stdout);
+         return 0;
+       }
+      if (STREQ (argv[i], debug_opt))
+       {
+          lt_debug = 1;
+          continue;
+       }
+      if (STREQ (argv[i], ltwrapper_option_prefix))
+        {
+          /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
+             namespace, but it is not one of the ones we know about and
+             have already dealt with, above (inluding dump-script), then
+             report an error. Otherwise, targets might begin to believe
+             they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
+             namespace. The first time any user complains about this, we'll
+             need to make LTWRAPPER_OPTION_PREFIX a configure-time option
+             or a configure.ac-settable value.
+           */
+          lt_fatal (__FILE__, __LINE__,
+                   "unrecognized %s option: '%s'",
+                    ltwrapper_option_prefix, argv[i]);
+        }
+      /* otherwise ... */
+      newargz[++newargc] = xstrdup (argv[i]);
+    }
+  newargz[++newargc] = NULL;
+
+EOF
+           cat <<EOF
+  /* The GNU banner must be the first non-error debug message */
+  lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE) $VERSION\n");
+EOF
+           cat <<"EOF"
+  lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
+  lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
+
+  tmp_pathspec = find_executable (argv[0]);
+  if (tmp_pathspec == NULL)
+    lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
+  lt_debugprintf (__FILE__, __LINE__,
+                  "(main) found exe (before symlink chase) at: %s\n",
+                 tmp_pathspec);
+
+  actual_cwrapper_path = chase_symlinks (tmp_pathspec);
+  lt_debugprintf (__FILE__, __LINE__,
+                  "(main) found exe (after symlink chase) at: %s\n",
+                 actual_cwrapper_path);
+  XFREE (tmp_pathspec);
+
+  actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
+  strendzap (actual_cwrapper_path, actual_cwrapper_name);
+
+  /* wrapper name transforms */
+  strendzap (actual_cwrapper_name, ".exe");
+  tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
+  XFREE (actual_cwrapper_name);
+  actual_cwrapper_name = tmp_pathspec;
+  tmp_pathspec = 0;
+
+  /* target_name transforms -- use actual target program name; might have lt- prefix */
+  target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
+  strendzap (target_name, ".exe");
+  tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
+  XFREE (target_name);
+  target_name = tmp_pathspec;
+  tmp_pathspec = 0;
+
+  lt_debugprintf (__FILE__, __LINE__,
+                 "(main) libtool target name: %s\n",
+                 target_name);
+EOF
+
+           cat <<EOF
+  newargz[0] =
+    XMALLOC (char, (strlen (actual_cwrapper_path) +
+                   strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
+  strcpy (newargz[0], actual_cwrapper_path);
+  strcat (newargz[0], "$objdir");
+  strcat (newargz[0], "/");
+EOF
+
+           cat <<"EOF"
+  /* stop here, and copy so we don't have to do this twice */
+  tmp_pathspec = xstrdup (newargz[0]);
+
+  /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
+  strcat (newargz[0], actual_cwrapper_name);
+
+  /* DO want the lt- prefix here if it exists, so use target_name */
+  lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
+  XFREE (tmp_pathspec);
+  tmp_pathspec = NULL;
+EOF
+
+           case $host_os in
+             mingw*)
+           cat <<"EOF"
+  {
+    char* p;
+    while ((p = strchr (newargz[0], '\\')) != NULL)
+      {
+       *p = '/';
+      }
+    while ((p = strchr (lt_argv_zero, '\\')) != NULL)
+      {
+       *p = '/';
+      }
+  }
+EOF
+           ;;
+           esac
+
+           cat <<"EOF"
+  XFREE (target_name);
+  XFREE (actual_cwrapper_path);
+  XFREE (actual_cwrapper_name);
+
+  lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
+  lt_setenv ("DUALCASE", "1");  /* for MSK sh */
+  /* Update the DLL searchpath.  EXE_PATH_VALUE ($dllsearchpath) must
+     be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
+     because on Windows, both *_VARNAMEs are PATH but uninstalled
+     libraries must come first. */
+  lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
+  lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
+
+  lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
+                 nonnull (lt_argv_zero));
+  for (i = 0; i < newargc; i++)
+    {
+      lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
+                     i, nonnull (newargz[i]));
+    }
+
+EOF
+
+           case $host_os in
+             mingw*)
+               cat <<"EOF"
+  /* execv doesn't actually work on mingw as expected on unix */
+  newargz = prepare_spawn (newargz);
+  rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
+  if (rval == -1)
+    {
+      /* failed to start process */
+      lt_debugprintf (__FILE__, __LINE__,
+                     "(main) failed to launch target \"%s\": %s\n",
+                     lt_argv_zero, nonnull (strerror (errno)));
+      return 127;
+    }
+  return rval;
+EOF
+               ;;
+             *)
+               cat <<"EOF"
+  execv (lt_argv_zero, newargz);
+  return rval; /* =127, but avoids unused variable warning */
+EOF
+               ;;
+           esac
+
+           cat <<"EOF"
+}
+
+void *
+xmalloc (size_t num)
+{
+  void *p = (void *) malloc (num);
+  if (!p)
+    lt_fatal (__FILE__, __LINE__, "memory exhausted");
+
+  return p;
+}
+
+char *
+xstrdup (const char *string)
+{
+  return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
+                         string) : NULL;
+}
+
+const char *
+base_name (const char *name)
+{
+  const char *base;
+
+#if defined HAVE_DOS_BASED_FILE_SYSTEM
+  /* Skip over the disk name in MSDOS pathnames. */
+  if (isalpha ((unsigned char) name[0]) && name[1] == ':')
+    name += 2;
+#endif
+
+  for (base = name; *name; name++)
+    if (IS_DIR_SEPARATOR (*name))
+      base = name + 1;
+  return base;
+}
+
+int
+check_executable (const char *path)
+{
+  struct stat st;
+
+  lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
+                  nonempty (path));
+  if ((!path) || (!*path))
+    return 0;
+
+  if ((stat (path, &st) >= 0)
+      && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
+    return 1;
+  else
+    return 0;
+}
+
+int
+make_executable (const char *path)
+{
+  int rval = 0;
+  struct stat st;
+
+  lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
+                  nonempty (path));
+  if ((!path) || (!*path))
+    return 0;
+
+  if (stat (path, &st) >= 0)
+    {
+      rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
+    }
+  return rval;
+}
+
+/* Searches for the full path of the wrapper.  Returns
+   newly allocated full path name if found, NULL otherwise
+   Does not chase symlinks, even on platforms that support them.
+*/
+char *
+find_executable (const char *wrapper)
+{
+  int has_slash = 0;
+  const char *p;
+  const char *p_next;
+  /* static buffer for getcwd */
+  char tmp[LT_PATHMAX + 1];
+  size_t tmp_len;
+  char *concat_name;
+
+  lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
+                  nonempty (wrapper));
+
+  if ((wrapper == NULL) || (*wrapper == '\0'))
+    return NULL;
+
+  /* Absolute path? */
+#if defined HAVE_DOS_BASED_FILE_SYSTEM
+  if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
+    {
+      concat_name = xstrdup (wrapper);
+      if (check_executable (concat_name))
+       return concat_name;
+      XFREE (concat_name);
+    }
+  else
+    {
+#endif
+      if (IS_DIR_SEPARATOR (wrapper[0]))
+       {
+         concat_name = xstrdup (wrapper);
+         if (check_executable (concat_name))
+           return concat_name;
+         XFREE (concat_name);
+       }
+#if defined HAVE_DOS_BASED_FILE_SYSTEM
+    }
+#endif
+
+  for (p = wrapper; *p; p++)
+    if (*p == '/')
+      {
+       has_slash = 1;
+       break;
+      }
+  if (!has_slash)
+    {
+      /* no slashes; search PATH */
+      const char *path = getenv ("PATH");
+      if (path != NULL)
+       {
+         for (p = path; *p; p = p_next)
+           {
+             const char *q;
+             size_t p_len;
+             for (q = p; *q; q++)
+               if (IS_PATH_SEPARATOR (*q))
+                 break;
+             p_len = (size_t) (q - p);
+             p_next = (*q == '\0' ? q : q + 1);
+             if (p_len == 0)
+               {
+                 /* empty path: current directory */
+                 if (getcwd (tmp, LT_PATHMAX) == NULL)
+                   lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
+                              nonnull (strerror (errno)));
+                 tmp_len = strlen (tmp);
+                 concat_name =
+                   XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
+                 memcpy (concat_name, tmp, tmp_len);
+                 concat_name[tmp_len] = '/';
+                 strcpy (concat_name + tmp_len + 1, wrapper);
+               }
+             else
+               {
+                 concat_name =
+                   XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
+                 memcpy (concat_name, p, p_len);
+                 concat_name[p_len] = '/';
+                 strcpy (concat_name + p_len + 1, wrapper);
+               }
+             if (check_executable (concat_name))
+               return concat_name;
+             XFREE (concat_name);
+           }
+       }
+      /* not found in PATH; assume curdir */
+    }
+  /* Relative path | not found in path: prepend cwd */
+  if (getcwd (tmp, LT_PATHMAX) == NULL)
+    lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
+              nonnull (strerror (errno)));
+  tmp_len = strlen (tmp);
+  concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
+  memcpy (concat_name, tmp, tmp_len);
+  concat_name[tmp_len] = '/';
+  strcpy (concat_name + tmp_len + 1, wrapper);
+
+  if (check_executable (concat_name))
+    return concat_name;
+  XFREE (concat_name);
+  return NULL;
+}
+
+char *
+chase_symlinks (const char *pathspec)
+{
+#ifndef S_ISLNK
+  return xstrdup (pathspec);
+#else
+  char buf[LT_PATHMAX];
+  struct stat s;
+  char *tmp_pathspec = xstrdup (pathspec);
+  char *p;
+  int has_symlinks = 0;
+  while (strlen (tmp_pathspec) && !has_symlinks)
+    {
+      lt_debugprintf (__FILE__, __LINE__,
+                     "checking path component for symlinks: %s\n",
+                     tmp_pathspec);
+      if (lstat (tmp_pathspec, &s) == 0)
+       {
+         if (S_ISLNK (s.st_mode) != 0)
+           {
+             has_symlinks = 1;
+             break;
+           }
+
+         /* search backwards for last DIR_SEPARATOR */
+         p = tmp_pathspec + strlen (tmp_pathspec) - 1;
+         while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
+           p--;
+         if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
+           {
+             /* no more DIR_SEPARATORS left */
+             break;
+           }
+         *p = '\0';
+       }
+      else
+       {
+         lt_fatal (__FILE__, __LINE__,
+                   "error accessing file \"%s\": %s",
+                   tmp_pathspec, nonnull (strerror (errno)));
+       }
+    }
+  XFREE (tmp_pathspec);
+
+  if (!has_symlinks)
+    {
+      return xstrdup (pathspec);
+    }
+
+  tmp_pathspec = realpath (pathspec, buf);
+  if (tmp_pathspec == 0)
+    {
+      lt_fatal (__FILE__, __LINE__,
+               "could not follow symlinks for %s", pathspec);
+    }
+  return xstrdup (tmp_pathspec);
+#endif
+}
+
+char *
+strendzap (char *str, const char *pat)
+{
+  size_t len, patlen;
+
+  assert (str != NULL);
+  assert (pat != NULL);
+
+  len = strlen (str);
+  patlen = strlen (pat);
+
+  if (patlen <= len)
+    {
+      str += len - patlen;
+      if (STREQ (str, pat))
+       *str = '\0';
+    }
+  return str;
+}
+
+void
+lt_debugprintf (const char *file, int line, const char *fmt, ...)
+{
+  va_list args;
+  if (lt_debug)
+    {
+      (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
+      va_start (args, fmt);
+      (void) vfprintf (stderr, fmt, args);
+      va_end (args);
+    }
+}
+
+static void
+lt_error_core (int exit_status, const char *file,
+              int line, const char *mode,
+              const char *message, va_list ap)
+{
+  fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
+  vfprintf (stderr, message, ap);
+  fprintf (stderr, ".\n");
+
+  if (exit_status >= 0)
+    exit (exit_status);
+}
+
+void
+lt_fatal (const char *file, int line, const char *message, ...)
+{
+  va_list ap;
+  va_start (ap, message);
+  lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
+  va_end (ap);
+}
+
+static const char *
+nonnull (const char *s)
+{
+  return s ? s : "(null)";
+}
+
+static const char *
+nonempty (const char *s)
+{
+  return (s && !*s) ? "(empty)" : nonnull (s);
+}
+
+void
+lt_setenv (const char *name, const char *value)
+{
+  lt_debugprintf (__FILE__, __LINE__,
+                 "(lt_setenv) setting '%s' to '%s'\n",
+                  nonnull (name), nonnull (value));
+  {
+#ifdef HAVE_SETENV
+    /* always make a copy, for consistency with !HAVE_SETENV */
+    char *str = xstrdup (value);
+    setenv (name, str, 1);
+#else
+    size_t len = strlen (name) + 1 + strlen (value) + 1;
+    char *str = XMALLOC (char, len);
+    sprintf (str, "%s=%s", name, value);
+    if (putenv (str) != EXIT_SUCCESS)
+      {
+        XFREE (str);
+      }
+#endif
+  }
+}
+
+char *
+lt_extend_str (const char *orig_value, const char *add, int to_end)
+{
+  char *new_value;
+  if (orig_value && *orig_value)
+    {
+      size_t orig_value_len = strlen (orig_value);
+      size_t add_len = strlen (add);
+      new_value = XMALLOC (char, add_len + orig_value_len + 1);
+      if (to_end)
+        {
+          strcpy (new_value, orig_value);
+          strcpy (new_value + orig_value_len, add);
+        }
+      else
+        {
+          strcpy (new_value, add);
+          strcpy (new_value + add_len, orig_value);
+        }
+    }
+  else
+    {
+      new_value = xstrdup (add);
+    }
+  return new_value;
+}
+
+void
+lt_update_exe_path (const char *name, const char *value)
+{
+  lt_debugprintf (__FILE__, __LINE__,
+                 "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
+                  nonnull (name), nonnull (value));
+
+  if (name && *name && value && *value)
+    {
+      char *new_value = lt_extend_str (getenv (name), value, 0);
+      /* some systems can't cope with a ':'-terminated path #' */
+      size_t len = strlen (new_value);
+      while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
+        {
+          new_value[--len] = '\0';
+        }
+      lt_setenv (name, new_value);
+      XFREE (new_value);
+    }
+}
+
+void
+lt_update_lib_path (const char *name, const char *value)
+{
+  lt_debugprintf (__FILE__, __LINE__,
+                 "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
+                  nonnull (name), nonnull (value));
+
+  if (name && *name && value && *value)
+    {
+      char *new_value = lt_extend_str (getenv (name), value, 0);
+      lt_setenv (name, new_value);
+      XFREE (new_value);
+    }
+}
+
+EOF
+           case $host_os in
+             mingw*)
+               cat <<"EOF"
+
+/* Prepares an argument vector before calling spawn().
+   Note that spawn() does not by itself call the command interpreter
+     (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
+      ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
+         GetVersionEx(&v);
+         v.dwPlatformId == VER_PLATFORM_WIN32_NT;
+      }) ? "cmd.exe" : "command.com").
+   Instead it simply concatenates the arguments, separated by ' ', and calls
+   CreateProcess().  We must quote the arguments since Win32 CreateProcess()
+   interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
+   special way:
+   - Space and tab are interpreted as delimiters. They are not treated as
+     delimiters if they are surrounded by double quotes: "...".
+   - Unescaped double quotes are removed from the input. Their only effect is
+     that within double quotes, space and tab are treated like normal
+     characters.
+   - Backslashes not followed by double quotes are not special.
+   - But 2*n+1 backslashes followed by a double quote become
+     n backslashes followed by a double quote (n >= 0):
+       \" -> "
+       \\\" -> \"
+       \\\\\" -> \\"
+ */
+#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
+#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
+char **
+prepare_spawn (char **argv)
+{
+  size_t argc;
+  char **new_argv;
+  size_t i;
+
+  /* Count number of arguments.  */
+  for (argc = 0; argv[argc] != NULL; argc++)
+    ;
+
+  /* Allocate new argument vector.  */
+  new_argv = XMALLOC (char *, argc + 1);
+
+  /* Put quoted arguments into the new argument vector.  */
+  for (i = 0; i < argc; i++)
+    {
+      const char *string = argv[i];
+
+      if (string[0] == '\0')
+       new_argv[i] = xstrdup ("\"\"");
+      else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
+       {
+         int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
+         size_t length;
+         unsigned int backslashes;
+         const char *s;
+         char *quoted_string;
+         char *p;
+
+         length = 0;
+         backslashes = 0;
+         if (quote_around)
+           length++;
+         for (s = string; *s != '\0'; s++)
+           {
+             char c = *s;
+             if (c == '"')
+               length += backslashes + 1;
+             length++;
+             if (c == '\\')
+               backslashes++;
+             else
+               backslashes = 0;
+           }
+         if (quote_around)
+           length += backslashes + 1;
+
+         quoted_string = XMALLOC (char, length + 1);
+
+         p = quoted_string;
+         backslashes = 0;
+         if (quote_around)
+           *p++ = '"';
+         for (s = string; *s != '\0'; s++)
+           {
+             char c = *s;
+             if (c == '"')
+               {
+                 unsigned int j;
+                 for (j = backslashes + 1; j > 0; j--)
+                   *p++ = '\\';
+               }
+             *p++ = c;
+             if (c == '\\')
+               backslashes++;
+             else
+               backslashes = 0;
+           }
+         if (quote_around)
+           {
+             unsigned int j;
+             for (j = backslashes; j > 0; j--)
+               *p++ = '\\';
+             *p++ = '"';
+           }
+         *p = '\0';
+
+         new_argv[i] = quoted_string;
+       }
+      else
+       new_argv[i] = (char *) string;
+    }
+  new_argv[argc] = NULL;
+
+  return new_argv;
+}
+EOF
+               ;;
+           esac
+
+            cat <<"EOF"
+void lt_dump_script (FILE* f)
+{
+EOF
+           func_emit_wrapper yes |
+             $SED -n -e '
+s/^\(.\{79\}\)\(..*\)/\1\
+\2/
+h
+s/\([\\"]\)/\\\1/g
+s/$/\\n/
+s/\([^\n]*\).*/  fputs ("\1", f);/p
+g
+D'
+            cat <<"EOF"
+}
+EOF
+}
+# end: func_emit_cwrapperexe_src
+
+# func_win32_import_lib_p ARG
+# True if ARG is an import lib, as indicated by $file_magic_cmd
+func_win32_import_lib_p ()
+{
+    $debug_cmd
+
+    case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
+    *import*) : ;;
+    *) false ;;
+    esac
+}
+
+# func_mode_link arg...
+func_mode_link ()
+{
+    $debug_cmd
+
+    case $host in
+    *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+      # It is impossible to link a dll without this setting, and
+      # we shouldn't force the makefile maintainer to figure out
+      # what system we are compiling for in order to pass an extra
+      # flag for every libtool invocation.
+      # allow_undefined=no
+
+      # FIXME: Unfortunately, there are problems with the above when trying
+      # to make a dll that has undefined symbols, in which case not
+      # even a static library is built.  For now, we need to specify
+      # -no-undefined on the libtool link line when we can be certain
+      # that all symbols are satisfied, otherwise we get a static library.
+      allow_undefined=yes
+      ;;
+    *)
+      allow_undefined=yes
+      ;;
+    esac
+    libtool_args=$nonopt
+    base_compile="$nonopt $@"
+    compile_command=$nonopt
+    finalize_command=$nonopt
+
+    compile_rpath=
+    finalize_rpath=
+    compile_shlibpath=
+    finalize_shlibpath=
+    convenience=
+    old_convenience=
+    deplibs=
+    old_deplibs=
+    compiler_flags=
+    linker_flags=
+    dllsearchpath=
+    lib_search_path=`pwd`
+    inst_prefix_dir=
+    new_inherited_linker_flags=
+
+    avoid_version=no
+    bindir=
+    dlfiles=
+    dlprefiles=
+    dlself=no
+    export_dynamic=no
+    export_symbols=
+    export_symbols_regex=
+    generated=
+    libobjs=
+    ltlibs=
+    module=no
+    no_install=no
+    objs=
+    non_pic_objects=
+    precious_files_regex=
+    prefer_static_libs=no
+    preload=false
+    prev=
+    prevarg=
+    release=
+    rpath=
+    xrpath=
+    perm_rpath=
+    temp_rpath=
+    thread_safe=no
+    vinfo=
+    vinfo_number=no
+    weak_libs=
+    single_module=$wl-single_module
+    func_infer_tag $base_compile
+
+    # We need to know -static, to get the right output filenames.
+    for arg
+    do
+      case $arg in
+      -shared)
+       test yes != "$build_libtool_libs" \
+         && func_fatal_configuration "cannot build a shared library"
+       build_old_libs=no
+       break
+       ;;
+      -all-static | -static | -static-libtool-libs)
+       case $arg in
+       -all-static)
+         if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
+           func_warning "complete static linking is impossible in this configuration"
+         fi
+         if test -n "$link_static_flag"; then
+           dlopen_self=$dlopen_self_static
+         fi
+         prefer_static_libs=yes
+         ;;
+       -static)
+         if test -z "$pic_flag" && test -n "$link_static_flag"; then
+           dlopen_self=$dlopen_self_static
+         fi
+         prefer_static_libs=built
+         ;;
+       -static-libtool-libs)
+         if test -z "$pic_flag" && test -n "$link_static_flag"; then
+           dlopen_self=$dlopen_self_static
+         fi
+         prefer_static_libs=yes
+         ;;
+       esac
+       build_libtool_libs=no
+       build_old_libs=yes
+       break
+       ;;
+      esac
+    done
+
+    # See if our shared archives depend on static archives.
+    test -n "$old_archive_from_new_cmds" && build_old_libs=yes
+
+    # Go through the arguments, transforming them on the way.
+    while test "$#" -gt 0; do
+      arg=$1
+      shift
+      func_quote_for_eval "$arg"
+      qarg=$func_quote_for_eval_unquoted_result
+      func_append libtool_args " $func_quote_for_eval_result"
+
+      # If the previous option needs an argument, assign it.
+      if test -n "$prev"; then
+       case $prev in
+       output)
+         func_append compile_command " @OUTPUT@"
+         func_append finalize_command " @OUTPUT@"
+         ;;
+       esac
+
+       case $prev in
+       bindir)
+         bindir=$arg
+         prev=
+         continue
+         ;;
+       dlfiles|dlprefiles)
+         $preload || {
+           # Add the symbol object into the linking commands.
+           func_append compile_command " @SYMFILE@"
+           func_append finalize_command " @SYMFILE@"
+           preload=:
+         }
+         case $arg in
+         *.la | *.lo) ;;  # We handle these cases below.
+         force)
+           if test no = "$dlself"; then
+             dlself=needless
+             export_dynamic=yes
+           fi
+           prev=
+           continue
+           ;;
+         self)
+           if test dlprefiles = "$prev"; then
+             dlself=yes
+           elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then
+             dlself=yes
+           else
+             dlself=needless
+             export_dynamic=yes
+           fi
+           prev=
+           continue
+           ;;
+         *)
+           if test dlfiles = "$prev"; then
+             func_append dlfiles " $arg"
+           else
+             func_append dlprefiles " $arg"
+           fi
+           prev=
+           continue
+           ;;
+         esac
+         ;;
+       expsyms)
+         export_symbols=$arg
+         test -f "$arg" \
+           || func_fatal_error "symbol file '$arg' does not exist"
+         prev=
+         continue
+         ;;
+       expsyms_regex)
+         export_symbols_regex=$arg
+         prev=
+         continue
+         ;;
+       framework)
+         case $host in
+           *-*-darwin*)
+             case "$deplibs " in
+               *" $qarg.ltframework "*) ;;
+               *) func_append deplibs " $qarg.ltframework" # this is fixed later
+                  ;;
+             esac
+             ;;
+         esac
+         prev=
+         continue
+         ;;
+       inst_prefix)
+         inst_prefix_dir=$arg
+         prev=
+         continue
+         ;;
+       mllvm)
+         # Clang does not use LLVM to link, so we can simply discard any
+         # '-mllvm $arg' options when doing the link step.
+         prev=
+         continue
+         ;;
+       objectlist)
+         if test -f "$arg"; then
+           save_arg=$arg
+           moreargs=
+           for fil in `cat "$save_arg"`
+           do
+#            func_append moreargs " $fil"
+             arg=$fil
+             # A libtool-controlled object.
+
+             # Check to see that this really is a libtool object.
+             if func_lalib_unsafe_p "$arg"; then
+               pic_object=
+               non_pic_object=
+
+               # Read the .lo file
+               func_source "$arg"
+
+               if test -z "$pic_object" ||
+                  test -z "$non_pic_object" ||
+                  test none = "$pic_object" &&
+                  test none = "$non_pic_object"; then
+                 func_fatal_error "cannot find name of object for '$arg'"
+               fi
+
+               # Extract subdirectory from the argument.
+               func_dirname "$arg" "/" ""
+               xdir=$func_dirname_result
+
+               if test none != "$pic_object"; then
+                 # Prepend the subdirectory the object is found in.
+                 pic_object=$xdir$pic_object
+
+                 if test dlfiles = "$prev"; then
+                   if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
+                     func_append dlfiles " $pic_object"
+                     prev=
+                     continue
+                   else
+                     # If libtool objects are unsupported, then we need to preload.
+                     prev=dlprefiles
+                   fi
+                 fi
+
+                 # CHECK ME:  I think I busted this.  -Ossama
+                 if test dlprefiles = "$prev"; then
+                   # Preload the old-style object.
+                   func_append dlprefiles " $pic_object"
+                   prev=
+                 fi
+
+                 # A PIC object.
+                 func_append libobjs " $pic_object"
+                 arg=$pic_object
+               fi
+
+               # Non-PIC object.
+               if test none != "$non_pic_object"; then
+                 # Prepend the subdirectory the object is found in.
+                 non_pic_object=$xdir$non_pic_object
+
+                 # A standard non-PIC object
+                 func_append non_pic_objects " $non_pic_object"
+                 if test -z "$pic_object" || test none = "$pic_object"; then
+                   arg=$non_pic_object
+                 fi
+               else
+                 # If the PIC object exists, use it instead.
+                 # $xdir was prepended to $pic_object above.
+                 non_pic_object=$pic_object
+                 func_append non_pic_objects " $non_pic_object"
+               fi
+             else
+               # Only an error if not doing a dry-run.
+               if $opt_dry_run; then
+                 # Extract subdirectory from the argument.
+                 func_dirname "$arg" "/" ""
+                 xdir=$func_dirname_result
+
+                 func_lo2o "$arg"
+                 pic_object=$xdir$objdir/$func_lo2o_result
+                 non_pic_object=$xdir$func_lo2o_result
+                 func_append libobjs " $pic_object"
+                 func_append non_pic_objects " $non_pic_object"
+               else
+                 func_fatal_error "'$arg' is not a valid libtool object"
+               fi
+             fi
+           done
+         else
+           func_fatal_error "link input file '$arg' does not exist"
+         fi
+         arg=$save_arg
+         prev=
+         continue
+         ;;
+       precious_regex)
+         precious_files_regex=$arg
+         prev=
+         continue
+         ;;
+       release)
+         release=-$arg
+         prev=
+         continue
+         ;;
+       rpath | xrpath)
+         # We need an absolute path.
+         case $arg in
+         [\\/]* | [A-Za-z]:[\\/]*) ;;
+         *)
+           func_fatal_error "only absolute run-paths are allowed"
+           ;;
+         esac
+         if test rpath = "$prev"; then
+           case "$rpath " in
+           *" $arg "*) ;;
+           *) func_append rpath " $arg" ;;
+           esac
+         else
+           case "$xrpath " in
+           *" $arg "*) ;;
+           *) func_append xrpath " $arg" ;;
+           esac
+         fi
+         prev=
+         continue
+         ;;
+       shrext)
+         shrext_cmds=$arg
+         prev=
+         continue
+         ;;
+       weak)
+         func_append weak_libs " $arg"
+         prev=
+         continue
+         ;;
+       xcclinker)
+         func_append linker_flags " $qarg"
+         func_append compiler_flags " $qarg"
+         prev=
+         func_append compile_command " $qarg"
+         func_append finalize_command " $qarg"
+         continue
+         ;;
+       xcompiler)
+         func_append compiler_flags " $qarg"
+         prev=
+         func_append compile_command " $qarg"
+         func_append finalize_command " $qarg"
+         continue
+         ;;
+       xlinker)
+         func_append linker_flags " $qarg"
+         func_append compiler_flags " $wl$qarg"
+         prev=
+         func_append compile_command " $wl$qarg"
+         func_append finalize_command " $wl$qarg"
+         continue
+         ;;
+       *)
+         eval "$prev=\"\$arg\""
+         prev=
+         continue
+         ;;
+       esac
+      fi # test -n "$prev"
+
+      prevarg=$arg
+
+      case $arg in
+      -all-static)
+       if test -n "$link_static_flag"; then
+         # See comment for -static flag below, for more details.
+         func_append compile_command " $link_static_flag"
+         func_append finalize_command " $link_static_flag"
+       fi
+       continue
+       ;;
+
+      -allow-undefined)
+       # FIXME: remove this flag sometime in the future.
+       func_fatal_error "'-allow-undefined' must not be used because it is the default"
+       ;;
+
+      -avoid-version)
+       avoid_version=yes
+       continue
+       ;;
+
+      -bindir)
+       prev=bindir
+       continue
+       ;;
+
+      -dlopen)
+       prev=dlfiles
+       continue
+       ;;
+
+      -dlpreopen)
+       prev=dlprefiles
+       continue
+       ;;
+
+      -export-dynamic)
+       export_dynamic=yes
+       continue
+       ;;
+
+      -export-symbols | -export-symbols-regex)
+       if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
+         func_fatal_error "more than one -exported-symbols argument is not allowed"
+       fi
+       if test X-export-symbols = "X$arg"; then
+         prev=expsyms
+       else
+         prev=expsyms_regex
+       fi
+       continue
+       ;;
+
+      -framework)
+       prev=framework
+       continue
+       ;;
+
+      -inst-prefix-dir)
+       prev=inst_prefix
+       continue
+       ;;
+
+      # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
+      # so, if we see these flags be careful not to treat them like -L
+      -L[A-Z][A-Z]*:*)
+       case $with_gcc/$host in
+       no/*-*-irix* | /*-*-irix*)
+         func_append compile_command " $arg"
+         func_append finalize_command " $arg"
+         ;;
+       esac
+       continue
+       ;;
+
+      -L*)
+       func_stripname "-L" '' "$arg"
+       if test -z "$func_stripname_result"; then
+         if test "$#" -gt 0; then
+           func_fatal_error "require no space between '-L' and '$1'"
+         else
+           func_fatal_error "need path for '-L' option"
+         fi
+       fi
+       func_resolve_sysroot "$func_stripname_result"
+       dir=$func_resolve_sysroot_result
+       # We need an absolute path.
+       case $dir in
+       [\\/]* | [A-Za-z]:[\\/]*) ;;
+       *)
+         absdir=`cd "$dir" && pwd`
+         test -z "$absdir" && \
+           func_fatal_error "cannot determine absolute directory name of '$dir'"
+         dir=$absdir
+         ;;
+       esac
+       case "$deplibs " in
+       *" -L$dir "* | *" $arg "*)
+         # Will only happen for absolute or sysroot arguments
+         ;;
+       *)
+         # Preserve sysroot, but never include relative directories
+         case $dir in
+           [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
+           *) func_append deplibs " -L$dir" ;;
+         esac
+         func_append lib_search_path " $dir"
+         ;;
+       esac
+       case $host in
+       *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+         testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
+         case :$dllsearchpath: in
+         *":$dir:"*) ;;
+         ::) dllsearchpath=$dir;;
+         *) func_append dllsearchpath ":$dir";;
+         esac
+         case :$dllsearchpath: in
+         *":$testbindir:"*) ;;
+         ::) dllsearchpath=$testbindir;;
+         *) func_append dllsearchpath ":$testbindir";;
+         esac
+         ;;
+       esac
+       continue
+       ;;
+
+      -l*)
+       if test X-lc = "X$arg" || test X-lm = "X$arg"; then
+         case $host in
+         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
+           # These systems don't actually have a C or math library (as such)
+           continue
+           ;;
+         *-*-os2*)
+           # These systems don't actually have a C library (as such)
+           test X-lc = "X$arg" && continue
+           ;;
+         *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
+           # Do not include libc due to us having libc/libc_r.
+           test X-lc = "X$arg" && continue
+           ;;
+         *-*-rhapsody* | *-*-darwin1.[012])
+           # Rhapsody C and math libraries are in the System framework
+           func_append deplibs " System.ltframework"
+           continue
+           ;;
+         *-*-sco3.2v5* | *-*-sco5v6*)
+           # Causes problems with __ctype
+           test X-lc = "X$arg" && continue
+           ;;
+         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+           # Compiler inserts libc in the correct place for threads to work
+           test X-lc = "X$arg" && continue
+           ;;
+         esac
+       elif test X-lc_r = "X$arg"; then
+        case $host in
+        *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
+          # Do not include libc_r directly, use -pthread flag.
+          continue
+          ;;
+        esac
+       fi
+       func_append deplibs " $arg"
+       continue
+       ;;
+
+      -mllvm)
+       prev=mllvm
+       continue
+       ;;
+
+      -module)
+       module=yes
+       continue
+       ;;
+
+      # Tru64 UNIX uses -model [arg] to determine the layout of C++
+      # classes, name mangling, and exception handling.
+      # Darwin uses the -arch flag to determine output architecture.
+      -model|-arch|-isysroot|--sysroot)
+       func_append compiler_flags " $arg"
+       func_append compile_command " $arg"
+       func_append finalize_command " $arg"
+       prev=xcompiler
+       continue
+       ;;
+
+      -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
+      |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
+       func_append compiler_flags " $arg"
+       func_append compile_command " $arg"
+       func_append finalize_command " $arg"
+       case "$new_inherited_linker_flags " in
+           *" $arg "*) ;;
+           * ) func_append new_inherited_linker_flags " $arg" ;;
+       esac
+       continue
+       ;;
+
+      -multi_module)
+       single_module=$wl-multi_module
+       continue
+       ;;
+
+      -no-fast-install)
+       fast_install=no
+       continue
+       ;;
+
+      -no-install)
+       case $host in
+       *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
+         # The PATH hackery in wrapper scripts is required on Windows
+         # and Darwin in order for the loader to find any dlls it needs.
+         func_warning "'-no-install' is ignored for $host"
+         func_warning "assuming '-no-fast-install' instead"
+         fast_install=no
+         ;;
+       *) no_install=yes ;;
+       esac
+       continue
+       ;;
+
+      -no-undefined)
+       allow_undefined=no
+       continue
+       ;;
+
+      -objectlist)
+       prev=objectlist
+       continue
+       ;;
+
+      -o) prev=output ;;
+
+      -precious-files-regex)
+       prev=precious_regex
+       continue
+       ;;
+
+      -release)
+       prev=release
+       continue
+       ;;
+
+      -rpath)
+       prev=rpath
+       continue
+       ;;
+
+      -R)
+       prev=xrpath
+       continue
+       ;;
+
+      -R*)
+       func_stripname '-R' '' "$arg"
+       dir=$func_stripname_result
+       # We need an absolute path.
+       case $dir in
+       [\\/]* | [A-Za-z]:[\\/]*) ;;
+       =*)
+         func_stripname '=' '' "$dir"
+         dir=$lt_sysroot$func_stripname_result
+         ;;
+       *)
+         func_fatal_error "only absolute run-paths are allowed"
+         ;;
+       esac
+       case "$xrpath " in
+       *" $dir "*) ;;
+       *) func_append xrpath " $dir" ;;
+       esac
+       continue
+       ;;
+
+      -shared)
+       # The effects of -shared are defined in a previous loop.
+       continue
+       ;;
+
+      -shrext)
+       prev=shrext
+       continue
+       ;;
+
+      -static | -static-libtool-libs)
+       # The effects of -static are defined in a previous loop.
+       # We used to do the same as -all-static on platforms that
+       # didn't have a PIC flag, but the assumption that the effects
+       # would be equivalent was wrong.  It would break on at least
+       # Digital Unix and AIX.
+       continue
+       ;;
+
+      -thread-safe)
+       thread_safe=yes
+       continue
+       ;;
+
+      -version-info)
+       prev=vinfo
+       continue
+       ;;
+
+      -version-number)
+       prev=vinfo
+       vinfo_number=yes
+       continue
+       ;;
+
+      -weak)
+        prev=weak
+       continue
+       ;;
+
+      -Wc,*)
+       func_stripname '-Wc,' '' "$arg"
+       args=$func_stripname_result
+       arg=
+       save_ifs=$IFS; IFS=,
+       for flag in $args; do
+         IFS=$save_ifs
+          func_quote_for_eval "$flag"
+         func_append arg " $func_quote_for_eval_result"
+         func_append compiler_flags " $func_quote_for_eval_result"
+       done
+       IFS=$save_ifs
+       func_stripname ' ' '' "$arg"
+       arg=$func_stripname_result
+       ;;
+
+      -Wl,*)
+       func_stripname '-Wl,' '' "$arg"
+       args=$func_stripname_result
+       arg=
+       save_ifs=$IFS; IFS=,
+       for flag in $args; do
+         IFS=$save_ifs
+          func_quote_for_eval "$flag"
+         func_append arg " $wl$func_quote_for_eval_result"
+         func_append compiler_flags " $wl$func_quote_for_eval_result"
+         func_append linker_flags " $func_quote_for_eval_result"
+       done
+       IFS=$save_ifs
+       func_stripname ' ' '' "$arg"
+       arg=$func_stripname_result
+       ;;
+
+      -Xcompiler)
+       prev=xcompiler
+       continue
+       ;;
+
+      -Xlinker)
+       prev=xlinker
+       continue
+       ;;
+
+      -XCClinker)
+       prev=xcclinker
+       continue
+       ;;
+
+      # -msg_* for osf cc
+      -msg_*)
+       func_quote_for_eval "$arg"
+       arg=$func_quote_for_eval_result
+       ;;
+
+      # Flags to be passed through unchanged, with rationale:
+      # -64, -mips[0-9]      enable 64-bit mode for the SGI compiler
+      # -r[0-9][0-9]*        specify processor for the SGI compiler
+      # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
+      # +DA*, +DD*           enable 64-bit mode for the HP compiler
+      # -q*                  compiler args for the IBM compiler
+      # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
+      # -F/path              path to uninstalled frameworks, gcc on darwin
+      # -p, -pg, --coverage, -fprofile-*  profiling flags for GCC
+      # @file                GCC response files
+      # -tp=*                Portland pgcc target processor selection
+      # --sysroot=*          for sysroot support
+      # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
+      # -stdlib=*            select c++ std lib with clang
+      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
+      -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-stdlib=*)
+        func_quote_for_eval "$arg"
+       arg=$func_quote_for_eval_result
+        func_append compile_command " $arg"
+        func_append finalize_command " $arg"
+        func_append compiler_flags " $arg"
+        continue
+        ;;
+
+      # Some other compiler flag.
+      -* | +*)
+        func_quote_for_eval "$arg"
+       arg=$func_quote_for_eval_result
+       ;;
+
+      *.$objext)
+       # A standard object.
+       func_append objs " $arg"
+       ;;
+
+      *.lo)
+       # A libtool-controlled object.
+
+       # Check to see that this really is a libtool object.
+       if func_lalib_unsafe_p "$arg"; then
+         pic_object=
+         non_pic_object=
+
+         # Read the .lo file
+         func_source "$arg"
+
+         if test -z "$pic_object" ||
+            test -z "$non_pic_object" ||
+            test none = "$pic_object" &&
+            test none = "$non_pic_object"; then
+           func_fatal_error "cannot find name of object for '$arg'"
+         fi
+
+         # Extract subdirectory from the argument.
+         func_dirname "$arg" "/" ""
+         xdir=$func_dirname_result
+
+         test none = "$pic_object" || {
+           # Prepend the subdirectory the object is found in.
+           pic_object=$xdir$pic_object
+
+           if test dlfiles = "$prev"; then
+             if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
+               func_append dlfiles " $pic_object"
+               prev=
+               continue
+             else
+               # If libtool objects are unsupported, then we need to preload.
+               prev=dlprefiles
+             fi
+           fi
+
+           # CHECK ME:  I think I busted this.  -Ossama
+           if test dlprefiles = "$prev"; then
+             # Preload the old-style object.
+             func_append dlprefiles " $pic_object"
+             prev=
+           fi
+
+           # A PIC object.
+           func_append libobjs " $pic_object"
+           arg=$pic_object
+         }
+
+         # Non-PIC object.
+         if test none != "$non_pic_object"; then
+           # Prepend the subdirectory the object is found in.
+           non_pic_object=$xdir$non_pic_object
+
+           # A standard non-PIC object
+           func_append non_pic_objects " $non_pic_object"
+           if test -z "$pic_object" || test none = "$pic_object"; then
+             arg=$non_pic_object
+           fi
+         else
+           # If the PIC object exists, use it instead.
+           # $xdir was prepended to $pic_object above.
+           non_pic_object=$pic_object
+           func_append non_pic_objects " $non_pic_object"
+         fi
+       else
+         # Only an error if not doing a dry-run.
+         if $opt_dry_run; then
+           # Extract subdirectory from the argument.
+           func_dirname "$arg" "/" ""
+           xdir=$func_dirname_result
+
+           func_lo2o "$arg"
+           pic_object=$xdir$objdir/$func_lo2o_result
+           non_pic_object=$xdir$func_lo2o_result
+           func_append libobjs " $pic_object"
+           func_append non_pic_objects " $non_pic_object"
+         else
+           func_fatal_error "'$arg' is not a valid libtool object"
+         fi
+       fi
+       ;;
+
+      *.$libext)
+       # An archive.
+       func_append deplibs " $arg"
+       func_append old_deplibs " $arg"
+       continue
+       ;;
+
+      *.la)
+       # A libtool-controlled library.
+
+       func_resolve_sysroot "$arg"
+       if test dlfiles = "$prev"; then
+         # This library was specified with -dlopen.
+         func_append dlfiles " $func_resolve_sysroot_result"
+         prev=
+       elif test dlprefiles = "$prev"; then
+         # The library was specified with -dlpreopen.
+         func_append dlprefiles " $func_resolve_sysroot_result"
+         prev=
+       else
+         func_append deplibs " $func_resolve_sysroot_result"
+       fi
+       continue
+       ;;
+
+      # Some other compiler argument.
+      *)
+       # Unknown arguments in both finalize_command and compile_command need
+       # to be aesthetically quoted because they are evaled later.
+       func_quote_for_eval "$arg"
+       arg=$func_quote_for_eval_result
+       ;;
+      esac # arg
+
+      # Now actually substitute the argument into the commands.
+      if test -n "$arg"; then
+       func_append compile_command " $arg"
+       func_append finalize_command " $arg"
+      fi
+    done # argument parsing loop
+
+    test -n "$prev" && \
+      func_fatal_help "the '$prevarg' option requires an argument"
+
+    if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
+      eval arg=\"$export_dynamic_flag_spec\"
+      func_append compile_command " $arg"
+      func_append finalize_command " $arg"
+    fi
+
+    oldlibs=
+    # calculate the name of the file, without its directory
+    func_basename "$output"
+    outputname=$func_basename_result
+    libobjs_save=$libobjs
+
+    if test -n "$shlibpath_var"; then
+      # get the directories listed in $shlibpath_var
+      eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\`
+    else
+      shlib_search_path=
+    fi
+    eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
+    eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
+
+    func_dirname "$output" "/" ""
+    output_objdir=$func_dirname_result$objdir
+    func_to_tool_file "$output_objdir/"
+    tool_output_objdir=$func_to_tool_file_result
+    # Create the object directory.
+    func_mkdir_p "$output_objdir"
+
+    # Determine the type of output
+    case $output in
+    "")
+      func_fatal_help "you must specify an output file"
+      ;;
+    *.$libext) linkmode=oldlib ;;
+    *.lo | *.$objext) linkmode=obj ;;
+    *.la) linkmode=lib ;;
+    *) linkmode=prog ;; # Anything else should be a program.
+    esac
+
+    specialdeplibs=
+
+    libs=
+    # Find all interdependent deplibs by searching for libraries
+    # that are linked more than once (e.g. -la -lb -la)
+    for deplib in $deplibs; do
+      if $opt_preserve_dup_deps; then
+       case "$libs " in
+       *" $deplib "*) func_append specialdeplibs " $deplib" ;;
+       esac
+      fi
+      func_append libs " $deplib"
+    done
+
+    if test lib = "$linkmode"; then
+      libs="$predeps $libs $compiler_lib_search_path $postdeps"
+
+      # Compute libraries that are listed more than once in $predeps
+      # $postdeps and mark them as special (i.e., whose duplicates are
+      # not to be eliminated).
+      pre_post_deps=
+      if $opt_duplicate_compiler_generated_deps; then
+       for pre_post_dep in $predeps $postdeps; do
+         case "$pre_post_deps " in
+         *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
+         esac
+         func_append pre_post_deps " $pre_post_dep"
+       done
+      fi
+      pre_post_deps=
+    fi
+
+    deplibs=
+    newdependency_libs=
+    newlib_search_path=
+    need_relink=no # whether we're linking any uninstalled libtool libraries
+    notinst_deplibs= # not-installed libtool libraries
+    notinst_path= # paths that contain not-installed libtool libraries
+
+    case $linkmode in
+    lib)
+       passes="conv dlpreopen link"
+       for file in $dlfiles $dlprefiles; do
+         case $file in
+         *.la) ;;
+         *)
+           func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
+           ;;
+         esac
+       done
+       ;;
+    prog)
+       compile_deplibs=
+       finalize_deplibs=
+       alldeplibs=false
+       newdlfiles=
+       newdlprefiles=
+       passes="conv scan dlopen dlpreopen link"
+       ;;
+    *)  passes="conv"
+       ;;
+    esac
+
+    for pass in $passes; do
+      # The preopen pass in lib mode reverses $deplibs; put it back here
+      # so that -L comes before libs that need it for instance...
+      if test lib,link = "$linkmode,$pass"; then
+       ## FIXME: Find the place where the list is rebuilt in the wrong
+       ##        order, and fix it there properly
+        tmp_deplibs=
+       for deplib in $deplibs; do
+         tmp_deplibs="$deplib $tmp_deplibs"
+       done
+       deplibs=$tmp_deplibs
+      fi
+
+      if test lib,link = "$linkmode,$pass" ||
+        test prog,scan = "$linkmode,$pass"; then
+       libs=$deplibs
+       deplibs=
+      fi
+      if test prog = "$linkmode"; then
+       case $pass in
+       dlopen) libs=$dlfiles ;;
+       dlpreopen) libs=$dlprefiles ;;
+       link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
+       esac
+      fi
+      if test lib,dlpreopen = "$linkmode,$pass"; then
+       # Collect and forward deplibs of preopened libtool libs
+       for lib in $dlprefiles; do
+         # Ignore non-libtool-libs
+         dependency_libs=
+         func_resolve_sysroot "$lib"
+         case $lib in
+         *.la) func_source "$func_resolve_sysroot_result" ;;
+         esac
+
+         # Collect preopened libtool deplibs, except any this library
+         # has declared as weak libs
+         for deplib in $dependency_libs; do
+           func_basename "$deplib"
+            deplib_base=$func_basename_result
+           case " $weak_libs " in
+           *" $deplib_base "*) ;;
+           *) func_append deplibs " $deplib" ;;
+           esac
+         done
+       done
+       libs=$dlprefiles
+      fi
+      if test dlopen = "$pass"; then
+       # Collect dlpreopened libraries
+       save_deplibs=$deplibs
+       deplibs=
+      fi
+
+      for deplib in $libs; do
+       lib=
+       found=false
+       case $deplib in
+       -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
+        |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
+         if test prog,link = "$linkmode,$pass"; then
+           compile_deplibs="$deplib $compile_deplibs"
+           finalize_deplibs="$deplib $finalize_deplibs"
+         else
+           func_append compiler_flags " $deplib"
+           if test lib = "$linkmode"; then
+               case "$new_inherited_linker_flags " in
+                   *" $deplib "*) ;;
+                   * ) func_append new_inherited_linker_flags " $deplib" ;;
+               esac
+           fi
+         fi
+         continue
+         ;;
+       -l*)
+         if test lib != "$linkmode" && test prog != "$linkmode"; then
+           func_warning "'-l' is ignored for archives/objects"
+           continue
+         fi
+         func_stripname '-l' '' "$deplib"
+         name=$func_stripname_result
+         if test lib = "$linkmode"; then
+           searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
+         else
+           searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
+         fi
+         for searchdir in $searchdirs; do
+           for search_ext in .la $std_shrext .so .a; do
+             # Search the libtool library
+             lib=$searchdir/lib$name$search_ext
+             if test -f "$lib"; then
+               if test .la = "$search_ext"; then
+                 found=:
+               else
+                 found=false
+               fi
+               break 2
+             fi
+           done
+         done
+         if $found; then
+           # deplib is a libtool library
+           # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
+           # We need to do some special things here, and not later.
+           if test yes = "$allow_libtool_libs_with_static_runtimes"; then
+             case " $predeps $postdeps " in
+             *" $deplib "*)
+               if func_lalib_p "$lib"; then
+                 library_names=
+                 old_library=
+                 func_source "$lib"
+                 for l in $old_library $library_names; do
+                   ll=$l
+                 done
+                 if test "X$ll" = "X$old_library"; then # only static version available
+                   found=false
+                   func_dirname "$lib" "" "."
+                   ladir=$func_dirname_result
+                   lib=$ladir/$old_library
+                   if test prog,link = "$linkmode,$pass"; then
+                     compile_deplibs="$deplib $compile_deplibs"
+                     finalize_deplibs="$deplib $finalize_deplibs"
+                   else
+                     deplibs="$deplib $deplibs"
+                     test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
+                   fi
+                   continue
+                 fi
+               fi
+               ;;
+             *) ;;
+             esac
+           fi
+         else
+           # deplib doesn't seem to be a libtool library
+           if test prog,link = "$linkmode,$pass"; then
+             compile_deplibs="$deplib $compile_deplibs"
+             finalize_deplibs="$deplib $finalize_deplibs"
+           else
+             deplibs="$deplib $deplibs"
+             test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
+           fi
+           continue
+         fi
+         ;; # -l
+       *.ltframework)
+         if test prog,link = "$linkmode,$pass"; then
+           compile_deplibs="$deplib $compile_deplibs"
+           finalize_deplibs="$deplib $finalize_deplibs"
+         else
+           deplibs="$deplib $deplibs"
+           if test lib = "$linkmode"; then
+               case "$new_inherited_linker_flags " in
+                   *" $deplib "*) ;;
+                   * ) func_append new_inherited_linker_flags " $deplib" ;;
+               esac
+           fi
+         fi
+         continue
+         ;;
+       -L*)
+         case $linkmode in
+         lib)
+           deplibs="$deplib $deplibs"
+           test conv = "$pass" && continue
+           newdependency_libs="$deplib $newdependency_libs"
+           func_stripname '-L' '' "$deplib"
+           func_resolve_sysroot "$func_stripname_result"
+           func_append newlib_search_path " $func_resolve_sysroot_result"
+           ;;
+         prog)
+           if test conv = "$pass"; then
+             deplibs="$deplib $deplibs"
+             continue
+           fi
+           if test scan = "$pass"; then
+             deplibs="$deplib $deplibs"
+           else
+             compile_deplibs="$deplib $compile_deplibs"
+             finalize_deplibs="$deplib $finalize_deplibs"
+           fi
+           func_stripname '-L' '' "$deplib"
+           func_resolve_sysroot "$func_stripname_result"
+           func_append newlib_search_path " $func_resolve_sysroot_result"
+           ;;
+         *)
+           func_warning "'-L' is ignored for archives/objects"
+           ;;
+         esac # linkmode
+         continue
+         ;; # -L
+       -R*)
+         if test link = "$pass"; then
+           func_stripname '-R' '' "$deplib"
+           func_resolve_sysroot "$func_stripname_result"
+           dir=$func_resolve_sysroot_result
+           # Make sure the xrpath contains only unique directories.
+           case "$xrpath " in
+           *" $dir "*) ;;
+           *) func_append xrpath " $dir" ;;
+           esac
+         fi
+         deplibs="$deplib $deplibs"
+         continue
+         ;;
+       *.la)
+         func_resolve_sysroot "$deplib"
+         lib=$func_resolve_sysroot_result
+         ;;
+       *.$libext)
+         if test conv = "$pass"; then
+           deplibs="$deplib $deplibs"
+           continue
+         fi
+         case $linkmode in
+         lib)
+           # Linking convenience modules into shared libraries is allowed,
+           # but linking other static libraries is non-portable.
+           case " $dlpreconveniencelibs " in
+           *" $deplib "*) ;;
+           *)
+             valid_a_lib=false
+             case $deplibs_check_method in
+               match_pattern*)
+                 set dummy $deplibs_check_method; shift
+                 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+                 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
+                   | $EGREP "$match_pattern_regex" > /dev/null; then
+                   valid_a_lib=:
+                 fi
+               ;;
+               pass_all)
+                 valid_a_lib=:
+               ;;
+             esac
+             if $valid_a_lib; then
+               echo
+               $ECHO "*** Warning: Linking the shared library $output against the"
+               $ECHO "*** static library $deplib is not portable!"
+               deplibs="$deplib $deplibs"
+             else
+               echo
+               $ECHO "*** Warning: Trying to link with static lib archive $deplib."
+               echo "*** I have the capability to make that library automatically link in when"
+               echo "*** you link to this library.  But I can only do this if you have a"
+               echo "*** shared version of the library, which you do not appear to have"
+               echo "*** because the file extensions .$libext of this argument makes me believe"
+               echo "*** that it is just a static archive that I should not use here."
+             fi
+             ;;
+           esac
+           continue
+           ;;
+         prog)
+           if test link != "$pass"; then
+             deplibs="$deplib $deplibs"
+           else
+             compile_deplibs="$deplib $compile_deplibs"
+             finalize_deplibs="$deplib $finalize_deplibs"
+           fi
+           continue
+           ;;
+         esac # linkmode
+         ;; # *.$libext
+       *.lo | *.$objext)
+         if test conv = "$pass"; then
+           deplibs="$deplib $deplibs"
+         elif test prog = "$linkmode"; then
+           if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then
+             # If there is no dlopen support or we're linking statically,
+             # we need to preload.
+             func_append newdlprefiles " $deplib"
+             compile_deplibs="$deplib $compile_deplibs"
+             finalize_deplibs="$deplib $finalize_deplibs"
+           else
+             func_append newdlfiles " $deplib"
+           fi
+         fi
+         continue
+         ;;
+       %DEPLIBS%)
+         alldeplibs=:
+         continue
+         ;;
+       esac # case $deplib
+
+       $found || test -f "$lib" \
+         || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'"
+
+       # Check to see that this really is a libtool archive.
+       func_lalib_unsafe_p "$lib" \
+         || func_fatal_error "'$lib' is not a valid libtool archive"
+
+       func_dirname "$lib" "" "."
+       ladir=$func_dirname_result
+
+       dlname=
+       dlopen=
+       dlpreopen=
+       libdir=
+       library_names=
+       old_library=
+       inherited_linker_flags=
+       # If the library was installed with an old release of libtool,
+       # it will not redefine variables installed, or shouldnotlink
+       installed=yes
+       shouldnotlink=no
+       avoidtemprpath=
+
+
+       # Read the .la file
+       func_source "$lib"
+
+       # Convert "-framework foo" to "foo.ltframework"
+       if test -n "$inherited_linker_flags"; then
+         tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
+         for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
+           case " $new_inherited_linker_flags " in
+             *" $tmp_inherited_linker_flag "*) ;;
+             *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
+           esac
+         done
+       fi
+       dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
+       if test lib,link = "$linkmode,$pass" ||
+          test prog,scan = "$linkmode,$pass" ||
+          { test prog != "$linkmode" && test lib != "$linkmode"; }; then
+         test -n "$dlopen" && func_append dlfiles " $dlopen"
+         test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
+       fi
+
+       if test conv = "$pass"; then
+         # Only check for convenience libraries
+         deplibs="$lib $deplibs"
+         if test -z "$libdir"; then
+           if test -z "$old_library"; then
+             func_fatal_error "cannot find name of link library for '$lib'"
+           fi
+           # It is a libtool convenience library, so add in its objects.
+           func_append convenience " $ladir/$objdir/$old_library"
+           func_append old_convenience " $ladir/$objdir/$old_library"
+         elif test prog != "$linkmode" && test lib != "$linkmode"; then
+           func_fatal_error "'$lib' is not a convenience library"
+         fi
+         tmp_libs=
+         for deplib in $dependency_libs; do
+           deplibs="$deplib $deplibs"
+           if $opt_preserve_dup_deps; then
+             case "$tmp_libs " in
+             *" $deplib "*) func_append specialdeplibs " $deplib" ;;
+             esac
+           fi
+           func_append tmp_libs " $deplib"
+         done
+         continue
+       fi # $pass = conv
+
+
+       # Get the name of the library we link against.
+       linklib=
+       if test -n "$old_library" &&
+          { test yes = "$prefer_static_libs" ||
+            test built,no = "$prefer_static_libs,$installed"; }; then
+         linklib=$old_library
+       else
+         for l in $old_library $library_names; do
+           linklib=$l
+         done
+       fi
+       if test -z "$linklib"; then
+         func_fatal_error "cannot find name of link library for '$lib'"
+       fi
+
+       # This library was specified with -dlopen.
+       if test dlopen = "$pass"; then
+         test -z "$libdir" \
+           && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
+         if test -z "$dlname" ||
+            test yes != "$dlopen_support" ||
+            test no = "$build_libtool_libs"
+         then
+           # If there is no dlname, no dlopen support or we're linking
+           # statically, we need to preload.  We also need to preload any
+           # dependent libraries so libltdl's deplib preloader doesn't
+           # bomb out in the load deplibs phase.
+           func_append dlprefiles " $lib $dependency_libs"
+         else
+           func_append newdlfiles " $lib"
+         fi
+         continue
+       fi # $pass = dlopen
+
+       # We need an absolute path.
+       case $ladir in
+       [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
+       *)
+         abs_ladir=`cd "$ladir" && pwd`
+         if test -z "$abs_ladir"; then
+           func_warning "cannot determine absolute directory name of '$ladir'"
+           func_warning "passing it literally to the linker, although it might fail"
+           abs_ladir=$ladir
+         fi
+         ;;
+       esac
+       func_basename "$lib"
+       laname=$func_basename_result
+
+       # Find the relevant object directory and library name.
+       if test yes = "$installed"; then
+         if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+           func_warning "library '$lib' was moved."
+           dir=$ladir
+           absdir=$abs_ladir
+           libdir=$abs_ladir
+         else
+           dir=$lt_sysroot$libdir
+           absdir=$lt_sysroot$libdir
+         fi
+         test yes = "$hardcode_automatic" && avoidtemprpath=yes
+       else
+         if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+           dir=$ladir
+           absdir=$abs_ladir
+           # Remove this search path later
+           func_append notinst_path " $abs_ladir"
+         else
+           dir=$ladir/$objdir
+           absdir=$abs_ladir/$objdir
+           # Remove this search path later
+           func_append notinst_path " $abs_ladir"
+         fi
+       fi # $installed = yes
+       func_stripname 'lib' '.la' "$laname"
+       name=$func_stripname_result
+
+       # This library was specified with -dlpreopen.
+       if test dlpreopen = "$pass"; then
+         if test -z "$libdir" && test prog = "$linkmode"; then
+           func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
+         fi
+         case $host in
+           # special handling for platforms with PE-DLLs.
+           *cygwin* | *mingw* | *cegcc* )
+             # Linker will automatically link against shared library if both
+             # static and shared are present.  Therefore, ensure we extract
+             # symbols from the import library if a shared library is present
+             # (otherwise, the dlopen module name will be incorrect).  We do
+             # this by putting the import library name into $newdlprefiles.
+             # We recover the dlopen module name by 'saving' the la file
+             # name in a special purpose variable, and (later) extracting the
+             # dlname from the la file.
+             if test -n "$dlname"; then
+               func_tr_sh "$dir/$linklib"
+               eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
+               func_append newdlprefiles " $dir/$linklib"
+             else
+               func_append newdlprefiles " $dir/$old_library"
+               # Keep a list of preopened convenience libraries to check
+               # that they are being used correctly in the link pass.
+               test -z "$libdir" && \
+                 func_append dlpreconveniencelibs " $dir/$old_library"
+             fi
+           ;;
+           * )
+             # Prefer using a static library (so that no silly _DYNAMIC symbols
+             # are required to link).
+             if test -n "$old_library"; then
+               func_append newdlprefiles " $dir/$old_library"
+               # Keep a list of preopened convenience libraries to check
+               # that they are being used correctly in the link pass.
+               test -z "$libdir" && \
+                 func_append dlpreconveniencelibs " $dir/$old_library"
+             # Otherwise, use the dlname, so that lt_dlopen finds it.
+             elif test -n "$dlname"; then
+               func_append newdlprefiles " $dir/$dlname"
+             else
+               func_append newdlprefiles " $dir/$linklib"
+             fi
+           ;;
+         esac
+       fi # $pass = dlpreopen
+
+       if test -z "$libdir"; then
+         # Link the convenience library
+         if test lib = "$linkmode"; then
+           deplibs="$dir/$old_library $deplibs"
+         elif test prog,link = "$linkmode,$pass"; then
+           compile_deplibs="$dir/$old_library $compile_deplibs"
+           finalize_deplibs="$dir/$old_library $finalize_deplibs"
+         else
+           deplibs="$lib $deplibs" # used for prog,scan pass
+         fi
+         continue
+       fi
+
+
+       if test prog = "$linkmode" && test link != "$pass"; then
+         func_append newlib_search_path " $ladir"
+         deplibs="$lib $deplibs"
+
+         linkalldeplibs=false
+         if test no != "$link_all_deplibs" || test -z "$library_names" ||
+            test no = "$build_libtool_libs"; then
+           linkalldeplibs=:
+         fi
+
+         tmp_libs=
+         for deplib in $dependency_libs; do
+           case $deplib in
+           -L*) func_stripname '-L' '' "$deplib"
+                func_resolve_sysroot "$func_stripname_result"
+                func_append newlib_search_path " $func_resolve_sysroot_result"
+                ;;
+           esac
+           # Need to link against all dependency_libs?
+           if $linkalldeplibs; then
+             deplibs="$deplib $deplibs"
+           else
+             # Need to hardcode shared library paths
+             # or/and link against static libraries
+             newdependency_libs="$deplib $newdependency_libs"
+           fi
+           if $opt_preserve_dup_deps; then
+             case "$tmp_libs " in
+             *" $deplib "*) func_append specialdeplibs " $deplib" ;;
+             esac
+           fi
+           func_append tmp_libs " $deplib"
+         done # for deplib
+         continue
+       fi # $linkmode = prog...
+
+       if test prog,link = "$linkmode,$pass"; then
+         if test -n "$library_names" &&
+            { { test no = "$prefer_static_libs" ||
+                test built,yes = "$prefer_static_libs,$installed"; } ||
+              test -z "$old_library"; }; then
+           # We need to hardcode the library path
+           if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
+             # Make sure the rpath contains only unique directories.
+             case $temp_rpath: in
+             *"$absdir:"*) ;;
+             *) func_append temp_rpath "$absdir:" ;;
+             esac
+           fi
+
+           # Hardcode the library path.
+           # Skip directories that are in the system default run-time
+           # search path.
+           case " $sys_lib_dlsearch_path " in
+           *" $absdir "*) ;;
+           *)
+             case "$compile_rpath " in
+             *" $absdir "*) ;;
+             *) func_append compile_rpath " $absdir" ;;
+             esac
+             ;;
+           esac
+           case " $sys_lib_dlsearch_path " in
+           *" $libdir "*) ;;
+           *)
+             case "$finalize_rpath " in
+             *" $libdir "*) ;;
+             *) func_append finalize_rpath " $libdir" ;;
+             esac
+             ;;
+           esac
+         fi # $linkmode,$pass = prog,link...
+
+         if $alldeplibs &&
+            { test pass_all = "$deplibs_check_method" ||
+              { test yes = "$build_libtool_libs" &&
+                test -n "$library_names"; }; }; then
+           # We only need to search for static libraries
+           continue
+         fi
+       fi
+
+       link_static=no # Whether the deplib will be linked statically
+       use_static_libs=$prefer_static_libs
+       if test built = "$use_static_libs" && test yes = "$installed"; then
+         use_static_libs=no
+       fi
+       if test -n "$library_names" &&
+          { test no = "$use_static_libs" || test -z "$old_library"; }; then
+         case $host in
+         *cygwin* | *mingw* | *cegcc*)
+             # No point in relinking DLLs because paths are not encoded
+             func_append notinst_deplibs " $lib"
+             need_relink=no
+           ;;
+         *)
+           if test no = "$installed"; then
+             func_append notinst_deplibs " $lib"
+             need_relink=yes
+           fi
+           ;;
+         esac
+         # This is a shared library
+
+         # Warn about portability, can't link against -module's on some
+         # systems (darwin).  Don't bleat about dlopened modules though!
+         dlopenmodule=
+         for dlpremoduletest in $dlprefiles; do
+           if test "X$dlpremoduletest" = "X$lib"; then
+             dlopenmodule=$dlpremoduletest
+             break
+           fi
+         done
+         if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
+           echo
+           if test prog = "$linkmode"; then
+             $ECHO "*** Warning: Linking the executable $output against the loadable module"
+           else
+             $ECHO "*** Warning: Linking the shared library $output against the loadable module"
+           fi
+           $ECHO "*** $linklib is not portable!"
+         fi
+         if test lib = "$linkmode" &&
+            test yes = "$hardcode_into_libs"; then
+           # Hardcode the library path.
+           # Skip directories that are in the system default run-time
+           # search path.
+           case " $sys_lib_dlsearch_path " in
+           *" $absdir "*) ;;
+           *)
+             case "$compile_rpath " in
+             *" $absdir "*) ;;
+             *) func_append compile_rpath " $absdir" ;;
+             esac
+             ;;
+           esac
+           case " $sys_lib_dlsearch_path " in
+           *" $libdir "*) ;;
+           *)
+             case "$finalize_rpath " in
+             *" $libdir "*) ;;
+             *) func_append finalize_rpath " $libdir" ;;
+             esac
+             ;;
+           esac
+         fi
+
+         if test -n "$old_archive_from_expsyms_cmds"; then
+           # figure out the soname
+           set dummy $library_names
+           shift
+           realname=$1
+           shift
+           libname=`eval "\\$ECHO \"$libname_spec\""`
+           # use dlname if we got it. it's perfectly good, no?
+           if test -n "$dlname"; then
+             soname=$dlname
+           elif test -n "$soname_spec"; then
+             # bleh windows
+             case $host in
+             *cygwin* | mingw* | *cegcc*)
+               func_arith $current - $age
+               major=$func_arith_result
+               versuffix=-$major
+               ;;
+             esac
+             eval soname=\"$soname_spec\"
+           else
+             soname=$realname
+           fi
+
+           # Make a new name for the extract_expsyms_cmds to use
+           soroot=$soname
+           func_basename "$soroot"
+           soname=$func_basename_result
+           func_stripname 'lib' '.dll' "$soname"
+           newlib=libimp-$func_stripname_result.a
+
+           # If the library has no export list, then create one now
+           if test -f "$output_objdir/$soname-def"; then :
+           else
+             func_verbose "extracting exported symbol list from '$soname'"
+             func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
+           fi
+
+           # Create $newlib
+           if test -f "$output_objdir/$newlib"; then :; else
+             func_verbose "generating import library for '$soname'"
+             func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
+           fi
+           # make sure the library variables are pointing to the new library
+           dir=$output_objdir
+           linklib=$newlib
+         fi # test -n "$old_archive_from_expsyms_cmds"
+
+         if test prog = "$linkmode" || test relink != "$opt_mode"; then
+           add_shlibpath=
+           add_dir=
+           add=
+           lib_linked=yes
+           case $hardcode_action in
+           immediate | unsupported)
+             if test no = "$hardcode_direct"; then
+               add=$dir/$linklib
+               case $host in
+                 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
+                 *-*-sysv4*uw2*) add_dir=-L$dir ;;
+                 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
+                   *-*-unixware7*) add_dir=-L$dir ;;
+                 *-*-darwin* )
+                   # if the lib is a (non-dlopened) module then we cannot
+                   # link against it, someone is ignoring the earlier warnings
+                   if /usr/bin/file -L $add 2> /dev/null |
+                        $GREP ": [^:]* bundle" >/dev/null; then
+                     if test "X$dlopenmodule" != "X$lib"; then
+                       $ECHO "*** Warning: lib $linklib is a module, not a shared library"
+                       if test -z "$old_library"; then
+                         echo
+                         echo "*** And there doesn't seem to be a static archive available"
+                         echo "*** The link will probably fail, sorry"
+                       else
+                         add=$dir/$old_library
+                       fi
+                     elif test -n "$old_library"; then
+                       add=$dir/$old_library
+                     fi
+                   fi
+               esac
+             elif test no = "$hardcode_minus_L"; then
+               case $host in
+               *-*-sunos*) add_shlibpath=$dir ;;
+               esac
+               add_dir=-L$dir
+               add=-l$name
+             elif test no = "$hardcode_shlibpath_var"; then
+               add_shlibpath=$dir
+               add=-l$name
+             else
+               lib_linked=no
+             fi
+             ;;
+           relink)
+             if test yes = "$hardcode_direct" &&
+                test no = "$hardcode_direct_absolute"; then
+               add=$dir/$linklib
+             elif test yes = "$hardcode_minus_L"; then
+               add_dir=-L$absdir
+               # Try looking first in the location we're being installed to.
+               if test -n "$inst_prefix_dir"; then
+                 case $libdir in
+                   [\\/]*)
+                     func_append add_dir " -L$inst_prefix_dir$libdir"
+                     ;;
+                 esac
+               fi
+               add=-l$name
+             elif test yes = "$hardcode_shlibpath_var"; then
+               add_shlibpath=$dir
+               add=-l$name
+             else
+               lib_linked=no
+             fi
+             ;;
+           *) lib_linked=no ;;
+           esac
+
+           if test yes != "$lib_linked"; then
+             func_fatal_configuration "unsupported hardcode properties"
+           fi
+
+           if test -n "$add_shlibpath"; then
+             case :$compile_shlibpath: in
+             *":$add_shlibpath:"*) ;;
+             *) func_append compile_shlibpath "$add_shlibpath:" ;;
+             esac
+           fi
+           if test prog = "$linkmode"; then
+             test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
+             test -n "$add" && compile_deplibs="$add $compile_deplibs"
+           else
+             test -n "$add_dir" && deplibs="$add_dir $deplibs"
+             test -n "$add" && deplibs="$add $deplibs"
+             if test yes != "$hardcode_direct" &&
+                test yes != "$hardcode_minus_L" &&
+                test yes = "$hardcode_shlibpath_var"; then
+               case :$finalize_shlibpath: in
+               *":$libdir:"*) ;;
+               *) func_append finalize_shlibpath "$libdir:" ;;
+               esac
+             fi
+           fi
+         fi
+
+         if test prog = "$linkmode" || test relink = "$opt_mode"; then
+           add_shlibpath=
+           add_dir=
+           add=
+           # Finalize command for both is simple: just hardcode it.
+           if test yes = "$hardcode_direct" &&
+              test no = "$hardcode_direct_absolute"; then
+             add=$libdir/$linklib
+           elif test yes = "$hardcode_minus_L"; then
+             add_dir=-L$libdir
+             add=-l$name
+           elif test yes = "$hardcode_shlibpath_var"; then
+             case :$finalize_shlibpath: in
+             *":$libdir:"*) ;;
+             *) func_append finalize_shlibpath "$libdir:" ;;
+             esac
+             add=-l$name
+           elif test yes = "$hardcode_automatic"; then
+             if test -n "$inst_prefix_dir" &&
+                test -f "$inst_prefix_dir$libdir/$linklib"; then
+               add=$inst_prefix_dir$libdir/$linklib
+             else
+               add=$libdir/$linklib
+             fi
+           else
+             # We cannot seem to hardcode it, guess we'll fake it.
+             add_dir=-L$libdir
+             # Try looking first in the location we're being installed to.
+             if test -n "$inst_prefix_dir"; then
+               case $libdir in
+                 [\\/]*)
+                   func_append add_dir " -L$inst_prefix_dir$libdir"
+                   ;;
+               esac
+             fi
+             add=-l$name
+           fi
+
+           if test prog = "$linkmode"; then
+             test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
+             test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
+           else
+             test -n "$add_dir" && deplibs="$add_dir $deplibs"
+             test -n "$add" && deplibs="$add $deplibs"
+           fi
+         fi
+       elif test prog = "$linkmode"; then
+         # Here we assume that one of hardcode_direct or hardcode_minus_L
+         # is not unsupported.  This is valid on all known static and
+         # shared platforms.
+         if test unsupported != "$hardcode_direct"; then
+           test -n "$old_library" && linklib=$old_library
+           compile_deplibs="$dir/$linklib $compile_deplibs"
+           finalize_deplibs="$dir/$linklib $finalize_deplibs"
+         else
+           compile_deplibs="-l$name -L$dir $compile_deplibs"
+           finalize_deplibs="-l$name -L$dir $finalize_deplibs"
+         fi
+       elif test yes = "$build_libtool_libs"; then
+         # Not a shared library
+         if test pass_all != "$deplibs_check_method"; then
+           # We're trying link a shared library against a static one
+           # but the system doesn't support it.
+
+           # Just print a warning and add the library to dependency_libs so
+           # that the program can be linked against the static library.
+           echo
+           $ECHO "*** Warning: This system cannot link to static lib archive $lib."
+           echo "*** I have the capability to make that library automatically link in when"
+           echo "*** you link to this library.  But I can only do this if you have a"
+           echo "*** shared version of the library, which you do not appear to have."
+           if test yes = "$module"; then
+             echo "*** But as you try to build a module library, libtool will still create "
+             echo "*** a static module, that should work as long as the dlopening application"
+             echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
+             if test -z "$global_symbol_pipe"; then
+               echo
+               echo "*** However, this would only work if libtool was able to extract symbol"
+               echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
+               echo "*** not find such a program.  So, this module is probably useless."
+               echo "*** 'nm' from GNU binutils and a full rebuild may help."
+             fi
+             if test no = "$build_old_libs"; then
+               build_libtool_libs=module
+               build_old_libs=yes
+             else
+               build_libtool_libs=no
+             fi
+           fi
+         else
+           deplibs="$dir/$old_library $deplibs"
+           link_static=yes
+         fi
+       fi # link shared/static library?
+
+       if test lib = "$linkmode"; then
+         if test -n "$dependency_libs" &&
+            { test yes != "$hardcode_into_libs" ||
+              test yes = "$build_old_libs" ||
+              test yes = "$link_static"; }; then
+           # Extract -R from dependency_libs
+           temp_deplibs=
+           for libdir in $dependency_libs; do
+             case $libdir in
+             -R*) func_stripname '-R' '' "$libdir"
+                  temp_xrpath=$func_stripname_result
+                  case " $xrpath " in
+                  *" $temp_xrpath "*) ;;
+                  *) func_append xrpath " $temp_xrpath";;
+                  esac;;
+             *) func_append temp_deplibs " $libdir";;
+             esac
+           done
+           dependency_libs=$temp_deplibs
+         fi
+
+         func_append newlib_search_path " $absdir"
+         # Link against this library
+         test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
+         # ... and its dependency_libs
+         tmp_libs=
+         for deplib in $dependency_libs; do
+           newdependency_libs="$deplib $newdependency_libs"
+           case $deplib in
+              -L*) func_stripname '-L' '' "$deplib"
+                   func_resolve_sysroot "$func_stripname_result";;
+              *) func_resolve_sysroot "$deplib" ;;
+            esac
+           if $opt_preserve_dup_deps; then
+             case "$tmp_libs " in
+             *" $func_resolve_sysroot_result "*)
+                func_append specialdeplibs " $func_resolve_sysroot_result" ;;
+             esac
+           fi
+           func_append tmp_libs " $func_resolve_sysroot_result"
+         done
+
+         if test no != "$link_all_deplibs"; then
+           # Add the search paths of all dependency libraries
+           for deplib in $dependency_libs; do
+             path=
+             case $deplib in
+             -L*) path=$deplib ;;
+             *.la)
+               func_resolve_sysroot "$deplib"
+               deplib=$func_resolve_sysroot_result
+               func_dirname "$deplib" "" "."
+               dir=$func_dirname_result
+               # We need an absolute path.
+               case $dir in
+               [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
+               *)
+                 absdir=`cd "$dir" && pwd`
+                 if test -z "$absdir"; then
+                   func_warning "cannot determine absolute directory name of '$dir'"
+                   absdir=$dir
+                 fi
+                 ;;
+               esac
+               if $GREP "^installed=no" $deplib > /dev/null; then
+               case $host in
+               *-*-darwin*)
+                 depdepl=
+                 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
+                 if test -n "$deplibrary_names"; then
+                   for tmp in $deplibrary_names; do
+                     depdepl=$tmp
+                   done
+                   if test -f "$absdir/$objdir/$depdepl"; then
+                     depdepl=$absdir/$objdir/$depdepl
+                     darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
+                      if test -z "$darwin_install_name"; then
+                          darwin_install_name=`$OTOOL64 -L $depdepl  | awk '{if (NR == 2) {print $1;exit}}'`
+                      fi
+                     func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
+                     func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
+                     path=
+                   fi
+                 fi
+                 ;;
+               *)
+                 path=-L$absdir/$objdir
+                 ;;
+               esac
+               else
+                 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+                 test -z "$libdir" && \
+                   func_fatal_error "'$deplib' is not a valid libtool archive"
+                 test "$absdir" != "$libdir" && \
+                   func_warning "'$deplib' seems to be moved"
+
+                 path=-L$absdir
+               fi
+               ;;
+             esac
+             case " $deplibs " in
+             *" $path "*) ;;
+             *) deplibs="$path $deplibs" ;;
+             esac
+           done
+         fi # link_all_deplibs != no
+       fi # linkmode = lib
+      done # for deplib in $libs
+      if test link = "$pass"; then
+       if test prog = "$linkmode"; then
+         compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
+         finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
+       else
+         compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
+       fi
+      fi
+      dependency_libs=$newdependency_libs
+      if test dlpreopen = "$pass"; then
+       # Link the dlpreopened libraries before other libraries
+       for deplib in $save_deplibs; do
+         deplibs="$deplib $deplibs"
+       done
+      fi
+      if test dlopen != "$pass"; then
+       test conv = "$pass" || {
+         # Make sure lib_search_path contains only unique directories.
+         lib_search_path=
+         for dir in $newlib_search_path; do
+           case "$lib_search_path " in
+           *" $dir "*) ;;
+           *) func_append lib_search_path " $dir" ;;
+           esac
+         done
+         newlib_search_path=
+       }
+
+       if test prog,link = "$linkmode,$pass"; then
+         vars="compile_deplibs finalize_deplibs"
+       else
+         vars=deplibs
+       fi
+       for var in $vars dependency_libs; do
+         # Add libraries to $var in reverse order
+         eval tmp_libs=\"\$$var\"
+         new_libs=
+         for deplib in $tmp_libs; do
+           # FIXME: Pedantically, this is the right thing to do, so
+           #        that some nasty dependency loop isn't accidentally
+           #        broken:
+           #new_libs="$deplib $new_libs"
+           # Pragmatically, this seems to cause very few problems in
+           # practice:
+           case $deplib in
+           -L*) new_libs="$deplib $new_libs" ;;
+           -R*) ;;
+           *)
+             # And here is the reason: when a library appears more
+             # than once as an explicit dependence of a library, or
+             # is implicitly linked in more than once by the
+             # compiler, it is considered special, and multiple
+             # occurrences thereof are not removed.  Compare this
+             # with having the same library being listed as a
+             # dependency of multiple other libraries: in this case,
+             # we know (pedantically, we assume) the library does not
+             # need to be listed more than once, so we keep only the
+             # last copy.  This is not always right, but it is rare
+             # enough that we require users that really mean to play
+             # such unportable linking tricks to link the library
+             # using -Wl,-lname, so that libtool does not consider it
+             # for duplicate removal.
+             case " $specialdeplibs " in
+             *" $deplib "*) new_libs="$deplib $new_libs" ;;
+             *)
+               case " $new_libs " in
+               *" $deplib "*) ;;
+               *) new_libs="$deplib $new_libs" ;;
+               esac
+               ;;
+             esac
+             ;;
+           esac
+         done
+         tmp_libs=
+         for deplib in $new_libs; do
+           case $deplib in
+           -L*)
+             case " $tmp_libs " in
+             *" $deplib "*) ;;
+             *) func_append tmp_libs " $deplib" ;;
+             esac
+             ;;
+           *) func_append tmp_libs " $deplib" ;;
+           esac
+         done
+         eval $var=\"$tmp_libs\"
+       done # for var
+      fi
+      # Last step: remove runtime libs from dependency_libs
+      # (they stay in deplibs)
+      tmp_libs=
+      for i in $dependency_libs; do
+       case " $predeps $postdeps $compiler_lib_search_path " in
+       *" $i "*)
+         i=
+         ;;
+       esac
+       if test -n "$i"; then
+         func_append tmp_libs " $i"
+       fi
+      done
+      dependency_libs=$tmp_libs
+    done # for pass
+    if test prog = "$linkmode"; then
+      dlfiles=$newdlfiles
+    fi
+    if test prog = "$linkmode" || test lib = "$linkmode"; then
+      dlprefiles=$newdlprefiles
+    fi
+
+    case $linkmode in
+    oldlib)
+      if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
+       func_warning "'-dlopen' is ignored for archives"
+      fi
+
+      case " $deplibs" in
+      *\ -l* | *\ -L*)
+       func_warning "'-l' and '-L' are ignored for archives" ;;
+      esac
+
+      test -n "$rpath" && \
+       func_warning "'-rpath' is ignored for archives"
+
+      test -n "$xrpath" && \
+       func_warning "'-R' is ignored for archives"
+
+      test -n "$vinfo" && \
+       func_warning "'-version-info/-version-number' is ignored for archives"
+
+      test -n "$release" && \
+       func_warning "'-release' is ignored for archives"
+
+      test -n "$export_symbols$export_symbols_regex" && \
+       func_warning "'-export-symbols' is ignored for archives"
+
+      # Now set the variables for building old libraries.
+      build_libtool_libs=no
+      oldlibs=$output
+      func_append objs "$old_deplibs"
+      ;;
+
+    lib)
+      # Make sure we only generate libraries of the form 'libNAME.la'.
+      case $outputname in
+      lib*)
+       func_stripname 'lib' '.la' "$outputname"
+       name=$func_stripname_result
+       eval shared_ext=\"$shrext_cmds\"
+       eval libname=\"$libname_spec\"
+       ;;
+      *)
+       test no = "$module" \
+         && func_fatal_help "libtool library '$output' must begin with 'lib'"
+
+       if test no != "$need_lib_prefix"; then
+         # Add the "lib" prefix for modules if required
+         func_stripname '' '.la' "$outputname"
+         name=$func_stripname_result
+         eval shared_ext=\"$shrext_cmds\"
+         eval libname=\"$libname_spec\"
+       else
+         func_stripname '' '.la' "$outputname"
+         libname=$func_stripname_result
+       fi
+       ;;
+      esac
+
+      if test -n "$objs"; then
+       if test pass_all != "$deplibs_check_method"; then
+         func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs"
+       else
+         echo
+         $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
+         $ECHO "*** objects $objs is not portable!"
+         func_append libobjs " $objs"
+       fi
+      fi
+
+      test no = "$dlself" \
+       || func_warning "'-dlopen self' is ignored for libtool libraries"
+
+      set dummy $rpath
+      shift
+      test 1 -lt "$#" \
+       && func_warning "ignoring multiple '-rpath's for a libtool library"
+
+      install_libdir=$1
+
+      oldlibs=
+      if test -z "$rpath"; then
+       if test yes = "$build_libtool_libs"; then
+         # Building a libtool convenience library.
+         # Some compilers have problems with a '.al' extension so
+         # convenience libraries should have the same extension an
+         # archive normally would.
+         oldlibs="$output_objdir/$libname.$libext $oldlibs"
+         build_libtool_libs=convenience
+         build_old_libs=yes
+       fi
+
+       test -n "$vinfo" && \
+         func_warning "'-version-info/-version-number' is ignored for convenience libraries"
+
+       test -n "$release" && \
+         func_warning "'-release' is ignored for convenience libraries"
+      else
+
+       # Parse the version information argument.
+       save_ifs=$IFS; IFS=:
+       set dummy $vinfo 0 0 0
+       shift
+       IFS=$save_ifs
+
+       test -n "$7" && \
+         func_fatal_help "too many parameters to '-version-info'"
+
+       # convert absolute version numbers to libtool ages
+       # this retains compatibility with .la files and attempts
+       # to make the code below a bit more comprehensible
+
+       case $vinfo_number in
+       yes)
+         number_major=$1
+         number_minor=$2
+         number_revision=$3
+         #
+         # There are really only two kinds -- those that
+         # use the current revision as the major version
+         # and those that subtract age and use age as
+         # a minor version.  But, then there is irix
+         # that has an extra 1 added just for fun
+         #
+         case $version_type in
+         # correct linux to gnu/linux during the next big refactor
+         darwin|linux|osf|windows|none)
+           func_arith $number_major + $number_minor
+           current=$func_arith_result
+           age=$number_minor
+           revision=$number_revision
+           ;;
+         freebsd-aout|freebsd-elf|qnx|sunos)
+           current=$number_major
+           revision=$number_minor
+           age=0
+           ;;
+         irix|nonstopux)
+           func_arith $number_major + $number_minor
+           current=$func_arith_result
+           age=$number_minor
+           revision=$number_minor
+           lt_irix_increment=no
+           ;;
+         esac
+         ;;
+       no)
+         current=$1
+         revision=$2
+         age=$3
+         ;;
+       esac
+
+       # Check that each of the things are valid numbers.
+       case $current in
+       0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+       *)
+         func_error "CURRENT '$current' must be a nonnegative integer"
+         func_fatal_error "'$vinfo' is not valid version information"
+         ;;
+       esac
+
+       case $revision in
+       0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+       *)
+         func_error "REVISION '$revision' must be a nonnegative integer"
+         func_fatal_error "'$vinfo' is not valid version information"
+         ;;
+       esac
+
+       case $age in
+       0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+       *)
+         func_error "AGE '$age' must be a nonnegative integer"
+         func_fatal_error "'$vinfo' is not valid version information"
+         ;;
+       esac
+
+       if test "$age" -gt "$current"; then
+         func_error "AGE '$age' is greater than the current interface number '$current'"
+         func_fatal_error "'$vinfo' is not valid version information"
+       fi
+
+       # Calculate the version variables.
+       major=
+       versuffix=
+       verstring=
+       case $version_type in
+       none) ;;
+
+       darwin)
+         # Like Linux, but with the current version available in
+         # verstring for coding it into the library header
+         func_arith $current - $age
+         major=.$func_arith_result
+         versuffix=$major.$age.$revision
+         # Darwin ld doesn't like 0 for these options...
+         func_arith $current + 1
+         minor_current=$func_arith_result
+         xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
+         verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+          # On Darwin other compilers
+          case $CC in
+              nagfor*)
+                  verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
+                  ;;
+              *)
+                  verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+                  ;;
+          esac
+         ;;
+
+       freebsd-aout)
+         major=.$current
+         versuffix=.$current.$revision
+         ;;
+
+       freebsd-elf)
+         major=.$current
+         versuffix=.$current
+         ;;
+
+       irix | nonstopux)
+         if test no = "$lt_irix_increment"; then
+           func_arith $current - $age
+         else
+           func_arith $current - $age + 1
+         fi
+         major=$func_arith_result
+
+         case $version_type in
+           nonstopux) verstring_prefix=nonstopux ;;
+           *)         verstring_prefix=sgi ;;
+         esac
+         verstring=$verstring_prefix$major.$revision
+
+         # Add in all the interfaces that we are compatible with.
+         loop=$revision
+         while test 0 -ne "$loop"; do
+           func_arith $revision - $loop
+           iface=$func_arith_result
+           func_arith $loop - 1
+           loop=$func_arith_result
+           verstring=$verstring_prefix$major.$iface:$verstring
+         done
+
+         # Before this point, $major must not contain '.'.
+         major=.$major
+         versuffix=$major.$revision
+         ;;
+
+       linux) # correct to gnu/linux during the next big refactor
+         func_arith $current - $age
+         major=.$func_arith_result
+         versuffix=$major.$age.$revision
+         ;;
+
+       osf)
+         func_arith $current - $age
+         major=.$func_arith_result
+         versuffix=.$current.$age.$revision
+         verstring=$current.$age.$revision
+
+         # Add in all the interfaces that we are compatible with.
+         loop=$age
+         while test 0 -ne "$loop"; do
+           func_arith $current - $loop
+           iface=$func_arith_result
+           func_arith $loop - 1
+           loop=$func_arith_result
+           verstring=$verstring:$iface.0
+         done
+
+         # Make executables depend on our current version.
+         func_append verstring ":$current.0"
+         ;;
+
+       qnx)
+         major=.$current
+         versuffix=.$current
+         ;;
+
+       sunos)
+         major=.$current
+         versuffix=.$current.$revision
+         ;;
+
+       windows)
+         # Use '-' rather than '.', since we only want one
+         # extension on DOS 8.3 file systems.
+         func_arith $current - $age
+         major=$func_arith_result
+         versuffix=-$major
+         ;;
+
+       *)
+         func_fatal_configuration "unknown library version type '$version_type'"
+         ;;
+       esac
+
+       # Clear the version info if we defaulted, and they specified a release.
+       if test -z "$vinfo" && test -n "$release"; then
+         major=
+         case $version_type in
+         darwin)
+           # we can't check for "0.0" in archive_cmds due to quoting
+           # problems, so we reset it completely
+           verstring=
+           ;;
+         *)
+           verstring=0.0
+           ;;
+         esac
+         if test no = "$need_version"; then
+           versuffix=
+         else
+           versuffix=.0.0
+         fi
+       fi
+
+       # Remove version info from name if versioning should be avoided
+       if test yes,no = "$avoid_version,$need_version"; then
+         major=
+         versuffix=
+         verstring=
+       fi
+
+       # Check to see if the archive will have undefined symbols.
+       if test yes = "$allow_undefined"; then
+         if test unsupported = "$allow_undefined_flag"; then
+           if test yes = "$build_old_libs"; then
+             func_warning "undefined symbols not allowed in $host shared libraries; building static only"
+             build_libtool_libs=no
+           else
+             func_fatal_error "can't build $host shared library unless -no-undefined is specified"
+           fi
+         fi
+       else
+         # Don't allow undefined symbols.
+         allow_undefined_flag=$no_undefined_flag
+       fi
+
+      fi
+
+      func_generate_dlsyms "$libname" "$libname" :
+      func_append libobjs " $symfileobj"
+      test " " = "$libobjs" && libobjs=
+
+      if test relink != "$opt_mode"; then
+       # Remove our outputs, but don't remove object files since they
+       # may have been created when compiling PIC objects.
+       removelist=
+       tempremovelist=`$ECHO "$output_objdir/*"`
+       for p in $tempremovelist; do
+         case $p in
+           *.$objext | *.gcno)
+              ;;
+           $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*)
+              if test -n "$precious_files_regex"; then
+                if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
+                then
+                  continue
+                fi
+              fi
+              func_append removelist " $p"
+              ;;
+           *) ;;
+         esac
+       done
+       test -n "$removelist" && \
+         func_show_eval "${RM}r \$removelist"
+      fi
+
+      # Now set the variables for building old libraries.
+      if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then
+       func_append oldlibs " $output_objdir/$libname.$libext"
+
+       # Transform .lo files to .o files.
+       oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP`
+      fi
+
+      # Eliminate all temporary directories.
+      #for path in $notinst_path; do
+      #        lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
+      #        deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
+      #        dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
+      #done
+
+      if test -n "$xrpath"; then
+       # If the user specified any rpath flags, then add them.
+       temp_xrpath=
+       for libdir in $xrpath; do
+         func_replace_sysroot "$libdir"
+         func_append temp_xrpath " -R$func_replace_sysroot_result"
+         case "$finalize_rpath " in
+         *" $libdir "*) ;;
+         *) func_append finalize_rpath " $libdir" ;;
+         esac
+       done
+       if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then
+         dependency_libs="$temp_xrpath $dependency_libs"
+       fi
+      fi
+
+      # Make sure dlfiles contains only unique files that won't be dlpreopened
+      old_dlfiles=$dlfiles
+      dlfiles=
+      for lib in $old_dlfiles; do
+       case " $dlprefiles $dlfiles " in
+       *" $lib "*) ;;
+       *) func_append dlfiles " $lib" ;;
+       esac
+      done
+
+      # Make sure dlprefiles contains only unique files
+      old_dlprefiles=$dlprefiles
+      dlprefiles=
+      for lib in $old_dlprefiles; do
+       case "$dlprefiles " in
+       *" $lib "*) ;;
+       *) func_append dlprefiles " $lib" ;;
+       esac
+      done
+
+      if test yes = "$build_libtool_libs"; then
+       if test -n "$rpath"; then
+         case $host in
+         *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
+           # these systems don't actually have a c library (as such)!
+           ;;
+         *-*-rhapsody* | *-*-darwin1.[012])
+           # Rhapsody C library is in the System framework
+           func_append deplibs " System.ltframework"
+           ;;
+         *-*-netbsd*)
+           # Don't link with libc until the a.out ld.so is fixed.
+           ;;
+         *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+           # Do not include libc due to us having libc/libc_r.
+           ;;
+         *-*-sco3.2v5* | *-*-sco5v6*)
+           # Causes problems with __ctype
+           ;;
+         *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+           # Compiler inserts libc in the correct place for threads to work
+           ;;
+         *)
+           # Add libc to deplibs on all other systems if necessary.
+           if test yes = "$build_libtool_need_lc"; then
+             func_append deplibs " -lc"
+           fi
+           ;;
+         esac
+       fi
+
+       # Transform deplibs into only deplibs that can be linked in shared.
+       name_save=$name
+       libname_save=$libname
+       release_save=$release
+       versuffix_save=$versuffix
+       major_save=$major
+       # I'm not sure if I'm treating the release correctly.  I think
+       # release should show up in the -l (ie -lgmp5) so we don't want to
+       # add it in twice.  Is that correct?
+       release=
+       versuffix=
+       major=
+       newdeplibs=
+       droppeddeps=no
+       case $deplibs_check_method in
+       pass_all)
+         # Don't check for shared/static.  Everything works.
+         # This might be a little naive.  We might want to check
+         # whether the library exists or not.  But this is on
+         # osf3 & osf4 and I'm not really sure... Just
+         # implementing what was already the behavior.
+         newdeplibs=$deplibs
+         ;;
+       test_compile)
+         # This code stresses the "libraries are programs" paradigm to its
+         # limits. Maybe even breaks it.  We compile a program, linking it
+         # against the deplibs as a proxy for the library.  Then we can check
+         # whether they linked in statically or dynamically with ldd.
+         $opt_dry_run || $RM conftest.c
+         cat > conftest.c <<EOF
+         int main() { return 0; }
+EOF
+         $opt_dry_run || $RM conftest
+         if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
+           ldd_output=`ldd conftest`
+           for i in $deplibs; do
+             case $i in
+             -l*)
+               func_stripname -l '' "$i"
+               name=$func_stripname_result
+               if test yes = "$allow_libtool_libs_with_static_runtimes"; then
+                 case " $predeps $postdeps " in
+                 *" $i "*)
+                   func_append newdeplibs " $i"
+                   i=
+                   ;;
+                 esac
+               fi
+               if test -n "$i"; then
+                 libname=`eval "\\$ECHO \"$libname_spec\""`
+                 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
+                 set dummy $deplib_matches; shift
+                 deplib_match=$1
+                 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
+                   func_append newdeplibs " $i"
+                 else
+                   droppeddeps=yes
+                   echo
+                   $ECHO "*** Warning: dynamic linker does not accept needed library $i."
+                   echo "*** I have the capability to make that library automatically link in when"
+                   echo "*** you link to this library.  But I can only do this if you have a"
+                   echo "*** shared version of the library, which I believe you do not have"
+                   echo "*** because a test_compile did reveal that the linker did not use it for"
+                   echo "*** its dynamic dependency list that programs get resolved with at runtime."
+                 fi
+               fi
+               ;;
+             *)
+               func_append newdeplibs " $i"
+               ;;
+             esac
+           done
+         else
+           # Error occurred in the first compile.  Let's try to salvage
+           # the situation: Compile a separate program for each library.
+           for i in $deplibs; do
+             case $i in
+             -l*)
+               func_stripname -l '' "$i"
+               name=$func_stripname_result
+               $opt_dry_run || $RM conftest
+               if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
+                 ldd_output=`ldd conftest`
+                 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
+                   case " $predeps $postdeps " in
+                   *" $i "*)
+                     func_append newdeplibs " $i"
+                     i=
+                     ;;
+                   esac
+                 fi
+                 if test -n "$i"; then
+                   libname=`eval "\\$ECHO \"$libname_spec\""`
+                   deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
+                   set dummy $deplib_matches; shift
+                   deplib_match=$1
+                   if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
+                     func_append newdeplibs " $i"
+                   else
+                     droppeddeps=yes
+                     echo
+                     $ECHO "*** Warning: dynamic linker does not accept needed library $i."
+                     echo "*** I have the capability to make that library automatically link in when"
+                     echo "*** you link to this library.  But I can only do this if you have a"
+                     echo "*** shared version of the library, which you do not appear to have"
+                     echo "*** because a test_compile did reveal that the linker did not use this one"
+                     echo "*** as a dynamic dependency that programs can get resolved with at runtime."
+                   fi
+                 fi
+               else
+                 droppeddeps=yes
+                 echo
+                 $ECHO "*** Warning!  Library $i is needed by this library but I was not able to"
+                 echo "*** make it link in!  You will probably need to install it or some"
+                 echo "*** library that it depends on before this library will be fully"
+                 echo "*** functional.  Installing it before continuing would be even better."
+               fi
+               ;;
+             *)
+               func_append newdeplibs " $i"
+               ;;
+             esac
+           done
+         fi
+         ;;
+       file_magic*)
+         set dummy $deplibs_check_method; shift
+         file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+         for a_deplib in $deplibs; do
+           case $a_deplib in
+           -l*)
+             func_stripname -l '' "$a_deplib"
+             name=$func_stripname_result
+             if test yes = "$allow_libtool_libs_with_static_runtimes"; then
+               case " $predeps $postdeps " in
+               *" $a_deplib "*)
+                 func_append newdeplibs " $a_deplib"
+                 a_deplib=
+                 ;;
+               esac
+             fi
+             if test -n "$a_deplib"; then
+               libname=`eval "\\$ECHO \"$libname_spec\""`
+               if test -n "$file_magic_glob"; then
+                 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
+               else
+                 libnameglob=$libname
+               fi
+               test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
+               for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+                 if test yes = "$want_nocaseglob"; then
+                   shopt -s nocaseglob
+                   potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
+                   $nocaseglob
+                 else
+                   potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
+                 fi
+                 for potent_lib in $potential_libs; do
+                     # Follow soft links.
+                     if ls -lLd "$potent_lib" 2>/dev/null |
+                        $GREP " -> " >/dev/null; then
+                       continue
+                     fi
+                     # The statement above tries to avoid entering an
+                     # endless loop below, in case of cyclic links.
+                     # We might still enter an endless loop, since a link
+                     # loop can be closed while we follow links,
+                     # but so what?
+                     potlib=$potent_lib
+                     while test -h "$potlib" 2>/dev/null; do
+                       potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
+                       case $potliblink in
+                       [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
+                       *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";;
+                       esac
+                     done
+                     if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
+                        $SED -e 10q |
+                        $EGREP "$file_magic_regex" > /dev/null; then
+                       func_append newdeplibs " $a_deplib"
+                       a_deplib=
+                       break 2
+                     fi
+                 done
+               done
+             fi
+             if test -n "$a_deplib"; then
+               droppeddeps=yes
+               echo
+               $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
+               echo "*** I have the capability to make that library automatically link in when"
+               echo "*** you link to this library.  But I can only do this if you have a"
+               echo "*** shared version of the library, which you do not appear to have"
+               echo "*** because I did check the linker path looking for a file starting"
+               if test -z "$potlib"; then
+                 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
+               else
+                 $ECHO "*** with $libname and none of the candidates passed a file format test"
+                 $ECHO "*** using a file magic. Last file checked: $potlib"
+               fi
+             fi
+             ;;
+           *)
+             # Add a -L argument.
+             func_append newdeplibs " $a_deplib"
+             ;;
+           esac
+         done # Gone through all deplibs.
+         ;;
+       match_pattern*)
+         set dummy $deplibs_check_method; shift
+         match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+         for a_deplib in $deplibs; do
+           case $a_deplib in
+           -l*)
+             func_stripname -l '' "$a_deplib"
+             name=$func_stripname_result
+             if test yes = "$allow_libtool_libs_with_static_runtimes"; then
+               case " $predeps $postdeps " in
+               *" $a_deplib "*)
+                 func_append newdeplibs " $a_deplib"
+                 a_deplib=
+                 ;;
+               esac
+             fi
+             if test -n "$a_deplib"; then
+               libname=`eval "\\$ECHO \"$libname_spec\""`
+               for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+                 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+                 for potent_lib in $potential_libs; do
+                   potlib=$potent_lib # see symlink-check above in file_magic test
+                   if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
+                      $EGREP "$match_pattern_regex" > /dev/null; then
+                     func_append newdeplibs " $a_deplib"
+                     a_deplib=
+                     break 2
+                   fi
+                 done
+               done
+             fi
+             if test -n "$a_deplib"; then
+               droppeddeps=yes
+               echo
+               $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
+               echo "*** I have the capability to make that library automatically link in when"
+               echo "*** you link to this library.  But I can only do this if you have a"
+               echo "*** shared version of the library, which you do not appear to have"
+               echo "*** because I did check the linker path looking for a file starting"
+               if test -z "$potlib"; then
+                 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
+               else
+                 $ECHO "*** with $libname and none of the candidates passed a file format test"
+                 $ECHO "*** using a regex pattern. Last file checked: $potlib"
+               fi
+             fi
+             ;;
+           *)
+             # Add a -L argument.
+             func_append newdeplibs " $a_deplib"
+             ;;
+           esac
+         done # Gone through all deplibs.
+         ;;
+       none | unknown | *)
+         newdeplibs=
+         tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
+         if test yes = "$allow_libtool_libs_with_static_runtimes"; then
+           for i in $predeps $postdeps; do
+             # can't use Xsed below, because $i might contain '/'
+             tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"`
+           done
+         fi
+         case $tmp_deplibs in
+         *[!\  \ ]*)
+           echo
+           if test none = "$deplibs_check_method"; then
+             echo "*** Warning: inter-library dependencies are not supported in this platform."
+           else
+             echo "*** Warning: inter-library dependencies are not known to be supported."
+           fi
+           echo "*** All declared inter-library dependencies are being dropped."
+           droppeddeps=yes
+           ;;
+         esac
+         ;;
+       esac
+       versuffix=$versuffix_save
+       major=$major_save
+       release=$release_save
+       libname=$libname_save
+       name=$name_save
+
+       case $host in
+       *-*-rhapsody* | *-*-darwin1.[012])
+         # On Rhapsody replace the C library with the System framework
+         newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
+         ;;
+       esac
+
+       if test yes = "$droppeddeps"; then
+         if test yes = "$module"; then
+           echo
+           echo "*** Warning: libtool could not satisfy all declared inter-library"
+           $ECHO "*** dependencies of module $libname.  Therefore, libtool will create"
+           echo "*** a static module, that should work as long as the dlopening"
+           echo "*** application is linked with the -dlopen flag."
+           if test -z "$global_symbol_pipe"; then
+             echo
+             echo "*** However, this would only work if libtool was able to extract symbol"
+             echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
+             echo "*** not find such a program.  So, this module is probably useless."
+             echo "*** 'nm' from GNU binutils and a full rebuild may help."
+           fi
+           if test no = "$build_old_libs"; then
+             oldlibs=$output_objdir/$libname.$libext
+             build_libtool_libs=module
+             build_old_libs=yes
+           else
+             build_libtool_libs=no
+           fi
+         else
+           echo "*** The inter-library dependencies that have been dropped here will be"
+           echo "*** automatically added whenever a program is linked with this library"
+           echo "*** or is declared to -dlopen it."
+
+           if test no = "$allow_undefined"; then
+             echo
+             echo "*** Since this library must not contain undefined symbols,"
+             echo "*** because either the platform does not support them or"
+             echo "*** it was explicitly requested with -no-undefined,"
+             echo "*** libtool will only create a static version of it."
+             if test no = "$build_old_libs"; then
+               oldlibs=$output_objdir/$libname.$libext
+               build_libtool_libs=module
+               build_old_libs=yes
+             else
+               build_libtool_libs=no
+             fi
+           fi
+         fi
+       fi
+       # Done checking deplibs!
+       deplibs=$newdeplibs
+      fi
+      # Time to change all our "foo.ltframework" stuff back to "-framework foo"
+      case $host in
+       *-*-darwin*)
+         newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
+         new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
+         deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
+         ;;
+      esac
+
+      # move library search paths that coincide with paths to not yet
+      # installed libraries to the beginning of the library search list
+      new_libs=
+      for path in $notinst_path; do
+       case " $new_libs " in
+       *" -L$path/$objdir "*) ;;
+       *)
+         case " $deplibs " in
+         *" -L$path/$objdir "*)
+           func_append new_libs " -L$path/$objdir" ;;
+         esac
+         ;;
+       esac
+      done
+      for deplib in $deplibs; do
+       case $deplib in
+       -L*)
+         case " $new_libs " in
+         *" $deplib "*) ;;
+         *) func_append new_libs " $deplib" ;;
+         esac
+         ;;
+       *) func_append new_libs " $deplib" ;;
+       esac
+      done
+      deplibs=$new_libs
+
+      # All the library-specific variables (install_libdir is set above).
+      library_names=
+      old_library=
+      dlname=
+
+      # Test again, we may have decided not to build it any more
+      if test yes = "$build_libtool_libs"; then
+       # Remove $wl instances when linking with ld.
+       # FIXME: should test the right _cmds variable.
+       case $archive_cmds in
+         *\$LD\ *) wl= ;;
+        esac
+       if test yes = "$hardcode_into_libs"; then
+         # Hardcode the library paths
+         hardcode_libdirs=
+         dep_rpath=
+         rpath=$finalize_rpath
+         test relink = "$opt_mode" || rpath=$compile_rpath$rpath
+         for libdir in $rpath; do
+           if test -n "$hardcode_libdir_flag_spec"; then
+             if test -n "$hardcode_libdir_separator"; then
+               func_replace_sysroot "$libdir"
+               libdir=$func_replace_sysroot_result
+               if test -z "$hardcode_libdirs"; then
+                 hardcode_libdirs=$libdir
+               else
+                 # Just accumulate the unique libdirs.
+                 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+                 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+                   ;;
+                 *)
+                   func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
+                   ;;
+                 esac
+               fi
+             else
+               eval flag=\"$hardcode_libdir_flag_spec\"
+               func_append dep_rpath " $flag"
+             fi
+           elif test -n "$runpath_var"; then
+             case "$perm_rpath " in
+             *" $libdir "*) ;;
+             *) func_append perm_rpath " $libdir" ;;
+             esac
+           fi
+         done
+         # Substitute the hardcoded libdirs into the rpath.
+         if test -n "$hardcode_libdir_separator" &&
+            test -n "$hardcode_libdirs"; then
+           libdir=$hardcode_libdirs
+           eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
+         fi
+         if test -n "$runpath_var" && test -n "$perm_rpath"; then
+           # We should set the runpath_var.
+           rpath=
+           for dir in $perm_rpath; do
+             func_append rpath "$dir:"
+           done
+           eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
+         fi
+         test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
+       fi
+
+       shlibpath=$finalize_shlibpath
+       test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath
+       if test -n "$shlibpath"; then
+         eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
+       fi
+
+       # Get the real and link names of the library.
+       eval shared_ext=\"$shrext_cmds\"
+       eval library_names=\"$library_names_spec\"
+       set dummy $library_names
+       shift
+       realname=$1
+       shift
+
+       if test -n "$soname_spec"; then
+         eval soname=\"$soname_spec\"
+       else
+         soname=$realname
+       fi
+       if test -z "$dlname"; then
+         dlname=$soname
+       fi
+
+       lib=$output_objdir/$realname
+       linknames=
+       for link
+       do
+         func_append linknames " $link"
+       done
+
+       # Use standard objects if they are pic
+       test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
+       test "X$libobjs" = "X " && libobjs=
+
+       delfiles=
+       if test -n "$export_symbols" && test -n "$include_expsyms"; then
+         $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
+         export_symbols=$output_objdir/$libname.uexp
+         func_append delfiles " $export_symbols"
+       fi
+
+       orig_export_symbols=
+       case $host_os in
+       cygwin* | mingw* | cegcc*)
+         if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
+           # exporting using user supplied symfile
+           func_dll_def_p "$export_symbols" || {
+             # and it's NOT already a .def file. Must figure out
+             # which of the given symbols are data symbols and tag
+             # them as such. So, trigger use of export_symbols_cmds.
+             # export_symbols gets reassigned inside the "prepare
+             # the list of exported symbols" if statement, so the
+             # include_expsyms logic still works.
+             orig_export_symbols=$export_symbols
+             export_symbols=
+             always_export_symbols=yes
+           }
+         fi
+         ;;
+       esac
+
+       # Prepare the list of exported symbols
+       if test -z "$export_symbols"; then
+         if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
+           func_verbose "generating symbol list for '$libname.la'"
+           export_symbols=$output_objdir/$libname.exp
+           $opt_dry_run || $RM $export_symbols
+           cmds=$export_symbols_cmds
+           save_ifs=$IFS; IFS='~'
+           for cmd1 in $cmds; do
+             IFS=$save_ifs
+             # Take the normal branch if the nm_file_list_spec branch
+             # doesn't work or if tool conversion is not needed.
+             case $nm_file_list_spec~$to_tool_file_cmd in
+               *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
+                 try_normal_branch=yes
+                 eval cmd=\"$cmd1\"
+                 func_len " $cmd"
+                 len=$func_len_result
+                 ;;
+               *)
+                 try_normal_branch=no
+                 ;;
+             esac
+             if test yes = "$try_normal_branch" \
+                && { test "$len" -lt "$max_cmd_len" \
+                     || test "$max_cmd_len" -le -1; }
+             then
+               func_show_eval "$cmd" 'exit $?'
+               skipped_export=false
+             elif test -n "$nm_file_list_spec"; then
+               func_basename "$output"
+               output_la=$func_basename_result
+               save_libobjs=$libobjs
+               save_output=$output
+               output=$output_objdir/$output_la.nm
+               func_to_tool_file "$output"
+               libobjs=$nm_file_list_spec$func_to_tool_file_result
+               func_append delfiles " $output"
+               func_verbose "creating $NM input file list: $output"
+               for obj in $save_libobjs; do
+                 func_to_tool_file "$obj"
+                 $ECHO "$func_to_tool_file_result"
+               done > "$output"
+               eval cmd=\"$cmd1\"
+               func_show_eval "$cmd" 'exit $?'
+               output=$save_output
+               libobjs=$save_libobjs
+               skipped_export=false
+             else
+               # The command line is too long to execute in one step.
+               func_verbose "using reloadable object file for export list..."
+               skipped_export=:
+               # Break out early, otherwise skipped_export may be
+               # set to false by a later but shorter cmd.
+               break
+             fi
+           done
+           IFS=$save_ifs
+           if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
+             func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
+             func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
+           fi
+         fi
+       fi
+
+       if test -n "$export_symbols" && test -n "$include_expsyms"; then
+         tmp_export_symbols=$export_symbols
+         test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
+         $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
+       fi
+
+       if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
+         # The given exports_symbols file has to be filtered, so filter it.
+         func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
+         # FIXME: $output_objdir/$libname.filter potentially contains lots of
+         # 's' commands, which not all seds can handle. GNU sed should be fine
+         # though. Also, the filter scales superlinearly with the number of
+         # global variables. join(1) would be nice here, but unfortunately
+         # isn't a blessed tool.
+         $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
+         func_append delfiles " $export_symbols $output_objdir/$libname.filter"
+         export_symbols=$output_objdir/$libname.def
+         $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
+       fi
+
+       tmp_deplibs=
+       for test_deplib in $deplibs; do
+         case " $convenience " in
+         *" $test_deplib "*) ;;
+         *)
+           func_append tmp_deplibs " $test_deplib"
+           ;;
+         esac
+       done
+       deplibs=$tmp_deplibs
+
+       if test -n "$convenience"; then
+         if test -n "$whole_archive_flag_spec" &&
+           test yes = "$compiler_needs_object" &&
+           test -z "$libobjs"; then
+           # extract the archives, so we have objects to list.
+           # TODO: could optimize this to just extract one archive.
+           whole_archive_flag_spec=
+         fi
+         if test -n "$whole_archive_flag_spec"; then
+           save_libobjs=$libobjs
+           eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+           test "X$libobjs" = "X " && libobjs=
+         else
+           gentop=$output_objdir/${outputname}x
+           func_append generated " $gentop"
+
+           func_extract_archives $gentop $convenience
+           func_append libobjs " $func_extract_archives_result"
+           test "X$libobjs" = "X " && libobjs=
+         fi
+       fi
+
+       if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
+         eval flag=\"$thread_safe_flag_spec\"
+         func_append linker_flags " $flag"
+       fi
+
+       # Make a backup of the uninstalled library when relinking
+       if test relink = "$opt_mode"; then
+         $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
+       fi
+
+       # Do each of the archive commands.
+       if test yes = "$module" && test -n "$module_cmds"; then
+         if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+           eval test_cmds=\"$module_expsym_cmds\"
+           cmds=$module_expsym_cmds
+         else
+           eval test_cmds=\"$module_cmds\"
+           cmds=$module_cmds
+         fi
+       else
+         if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+           eval test_cmds=\"$archive_expsym_cmds\"
+           cmds=$archive_expsym_cmds
+         else
+           eval test_cmds=\"$archive_cmds\"
+           cmds=$archive_cmds
+         fi
+       fi
+
+       if test : != "$skipped_export" &&
+          func_len " $test_cmds" &&
+          len=$func_len_result &&
+          test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+         :
+       else
+         # The command line is too long to link in one step, link piecewise
+         # or, if using GNU ld and skipped_export is not :, use a linker
+         # script.
+
+         # Save the value of $output and $libobjs because we want to
+         # use them later.  If we have whole_archive_flag_spec, we
+         # want to use save_libobjs as it was before
+         # whole_archive_flag_spec was expanded, because we can't
+         # assume the linker understands whole_archive_flag_spec.
+         # This may have to be revisited, in case too many
+         # convenience libraries get linked in and end up exceeding
+         # the spec.
+         if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
+           save_libobjs=$libobjs
+         fi
+         save_output=$output
+         func_basename "$output"
+         output_la=$func_basename_result
+
+         # Clear the reloadable object creation command queue and
+         # initialize k to one.
+         test_cmds=
+         concat_cmds=
+         objlist=
+         last_robj=
+         k=1
+
+         if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
+           output=$output_objdir/$output_la.lnkscript
+           func_verbose "creating GNU ld script: $output"
+           echo 'INPUT (' > $output
+           for obj in $save_libobjs
+           do
+             func_to_tool_file "$obj"
+             $ECHO "$func_to_tool_file_result" >> $output
+           done
+           echo ')' >> $output
+           func_append delfiles " $output"
+           func_to_tool_file "$output"
+           output=$func_to_tool_file_result
+         elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
+           output=$output_objdir/$output_la.lnk
+           func_verbose "creating linker input file list: $output"
+           : > $output
+           set x $save_libobjs
+           shift
+           firstobj=
+           if test yes = "$compiler_needs_object"; then
+             firstobj="$1 "
+             shift
+           fi
+           for obj
+           do
+             func_to_tool_file "$obj"
+             $ECHO "$func_to_tool_file_result" >> $output
+           done
+           func_append delfiles " $output"
+           func_to_tool_file "$output"
+           output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
+         else
+           if test -n "$save_libobjs"; then
+             func_verbose "creating reloadable object files..."
+             output=$output_objdir/$output_la-$k.$objext
+             eval test_cmds=\"$reload_cmds\"
+             func_len " $test_cmds"
+             len0=$func_len_result
+             len=$len0
+
+             # Loop over the list of objects to be linked.
+             for obj in $save_libobjs
+             do
+               func_len " $obj"
+               func_arith $len + $func_len_result
+               len=$func_arith_result
+               if test -z "$objlist" ||
+                  test "$len" -lt "$max_cmd_len"; then
+                 func_append objlist " $obj"
+               else
+                 # The command $test_cmds is almost too long, add a
+                 # command to the queue.
+                 if test 1 -eq "$k"; then
+                   # The first file doesn't have a previous command to add.
+                   reload_objs=$objlist
+                   eval concat_cmds=\"$reload_cmds\"
+                 else
+                   # All subsequent reloadable object files will link in
+                   # the last one created.
+                   reload_objs="$objlist $last_robj"
+                   eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
+                 fi
+                 last_robj=$output_objdir/$output_la-$k.$objext
+                 func_arith $k + 1
+                 k=$func_arith_result
+                 output=$output_objdir/$output_la-$k.$objext
+                 objlist=" $obj"
+                 func_len " $last_robj"
+                 func_arith $len0 + $func_len_result
+                 len=$func_arith_result
+               fi
+             done
+             # Handle the remaining objects by creating one last
+             # reloadable object file.  All subsequent reloadable object
+             # files will link in the last one created.
+             test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+             reload_objs="$objlist $last_robj"
+             eval concat_cmds=\"\$concat_cmds$reload_cmds\"
+             if test -n "$last_robj"; then
+               eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
+             fi
+             func_append delfiles " $output"
+
+           else
+             output=
+           fi
+
+           ${skipped_export-false} && {
+             func_verbose "generating symbol list for '$libname.la'"
+             export_symbols=$output_objdir/$libname.exp
+             $opt_dry_run || $RM $export_symbols
+             libobjs=$output
+             # Append the command to create the export file.
+             test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+             eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
+             if test -n "$last_robj"; then
+               eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
+             fi
+           }
+
+           test -n "$save_libobjs" &&
+             func_verbose "creating a temporary reloadable object file: $output"
+
+           # Loop through the commands generated above and execute them.
+           save_ifs=$IFS; IFS='~'
+           for cmd in $concat_cmds; do
+             IFS=$save_ifs
+             $opt_quiet || {
+                 func_quote_for_expand "$cmd"
+                 eval "func_echo $func_quote_for_expand_result"
+             }
+             $opt_dry_run || eval "$cmd" || {
+               lt_exit=$?
+
+               # Restore the uninstalled library and exit
+               if test relink = "$opt_mode"; then
+                 ( cd "$output_objdir" && \
+                   $RM "${realname}T" && \
+                   $MV "${realname}U" "$realname" )
+               fi
+
+               exit $lt_exit
+             }
+           done
+           IFS=$save_ifs
+
+           if test -n "$export_symbols_regex" && ${skipped_export-false}; then
+             func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
+             func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
+           fi
+         fi
+
+          ${skipped_export-false} && {
+           if test -n "$export_symbols" && test -n "$include_expsyms"; then
+             tmp_export_symbols=$export_symbols
+             test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
+             $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
+           fi
+
+           if test -n "$orig_export_symbols"; then
+             # The given exports_symbols file has to be filtered, so filter it.
+             func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
+             # FIXME: $output_objdir/$libname.filter potentially contains lots of
+             # 's' commands, which not all seds can handle. GNU sed should be fine
+             # though. Also, the filter scales superlinearly with the number of
+             # global variables. join(1) would be nice here, but unfortunately
+             # isn't a blessed tool.
+             $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
+             func_append delfiles " $export_symbols $output_objdir/$libname.filter"
+             export_symbols=$output_objdir/$libname.def
+             $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
+           fi
+         }
+
+         libobjs=$output
+         # Restore the value of output.
+         output=$save_output
+
+         if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
+           eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+           test "X$libobjs" = "X " && libobjs=
+         fi
+         # Expand the library linking commands again to reset the
+         # value of $libobjs for piecewise linking.
+
+         # Do each of the archive commands.
+         if test yes = "$module" && test -n "$module_cmds"; then
+           if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+             cmds=$module_expsym_cmds
+           else
+             cmds=$module_cmds
+           fi
+         else
+           if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+             cmds=$archive_expsym_cmds
+           else
+             cmds=$archive_cmds
+           fi
+         fi
+       fi
+
+       if test -n "$delfiles"; then
+         # Append the command to remove temporary files to $cmds.
+         eval cmds=\"\$cmds~\$RM $delfiles\"
+       fi
+
+       # Add any objects from preloaded convenience libraries
+       if test -n "$dlprefiles"; then
+         gentop=$output_objdir/${outputname}x
+         func_append generated " $gentop"
+
+         func_extract_archives $gentop $dlprefiles
+         func_append libobjs " $func_extract_archives_result"
+         test "X$libobjs" = "X " && libobjs=
+       fi
+
+       save_ifs=$IFS; IFS='~'
+       for cmd in $cmds; do
+         IFS=$sp$nl
+         eval cmd=\"$cmd\"
+         IFS=$save_ifs
+         $opt_quiet || {
+           func_quote_for_expand "$cmd"
+           eval "func_echo $func_quote_for_expand_result"
+         }
+         $opt_dry_run || eval "$cmd" || {
+           lt_exit=$?
+
+           # Restore the uninstalled library and exit
+           if test relink = "$opt_mode"; then
+             ( cd "$output_objdir" && \
+               $RM "${realname}T" && \
+               $MV "${realname}U" "$realname" )
+           fi
+
+           exit $lt_exit
+         }
+       done
+       IFS=$save_ifs
+
+       # Restore the uninstalled library and exit
+       if test relink = "$opt_mode"; then
+         $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
+
+         if test -n "$convenience"; then
+           if test -z "$whole_archive_flag_spec"; then
+             func_show_eval '${RM}r "$gentop"'
+           fi
+         fi
+
+         exit $EXIT_SUCCESS
+       fi
+
+       # Create links to the real library.
+       for linkname in $linknames; do
+         if test "$realname" != "$linkname"; then
+           func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
+         fi
+       done
+
+       # If -module or -export-dynamic was specified, set the dlname.
+       if test yes = "$module" || test yes = "$export_dynamic"; then
+         # On all known operating systems, these are identical.
+         dlname=$soname
+       fi
+      fi
+      ;;
+
+    obj)
+      if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
+       func_warning "'-dlopen' is ignored for objects"
+      fi
+
+      case " $deplibs" in
+      *\ -l* | *\ -L*)
+       func_warning "'-l' and '-L' are ignored for objects" ;;
+      esac
+
+      test -n "$rpath" && \
+       func_warning "'-rpath' is ignored for objects"
+
+      test -n "$xrpath" && \
+       func_warning "'-R' is ignored for objects"
+
+      test -n "$vinfo" && \
+       func_warning "'-version-info' is ignored for objects"
+
+      test -n "$release" && \
+       func_warning "'-release' is ignored for objects"
+
+      case $output in
+      *.lo)
+       test -n "$objs$old_deplibs" && \
+         func_fatal_error "cannot build library object '$output' from non-libtool objects"
+
+       libobj=$output
+       func_lo2o "$libobj"
+       obj=$func_lo2o_result
+       ;;
+      *)
+       libobj=
+       obj=$output
+       ;;
+      esac
+
+      # Delete the old objects.
+      $opt_dry_run || $RM $obj $libobj
+
+      # Objects from convenience libraries.  This assumes
+      # single-version convenience libraries.  Whenever we create
+      # different ones for PIC/non-PIC, this we'll have to duplicate
+      # the extraction.
+      reload_conv_objs=
+      gentop=
+      # reload_cmds runs $LD directly, so let us get rid of
+      # -Wl from whole_archive_flag_spec and hope we can get by with
+      # turning comma into space..
+      wl=
+
+      if test -n "$convenience"; then
+       if test -n "$whole_archive_flag_spec"; then
+         eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
+         reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
+       else
+         gentop=$output_objdir/${obj}x
+         func_append generated " $gentop"
+
+         func_extract_archives $gentop $convenience
+         reload_conv_objs="$reload_objs $func_extract_archives_result"
+       fi
+      fi
+
+      # If we're not building shared, we need to use non_pic_objs
+      test yes = "$build_libtool_libs" || libobjs=$non_pic_objects
+
+      # Create the old-style object.
+      reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs
+
+      output=$obj
+      func_execute_cmds "$reload_cmds" 'exit $?'
+
+      # Exit if we aren't doing a library object file.
+      if test -z "$libobj"; then
+       if test -n "$gentop"; then
+         func_show_eval '${RM}r "$gentop"'
+       fi
+
+       exit $EXIT_SUCCESS
+      fi
+
+      test yes = "$build_libtool_libs" || {
+       if test -n "$gentop"; then
+         func_show_eval '${RM}r "$gentop"'
+       fi
+
+       # Create an invalid libtool object if no PIC, so that we don't
+       # accidentally link it into a program.
+       # $show "echo timestamp > $libobj"
+       # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
+       exit $EXIT_SUCCESS
+      }
+
+      if test -n "$pic_flag" || test default != "$pic_mode"; then
+       # Only do commands if we really have different PIC objects.
+       reload_objs="$libobjs $reload_conv_objs"
+       output=$libobj
+       func_execute_cmds "$reload_cmds" 'exit $?'
+      fi
+
+      if test -n "$gentop"; then
+       func_show_eval '${RM}r "$gentop"'
+      fi
+
+      exit $EXIT_SUCCESS
+      ;;
+
+    prog)
+      case $host in
+       *cygwin*) func_stripname '' '.exe' "$output"
+                 output=$func_stripname_result.exe;;
+      esac
+      test -n "$vinfo" && \
+       func_warning "'-version-info' is ignored for programs"
+
+      test -n "$release" && \
+       func_warning "'-release' is ignored for programs"
+
+      $preload \
+       && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \
+       && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support."
+
+      case $host in
+      *-*-rhapsody* | *-*-darwin1.[012])
+       # On Rhapsody replace the C library is the System framework
+       compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
+       finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
+       ;;
+      esac
+
+      case $host in
+      *-*-darwin*)
+       # Don't allow lazy linking, it breaks C++ global constructors
+       # But is supposedly fixed on 10.4 or later (yay!).
+       if test CXX = "$tagname"; then
+         case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
+           10.[0123])
+             func_append compile_command " $wl-bind_at_load"
+             func_append finalize_command " $wl-bind_at_load"
+           ;;
+         esac
+       fi
+       # Time to change all our "foo.ltframework" stuff back to "-framework foo"
+       compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
+       finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
+       ;;
+      esac
+
+
+      # move library search paths that coincide with paths to not yet
+      # installed libraries to the beginning of the library search list
+      new_libs=
+      for path in $notinst_path; do
+       case " $new_libs " in
+       *" -L$path/$objdir "*) ;;
+       *)
+         case " $compile_deplibs " in
+         *" -L$path/$objdir "*)
+           func_append new_libs " -L$path/$objdir" ;;
+         esac
+         ;;
+       esac
+      done
+      for deplib in $compile_deplibs; do
+       case $deplib in
+       -L*)
+         case " $new_libs " in
+         *" $deplib "*) ;;
+         *) func_append new_libs " $deplib" ;;
+         esac
+         ;;
+       *) func_append new_libs " $deplib" ;;
+       esac
+      done
+      compile_deplibs=$new_libs
+
+
+      func_append compile_command " $compile_deplibs"
+      func_append finalize_command " $finalize_deplibs"
+
+      if test -n "$rpath$xrpath"; then
+       # If the user specified any rpath flags, then add them.
+       for libdir in $rpath $xrpath; do
+         # This is the magic to use -rpath.
+         case "$finalize_rpath " in
+         *" $libdir "*) ;;
+         *) func_append finalize_rpath " $libdir" ;;
+         esac
+       done
+      fi
+
+      # Now hardcode the library paths
+      rpath=
+      hardcode_libdirs=
+      for libdir in $compile_rpath $finalize_rpath; do
+       if test -n "$hardcode_libdir_flag_spec"; then
+         if test -n "$hardcode_libdir_separator"; then
+           if test -z "$hardcode_libdirs"; then
+             hardcode_libdirs=$libdir
+           else
+             # Just accumulate the unique libdirs.
+             case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+             *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+               ;;
+             *)
+               func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
+               ;;
+             esac
+           fi
+         else
+           eval flag=\"$hardcode_libdir_flag_spec\"
+           func_append rpath " $flag"
+         fi
+       elif test -n "$runpath_var"; then
+         case "$perm_rpath " in
+         *" $libdir "*) ;;
+         *) func_append perm_rpath " $libdir" ;;
+         esac
+       fi
+       case $host in
+       *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+         testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
+         case :$dllsearchpath: in
+         *":$libdir:"*) ;;
+         ::) dllsearchpath=$libdir;;
+         *) func_append dllsearchpath ":$libdir";;
+         esac
+         case :$dllsearchpath: in
+         *":$testbindir:"*) ;;
+         ::) dllsearchpath=$testbindir;;
+         *) func_append dllsearchpath ":$testbindir";;
+         esac
+         ;;
+       esac
+      done
+      # Substitute the hardcoded libdirs into the rpath.
+      if test -n "$hardcode_libdir_separator" &&
+        test -n "$hardcode_libdirs"; then
+       libdir=$hardcode_libdirs
+       eval rpath=\" $hardcode_libdir_flag_spec\"
+      fi
+      compile_rpath=$rpath
+
+      rpath=
+      hardcode_libdirs=
+      for libdir in $finalize_rpath; do
+       if test -n "$hardcode_libdir_flag_spec"; then
+         if test -n "$hardcode_libdir_separator"; then
+           if test -z "$hardcode_libdirs"; then
+             hardcode_libdirs=$libdir
+           else
+             # Just accumulate the unique libdirs.
+             case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+             *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+               ;;
+             *)
+               func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
+               ;;
+             esac
+           fi
+         else
+           eval flag=\"$hardcode_libdir_flag_spec\"
+           func_append rpath " $flag"
+         fi
+       elif test -n "$runpath_var"; then
+         case "$finalize_perm_rpath " in
+         *" $libdir "*) ;;
+         *) func_append finalize_perm_rpath " $libdir" ;;
+         esac
+       fi
+      done
+      # Substitute the hardcoded libdirs into the rpath.
+      if test -n "$hardcode_libdir_separator" &&
+        test -n "$hardcode_libdirs"; then
+       libdir=$hardcode_libdirs
+       eval rpath=\" $hardcode_libdir_flag_spec\"
+      fi
+      finalize_rpath=$rpath
+
+      if test -n "$libobjs" && test yes = "$build_old_libs"; then
+       # Transform all the library objects into standard objects.
+       compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
+       finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
+      fi
+
+      func_generate_dlsyms "$outputname" "@PROGRAM@" false
+
+      # template prelinking step
+      if test -n "$prelink_cmds"; then
+       func_execute_cmds "$prelink_cmds" 'exit $?'
+      fi
+
+      wrappers_required=:
+      case $host in
+      *cegcc* | *mingw32ce*)
+        # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
+        wrappers_required=false
+        ;;
+      *cygwin* | *mingw* )
+        test yes = "$build_libtool_libs" || wrappers_required=false
+        ;;
+      *)
+        if test no = "$need_relink" || test yes != "$build_libtool_libs"; then
+          wrappers_required=false
+        fi
+        ;;
+      esac
+      $wrappers_required || {
+       # Replace the output file specification.
+       compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
+       link_command=$compile_command$compile_rpath
+
+       # We have no uninstalled library dependencies, so finalize right now.
+       exit_status=0
+       func_show_eval "$link_command" 'exit_status=$?'
+
+       if test -n "$postlink_cmds"; then
+         func_to_tool_file "$output"
+         postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
+         func_execute_cmds "$postlink_cmds" 'exit $?'
+       fi
+
+       # Delete the generated files.
+       if test -f "$output_objdir/${outputname}S.$objext"; then
+         func_show_eval '$RM "$output_objdir/${outputname}S.$objext"'
+       fi
+
+       exit $exit_status
+      }
+
+      if test -n "$compile_shlibpath$finalize_shlibpath"; then
+       compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
+      fi
+      if test -n "$finalize_shlibpath"; then
+       finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
+      fi
+
+      compile_var=
+      finalize_var=
+      if test -n "$runpath_var"; then
+       if test -n "$perm_rpath"; then
+         # We should set the runpath_var.
+         rpath=
+         for dir in $perm_rpath; do
+           func_append rpath "$dir:"
+         done
+         compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
+       fi
+       if test -n "$finalize_perm_rpath"; then
+         # We should set the runpath_var.
+         rpath=
+         for dir in $finalize_perm_rpath; do
+           func_append rpath "$dir:"
+         done
+         finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
+       fi
+      fi
+
+      if test yes = "$no_install"; then
+       # We don't need to create a wrapper script.
+       link_command=$compile_var$compile_command$compile_rpath
+       # Replace the output file specification.
+       link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
+       # Delete the old output file.
+       $opt_dry_run || $RM $output
+       # Link the executable and exit
+       func_show_eval "$link_command" 'exit $?'
+
+       if test -n "$postlink_cmds"; then
+         func_to_tool_file "$output"
+         postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
+         func_execute_cmds "$postlink_cmds" 'exit $?'
+       fi
+
+       exit $EXIT_SUCCESS
+      fi
+
+      case $hardcode_action,$fast_install in
+        relink,*)
+         # Fast installation is not supported
+         link_command=$compile_var$compile_command$compile_rpath
+         relink_command=$finalize_var$finalize_command$finalize_rpath
+
+         func_warning "this platform does not like uninstalled shared libraries"
+         func_warning "'$output' will be relinked during installation"
+         ;;
+        *,yes)
+         link_command=$finalize_var$compile_command$finalize_rpath
+         relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
+          ;;
+       *,no)
+         link_command=$compile_var$compile_command$compile_rpath
+         relink_command=$finalize_var$finalize_command$finalize_rpath
+          ;;
+       *,needless)
+         link_command=$finalize_var$compile_command$finalize_rpath
+         relink_command=
+          ;;
+      esac
+
+      # Replace the output file specification.
+      link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
+
+      # Delete the old output files.
+      $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
+
+      func_show_eval "$link_command" 'exit $?'
+
+      if test -n "$postlink_cmds"; then
+       func_to_tool_file "$output_objdir/$outputname"
+       postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
+       func_execute_cmds "$postlink_cmds" 'exit $?'
+      fi
+
+      # Now create the wrapper script.
+      func_verbose "creating $output"
+
+      # Quote the relink command for shipping.
+      if test -n "$relink_command"; then
+       # Preserve any variables that may affect compiler behavior
+       for var in $variables_saved_for_relink; do
+         if eval test -z \"\${$var+set}\"; then
+           relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
+         elif eval var_value=\$$var; test -z "$var_value"; then
+           relink_command="$var=; export $var; $relink_command"
+         else
+           func_quote_for_eval "$var_value"
+           relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
+         fi
+       done
+       relink_command="(cd `pwd`; $relink_command)"
+       relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
+      fi
+
+      # Only actually do things if not in dry run mode.
+      $opt_dry_run || {
+       # win32 will think the script is a binary if it has
+       # a .exe suffix, so we strip it off here.
+       case $output in
+         *.exe) func_stripname '' '.exe' "$output"
+                output=$func_stripname_result ;;
+       esac
+       # test for cygwin because mv fails w/o .exe extensions
+       case $host in
+         *cygwin*)
+           exeext=.exe
+           func_stripname '' '.exe' "$outputname"
+           outputname=$func_stripname_result ;;
+         *) exeext= ;;
+       esac
+       case $host in
+         *cygwin* | *mingw* )
+           func_dirname_and_basename "$output" "" "."
+           output_name=$func_basename_result
+           output_path=$func_dirname_result
+           cwrappersource=$output_path/$objdir/lt-$output_name.c
+           cwrapper=$output_path/$output_name.exe
+           $RM $cwrappersource $cwrapper
+           trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
+
+           func_emit_cwrapperexe_src > $cwrappersource
+
+           # The wrapper executable is built using the $host compiler,
+           # because it contains $host paths and files. If cross-
+           # compiling, it, like the target executable, must be
+           # executed on the $host or under an emulation environment.
+           $opt_dry_run || {
+             $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
+             $STRIP $cwrapper
+           }
+
+           # Now, create the wrapper script for func_source use:
+           func_ltwrapper_scriptname $cwrapper
+           $RM $func_ltwrapper_scriptname_result
+           trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
+           $opt_dry_run || {
+             # note: this script will not be executed, so do not chmod.
+             if test "x$build" = "x$host"; then
+               $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
+             else
+               func_emit_wrapper no > $func_ltwrapper_scriptname_result
+             fi
+           }
+         ;;
+         * )
+           $RM $output
+           trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
+
+           func_emit_wrapper no > $output
+           chmod +x $output
+         ;;
+       esac
+      }
+      exit $EXIT_SUCCESS
+      ;;
+    esac
+
+    # See if we need to build an old-fashioned archive.
+    for oldlib in $oldlibs; do
+
+      case $build_libtool_libs in
+        convenience)
+         oldobjs="$libobjs_save $symfileobj"
+         addlibs=$convenience
+         build_libtool_libs=no
+         ;;
+       module)
+         oldobjs=$libobjs_save
+         addlibs=$old_convenience
+         build_libtool_libs=no
+          ;;
+       *)
+         oldobjs="$old_deplibs $non_pic_objects"
+         $preload && test -f "$symfileobj" \
+           && func_append oldobjs " $symfileobj"
+         addlibs=$old_convenience
+         ;;
+      esac
+
+      if test -n "$addlibs"; then
+       gentop=$output_objdir/${outputname}x
+       func_append generated " $gentop"
+
+       func_extract_archives $gentop $addlibs
+       func_append oldobjs " $func_extract_archives_result"
+      fi
+
+      # Do each command in the archive commands.
+      if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
+       cmds=$old_archive_from_new_cmds
+      else
+
+       # Add any objects from preloaded convenience libraries
+       if test -n "$dlprefiles"; then
+         gentop=$output_objdir/${outputname}x
+         func_append generated " $gentop"
+
+         func_extract_archives $gentop $dlprefiles
+         func_append oldobjs " $func_extract_archives_result"
+       fi
+
+       # POSIX demands no paths to be encoded in archives.  We have
+       # to avoid creating archives with duplicate basenames if we
+       # might have to extract them afterwards, e.g., when creating a
+       # static archive out of a convenience library, or when linking
+       # the entirety of a libtool archive into another (currently
+       # not supported by libtool).
+       if (for obj in $oldobjs
+           do
+             func_basename "$obj"
+             $ECHO "$func_basename_result"
+           done | sort | sort -uc >/dev/null 2>&1); then
+         :
+       else
+         echo "copying selected object files to avoid basename conflicts..."
+         gentop=$output_objdir/${outputname}x
+         func_append generated " $gentop"
+         func_mkdir_p "$gentop"
+         save_oldobjs=$oldobjs
+         oldobjs=
+         counter=1
+         for obj in $save_oldobjs
+         do
+           func_basename "$obj"
+           objbase=$func_basename_result
+           case " $oldobjs " in
+           " ") oldobjs=$obj ;;
+           *[\ /]"$objbase "*)
+             while :; do
+               # Make sure we don't pick an alternate name that also
+               # overlaps.
+               newobj=lt$counter-$objbase
+               func_arith $counter + 1
+               counter=$func_arith_result
+               case " $oldobjs " in
+               *[\ /]"$newobj "*) ;;
+               *) if test ! -f "$gentop/$newobj"; then break; fi ;;
+               esac
+             done
+             func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
+             func_append oldobjs " $gentop/$newobj"
+             ;;
+           *) func_append oldobjs " $obj" ;;
+           esac
+         done
+       fi
+       func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
+       tool_oldlib=$func_to_tool_file_result
+       eval cmds=\"$old_archive_cmds\"
+
+       func_len " $cmds"
+       len=$func_len_result
+       if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+         cmds=$old_archive_cmds
+       elif test -n "$archiver_list_spec"; then
+         func_verbose "using command file archive linking..."
+         for obj in $oldobjs
+         do
+           func_to_tool_file "$obj"
+           $ECHO "$func_to_tool_file_result"
+         done > $output_objdir/$libname.libcmd
+         func_to_tool_file "$output_objdir/$libname.libcmd"
+         oldobjs=" $archiver_list_spec$func_to_tool_file_result"
+         cmds=$old_archive_cmds
+       else
+         # the command line is too long to link in one step, link in parts
+         func_verbose "using piecewise archive linking..."
+         save_RANLIB=$RANLIB
+         RANLIB=:
+         objlist=
+         concat_cmds=
+         save_oldobjs=$oldobjs
+         oldobjs=
+         # Is there a better way of finding the last object in the list?
+         for obj in $save_oldobjs
+         do
+           last_oldobj=$obj
+         done
+         eval test_cmds=\"$old_archive_cmds\"
+         func_len " $test_cmds"
+         len0=$func_len_result
+         len=$len0
+         for obj in $save_oldobjs
+         do
+           func_len " $obj"
+           func_arith $len + $func_len_result
+           len=$func_arith_result
+           func_append objlist " $obj"
+           if test "$len" -lt "$max_cmd_len"; then
+             :
+           else
+             # the above command should be used before it gets too long
+             oldobjs=$objlist
+             if test "$obj" = "$last_oldobj"; then
+               RANLIB=$save_RANLIB
+             fi
+             test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+             eval concat_cmds=\"\$concat_cmds$old_archive_cmds\"
+             objlist=
+             len=$len0
+           fi
+         done
+         RANLIB=$save_RANLIB
+         oldobjs=$objlist
+         if test -z "$oldobjs"; then
+           eval cmds=\"\$concat_cmds\"
+         else
+           eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
+         fi
+       fi
+      fi
+      func_execute_cmds "$cmds" 'exit $?'
+    done
+
+    test -n "$generated" && \
+      func_show_eval "${RM}r$generated"
+
+    # Now create the libtool archive.
+    case $output in
+    *.la)
+      old_library=
+      test yes = "$build_old_libs" && old_library=$libname.$libext
+      func_verbose "creating $output"
+
+      # Preserve any variables that may affect compiler behavior
+      for var in $variables_saved_for_relink; do
+       if eval test -z \"\${$var+set}\"; then
+         relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
+       elif eval var_value=\$$var; test -z "$var_value"; then
+         relink_command="$var=; export $var; $relink_command"
+       else
+         func_quote_for_eval "$var_value"
+         relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
+       fi
+      done
+      # Quote the link command for shipping.
+      relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
+      relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
+      if test yes = "$hardcode_automatic"; then
+       relink_command=
+      fi
+
+      # Only create the output if not a dry run.
+      $opt_dry_run || {
+       for installed in no yes; do
+         if test yes = "$installed"; then
+           if test -z "$install_libdir"; then
+             break
+           fi
+           output=$output_objdir/${outputname}i
+           # Replace all uninstalled libtool libraries with the installed ones
+           newdependency_libs=
+           for deplib in $dependency_libs; do
+             case $deplib in
+             *.la)
+               func_basename "$deplib"
+               name=$func_basename_result
+               func_resolve_sysroot "$deplib"
+               eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
+               test -z "$libdir" && \
+                 func_fatal_error "'$deplib' is not a valid libtool archive"
+               func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
+               ;;
+             -L*)
+               func_stripname -L '' "$deplib"
+               func_replace_sysroot "$func_stripname_result"
+               func_append newdependency_libs " -L$func_replace_sysroot_result"
+               ;;
+             -R*)
+               func_stripname -R '' "$deplib"
+               func_replace_sysroot "$func_stripname_result"
+               func_append newdependency_libs " -R$func_replace_sysroot_result"
+               ;;
+             *) func_append newdependency_libs " $deplib" ;;
+             esac
+           done
+           dependency_libs=$newdependency_libs
+           newdlfiles=
+
+           for lib in $dlfiles; do
+             case $lib in
+             *.la)
+               func_basename "$lib"
+               name=$func_basename_result
+               eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+               test -z "$libdir" && \
+                 func_fatal_error "'$lib' is not a valid libtool archive"
+               func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
+               ;;
+             *) func_append newdlfiles " $lib" ;;
+             esac
+           done
+           dlfiles=$newdlfiles
+           newdlprefiles=
+           for lib in $dlprefiles; do
+             case $lib in
+             *.la)
+               # Only pass preopened files to the pseudo-archive (for
+               # eventual linking with the app. that links it) if we
+               # didn't already link the preopened objects directly into
+               # the library:
+               func_basename "$lib"
+               name=$func_basename_result
+               eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+               test -z "$libdir" && \
+                 func_fatal_error "'$lib' is not a valid libtool archive"
+               func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
+               ;;
+             esac
+           done
+           dlprefiles=$newdlprefiles
+         else
+           newdlfiles=
+           for lib in $dlfiles; do
+             case $lib in
+               [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
+               *) abs=`pwd`"/$lib" ;;
+             esac
+             func_append newdlfiles " $abs"
+           done
+           dlfiles=$newdlfiles
+           newdlprefiles=
+           for lib in $dlprefiles; do
+             case $lib in
+               [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
+               *) abs=`pwd`"/$lib" ;;
+             esac
+             func_append newdlprefiles " $abs"
+           done
+           dlprefiles=$newdlprefiles
+         fi
+         $RM $output
+         # place dlname in correct position for cygwin
+         # In fact, it would be nice if we could use this code for all target
+         # systems that can't hard-code library paths into their executables
+         # and that have no shared library path variable independent of PATH,
+         # but it turns out we can't easily determine that from inspecting
+         # libtool variables, so we have to hard-code the OSs to which it
+         # applies here; at the moment, that means platforms that use the PE
+         # object format with DLL files.  See the long comment at the top of
+         # tests/bindir.at for full details.
+         tdlname=$dlname
+         case $host,$output,$installed,$module,$dlname in
+           *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
+             # If a -bindir argument was supplied, place the dll there.
+             if test -n "$bindir"; then
+               func_relative_path "$install_libdir" "$bindir"
+               tdlname=$func_relative_path_result/$dlname
+             else
+               # Otherwise fall back on heuristic.
+               tdlname=../bin/$dlname
+             fi
+             ;;
+         esac
+         $ECHO > $output "\
+# $outputname - a libtool library file
+# Generated by $PROGRAM (GNU $PACKAGE) $VERSION
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='$tdlname'
+
+# Names of this library.
+library_names='$library_names'
+
+# The name of the static archive.
+old_library='$old_library'
+
+# Linker flags that cannot go in dependency_libs.
+inherited_linker_flags='$new_inherited_linker_flags'
+
+# Libraries that this one depends upon.
+dependency_libs='$dependency_libs'
+
+# Names of additional weak libraries provided by this library
+weak_library_names='$weak_libs'
+
+# Version information for $libname.
+current=$current
+age=$age
+revision=$revision
+
+# Is this an already installed library?
+installed=$installed
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=$module
+
+# Files to dlopen/dlpreopen
+dlopen='$dlfiles'
+dlpreopen='$dlprefiles'
+
+# Directory that this library needs to be installed in:
+libdir='$install_libdir'"
+         if test no,yes = "$installed,$need_relink"; then
+           $ECHO >> $output "\
+relink_command=\"$relink_command\""
+         fi
+       done
+      }
+
+      # Do a symbolic link so that the libtool archive can be found in
+      # LD_LIBRARY_PATH before the program is installed.
+      func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
+      ;;
+    esac
+    exit $EXIT_SUCCESS
+}
+
+if test link = "$opt_mode" || test relink = "$opt_mode"; then
+  func_mode_link ${1+"$@"}
+fi
+
+
+# func_mode_uninstall arg...
+func_mode_uninstall ()
+{
+    $debug_cmd
+
+    RM=$nonopt
+    files=
+    rmforce=false
+    exit_status=0
+
+    # This variable tells wrapper scripts just to set variables rather
+    # than running their programs.
+    libtool_install_magic=$magic
+
+    for arg
+    do
+      case $arg in
+      -f) func_append RM " $arg"; rmforce=: ;;
+      -*) func_append RM " $arg" ;;
+      *) func_append files " $arg" ;;
+      esac
+    done
+
+    test -z "$RM" && \
+      func_fatal_help "you must specify an RM program"
+
+    rmdirs=
+
+    for file in $files; do
+      func_dirname "$file" "" "."
+      dir=$func_dirname_result
+      if test . = "$dir"; then
+       odir=$objdir
+      else
+       odir=$dir/$objdir
+      fi
+      func_basename "$file"
+      name=$func_basename_result
+      test uninstall = "$opt_mode" && odir=$dir
+
+      # Remember odir for removal later, being careful to avoid duplicates
+      if test clean = "$opt_mode"; then
+       case " $rmdirs " in
+         *" $odir "*) ;;
+         *) func_append rmdirs " $odir" ;;
+       esac
+      fi
+
+      # Don't error if the file doesn't exist and rm -f was used.
+      if { test -L "$file"; } >/dev/null 2>&1 ||
+        { test -h "$file"; } >/dev/null 2>&1 ||
+        test -f "$file"; then
+       :
+      elif test -d "$file"; then
+       exit_status=1
+       continue
+      elif $rmforce; then
+       continue
+      fi
+
+      rmfiles=$file
+
+      case $name in
+      *.la)
+       # Possibly a libtool archive, so verify it.
+       if func_lalib_p "$file"; then
+         func_source $dir/$name
+
+         # Delete the libtool libraries and symlinks.
+         for n in $library_names; do
+           func_append rmfiles " $odir/$n"
+         done
+         test -n "$old_library" && func_append rmfiles " $odir/$old_library"
+
+         case $opt_mode in
+         clean)
+           case " $library_names " in
+           *" $dlname "*) ;;
+           *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
+           esac
+           test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
+           ;;
+         uninstall)
+           if test -n "$library_names"; then
+             # Do each command in the postuninstall commands.
+             func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1'
+           fi
+
+           if test -n "$old_library"; then
+             # Do each command in the old_postuninstall commands.
+             func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1'
+           fi
+           # FIXME: should reinstall the best remaining shared library.
+           ;;
+         esac
+       fi
+       ;;
+
+      *.lo)
+       # Possibly a libtool object, so verify it.
+       if func_lalib_p "$file"; then
+
+         # Read the .lo file
+         func_source $dir/$name
+
+         # Add PIC object to the list of files to remove.
+         if test -n "$pic_object" && test none != "$pic_object"; then
+           func_append rmfiles " $dir/$pic_object"
+         fi
+
+         # Add non-PIC object to the list of files to remove.
+         if test -n "$non_pic_object" && test none != "$non_pic_object"; then
+           func_append rmfiles " $dir/$non_pic_object"
+         fi
+       fi
+       ;;
+
+      *)
+       if test clean = "$opt_mode"; then
+         noexename=$name
+         case $file in
+         *.exe)
+           func_stripname '' '.exe' "$file"
+           file=$func_stripname_result
+           func_stripname '' '.exe' "$name"
+           noexename=$func_stripname_result
+           # $file with .exe has already been added to rmfiles,
+           # add $file without .exe
+           func_append rmfiles " $file"
+           ;;
+         esac
+         # Do a test to see if this is a libtool program.
+         if func_ltwrapper_p "$file"; then
+           if func_ltwrapper_executable_p "$file"; then
+             func_ltwrapper_scriptname "$file"
+             relink_command=
+             func_source $func_ltwrapper_scriptname_result
+             func_append rmfiles " $func_ltwrapper_scriptname_result"
+           else
+             relink_command=
+             func_source $dir/$noexename
+           fi
+
+           # note $name still contains .exe if it was in $file originally
+           # as does the version of $file that was added into $rmfiles
+           func_append rmfiles " $odir/$name $odir/${name}S.$objext"
+           if test yes = "$fast_install" && test -n "$relink_command"; then
+             func_append rmfiles " $odir/lt-$name"
+           fi
+           if test "X$noexename" != "X$name"; then
+             func_append rmfiles " $odir/lt-$noexename.c"
+           fi
+         fi
+       fi
+       ;;
+      esac
+      func_show_eval "$RM $rmfiles" 'exit_status=1'
+    done
+
+    # Try to remove the $objdir's in the directories where we deleted files
+    for dir in $rmdirs; do
+      if test -d "$dir"; then
+       func_show_eval "rmdir $dir >/dev/null 2>&1"
+      fi
+    done
+
+    exit $exit_status
+}
+
+if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then
+  func_mode_uninstall ${1+"$@"}
+fi
+
+test -z "$opt_mode" && {
+  help=$generic_help
+  func_fatal_help "you must specify a MODE"
+}
+
+test -z "$exec_cmd" && \
+  func_fatal_help "invalid operation mode '$opt_mode'"
+
+if test -n "$exec_cmd"; then
+  eval exec "$exec_cmd"
+  exit $EXIT_FAILURE
+fi
+
+exit $exit_status
+
+
+# The TAGs below are defined such that we never get into a situation
+# where we disable both kinds of libraries.  Given conflicting
+# choices, we go for a static library, that is the most portable,
+# since we can't tell whether shared libraries were disabled because
+# the user asked for that or because the platform doesn't support
+# them.  This is particularly important on AIX, because we don't
+# support having both static and shared libraries enabled at the same
+# time on that platform, so we default to a shared-only configuration.
+# If a disable-shared tag is given, we'll fallback to a static-only
+# configuration.  But we'll never go from static-only to shared-only.
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
+build_libtool_libs=no
+build_old_libs=yes
+# ### END LIBTOOL TAG CONFIG: disable-shared
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-static
+build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
+# ### END LIBTOOL TAG CONFIG: disable-static
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:2
+# End:
diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4
new file mode 100644 (file)
index 0000000..d90de34
--- /dev/null
@@ -0,0 +1,309 @@
+# ===========================================================================
+#        http://www.gnu.org/software/autoconf-archive/ax_pthread.html
+# ===========================================================================
+#
+# SYNOPSIS
+#
+#   AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
+#
+# DESCRIPTION
+#
+#   This macro figures out how to build C programs using POSIX threads. It
+#   sets the PTHREAD_LIBS output variable to the threads library and linker
+#   flags, and the PTHREAD_CFLAGS output variable to any special C compiler
+#   flags that are needed. (The user can also force certain compiler
+#   flags/libs to be tested by setting these environment variables.)
+#
+#   Also sets PTHREAD_CC to any special C compiler that is needed for
+#   multi-threaded programs (defaults to the value of CC otherwise). (This
+#   is necessary on AIX to use the special cc_r compiler alias.)
+#
+#   NOTE: You are assumed to not only compile your program with these flags,
+#   but also link it with them as well. e.g. you should link with
+#   $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
+#
+#   If you are only building threads programs, you may wish to use these
+#   variables in your default LIBS, CFLAGS, and CC:
+#
+#     LIBS="$PTHREAD_LIBS $LIBS"
+#     CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+#     CC="$PTHREAD_CC"
+#
+#   In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
+#   has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
+#   (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
+#
+#   Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
+#   PTHREAD_PRIO_INHERIT symbol is defined when compiling with
+#   PTHREAD_CFLAGS.
+#
+#   ACTION-IF-FOUND is a list of shell commands to run if a threads library
+#   is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
+#   is not found. If ACTION-IF-FOUND is not specified, the default action
+#   will define HAVE_PTHREAD.
+#
+#   Please let the authors know if this macro fails on any platform, or if
+#   you have any other suggestions or comments. This macro was based on work
+#   by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
+#   from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
+#   Alejandro Forero Cuervo to the autoconf macro repository. We are also
+#   grateful for the helpful feedback of numerous users.
+#
+#   Updated for Autoconf 2.68 by Daniel Richard G.
+#
+# LICENSE
+#
+#   Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
+#   Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG>
+#
+#   This program is free software: you can redistribute it and/or modify it
+#   under the terms of the GNU General Public License as published by the
+#   Free Software Foundation, either version 3 of the License, or (at your
+#   option) any later version.
+#
+#   This program is distributed in the hope that it will be useful, but
+#   WITHOUT ANY WARRANTY; without even the implied warranty of
+#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
+#   Public License for more details.
+#
+#   You should have received a copy of the GNU General Public License along
+#   with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+#   As a special exception, the respective Autoconf Macro's copyright owner
+#   gives unlimited permission to copy, distribute and modify the configure
+#   scripts that are the output of Autoconf when processing the Macro. You
+#   need not follow the terms of the GNU General Public License when using
+#   or distributing such scripts, even though portions of the text of the
+#   Macro appear in them. The GNU General Public License (GPL) does govern
+#   all other use of the material that constitutes the Autoconf Macro.
+#
+#   This special exception to the GPL applies to versions of the Autoconf
+#   Macro released by the Autoconf Archive. When you make and distribute a
+#   modified version of the Autoconf Macro, you may extend this special
+#   exception to the GPL to apply to your modified version as well.
+
+#serial 18
+
+AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
+AC_DEFUN([AX_PTHREAD], [
+AC_REQUIRE([AC_CANONICAL_HOST])
+AC_LANG_PUSH([C])
+ax_pthread_ok=no
+
+# We used to check for pthread.h first, but this fails if pthread.h
+# requires special compiler flags (e.g. on True64 or Sequent).
+# It gets checked for in the link test anyway.
+
+# First of all, check if the user has set any of the PTHREAD_LIBS,
+# etcetera environment variables, and if threads linking works using
+# them:
+if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
+        save_CFLAGS="$CFLAGS"
+        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+        save_LIBS="$LIBS"
+        LIBS="$PTHREAD_LIBS $LIBS"
+        AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
+        AC_TRY_LINK_FUNC(pthread_join, ax_pthread_ok=yes)
+        AC_MSG_RESULT($ax_pthread_ok)
+        if test x"$ax_pthread_ok" = xno; then
+                PTHREAD_LIBS=""
+                PTHREAD_CFLAGS=""
+        fi
+        LIBS="$save_LIBS"
+        CFLAGS="$save_CFLAGS"
+fi
+
+# We must check for the threads library under a number of different
+# names; the ordering is very important because some systems
+# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
+# libraries is broken (non-POSIX).
+
+# Create a list of thread flags to try.  Items starting with a "-" are
+# C compiler flags, and other items are library names, except for "none"
+# which indicates that we try without any flags at all, and "pthread-config"
+# which is a program returning the flags for the Pth emulation library.
+
+ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
+
+# The ordering *is* (sometimes) important.  Some notes on the
+# individual items follow:
+
+# pthreads: AIX (must check this before -lpthread)
+# none: in case threads are in libc; should be tried before -Kthread and
+#       other compiler flags to prevent continual compiler warnings
+# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
+# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
+# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
+# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
+# -pthreads: Solaris/gcc
+# -mthreads: Mingw32/gcc, Lynx/gcc
+# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
+#      doesn't hurt to check since this sometimes defines pthreads too;
+#      also defines -D_REENTRANT)
+#      ... -mt is also the pthreads flag for HP/aCC
+# pthread: Linux, etcetera
+# --thread-safe: KAI C++
+# pthread-config: use pthread-config program (for GNU Pth library)
+
+case ${host_os} in
+        solaris*)
+
+        # On Solaris (at least, for some versions), libc contains stubbed
+        # (non-functional) versions of the pthreads routines, so link-based
+        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
+        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
+        # a function called by this macro, so we could check for that, but
+        # who knows whether they'll stub that too in a future libc.)  So,
+        # we'll just look for -pthreads and -lpthread first:
+
+        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
+        ;;
+
+        darwin*)
+        ax_pthread_flags="-pthread $ax_pthread_flags"
+        ;;
+esac
+
+if test x"$ax_pthread_ok" = xno; then
+for flag in $ax_pthread_flags; do
+
+        case $flag in
+                none)
+                AC_MSG_CHECKING([whether pthreads work without any flags])
+                ;;
+
+                -*)
+                AC_MSG_CHECKING([whether pthreads work with $flag])
+                PTHREAD_CFLAGS="$flag"
+                ;;
+
+                pthread-config)
+                AC_CHECK_PROG(ax_pthread_config, pthread-config, yes, no)
+                if test x"$ax_pthread_config" = xno; then continue; fi
+                PTHREAD_CFLAGS="`pthread-config --cflags`"
+                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
+                ;;
+
+                *)
+                AC_MSG_CHECKING([for the pthreads library -l$flag])
+                PTHREAD_LIBS="-l$flag"
+                ;;
+        esac
+
+        save_LIBS="$LIBS"
+        save_CFLAGS="$CFLAGS"
+        LIBS="$PTHREAD_LIBS $LIBS"
+        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+
+        # Check for various functions.  We must include pthread.h,
+        # since some functions may be macros.  (On the Sequent, we
+        # need a special flag -Kthread to make this header compile.)
+        # We check for pthread_join because it is in -lpthread on IRIX
+        # while pthread_create is in libc.  We check for pthread_attr_init
+        # due to DEC craziness with -lpthreads.  We check for
+        # pthread_cleanup_push because it is one of the few pthread
+        # functions on Solaris that doesn't have a non-functional libc stub.
+        # We try pthread_create on general principles.
+        AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
+                        static void routine(void *a) { a = 0; }
+                        static void *start_routine(void *a) { return a; }],
+                       [pthread_t th; pthread_attr_t attr;
+                        pthread_create(&th, 0, start_routine, 0);
+                        pthread_join(th, 0);
+                        pthread_attr_init(&attr);
+                        pthread_cleanup_push(routine, 0);
+                        pthread_cleanup_pop(0) /* ; */])],
+                [ax_pthread_ok=yes],
+                [])
+
+        LIBS="$save_LIBS"
+        CFLAGS="$save_CFLAGS"
+
+        AC_MSG_RESULT($ax_pthread_ok)
+        if test "x$ax_pthread_ok" = xyes; then
+                break;
+        fi
+
+        PTHREAD_LIBS=""
+        PTHREAD_CFLAGS=""
+done
+fi
+
+# Various other checks:
+if test "x$ax_pthread_ok" = xyes; then
+        save_LIBS="$LIBS"
+        LIBS="$PTHREAD_LIBS $LIBS"
+        save_CFLAGS="$CFLAGS"
+        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+
+        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
+        AC_MSG_CHECKING([for joinable pthread attribute])
+        attr_name=unknown
+        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
+            AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
+                           [int attr = $attr; return attr /* ; */])],
+                [attr_name=$attr; break],
+                [])
+        done
+        AC_MSG_RESULT($attr_name)
+        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
+            AC_DEFINE_UNQUOTED(PTHREAD_CREATE_JOINABLE, $attr_name,
+                               [Define to necessary symbol if this constant
+                                uses a non-standard name on your system.])
+        fi
+
+        AC_MSG_CHECKING([if more special flags are required for pthreads])
+        flag=no
+        case ${host_os} in
+            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
+            osf* | hpux*) flag="-D_REENTRANT";;
+            solaris*)
+            if test "$GCC" = "yes"; then
+                flag="-D_REENTRANT"
+            else
+                flag="-mt -D_REENTRANT"
+            fi
+            ;;
+        esac
+        AC_MSG_RESULT(${flag})
+        if test "x$flag" != xno; then
+            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
+        fi
+
+        AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
+            ax_cv_PTHREAD_PRIO_INHERIT, [
+                AC_LINK_IFELSE([
+                    AC_LANG_PROGRAM([[#include <pthread.h>]], [[int i = PTHREAD_PRIO_INHERIT;]])],
+                    [ax_cv_PTHREAD_PRIO_INHERIT=yes],
+                    [ax_cv_PTHREAD_PRIO_INHERIT=no])
+            ])
+        AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"],
+            AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], 1, [Have PTHREAD_PRIO_INHERIT.]))
+
+        LIBS="$save_LIBS"
+        CFLAGS="$save_CFLAGS"
+
+        # More AIX lossage: must compile with xlc_r or cc_r
+        if test x"$GCC" != xyes; then
+          AC_CHECK_PROGS(PTHREAD_CC, xlc_r cc_r, ${CC})
+        else
+          PTHREAD_CC=$CC
+        fi
+else
+        PTHREAD_CC="$CC"
+fi
+
+AC_SUBST(PTHREAD_LIBS)
+AC_SUBST(PTHREAD_CFLAGS)
+AC_SUBST(PTHREAD_CC)
+
+# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
+if test x"$ax_pthread_ok" = xyes; then
+        ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
+        :
+else
+        ax_pthread_ok=no
+        $2
+fi
+AC_LANG_POP
+])dnl AX_PTHREAD
diff --git a/m4/gtk-doc.m4 b/m4/gtk-doc.m4
new file mode 100644 (file)
index 0000000..3675543
--- /dev/null
@@ -0,0 +1,88 @@
+dnl -*- mode: autoconf -*-
+
+# serial 2
+
+dnl Usage:
+dnl   GTK_DOC_CHECK([minimum-gtk-doc-version])
+AC_DEFUN([GTK_DOC_CHECK],
+[
+  AC_REQUIRE([PKG_PROG_PKG_CONFIG])
+  AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
+  AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
+
+  ifelse([$1],[],[gtk_doc_requires="gtk-doc"],[gtk_doc_requires="gtk-doc >= $1"])
+  AC_MSG_CHECKING([for gtk-doc])
+  PKG_CHECK_EXISTS([$gtk_doc_requires],[have_gtk_doc=yes],[have_gtk_doc=no])
+  AC_MSG_RESULT($have_gtk_doc)
+
+  if test "$have_gtk_doc" = "no"; then
+      AC_MSG_WARN([
+  You will not be able to create source packages with 'make dist'
+  because $gtk_doc_requires is not found.])
+  fi
+
+  dnl check for tools we added during development
+  dnl Use AC_CHECK_PROG to avoid the check target using an absolute path that
+  dnl may not be writable by the user. Currently, automake requires that the
+  dnl test name must end in '.test'.
+  dnl https://bugzilla.gnome.org/show_bug.cgi?id=701638
+  AC_CHECK_PROG([GTKDOC_CHECK],[gtkdoc-check],[gtkdoc-check.test])
+  AC_PATH_PROG([GTKDOC_CHECK_PATH],[gtkdoc-check])
+  AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
+  AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
+
+  dnl for overriding the documentation installation directory
+  AC_ARG_WITH([html-dir],
+    AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
+    [with_html_dir='${datadir}/gtk-doc/html'])
+  HTML_DIR="$with_html_dir"
+  AC_SUBST([HTML_DIR])
+
+  dnl enable/disable documentation building
+  AC_ARG_ENABLE([gtk-doc],
+    AS_HELP_STRING([--enable-gtk-doc],
+                   [use gtk-doc to build documentation [[default=no]]]),,
+    [enable_gtk_doc=no])
+
+  AC_MSG_CHECKING([whether to build gtk-doc documentation])
+  AC_MSG_RESULT($enable_gtk_doc)
+
+  if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
+    AC_MSG_ERROR([
+  You must have $gtk_doc_requires installed to build documentation for
+  $PACKAGE_NAME. Please install gtk-doc or disable building the
+  documentation by adding '--disable-gtk-doc' to '[$]0'.])
+  fi
+
+  dnl don't check for glib if we build glib
+  if test "x$PACKAGE_NAME" != "xglib"; then
+    dnl don't fail if someone does not have glib
+    PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0,,[:])
+  fi
+
+  dnl enable/disable output formats
+  AC_ARG_ENABLE([gtk-doc-html],
+    AS_HELP_STRING([--enable-gtk-doc-html],
+                   [build documentation in html format [[default=yes]]]),,
+    [enable_gtk_doc_html=yes])
+    AC_ARG_ENABLE([gtk-doc-pdf],
+      AS_HELP_STRING([--enable-gtk-doc-pdf],
+                     [build documentation in pdf format [[default=no]]]),,
+      [enable_gtk_doc_pdf=no])
+
+  if test -z "$GTKDOC_MKPDF"; then
+    enable_gtk_doc_pdf=no
+  fi
+
+  if test -z "$AM_DEFAULT_VERBOSITY"; then
+    AM_DEFAULT_VERBOSITY=1
+  fi
+  AC_SUBST([AM_DEFAULT_VERBOSITY])
+
+  AM_CONDITIONAL([HAVE_GTK_DOC], [test x$have_gtk_doc = xyes])
+  AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
+  AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
+  AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
+  AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
+  AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
+])
diff --git a/m4/libtool.m4 b/m4/libtool.m4
new file mode 100644 (file)
index 0000000..4bc6b22
--- /dev/null
@@ -0,0 +1,7989 @@
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
+#
+#   Copyright (C) 1996-2001, 2003-2013 Free Software Foundation, Inc.
+#   Written by Gordon Matzigkeit, 1996
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+m4_define([_LT_COPYING], [dnl
+#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
+#                 Foundation, Inc.
+#   Written by Gordon Matzigkeit, 1996
+#
+#   This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING.  If not, a copy
+# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
+# obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+])
+
+# serial 58 LT_INIT
+
+
+# LT_PREREQ(VERSION)
+# ------------------
+# Complain and exit if this libtool version is less that VERSION.
+m4_defun([LT_PREREQ],
+[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
+       [m4_default([$3],
+                  [m4_fatal([Libtool version $1 or higher is required],
+                            63)])],
+       [$2])])
+
+
+# _LT_CHECK_BUILDDIR
+# ------------------
+# Complain if the absolute build directory name contains unusual characters
+m4_defun([_LT_CHECK_BUILDDIR],
+[case `pwd` in
+  *\ * | *\    *)
+    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
+esac
+])
+
+
+# LT_INIT([OPTIONS])
+# ------------------
+AC_DEFUN([LT_INIT],
+[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
+AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
+AC_BEFORE([$0], [LT_LANG])dnl
+AC_BEFORE([$0], [LT_OUTPUT])dnl
+AC_BEFORE([$0], [LTDL_INIT])dnl
+m4_require([_LT_CHECK_BUILDDIR])dnl
+
+dnl Autoconf doesn't catch unexpanded LT_ macros by default:
+m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
+m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
+dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
+dnl unless we require an AC_DEFUNed macro:
+AC_REQUIRE([LTOPTIONS_VERSION])dnl
+AC_REQUIRE([LTSUGAR_VERSION])dnl
+AC_REQUIRE([LTVERSION_VERSION])dnl
+AC_REQUIRE([LTOBSOLETE_VERSION])dnl
+m4_require([_LT_PROG_LTMAIN])dnl
+
+_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
+
+dnl Parse OPTIONS
+_LT_SET_OPTIONS([$0], [$1])
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS=$ltmain
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+AC_SUBST(LIBTOOL)dnl
+
+_LT_SETUP
+
+# Only expand once:
+m4_define([LT_INIT])
+])# LT_INIT
+
+# Old names:
+AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
+AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
+dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
+
+
+# _LT_CC_BASENAME(CC)
+# -------------------
+# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
+m4_defun([_LT_CC_BASENAME],
+[for cc_temp in $1""; do
+  case $cc_temp in
+    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
+    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
+    \-*) ;;
+    *) break;;
+  esac
+done
+cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
+])
+
+
+# _LT_FILEUTILS_DEFAULTS
+# ----------------------
+# It is okay to use these file commands and assume they have been set
+# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
+m4_defun([_LT_FILEUTILS_DEFAULTS],
+[: ${CP="cp -f"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+])# _LT_FILEUTILS_DEFAULTS
+
+
+# _LT_SETUP
+# ---------
+m4_defun([_LT_SETUP],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
+AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
+
+_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
+dnl
+_LT_DECL([], [host_alias], [0], [The host system])dnl
+_LT_DECL([], [host], [0])dnl
+_LT_DECL([], [host_os], [0])dnl
+dnl
+_LT_DECL([], [build_alias], [0], [The build system])dnl
+_LT_DECL([], [build], [0])dnl
+_LT_DECL([], [build_os], [0])dnl
+dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([LT_PATH_LD])dnl
+AC_REQUIRE([LT_PATH_NM])dnl
+dnl
+AC_REQUIRE([AC_PROG_LN_S])dnl
+test -z "$LN_S" && LN_S="ln -s"
+_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
+dnl
+AC_REQUIRE([LT_CMD_MAX_LEN])dnl
+_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
+_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
+dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_CHECK_SHELL_FEATURES])dnl
+m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
+m4_require([_LT_CMD_RELOAD])dnl
+m4_require([_LT_CHECK_MAGIC_METHOD])dnl
+m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
+m4_require([_LT_CMD_OLD_ARCHIVE])dnl
+m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
+m4_require([_LT_WITH_SYSROOT])dnl
+
+_LT_CONFIG_LIBTOOL_INIT([
+# See if we are running on zsh, and set the options that allow our
+# commands through without removal of \ escapes INIT.
+if test -n "\${ZSH_VERSION+set}"; then
+   setopt NO_GLOB_SUBST
+fi
+])
+if test -n "${ZSH_VERSION+set}"; then
+   setopt NO_GLOB_SUBST
+fi
+
+_LT_CHECK_OBJDIR
+
+m4_require([_LT_TAG_COMPILER])dnl
+
+case $host_os in
+aix3*)
+  # AIX sometimes has problems with the GCC collect2 program.  For some
+  # reason, if we set the COLLECT_NAMES environment variable, the problems
+  # vanish in a puff of smoke.
+  if test set != "${COLLECT_NAMES+set}"; then
+    COLLECT_NAMES=
+    export COLLECT_NAMES
+  fi
+  ;;
+esac
+
+# Global variables:
+ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a '.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+
+with_gnu_ld=$lt_cv_prog_gnu_ld
+
+old_CC=$CC
+old_CFLAGS=$CFLAGS
+
+# Set sane defaults for various variables
+test -z "$CC" && CC=cc
+test -z "$LTCC" && LTCC=$CC
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
+test -z "$LD" && LD=ld
+test -z "$ac_objext" && ac_objext=o
+
+_LT_CC_BASENAME([$compiler])
+
+# Only perform the check for file, if the check method requires it
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+case $deplibs_check_method in
+file_magic*)
+  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+    _LT_PATH_MAGIC
+  fi
+  ;;
+esac
+
+# Use C for the default configuration in the libtool script
+LT_SUPPORTED_TAG([CC])
+_LT_LANG_C_CONFIG
+_LT_LANG_DEFAULT_CONFIG
+_LT_CONFIG_COMMANDS
+])# _LT_SETUP
+
+
+# _LT_PREPARE_SED_QUOTE_VARS
+# --------------------------
+# Define a few sed substitution that help us do robust quoting.
+m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
+[# Backslashify metacharacters that are still active within
+# double-quoted strings.
+sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\([["`\\]]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to delay expansion of an escaped single quote.
+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+])
+
+# _LT_PROG_LTMAIN
+# ---------------
+# Note that this code is called both from 'configure', and 'config.status'
+# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
+# 'config.status' has no value for ac_aux_dir unless we are using Automake,
+# so we pass a copy along to make sure it has a sensible value anyway.
+m4_defun([_LT_PROG_LTMAIN],
+[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
+_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
+ltmain=$ac_aux_dir/ltmain.sh
+])# _LT_PROG_LTMAIN
+
+
+## ------------------------------------- ##
+## Accumulate code for creating libtool. ##
+## ------------------------------------- ##
+
+# So that we can recreate a full libtool script including additional
+# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
+# in macros and then make a single call at the end using the 'libtool'
+# label.
+
+
+# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
+# ----------------------------------------
+# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
+m4_define([_LT_CONFIG_LIBTOOL_INIT],
+[m4_ifval([$1],
+          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
+                     [$1
+])])])
+
+# Initialize.
+m4_define([_LT_OUTPUT_LIBTOOL_INIT])
+
+
+# _LT_CONFIG_LIBTOOL([COMMANDS])
+# ------------------------------
+# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
+m4_define([_LT_CONFIG_LIBTOOL],
+[m4_ifval([$1],
+          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
+                     [$1
+])])])
+
+# Initialize.
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
+
+
+# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
+# -----------------------------------------------------
+m4_defun([_LT_CONFIG_SAVE_COMMANDS],
+[_LT_CONFIG_LIBTOOL([$1])
+_LT_CONFIG_LIBTOOL_INIT([$2])
+])
+
+
+# _LT_FORMAT_COMMENT([COMMENT])
+# -----------------------------
+# Add leading comment marks to the start of each line, and a trailing
+# full-stop to the whole comment if one is not present already.
+m4_define([_LT_FORMAT_COMMENT],
+[m4_ifval([$1], [
+m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
+              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
+)])
+
+
+
+## ------------------------ ##
+## FIXME: Eliminate VARNAME ##
+## ------------------------ ##
+
+
+# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
+# -------------------------------------------------------------------
+# CONFIGNAME is the name given to the value in the libtool script.
+# VARNAME is the (base) name used in the configure script.
+# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
+# VARNAME.  Any other value will be used directly.
+m4_define([_LT_DECL],
+[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
+    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
+       [m4_ifval([$1], [$1], [$2])])
+    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
+    m4_ifval([$4],
+       [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
+    lt_dict_add_subkey([lt_decl_dict], [$2],
+       [tagged?], [m4_ifval([$5], [yes], [no])])])
+])
+
+
+# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
+# --------------------------------------------------------
+m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
+
+
+# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
+# ------------------------------------------------
+m4_define([lt_decl_tag_varnames],
+[_lt_decl_filter([tagged?], [yes], $@)])
+
+
+# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
+# ---------------------------------------------------------
+m4_define([_lt_decl_filter],
+[m4_case([$#],
+  [0], [m4_fatal([$0: too few arguments: $#])],
+  [1], [m4_fatal([$0: too few arguments: $#: $1])],
+  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
+  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
+  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
+])
+
+
+# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
+# --------------------------------------------------
+m4_define([lt_decl_quote_varnames],
+[_lt_decl_filter([value], [1], $@)])
+
+
+# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
+# ---------------------------------------------------
+m4_define([lt_decl_dquote_varnames],
+[_lt_decl_filter([value], [2], $@)])
+
+
+# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
+# ---------------------------------------------------
+m4_define([lt_decl_varnames_tagged],
+[m4_assert([$# <= 2])dnl
+_$0(m4_quote(m4_default([$1], [[, ]])),
+    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
+    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
+m4_define([_lt_decl_varnames_tagged],
+[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
+
+
+# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
+# ------------------------------------------------
+m4_define([lt_decl_all_varnames],
+[_$0(m4_quote(m4_default([$1], [[, ]])),
+     m4_if([$2], [],
+          m4_quote(lt_decl_varnames),
+       m4_quote(m4_shift($@))))[]dnl
+])
+m4_define([_lt_decl_all_varnames],
+[lt_join($@, lt_decl_varnames_tagged([$1],
+                       lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
+])
+
+
+# _LT_CONFIG_STATUS_DECLARE([VARNAME])
+# ------------------------------------
+# Quote a variable value, and forward it to 'config.status' so that its
+# declaration there will have the same value as in 'configure'.  VARNAME
+# must have a single quote delimited value for this to work.
+m4_define([_LT_CONFIG_STATUS_DECLARE],
+[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
+
+
+# _LT_CONFIG_STATUS_DECLARATIONS
+# ------------------------------
+# We delimit libtool config variables with single quotes, so when
+# we write them to config.status, we have to be sure to quote all
+# embedded single quotes properly.  In configure, this macro expands
+# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
+#
+#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
+m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
+[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
+    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
+
+
+# _LT_LIBTOOL_TAGS
+# ----------------
+# Output comment and list of tags supported by the script
+m4_defun([_LT_LIBTOOL_TAGS],
+[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
+available_tags='_LT_TAGS'dnl
+])
+
+
+# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
+# -----------------------------------
+# Extract the dictionary values for VARNAME (optionally with TAG) and
+# expand to a commented shell variable setting:
+#
+#    # Some comment about what VAR is for.
+#    visible_name=$lt_internal_name
+m4_define([_LT_LIBTOOL_DECLARE],
+[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
+                                          [description])))[]dnl
+m4_pushdef([_libtool_name],
+    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
+m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
+    [0], [_libtool_name=[$]$1],
+    [1], [_libtool_name=$lt_[]$1],
+    [2], [_libtool_name=$lt_[]$1],
+    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
+m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
+])
+
+
+# _LT_LIBTOOL_CONFIG_VARS
+# -----------------------
+# Produce commented declarations of non-tagged libtool config variables
+# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
+# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
+# section) are produced by _LT_LIBTOOL_TAG_VARS.
+m4_defun([_LT_LIBTOOL_CONFIG_VARS],
+[m4_foreach([_lt_var],
+    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
+    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
+
+
+# _LT_LIBTOOL_TAG_VARS(TAG)
+# -------------------------
+m4_define([_LT_LIBTOOL_TAG_VARS],
+[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
+    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
+
+
+# _LT_TAGVAR(VARNAME, [TAGNAME])
+# ------------------------------
+m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
+
+
+# _LT_CONFIG_COMMANDS
+# -------------------
+# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
+# variables for single and double quote escaping we saved from calls
+# to _LT_DECL, we can put quote escaped variables declarations
+# into 'config.status', and then the shell code to quote escape them in
+# for loops in 'config.status'.  Finally, any additional code accumulated
+# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
+m4_defun([_LT_CONFIG_COMMANDS],
+[AC_PROVIDE_IFELSE([LT_OUTPUT],
+       dnl If the libtool generation code has been placed in $CONFIG_LT,
+       dnl instead of duplicating it all over again into config.status,
+       dnl then we will have config.status run $CONFIG_LT later, so it
+       dnl needs to know what name is stored there:
+        [AC_CONFIG_COMMANDS([libtool],
+            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
+    dnl If the libtool generation code is destined for config.status,
+    dnl expand the accumulated commands and init code now:
+    [AC_CONFIG_COMMANDS([libtool],
+        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
+])#_LT_CONFIG_COMMANDS
+
+
+# Initialize.
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
+[
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+sed_quote_subst='$sed_quote_subst'
+double_quote_subst='$double_quote_subst'
+delay_variable_subst='$delay_variable_subst'
+_LT_CONFIG_STATUS_DECLARATIONS
+LTCC='$LTCC'
+LTCFLAGS='$LTCFLAGS'
+compiler='$compiler_DEFAULT'
+
+# A function that is used when there is no print builtin or printf.
+func_fallback_echo ()
+{
+  eval 'cat <<_LTECHO_EOF
+\$[]1
+_LTECHO_EOF'
+}
+
+# Quote evaled strings.
+for var in lt_decl_all_varnames([[ \
+]], lt_decl_quote_varnames); do
+    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
+    *[[\\\\\\\`\\"\\\$]]*)
+      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
+      ;;
+    *)
+      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+      ;;
+    esac
+done
+
+# Double-quote double-evaled strings.
+for var in lt_decl_all_varnames([[ \
+]], lt_decl_dquote_varnames); do
+    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
+    *[[\\\\\\\`\\"\\\$]]*)
+      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
+      ;;
+    *)
+      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+      ;;
+    esac
+done
+
+_LT_OUTPUT_LIBTOOL_INIT
+])
+
+# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
+# ------------------------------------
+# Generate a child script FILE with all initialization necessary to
+# reuse the environment learned by the parent script, and make the
+# file executable.  If COMMENT is supplied, it is inserted after the
+# '#!' sequence but before initialization text begins.  After this
+# macro, additional text can be appended to FILE to form the body of
+# the child script.  The macro ends with non-zero status if the
+# file could not be fully written (such as if the disk is full).
+m4_ifdef([AS_INIT_GENERATED],
+[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
+[m4_defun([_LT_GENERATED_FILE_INIT],
+[m4_require([AS_PREPARE])]dnl
+[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
+[lt_write_fail=0
+cat >$1 <<_ASEOF || lt_write_fail=1
+#! $SHELL
+# Generated by $as_me.
+$2
+SHELL=\${CONFIG_SHELL-$SHELL}
+export SHELL
+_ASEOF
+cat >>$1 <<\_ASEOF || lt_write_fail=1
+AS_SHELL_SANITIZE
+_AS_PREPARE
+exec AS_MESSAGE_FD>&1
+_ASEOF
+test 0 = "$lt_write_fail" && chmod +x $1[]dnl
+m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
+
+# LT_OUTPUT
+# ---------
+# This macro allows early generation of the libtool script (before
+# AC_OUTPUT is called), incase it is used in configure for compilation
+# tests.
+AC_DEFUN([LT_OUTPUT],
+[: ${CONFIG_LT=./config.lt}
+AC_MSG_NOTICE([creating $CONFIG_LT])
+_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
+[# Run this file to recreate a libtool stub with the current configuration.])
+
+cat >>"$CONFIG_LT" <<\_LTEOF
+lt_cl_silent=false
+exec AS_MESSAGE_LOG_FD>>config.log
+{
+  echo
+  AS_BOX([Running $as_me.])
+} >&AS_MESSAGE_LOG_FD
+
+lt_cl_help="\
+'$as_me' creates a local libtool stub from the current configuration,
+for use in further configure time tests before the real libtool is
+generated.
+
+Usage: $[0] [[OPTIONS]]
+
+  -h, --help      print this help, then exit
+  -V, --version   print version number, then exit
+  -q, --quiet     do not print progress messages
+  -d, --debug     don't remove temporary files
+
+Report bugs to <bug-libtool@gnu.org>."
+
+lt_cl_version="\
+m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
+m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
+configured by $[0], generated by m4_PACKAGE_STRING.
+
+Copyright (C) 2011 Free Software Foundation, Inc.
+This config.lt script is free software; the Free Software Foundation
+gives unlimited permision to copy, distribute and modify it."
+
+while test 0 != $[#]
+do
+  case $[1] in
+    --version | --v* | -V )
+      echo "$lt_cl_version"; exit 0 ;;
+    --help | --h* | -h )
+      echo "$lt_cl_help"; exit 0 ;;
+    --debug | --d* | -d )
+      debug=: ;;
+    --quiet | --q* | --silent | --s* | -q )
+      lt_cl_silent=: ;;
+
+    -*) AC_MSG_ERROR([unrecognized option: $[1]
+Try '$[0] --help' for more information.]) ;;
+
+    *) AC_MSG_ERROR([unrecognized argument: $[1]
+Try '$[0] --help' for more information.]) ;;
+  esac
+  shift
+done
+
+if $lt_cl_silent; then
+  exec AS_MESSAGE_FD>/dev/null
+fi
+_LTEOF
+
+cat >>"$CONFIG_LT" <<_LTEOF
+_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
+_LTEOF
+
+cat >>"$CONFIG_LT" <<\_LTEOF
+AC_MSG_NOTICE([creating $ofile])
+_LT_OUTPUT_LIBTOOL_COMMANDS
+AS_EXIT(0)
+_LTEOF
+chmod +x "$CONFIG_LT"
+
+# configure is writing to config.log, but config.lt does its own redirection,
+# appending to config.log, which fails on DOS, as config.log is still kept
+# open by configure.  Here we exec the FD to /dev/null, effectively closing
+# config.log, so it can be properly (re)opened and appended to by config.lt.
+lt_cl_success=:
+test yes = "$silent" &&
+  lt_config_lt_args="$lt_config_lt_args --quiet"
+exec AS_MESSAGE_LOG_FD>/dev/null
+$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
+exec AS_MESSAGE_LOG_FD>>config.log
+$lt_cl_success || AS_EXIT(1)
+])# LT_OUTPUT
+
+
+# _LT_CONFIG(TAG)
+# ---------------
+# If TAG is the built-in tag, create an initial libtool script with a
+# default configuration from the untagged config vars.  Otherwise add code
+# to config.status for appending the configuration named by TAG from the
+# matching tagged config vars.
+m4_defun([_LT_CONFIG],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+_LT_CONFIG_SAVE_COMMANDS([
+  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
+  m4_if(_LT_TAG, [C], [
+    # See if we are running on zsh, and set the options that allow our
+    # commands through without removal of \ escapes.
+    if test -n "${ZSH_VERSION+set}"; then
+      setopt NO_GLOB_SUBST
+    fi
+
+    cfgfile=${ofile}T
+    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
+    $RM "$cfgfile"
+
+    cat <<_LT_EOF >> "$cfgfile"
+#! $SHELL
+
+# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $as_me ($PACKAGE) $VERSION
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+_LT_COPYING
+_LT_LIBTOOL_TAGS
+
+# ### BEGIN LIBTOOL CONFIG
+_LT_LIBTOOL_CONFIG_VARS
+_LT_LIBTOOL_TAG_VARS
+# ### END LIBTOOL CONFIG
+
+_LT_EOF
+
+  case $host_os in
+  aix3*)
+    cat <<\_LT_EOF >> "$cfgfile"
+# AIX sometimes has problems with the GCC collect2 program.  For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test set != "${COLLECT_NAMES+set}"; then
+  COLLECT_NAMES=
+  export COLLECT_NAMES
+fi
+_LT_EOF
+    ;;
+  esac
+
+  _LT_PROG_LTMAIN
+
+  # We use sed instead of cat because bash on DJGPP gets confused if
+  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
+  # text mode, it properly converts lines to CR/LF.  This bash problem
+  # is reportedly fixed, but why not run on old versions too?
+  sed '$q' "$ltmain" >> "$cfgfile" \
+     || (rm -f "$cfgfile"; exit 1)
+
+   mv -f "$cfgfile" "$ofile" ||
+    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
+  chmod +x "$ofile"
+],
+[cat <<_LT_EOF >> "$ofile"
+
+dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
+dnl in a comment (ie after a #).
+# ### BEGIN LIBTOOL TAG CONFIG: $1
+_LT_LIBTOOL_TAG_VARS(_LT_TAG)
+# ### END LIBTOOL TAG CONFIG: $1
+_LT_EOF
+])dnl /m4_if
+],
+[m4_if([$1], [], [
+    PACKAGE='$PACKAGE'
+    VERSION='$VERSION'
+    RM='$RM'
+    ofile='$ofile'], [])
+])dnl /_LT_CONFIG_SAVE_COMMANDS
+])# _LT_CONFIG
+
+
+# LT_SUPPORTED_TAG(TAG)
+# ---------------------
+# Trace this macro to discover what tags are supported by the libtool
+# --tag option, using:
+#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
+AC_DEFUN([LT_SUPPORTED_TAG], [])
+
+
+# C support is built-in for now
+m4_define([_LT_LANG_C_enabled], [])
+m4_define([_LT_TAGS], [])
+
+
+# LT_LANG(LANG)
+# -------------
+# Enable libtool support for the given language if not already enabled.
+AC_DEFUN([LT_LANG],
+[AC_BEFORE([$0], [LT_OUTPUT])dnl
+m4_case([$1],
+  [C],                 [_LT_LANG(C)],
+  [C++],               [_LT_LANG(CXX)],
+  [Go],                        [_LT_LANG(GO)],
+  [Java],              [_LT_LANG(GCJ)],
+  [Fortran 77],                [_LT_LANG(F77)],
+  [Fortran],           [_LT_LANG(FC)],
+  [Windows Resource],  [_LT_LANG(RC)],
+  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
+    [_LT_LANG($1)],
+    [m4_fatal([$0: unsupported language: "$1"])])])dnl
+])# LT_LANG
+
+
+# _LT_LANG(LANGNAME)
+# ------------------
+m4_defun([_LT_LANG],
+[m4_ifdef([_LT_LANG_]$1[_enabled], [],
+  [LT_SUPPORTED_TAG([$1])dnl
+  m4_append([_LT_TAGS], [$1 ])dnl
+  m4_define([_LT_LANG_]$1[_enabled], [])dnl
+  _LT_LANG_$1_CONFIG($1)])dnl
+])# _LT_LANG
+
+
+m4_ifndef([AC_PROG_GO], [
+############################################################
+# NOTE: This macro has been submitted for inclusion into   #
+#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
+#  a released version of Autoconf we should remove this    #
+#  macro and use it instead.                               #
+############################################################
+m4_defun([AC_PROG_GO],
+[AC_LANG_PUSH(Go)dnl
+AC_ARG_VAR([GOC],     [Go compiler command])dnl
+AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
+_AC_ARG_VAR_LDFLAGS()dnl
+AC_CHECK_TOOL(GOC, gccgo)
+if test -z "$GOC"; then
+  if test -n "$ac_tool_prefix"; then
+    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
+  fi
+fi
+if test -z "$GOC"; then
+  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
+fi
+])#m4_defun
+])#m4_ifndef
+
+
+# _LT_LANG_DEFAULT_CONFIG
+# -----------------------
+m4_defun([_LT_LANG_DEFAULT_CONFIG],
+[AC_PROVIDE_IFELSE([AC_PROG_CXX],
+  [LT_LANG(CXX)],
+  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
+
+AC_PROVIDE_IFELSE([AC_PROG_F77],
+  [LT_LANG(F77)],
+  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
+
+AC_PROVIDE_IFELSE([AC_PROG_FC],
+  [LT_LANG(FC)],
+  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
+
+dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
+dnl pulling things in needlessly.
+AC_PROVIDE_IFELSE([AC_PROG_GCJ],
+  [LT_LANG(GCJ)],
+  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
+    [LT_LANG(GCJ)],
+    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
+      [LT_LANG(GCJ)],
+      [m4_ifdef([AC_PROG_GCJ],
+       [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
+       m4_ifdef([A][M_PROG_GCJ],
+       [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
+       m4_ifdef([LT_PROG_GCJ],
+       [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
+
+AC_PROVIDE_IFELSE([AC_PROG_GO],
+  [LT_LANG(GO)],
+  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
+
+AC_PROVIDE_IFELSE([LT_PROG_RC],
+  [LT_LANG(RC)],
+  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
+])# _LT_LANG_DEFAULT_CONFIG
+
+# Obsolete macros:
+AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
+AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
+AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
+AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
+AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
+dnl AC_DEFUN([AC_LIBTOOL_F77], [])
+dnl AC_DEFUN([AC_LIBTOOL_FC], [])
+dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
+dnl AC_DEFUN([AC_LIBTOOL_RC], [])
+
+
+# _LT_TAG_COMPILER
+# ----------------
+m4_defun([_LT_TAG_COMPILER],
+[AC_REQUIRE([AC_PROG_CC])dnl
+
+_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
+_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
+_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
+_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+])# _LT_TAG_COMPILER
+
+
+# _LT_COMPILER_BOILERPLATE
+# ------------------------
+# Check for compiler boilerplate output or warnings with
+# the simple compiler test code.
+m4_defun([_LT_COMPILER_BOILERPLATE],
+[m4_require([_LT_DECL_SED])dnl
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$RM conftest*
+])# _LT_COMPILER_BOILERPLATE
+
+
+# _LT_LINKER_BOILERPLATE
+# ----------------------
+# Check for linker boilerplate output or warnings with
+# the simple link test code.
+m4_defun([_LT_LINKER_BOILERPLATE],
+[m4_require([_LT_DECL_SED])dnl
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$RM -r conftest*
+])# _LT_LINKER_BOILERPLATE
+
+# _LT_REQUIRED_DARWIN_CHECKS
+# -------------------------
+m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
+  case $host_os in
+    rhapsody* | darwin*)
+    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
+    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
+    AC_CHECK_TOOL([LIPO], [lipo], [:])
+    AC_CHECK_TOOL([OTOOL], [otool], [:])
+    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
+    _LT_DECL([], [DSYMUTIL], [1],
+      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
+    _LT_DECL([], [NMEDIT], [1],
+      [Tool to change global to local symbols on Mac OS X])
+    _LT_DECL([], [LIPO], [1],
+      [Tool to manipulate fat objects and archives on Mac OS X])
+    _LT_DECL([], [OTOOL], [1],
+      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
+    _LT_DECL([], [OTOOL64], [1],
+      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
+
+    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
+      [lt_cv_apple_cc_single_mod=no
+      if test -z "$LT_MULTI_MODULE"; then
+       # By default we will add the -single_module flag. You can override
+       # by either setting the environment variable LT_MULTI_MODULE
+       # non-empty at configure time, or by adding -multi_module to the
+       # link flags.
+       rm -rf libconftest.dylib*
+       echo "int foo(void){return 1;}" > conftest.c
+       echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
+       $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+         -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
+        _lt_result=$?
+       # If there is a non-empty error log, and "single_module"
+       # appears in it, assume the flag caused a linker warning
+        if test -s conftest.err && $GREP single_module conftest.err; then
+         cat conftest.err >&AS_MESSAGE_LOG_FD
+       # Otherwise, if the output was created with a 0 exit code from
+       # the compiler, it worked.
+       elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
+         lt_cv_apple_cc_single_mod=yes
+       else
+         cat conftest.err >&AS_MESSAGE_LOG_FD
+       fi
+       rm -rf libconftest.dylib*
+       rm -f conftest.*
+      fi])
+
+    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
+      [lt_cv_ld_exported_symbols_list],
+      [lt_cv_ld_exported_symbols_list=no
+      save_LDFLAGS=$LDFLAGS
+      echo "_main" > conftest.sym
+      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
+      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
+       [lt_cv_ld_exported_symbols_list=yes],
+       [lt_cv_ld_exported_symbols_list=no])
+       LDFLAGS=$save_LDFLAGS
+    ])
+
+    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
+      [lt_cv_ld_force_load=no
+      cat > conftest.c << _LT_EOF
+int forced_loaded() { return 2;}
+_LT_EOF
+      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
+      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
+      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
+      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
+      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
+      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
+      cat > conftest.c << _LT_EOF
+int main() { return 0;}
+_LT_EOF
+      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
+      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
+      _lt_result=$?
+      if test -s conftest.err && $GREP force_load conftest.err; then
+       cat conftest.err >&AS_MESSAGE_LOG_FD
+      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
+       lt_cv_ld_force_load=yes
+      else
+       cat conftest.err >&AS_MESSAGE_LOG_FD
+      fi
+        rm -f conftest.err libconftest.a conftest conftest.c
+        rm -rf conftest.dSYM
+    ])
+    case $host_os in
+    rhapsody* | darwin1.[[012]])
+      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
+    darwin1.*)
+      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
+    darwin*) # darwin 5.x on
+      # if running on 10.5 or later, the deployment target defaults
+      # to the OS version, if on x86, and 10.4, the deployment
+      # target defaults to 10.4. Don't you love it?
+      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
+       10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
+         _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
+       10.[[012]]*)
+         _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
+       10.*)
+         _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
+      esac
+    ;;
+  esac
+    if test yes = "$lt_cv_apple_cc_single_mod"; then
+      _lt_dar_single_mod='$single_module'
+    fi
+    if test yes = "$lt_cv_ld_exported_symbols_list"; then
+      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
+    else
+      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
+    fi
+    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
+      _lt_dsymutil='~$DSYMUTIL $lib || :'
+    else
+      _lt_dsymutil=
+    fi
+    ;;
+  esac
+])
+
+
+# _LT_DARWIN_LINKER_FEATURES([TAG])
+# ---------------------------------
+# Checks for linker and compiler features on darwin
+m4_defun([_LT_DARWIN_LINKER_FEATURES],
+[
+  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
+  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+  _LT_TAGVAR(hardcode_direct, $1)=no
+  _LT_TAGVAR(hardcode_automatic, $1)=yes
+  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+  if test yes = "$lt_cv_ld_force_load"; then
+    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
+    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
+                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
+  else
+    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
+  fi
+  _LT_TAGVAR(link_all_deplibs, $1)=yes
+  _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
+  case $cc_basename in
+     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
+     *) _lt_dar_can_shared=$GCC ;;
+  esac
+  if test yes = "$_lt_dar_can_shared"; then
+    output_verbose_link_cmd=func_echo_all
+    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
+    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
+    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
+    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
+    m4_if([$1], [CXX],
+[   if test yes != "$lt_cv_apple_cc_single_mod"; then
+      _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
+      _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
+    fi
+],[])
+  else
+  _LT_TAGVAR(ld_shlibs, $1)=no
+  fi
+])
+
+# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
+# ----------------------------------
+# Links a minimal program and checks the executable
+# for the system default hardcoded library path. In most cases,
+# this is /usr/lib:/lib, but when the MPI compilers are used
+# the location of the communication and MPI libs are included too.
+# If we don't find anything, use the default library path according
+# to the aix ld manual.
+# Store the results from the different compilers for each TAGNAME.
+# Allow to override them for all tags through lt_cv_aix_libpath.
+m4_defun([_LT_SYS_MODULE_PATH_AIX],
+[m4_require([_LT_DECL_SED])dnl
+if test set = "${lt_cv_aix_libpath+set}"; then
+  aix_libpath=$lt_cv_aix_libpath
+else
+  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
+  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
+  lt_aix_libpath_sed='[
+      /Import File Strings/,/^$/ {
+         /^0/ {
+             s/^0  *\([^ ]*\) *$/\1/
+             p
+         }
+      }]'
+  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+  # Check for a 64-bit object if we didn't find anything.
+  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
+    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+  fi],[])
+  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
+    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
+  fi
+  ])
+  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
+fi
+])# _LT_SYS_MODULE_PATH_AIX
+
+
+# _LT_SHELL_INIT(ARG)
+# -------------------
+m4_define([_LT_SHELL_INIT],
+[m4_divert_text([M4SH-INIT], [$1
+])])# _LT_SHELL_INIT
+
+
+
+# _LT_PROG_ECHO_BACKSLASH
+# -----------------------
+# Find how we can fake an echo command that does not interpret backslash.
+# In particular, with Autoconf 2.60 or later we add some code to the start
+# of the generated configure script that will find a shell with a builtin
+# printf (that we can use as an echo command).
+m4_defun([_LT_PROG_ECHO_BACKSLASH],
+[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
+ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
+
+AC_MSG_CHECKING([how to print strings])
+# Test print first, because it will be a builtin if present.
+if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
+   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
+  ECHO='print -r --'
+elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
+  ECHO='printf %s\n'
+else
+  # Use this function as a fallback that always works.
+  func_fallback_echo ()
+  {
+    eval 'cat <<_LTECHO_EOF
+$[]1
+_LTECHO_EOF'
+  }
+  ECHO='func_fallback_echo'
+fi
+
+# func_echo_all arg...
+# Invoke $ECHO with all args, space-separated.
+func_echo_all ()
+{
+    $ECHO "$*"
+}
+
+case $ECHO in
+  printf*) AC_MSG_RESULT([printf]) ;;
+  print*) AC_MSG_RESULT([print -r]) ;;
+  *) AC_MSG_RESULT([cat]) ;;
+esac
+
+m4_ifdef([_AS_DETECT_SUGGESTED],
+[_AS_DETECT_SUGGESTED([
+  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
+    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
+    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
+    PATH=/empty FPATH=/empty; export PATH FPATH
+    test "X`printf %s $ECHO`" = "X$ECHO" \
+      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
+
+_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
+_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
+])# _LT_PROG_ECHO_BACKSLASH
+
+
+# _LT_WITH_SYSROOT
+# ----------------
+AC_DEFUN([_LT_WITH_SYSROOT],
+[AC_MSG_CHECKING([for sysroot])
+AC_ARG_WITH([sysroot],
+[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
+  [Search for dependent libraries within DIR (or the compiler's sysroot
+   if not specified).])],
+[], [with_sysroot=no])
+
+dnl lt_sysroot will always be passed unquoted.  We quote it here
+dnl in case the user passed a directory name.
+lt_sysroot=
+case $with_sysroot in #(
+ yes)
+   if test yes = "$GCC"; then
+     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
+   fi
+   ;; #(
+ /*)
+   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
+   ;; #(
+ no|'')
+   ;; #(
+ *)
+   AC_MSG_RESULT([$with_sysroot])
+   AC_MSG_ERROR([The sysroot must be an absolute path.])
+   ;;
+esac
+
+ AC_MSG_RESULT([${lt_sysroot:-no}])
+_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
+[dependent libraries, and where our libraries should be installed.])])
+
+# _LT_ENABLE_LOCK
+# ---------------
+m4_defun([_LT_ENABLE_LOCK],
+[AC_ARG_ENABLE([libtool-lock],
+  [AS_HELP_STRING([--disable-libtool-lock],
+    [avoid locking (might break parallel builds)])])
+test no = "$enable_libtool_lock" || enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+ia64-*-hpux*)
+  # Find out what ABI is being produced by ac_compile, and set mode
+  # options accordingly.
+  echo 'int i;' > conftest.$ac_ext
+  if AC_TRY_EVAL(ac_compile); then
+    case `/usr/bin/file conftest.$ac_objext` in
+      *ELF-32*)
+       HPUX_IA64_MODE=32
+       ;;
+      *ELF-64*)
+       HPUX_IA64_MODE=64
+       ;;
+    esac
+  fi
+  rm -rf conftest*
+  ;;
+*-*-irix6*)
+  # Find out what ABI is being produced by ac_compile, and set linker
+  # options accordingly.
+  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
+  if AC_TRY_EVAL(ac_compile); then
+    if test yes = "$lt_cv_prog_gnu_ld"; then
+      case `/usr/bin/file conftest.$ac_objext` in
+       *32-bit*)
+         LD="${LD-ld} -melf32bsmip"
+         ;;
+       *N32*)
+         LD="${LD-ld} -melf32bmipn32"
+         ;;
+       *64-bit*)
+         LD="${LD-ld} -melf64bmip"
+       ;;
+      esac
+    else
+      case `/usr/bin/file conftest.$ac_objext` in
+       *32-bit*)
+         LD="${LD-ld} -32"
+         ;;
+       *N32*)
+         LD="${LD-ld} -n32"
+         ;;
+       *64-bit*)
+         LD="${LD-ld} -64"
+         ;;
+      esac
+    fi
+  fi
+  rm -rf conftest*
+  ;;
+
+mips64*-*linux*)
+  # Find out what ABI is being produced by ac_compile, and set linker
+  # options accordingly.
+  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
+  if AC_TRY_EVAL(ac_compile); then
+    emul=elf
+    case `/usr/bin/file conftest.$ac_objext` in
+      *32-bit*)
+       emul="${emul}32"
+       ;;
+      *64-bit*)
+       emul="${emul}64"
+       ;;
+    esac
+    case `/usr/bin/file conftest.$ac_objext` in
+      *MSB*)
+       emul="${emul}btsmip"
+       ;;
+      *LSB*)
+       emul="${emul}ltsmip"
+       ;;
+    esac
+    case `/usr/bin/file conftest.$ac_objext` in
+      *N32*)
+       emul="${emul}n32"
+       ;;
+    esac
+    LD="${LD-ld} -m $emul"
+  fi
+  rm -rf conftest*
+  ;;
+
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
+s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+  # Find out what ABI is being produced by ac_compile, and set linker
+  # options accordingly.  Note that the listed cases only cover the
+  # situations where additional linker options are needed (such as when
+  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
+  # vice versa); the common cases where no linker options are needed do
+  # not appear in the list.
+  echo 'int i;' > conftest.$ac_ext
+  if AC_TRY_EVAL(ac_compile); then
+    case `/usr/bin/file conftest.o` in
+      *32-bit*)
+       case $host in
+         x86_64-*kfreebsd*-gnu)
+           LD="${LD-ld} -m elf_i386_fbsd"
+           ;;
+         x86_64-*linux*)
+           case `/usr/bin/file conftest.o` in
+             *x86-64*)
+               LD="${LD-ld} -m elf32_x86_64"
+               ;;
+             *)
+               LD="${LD-ld} -m elf_i386"
+               ;;
+           esac
+           ;;
+         powerpc64le-*linux*)
+           LD="${LD-ld} -m elf32lppclinux"
+           ;;
+         powerpc64-*linux*)
+           LD="${LD-ld} -m elf32ppclinux"
+           ;;
+         s390x-*linux*)
+           LD="${LD-ld} -m elf_s390"
+           ;;
+         sparc64-*linux*)
+           LD="${LD-ld} -m elf32_sparc"
+           ;;
+       esac
+       ;;
+      *64-bit*)
+       case $host in
+         x86_64-*kfreebsd*-gnu)
+           LD="${LD-ld} -m elf_x86_64_fbsd"
+           ;;
+         x86_64-*linux*)
+           LD="${LD-ld} -m elf_x86_64"
+           ;;
+         powerpcle-*linux*)
+           LD="${LD-ld} -m elf64lppc"
+           ;;
+         powerpc-*linux*)
+           LD="${LD-ld} -m elf64ppc"
+           ;;
+         s390*-*linux*|s390*-*tpf*)
+           LD="${LD-ld} -m elf64_s390"
+           ;;
+         sparc*-*linux*)
+           LD="${LD-ld} -m elf64_sparc"
+           ;;
+       esac
+       ;;
+    esac
+  fi
+  rm -rf conftest*
+  ;;
+
+*-*-sco3.2v5*)
+  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+  SAVE_CFLAGS=$CFLAGS
+  CFLAGS="$CFLAGS -belf"
+  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
+    [AC_LANG_PUSH(C)
+     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
+     AC_LANG_POP])
+  if test yes != "$lt_cv_cc_needs_belf"; then
+    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+    CFLAGS=$SAVE_CFLAGS
+  fi
+  ;;
+*-*solaris*)
+  # Find out what ABI is being produced by ac_compile, and set linker
+  # options accordingly.
+  echo 'int i;' > conftest.$ac_ext
+  if AC_TRY_EVAL(ac_compile); then
+    case `/usr/bin/file conftest.o` in
+    *64-bit*)
+      case $lt_cv_prog_gnu_ld in
+      yes*)
+        case $host in
+        i?86-*-solaris*|x86_64-*-solaris*)
+          LD="${LD-ld} -m elf_x86_64"
+          ;;
+        sparc*-*-solaris*)
+          LD="${LD-ld} -m elf64_sparc"
+          ;;
+        esac
+        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
+        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
+          LD=${LD-ld}_sol2
+        fi
+        ;;
+      *)
+       if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
+         LD="${LD-ld} -64"
+       fi
+       ;;
+      esac
+      ;;
+    esac
+  fi
+  rm -rf conftest*
+  ;;
+esac
+
+need_locks=$enable_libtool_lock
+])# _LT_ENABLE_LOCK
+
+
+# _LT_PROG_AR
+# -----------
+m4_defun([_LT_PROG_AR],
+[AC_CHECK_TOOLS(AR, [ar], false)
+: ${AR=ar}
+: ${AR_FLAGS=cru}
+_LT_DECL([], [AR], [1], [The archiver])
+_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
+
+AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
+  [lt_cv_ar_at_file=no
+   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
+     [echo conftest.$ac_objext > conftest.lst
+      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
+      AC_TRY_EVAL([lt_ar_try])
+      if test 0 -eq "$ac_status"; then
+       # Ensure the archiver fails upon bogus file names.
+       rm -f conftest.$ac_objext libconftest.a
+       AC_TRY_EVAL([lt_ar_try])
+       if test 0 -ne "$ac_status"; then
+          lt_cv_ar_at_file=@
+        fi
+      fi
+      rm -f conftest.* libconftest.a
+     ])
+  ])
+
+if test no = "$lt_cv_ar_at_file"; then
+  archiver_list_spec=
+else
+  archiver_list_spec=$lt_cv_ar_at_file
+fi
+_LT_DECL([], [archiver_list_spec], [1],
+  [How to feed a file listing to the archiver])
+])# _LT_PROG_AR
+
+
+# _LT_CMD_OLD_ARCHIVE
+# -------------------
+m4_defun([_LT_CMD_OLD_ARCHIVE],
+[_LT_PROG_AR
+
+AC_CHECK_TOOL(STRIP, strip, :)
+test -z "$STRIP" && STRIP=:
+_LT_DECL([], [STRIP], [1], [A symbol stripping program])
+
+AC_CHECK_TOOL(RANLIB, ranlib, :)
+test -z "$RANLIB" && RANLIB=:
+_LT_DECL([], [RANLIB], [1],
+    [Commands used to install an old-style archive])
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+  case $host_os in
+  bitrig* | openbsd*)
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
+    ;;
+  *)
+    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
+    ;;
+  esac
+  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
+fi
+
+case $host_os in
+  darwin*)
+    lock_old_archive_extraction=yes ;;
+  *)
+    lock_old_archive_extraction=no ;;
+esac
+_LT_DECL([], [old_postinstall_cmds], [2])
+_LT_DECL([], [old_postuninstall_cmds], [2])
+_LT_TAGDECL([], [old_archive_cmds], [2],
+    [Commands used to build an old-style archive])
+_LT_DECL([], [lock_old_archive_extraction], [0],
+    [Whether to use a lock for old archive extraction])
+])# _LT_CMD_OLD_ARCHIVE
+
+
+# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
+#              [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
+# ----------------------------------------------------------------
+# Check whether the given compiler option works
+AC_DEFUN([_LT_COMPILER_OPTION],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_SED])dnl
+AC_CACHE_CHECK([$1], [$2],
+  [$2=no
+   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
+   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+   lt_compiler_flag="$3"  ## exclude from sc_useless_quotes_in_assignment
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing "conftest.", or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   # The option is referenced via a variable to avoid confusing sed.
+   lt_compile=`echo "$ac_compile" | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
+   (eval "$lt_compile" 2>conftest.err)
+   ac_status=$?
+   cat conftest.err >&AS_MESSAGE_LOG_FD
+   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+   if (exit $ac_status) && test -s "$ac_outfile"; then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings other than the usual output.
+     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
+     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+       $2=yes
+     fi
+   fi
+   $RM conftest*
+])
+
+if test yes = "[$]$2"; then
+    m4_if([$5], , :, [$5])
+else
+    m4_if([$6], , :, [$6])
+fi
+])# _LT_COMPILER_OPTION
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
+
+
+# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
+#                  [ACTION-SUCCESS], [ACTION-FAILURE])
+# ----------------------------------------------------
+# Check whether the given linker option works
+AC_DEFUN([_LT_LINKER_OPTION],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_SED])dnl
+AC_CACHE_CHECK([$1], [$2],
+  [$2=no
+   save_LDFLAGS=$LDFLAGS
+   LDFLAGS="$LDFLAGS $3"
+   echo "$lt_simple_link_test_code" > conftest.$ac_ext
+   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+     # The linker can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     if test -s conftest.err; then
+       # Append any errors to the config.log.
+       cat conftest.err 1>&AS_MESSAGE_LOG_FD
+       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
+       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+       if diff conftest.exp conftest.er2 >/dev/null; then
+         $2=yes
+       fi
+     else
+       $2=yes
+     fi
+   fi
+   $RM -r conftest*
+   LDFLAGS=$save_LDFLAGS
+])
+
+if test yes = "[$]$2"; then
+    m4_if([$4], , :, [$4])
+else
+    m4_if([$5], , :, [$5])
+fi
+])# _LT_LINKER_OPTION
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
+
+
+# LT_CMD_MAX_LEN
+#---------------
+AC_DEFUN([LT_CMD_MAX_LEN],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+# find the maximum length of command line arguments
+AC_MSG_CHECKING([the maximum length of command line arguments])
+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
+  i=0
+  teststring=ABCD
+
+  case $build_os in
+  msdosdjgpp*)
+    # On DJGPP, this test can blow up pretty badly due to problems in libc
+    # (any single argument exceeding 2000 bytes causes a buffer overrun
+    # during glob expansion).  Even if it were fixed, the result of this
+    # check would be larger than it should be.
+    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
+    ;;
+
+  gnu*)
+    # Under GNU Hurd, this test is not required because there is
+    # no limit to the length of command line arguments.
+    # Libtool will interpret -1 as no limit whatsoever
+    lt_cv_sys_max_cmd_len=-1;
+    ;;
+
+  cygwin* | mingw* | cegcc*)
+    # On Win9x/ME, this test blows up -- it succeeds, but takes
+    # about 5 minutes as the teststring grows exponentially.
+    # Worse, since 9x/ME are not pre-emptively multitasking,
+    # you end up with a "frozen" computer, even though with patience
+    # the test eventually succeeds (with a max line length of 256k).
+    # Instead, let's just punt: use the minimum linelength reported by
+    # all of the supported platforms: 8192 (on NT/2K/XP).
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
+  mint*)
+    # On MiNT this can take a long time and run out of memory.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
+  amigaos*)
+    # On AmigaOS with pdksh, this test takes hours, literally.
+    # So we just punt and use a minimum line length of 8192.
+    lt_cv_sys_max_cmd_len=8192;
+    ;;
+
+  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
+    # This has been around since 386BSD, at least.  Likely further.
+    if test -x /sbin/sysctl; then
+      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+    elif test -x /usr/sbin/sysctl; then
+      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+    else
+      lt_cv_sys_max_cmd_len=65536      # usable default for all BSDs
+    fi
+    # And add a safety zone
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+    ;;
+
+  interix*)
+    # We know the value 262144 and hardcode it with a safety zone (like BSD)
+    lt_cv_sys_max_cmd_len=196608
+    ;;
+
+  os2*)
+    # The test takes a long time on OS/2.
+    lt_cv_sys_max_cmd_len=8192
+    ;;
+
+  osf*)
+    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
+    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
+    # nice to cause kernel panics so lets avoid the loop below.
+    # First set a reasonable default.
+    lt_cv_sys_max_cmd_len=16384
+    #
+    if test -x /sbin/sysconfig; then
+      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
+        *1*) lt_cv_sys_max_cmd_len=-1 ;;
+      esac
+    fi
+    ;;
+  sco3.2v5*)
+    lt_cv_sys_max_cmd_len=102400
+    ;;
+  sysv5* | sco5v6* | sysv4.2uw2*)
+    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
+    if test -n "$kargmax"; then
+      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
+    else
+      lt_cv_sys_max_cmd_len=32768
+    fi
+    ;;
+  *)
+    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
+    if test -n "$lt_cv_sys_max_cmd_len" && \
+       test undefined != "$lt_cv_sys_max_cmd_len"; then
+      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+    else
+      # Make teststring a little bigger before we do anything with it.
+      # a 1K string should be a reasonable start.
+      for i in 1 2 3 4 5 6 7 8; do
+        teststring=$teststring$teststring
+      done
+      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+      # If test is not a shell built-in, we'll probably end up computing a
+      # maximum length that is only half of the actual maximum length, but
+      # we can't tell.
+      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
+                = "X$teststring$teststring"; } >/dev/null 2>&1 &&
+             test 17 != "$i" # 1/2 MB should be enough
+      do
+        i=`expr $i + 1`
+        teststring=$teststring$teststring
+      done
+      # Only check the string length outside the loop.
+      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
+      teststring=
+      # Add a significant safety factor because C++ compilers can tack on
+      # massive amounts of additional arguments before passing them to the
+      # linker.  It appears as though 1/2 is a usable value.
+      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
+    fi
+    ;;
+  esac
+])
+if test -n "$lt_cv_sys_max_cmd_len"; then
+  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
+else
+  AC_MSG_RESULT(none)
+fi
+max_cmd_len=$lt_cv_sys_max_cmd_len
+_LT_DECL([], [max_cmd_len], [0],
+    [What is the maximum length of a command?])
+])# LT_CMD_MAX_LEN
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
+
+
+# _LT_HEADER_DLFCN
+# ----------------
+m4_defun([_LT_HEADER_DLFCN],
+[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
+])# _LT_HEADER_DLFCN
+
+
+# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
+#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
+# ----------------------------------------------------------------
+m4_defun([_LT_TRY_DLOPEN_SELF],
+[m4_require([_LT_HEADER_DLFCN])dnl
+if test yes = "$cross_compiling"; then :
+  [$4]
+else
+  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+  lt_status=$lt_dlunknown
+  cat > conftest.$ac_ext <<_LT_EOF
+[#line $LINENO "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+#  define LT_DLGLOBAL          RTLD_GLOBAL
+#else
+#  ifdef DL_GLOBAL
+#    define LT_DLGLOBAL                DL_GLOBAL
+#  else
+#    define LT_DLGLOBAL                0
+#  endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+   find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+#  ifdef RTLD_LAZY
+#    define LT_DLLAZY_OR_NOW           RTLD_LAZY
+#  else
+#    ifdef DL_LAZY
+#      define LT_DLLAZY_OR_NOW         DL_LAZY
+#    else
+#      ifdef RTLD_NOW
+#        define LT_DLLAZY_OR_NOW       RTLD_NOW
+#      else
+#        ifdef DL_NOW
+#          define LT_DLLAZY_OR_NOW     DL_NOW
+#        else
+#          define LT_DLLAZY_OR_NOW     0
+#        endif
+#      endif
+#    endif
+#  endif
+#endif
+
+/* When -fvisbility=hidden is used, assume the code has been annotated
+   correspondingly for the symbols needed.  */
+#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
+int fnord () __attribute__((visibility("default")));
+#endif
+
+int fnord () { return 42; }
+int main ()
+{
+  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+  int status = $lt_dlunknown;
+
+  if (self)
+    {
+      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
+      else
+        {
+         if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
+          else puts (dlerror ());
+       }
+      /* dlclose (self); */
+    }
+  else
+    puts (dlerror ());
+
+  return status;
+}]
+_LT_EOF
+  if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
+    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
+    lt_status=$?
+    case x$lt_status in
+      x$lt_dlno_uscore) $1 ;;
+      x$lt_dlneed_uscore) $2 ;;
+      x$lt_dlunknown|x*) $3 ;;
+    esac
+  else :
+    # compilation failed
+    $3
+  fi
+fi
+rm -fr conftest*
+])# _LT_TRY_DLOPEN_SELF
+
+
+# LT_SYS_DLOPEN_SELF
+# ------------------
+AC_DEFUN([LT_SYS_DLOPEN_SELF],
+[m4_require([_LT_HEADER_DLFCN])dnl
+if test yes != "$enable_dlopen"; then
+  enable_dlopen=unknown
+  enable_dlopen_self=unknown
+  enable_dlopen_self_static=unknown
+else
+  lt_cv_dlopen=no
+  lt_cv_dlopen_libs=
+
+  case $host_os in
+  beos*)
+    lt_cv_dlopen=load_add_on
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=yes
+    ;;
+
+  mingw* | pw32* | cegcc*)
+    lt_cv_dlopen=LoadLibrary
+    lt_cv_dlopen_libs=
+    ;;
+
+  cygwin*)
+    lt_cv_dlopen=dlopen
+    lt_cv_dlopen_libs=
+    ;;
+
+  darwin*)
+    # if libdl is installed we need to link against it
+    AC_CHECK_LIB([dl], [dlopen],
+               [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
+    lt_cv_dlopen=dyld
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=yes
+    ])
+    ;;
+
+  tpf*)
+    # Don't try to run any link tests for TPF.  We know it's impossible
+    # because TPF is a cross-compiler, and we know how we open DSOs.
+    lt_cv_dlopen=dlopen
+    lt_cv_dlopen_libs=
+    lt_cv_dlopen_self=no
+    ;;
+
+  *)
+    AC_CHECK_FUNC([shl_load],
+         [lt_cv_dlopen=shl_load],
+      [AC_CHECK_LIB([dld], [shl_load],
+           [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
+       [AC_CHECK_FUNC([dlopen],
+             [lt_cv_dlopen=dlopen],
+         [AC_CHECK_LIB([dl], [dlopen],
+               [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
+           [AC_CHECK_LIB([svld], [dlopen],
+                 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
+             [AC_CHECK_LIB([dld], [dld_link],
+                   [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
+             ])
+           ])
+         ])
+       ])
+      ])
+    ;;
+  esac
+
+  if test no = "$lt_cv_dlopen"; then
+    enable_dlopen=no
+  else
+    enable_dlopen=yes
+  fi
+
+  case $lt_cv_dlopen in
+  dlopen)
+    save_CPPFLAGS=$CPPFLAGS
+    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+
+    save_LDFLAGS=$LDFLAGS
+    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
+
+    save_LIBS=$LIBS
+    LIBS="$lt_cv_dlopen_libs $LIBS"
+
+    AC_CACHE_CHECK([whether a program can dlopen itself],
+         lt_cv_dlopen_self, [dnl
+         _LT_TRY_DLOPEN_SELF(
+           lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
+           lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
+    ])
+
+    if test yes = "$lt_cv_dlopen_self"; then
+      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
+      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
+         lt_cv_dlopen_self_static, [dnl
+         _LT_TRY_DLOPEN_SELF(
+           lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
+           lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
+      ])
+    fi
+
+    CPPFLAGS=$save_CPPFLAGS
+    LDFLAGS=$save_LDFLAGS
+    LIBS=$save_LIBS
+    ;;
+  esac
+
+  case $lt_cv_dlopen_self in
+  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+  *) enable_dlopen_self=unknown ;;
+  esac
+
+  case $lt_cv_dlopen_self_static in
+  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+  *) enable_dlopen_self_static=unknown ;;
+  esac
+fi
+_LT_DECL([dlopen_support], [enable_dlopen], [0],
+        [Whether dlopen is supported])
+_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
+        [Whether dlopen of programs is supported])
+_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
+        [Whether dlopen of statically linked programs is supported])
+])# LT_SYS_DLOPEN_SELF
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
+
+
+# _LT_COMPILER_C_O([TAGNAME])
+# ---------------------------
+# Check to see if options -c and -o are simultaneously supported by compiler.
+# This macro does not hard code the compiler like AC_PROG_CC_C_O.
+m4_defun([_LT_COMPILER_C_O],
+[m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_TAG_COMPILER])dnl
+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
+  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
+  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
+   $RM -r conftest 2>/dev/null
+   mkdir conftest
+   cd conftest
+   mkdir out
+   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+   lt_compiler_flag="-o out/conftest2.$ac_objext"
+   # Insert the option either (1) after the last *FLAGS variable, or
+   # (2) before a word containing "conftest.", or (3) at the end.
+   # Note that $ac_compile itself does not contain backslashes and begins
+   # with a dollar sign (not a hyphen), so the echo should work correctly.
+   lt_compile=`echo "$ac_compile" | $SED \
+   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
+   -e 's:$: $lt_compiler_flag:'`
+   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
+   (eval "$lt_compile" 2>out/conftest.err)
+   ac_status=$?
+   cat out/conftest.err >&AS_MESSAGE_LOG_FD
+   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+   if (exit $ac_status) && test -s out/conftest2.$ac_objext
+   then
+     # The compiler can only warn and ignore the option if not recognized
+     # So say no if there are warnings
+     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
+     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
+     fi
+   fi
+   chmod u+w . 2>&AS_MESSAGE_LOG_FD
+   $RM conftest*
+   # SGI C++ compiler will create directory out/ii_files/ for
+   # template instantiation
+   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
+   $RM out/* && rmdir out
+   cd ..
+   $RM -r conftest
+   $RM conftest*
+])
+_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
+       [Does compiler simultaneously support -c and -o options?])
+])# _LT_COMPILER_C_O
+
+
+# _LT_COMPILER_FILE_LOCKS([TAGNAME])
+# ----------------------------------
+# Check to see if we can do hard links to lock some files if needed
+m4_defun([_LT_COMPILER_FILE_LOCKS],
+[m4_require([_LT_ENABLE_LOCK])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+_LT_COMPILER_C_O([$1])
+
+hard_links=nottested
+if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
+  # do not overwrite the value of need_locks provided by the user
+  AC_MSG_CHECKING([if we can lock with hard links])
+  hard_links=yes
+  $RM conftest*
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no
+  touch conftest.a
+  ln conftest.a conftest.b 2>&5 || hard_links=no
+  ln conftest.a conftest.b 2>/dev/null && hard_links=no
+  AC_MSG_RESULT([$hard_links])
+  if test no = "$hard_links"; then
+    AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
+    need_locks=warn
+  fi
+else
+  need_locks=no
+fi
+_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
+])# _LT_COMPILER_FILE_LOCKS
+
+
+# _LT_CHECK_OBJDIR
+# ----------------
+m4_defun([_LT_CHECK_OBJDIR],
+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
+[rm -f .libs 2>/dev/null
+mkdir .libs 2>/dev/null
+if test -d .libs; then
+  lt_cv_objdir=.libs
+else
+  # MS-DOS does not allow filenames that begin with a dot.
+  lt_cv_objdir=_libs
+fi
+rmdir .libs 2>/dev/null])
+objdir=$lt_cv_objdir
+_LT_DECL([], [objdir], [0],
+         [The name of the directory that contains temporary libtool files])dnl
+m4_pattern_allow([LT_OBJDIR])dnl
+AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
+  [Define to the sub-directory where libtool stores uninstalled libraries.])
+])# _LT_CHECK_OBJDIR
+
+
+# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
+# --------------------------------------
+# Check hardcoding attributes.
+m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
+[AC_MSG_CHECKING([how to hardcode library paths into programs])
+_LT_TAGVAR(hardcode_action, $1)=
+if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
+   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
+   test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
+
+  # We can hardcode non-existent directories.
+  if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
+     # If the only mechanism to avoid hardcoding is shlibpath_var, we
+     # have to relink, otherwise we might link with an installed library
+     # when we should be linking with a yet-to-be-installed one
+     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
+     test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
+    # Linking always hardcodes the temporary library directory.
+    _LT_TAGVAR(hardcode_action, $1)=relink
+  else
+    # We can link without hardcoding, and we can hardcode nonexisting dirs.
+    _LT_TAGVAR(hardcode_action, $1)=immediate
+  fi
+else
+  # We cannot hardcode anything, or else we can only hardcode existing
+  # directories.
+  _LT_TAGVAR(hardcode_action, $1)=unsupported
+fi
+AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
+
+if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
+   test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
+  # Fast installation is not supported
+  enable_fast_install=no
+elif test yes = "$shlibpath_overrides_runpath" ||
+     test no = "$enable_shared"; then
+  # Fast installation is not necessary
+  enable_fast_install=needless
+fi
+_LT_TAGDECL([], [hardcode_action], [0],
+    [How to hardcode a shared library path into an executable])
+])# _LT_LINKER_HARDCODE_LIBPATH
+
+
+# _LT_CMD_STRIPLIB
+# ----------------
+m4_defun([_LT_CMD_STRIPLIB],
+[m4_require([_LT_DECL_EGREP])
+striplib=
+old_striplib=
+AC_MSG_CHECKING([whether stripping libraries is possible])
+if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
+  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+  AC_MSG_RESULT([yes])
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+  case $host_os in
+  darwin*)
+    if test -n "$STRIP"; then
+      striplib="$STRIP -x"
+      old_striplib="$STRIP -S"
+      AC_MSG_RESULT([yes])
+    else
+      AC_MSG_RESULT([no])
+    fi
+    ;;
+  *)
+    AC_MSG_RESULT([no])
+    ;;
+  esac
+fi
+_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
+_LT_DECL([], [striplib], [1])
+])# _LT_CMD_STRIPLIB
+
+
+# _LT_SYS_DYNAMIC_LINKER([TAG])
+# -----------------------------
+# PORTME Fill in your ld.so characteristics
+m4_defun([_LT_SYS_DYNAMIC_LINKER],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_OBJDUMP])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_CHECK_SHELL_FEATURES])dnl
+AC_MSG_CHECKING([dynamic linker characteristics])
+m4_if([$1],
+       [], [
+if test yes = "$GCC"; then
+  case $host_os in
+    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
+    *) lt_awk_arg='/^libraries:/' ;;
+  esac
+  case $host_os in
+    mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
+    *) lt_sed_strip_eq='s|=/|/|g' ;;
+  esac
+  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
+  case $lt_search_path_spec in
+  *\;*)
+    # if the path contains ";" then we assume it to be the separator
+    # otherwise default to the standard path separator (i.e. ":") - it is
+    # assumed that no part of a normal pathname contains ";" but that should
+    # okay in the real world where ";" in dirpaths is itself problematic.
+    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
+    ;;
+  *)
+    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
+    ;;
+  esac
+  # Ok, now we have the path, separated by spaces, we can step through it
+  # and add multilib dir if necessary...
+  lt_tmp_lt_search_path_spec=
+  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
+  # ...but if some path component already ends with the multilib dir we assume
+  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
+  case "$lt_multi_os_dir; $lt_search_path_spec " in
+  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
+    lt_multi_os_dir=
+    ;;
+  esac
+  for lt_sys_path in $lt_search_path_spec; do
+    if test -d "$lt_sys_path$lt_multi_os_dir"; then
+      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
+    elif test -n "$lt_multi_os_dir"; then
+      test -d "$lt_sys_path" && \
+       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
+    fi
+  done
+  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
+BEGIN {RS = " "; FS = "/|\n";} {
+  lt_foo = "";
+  lt_count = 0;
+  for (lt_i = NF; lt_i > 0; lt_i--) {
+    if ($lt_i != "" && $lt_i != ".") {
+      if ($lt_i == "..") {
+        lt_count++;
+      } else {
+        if (lt_count == 0) {
+          lt_foo = "/" $lt_i lt_foo;
+        } else {
+          lt_count--;
+        }
+      }
+    }
+  }
+  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
+  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
+}'`
+  # AWK program above erroneously prepends '/' to C:/dos/paths
+  # for these hosts.
+  case $host_os in
+    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
+      $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
+  esac
+  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
+else
+  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+fi])
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=.so
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
+  shlibpath_var=LIBPATH
+
+  # AIX 3 has no versioning support, so we append a major version to the name.
+  soname_spec='$libname$release$shared_ext$major'
+  ;;
+
+aix[[4-9]]*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  hardcode_into_libs=yes
+  if test ia64 = "$host_cpu"; then
+    # AIX 5 supports IA64
+    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
+    shlibpath_var=LD_LIBRARY_PATH
+  else
+    # With GCC up to 2.95.x, collect2 would create an import file
+    # for dependence libraries.  The import file would start with
+    # the line '#! .'.  This would cause the generated library to
+    # depend on '.', always an invalid library.  This was fixed in
+    # development snapshots of GCC prior to 3.0.
+    case $host_os in
+      aix4 | aix4.[[01]] | aix4.[[01]].*)
+      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+          echo ' yes '
+          echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
+       :
+      else
+       can_build_shared=no
+      fi
+      ;;
+    esac
+    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
+    # soname into executable. Probably we can add versioning support to
+    # collect2, so additional links can be useful in future.
+    if test yes = "$aix_use_runtimelinking"; then
+      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+      # instead of lib<name>.a to let people know that these are not
+      # typical AIX shared libraries.
+      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    else
+      # We preserve .a as extension for shared libraries through AIX4.2
+      # and later when we are not doing run time linking.
+      library_names_spec='$libname$release.a $libname.a'
+      soname_spec='$libname$release$shared_ext$major'
+    fi
+    shlibpath_var=LIBPATH
+  fi
+  ;;
+
+amigaos*)
+  case $host_cpu in
+  powerpc)
+    # Since July 2007 AmigaOS4 officially supports .so libraries.
+    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    ;;
+  m68k)
+    library_names_spec='$libname.ixlibrary $libname.a'
+    # Create ${libname}_ixlibrary.a entries in /sys/libs.
+    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+    ;;
+  esac
+  ;;
+
+beos*)
+  library_names_spec='$libname$shared_ext'
+  dynamic_linker="$host_os ld.so"
+  shlibpath_var=LIBRARY_PATH
+  ;;
+
+bsdi[[45]]*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+  # the default ld.so.conf also contains /usr/contrib/lib and
+  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+  # libtool to hard-code these into programs
+  ;;
+
+cygwin* | mingw* | pw32* | cegcc*)
+  version_type=windows
+  shrext_cmds=.dll
+  need_version=no
+  need_lib_prefix=no
+
+  case $GCC,$cc_basename in
+  yes,*)
+    # gcc
+    library_names_spec='$libname.dll.a'
+    # DLL is installed to $(libdir)/../bin by postinstall_cmds
+    postinstall_cmds='base_file=`basename \$file`~
+      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
+      dldir=$destdir/`dirname \$dlpath`~
+      test -d \$dldir || mkdir -p \$dldir~
+      $install_prog $dir/$dlname \$dldir/$dlname~
+      chmod a+x \$dldir/$dlname~
+      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+      fi'
+    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+      dlpath=$dir/\$dldll~
+       $RM \$dlpath'
+    shlibpath_overrides_runpath=yes
+
+    case $host_os in
+    cygwin*)
+      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
+m4_if([$1], [],[
+      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
+      ;;
+    mingw* | cegcc*)
+      # MinGW DLLs use traditional 'lib' prefix
+      soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
+      ;;
+    pw32*)
+      # pw32 DLLs use 'pw' prefix rather than 'lib'
+      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
+      ;;
+    esac
+    dynamic_linker='Win32 ld.exe'
+    ;;
+
+  *,cl*)
+    # Native MSVC
+    libname_spec='$name'
+    soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
+    library_names_spec='$libname.dll.lib'
+
+    case $build_os in
+    mingw*)
+      sys_lib_search_path_spec=
+      lt_save_ifs=$IFS
+      IFS=';'
+      for lt_path in $LIB
+      do
+        IFS=$lt_save_ifs
+        # Let DOS variable expansion print the short 8.3 style file name.
+        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
+        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
+      done
+      IFS=$lt_save_ifs
+      # Convert to MSYS style.
+      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
+      ;;
+    cygwin*)
+      # Convert to unix form, then to dos form, then back to unix form
+      # but this time dos style (no spaces!) so that the unix form looks
+      # like /cygdrive/c/PROGRA~1:/cygdr...
+      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
+      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
+      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+      ;;
+    *)
+      sys_lib_search_path_spec=$LIB
+      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
+        # It is most probably a Windows format PATH.
+        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+      else
+        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+      fi
+      # FIXME: find the short name or the path components, as spaces are
+      # common. (e.g. "Program Files" -> "PROGRA~1")
+      ;;
+    esac
+
+    # DLL is installed to $(libdir)/../bin by postinstall_cmds
+    postinstall_cmds='base_file=`basename \$file`~
+      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
+      dldir=$destdir/`dirname \$dlpath`~
+      test -d \$dldir || mkdir -p \$dldir~
+      $install_prog $dir/$dlname \$dldir/$dlname'
+    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+      dlpath=$dir/\$dldll~
+       $RM \$dlpath'
+    shlibpath_overrides_runpath=yes
+    dynamic_linker='Win32 link.exe'
+    ;;
+
+  *)
+    # Assume MSVC wrapper
+    library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
+    dynamic_linker='Win32 ld.exe'
+    ;;
+  esac
+  # FIXME: first we should search . and the directory the executable is in
+  shlibpath_var=PATH
+  ;;
+
+darwin* | rhapsody*)
+  dynamic_linker="$host_os dyld"
+  version_type=darwin
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
+  soname_spec='$libname$release$major$shared_ext'
+  shlibpath_overrides_runpath=yes
+  shlibpath_var=DYLD_LIBRARY_PATH
+  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
+m4_if([$1], [],[
+  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
+  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+  ;;
+
+dgux*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+freebsd* | dragonfly*)
+  # DragonFly does not have aout.  When/if they implement a new
+  # versioning mechanism, adjust this.
+  if test -x /usr/bin/objformat; then
+    objformat=`/usr/bin/objformat`
+  else
+    case $host_os in
+    freebsd[[23]].*) objformat=aout ;;
+    *) objformat=elf ;;
+    esac
+  fi
+  version_type=freebsd-$objformat
+  case $version_type in
+    freebsd-elf*)
+      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
+      need_version=no
+      need_lib_prefix=no
+      ;;
+    freebsd-*)
+      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
+      need_version=yes
+      ;;
+  esac
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_os in
+  freebsd2.*)
+    shlibpath_overrides_runpath=yes
+    ;;
+  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
+    shlibpath_overrides_runpath=yes
+    hardcode_into_libs=yes
+    ;;
+  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
+  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
+    shlibpath_overrides_runpath=no
+    hardcode_into_libs=yes
+    ;;
+  *) # from 4.6 on, and DragonFly
+    shlibpath_overrides_runpath=yes
+    hardcode_into_libs=yes
+    ;;
+  esac
+  ;;
+
+haiku*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  dynamic_linker="$host_os runtime_loader"
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
+  hardcode_into_libs=yes
+  ;;
+
+hpux9* | hpux10* | hpux11*)
+  # Give a soname corresponding to the major version so that dld.sl refuses to
+  # link against other versions.
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  case $host_cpu in
+  ia64*)
+    shrext_cmds='.so'
+    hardcode_into_libs=yes
+    dynamic_linker="$host_os dld.so"
+    shlibpath_var=LD_LIBRARY_PATH
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    soname_spec='$libname$release$shared_ext$major'
+    if test 32 = "$HPUX_IA64_MODE"; then
+      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+    else
+      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+    fi
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+    ;;
+  hppa*64*)
+    shrext_cmds='.sl'
+    hardcode_into_libs=yes
+    dynamic_linker="$host_os dld.sl"
+    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    soname_spec='$libname$release$shared_ext$major'
+    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+    ;;
+  *)
+    shrext_cmds='.sl'
+    dynamic_linker="$host_os dld.sl"
+    shlibpath_var=SHLIB_PATH
+    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    soname_spec='$libname$release$shared_ext$major'
+    ;;
+  esac
+  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
+  postinstall_cmds='chmod 555 $lib'
+  # or fails outright, so override atomically:
+  install_override_mode=555
+  ;;
+
+interix[[3-9]]*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $host_os in
+    nonstopux*) version_type=nonstopux ;;
+    *)
+       if test yes = "$lt_cv_prog_gnu_ld"; then
+               version_type=linux # correct to gnu/linux during the next big refactor
+       else
+               version_type=irix
+       fi ;;
+  esac
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='$libname$release$shared_ext$major'
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
+  case $host_os in
+  irix5* | nonstopux*)
+    libsuff= shlibsuff=
+    ;;
+  *)
+    case $LD in # libtool.m4 will add one of these switches to LD
+    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+      libsuff= shlibsuff= libmagic=32-bit;;
+    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+      libsuff=32 shlibsuff=N32 libmagic=N32;;
+    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+      libsuff=64 shlibsuff=64 libmagic=64-bit;;
+    *) libsuff= shlibsuff= libmagic=never-match;;
+    esac
+    ;;
+  esac
+  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+  shlibpath_overrides_runpath=no
+  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
+  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
+  hardcode_into_libs=yes
+  ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+  dynamic_linker=no
+  ;;
+
+linux*android*)
+  version_type=none # Android doesn't support versioned libraries.
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext'
+  soname_spec='$libname$release$shared_ext'
+  finish_cmds=
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+
+  # This implies no fast_install, which is unacceptable.
+  # Some rework will be needed to allow for fast_install
+  # before this can be enabled.
+  hardcode_into_libs=yes
+
+  dynamic_linker='Android linker'
+  # Don't embed -rpath directories since the linker doesn't support them.
+  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+  ;;
+
+# This must be glibc/ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+
+  # Some binutils ld are patched to set DT_RUNPATH
+  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
+    [lt_cv_shlibpath_overrides_runpath=no
+    save_LDFLAGS=$LDFLAGS
+    save_libdir=$libdir
+    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
+        LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
+    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
+      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
+        [lt_cv_shlibpath_overrides_runpath=yes])])
+    LDFLAGS=$save_LDFLAGS
+    libdir=$save_libdir
+    ])
+  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
+
+  # This implies no fast_install, which is unacceptable.
+  # Some rework will be needed to allow for fast_install
+  # before this can be enabled.
+  hardcode_into_libs=yes
+
+  # Append ld.so.conf contents to the search path
+  if test -f /etc/ld.so.conf; then
+    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
+    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+  fi
+
+  # We used to test for /lib/ld.so.1 and disable shared libraries on
+  # powerpc, because MkLinux only supported shared libraries with the
+  # GNU dynamic linker.  Since this was broken with cross compilers,
+  # most powerpc-linux boxes support dynamic linking these days and
+  # people can always --disable-shared, the test was removed, and we
+  # assume the GNU/Linux dynamic linker is in use.
+  dynamic_linker='GNU/Linux ld.so'
+  ;;
+
+netbsd*)
+  version_type=sunos
+  need_lib_prefix=no
+  need_version=no
+  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
+    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+    dynamic_linker='NetBSD (a.out) ld.so'
+  else
+    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+    soname_spec='$libname$release$shared_ext$major'
+    dynamic_linker='NetBSD ld.elf_so'
+  fi
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  ;;
+
+newsos6)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+*nto* | *qnx*)
+  version_type=qnx
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='ldqnx.so'
+  ;;
+
+openbsd* | bitrig*)
+  version_type=sunos
+  sys_lib_dlsearch_path_spec=/usr/lib
+  need_lib_prefix=no
+  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
+    need_version=no
+  else
+    need_version=yes
+  fi
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
+  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  ;;
+
+os2*)
+  libname_spec='$name'
+  shrext_cmds=.dll
+  need_lib_prefix=no
+  library_names_spec='$libname$shared_ext $libname.a'
+  dynamic_linker='OS/2 ld.exe'
+  shlibpath_var=LIBPATH
+  ;;
+
+osf3* | osf4* | osf5*)
+  version_type=osf
+  need_lib_prefix=no
+  need_version=no
+  soname_spec='$libname$release$shared_ext$major'
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  shlibpath_var=LD_LIBRARY_PATH
+  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+  ;;
+
+rdos*)
+  dynamic_linker=no
+  ;;
+
+solaris*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  # ldd complains unless libraries are executable
+  postinstall_cmds='chmod +x $lib'
+  ;;
+
+sunos4*)
+  version_type=sunos
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
+  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  if test yes = "$with_gnu_ld"; then
+    need_lib_prefix=no
+  fi
+  need_version=yes
+  ;;
+
+sysv4 | sysv4.3*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  case $host_vendor in
+    sni)
+      shlibpath_overrides_runpath=no
+      need_lib_prefix=no
+      runpath_var=LD_RUN_PATH
+      ;;
+    siemens)
+      need_lib_prefix=no
+      ;;
+    motorola)
+      need_lib_prefix=no
+      need_version=no
+      shlibpath_overrides_runpath=no
+      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+      ;;
+  esac
+  ;;
+
+sysv4*MP*)
+  if test -d /usr/nec; then
+    version_type=linux # correct to gnu/linux during the next big refactor
+    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
+    soname_spec='$libname$shared_ext.$major'
+    shlibpath_var=LD_LIBRARY_PATH
+  fi
+  ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+  version_type=freebsd-elf
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=yes
+  hardcode_into_libs=yes
+  if test yes = "$with_gnu_ld"; then
+    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
+  else
+    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
+    case $host_os in
+      sco3.2v5*)
+        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
+       ;;
+    esac
+  fi
+  sys_lib_dlsearch_path_spec='/usr/lib'
+  ;;
+
+tpf*)
+  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
+  version_type=linux # correct to gnu/linux during the next big refactor
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  ;;
+
+uts4*)
+  version_type=linux # correct to gnu/linux during the next big refactor
+  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
+  soname_spec='$libname$release$shared_ext$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  ;;
+
+*)
+  dynamic_linker=no
+  ;;
+esac
+AC_MSG_RESULT([$dynamic_linker])
+test no = "$dynamic_linker" && can_build_shared=no
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test yes = "$GCC"; then
+  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
+  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
+fi
+if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
+  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
+fi
+
+_LT_DECL([], [variables_saved_for_relink], [1],
+    [Variables whose values should be saved in libtool wrapper scripts and
+    restored at link time])
+_LT_DECL([], [need_lib_prefix], [0],
+    [Do we need the "lib" prefix for modules?])
+_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
+_LT_DECL([], [version_type], [0], [Library versioning type])
+_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
+_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
+_LT_DECL([], [shlibpath_overrides_runpath], [0],
+    [Is shlibpath searched before the hard-coded library search path?])
+_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
+_LT_DECL([], [library_names_spec], [1],
+    [[List of archive names.  First name is the real one, the rest are links.
+    The last name is the one that the linker finds with -lNAME]])
+_LT_DECL([], [soname_spec], [1],
+    [[The coded name of the library, if different from the real name]])
+_LT_DECL([], [install_override_mode], [1],
+    [Permission mode override for installation of shared libraries])
+_LT_DECL([], [postinstall_cmds], [2],
+    [Command to use after installation of a shared archive])
+_LT_DECL([], [postuninstall_cmds], [2],
+    [Command to use after uninstallation of a shared archive])
+_LT_DECL([], [finish_cmds], [2],
+    [Commands used to finish a libtool library installation in a directory])
+_LT_DECL([], [finish_eval], [1],
+    [[As "finish_cmds", except a single script fragment to be evaled but
+    not shown]])
+_LT_DECL([], [hardcode_into_libs], [0],
+    [Whether we should hardcode library paths into libraries])
+_LT_DECL([], [sys_lib_search_path_spec], [2],
+    [Compile-time system search path for libraries])
+_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
+    [Run-time system search path for libraries])
+])# _LT_SYS_DYNAMIC_LINKER
+
+
+# _LT_PATH_TOOL_PREFIX(TOOL)
+# --------------------------
+# find a file program that can recognize shared library
+AC_DEFUN([_LT_PATH_TOOL_PREFIX],
+[m4_require([_LT_DECL_EGREP])dnl
+AC_MSG_CHECKING([for $1])
+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
+[case $MAGIC_CMD in
+[[\\/*] |  ?:[\\/]*])
+  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
+  ;;
+*)
+  lt_save_MAGIC_CMD=$MAGIC_CMD
+  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
+dnl $ac_dummy forces splitting on constant user-supplied paths.
+dnl POSIX.2 word splitting is done only on the output of word expansions,
+dnl not every word.  This closes a longstanding sh security hole.
+  ac_dummy="m4_if([$2], , $PATH, [$2])"
+  for ac_dir in $ac_dummy; do
+    IFS=$lt_save_ifs
+    test -z "$ac_dir" && ac_dir=.
+    if test -f "$ac_dir/$1"; then
+      lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
+      if test -n "$file_magic_test_file"; then
+       case $deplibs_check_method in
+       "file_magic "*)
+         file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+         MAGIC_CMD=$lt_cv_path_MAGIC_CMD
+         if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+           $EGREP "$file_magic_regex" > /dev/null; then
+           :
+         else
+           cat <<_LT_EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such.  This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem.  Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+_LT_EOF
+         fi ;;
+       esac
+      fi
+      break
+    fi
+  done
+  IFS=$lt_save_ifs
+  MAGIC_CMD=$lt_save_MAGIC_CMD
+  ;;
+esac])
+MAGIC_CMD=$lt_cv_path_MAGIC_CMD
+if test -n "$MAGIC_CMD"; then
+  AC_MSG_RESULT($MAGIC_CMD)
+else
+  AC_MSG_RESULT(no)
+fi
+_LT_DECL([], [MAGIC_CMD], [0],
+        [Used to examine libraries when file_magic_cmd begins with "file"])dnl
+])# _LT_PATH_TOOL_PREFIX
+
+# Old name:
+AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
+
+
+# _LT_PATH_MAGIC
+# --------------
+# find a file program that can recognize a shared library
+m4_defun([_LT_PATH_MAGIC],
+[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+  if test -n "$ac_tool_prefix"; then
+    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
+  else
+    MAGIC_CMD=:
+  fi
+fi
+])# _LT_PATH_MAGIC
+
+
+# LT_PATH_LD
+# ----------
+# find the pathname to the GNU or non-GNU linker
+AC_DEFUN([LT_PATH_LD],
+[AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
+
+AC_ARG_WITH([gnu-ld],
+    [AS_HELP_STRING([--with-gnu-ld],
+       [assume the C compiler uses GNU ld @<:@default=no@:>@])],
+    [test no = "$withval" || with_gnu_ld=yes],
+    [with_gnu_ld=no])dnl
+
+ac_prog=ld
+if test yes = "$GCC"; then
+  # Check if gcc -print-prog-name=ld gives a path.
+  AC_MSG_CHECKING([for ld used by $CC])
+  case $host in
+  *-*-mingw*)
+    # gcc leaves a trailing carriage return, which upsets mingw
+    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+  *)
+    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+  esac
+  case $ac_prog in
+    # Accept absolute paths.
+    [[\\/]]* | ?:[[\\/]]*)
+      re_direlt='/[[^/]][[^/]]*/\.\./'
+      # Canonicalize the pathname of ld
+      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
+      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
+       ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
+      done
+      test -z "$LD" && LD=$ac_prog
+      ;;
+  "")
+    # If it fails, then pretend we aren't using GCC.
+    ac_prog=ld
+    ;;
+  *)
+    # If it is relative, then search for the first ld in PATH.
+    with_gnu_ld=unknown
+    ;;
+  esac
+elif test yes = "$with_gnu_ld"; then
+  AC_MSG_CHECKING([for GNU ld])
+else
+  AC_MSG_CHECKING([for non-GNU ld])
+fi
+AC_CACHE_VAL(lt_cv_path_LD,
+[if test -z "$LD"; then
+  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
+  for ac_dir in $PATH; do
+    IFS=$lt_save_ifs
+    test -z "$ac_dir" && ac_dir=.
+    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+      lt_cv_path_LD=$ac_dir/$ac_prog
+      # Check to see if the program is GNU ld.  I'd rather use --version,
+      # but apparently some variants of GNU ld only accept -v.
+      # Break only if it was the GNU/non-GNU ld that we prefer.
+      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
+      *GNU* | *'with BFD'*)
+       test no != "$with_gnu_ld" && break
+       ;;
+      *)
+       test yes != "$with_gnu_ld" && break
+       ;;
+      esac
+    fi
+  done
+  IFS=$lt_save_ifs
+else
+  lt_cv_path_LD=$LD # Let the user override the test with a path.
+fi])
+LD=$lt_cv_path_LD
+if test -n "$LD"; then
+  AC_MSG_RESULT($LD)
+else
+  AC_MSG_RESULT(no)
+fi
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
+_LT_PATH_LD_GNU
+AC_SUBST([LD])
+
+_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
+])# LT_PATH_LD
+
+# Old names:
+AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
+AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_PROG_LD], [])
+dnl AC_DEFUN([AC_PROG_LD], [])
+
+
+# _LT_PATH_LD_GNU
+#- --------------
+m4_defun([_LT_PATH_LD_GNU],
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+  lt_cv_prog_gnu_ld=yes
+  ;;
+*)
+  lt_cv_prog_gnu_ld=no
+  ;;
+esac])
+with_gnu_ld=$lt_cv_prog_gnu_ld
+])# _LT_PATH_LD_GNU
+
+
+# _LT_CMD_RELOAD
+# --------------
+# find reload flag for linker
+#   -- PORTME Some linkers may need a different reload flag.
+m4_defun([_LT_CMD_RELOAD],
+[AC_CACHE_CHECK([for $LD option to reload object files],
+  lt_cv_ld_reload_flag,
+  [lt_cv_ld_reload_flag='-r'])
+reload_flag=$lt_cv_ld_reload_flag
+case $reload_flag in
+"" | " "*) ;;
+*) reload_flag=" $reload_flag" ;;
+esac
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+case $host_os in
+  cygwin* | mingw* | pw32* | cegcc*)
+    if test yes != "$GCC"; then
+      reload_cmds=false
+    fi
+    ;;
+  darwin*)
+    if test yes = "$GCC"; then
+      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
+    else
+      reload_cmds='$LD$reload_flag -o $output$reload_objs'
+    fi
+    ;;
+esac
+_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
+_LT_TAGDECL([], [reload_cmds], [2])dnl
+])# _LT_CMD_RELOAD
+
+
+# _LT_CHECK_MAGIC_METHOD
+# ----------------------
+# how to check for library dependencies
+#  -- PORTME fill in with the dynamic library characteristics
+m4_defun([_LT_CHECK_MAGIC_METHOD],
+[m4_require([_LT_DECL_EGREP])
+m4_require([_LT_DECL_OBJDUMP])
+AC_CACHE_CHECK([how to recognize dependent libraries],
+lt_cv_deplibs_check_method,
+[lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# 'unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# that responds to the $file_magic_cmd with a given extended regex.
+# If you have 'file' or equivalent on your system and you're not sure
+# whether 'pass_all' will *always* work, you probably want this one.
+
+case $host_os in
+aix[[4-9]]*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+beos*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+bsdi[[45]]*)
+  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
+  lt_cv_file_magic_cmd='/usr/bin/file -L'
+  lt_cv_file_magic_test_file=/shlib/libc.so
+  ;;
+
+cygwin*)
+  # func_win32_libid is a shell function defined in ltmain.sh
+  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+  lt_cv_file_magic_cmd='func_win32_libid'
+  ;;
+
+mingw* | pw32*)
+  # Base MSYS/MinGW do not provide the 'file' command needed by
+  # func_win32_libid shell function, so use a weaker test based on 'objdump',
+  # unless we find 'file', for example because we are cross-compiling.
+  if ( file / ) >/dev/null 2>&1; then
+    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+    lt_cv_file_magic_cmd='func_win32_libid'
+  else
+    # Keep this pattern in sync with the one in func_win32_libid.
+    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
+    lt_cv_file_magic_cmd='$OBJDUMP -f'
+  fi
+  ;;
+
+cegcc*)
+  # use the weaker test based on 'objdump'. See mingw*.
+  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
+  lt_cv_file_magic_cmd='$OBJDUMP -f'
+  ;;
+
+darwin* | rhapsody*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+freebsd* | dragonfly*)
+  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+    case $host_cpu in
+    i*86 )
+      # Not sure whether the presence of OpenBSD here was a mistake.
+      # Let's accept both of them until this is cleared up.
+      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
+      lt_cv_file_magic_cmd=/usr/bin/file
+      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+      ;;
+    esac
+  else
+    lt_cv_deplibs_check_method=pass_all
+  fi
+  ;;
+
+haiku*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+hpux10.20* | hpux11*)
+  lt_cv_file_magic_cmd=/usr/bin/file
+  case $host_cpu in
+  ia64*)
+    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
+    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
+    ;;
+  hppa*64*)
+    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
+    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+    ;;
+  *)
+    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
+    lt_cv_file_magic_test_file=/usr/lib/libc.sl
+    ;;
+  esac
+  ;;
+
+interix[[3-9]]*)
+  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
+  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
+  ;;
+
+irix5* | irix6* | nonstopux*)
+  case $LD in
+  *-32|*"-32 ") libmagic=32-bit;;
+  *-n32|*"-n32 ") libmagic=N32;;
+  *-64|*"-64 ") libmagic=64-bit;;
+  *) libmagic=never-match;;
+  esac
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+# This must be glibc/ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+netbsd*)
+  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
+  else
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
+  fi
+  ;;
+
+newos6*)
+  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
+  lt_cv_file_magic_cmd=/usr/bin/file
+  lt_cv_file_magic_test_file=/usr/lib/libnls.so
+  ;;
+
+*nto* | *qnx*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+openbsd* | bitrig*)
+  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
+  else
+    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
+  fi
+  ;;
+
+osf3* | osf4* | osf5*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+rdos*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+solaris*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+
+sysv4 | sysv4.3*)
+  case $host_vendor in
+  motorola)
+    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
+    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+    ;;
+  ncr)
+    lt_cv_deplibs_check_method=pass_all
+    ;;
+  sequent)
+    lt_cv_file_magic_cmd='/bin/file'
+    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
+    ;;
+  sni)
+    lt_cv_file_magic_cmd='/bin/file'
+    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
+    lt_cv_file_magic_test_file=/lib/libc.so
+    ;;
+  siemens)
+    lt_cv_deplibs_check_method=pass_all
+    ;;
+  pc)
+    lt_cv_deplibs_check_method=pass_all
+    ;;
+  esac
+  ;;
+
+tpf*)
+  lt_cv_deplibs_check_method=pass_all
+  ;;
+esac
+])
+
+file_magic_glob=
+want_nocaseglob=no
+if test "$build" = "$host"; then
+  case $host_os in
+  mingw* | pw32*)
+    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
+      want_nocaseglob=yes
+    else
+      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
+    fi
+    ;;
+  esac
+fi
+
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
+
+_LT_DECL([], [deplibs_check_method], [1],
+    [Method to check whether dependent libraries are shared objects])
+_LT_DECL([], [file_magic_cmd], [1],
+    [Command to use when deplibs_check_method = "file_magic"])
+_LT_DECL([], [file_magic_glob], [1],
+    [How to find potential files when deplibs_check_method = "file_magic"])
+_LT_DECL([], [want_nocaseglob], [1],
+    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
+])# _LT_CHECK_MAGIC_METHOD
+
+
+# LT_PATH_NM
+# ----------
+# find the pathname to a BSD- or MS-compatible name lister
+AC_DEFUN([LT_PATH_NM],
+[AC_REQUIRE([AC_PROG_CC])dnl
+AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
+[if test -n "$NM"; then
+  # Let the user override the test.
+  lt_cv_path_NM=$NM
+else
+  lt_nm_to_check=${ac_tool_prefix}nm
+  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
+    lt_nm_to_check="$lt_nm_to_check nm"
+  fi
+  for lt_tmp_nm in $lt_nm_to_check; do
+    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
+    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
+      IFS=$lt_save_ifs
+      test -z "$ac_dir" && ac_dir=.
+      tmp_nm=$ac_dir/$lt_tmp_nm
+      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
+       # Check to see if the nm accepts a BSD-compat flag.
+       # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
+       #   nm: unknown option "B" ignored
+       # Tru64's nm complains that /dev/null is an invalid object file
+       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
+       */dev/null* | *'Invalid file or object type'*)
+         lt_cv_path_NM="$tmp_nm -B"
+         break 2
+         ;;
+       *)
+         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
+         */dev/null*)
+           lt_cv_path_NM="$tmp_nm -p"
+           break 2
+           ;;
+         *)
+           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
+           continue # so that we can try to find one that supports BSD flags
+           ;;
+         esac
+         ;;
+       esac
+      fi
+    done
+    IFS=$lt_save_ifs
+  done
+  : ${lt_cv_path_NM=no}
+fi])
+if test no != "$lt_cv_path_NM"; then
+  NM=$lt_cv_path_NM
+else
+  # Didn't find any BSD compatible name lister, look for dumpbin.
+  if test -n "$DUMPBIN"; then :
+    # Let the user override the test.
+  else
+    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
+    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
+    *COFF*)
+      DUMPBIN="$DUMPBIN -symbols -headers"
+      ;;
+    *)
+      DUMPBIN=:
+      ;;
+    esac
+  fi
+  AC_SUBST([DUMPBIN])
+  if test : != "$DUMPBIN"; then
+    NM=$DUMPBIN
+  fi
+fi
+test -z "$NM" && NM=nm
+AC_SUBST([NM])
+_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
+
+AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
+  [lt_cv_nm_interface="BSD nm"
+  echo "int some_variable = 0;" > conftest.$ac_ext
+  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
+  (eval "$ac_compile" 2>conftest.err)
+  cat conftest.err >&AS_MESSAGE_LOG_FD
+  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
+  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
+  cat conftest.err >&AS_MESSAGE_LOG_FD
+  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
+  cat conftest.out >&AS_MESSAGE_LOG_FD
+  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
+    lt_cv_nm_interface="MS dumpbin"
+  fi
+  rm -f conftest*])
+])# LT_PATH_NM
+
+# Old names:
+AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
+AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_PROG_NM], [])
+dnl AC_DEFUN([AC_PROG_NM], [])
+
+# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
+# --------------------------------
+# how to determine the name of the shared library
+# associated with a specific link library.
+#  -- PORTME fill in with the dynamic library characteristics
+m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
+[m4_require([_LT_DECL_EGREP])
+m4_require([_LT_DECL_OBJDUMP])
+m4_require([_LT_DECL_DLLTOOL])
+AC_CACHE_CHECK([how to associate runtime and link libraries],
+lt_cv_sharedlib_from_linklib_cmd,
+[lt_cv_sharedlib_from_linklib_cmd='unknown'
+
+case $host_os in
+cygwin* | mingw* | pw32* | cegcc*)
+  # two different shell functions defined in ltmain.sh;
+  # decide which one to use based on capabilities of $DLLTOOL
+  case `$DLLTOOL --help 2>&1` in
+  *--identify-strict*)
+    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
+    ;;
+  *)
+    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
+    ;;
+  esac
+  ;;
+*)
+  # fallback: assume linklib IS sharedlib
+  lt_cv_sharedlib_from_linklib_cmd=$ECHO
+  ;;
+esac
+])
+sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
+test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
+
+_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
+    [Command to associate shared and link libraries])
+])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
+
+
+# _LT_PATH_MANIFEST_TOOL
+# ----------------------
+# locate the manifest tool
+m4_defun([_LT_PATH_MANIFEST_TOOL],
+[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
+test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
+AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
+  [lt_cv_path_mainfest_tool=no
+  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
+  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
+  cat conftest.err >&AS_MESSAGE_LOG_FD
+  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
+    lt_cv_path_mainfest_tool=yes
+  fi
+  rm -f conftest*])
+if test yes != "$lt_cv_path_mainfest_tool"; then
+  MANIFEST_TOOL=:
+fi
+_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
+])# _LT_PATH_MANIFEST_TOOL
+
+
+# _LT_DLL_DEF_P([FILE])
+# ---------------------
+# True iff FILE is a Windows DLL '.def' file.
+# Keep in sync with func_dll_def_p in the libtool script
+AC_DEFUN([_LT_DLL_DEF_P],
+[dnl
+  test DEF = "`$SED -n dnl
+    -e '\''s/^[[        ]]*//'\'' dnl Strip leading whitespace
+    -e '\''/^\(;.*\)*$/d'\'' dnl      Delete empty lines and comments
+    -e '\''s/^\(EXPORTS\|LIBRARY\)\([[  ]].*\)*$/DEF/p'\'' dnl
+    -e q dnl                          Only consider the first "real" line
+    $1`" dnl
+])# _LT_DLL_DEF_P
+
+
+# LT_LIB_M
+# --------
+# check for math library
+AC_DEFUN([LT_LIB_M],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+LIBM=
+case $host in
+*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
+  # These system don't have libm, or don't need it
+  ;;
+*-ncr-sysv4.3*)
+  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
+  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
+  ;;
+*)
+  AC_CHECK_LIB(m, cos, LIBM=-lm)
+  ;;
+esac
+AC_SUBST([LIBM])
+])# LT_LIB_M
+
+# Old name:
+AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_CHECK_LIBM], [])
+
+
+# _LT_COMPILER_NO_RTTI([TAGNAME])
+# -------------------------------
+m4_defun([_LT_COMPILER_NO_RTTI],
+[m4_require([_LT_TAG_COMPILER])dnl
+
+_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
+
+if test yes = "$GCC"; then
+  case $cc_basename in
+  nvcc*)
+    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
+  *)
+    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
+  esac
+
+  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
+    lt_cv_prog_compiler_rtti_exceptions,
+    [-fno-rtti -fno-exceptions], [],
+    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
+fi
+_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
+       [Compiler flag to turn off builtin functions])
+])# _LT_COMPILER_NO_RTTI
+
+
+# _LT_CMD_GLOBAL_SYMBOLS
+# ----------------------
+m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_PROG_AWK])dnl
+AC_REQUIRE([LT_PATH_NM])dnl
+AC_REQUIRE([LT_PATH_LD])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_TAG_COMPILER])dnl
+
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
+[
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[[BCDEGRST]]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+  symcode='[[BCDT]]'
+  ;;
+cygwin* | mingw* | pw32* | cegcc*)
+  symcode='[[ABCDGISTW]]'
+  ;;
+hpux*)
+  if test ia64 = "$host_cpu"; then
+    symcode='[[ABCDEGRST]]'
+  fi
+  ;;
+irix* | nonstopux*)
+  symcode='[[BCDEGRST]]'
+  ;;
+osf*)
+  symcode='[[BCDEGQRST]]'
+  ;;
+solaris*)
+  symcode='[[BDRT]]'
+  ;;
+sco3.2v5*)
+  symcode='[[DT]]'
+  ;;
+sysv4.2uw2*)
+  symcode='[[DT]]'
+  ;;
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
+  symcode='[[ABDT]]'
+  ;;
+sysv4)
+  symcode='[[DFNSTU]]'
+  ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+case `$NM -V 2>&1` in
+*GNU* | *'with BFD'*)
+  symcode='[[ABCDGIRSTW]]' ;;
+esac
+
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+  # Gets list of data symbols to import.
+  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
+  # Adjust the below global symbol transforms to fixup imported variables.
+  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
+  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
+  lt_c_name_lib_hook="\
+  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
+  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
+else
+  # Disable hooks by default.
+  lt_cv_sys_global_symbol_to_import=
+  lt_cdecl_hook=
+  lt_c_name_hook=
+  lt_c_name_lib_hook=
+fi
+
+# Transform an extracted symbol line into a proper C declaration.
+# Some systems (esp. on ia64) link data and code symbols differently,
+# so use this general approach.
+lt_cv_sys_global_symbol_to_cdecl="sed -n"\
+$lt_cdecl_hook\
+" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
+" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
+$lt_c_name_hook\
+" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
+" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
+
+# Transform an extracted symbol line into symbol name with lib prefix and
+# symbol address.
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
+$lt_c_name_lib_hook\
+" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
+" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
+" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
+
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $build_os in
+mingw*)
+  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+  ;;
+esac
+
+# Try without a prefix underscore, then with it.
+for ac_symprfx in "" "_"; do
+
+  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
+  symxfrm="\\1 $ac_symprfx\\2 \\2"
+
+  # Write the raw and C identifiers.
+  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+    # Fake it for dumpbin and say T for any non-static function,
+    # D for any global variable and I for any imported variable.
+    # Also find C++ and __fastcall symbols from MSVC++,
+    # which start with @ or ?.
+    lt_cv_sys_global_symbol_pipe="$AWK ['"\
+"     {last_section=section; section=\$ 3};"\
+"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
+"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
+"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
+"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
+"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
+"     \$ 0!~/External *\|/{next};"\
+"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
+"     {if(hide[section]) next};"\
+"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
+"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
+"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
+"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
+"     ' prfx=^$ac_symprfx]"
+  else
+    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[    ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
+  fi
+  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
+
+  # Check to see that the pipe works correctly.
+  pipe_works=no
+
+  rm -f conftest*
+  cat > conftest.$ac_ext <<_LT_EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(void);
+void nm_test_func(void){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+_LT_EOF
+
+  if AC_TRY_EVAL(ac_compile); then
+    # Now try to grab the symbols.
+    nlist=conftest.nm
+    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
+      # Try sorting and uniquifying the output.
+      if sort "$nlist" | uniq > "$nlist"T; then
+       mv -f "$nlist"T "$nlist"
+      else
+       rm -f "$nlist"T
+      fi
+
+      # Make sure that we snagged all the symbols we need.
+      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
+       if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
+         cat <<_LT_EOF > conftest.$ac_ext
+/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
+#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
+/* DATA imports from DLLs on WIN32 can't be const, because runtime
+   relocations are performed -- see ld's documentation on pseudo-relocs.  */
+# define LT@&t@_DLSYM_CONST
+#elif defined __osf__
+/* This system does not cope well with relocations in const data.  */
+# define LT@&t@_DLSYM_CONST
+#else
+# define LT@&t@_DLSYM_CONST const
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+_LT_EOF
+         # Now generate the symbol file.
+         eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
+
+         cat <<_LT_EOF >> conftest.$ac_ext
+
+/* The mapping between symbol names and symbols.  */
+LT@&t@_DLSYM_CONST struct {
+  const char *name;
+  void       *address;
+}
+lt__PROGRAM__LTX_preloaded_symbols[[]] =
+{
+  { "@PROGRAM@", (void *) 0 },
+_LT_EOF
+         $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
+         cat <<\_LT_EOF >> conftest.$ac_ext
+  {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+  return lt__PROGRAM__LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+_LT_EOF
+         # Now try linking the two files.
+         mv conftest.$ac_objext conftstm.$ac_objext
+         lt_globsym_save_LIBS=$LIBS
+         lt_globsym_save_CFLAGS=$CFLAGS
+         LIBS=conftstm.$ac_objext
+         CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
+         if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
+           pipe_works=yes
+         fi
+         LIBS=$lt_globsym_save_LIBS
+         CFLAGS=$lt_globsym_save_CFLAGS
+       else
+         echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
+       fi
+      else
+       echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
+      fi
+    else
+      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
+    fi
+  else
+    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
+    cat conftest.$ac_ext >&5
+  fi
+  rm -rf conftest* conftst*
+
+  # Do not use the global_symbol_pipe unless it works.
+  if test yes = "$pipe_works"; then
+    break
+  else
+    lt_cv_sys_global_symbol_pipe=
+  fi
+done
+])
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
+  lt_cv_sys_global_symbol_to_cdecl=
+fi
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
+  AC_MSG_RESULT(failed)
+else
+  AC_MSG_RESULT(ok)
+fi
+
+# Response file support.
+if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+  nm_file_list_spec='@'
+elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
+  nm_file_list_spec='@'
+fi
+
+_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
+    [Take the output of nm and produce a listing of raw symbols and C names])
+_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
+    [Transform the output of nm in a proper C declaration])
+_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
+    [Transform the output of nm into a list of symbols to manually relocate])
+_LT_DECL([global_symbol_to_c_name_address],
+    [lt_cv_sys_global_symbol_to_c_name_address], [1],
+    [Transform the output of nm in a C name address pair])
+_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
+    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
+    [Transform the output of nm in a C name address pair when lib prefix is needed])
+_LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
+    [The name lister interface])
+_LT_DECL([], [nm_file_list_spec], [1],
+    [Specify filename containing input files for $NM])
+]) # _LT_CMD_GLOBAL_SYMBOLS
+
+
+# _LT_COMPILER_PIC([TAGNAME])
+# ---------------------------
+m4_defun([_LT_COMPILER_PIC],
+[m4_require([_LT_TAG_COMPILER])dnl
+_LT_TAGVAR(lt_prog_compiler_wl, $1)=
+_LT_TAGVAR(lt_prog_compiler_pic, $1)=
+_LT_TAGVAR(lt_prog_compiler_static, $1)=
+
+m4_if([$1], [CXX], [
+  # C++ specific cases for pic, static, wl, etc.
+  if test yes = "$GXX"; then
+    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+
+    case $host_os in
+    aix*)
+      # All AIX code is PIC.
+      if test ia64 = "$host_cpu"; then
+       # AIX 5 now supports IA64 processor
+       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      fi
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+      ;;
+
+    amigaos*)
+      case $host_cpu in
+      powerpc)
+            # see comment about AmigaOS4 .so support
+            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+        ;;
+      m68k)
+            # FIXME: we need at least 68020 code to build shared libraries, but
+            # adding the '-m68020' flag to GCC prevents building anything better,
+            # like '-m68040'.
+            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
+        ;;
+      esac
+      ;;
+
+    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+      # PIC is the default for these OSes.
+      ;;
+    mingw* | cygwin* | os2* | pw32* | cegcc*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      # Although the cygwin gcc ignores -fPIC, still need this for old-style
+      # (--disable-auto-import) libraries
+      m4_if([$1], [GCJ], [],
+       [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+      ;;
+    darwin* | rhapsody*)
+      # PIC is the default on this platform
+      # Common symbols not allowed in MH_DYLIB files
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
+      ;;
+    *djgpp*)
+      # DJGPP does not support shared libraries at all
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+      ;;
+    haiku*)
+      # PIC is the default for Haiku.
+      # The "-static" flag exists, but is broken.
+      _LT_TAGVAR(lt_prog_compiler_static, $1)=
+      ;;
+    interix[[3-9]]*)
+      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+      # Instead, we relocate shared libraries at runtime.
+      ;;
+    sysv4*MP*)
+      if test -d /usr/nec; then
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
+      fi
+      ;;
+    hpux*)
+      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
+      # sets the default TLS model and affects inlining.
+      case $host_cpu in
+      hppa*64*)
+       ;;
+      *)
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+       ;;
+      esac
+      ;;
+    *qnx* | *nto*)
+      # QNX uses GNU C++, but need to define -shared option too, otherwise
+      # it will coredump.
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+      ;;
+    *)
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+      ;;
+    esac
+  else
+    case $host_os in
+      aix[[4-9]]*)
+       # All AIX code is PIC.
+       if test ia64 = "$host_cpu"; then
+         # AIX 5 now supports IA64 processor
+         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+       else
+         _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+       fi
+       ;;
+      chorus*)
+       case $cc_basename in
+       cxch68*)
+         # Green Hills C++ Compiler
+         # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
+         ;;
+       esac
+       ;;
+      mingw* | cygwin* | os2* | pw32* | cegcc*)
+       # This hack is so that the source file can tell whether it is being
+       # built for inclusion in a dll (and should export symbols for example).
+       m4_if([$1], [GCJ], [],
+         [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+       ;;
+      dgux*)
+       case $cc_basename in
+         ec++*)
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+           ;;
+         ghcx*)
+           # Green Hills C++ Compiler
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      freebsd* | dragonfly*)
+       # FreeBSD uses GNU C++
+       ;;
+      hpux9* | hpux10* | hpux11*)
+       case $cc_basename in
+         CC*)
+           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+           _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
+           if test ia64 != "$host_cpu"; then
+             _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+           fi
+           ;;
+         aCC*)
+           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+           _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
+           case $host_cpu in
+           hppa*64*|ia64*)
+             # +Z the default
+             ;;
+           *)
+             _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+             ;;
+           esac
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      interix*)
+       # This is c89, which is MS Visual C++ (no shared libs)
+       # Anyone wants to do a port?
+       ;;
+      irix5* | irix6* | nonstopux*)
+       case $cc_basename in
+         CC*)
+           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+           _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+           # CC pic flag -KPIC is the default.
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+       case $cc_basename in
+         KCC*)
+           # KAI C++ Compiler
+           _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+           ;;
+         ecpc* )
+           # old Intel C++ for x86_64, which still supported -KPIC.
+           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+           _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+           ;;
+         icpc* )
+           # Intel C++, used to be incompatible with GCC.
+           # ICC 10 doesn't accept -KPIC any more.
+           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+           _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+           ;;
+         pgCC* | pgcpp*)
+           # Portland Group C++ compiler
+           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+           _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+           ;;
+         cxx*)
+           # Compaq C++
+           # Make sure the PIC flag is empty.  It appears that all Alpha
+           # Linux and Compaq Tru64 Unix objects are PIC.
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+           _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+           ;;
+         xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
+           # IBM XL 8.0, 9.0 on PPC and BlueGene
+           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
+           _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
+           ;;
+         *)
+           case `$CC -V 2>&1 | sed 5q` in
+           *Sun\ C*)
+             # Sun C++ 5.9
+             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+             _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+             _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+             ;;
+           esac
+           ;;
+       esac
+       ;;
+      lynxos*)
+       ;;
+      m88k*)
+       ;;
+      mvs*)
+       case $cc_basename in
+         cxx*)
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      netbsd*)
+       ;;
+      *qnx* | *nto*)
+        # QNX uses GNU C++, but need to define -shared option too, otherwise
+        # it will coredump.
+        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+        ;;
+      osf3* | osf4* | osf5*)
+       case $cc_basename in
+         KCC*)
+           _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
+           ;;
+         RCC*)
+           # Rational C++ 2.4.1
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+           ;;
+         cxx*)
+           # Digital/Compaq C++
+           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+           # Make sure the PIC flag is empty.  It appears that all Alpha
+           # Linux and Compaq Tru64 Unix objects are PIC.
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+           _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      psos*)
+       ;;
+      solaris*)
+       case $cc_basename in
+         CC* | sunCC*)
+           # Sun C++ 4.2, 5.x and Centerline C++
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+           _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+           ;;
+         gcx*)
+           # Green Hills C++ Compiler
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      sunos4*)
+       case $cc_basename in
+         CC*)
+           # Sun C++ 4.x
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+           _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+           ;;
+         lcc*)
+           # Lucid
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+       case $cc_basename in
+         CC*)
+           _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+           _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+           ;;
+       esac
+       ;;
+      tandem*)
+       case $cc_basename in
+         NCC*)
+           # NonStop-UX NCC 3.20
+           _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+           ;;
+         *)
+           ;;
+       esac
+       ;;
+      vxworks*)
+       ;;
+      *)
+       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+       ;;
+    esac
+  fi
+],
+[
+  if test yes = "$GCC"; then
+    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+
+    case $host_os in
+      aix*)
+      # All AIX code is PIC.
+      if test ia64 = "$host_cpu"; then
+       # AIX 5 now supports IA64 processor
+       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      fi
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+      ;;
+
+    amigaos*)
+      case $host_cpu in
+      powerpc)
+            # see comment about AmigaOS4 .so support
+            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+        ;;
+      m68k)
+            # FIXME: we need at least 68020 code to build shared libraries, but
+            # adding the '-m68020' flag to GCC prevents building anything better,
+            # like '-m68040'.
+            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
+        ;;
+      esac
+      ;;
+
+    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+      # PIC is the default for these OSes.
+      ;;
+
+    mingw* | cygwin* | pw32* | os2* | cegcc*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      # Although the cygwin gcc ignores -fPIC, still need this for old-style
+      # (--disable-auto-import) libraries
+      m4_if([$1], [GCJ], [],
+       [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+      ;;
+
+    darwin* | rhapsody*)
+      # PIC is the default on this platform
+      # Common symbols not allowed in MH_DYLIB files
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
+      ;;
+
+    haiku*)
+      # PIC is the default for Haiku.
+      # The "-static" flag exists, but is broken.
+      _LT_TAGVAR(lt_prog_compiler_static, $1)=
+      ;;
+
+    hpux*)
+      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
+      # sets the default TLS model and affects inlining.
+      case $host_cpu in
+      hppa*64*)
+       # +Z the default
+       ;;
+      *)
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+       ;;
+      esac
+      ;;
+
+    interix[[3-9]]*)
+      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+      # Instead, we relocate shared libraries at runtime.
+      ;;
+
+    msdosdjgpp*)
+      # Just because we use GCC doesn't mean we suddenly get shared libraries
+      # on systems that don't support them.
+      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+      enable_shared=no
+      ;;
+
+    *nto* | *qnx*)
+      # QNX uses GNU C++, but need to define -shared option too, otherwise
+      # it will coredump.
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec; then
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
+      fi
+      ;;
+
+    *)
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+      ;;
+    esac
+
+    case $cc_basename in
+    nvcc*) # Cuda Compiler Driver 2.2
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
+      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
+        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
+      fi
+      ;;
+    esac
+  else
+    # PORTME Check for flag to pass linker flags through the system compiler.
+    case $host_os in
+    aix*)
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+      if test ia64 = "$host_cpu"; then
+       # AIX 5 now supports IA64 processor
+       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      else
+       _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+      fi
+      ;;
+
+    darwin* | rhapsody*)
+      # PIC is the default on this platform
+      # Common symbols not allowed in MH_DYLIB files
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
+      case $cc_basename in
+      nagfor*)
+        # NAG Fortran compiler
+        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
+        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+        ;;
+      esac
+      ;;
+
+    mingw* | cygwin* | pw32* | os2* | cegcc*)
+      # This hack is so that the source file can tell whether it is being
+      # built for inclusion in a dll (and should export symbols for example).
+      m4_if([$1], [GCJ], [],
+       [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+      ;;
+
+    hpux9* | hpux10* | hpux11*)
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+      # not for PA HP-UX.
+      case $host_cpu in
+      hppa*64*|ia64*)
+       # +Z the default
+       ;;
+      *)
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+       ;;
+      esac
+      # Is there a better lt_prog_compiler_static that works with the bundled CC?
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
+      ;;
+
+    irix5* | irix6* | nonstopux*)
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+      # PIC (with -KPIC) is the default.
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+      ;;
+
+    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+      case $cc_basename in
+      # old Intel for x86_64, which still supported -KPIC.
+      ecc*)
+       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+       _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+        ;;
+      # icc used to be incompatible with GCC.
+      # ICC 10 doesn't accept -KPIC any more.
+      icc* | ifort*)
+       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+       _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+        ;;
+      # Lahey Fortran 8.1.
+      lf95*)
+       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
+       _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
+       ;;
+      nagfor*)
+       # NAG Fortran compiler
+       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+       ;;
+      tcc*)
+       # Fabrice Bellard et al's Tiny C Compiler
+       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+       _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+       ;;
+      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
+        # Portland Group compilers (*not* the Pentium gcc compiler,
+       # which looks to be a dead project)
+       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+        ;;
+      ccc*)
+        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+        # All Alpha code is PIC.
+        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+        ;;
+      xl* | bgxl* | bgf* | mpixl*)
+       # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
+       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
+       _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
+       ;;
+      *)
+       case `$CC -V 2>&1 | sed 5q` in
+       *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
+         # Sun Fortran 8.3 passes all unrecognized flags to the linker
+         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+         _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
+         ;;
+       *Sun\ F* | *Sun*Fortran*)
+         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+         ;;
+       *Sun\ C*)
+         # Sun C 5.9
+         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+         ;;
+        *Intel*\ [[CF]]*Compiler*)
+         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+         _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+         ;;
+       *Portland\ Group*)
+         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+         ;;
+       esac
+       ;;
+      esac
+      ;;
+
+    newsos6)
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      ;;
+
+    *nto* | *qnx*)
+      # QNX uses GNU C++, but need to define -shared option too, otherwise
+      # it will coredump.
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+      ;;
+
+    osf3* | osf4* | osf5*)
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+      # All OSF/1 code is PIC.
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+      ;;
+
+    rdos*)
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+      ;;
+
+    solaris*)
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      case $cc_basename in
+      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
+       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
+      *)
+       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
+      esac
+      ;;
+
+    sunos4*)
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      ;;
+
+    sysv4 | sysv4.2uw2* | sysv4.3*)
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec; then
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
+       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      fi
+      ;;
+
+    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      ;;
+
+    unicos*)
+      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+      ;;
+
+    uts4*)
+      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+      ;;
+
+    *)
+      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+      ;;
+    esac
+  fi
+])
+case $host_os in
+  # For platforms that do not support PIC, -DPIC is meaningless:
+  *djgpp*)
+    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+    ;;
+  *)
+    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
+    ;;
+esac
+
+AC_CACHE_CHECK([for $compiler option to produce PIC],
+  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
+  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
+_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
+  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
+    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
+    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
+    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
+     "" | " "*) ;;
+     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
+     esac],
+    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
+     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
+fi
+_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
+       [Additional compiler flags for building library objects])
+
+_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
+       [How to pass a linker flag through the compiler])
+#
+# Check to make sure the static flag actually works.
+#
+wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
+_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
+  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
+  $lt_tmp_static_flag,
+  [],
+  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
+_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
+       [Compiler flag to prevent dynamic linking])
+])# _LT_COMPILER_PIC
+
+
+# _LT_LINKER_SHLIBS([TAGNAME])
+# ----------------------------
+# See if the linker supports building shared libraries.
+m4_defun([_LT_LINKER_SHLIBS],
+[AC_REQUIRE([LT_PATH_LD])dnl
+AC_REQUIRE([LT_PATH_NM])dnl
+m4_require([_LT_PATH_MANIFEST_TOOL])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
+m4_require([_LT_TAG_COMPILER])dnl
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
+m4_if([$1], [CXX], [
+  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
+  case $host_os in
+  aix[[4-9]]*)
+    # If we're using GNU nm, then we don't want the "-C" option.
+    # -C means demangle to AIX nm, but means don't demangle with GNU nm
+    # Also, AIX nm treats weak defined symbols like other global defined
+    # symbols, whereas GNU nm marks them as "W".
+    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
+      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+    else
+      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+    fi
+    ;;
+  pw32*)
+    _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
+    ;;
+  cygwin* | mingw* | cegcc*)
+    case $cc_basename in
+    cl*)
+      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
+      ;;
+    *)
+      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
+      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
+      ;;
+    esac
+    ;;
+  *)
+    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+    ;;
+  esac
+], [
+  runpath_var=
+  _LT_TAGVAR(allow_undefined_flag, $1)=
+  _LT_TAGVAR(always_export_symbols, $1)=no
+  _LT_TAGVAR(archive_cmds, $1)=
+  _LT_TAGVAR(archive_expsym_cmds, $1)=
+  _LT_TAGVAR(compiler_needs_object, $1)=no
+  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
+  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+  _LT_TAGVAR(hardcode_automatic, $1)=no
+  _LT_TAGVAR(hardcode_direct, $1)=no
+  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
+  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+  _LT_TAGVAR(hardcode_libdir_separator, $1)=
+  _LT_TAGVAR(hardcode_minus_L, $1)=no
+  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+  _LT_TAGVAR(inherit_rpath, $1)=no
+  _LT_TAGVAR(link_all_deplibs, $1)=unknown
+  _LT_TAGVAR(module_cmds, $1)=
+  _LT_TAGVAR(module_expsym_cmds, $1)=
+  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
+  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
+  _LT_TAGVAR(thread_safe_flag_spec, $1)=
+  _LT_TAGVAR(whole_archive_flag_spec, $1)=
+  # include_expsyms should be a list of space-separated symbols to be *always*
+  # included in the symbol list
+  _LT_TAGVAR(include_expsyms, $1)=
+  # exclude_expsyms can be an extended regexp of symbols to exclude
+  # it will be wrapped by ' (' and ')$', so one must not match beginning or
+  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
+  # as well as any symbol that contains 'd'.
+  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
+  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+  # platforms (ab)use it in PIC code, but their linkers get confused if
+  # the symbol is explicitly referenced.  Since portable code cannot
+  # rely on this symbol name, it's probably fine to never include it in
+  # preloaded symbol tables.
+  # Exclude shared library initialization/finalization symbols.
+dnl Note also adjust exclude_expsyms for C++ above.
+  extract_expsyms_cmds=
+
+  case $host_os in
+  cygwin* | mingw* | pw32* | cegcc*)
+    # FIXME: the MSVC++ port hasn't been tested in a loooong time
+    # When not using gcc, we currently assume that we are using
+    # Microsoft Visual C++.
+    if test yes != "$GCC"; then
+      with_gnu_ld=no
+    fi
+    ;;
+  interix*)
+    # we just hope/assume this is gcc and not c89 (= MSVC++)
+    with_gnu_ld=yes
+    ;;
+  openbsd* | bitrig*)
+    with_gnu_ld=no
+    ;;
+  esac
+
+  _LT_TAGVAR(ld_shlibs, $1)=yes
+
+  # On some targets, GNU ld is compatible enough with the native linker
+  # that we're better off using the native interface for both.
+  lt_use_gnu_ld_interface=no
+  if test yes = "$with_gnu_ld"; then
+    case $host_os in
+      aix*)
+       # The AIX port of GNU ld has always aspired to compatibility
+       # with the native linker.  However, as the warning in the GNU ld
+       # block says, versions before 2.19.5* couldn't really create working
+       # shared libraries, regardless of the interface used.
+       case `$LD -v 2>&1` in
+         *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
+         *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
+         *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
+         *)
+           lt_use_gnu_ld_interface=yes
+           ;;
+       esac
+       ;;
+      *)
+       lt_use_gnu_ld_interface=yes
+       ;;
+    esac
+  fi
+
+  if test yes = "$lt_use_gnu_ld_interface"; then
+    # If archive_cmds runs LD, not CC, wlarc should be empty
+    wlarc='$wl'
+
+    # Set some defaults for GNU ld with shared library support. These
+    # are reset later if shared libraries are not supported. Putting them
+    # here allows them to be overridden if necessary.
+    runpath_var=LD_RUN_PATH
+    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
+    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
+    # ancient GNU ld didn't support --whole-archive et. al.
+    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
+      _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
+    else
+      _LT_TAGVAR(whole_archive_flag_spec, $1)=
+    fi
+    supports_anon_versioning=no
+    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
+      *GNU\ gold*) supports_anon_versioning=yes ;;
+      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
+      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+      *\ 2.11.*) ;; # other 2.11 versions
+      *) supports_anon_versioning=yes ;;
+    esac
+
+    # See if GNU ld supports shared libraries.
+    case $host_os in
+    aix[[3-9]]*)
+      # On AIX/PPC, the GNU linker is very broken
+      if test ia64 != "$host_cpu"; then
+       _LT_TAGVAR(ld_shlibs, $1)=no
+       cat <<_LT_EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.19, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support.  If you
+*** really care for shared libraries, you may want to install binutils
+*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
+*** You will then need to restart the configuration process.
+
+_LT_EOF
+      fi
+      ;;
+
+    amigaos*)
+      case $host_cpu in
+      powerpc)
+            # see comment about AmigaOS4 .so support
+            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+            _LT_TAGVAR(archive_expsym_cmds, $1)=''
+        ;;
+      m68k)
+            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+            _LT_TAGVAR(hardcode_minus_L, $1)=yes
+        ;;
+      esac
+      ;;
+
+    beos*)
+      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+       # support --undefined.  This deserves some investigation.  FIXME
+       _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+      else
+       _LT_TAGVAR(ld_shlibs, $1)=no
+      fi
+      ;;
+
+    cygwin* | mingw* | pw32* | cegcc*)
+      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
+      # as there is no search path for DLLs.
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
+      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+      _LT_TAGVAR(always_export_symbols, $1)=no
+      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
+      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
+
+      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+       # If the export-symbols file already is a .def file, use it as
+       # is; otherwise, prepend EXPORTS...
+       _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
+          cp $export_symbols $output_objdir/$soname.def;
+        else
+          echo EXPORTS > $output_objdir/$soname.def;
+          cat $export_symbols >> $output_objdir/$soname.def;
+        fi~
+        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+      else
+       _LT_TAGVAR(ld_shlibs, $1)=no
+      fi
+      ;;
+
+    haiku*)
+      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+      _LT_TAGVAR(link_all_deplibs, $1)=yes
+      ;;
+
+    interix[[3-9]]*)
+      _LT_TAGVAR(hardcode_direct, $1)=no
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
+      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
+      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+      # Instead, shared libraries are loaded at an image base (0x10000000 by
+      # default) and relocated if they conflict, which is a slow very memory
+      # consuming and fragmenting process.  To avoid this, we pick a random,
+      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
+      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+      ;;
+
+    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
+      tmp_diet=no
+      if test linux-dietlibc = "$host_os"; then
+       case $cc_basename in
+         diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
+       esac
+      fi
+      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
+        && test no = "$tmp_diet"
+      then
+       tmp_addflag=' $pic_flag'
+       tmp_sharedflag='-shared'
+       case $cc_basename,$host_cpu in
+        pgcc*)                         # Portland Group C compiler
+         _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+         tmp_addflag=' $pic_flag'
+         ;;
+       pgf77* | pgf90* | pgf95* | pgfortran*)
+                                       # Portland Group f77 and f90 compilers
+         _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+         tmp_addflag=' $pic_flag -Mnomain' ;;
+       ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
+         tmp_addflag=' -i_dynamic' ;;
+       efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
+         tmp_addflag=' -i_dynamic -nofor_main' ;;
+       ifc* | ifort*)                  # Intel Fortran compiler
+         tmp_addflag=' -nofor_main' ;;
+       lf95*)                          # Lahey Fortran 8.1
+         _LT_TAGVAR(whole_archive_flag_spec, $1)=
+         tmp_sharedflag='--shared' ;;
+        nagfor*)                        # NAGFOR 5.3
+          tmp_sharedflag='-Wl,-shared' ;;
+       xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
+         tmp_sharedflag='-qmkshrobj'
+         tmp_addflag= ;;
+       nvcc*)  # Cuda Compiler Driver 2.2
+         _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+         _LT_TAGVAR(compiler_needs_object, $1)=yes
+         ;;
+       esac
+       case `$CC -V 2>&1 | sed 5q` in
+       *Sun\ C*)                       # Sun C 5.9
+         _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+         _LT_TAGVAR(compiler_needs_object, $1)=yes
+         tmp_sharedflag='-G' ;;
+       *Sun\ F*)                       # Sun Fortran 8.3
+         tmp_sharedflag='-G' ;;
+       esac
+       _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+
+        if test yes = "$supports_anon_versioning"; then
+          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
+            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+            echo "local: *; };" >> $output_objdir/$libname.ver~
+            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
+        fi
+
+       case $cc_basename in
+       xlf* | bgf* | bgxlf* | mpixlf*)
+         # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
+         _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
+         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
+         _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
+         if test yes = "$supports_anon_versioning"; then
+           _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
+              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+              echo "local: *; };" >> $output_objdir/$libname.ver~
+              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
+         fi
+         ;;
+       esac
+      else
+        _LT_TAGVAR(ld_shlibs, $1)=no
+      fi
+      ;;
+
+    netbsd*)
+      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+       wlarc=
+      else
+       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+       _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+      fi
+      ;;
+
+    solaris*)
+      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
+       _LT_TAGVAR(ld_shlibs, $1)=no
+       cat <<_LT_EOF 1>&2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems.  Therefore, libtool
+*** is disabling shared libraries support.  We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer.  Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+       _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+      else
+       _LT_TAGVAR(ld_shlibs, $1)=no
+      fi
+      ;;
+
+    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
+      case `$LD -v 2>&1` in
+        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
+       _LT_TAGVAR(ld_shlibs, $1)=no
+       cat <<_LT_EOF 1>&2
+
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
+*** reliably create shared libraries on SCO systems.  Therefore, libtool
+*** is disabling shared libraries support.  We urge you to upgrade GNU
+*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+       ;;
+       *)
+         # For security reasons, it is highly recommended that you always
+         # use absolute paths for naming shared libraries, and exclude the
+         # DT_RUNPATH tag from executables and libraries.  But doing so
+         # requires that you compile everything twice, which is a pain.
+         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
+           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+         else
+           _LT_TAGVAR(ld_shlibs, $1)=no
+         fi
+       ;;
+      esac
+      ;;
+
+    sunos4*)
+      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+      wlarc=
+      _LT_TAGVAR(hardcode_direct, $1)=yes
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    *)
+      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+       _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+      else
+       _LT_TAGVAR(ld_shlibs, $1)=no
+      fi
+      ;;
+    esac
+
+    if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
+      runpath_var=
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
+      _LT_TAGVAR(whole_archive_flag_spec, $1)=
+    fi
+  else
+    # PORTME fill in a description of your system's linker (not GNU ld)
+    case $host_os in
+    aix3*)
+      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+      _LT_TAGVAR(always_export_symbols, $1)=yes
+      _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+      # Note: this linker hardcodes the directories in LIBPATH if there
+      # are no directories specified by -L.
+      _LT_TAGVAR(hardcode_minus_L, $1)=yes
+      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
+       # Neither direct hardcoding nor static linking is supported with a
+       # broken collect2.
+       _LT_TAGVAR(hardcode_direct, $1)=unsupported
+      fi
+      ;;
+
+    aix[[4-9]]*)
+      if test ia64 = "$host_cpu"; then
+       # On IA64, the linker does run time linking by default, so we don't
+       # have to do anything special.
+       aix_use_runtimelinking=no
+       exp_sym_flag='-Bexport'
+       no_entry_flag=
+      else
+       # If we're using GNU nm, then we don't want the "-C" option.
+       # -C means demangle to AIX nm, but means don't demangle with GNU nm
+       # Also, AIX nm treats weak defined symbols like other global
+       # defined symbols, whereas GNU nm marks them as "W".
+       if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
+         _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+       else
+         _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+       fi
+       aix_use_runtimelinking=no
+
+       # Test if we are trying to use run time linking or normal
+       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+       # need to do runtime linking.
+       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
+         for ld_flag in $LDFLAGS; do
+         if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
+           aix_use_runtimelinking=yes
+           break
+         fi
+         done
+         ;;
+       esac
+
+       exp_sym_flag='-bexport'
+       no_entry_flag='-bnoentry'
+      fi
+
+      # When large executables or shared objects are built, AIX ld can
+      # have problems creating the table of contents.  If linking a library
+      # or program results in "error TOC overflow" add -mminimal-toc to
+      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
+      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+      _LT_TAGVAR(archive_cmds, $1)=''
+      _LT_TAGVAR(hardcode_direct, $1)=yes
+      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+      _LT_TAGVAR(link_all_deplibs, $1)=yes
+      _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
+
+      if test yes = "$GCC"; then
+       case $host_os in aix4.[[012]]|aix4.[[012]].*)
+       # We only want to do this on AIX 4.2 and lower, the check
+       # below for broken collect2 doesn't work under 4.3+
+         collect2name=`$CC -print-prog-name=collect2`
+         if test -f "$collect2name" &&
+          strings "$collect2name" | $GREP resolve_lib_name >/dev/null
+         then
+         # We have reworked collect2
+         :
+         else
+         # We have old collect2
+         _LT_TAGVAR(hardcode_direct, $1)=unsupported
+         # It fails to find uninstalled libraries when the uninstalled
+         # path is not listed in the libpath.  Setting hardcode_minus_L
+         # to unsupported forces relinking
+         _LT_TAGVAR(hardcode_minus_L, $1)=yes
+         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+         _LT_TAGVAR(hardcode_libdir_separator, $1)=
+         fi
+         ;;
+       esac
+       shared_flag='-shared'
+       if test yes = "$aix_use_runtimelinking"; then
+         shared_flag="$shared_flag "'$wl-G'
+       fi
+      else
+       # not using gcc
+       if test ia64 = "$host_cpu"; then
+       # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+       # chokes on -Wl,-G. The following line is correct:
+         shared_flag='-G'
+       else
+         if test yes = "$aix_use_runtimelinking"; then
+           shared_flag='$wl-G'
+         else
+           shared_flag='$wl-bM:SRE'
+         fi
+       fi
+      fi
+
+      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
+      # It seems that -bexpall does not export symbols beginning with
+      # underscore (_), so it is better to generate a list of symbols to export.
+      _LT_TAGVAR(always_export_symbols, $1)=yes
+      if test yes = "$aix_use_runtimelinking"; then
+       # Warning - without using the other runtime loading flags (-brtl),
+       # -berok will link without error, but may produce a broken library.
+       _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
+        # Determine the default libpath from the value encoded in an
+        # empty executable.
+        _LT_SYS_MODULE_PATH_AIX([$1])
+        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
+        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
+      else
+       if test ia64 = "$host_cpu"; then
+         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
+         _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
+         _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
+       else
+        # Determine the default libpath from the value encoded in an
+        # empty executable.
+        _LT_SYS_MODULE_PATH_AIX([$1])
+        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
+         # Warning - without using the other run time loading flags,
+         # -berok will link without error, but may produce a broken library.
+         _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
+         _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
+         if test yes = "$with_gnu_ld"; then
+           # We only use this code for GNU lds that support --whole-archive.
+           _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
+         else
+           # Exported symbols can be pulled into shared objects from archives
+           _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
+         fi
+         _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+         # This is similar to how AIX traditionally builds its shared libraries.
+         _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+       fi
+      fi
+      ;;
+
+    amigaos*)
+      case $host_cpu in
+      powerpc)
+            # see comment about AmigaOS4 .so support
+            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+            _LT_TAGVAR(archive_expsym_cmds, $1)=''
+        ;;
+      m68k)
+            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+            _LT_TAGVAR(hardcode_minus_L, $1)=yes
+        ;;
+      esac
+      ;;
+
+    bsdi[[45]]*)
+      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
+      ;;
+
+    cygwin* | mingw* | pw32* | cegcc*)
+      # When not using gcc, we currently assume that we are using
+      # Microsoft Visual C++.
+      # hardcode_libdir_flag_spec is actually meaningless, as there is
+      # no search path for DLLs.
+      case $cc_basename in
+      cl*)
+       # Native MSVC
+       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
+       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+       _LT_TAGVAR(always_export_symbols, $1)=yes
+       _LT_TAGVAR(file_list_spec, $1)='@'
+       # Tell ltmain to make .lib files, not .a files.
+       libext=lib
+       # Tell ltmain to make .dll files, not .so files.
+       shrext_cmds=.dll
+       # FIXME: Setting linknames here is a bad hack.
+       _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
+       _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
+            cp "$export_symbols" "$output_objdir/$soname.def";
+            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
+          else
+            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
+          fi~
+          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
+          linknames='
+       # The linker will not automatically build a static lib if we build a DLL.
+       # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
+       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+       _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
+       _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
+       # Don't use ranlib
+       _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
+       _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
+          lt_tool_outputfile="@TOOL_OUTPUT@"~
+          case $lt_outputfile in
+            *.exe|*.EXE) ;;
+            *)
+              lt_outputfile=$lt_outputfile.exe
+              lt_tool_outputfile=$lt_tool_outputfile.exe
+              ;;
+          esac~
+          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
+            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
+            $RM "$lt_outputfile.manifest";
+          fi'
+       ;;
+      *)
+       # Assume MSVC wrapper
+       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
+       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+       # Tell ltmain to make .lib files, not .a files.
+       libext=lib
+       # Tell ltmain to make .dll files, not .so files.
+       shrext_cmds=.dll
+       # FIXME: Setting linknames here is a bad hack.
+       _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
+       # The linker will automatically build a .lib file if we build a DLL.
+       _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
+       # FIXME: Should let the user specify the lib program.
+       _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
+       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+       ;;
+      esac
+      ;;
+
+    darwin* | rhapsody*)
+      _LT_DARWIN_LINKER_FEATURES($1)
+      ;;
+
+    dgux*)
+      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+    # support.  Future versions do this automatically, but an explicit c++rt0.o
+    # does not break anything, and helps significantly (at the cost of a little
+    # extra space).
+    freebsd2.2*)
+      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+      _LT_TAGVAR(hardcode_direct, $1)=yes
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+    freebsd2.*)
+      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+      _LT_TAGVAR(hardcode_direct, $1)=yes
+      _LT_TAGVAR(hardcode_minus_L, $1)=yes
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+    freebsd* | dragonfly*)
+      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+      _LT_TAGVAR(hardcode_direct, $1)=yes
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    hpux9*)
+      if test yes = "$GCC"; then
+       _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
+      else
+       _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
+      fi
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
+      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+      _LT_TAGVAR(hardcode_direct, $1)=yes
+
+      # hardcode_minus_L: Not really in the search PATH,
+      # but as the default location of the library.
+      _LT_TAGVAR(hardcode_minus_L, $1)=yes
+      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
+      ;;
+
+    hpux10*)
+      if test yes,no = "$GCC,$with_gnu_ld"; then
+       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+      else
+       _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+      fi
+      if test no = "$with_gnu_ld"; then
+       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
+       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+       _LT_TAGVAR(hardcode_direct, $1)=yes
+       _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
+       # hardcode_minus_L: Not really in the search PATH,
+       # but as the default location of the library.
+       _LT_TAGVAR(hardcode_minus_L, $1)=yes
+      fi
+      ;;
+
+    hpux11*)
+      if test yes,no = "$GCC,$with_gnu_ld"; then
+       case $host_cpu in
+       hppa*64*)
+         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
+         ;;
+       ia64*)
+         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+         ;;
+       *)
+         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+         ;;
+       esac
+      else
+       case $host_cpu in
+       hppa*64*)
+         _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
+         ;;
+       ia64*)
+         _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+         ;;
+       *)
+       m4_if($1, [], [
+         # Older versions of the 11.00 compiler do not understand -b yet
+         # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
+         _LT_LINKER_OPTION([if $CC understands -b],
+           _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
+           [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
+           [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
+         [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
+         ;;
+       esac
+      fi
+      if test no = "$with_gnu_ld"; then
+       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
+       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+       case $host_cpu in
+       hppa*64*|ia64*)
+         _LT_TAGVAR(hardcode_direct, $1)=no
+         _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+         ;;
+       *)
+         _LT_TAGVAR(hardcode_direct, $1)=yes
+         _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
+
+         # hardcode_minus_L: Not really in the search PATH,
+         # but as the default location of the library.
+         _LT_TAGVAR(hardcode_minus_L, $1)=yes
+         ;;
+       esac
+      fi
+      ;;
+
+    irix5* | irix6* | nonstopux*)
+      if test yes = "$GCC"; then
+       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+       # Try to use the -exported_symbol ld option, if it does not
+       # work, assume that -exports_file does not work either and
+       # implicitly export all symbols.
+       # This should be the same for all languages, so no per-tag cache variable.
+       AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
+         [lt_cv_irix_exported_symbol],
+         [save_LDFLAGS=$LDFLAGS
+          LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
+          AC_LINK_IFELSE(
+            [AC_LANG_SOURCE(
+               [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
+                             [C++], [[int foo (void) { return 0; }]],
+                             [Fortran 77], [[
+      subroutine foo
+      end]],
+                             [Fortran], [[
+      subroutine foo
+      end]])])],
+             [lt_cv_irix_exported_symbol=yes],
+             [lt_cv_irix_exported_symbol=no])
+           LDFLAGS=$save_LDFLAGS])
+       if test yes = "$lt_cv_irix_exported_symbol"; then
+          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
+       fi
+      else
+       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
+       _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
+      fi
+      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
+      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+      _LT_TAGVAR(inherit_rpath, $1)=yes
+      _LT_TAGVAR(link_all_deplibs, $1)=yes
+      ;;
+
+    netbsd*)
+      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
+      else
+       _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
+      fi
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+      _LT_TAGVAR(hardcode_direct, $1)=yes
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    newsos6)
+      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      _LT_TAGVAR(hardcode_direct, $1)=yes
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
+      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    *nto* | *qnx*)
+      ;;
+
+    openbsd* | bitrig*)
+      if test -f /usr/libexec/ld.so; then
+       _LT_TAGVAR(hardcode_direct, $1)=yes
+       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+       _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+       if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
+         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
+         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
+         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
+       else
+         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
+       fi
+      else
+       _LT_TAGVAR(ld_shlibs, $1)=no
+      fi
+      ;;
+
+    os2*)
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+      _LT_TAGVAR(hardcode_minus_L, $1)=yes
+      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+      ;;
+
+    osf3*)
+      if test yes = "$GCC"; then
+       _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
+       _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+      else
+       _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+       _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
+      fi
+      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
+      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+      ;;
+
+    osf4* | osf5*)     # as osf3* with the addition of -msym flag
+      if test yes = "$GCC"; then
+       _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
+       _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
+      else
+       _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+       _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
+       _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
+          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
+
+       # Both c and cxx compiler support -rpath directly
+       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+      fi
+      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
+      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+      ;;
+
+    solaris*)
+      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
+      if test yes = "$GCC"; then
+       wlarc='$wl'
+       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
+       _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+      else
+       case `$CC -V 2>&1` in
+       *"Compilers 5.0"*)
+         wlarc=''
+         _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
+         _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
+         ;;
+       *)
+         wlarc='$wl'
+         _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
+         _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+         ;;
+       esac
+      fi
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      case $host_os in
+      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+      *)
+       # The compiler driver will combine and reorder linker options,
+       # but understands '-z linker_flag'.  GCC discards it without '$wl',
+       # but is careful enough not to reorder.
+       # Supported since Solaris 2.6 (maybe 2.5.1?)
+       if test yes = "$GCC"; then
+         _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
+       else
+         _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
+       fi
+       ;;
+      esac
+      _LT_TAGVAR(link_all_deplibs, $1)=yes
+      ;;
+
+    sunos4*)
+      if test sequent = "$host_vendor"; then
+       # Use $CC to link under sequent, because it throws in some extra .o
+       # files that make .init and .fini sections work.
+       _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+      else
+       _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+      fi
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+      _LT_TAGVAR(hardcode_direct, $1)=yes
+      _LT_TAGVAR(hardcode_minus_L, $1)=yes
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    sysv4)
+      case $host_vendor in
+       sni)
+         _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+         _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
+       ;;
+       siemens)
+         ## LD is ld it makes a PLAMLIB
+         ## CC just makes a GrossModule.
+         _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+         _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
+         _LT_TAGVAR(hardcode_direct, $1)=no
+        ;;
+       motorola)
+         _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+         _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
+       ;;
+      esac
+      runpath_var='LD_RUN_PATH'
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    sysv4.3*)
+      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
+      ;;
+
+    sysv4*MP*)
+      if test -d /usr/nec; then
+       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+       runpath_var=LD_RUN_PATH
+       hardcode_runpath_var=yes
+       _LT_TAGVAR(ld_shlibs, $1)=yes
+      fi
+      ;;
+
+    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
+      _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
+      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      runpath_var='LD_RUN_PATH'
+
+      if test yes = "$GCC"; then
+       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+       _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+      else
+       _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+       _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+      fi
+      ;;
+
+    sysv5* | sco3.2v5* | sco5v6*)
+      # Note: We CANNOT use -z defs as we might desire, because we do not
+      # link with -lc, and that would cause any symbols used from libc to
+      # always be unresolved, which means just about no library would
+      # ever link correctly.  If we're not using GNU ld we use -z text
+      # though, which does catch some bad symbols but isn't as heavy-handed
+      # as -z defs.
+      _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
+      _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
+      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
+      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+      _LT_TAGVAR(link_all_deplibs, $1)=yes
+      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
+      runpath_var='LD_RUN_PATH'
+
+      if test yes = "$GCC"; then
+       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+       _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+      else
+       _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+       _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+      fi
+      ;;
+
+    uts4*)
+      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      ;;
+
+    *)
+      _LT_TAGVAR(ld_shlibs, $1)=no
+      ;;
+    esac
+
+    if test sni = "$host_vendor"; then
+      case $host in
+      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
+       ;;
+      esac
+    fi
+  fi
+])
+AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
+test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
+
+_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
+
+_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
+_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
+_LT_DECL([], [extract_expsyms_cmds], [2],
+    [The commands to extract the exported symbol list from a shared archive])
+
+#
+# Do we need to explicitly link libc?
+#
+case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
+x|xyes)
+  # Assume -lc should be added
+  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+
+  if test yes,yes = "$GCC,$enable_shared"; then
+    case $_LT_TAGVAR(archive_cmds, $1) in
+    *'~'*)
+      # FIXME: we may have to deal with multi-command sequences.
+      ;;
+    '$CC '*)
+      # Test whether the compiler implicitly links with -lc since on some
+      # systems, -lgcc has to come before -lc. If gcc already passes -lc
+      # to ld, don't add -lc before -lgcc.
+      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
+       [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
+       [$RM conftest*
+       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+       if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
+         soname=conftest
+         lib=conftest
+         libobjs=conftest.$ac_objext
+         deplibs=
+         wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
+         pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
+         compiler_flags=-v
+         linker_flags=-v
+         verstring=
+         output_objdir=.
+         libname=conftest
+         lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
+         _LT_TAGVAR(allow_undefined_flag, $1)=
+         if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
+         then
+           lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+         else
+           lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+         fi
+         _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
+       else
+         cat conftest.err 1>&5
+       fi
+       $RM conftest*
+       ])
+      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
+      ;;
+    esac
+  fi
+  ;;
+esac
+
+_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
+    [Whether or not to add -lc for building shared libraries])
+_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
+    [enable_shared_with_static_runtimes], [0],
+    [Whether or not to disallow shared libs when runtime libs are static])
+_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
+    [Compiler flag to allow reflexive dlopens])
+_LT_TAGDECL([], [whole_archive_flag_spec], [1],
+    [Compiler flag to generate shared objects directly from archives])
+_LT_TAGDECL([], [compiler_needs_object], [1],
+    [Whether the compiler copes with passing no objects directly])
+_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
+    [Create an old-style archive from a shared archive])
+_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
+    [Create a temporary old-style archive to link instead of a shared archive])
+_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
+_LT_TAGDECL([], [archive_expsym_cmds], [2])
+_LT_TAGDECL([], [module_cmds], [2],
+    [Commands used to build a loadable module if different from building
+    a shared archive.])
+_LT_TAGDECL([], [module_expsym_cmds], [2])
+_LT_TAGDECL([], [with_gnu_ld], [1],
+    [Whether we are building with GNU ld or not])
+_LT_TAGDECL([], [allow_undefined_flag], [1],
+    [Flag that allows shared libraries with undefined symbols to be built])
+_LT_TAGDECL([], [no_undefined_flag], [1],
+    [Flag that enforces no undefined symbols])
+_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
+    [Flag to hardcode $libdir into a binary during linking.
+    This must work even if $libdir does not exist])
+_LT_TAGDECL([], [hardcode_libdir_separator], [1],
+    [Whether we need a single "-rpath" flag with a separated argument])
+_LT_TAGDECL([], [hardcode_direct], [0],
+    [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
+    DIR into the resulting binary])
+_LT_TAGDECL([], [hardcode_direct_absolute], [0],
+    [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
+    DIR into the resulting binary and the resulting library dependency is
+    "absolute", i.e impossible to change by setting $shlibpath_var if the
+    library is relocated])
+_LT_TAGDECL([], [hardcode_minus_L], [0],
+    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
+    into the resulting binary])
+_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
+    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
+    into the resulting binary])
+_LT_TAGDECL([], [hardcode_automatic], [0],
+    [Set to "yes" if building a shared library automatically hardcodes DIR
+    into the library and all subsequent libraries and executables linked
+    against it])
+_LT_TAGDECL([], [inherit_rpath], [0],
+    [Set to yes if linker adds runtime paths of dependent libraries
+    to runtime path list])
+_LT_TAGDECL([], [link_all_deplibs], [0],
+    [Whether libtool must link a program against all its dependency libraries])
+_LT_TAGDECL([], [always_export_symbols], [0],
+    [Set to "yes" if exported symbols are required])
+_LT_TAGDECL([], [export_symbols_cmds], [2],
+    [The commands to list exported symbols])
+_LT_TAGDECL([], [exclude_expsyms], [1],
+    [Symbols that should not be listed in the preloaded symbols])
+_LT_TAGDECL([], [include_expsyms], [1],
+    [Symbols that must always be exported])
+_LT_TAGDECL([], [prelink_cmds], [2],
+    [Commands necessary for linking programs (against libraries) with templates])
+_LT_TAGDECL([], [postlink_cmds], [2],
+    [Commands necessary for finishing linking programs])
+_LT_TAGDECL([], [file_list_spec], [1],
+    [Specify filename containing input files])
+dnl FIXME: Not yet implemented
+dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
+dnl    [Compiler flag to generate thread safe objects])
+])# _LT_LINKER_SHLIBS
+
+
+# _LT_LANG_C_CONFIG([TAG])
+# ------------------------
+# Ensure that the configuration variables for a C compiler are suitably
+# defined.  These variables are subsequently used by _LT_CONFIG to write
+# the compiler configuration to 'libtool'.
+m4_defun([_LT_LANG_C_CONFIG],
+[m4_require([_LT_DECL_EGREP])dnl
+lt_save_CC=$CC
+AC_LANG_PUSH(C)
+
+# Source file extension for C test sources.
+ac_ext=c
+
+# Object file extension for compiled C test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}'
+
+_LT_TAG_COMPILER
+# Save the default compiler, since it gets overwritten when the other
+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
+compiler_DEFAULT=$CC
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+  _LT_COMPILER_NO_RTTI($1)
+  _LT_COMPILER_PIC($1)
+  _LT_COMPILER_C_O($1)
+  _LT_COMPILER_FILE_LOCKS($1)
+  _LT_LINKER_SHLIBS($1)
+  _LT_SYS_DYNAMIC_LINKER($1)
+  _LT_LINKER_HARDCODE_LIBPATH($1)
+  LT_SYS_DLOPEN_SELF
+  _LT_CMD_STRIPLIB
+
+  # Report what library types will actually be built
+  AC_MSG_CHECKING([if libtool supports shared libraries])
+  AC_MSG_RESULT([$can_build_shared])
+
+  AC_MSG_CHECKING([whether to build shared libraries])
+  test no = "$can_build_shared" && enable_shared=no
+
+  # On AIX, shared libraries and static libraries use the same namespace, and
+  # are all built from PIC.
+  case $host_os in
+  aix3*)
+    test yes = "$enable_shared" && enable_static=no
+    if test -n "$RANLIB"; then
+      archive_cmds="$archive_cmds~\$RANLIB \$lib"
+      postinstall_cmds='$RANLIB $lib'
+    fi
+    ;;
+
+  aix[[4-9]]*)
+    if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
+      test yes = "$enable_shared" && enable_static=no
+    fi
+    ;;
+  esac
+  AC_MSG_RESULT([$enable_shared])
+
+  AC_MSG_CHECKING([whether to build static libraries])
+  # Make sure either enable_shared or enable_static is yes.
+  test yes = "$enable_shared" || enable_static=yes
+  AC_MSG_RESULT([$enable_static])
+
+  _LT_CONFIG($1)
+fi
+AC_LANG_POP
+CC=$lt_save_CC
+])# _LT_LANG_C_CONFIG
+
+
+# _LT_LANG_CXX_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for a C++ compiler are suitably
+# defined.  These variables are subsequently used by _LT_CONFIG to write
+# the compiler configuration to 'libtool'.
+m4_defun([_LT_LANG_CXX_CONFIG],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_PATH_MANIFEST_TOOL])dnl
+if test -n "$CXX" && ( test no != "$CXX" &&
+    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
+    (test g++ != "$CXX"))); then
+  AC_PROG_CXXCPP
+else
+  _lt_caught_CXX_error=yes
+fi
+
+AC_LANG_PUSH(C++)
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(allow_undefined_flag, $1)=
+_LT_TAGVAR(always_export_symbols, $1)=no
+_LT_TAGVAR(archive_expsym_cmds, $1)=
+_LT_TAGVAR(compiler_needs_object, $1)=no
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_TAGVAR(hardcode_direct, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_TAGVAR(hardcode_minus_L, $1)=no
+_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+_LT_TAGVAR(hardcode_automatic, $1)=no
+_LT_TAGVAR(inherit_rpath, $1)=no
+_LT_TAGVAR(module_cmds, $1)=
+_LT_TAGVAR(module_expsym_cmds, $1)=
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(reload_flag, $1)=$reload_flag
+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
+_LT_TAGVAR(no_undefined_flag, $1)=
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for C++ test sources.
+ac_ext=cpp
+
+# Object file extension for compiled C++ test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# No sense in running all these tests if we already determined that
+# the CXX compiler isn't working.  Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test yes != "$_lt_caught_CXX_error"; then
+  # Code to be used in simple compile tests
+  lt_simple_compile_test_code="int some_variable = 0;"
+
+  # Code to be used in simple link tests
+  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
+
+  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+  _LT_TAG_COMPILER
+
+  # save warnings/boilerplate of simple test code
+  _LT_COMPILER_BOILERPLATE
+  _LT_LINKER_BOILERPLATE
+
+  # Allow CC to be a program name with arguments.
+  lt_save_CC=$CC
+  lt_save_CFLAGS=$CFLAGS
+  lt_save_LD=$LD
+  lt_save_GCC=$GCC
+  GCC=$GXX
+  lt_save_with_gnu_ld=$with_gnu_ld
+  lt_save_path_LD=$lt_cv_path_LD
+  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
+    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
+  else
+    $as_unset lt_cv_prog_gnu_ld
+  fi
+  if test -n "${lt_cv_path_LDCXX+set}"; then
+    lt_cv_path_LD=$lt_cv_path_LDCXX
+  else
+    $as_unset lt_cv_path_LD
+  fi
+  test -z "${LDCXX+set}" || LD=$LDCXX
+  CC=${CXX-"c++"}
+  CFLAGS=$CXXFLAGS
+  compiler=$CC
+  _LT_TAGVAR(compiler, $1)=$CC
+  _LT_CC_BASENAME([$compiler])
+
+  if test -n "$compiler"; then
+    # We don't want -fno-exception when compiling C++ code, so set the
+    # no_builtin_flag separately
+    if test yes = "$GXX"; then
+      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
+    else
+      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
+    fi
+
+    if test yes = "$GXX"; then
+      # Set up default GNU C++ configuration
+
+      LT_PATH_LD
+
+      # Check if GNU C++ uses GNU ld as the underlying linker, since the
+      # archiving commands below assume that GNU ld is being used.
+      if test yes = "$with_gnu_ld"; then
+        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
+        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+
+        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
+        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
+
+        # If archive_cmds runs LD, not CC, wlarc should be empty
+        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
+        #     investigate it a little bit more. (MM)
+        wlarc='$wl'
+
+        # ancient GNU ld didn't support --whole-archive et. al.
+        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
+         $GREP 'no-whole-archive' > /dev/null; then
+          _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
+        else
+          _LT_TAGVAR(whole_archive_flag_spec, $1)=
+        fi
+      else
+        with_gnu_ld=no
+        wlarc=
+
+        # A generic and very simple default shared library creation
+        # command for GNU C++ for the case where it uses the native
+        # linker, instead of GNU ld.  If possible, this setting should
+        # overridden to take advantage of the native linker features on
+        # the platform it is being used on.
+        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+      fi
+
+      # Commands to make compiler produce verbose output that lists
+      # what "hidden" libraries, object files and flags are used when
+      # linking a shared library.
+      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
+
+    else
+      GXX=no
+      with_gnu_ld=no
+      wlarc=
+    fi
+
+    # PORTME: fill in a description of your system's C++ link characteristics
+    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
+    _LT_TAGVAR(ld_shlibs, $1)=yes
+    case $host_os in
+      aix3*)
+        # FIXME: insert proper C++ library support
+        _LT_TAGVAR(ld_shlibs, $1)=no
+        ;;
+      aix[[4-9]]*)
+        if test ia64 = "$host_cpu"; then
+          # On IA64, the linker does run time linking by default, so we don't
+          # have to do anything special.
+          aix_use_runtimelinking=no
+          exp_sym_flag='-Bexport'
+          no_entry_flag=
+        else
+          aix_use_runtimelinking=no
+
+          # Test if we are trying to use run time linking or normal
+          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+          # need to do runtime linking.
+          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
+           for ld_flag in $LDFLAGS; do
+             case $ld_flag in
+             *-brtl*)
+               aix_use_runtimelinking=yes
+               break
+               ;;
+             esac
+           done
+           ;;
+          esac
+
+          exp_sym_flag='-bexport'
+          no_entry_flag='-bnoentry'
+        fi
+
+        # When large executables or shared objects are built, AIX ld can
+        # have problems creating the table of contents.  If linking a library
+        # or program results in "error TOC overflow" add -mminimal-toc to
+        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
+        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+        _LT_TAGVAR(archive_cmds, $1)=''
+        _LT_TAGVAR(hardcode_direct, $1)=yes
+        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+        _LT_TAGVAR(link_all_deplibs, $1)=yes
+        _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
+
+        if test yes = "$GXX"; then
+          case $host_os in aix4.[[012]]|aix4.[[012]].*)
+          # We only want to do this on AIX 4.2 and lower, the check
+          # below for broken collect2 doesn't work under 4.3+
+         collect2name=`$CC -print-prog-name=collect2`
+         if test -f "$collect2name" &&
+            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
+         then
+           # We have reworked collect2
+           :
+         else
+           # We have old collect2
+           _LT_TAGVAR(hardcode_direct, $1)=unsupported
+           # It fails to find uninstalled libraries when the uninstalled
+           # path is not listed in the libpath.  Setting hardcode_minus_L
+           # to unsupported forces relinking
+           _LT_TAGVAR(hardcode_minus_L, $1)=yes
+           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+           _LT_TAGVAR(hardcode_libdir_separator, $1)=
+         fi
+          esac
+          shared_flag='-shared'
+         if test yes = "$aix_use_runtimelinking"; then
+           shared_flag=$shared_flag' $wl-G'
+         fi
+        else
+          # not using gcc
+          if test ia64 = "$host_cpu"; then
+         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+         # chokes on -Wl,-G. The following line is correct:
+         shared_flag='-G'
+          else
+           if test yes = "$aix_use_runtimelinking"; then
+             shared_flag='$wl-G'
+           else
+             shared_flag='$wl-bM:SRE'
+           fi
+          fi
+        fi
+
+        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
+        # It seems that -bexpall does not export symbols beginning with
+        # underscore (_), so it is better to generate a list of symbols to
+       # export.
+        _LT_TAGVAR(always_export_symbols, $1)=yes
+        if test yes = "$aix_use_runtimelinking"; then
+          # Warning - without using the other runtime loading flags (-brtl),
+          # -berok will link without error, but may produce a broken library.
+          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
+          # Determine the default libpath from the value encoded in an empty
+          # executable.
+          _LT_SYS_MODULE_PATH_AIX([$1])
+          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
+
+          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
+        else
+          if test ia64 = "$host_cpu"; then
+           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
+           _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
+           _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
+          else
+           # Determine the default libpath from the value encoded in an
+           # empty executable.
+           _LT_SYS_MODULE_PATH_AIX([$1])
+           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
+           # Warning - without using the other run time loading flags,
+           # -berok will link without error, but may produce a broken library.
+           _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
+           _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
+           if test yes = "$with_gnu_ld"; then
+             # We only use this code for GNU lds that support --whole-archive.
+             _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
+           else
+             # Exported symbols can be pulled into shared objects from archives
+             _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
+           fi
+           _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+           # This is similar to how AIX traditionally builds its shared
+           # libraries.
+           _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+          fi
+        fi
+        ;;
+
+      beos*)
+       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+         _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+         # support --undefined.  This deserves some investigation.  FIXME
+         _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+       else
+         _LT_TAGVAR(ld_shlibs, $1)=no
+       fi
+       ;;
+
+      chorus*)
+        case $cc_basename in
+          *)
+         # FIXME: insert proper C++ library support
+         _LT_TAGVAR(ld_shlibs, $1)=no
+         ;;
+        esac
+        ;;
+
+      cygwin* | mingw* | pw32* | cegcc*)
+       case $GXX,$cc_basename in
+       ,cl* | no,cl*)
+         # Native MSVC
+         # hardcode_libdir_flag_spec is actually meaningless, as there is
+         # no search path for DLLs.
+         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
+         _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+         _LT_TAGVAR(always_export_symbols, $1)=yes
+         _LT_TAGVAR(file_list_spec, $1)='@'
+         # Tell ltmain to make .lib files, not .a files.
+         libext=lib
+         # Tell ltmain to make .dll files, not .so files.
+         shrext_cmds=.dll
+         # FIXME: Setting linknames here is a bad hack.
+         _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
+         _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
+              cp "$export_symbols" "$output_objdir/$soname.def";
+              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
+            else
+              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
+            fi~
+            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
+            linknames='
+         # The linker will not automatically build a static lib if we build a DLL.
+         # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
+         _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+         # Don't use ranlib
+         _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
+         _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
+            lt_tool_outputfile="@TOOL_OUTPUT@"~
+            case $lt_outputfile in
+              *.exe|*.EXE) ;;
+              *)
+                lt_outputfile=$lt_outputfile.exe
+                lt_tool_outputfile=$lt_tool_outputfile.exe
+                ;;
+            esac~
+            func_to_tool_file "$lt_outputfile"~
+            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
+              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
+              $RM "$lt_outputfile.manifest";
+            fi'
+         ;;
+       *)
+         # g++
+         # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
+         # as there is no search path for DLLs.
+         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
+         _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+         _LT_TAGVAR(always_export_symbols, $1)=no
+         _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+
+         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+           _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+           # If the export-symbols file already is a .def file, use it as
+           # is; otherwise, prepend EXPORTS...
+           _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
+              cp $export_symbols $output_objdir/$soname.def;
+            else
+              echo EXPORTS > $output_objdir/$soname.def;
+              cat $export_symbols >> $output_objdir/$soname.def;
+            fi~
+            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+         else
+           _LT_TAGVAR(ld_shlibs, $1)=no
+         fi
+         ;;
+       esac
+       ;;
+      darwin* | rhapsody*)
+        _LT_DARWIN_LINKER_FEATURES($1)
+       ;;
+
+      dgux*)
+        case $cc_basename in
+          ec++*)
+           # FIXME: insert proper C++ library support
+           _LT_TAGVAR(ld_shlibs, $1)=no
+           ;;
+          ghcx*)
+           # Green Hills C++ Compiler
+           # FIXME: insert proper C++ library support
+           _LT_TAGVAR(ld_shlibs, $1)=no
+           ;;
+          *)
+           # FIXME: insert proper C++ library support
+           _LT_TAGVAR(ld_shlibs, $1)=no
+           ;;
+        esac
+        ;;
+
+      freebsd2.*)
+        # C++ shared libraries reported to be fairly broken before
+       # switch to ELF
+        _LT_TAGVAR(ld_shlibs, $1)=no
+        ;;
+
+      freebsd-elf*)
+        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+        ;;
+
+      freebsd* | dragonfly*)
+        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+        # conventions
+        _LT_TAGVAR(ld_shlibs, $1)=yes
+        ;;
+
+      haiku*)
+        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+        _LT_TAGVAR(link_all_deplibs, $1)=yes
+        ;;
+
+      hpux9*)
+        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
+        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+        _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
+        _LT_TAGVAR(hardcode_direct, $1)=yes
+        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+                                            # but as the default
+                                            # location of the library.
+
+        case $cc_basename in
+          CC*)
+            # FIXME: insert proper C++ library support
+            _LT_TAGVAR(ld_shlibs, $1)=no
+            ;;
+          aCC*)
+            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
+            # Commands to make compiler produce verbose output that lists
+            # what "hidden" libraries, object files and flags are used when
+            # linking a shared library.
+            #
+            # There doesn't appear to be a way to prevent this compiler from
+            # explicitly linking system object files so we need to strip them
+            # from the output so that they don't get included in the library
+            # dependencies.
+            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
+            ;;
+          *)
+            if test yes = "$GXX"; then
+              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
+            else
+              # FIXME: insert proper C++ library support
+              _LT_TAGVAR(ld_shlibs, $1)=no
+            fi
+            ;;
+        esac
+        ;;
+
+      hpux10*|hpux11*)
+        if test no = "$with_gnu_ld"; then
+         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
+         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+          case $host_cpu in
+            hppa*64*|ia64*)
+              ;;
+            *)
+             _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
+              ;;
+          esac
+        fi
+        case $host_cpu in
+          hppa*64*|ia64*)
+            _LT_TAGVAR(hardcode_direct, $1)=no
+            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+            ;;
+          *)
+            _LT_TAGVAR(hardcode_direct, $1)=yes
+            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+                                                # but as the default
+                                                # location of the library.
+            ;;
+        esac
+
+        case $cc_basename in
+          CC*)
+           # FIXME: insert proper C++ library support
+           _LT_TAGVAR(ld_shlibs, $1)=no
+           ;;
+          aCC*)
+           case $host_cpu in
+             hppa*64*)
+               _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+               ;;
+             ia64*)
+               _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+               ;;
+             *)
+               _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+               ;;
+           esac
+           # Commands to make compiler produce verbose output that lists
+           # what "hidden" libraries, object files and flags are used when
+           # linking a shared library.
+           #
+           # There doesn't appear to be a way to prevent this compiler from
+           # explicitly linking system object files so we need to strip them
+           # from the output so that they don't get included in the library
+           # dependencies.
+           output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
+           ;;
+          *)
+           if test yes = "$GXX"; then
+             if test no = "$with_gnu_ld"; then
+               case $host_cpu in
+                 hppa*64*)
+                   _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+                   ;;
+                 ia64*)
+                   _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+                   ;;
+                 *)
+                   _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+                   ;;
+               esac
+             fi
+           else
+             # FIXME: insert proper C++ library support
+             _LT_TAGVAR(ld_shlibs, $1)=no
+           fi
+           ;;
+        esac
+        ;;
+
+      interix[[3-9]]*)
+       _LT_TAGVAR(hardcode_direct, $1)=no
+       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
+       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
+       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+       # Instead, shared libraries are loaded at an image base (0x10000000 by
+       # default) and relocated if they conflict, which is a slow very memory
+       # consuming and fragmenting process.  To avoid this, we pick a random,
+       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
+       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+       _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+       ;;
+      irix5* | irix6*)
+        case $cc_basename in
+          CC*)
+           # SGI C++
+           _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
+
+           # Archives containing C++ object files must be created using
+           # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
+           # necessary to make sure instantiated templates are included
+           # in the archive.
+           _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
+           ;;
+          *)
+           if test yes = "$GXX"; then
+             if test no = "$with_gnu_ld"; then
+               _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+             else
+               _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
+             fi
+           fi
+           _LT_TAGVAR(link_all_deplibs, $1)=yes
+           ;;
+        esac
+        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
+        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+        _LT_TAGVAR(inherit_rpath, $1)=yes
+        ;;
+
+      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
+        case $cc_basename in
+          KCC*)
+           # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+           # KCC will only create a shared library if the output file
+           # ends with ".so" (or ".sl" for HP-UX), so rename the library
+           # to its proper name (with version) after linking.
+           _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+           _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
+           # Commands to make compiler produce verbose output that lists
+           # what "hidden" libraries, object files and flags are used when
+           # linking a shared library.
+           #
+           # There doesn't appear to be a way to prevent this compiler from
+           # explicitly linking system object files so we need to strip them
+           # from the output so that they don't get included in the library
+           # dependencies.
+           output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
+
+           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
+           _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
+
+           # Archives containing C++ object files must be created using
+           # "CC -Bstatic", where "CC" is the KAI C++ compiler.
+           _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
+           ;;
+         icpc* | ecpc* )
+           # Intel C++
+           with_gnu_ld=yes
+           # version 8.0 and above of icpc choke on multiply defined symbols
+           # if we add $predep_objects and $postdep_objects, however 7.1 and
+           # earlier do not add the objects themselves.
+           case `$CC -V 2>&1` in
+             *"Version 7."*)
+               _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
+               _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+               ;;
+             *)  # Version 8.0 or newer
+               tmp_idyn=
+               case $host_cpu in
+                 ia64*) tmp_idyn=' -i_dynamic';;
+               esac
+               _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+               _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+               ;;
+           esac
+           _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
+           _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
+           _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
+           ;;
+          pgCC* | pgcpp*)
+            # Portland Group C++ compiler
+           case `$CC -V` in
+           *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
+             _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
+               rm -rf $tpldir~
+               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
+               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
+             _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
+                rm -rf $tpldir~
+                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
+                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
+                $RANLIB $oldlib'
+             _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
+                rm -rf $tpldir~
+                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
+                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
+             _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
+                rm -rf $tpldir~
+                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
+                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+             ;;
+           *) # Version 6 and above use weak symbols
+             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
+             _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
+             ;;
+           esac
+
+           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
+           _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
+           _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+            ;;
+         cxx*)
+           # Compaq C++
+           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
+           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
+
+           runpath_var=LD_RUN_PATH
+           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+           _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+           # Commands to make compiler produce verbose output that lists
+           # what "hidden" libraries, object files and flags are used when
+           # linking a shared library.
+           #
+           # There doesn't appear to be a way to prevent this compiler from
+           # explicitly linking system object files so we need to strip them
+           # from the output so that they don't get included in the library
+           # dependencies.
+           output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
+           ;;
+         xl* | mpixl* | bgxl*)
+           # IBM XL 8.0 on PPC, with GNU ld
+           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
+           _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
+           _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
+           if test yes = "$supports_anon_versioning"; then
+             _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
+                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+                echo "local: *; };" >> $output_objdir/$libname.ver~
+                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
+           fi
+           ;;
+         *)
+           case `$CC -V 2>&1 | sed 5q` in
+           *Sun\ C*)
+             # Sun C++ 5.9
+             _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
+             _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+             _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
+             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+             _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
+             _LT_TAGVAR(compiler_needs_object, $1)=yes
+
+             # Not sure whether something based on
+             # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
+             # would be better.
+             output_verbose_link_cmd='func_echo_all'
+
+             # Archives containing C++ object files must be created using
+             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
+             # necessary to make sure instantiated templates are included
+             # in the archive.
+             _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
+             ;;
+           esac
+           ;;
+       esac
+       ;;
+
+      lynxos*)
+        # FIXME: insert proper C++ library support
+       _LT_TAGVAR(ld_shlibs, $1)=no
+       ;;
+
+      m88k*)
+        # FIXME: insert proper C++ library support
+        _LT_TAGVAR(ld_shlibs, $1)=no
+       ;;
+
+      mvs*)
+        case $cc_basename in
+          cxx*)
+           # FIXME: insert proper C++ library support
+           _LT_TAGVAR(ld_shlibs, $1)=no
+           ;;
+         *)
+           # FIXME: insert proper C++ library support
+           _LT_TAGVAR(ld_shlibs, $1)=no
+           ;;
+       esac
+       ;;
+
+      netbsd*)
+        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+         _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
+         wlarc=
+         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+         _LT_TAGVAR(hardcode_direct, $1)=yes
+         _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+       fi
+       # Workaround some broken pre-1.5 toolchains
+       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
+       ;;
+
+      *nto* | *qnx*)
+        _LT_TAGVAR(ld_shlibs, $1)=yes
+       ;;
+
+      openbsd* | bitrig*)
+       if test -f /usr/libexec/ld.so; then
+         _LT_TAGVAR(hardcode_direct, $1)=yes
+         _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+         _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
+         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
+           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
+           _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
+           _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
+         fi
+         output_verbose_link_cmd=func_echo_all
+       else
+         _LT_TAGVAR(ld_shlibs, $1)=no
+       fi
+       ;;
+
+      osf3* | osf4* | osf5*)
+        case $cc_basename in
+          KCC*)
+           # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+           # KCC will only create a shared library if the output file
+           # ends with ".so" (or ".sl" for HP-UX), so rename the library
+           # to its proper name (with version) after linking.
+           _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+
+           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
+           _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+           # Archives containing C++ object files must be created using
+           # the KAI C++ compiler.
+           case $host in
+             osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
+             *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
+           esac
+           ;;
+          RCC*)
+           # Rational C++ 2.4.1
+           # FIXME: insert proper C++ library support
+           _LT_TAGVAR(ld_shlibs, $1)=no
+           ;;
+          cxx*)
+           case $host in
+             osf3*)
+               _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
+               _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
+               _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
+               ;;
+             *)
+               _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+               _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
+               _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
+                  echo "-hidden">> $lib.exp~
+                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
+                  $RM $lib.exp'
+               _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+               ;;
+           esac
+
+           _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+           # Commands to make compiler produce verbose output that lists
+           # what "hidden" libraries, object files and flags are used when
+           # linking a shared library.
+           #
+           # There doesn't appear to be a way to prevent this compiler from
+           # explicitly linking system object files so we need to strip them
+           # from the output so that they don't get included in the library
+           # dependencies.
+           output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
+           ;;
+         *)
+           if test yes,no = "$GXX,$with_gnu_ld"; then
+             _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
+             case $host in
+               osf3*)
+                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+                 ;;
+               *)
+                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
+                 ;;
+             esac
+
+             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
+             _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+             # Commands to make compiler produce verbose output that lists
+             # what "hidden" libraries, object files and flags are used when
+             # linking a shared library.
+             output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
+
+           else
+             # FIXME: insert proper C++ library support
+             _LT_TAGVAR(ld_shlibs, $1)=no
+           fi
+           ;;
+        esac
+        ;;
+
+      psos*)
+        # FIXME: insert proper C++ library support
+        _LT_TAGVAR(ld_shlibs, $1)=no
+        ;;
+
+      sunos4*)
+        case $cc_basename in
+          CC*)
+           # Sun C++ 4.x
+           # FIXME: insert proper C++ library support
+           _LT_TAGVAR(ld_shlibs, $1)=no
+           ;;
+          lcc*)
+           # Lucid
+           # FIXME: insert proper C++ library support
+           _LT_TAGVAR(ld_shlibs, $1)=no
+           ;;
+          *)
+           # FIXME: insert proper C++ library support
+           _LT_TAGVAR(ld_shlibs, $1)=no
+           ;;
+        esac
+        ;;
+
+      solaris*)
+        case $cc_basename in
+          CC* | sunCC*)
+           # Sun C++ 4.2, 5.x and Centerline C++
+            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
+           _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
+           _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+           _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+              $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+           _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+           case $host_os in
+             solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+             *)
+               # The compiler driver will combine and reorder linker options,
+               # but understands '-z linker_flag'.
+               # Supported since Solaris 2.6 (maybe 2.5.1?)
+               _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
+               ;;
+           esac
+           _LT_TAGVAR(link_all_deplibs, $1)=yes
+
+           output_verbose_link_cmd='func_echo_all'
+
+           # Archives containing C++ object files must be created using
+           # "CC -xar", where "CC" is the Sun C++ compiler.  This is
+           # necessary to make sure instantiated templates are included
+           # in the archive.
+           _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
+           ;;
+          gcx*)
+           # Green Hills C++ Compiler
+           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
+
+           # The C++ compiler must be used to create the archive.
+           _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
+           ;;
+          *)
+           # GNU C++ compiler with Solaris linker
+           if test yes,no = "$GXX,$with_gnu_ld"; then
+             _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
+             if $CC --version | $GREP -v '^2\.7' > /dev/null; then
+               _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
+               _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+               # Commands to make compiler produce verbose output that lists
+               # what "hidden" libraries, object files and flags are used when
+               # linking a shared library.
+               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
+             else
+               # g++ 2.7 appears to require '-G' NOT '-shared' on this
+               # platform.
+               _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
+               _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+               # Commands to make compiler produce verbose output that lists
+               # what "hidden" libraries, object files and flags are used when
+               # linking a shared library.
+               output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
+             fi
+
+             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
+             case $host_os in
+               solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+               *)
+                 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
+                 ;;
+             esac
+           fi
+           ;;
+        esac
+        ;;
+
+    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
+      _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
+      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+      runpath_var='LD_RUN_PATH'
+
+      case $cc_basename in
+        CC*)
+         _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+         ;;
+       *)
+         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+         ;;
+      esac
+      ;;
+
+      sysv5* | sco3.2v5* | sco5v6*)
+       # Note: We CANNOT use -z defs as we might desire, because we do not
+       # link with -lc, and that would cause any symbols used from libc to
+       # always be unresolved, which means just about no library would
+       # ever link correctly.  If we're not using GNU ld we use -z text
+       # though, which does catch some bad symbols but isn't as heavy-handed
+       # as -z defs.
+       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
+       _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
+       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
+       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+       _LT_TAGVAR(link_all_deplibs, $1)=yes
+       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
+       runpath_var='LD_RUN_PATH'
+
+       case $cc_basename in
+          CC*)
+           _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+           _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
+              '"$_LT_TAGVAR(old_archive_cmds, $1)"
+           _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
+              '"$_LT_TAGVAR(reload_cmds, $1)"
+           ;;
+         *)
+           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+           ;;
+       esac
+      ;;
+
+      tandem*)
+        case $cc_basename in
+          NCC*)
+           # NonStop-UX NCC 3.20
+           # FIXME: insert proper C++ library support
+           _LT_TAGVAR(ld_shlibs, $1)=no
+           ;;
+          *)
+           # FIXME: insert proper C++ library support
+           _LT_TAGVAR(ld_shlibs, $1)=no
+           ;;
+        esac
+        ;;
+
+      vxworks*)
+        # FIXME: insert proper C++ library support
+        _LT_TAGVAR(ld_shlibs, $1)=no
+        ;;
+
+      *)
+        # FIXME: insert proper C++ library support
+        _LT_TAGVAR(ld_shlibs, $1)=no
+        ;;
+    esac
+
+    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
+    test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
+
+    _LT_TAGVAR(GCC, $1)=$GXX
+    _LT_TAGVAR(LD, $1)=$LD
+
+    ## CAVEAT EMPTOR:
+    ## There is no encapsulation within the following macros, do not change
+    ## the running order or otherwise move them around unless you know exactly
+    ## what you are doing...
+    _LT_SYS_HIDDEN_LIBDEPS($1)
+    _LT_COMPILER_PIC($1)
+    _LT_COMPILER_C_O($1)
+    _LT_COMPILER_FILE_LOCKS($1)
+    _LT_LINKER_SHLIBS($1)
+    _LT_SYS_DYNAMIC_LINKER($1)
+    _LT_LINKER_HARDCODE_LIBPATH($1)
+
+    _LT_CONFIG($1)
+  fi # test -n "$compiler"
+
+  CC=$lt_save_CC
+  CFLAGS=$lt_save_CFLAGS
+  LDCXX=$LD
+  LD=$lt_save_LD
+  GCC=$lt_save_GCC
+  with_gnu_ld=$lt_save_with_gnu_ld
+  lt_cv_path_LDCXX=$lt_cv_path_LD
+  lt_cv_path_LD=$lt_save_path_LD
+  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
+  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
+fi # test yes != "$_lt_caught_CXX_error"
+
+AC_LANG_POP
+])# _LT_LANG_CXX_CONFIG
+
+
+# _LT_FUNC_STRIPNAME_CNF
+# ----------------------
+# func_stripname_cnf prefix suffix name
+# strip PREFIX and SUFFIX off of NAME.
+# PREFIX and SUFFIX must not contain globbing or regex special
+# characters, hashes, percent signs, but SUFFIX may contain a leading
+# dot (in which case that matches only a dot).
+#
+# This function is identical to the (non-XSI) version of func_stripname,
+# except this one can be used by m4 code that may be executed by configure,
+# rather than the libtool script.
+m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
+AC_REQUIRE([_LT_DECL_SED])
+AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
+func_stripname_cnf ()
+{
+  case @S|@2 in
+  .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
+  *)  func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
+  esac
+} # func_stripname_cnf
+])# _LT_FUNC_STRIPNAME_CNF
+
+# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
+# ---------------------------------
+# Figure out "hidden" library dependencies from verbose
+# compiler output when linking a shared library.
+# Parse the compiler output and extract the necessary
+# objects, libraries and library flags.
+m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
+# Dependencies to place before and after the object being linked:
+_LT_TAGVAR(predep_objects, $1)=
+_LT_TAGVAR(postdep_objects, $1)=
+_LT_TAGVAR(predeps, $1)=
+_LT_TAGVAR(postdeps, $1)=
+_LT_TAGVAR(compiler_lib_search_path, $1)=
+
+dnl we can't use the lt_simple_compile_test_code here,
+dnl because it contains code intended for an executable,
+dnl not a library.  It's possible we should let each
+dnl tag define a new lt_????_link_test_code variable,
+dnl but it's only used here...
+m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
+int a;
+void foo (void) { a = 0; }
+_LT_EOF
+], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
+class Foo
+{
+public:
+  Foo (void) { a = 0; }
+private:
+  int a;
+};
+_LT_EOF
+], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
+      subroutine foo
+      implicit none
+      integer*4 a
+      a=0
+      return
+      end
+_LT_EOF
+], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
+      subroutine foo
+      implicit none
+      integer a
+      a=0
+      return
+      end
+_LT_EOF
+], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
+public class foo {
+  private int a;
+  public void bar (void) {
+    a = 0;
+  }
+};
+_LT_EOF
+], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
+package foo
+func foo() {
+}
+_LT_EOF
+])
+
+_lt_libdeps_save_CFLAGS=$CFLAGS
+case "$CC $CFLAGS " in #(
+*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
+*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
+*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
+esac
+
+dnl Parse the compiler output and extract the necessary
+dnl objects, libraries and library flags.
+if AC_TRY_EVAL(ac_compile); then
+  # Parse the compiler output and extract the necessary
+  # objects, libraries and library flags.
+
+  # Sentinel used to keep track of whether or not we are before
+  # the conftest object file.
+  pre_test_object_deps_done=no
+
+  for p in `eval "$output_verbose_link_cmd"`; do
+    case $prev$p in
+
+    -L* | -R* | -l*)
+       # Some compilers place space between "-{L,R}" and the path.
+       # Remove the space.
+       if test x-L = "$p" ||
+          test x-R = "$p"; then
+        prev=$p
+        continue
+       fi
+
+       # Expand the sysroot to ease extracting the directories later.
+       if test -z "$prev"; then
+         case $p in
+         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
+         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
+         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
+         esac
+       fi
+       case $p in
+       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
+       esac
+       if test no = "$pre_test_object_deps_done"; then
+        case $prev in
+        -L | -R)
+          # Internal compiler library paths should come after those
+          # provided the user.  The postdeps already come after the
+          # user supplied libs so there is no need to process them.
+          if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
+            _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
+          else
+            _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
+          fi
+          ;;
+        # The "-l" case would never come before the object being
+        # linked, so don't bother handling this case.
+        esac
+       else
+        if test -z "$_LT_TAGVAR(postdeps, $1)"; then
+          _LT_TAGVAR(postdeps, $1)=$prev$p
+        else
+          _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
+        fi
+       fi
+       prev=
+       ;;
+
+    *.lto.$objext) ;; # Ignore GCC LTO objects
+    *.$objext)
+       # This assumes that the test object file only shows up
+       # once in the compiler output.
+       if test "$p" = "conftest.$objext"; then
+        pre_test_object_deps_done=yes
+        continue
+       fi
+
+       if test no = "$pre_test_object_deps_done"; then
+        if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
+          _LT_TAGVAR(predep_objects, $1)=$p
+        else
+          _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
+        fi
+       else
+        if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
+          _LT_TAGVAR(postdep_objects, $1)=$p
+        else
+          _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
+        fi
+       fi
+       ;;
+
+    *) ;; # Ignore the rest.
+
+    esac
+  done
+
+  # Clean up.
+  rm -f a.out a.exe
+else
+  echo "libtool.m4: error: problem compiling $1 test program"
+fi
+
+$RM -f confest.$objext
+CFLAGS=$_lt_libdeps_save_CFLAGS
+
+# PORTME: override above test on systems where it is broken
+m4_if([$1], [CXX],
+[case $host_os in
+interix[[3-9]]*)
+  # Interix 3.5 installs completely hosed .la files for C++, so rather than
+  # hack all around it, let's just trust "g++" to DTRT.
+  _LT_TAGVAR(predep_objects,$1)=
+  _LT_TAGVAR(postdep_objects,$1)=
+  _LT_TAGVAR(postdeps,$1)=
+  ;;
+
+linux*)
+  case `$CC -V 2>&1 | sed 5q` in
+  *Sun\ C*)
+    # Sun C++ 5.9
+
+    # The more standards-conforming stlport4 library is
+    # incompatible with the Cstd library. Avoid specifying
+    # it if it's in CXXFLAGS. Ignore libCrun as
+    # -library=stlport4 depends on it.
+    case " $CXX $CXXFLAGS " in
+    *" -library=stlport4 "*)
+      solaris_use_stlport4=yes
+      ;;
+    esac
+
+    if test yes != "$solaris_use_stlport4"; then
+      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+    fi
+    ;;
+  esac
+  ;;
+
+solaris*)
+  case $cc_basename in
+  CC* | sunCC*)
+    # The more standards-conforming stlport4 library is
+    # incompatible with the Cstd library. Avoid specifying
+    # it if it's in CXXFLAGS. Ignore libCrun as
+    # -library=stlport4 depends on it.
+    case " $CXX $CXXFLAGS " in
+    *" -library=stlport4 "*)
+      solaris_use_stlport4=yes
+      ;;
+    esac
+
+    # Adding this requires a known-good setup of shared libraries for
+    # Sun compiler versions before 5.6, else PIC objects from an old
+    # archive will be linked into the output, leading to subtle bugs.
+    if test yes != "$solaris_use_stlport4"; then
+      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+    fi
+    ;;
+  esac
+  ;;
+esac
+])
+
+case " $_LT_TAGVAR(postdeps, $1) " in
+*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
+esac
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=
+if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
+fi
+_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
+    [The directories searched by this compiler when creating a shared library])
+_LT_TAGDECL([], [predep_objects], [1],
+    [Dependencies to place before and after the objects being linked to
+    create a shared library])
+_LT_TAGDECL([], [postdep_objects], [1])
+_LT_TAGDECL([], [predeps], [1])
+_LT_TAGDECL([], [postdeps], [1])
+_LT_TAGDECL([], [compiler_lib_search_path], [1],
+    [The library search path used internally by the compiler when linking
+    a shared library])
+])# _LT_SYS_HIDDEN_LIBDEPS
+
+
+# _LT_LANG_F77_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for a Fortran 77 compiler are
+# suitably defined.  These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to 'libtool'.
+m4_defun([_LT_LANG_F77_CONFIG],
+[AC_LANG_PUSH(Fortran 77)
+if test -z "$F77" || test no = "$F77"; then
+  _lt_disable_F77=yes
+fi
+
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(allow_undefined_flag, $1)=
+_LT_TAGVAR(always_export_symbols, $1)=no
+_LT_TAGVAR(archive_expsym_cmds, $1)=
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_TAGVAR(hardcode_direct, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_TAGVAR(hardcode_minus_L, $1)=no
+_LT_TAGVAR(hardcode_automatic, $1)=no
+_LT_TAGVAR(inherit_rpath, $1)=no
+_LT_TAGVAR(module_cmds, $1)=
+_LT_TAGVAR(module_expsym_cmds, $1)=
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(reload_flag, $1)=$reload_flag
+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
+_LT_TAGVAR(no_undefined_flag, $1)=
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for f77 test sources.
+ac_ext=f
+
+# Object file extension for compiled f77 test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# No sense in running all these tests if we already determined that
+# the F77 compiler isn't working.  Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test yes != "$_lt_disable_F77"; then
+  # Code to be used in simple compile tests
+  lt_simple_compile_test_code="\
+      subroutine t
+      return
+      end
+"
+
+  # Code to be used in simple link tests
+  lt_simple_link_test_code="\
+      program t
+      end
+"
+
+  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+  _LT_TAG_COMPILER
+
+  # save warnings/boilerplate of simple test code
+  _LT_COMPILER_BOILERPLATE
+  _LT_LINKER_BOILERPLATE
+
+  # Allow CC to be a program name with arguments.
+  lt_save_CC=$CC
+  lt_save_GCC=$GCC
+  lt_save_CFLAGS=$CFLAGS
+  CC=${F77-"f77"}
+  CFLAGS=$FFLAGS
+  compiler=$CC
+  _LT_TAGVAR(compiler, $1)=$CC
+  _LT_CC_BASENAME([$compiler])
+  GCC=$G77
+  if test -n "$compiler"; then
+    AC_MSG_CHECKING([if libtool supports shared libraries])
+    AC_MSG_RESULT([$can_build_shared])
+
+    AC_MSG_CHECKING([whether to build shared libraries])
+    test no = "$can_build_shared" && enable_shared=no
+
+    # On AIX, shared libraries and static libraries use the same namespace, and
+    # are all built from PIC.
+    case $host_os in
+      aix3*)
+        test yes = "$enable_shared" && enable_static=no
+        if test -n "$RANLIB"; then
+          archive_cmds="$archive_cmds~\$RANLIB \$lib"
+          postinstall_cmds='$RANLIB $lib'
+        fi
+        ;;
+      aix[[4-9]]*)
+       if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
+         test yes = "$enable_shared" && enable_static=no
+       fi
+        ;;
+    esac
+    AC_MSG_RESULT([$enable_shared])
+
+    AC_MSG_CHECKING([whether to build static libraries])
+    # Make sure either enable_shared or enable_static is yes.
+    test yes = "$enable_shared" || enable_static=yes
+    AC_MSG_RESULT([$enable_static])
+
+    _LT_TAGVAR(GCC, $1)=$G77
+    _LT_TAGVAR(LD, $1)=$LD
+
+    ## CAVEAT EMPTOR:
+    ## There is no encapsulation within the following macros, do not change
+    ## the running order or otherwise move them around unless you know exactly
+    ## what you are doing...
+    _LT_COMPILER_PIC($1)
+    _LT_COMPILER_C_O($1)
+    _LT_COMPILER_FILE_LOCKS($1)
+    _LT_LINKER_SHLIBS($1)
+    _LT_SYS_DYNAMIC_LINKER($1)
+    _LT_LINKER_HARDCODE_LIBPATH($1)
+
+    _LT_CONFIG($1)
+  fi # test -n "$compiler"
+
+  GCC=$lt_save_GCC
+  CC=$lt_save_CC
+  CFLAGS=$lt_save_CFLAGS
+fi # test yes != "$_lt_disable_F77"
+
+AC_LANG_POP
+])# _LT_LANG_F77_CONFIG
+
+
+# _LT_LANG_FC_CONFIG([TAG])
+# -------------------------
+# Ensure that the configuration variables for a Fortran compiler are
+# suitably defined.  These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to 'libtool'.
+m4_defun([_LT_LANG_FC_CONFIG],
+[AC_LANG_PUSH(Fortran)
+
+if test -z "$FC" || test no = "$FC"; then
+  _lt_disable_FC=yes
+fi
+
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(allow_undefined_flag, $1)=
+_LT_TAGVAR(always_export_symbols, $1)=no
+_LT_TAGVAR(archive_expsym_cmds, $1)=
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_TAGVAR(hardcode_direct, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_TAGVAR(hardcode_minus_L, $1)=no
+_LT_TAGVAR(hardcode_automatic, $1)=no
+_LT_TAGVAR(inherit_rpath, $1)=no
+_LT_TAGVAR(module_cmds, $1)=
+_LT_TAGVAR(module_expsym_cmds, $1)=
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(reload_flag, $1)=$reload_flag
+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
+_LT_TAGVAR(no_undefined_flag, $1)=
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for fc test sources.
+ac_ext=${ac_fc_srcext-f}
+
+# Object file extension for compiled fc test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# No sense in running all these tests if we already determined that
+# the FC compiler isn't working.  Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test yes != "$_lt_disable_FC"; then
+  # Code to be used in simple compile tests
+  lt_simple_compile_test_code="\
+      subroutine t
+      return
+      end
+"
+
+  # Code to be used in simple link tests
+  lt_simple_link_test_code="\
+      program t
+      end
+"
+
+  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+  _LT_TAG_COMPILER
+
+  # save warnings/boilerplate of simple test code
+  _LT_COMPILER_BOILERPLATE
+  _LT_LINKER_BOILERPLATE
+
+  # Allow CC to be a program name with arguments.
+  lt_save_CC=$CC
+  lt_save_GCC=$GCC
+  lt_save_CFLAGS=$CFLAGS
+  CC=${FC-"f95"}
+  CFLAGS=$FCFLAGS
+  compiler=$CC
+  GCC=$ac_cv_fc_compiler_gnu
+
+  _LT_TAGVAR(compiler, $1)=$CC
+  _LT_CC_BASENAME([$compiler])
+
+  if test -n "$compiler"; then
+    AC_MSG_CHECKING([if libtool supports shared libraries])
+    AC_MSG_RESULT([$can_build_shared])
+
+    AC_MSG_CHECKING([whether to build shared libraries])
+    test no = "$can_build_shared" && enable_shared=no
+
+    # On AIX, shared libraries and static libraries use the same namespace, and
+    # are all built from PIC.
+    case $host_os in
+      aix3*)
+        test yes = "$enable_shared" && enable_static=no
+        if test -n "$RANLIB"; then
+          archive_cmds="$archive_cmds~\$RANLIB \$lib"
+          postinstall_cmds='$RANLIB $lib'
+        fi
+        ;;
+      aix[[4-9]]*)
+       if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
+         test yes = "$enable_shared" && enable_static=no
+       fi
+        ;;
+    esac
+    AC_MSG_RESULT([$enable_shared])
+
+    AC_MSG_CHECKING([whether to build static libraries])
+    # Make sure either enable_shared or enable_static is yes.
+    test yes = "$enable_shared" || enable_static=yes
+    AC_MSG_RESULT([$enable_static])
+
+    _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
+    _LT_TAGVAR(LD, $1)=$LD
+
+    ## CAVEAT EMPTOR:
+    ## There is no encapsulation within the following macros, do not change
+    ## the running order or otherwise move them around unless you know exactly
+    ## what you are doing...
+    _LT_SYS_HIDDEN_LIBDEPS($1)
+    _LT_COMPILER_PIC($1)
+    _LT_COMPILER_C_O($1)
+    _LT_COMPILER_FILE_LOCKS($1)
+    _LT_LINKER_SHLIBS($1)
+    _LT_SYS_DYNAMIC_LINKER($1)
+    _LT_LINKER_HARDCODE_LIBPATH($1)
+
+    _LT_CONFIG($1)
+  fi # test -n "$compiler"
+
+  GCC=$lt_save_GCC
+  CC=$lt_save_CC
+  CFLAGS=$lt_save_CFLAGS
+fi # test yes != "$_lt_disable_FC"
+
+AC_LANG_POP
+])# _LT_LANG_FC_CONFIG
+
+
+# _LT_LANG_GCJ_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for the GNU Java Compiler compiler
+# are suitably defined.  These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to 'libtool'.
+m4_defun([_LT_LANG_GCJ_CONFIG],
+[AC_REQUIRE([LT_PROG_GCJ])dnl
+AC_LANG_SAVE
+
+# Source file extension for Java test sources.
+ac_ext=java
+
+# Object file extension for compiled Java test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="class foo {}"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_TAG_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=$CC
+lt_save_CFLAGS=$CFLAGS
+lt_save_GCC=$GCC
+GCC=yes
+CC=${GCJ-"gcj"}
+CFLAGS=$GCJFLAGS
+compiler=$CC
+_LT_TAGVAR(compiler, $1)=$CC
+_LT_TAGVAR(LD, $1)=$LD
+_LT_CC_BASENAME([$compiler])
+
+# GCJ did not exist at the time GCC didn't implicitly link libc in.
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(reload_flag, $1)=$reload_flag
+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+  _LT_COMPILER_NO_RTTI($1)
+  _LT_COMPILER_PIC($1)
+  _LT_COMPILER_C_O($1)
+  _LT_COMPILER_FILE_LOCKS($1)
+  _LT_LINKER_SHLIBS($1)
+  _LT_LINKER_HARDCODE_LIBPATH($1)
+
+  _LT_CONFIG($1)
+fi
+
+AC_LANG_RESTORE
+
+GCC=$lt_save_GCC
+CC=$lt_save_CC
+CFLAGS=$lt_save_CFLAGS
+])# _LT_LANG_GCJ_CONFIG
+
+
+# _LT_LANG_GO_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for the GNU Go compiler
+# are suitably defined.  These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to 'libtool'.
+m4_defun([_LT_LANG_GO_CONFIG],
+[AC_REQUIRE([LT_PROG_GO])dnl
+AC_LANG_SAVE
+
+# Source file extension for Go test sources.
+ac_ext=go
+
+# Object file extension for compiled Go test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="package main; func main() { }"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='package main; func main() { }'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_TAG_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=$CC
+lt_save_CFLAGS=$CFLAGS
+lt_save_GCC=$GCC
+GCC=yes
+CC=${GOC-"gccgo"}
+CFLAGS=$GOFLAGS
+compiler=$CC
+_LT_TAGVAR(compiler, $1)=$CC
+_LT_TAGVAR(LD, $1)=$LD
+_LT_CC_BASENAME([$compiler])
+
+# Go did not exist at the time GCC didn't implicitly link libc in.
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(reload_flag, $1)=$reload_flag
+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+  _LT_COMPILER_NO_RTTI($1)
+  _LT_COMPILER_PIC($1)
+  _LT_COMPILER_C_O($1)
+  _LT_COMPILER_FILE_LOCKS($1)
+  _LT_LINKER_SHLIBS($1)
+  _LT_LINKER_HARDCODE_LIBPATH($1)
+
+  _LT_CONFIG($1)
+fi
+
+AC_LANG_RESTORE
+
+GCC=$lt_save_GCC
+CC=$lt_save_CC
+CFLAGS=$lt_save_CFLAGS
+])# _LT_LANG_GO_CONFIG
+
+
+# _LT_LANG_RC_CONFIG([TAG])
+# -------------------------
+# Ensure that the configuration variables for the Windows resource compiler
+# are suitably defined.  These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to 'libtool'.
+m4_defun([_LT_LANG_RC_CONFIG],
+[AC_REQUIRE([LT_PROG_RC])dnl
+AC_LANG_SAVE
+
+# Source file extension for RC test sources.
+ac_ext=rc
+
+# Object file extension for compiled RC test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
+
+# Code to be used in simple link tests
+lt_simple_link_test_code=$lt_simple_compile_test_code
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_TAG_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=$CC
+lt_save_CFLAGS=$CFLAGS
+lt_save_GCC=$GCC
+GCC=
+CC=${RC-"windres"}
+CFLAGS=
+compiler=$CC
+_LT_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
+
+if test -n "$compiler"; then
+  :
+  _LT_CONFIG($1)
+fi
+
+GCC=$lt_save_GCC
+AC_LANG_RESTORE
+CC=$lt_save_CC
+CFLAGS=$lt_save_CFLAGS
+])# _LT_LANG_RC_CONFIG
+
+
+# LT_PROG_GCJ
+# -----------
+AC_DEFUN([LT_PROG_GCJ],
+[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
+  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
+    [AC_CHECK_TOOL(GCJ, gcj,)
+      test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
+      AC_SUBST(GCJFLAGS)])])[]dnl
+])
+
+# Old name:
+AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
+
+
+# LT_PROG_GO
+# ----------
+AC_DEFUN([LT_PROG_GO],
+[AC_CHECK_TOOL(GOC, gccgo,)
+])
+
+
+# LT_PROG_RC
+# ----------
+AC_DEFUN([LT_PROG_RC],
+[AC_CHECK_TOOL(RC, windres,)
+])
+
+# Old name:
+AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([LT_AC_PROG_RC], [])
+
+
+# _LT_DECL_EGREP
+# --------------
+# If we don't have a new enough Autoconf to choose the best grep
+# available, choose the one first in the user's PATH.
+m4_defun([_LT_DECL_EGREP],
+[AC_REQUIRE([AC_PROG_EGREP])dnl
+AC_REQUIRE([AC_PROG_FGREP])dnl
+test -z "$GREP" && GREP=grep
+_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
+_LT_DECL([], [EGREP], [1], [An ERE matcher])
+_LT_DECL([], [FGREP], [1], [A literal string matcher])
+dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
+AC_SUBST([GREP])
+])
+
+
+# _LT_DECL_OBJDUMP
+# --------------
+# If we don't have a new enough Autoconf to choose the best objdump
+# available, choose the one first in the user's PATH.
+m4_defun([_LT_DECL_OBJDUMP],
+[AC_CHECK_TOOL(OBJDUMP, objdump, false)
+test -z "$OBJDUMP" && OBJDUMP=objdump
+_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
+AC_SUBST([OBJDUMP])
+])
+
+# _LT_DECL_DLLTOOL
+# ----------------
+# Ensure DLLTOOL variable is set.
+m4_defun([_LT_DECL_DLLTOOL],
+[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
+AC_SUBST([DLLTOOL])
+])
+
+# _LT_DECL_SED
+# ------------
+# Check for a fully-functional sed program, that truncates
+# as few characters as possible.  Prefer GNU sed if found.
+m4_defun([_LT_DECL_SED],
+[AC_PROG_SED
+test -z "$SED" && SED=sed
+Xsed="$SED -e 1s/^X//"
+_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
+_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
+    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
+])# _LT_DECL_SED
+
+m4_ifndef([AC_PROG_SED], [
+############################################################
+# NOTE: This macro has been submitted for inclusion into   #
+#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
+#  a released version of Autoconf we should remove this    #
+#  macro and use it instead.                               #
+############################################################
+
+m4_defun([AC_PROG_SED],
+[AC_MSG_CHECKING([for a sed that does not truncate output])
+AC_CACHE_VAL(lt_cv_path_SED,
+[# Loop through the user's path and test for sed and gsed.
+# Then use that list of sed's as ones to test for truncation.
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+  IFS=$as_save_IFS
+  test -z "$as_dir" && as_dir=.
+  for lt_ac_prog in sed gsed; do
+    for ac_exec_ext in '' $ac_executable_extensions; do
+      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
+        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
+      fi
+    done
+  done
+done
+IFS=$as_save_IFS
+lt_ac_max=0
+lt_ac_count=0
+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
+# along with /bin/sed that truncates output.
+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
+  test ! -f "$lt_ac_sed" && continue
+  cat /dev/null > conftest.in
+  lt_ac_count=0
+  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
+  # Check for GNU sed and select it if it is found.
+  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
+    lt_cv_path_SED=$lt_ac_sed
+    break
+  fi
+  while true; do
+    cat conftest.in conftest.in >conftest.tmp
+    mv conftest.tmp conftest.in
+    cp conftest.in conftest.nl
+    echo >>conftest.nl
+    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
+    cmp -s conftest.out conftest.nl || break
+    # 10000 chars as input seems more than enough
+    test 10 -lt "$lt_ac_count" && break
+    lt_ac_count=`expr $lt_ac_count + 1`
+    if test "$lt_ac_count" -gt "$lt_ac_max"; then
+      lt_ac_max=$lt_ac_count
+      lt_cv_path_SED=$lt_ac_sed
+    fi
+  done
+done
+])
+SED=$lt_cv_path_SED
+AC_SUBST([SED])
+AC_MSG_RESULT([$SED])
+])#AC_PROG_SED
+])#m4_ifndef
+
+# Old name:
+AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([LT_AC_PROG_SED], [])
+
+
+# _LT_CHECK_SHELL_FEATURES
+# ------------------------
+# Find out whether the shell is Bourne or XSI compatible,
+# or has some other useful features.
+m4_defun([_LT_CHECK_SHELL_FEATURES],
+[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+  lt_unset=unset
+else
+  lt_unset=false
+fi
+_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
+
+# test EBCDIC or ASCII
+case `echo X|tr X '\101'` in
+ A) # ASCII based system
+    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
+  lt_SP2NL='tr \040 \012'
+  lt_NL2SP='tr \015\012 \040\040'
+  ;;
+ *) # EBCDIC based system
+  lt_SP2NL='tr \100 \n'
+  lt_NL2SP='tr \r\n \100\100'
+  ;;
+esac
+_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
+_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
+])# _LT_CHECK_SHELL_FEATURES
+
+
+# _LT_PATH_CONVERSION_FUNCTIONS
+# -----------------------------
+# Determine what file name conversion functions should be used by
+# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
+# for certain cross-compile configurations and native mingw.
+m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+AC_MSG_CHECKING([how to convert $build file names to $host format])
+AC_CACHE_VAL(lt_cv_to_host_file_cmd,
+[case $host in
+  *-*-mingw* )
+    case $build in
+      *-*-mingw* ) # actually msys
+        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
+        ;;
+      *-*-cygwin* )
+        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
+        ;;
+      * ) # otherwise, assume *nix
+        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
+        ;;
+    esac
+    ;;
+  *-*-cygwin* )
+    case $build in
+      *-*-mingw* ) # actually msys
+        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
+        ;;
+      *-*-cygwin* )
+        lt_cv_to_host_file_cmd=func_convert_file_noop
+        ;;
+      * ) # otherwise, assume *nix
+        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
+        ;;
+    esac
+    ;;
+  * ) # unhandled hosts (and "normal" native builds)
+    lt_cv_to_host_file_cmd=func_convert_file_noop
+    ;;
+esac
+])
+to_host_file_cmd=$lt_cv_to_host_file_cmd
+AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
+_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
+         [0], [convert $build file names to $host format])dnl
+
+AC_MSG_CHECKING([how to convert $build file names to toolchain format])
+AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
+[#assume ordinary cross tools, or native build.
+lt_cv_to_tool_file_cmd=func_convert_file_noop
+case $host in
+  *-*-mingw* )
+    case $build in
+      *-*-mingw* ) # actually msys
+        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
+        ;;
+    esac
+    ;;
+esac
+])
+to_tool_file_cmd=$lt_cv_to_tool_file_cmd
+AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
+_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
+         [0], [convert $build files to toolchain format])dnl
+])# _LT_PATH_CONVERSION_FUNCTIONS
diff --git a/m4/ltoptions.m4 b/m4/ltoptions.m4
new file mode 100644 (file)
index 0000000..50c7723
--- /dev/null
@@ -0,0 +1,382 @@
+# Helper functions for option handling.                    -*- Autoconf -*-
+#
+#   Copyright (C) 2004-2005, 2007-2009, 2011-2013 Free Software
+#   Foundation, Inc.
+#   Written by Gary V. Vaughan, 2004
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# serial 8 ltoptions.m4
+
+# This is to help aclocal find these macros, as it can't see m4_define.
+AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
+
+
+# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
+# ------------------------------------------
+m4_define([_LT_MANGLE_OPTION],
+[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
+
+
+# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
+# ---------------------------------------
+# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
+# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
+# saved as a flag.
+m4_define([_LT_SET_OPTION],
+[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
+m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
+        _LT_MANGLE_DEFUN([$1], [$2]),
+    [m4_warning([Unknown $1 option '$2'])])[]dnl
+])
+
+
+# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
+# ------------------------------------------------------------
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
+m4_define([_LT_IF_OPTION],
+[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
+
+
+# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
+# -------------------------------------------------------
+# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
+# are set.
+m4_define([_LT_UNLESS_OPTIONS],
+[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
+           [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
+                     [m4_define([$0_found])])])[]dnl
+m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
+])[]dnl
+])
+
+
+# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
+# ----------------------------------------
+# OPTION-LIST is a space-separated list of Libtool options associated
+# with MACRO-NAME.  If any OPTION has a matching handler declared with
+# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
+# the unknown option and exit.
+m4_defun([_LT_SET_OPTIONS],
+[# Set options
+m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
+    [_LT_SET_OPTION([$1], _LT_Option)])
+
+m4_if([$1],[LT_INIT],[
+  dnl
+  dnl Simply set some default values (i.e off) if boolean options were not
+  dnl specified:
+  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
+  ])
+  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
+  ])
+  dnl
+  dnl If no reference was made to various pairs of opposing options, then
+  dnl we run the default mode handler for the pair.  For example, if neither
+  dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
+  dnl archives by default:
+  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
+  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
+  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
+  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
+                  [_LT_ENABLE_FAST_INSTALL])
+  ])
+])# _LT_SET_OPTIONS
+
+
+## --------------------------------- ##
+## Macros to handle LT_INIT options. ##
+## --------------------------------- ##
+
+# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
+# -----------------------------------------
+m4_define([_LT_MANGLE_DEFUN],
+[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
+
+
+# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
+# -----------------------------------------------
+m4_define([LT_OPTION_DEFINE],
+[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
+])# LT_OPTION_DEFINE
+
+
+# dlopen
+# ------
+LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
+])
+
+AU_DEFUN([AC_LIBTOOL_DLOPEN],
+[_LT_SET_OPTION([LT_INIT], [dlopen])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
+put the 'dlopen' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
+
+
+# win32-dll
+# ---------
+# Declare package support for building win32 dll's.
+LT_OPTION_DEFINE([LT_INIT], [win32-dll],
+[enable_win32_dll=yes
+
+case $host in
+*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
+  AC_CHECK_TOOL(AS, as, false)
+  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
+  AC_CHECK_TOOL(OBJDUMP, objdump, false)
+  ;;
+esac
+
+test -z "$AS" && AS=as
+_LT_DECL([], [AS],      [1], [Assembler program])dnl
+
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
+
+test -z "$OBJDUMP" && OBJDUMP=objdump
+_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
+])# win32-dll
+
+AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+_LT_SET_OPTION([LT_INIT], [win32-dll])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
+put the 'win32-dll' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
+
+
+# _LT_ENABLE_SHARED([DEFAULT])
+# ----------------------------
+# implement the --enable-shared flag, and supports the 'shared' and
+# 'disable-shared' LT_INIT options.
+# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
+m4_define([_LT_ENABLE_SHARED],
+[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
+AC_ARG_ENABLE([shared],
+    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
+       [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
+    [p=${PACKAGE-default}
+    case $enableval in
+    yes) enable_shared=yes ;;
+    no) enable_shared=no ;;
+    *)
+      enable_shared=no
+      # Look at the argument we got.  We use all the common list separators.
+      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
+      for pkg in $enableval; do
+       IFS=$lt_save_ifs
+       if test "X$pkg" = "X$p"; then
+         enable_shared=yes
+       fi
+      done
+      IFS=$lt_save_ifs
+      ;;
+    esac],
+    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
+
+    _LT_DECL([build_libtool_libs], [enable_shared], [0],
+       [Whether or not to build shared libraries])
+])# _LT_ENABLE_SHARED
+
+LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
+LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
+
+# Old names:
+AC_DEFUN([AC_ENABLE_SHARED],
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
+])
+
+AC_DEFUN([AC_DISABLE_SHARED],
+[_LT_SET_OPTION([LT_INIT], [disable-shared])
+])
+
+AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
+AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_ENABLE_SHARED], [])
+dnl AC_DEFUN([AM_DISABLE_SHARED], [])
+
+
+
+# _LT_ENABLE_STATIC([DEFAULT])
+# ----------------------------
+# implement the --enable-static flag, and support the 'static' and
+# 'disable-static' LT_INIT options.
+# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
+m4_define([_LT_ENABLE_STATIC],
+[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
+AC_ARG_ENABLE([static],
+    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
+       [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
+    [p=${PACKAGE-default}
+    case $enableval in
+    yes) enable_static=yes ;;
+    no) enable_static=no ;;
+    *)
+     enable_static=no
+      # Look at the argument we got.  We use all the common list separators.
+      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
+      for pkg in $enableval; do
+       IFS=$lt_save_ifs
+       if test "X$pkg" = "X$p"; then
+         enable_static=yes
+       fi
+      done
+      IFS=$lt_save_ifs
+      ;;
+    esac],
+    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
+
+    _LT_DECL([build_old_libs], [enable_static], [0],
+       [Whether or not to build static libraries])
+])# _LT_ENABLE_STATIC
+
+LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
+LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
+
+# Old names:
+AC_DEFUN([AC_ENABLE_STATIC],
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
+])
+
+AC_DEFUN([AC_DISABLE_STATIC],
+[_LT_SET_OPTION([LT_INIT], [disable-static])
+])
+
+AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
+AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_ENABLE_STATIC], [])
+dnl AC_DEFUN([AM_DISABLE_STATIC], [])
+
+
+
+# _LT_ENABLE_FAST_INSTALL([DEFAULT])
+# ----------------------------------
+# implement the --enable-fast-install flag, and support the 'fast-install'
+# and 'disable-fast-install' LT_INIT options.
+# DEFAULT is either 'yes' or 'no'.  If omitted, it defaults to 'yes'.
+m4_define([_LT_ENABLE_FAST_INSTALL],
+[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
+AC_ARG_ENABLE([fast-install],
+    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
+    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
+    [p=${PACKAGE-default}
+    case $enableval in
+    yes) enable_fast_install=yes ;;
+    no) enable_fast_install=no ;;
+    *)
+      enable_fast_install=no
+      # Look at the argument we got.  We use all the common list separators.
+      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
+      for pkg in $enableval; do
+       IFS=$lt_save_ifs
+       if test "X$pkg" = "X$p"; then
+         enable_fast_install=yes
+       fi
+      done
+      IFS=$lt_save_ifs
+      ;;
+    esac],
+    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
+
+_LT_DECL([fast_install], [enable_fast_install], [0],
+        [Whether or not to optimize for fast installation])dnl
+])# _LT_ENABLE_FAST_INSTALL
+
+LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
+LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
+
+# Old names:
+AU_DEFUN([AC_ENABLE_FAST_INSTALL],
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you put
+the 'fast-install' option into LT_INIT's first parameter.])
+])
+
+AU_DEFUN([AC_DISABLE_FAST_INSTALL],
+[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you put
+the 'disable-fast-install' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
+dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
+
+
+# _LT_WITH_PIC([MODE])
+# --------------------
+# implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
+# LT_INIT options.
+# MODE is either 'yes' or 'no'.  If omitted, it defaults to 'both'.
+m4_define([_LT_WITH_PIC],
+[AC_ARG_WITH([pic],
+    [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
+       [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
+    [lt_p=${PACKAGE-default}
+    case $withval in
+    yes|no) pic_mode=$withval ;;
+    *)
+      pic_mode=default
+      # Look at the argument we got.  We use all the common list separators.
+      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
+      for lt_pkg in $withval; do
+       IFS=$lt_save_ifs
+       if test "X$lt_pkg" = "X$lt_p"; then
+         pic_mode=yes
+       fi
+      done
+      IFS=$lt_save_ifs
+      ;;
+    esac],
+    [pic_mode=m4_default([$1], [default])])
+
+_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
+])# _LT_WITH_PIC
+
+LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
+LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
+
+# Old name:
+AU_DEFUN([AC_LIBTOOL_PICMODE],
+[_LT_SET_OPTION([LT_INIT], [pic-only])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
+put the 'pic-only' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
+
+## ----------------- ##
+## LTDL_INIT Options ##
+## ----------------- ##
+
+m4_define([_LTDL_MODE], [])
+LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
+                [m4_define([_LTDL_MODE], [nonrecursive])])
+LT_OPTION_DEFINE([LTDL_INIT], [recursive],
+                [m4_define([_LTDL_MODE], [recursive])])
+LT_OPTION_DEFINE([LTDL_INIT], [subproject],
+                [m4_define([_LTDL_MODE], [subproject])])
+
+m4_define([_LTDL_TYPE], [])
+LT_OPTION_DEFINE([LTDL_INIT], [installable],
+                [m4_define([_LTDL_TYPE], [installable])])
+LT_OPTION_DEFINE([LTDL_INIT], [convenience],
+                [m4_define([_LTDL_TYPE], [convenience])])
diff --git a/m4/ltsugar.m4 b/m4/ltsugar.m4
new file mode 100644 (file)
index 0000000..7cbc638
--- /dev/null
@@ -0,0 +1,124 @@
+# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
+#
+# Copyright (C) 2004-2005, 2007-2008, 2011-2013 Free Software
+# Foundation, Inc.
+# Written by Gary V. Vaughan, 2004
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# serial 6 ltsugar.m4
+
+# This is to help aclocal find these macros, as it can't see m4_define.
+AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
+
+
+# lt_join(SEP, ARG1, [ARG2...])
+# -----------------------------
+# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
+# associated separator.
+# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
+# versions in m4sugar had bugs.
+m4_define([lt_join],
+[m4_if([$#], [1], [],
+       [$#], [2], [[$2]],
+       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
+m4_define([_lt_join],
+[m4_if([$#$2], [2], [],
+       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
+
+
+# lt_car(LIST)
+# lt_cdr(LIST)
+# ------------
+# Manipulate m4 lists.
+# These macros are necessary as long as will still need to support
+# Autoconf-2.59, which quotes differently.
+m4_define([lt_car], [[$1]])
+m4_define([lt_cdr],
+[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
+       [$#], 1, [],
+       [m4_dquote(m4_shift($@))])])
+m4_define([lt_unquote], $1)
+
+
+# lt_append(MACRO-NAME, STRING, [SEPARATOR])
+# ------------------------------------------
+# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
+# Note that neither SEPARATOR nor STRING are expanded; they are appended
+# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
+# No SEPARATOR is output if MACRO-NAME was previously undefined (different
+# than defined and empty).
+#
+# This macro is needed until we can rely on Autoconf 2.62, since earlier
+# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
+m4_define([lt_append],
+[m4_define([$1],
+          m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
+
+
+
+# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
+# ----------------------------------------------------------
+# Produce a SEP delimited list of all paired combinations of elements of
+# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
+# has the form PREFIXmINFIXSUFFIXn.
+# Needed until we can rely on m4_combine added in Autoconf 2.62.
+m4_define([lt_combine],
+[m4_if(m4_eval([$# > 3]), [1],
+       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
+[[m4_foreach([_Lt_prefix], [$2],
+            [m4_foreach([_Lt_suffix],
+               ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
+       [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
+
+
+# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
+# -----------------------------------------------------------------------
+# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
+# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
+m4_define([lt_if_append_uniq],
+[m4_ifdef([$1],
+         [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
+                [lt_append([$1], [$2], [$3])$4],
+                [$5])],
+         [lt_append([$1], [$2], [$3])$4])])
+
+
+# lt_dict_add(DICT, KEY, VALUE)
+# -----------------------------
+m4_define([lt_dict_add],
+[m4_define([$1($2)], [$3])])
+
+
+# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
+# --------------------------------------------
+m4_define([lt_dict_add_subkey],
+[m4_define([$1($2:$3)], [$4])])
+
+
+# lt_dict_fetch(DICT, KEY, [SUBKEY])
+# ----------------------------------
+m4_define([lt_dict_fetch],
+[m4_ifval([$3],
+       m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
+    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
+
+
+# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
+# -----------------------------------------------------------------
+m4_define([lt_if_dict_fetch],
+[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
+       [$5],
+    [$6])])
+
+
+# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
+# --------------------------------------------------------------
+m4_define([lt_dict_filter],
+[m4_if([$5], [], [],
+  [lt_join(m4_quote(m4_default([$4], [[, ]])),
+           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
+                     [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
+])
diff --git a/m4/ltversion.m4 b/m4/ltversion.m4
new file mode 100644 (file)
index 0000000..daeb0af
--- /dev/null
@@ -0,0 +1,23 @@
+# ltversion.m4 -- version numbers                      -*- Autoconf -*-
+#
+#   Copyright (C) 2004, 2011-2013 Free Software Foundation, Inc.
+#   Written by Scott James Remnant, 2004
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# @configure_input@
+
+# serial 4038 ltversion.m4
+# This file is part of GNU Libtool
+
+m4_define([LT_PACKAGE_VERSION], [2.4.2.418])
+m4_define([LT_PACKAGE_REVISION], [2.4.2.418])
+
+AC_DEFUN([LTVERSION_VERSION],
+[macro_version='2.4.2.418'
+macro_revision='2.4.2.418'
+_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
+_LT_DECL(, macro_revision, 0)
+])
diff --git a/m4/lt~obsolete.m4 b/m4/lt~obsolete.m4
new file mode 100644 (file)
index 0000000..59461e4
--- /dev/null
@@ -0,0 +1,99 @@
+# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
+#
+#   Copyright (C) 2004-2005, 2007, 2009, 2011-2013 Free Software
+#   Foundation, Inc.
+#   Written by Scott James Remnant, 2004.
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# serial 5 lt~obsolete.m4
+
+# These exist entirely to fool aclocal when bootstrapping libtool.
+#
+# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
+# which have later been changed to m4_define as they aren't part of the
+# exported API, or moved to Autoconf or Automake where they belong.
+#
+# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
+# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
+# using a macro with the same name in our local m4/libtool.m4 it'll
+# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
+# and doesn't know about Autoconf macros at all.)
+#
+# So we provide this file, which has a silly filename so it's always
+# included after everything else.  This provides aclocal with the
+# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
+# because those macros already exist, or will be overwritten later.
+# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
+#
+# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
+# Yes, that means every name once taken will need to remain here until
+# we give up compatibility with versions before 1.7, at which point
+# we need to keep only those names which we still refer to.
+
+# This is to help aclocal find these macros, as it can't see m4_define.
+AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
+
+m4_ifndef([AC_LIBTOOL_LINKER_OPTION],  [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
+m4_ifndef([AC_PROG_EGREP],             [AC_DEFUN([AC_PROG_EGREP])])
+m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH],        [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
+m4_ifndef([_LT_AC_SHELL_INIT],         [AC_DEFUN([_LT_AC_SHELL_INIT])])
+m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],    [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
+m4_ifndef([_LT_PROG_LTMAIN],           [AC_DEFUN([_LT_PROG_LTMAIN])])
+m4_ifndef([_LT_AC_TAGVAR],             [AC_DEFUN([_LT_AC_TAGVAR])])
+m4_ifndef([AC_LTDL_ENABLE_INSTALL],    [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
+m4_ifndef([AC_LTDL_PREOPEN],           [AC_DEFUN([AC_LTDL_PREOPEN])])
+m4_ifndef([_LT_AC_SYS_COMPILER],       [AC_DEFUN([_LT_AC_SYS_COMPILER])])
+m4_ifndef([_LT_AC_LOCK],               [AC_DEFUN([_LT_AC_LOCK])])
+m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE],        [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
+m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],    [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
+m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],    [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
+m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
+m4_ifndef([AC_LIBTOOL_OBJDIR],         [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
+m4_ifndef([AC_LTDL_OBJDIR],            [AC_DEFUN([AC_LTDL_OBJDIR])])
+m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
+m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],  [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
+m4_ifndef([AC_PATH_MAGIC],             [AC_DEFUN([AC_PATH_MAGIC])])
+m4_ifndef([AC_PROG_LD_GNU],            [AC_DEFUN([AC_PROG_LD_GNU])])
+m4_ifndef([AC_PROG_LD_RELOAD_FLAG],    [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
+m4_ifndef([AC_DEPLIBS_CHECK_METHOD],   [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
+m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
+m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
+m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
+m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
+m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
+m4_ifndef([LT_AC_PROG_EGREP],          [AC_DEFUN([LT_AC_PROG_EGREP])])
+m4_ifndef([LT_AC_PROG_SED],            [AC_DEFUN([LT_AC_PROG_SED])])
+m4_ifndef([_LT_CC_BASENAME],           [AC_DEFUN([_LT_CC_BASENAME])])
+m4_ifndef([_LT_COMPILER_BOILERPLATE],  [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
+m4_ifndef([_LT_LINKER_BOILERPLATE],    [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
+m4_ifndef([_AC_PROG_LIBTOOL],          [AC_DEFUN([_AC_PROG_LIBTOOL])])
+m4_ifndef([AC_LIBTOOL_SETUP],          [AC_DEFUN([AC_LIBTOOL_SETUP])])
+m4_ifndef([_LT_AC_CHECK_DLFCN],                [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
+m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],     [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
+m4_ifndef([_LT_AC_TAGCONFIG],          [AC_DEFUN([_LT_AC_TAGCONFIG])])
+m4_ifndef([AC_DISABLE_FAST_INSTALL],   [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
+m4_ifndef([_LT_AC_LANG_CXX],           [AC_DEFUN([_LT_AC_LANG_CXX])])
+m4_ifndef([_LT_AC_LANG_F77],           [AC_DEFUN([_LT_AC_LANG_F77])])
+m4_ifndef([_LT_AC_LANG_GCJ],           [AC_DEFUN([_LT_AC_LANG_GCJ])])
+m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
+m4_ifndef([_LT_AC_LANG_C_CONFIG],      [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG],        [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
+m4_ifndef([_LT_AC_LANG_CXX_CONFIG],    [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG],        [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
+m4_ifndef([_LT_AC_LANG_F77_CONFIG],    [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG],        [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
+m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],    [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
+m4_ifndef([_LT_AC_LANG_RC_CONFIG],     [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
+m4_ifndef([AC_LIBTOOL_CONFIG],         [AC_DEFUN([AC_LIBTOOL_CONFIG])])
+m4_ifndef([_LT_AC_FILE_LTDLL_C],       [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
+m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS],        [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
+m4_ifndef([_LT_AC_PROG_CXXCPP],                [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
+m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS],        [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
+m4_ifndef([_LT_PROG_ECHO_BACKSLASH],   [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
+m4_ifndef([_LT_PROG_F77],              [AC_DEFUN([_LT_PROG_F77])])
+m4_ifndef([_LT_PROG_FC],               [AC_DEFUN([_LT_PROG_FC])])
+m4_ifndef([_LT_PROG_CXX],              [AC_DEFUN([_LT_PROG_CXX])])
diff --git a/m4/pkg.m4 b/m4/pkg.m4
new file mode 100644 (file)
index 0000000..0048a3f
--- /dev/null
+++ b/m4/pkg.m4
@@ -0,0 +1,157 @@
+# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
+# 
+# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# PKG_PROG_PKG_CONFIG([MIN-VERSION])
+# ----------------------------------
+AC_DEFUN([PKG_PROG_PKG_CONFIG],
+[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
+m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
+AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
+       AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
+fi
+if test -n "$PKG_CONFIG"; then
+       _pkg_min_version=m4_default([$1], [0.9.0])
+       AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
+       if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
+               AC_MSG_RESULT([yes])
+       else
+               AC_MSG_RESULT([no])
+               PKG_CONFIG=""
+       fi
+               
+fi[]dnl
+])# PKG_PROG_PKG_CONFIG
+
+# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+#
+# Check to see whether a particular set of modules exists.  Similar
+# to PKG_CHECK_MODULES(), but does not set variables or print errors.
+#
+#
+# Similar to PKG_CHECK_MODULES, make sure that the first instance of
+# this or PKG_CHECK_MODULES is called, or make sure to call
+# PKG_CHECK_EXISTS manually
+# --------------------------------------------------------------
+AC_DEFUN([PKG_CHECK_EXISTS],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
+if test -n "$PKG_CONFIG" && \
+    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
+  m4_ifval([$2], [$2], [:])
+m4_ifvaln([$3], [else
+  $3])dnl
+fi])
+
+
+# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
+# ---------------------------------------------
+m4_define([_PKG_CONFIG],
+[if test -n "$PKG_CONFIG"; then
+    if test -n "$$1"; then
+        pkg_cv_[]$1="$$1"
+    else
+        PKG_CHECK_EXISTS([$3],
+                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
+                        [pkg_failed=yes])
+    fi
+else
+       pkg_failed=untried
+fi[]dnl
+])# _PKG_CONFIG
+
+# _PKG_SHORT_ERRORS_SUPPORTED
+# -----------------------------
+AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+        _pkg_short_errors_supported=yes
+else
+        _pkg_short_errors_supported=no
+fi[]dnl
+])# _PKG_SHORT_ERRORS_SUPPORTED
+
+
+# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
+# [ACTION-IF-NOT-FOUND])
+#
+#
+# Note that if there is a possibility the first call to
+# PKG_CHECK_MODULES might not happen, you should be sure to include an
+# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
+#
+#
+# --------------------------------------------------------------
+AC_DEFUN([PKG_CHECK_MODULES],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
+AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
+AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
+
+pkg_failed=no
+AC_MSG_CHECKING([for $1])
+
+_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
+_PKG_CONFIG([$1][_LIBS], [libs], [$2])
+
+m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
+and $1[]_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.])
+
+if test $pkg_failed = yes; then
+        _PKG_SHORT_ERRORS_SUPPORTED
+        if test $_pkg_short_errors_supported = yes; then
+               $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
+        else 
+               $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
+        fi
+       # Put the nasty error message in config.log where it belongs
+       echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
+
+       ifelse([$4], , [AC_MSG_ERROR(dnl
+[Package requirements ($2) were not met:
+
+$$1_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+_PKG_TEXT
+])],
+               [AC_MSG_RESULT([no])
+                $4])
+elif test $pkg_failed = untried; then
+       ifelse([$4], , [AC_MSG_FAILURE(dnl
+[The pkg-config script could not be found or is too old.  Make sure it
+is in your PATH or set the PKG_CONFIG environment variable to the full
+path to pkg-config.
+
+_PKG_TEXT
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
+               [$4])
+else
+       $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
+       $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
+        AC_MSG_RESULT([yes])
+       ifelse([$3], , :, [$3])
+fi[]dnl
+])# PKG_CHECK_MODULES
diff --git a/missing b/missing
new file mode 100755 (executable)
index 0000000..cdea514
--- /dev/null
+++ b/missing
@@ -0,0 +1,215 @@
+#! /bin/sh
+# Common wrapper for a few potentially missing GNU programs.
+
+scriptversion=2012-06-26.16; # UTC
+
+# Copyright (C) 1996-2013 Free Software Foundation, Inc.
+# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+if test $# -eq 0; then
+  echo 1>&2 "Try '$0 --help' for more information"
+  exit 1
+fi
+
+case $1 in
+
+  --is-lightweight)
+    # Used by our autoconf macros to check whether the available missing
+    # script is modern enough.
+    exit 0
+    ;;
+
+  --run)
+    # Back-compat with the calling convention used by older automake.
+    shift
+    ;;
+
+  -h|--h|--he|--hel|--help)
+    echo "\
+$0 [OPTION]... PROGRAM [ARGUMENT]...
+
+Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
+to PROGRAM being missing or too old.
+
+Options:
+  -h, --help      display this help and exit
+  -v, --version   output version information and exit
+
+Supported PROGRAM values:
+  aclocal   autoconf  autoheader   autom4te  automake  makeinfo
+  bison     yacc      flex         lex       help2man
+
+Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
+'g' are ignored when checking the name.
+
+Send bug reports to <bug-automake@gnu.org>."
+    exit $?
+    ;;
+
+  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+    echo "missing $scriptversion (GNU Automake)"
+    exit $?
+    ;;
+
+  -*)
+    echo 1>&2 "$0: unknown '$1' option"
+    echo 1>&2 "Try '$0 --help' for more information"
+    exit 1
+    ;;
+
+esac
+
+# Run the given program, remember its exit status.
+"$@"; st=$?
+
+# If it succeeded, we are done.
+test $st -eq 0 && exit 0
+
+# Also exit now if we it failed (or wasn't found), and '--version' was
+# passed; such an option is passed most likely to detect whether the
+# program is present and works.
+case $2 in --version|--help) exit $st;; esac
+
+# Exit code 63 means version mismatch.  This often happens when the user
+# tries to use an ancient version of a tool on a file that requires a
+# minimum version.
+if test $st -eq 63; then
+  msg="probably too old"
+elif test $st -eq 127; then
+  # Program was missing.
+  msg="missing on your system"
+else
+  # Program was found and executed, but failed.  Give up.
+  exit $st
+fi
+
+perl_URL=http://www.perl.org/
+flex_URL=http://flex.sourceforge.net/
+gnu_software_URL=http://www.gnu.org/software
+
+program_details ()
+{
+  case $1 in
+    aclocal|automake)
+      echo "The '$1' program is part of the GNU Automake package:"
+      echo "<$gnu_software_URL/automake>"
+      echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
+      echo "<$gnu_software_URL/autoconf>"
+      echo "<$gnu_software_URL/m4/>"
+      echo "<$perl_URL>"
+      ;;
+    autoconf|autom4te|autoheader)
+      echo "The '$1' program is part of the GNU Autoconf package:"
+      echo "<$gnu_software_URL/autoconf/>"
+      echo "It also requires GNU m4 and Perl in order to run:"
+      echo "<$gnu_software_URL/m4/>"
+      echo "<$perl_URL>"
+      ;;
+  esac
+}
+
+give_advice ()
+{
+  # Normalize program name to check for.
+  normalized_program=`echo "$1" | sed '
+    s/^gnu-//; t
+    s/^gnu//; t
+    s/^g//; t'`
+
+  printf '%s\n' "'$1' is $msg."
+
+  configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
+  case $normalized_program in
+    autoconf*)
+      echo "You should only need it if you modified 'configure.ac',"
+      echo "or m4 files included by it."
+      program_details 'autoconf'
+      ;;
+    autoheader*)
+      echo "You should only need it if you modified 'acconfig.h' or"
+      echo "$configure_deps."
+      program_details 'autoheader'
+      ;;
+    automake*)
+      echo "You should only need it if you modified 'Makefile.am' or"
+      echo "$configure_deps."
+      program_details 'automake'
+      ;;
+    aclocal*)
+      echo "You should only need it if you modified 'acinclude.m4' or"
+      echo "$configure_deps."
+      program_details 'aclocal'
+      ;;
+   autom4te*)
+      echo "You might have modified some maintainer files that require"
+      echo "the 'automa4te' program to be rebuilt."
+      program_details 'autom4te'
+      ;;
+    bison*|yacc*)
+      echo "You should only need it if you modified a '.y' file."
+      echo "You may want to install the GNU Bison package:"
+      echo "<$gnu_software_URL/bison/>"
+      ;;
+    lex*|flex*)
+      echo "You should only need it if you modified a '.l' file."
+      echo "You may want to install the Fast Lexical Analyzer package:"
+      echo "<$flex_URL>"
+      ;;
+    help2man*)
+      echo "You should only need it if you modified a dependency" \
+           "of a man page."
+      echo "You may want to install the GNU Help2man package:"
+      echo "<$gnu_software_URL/help2man/>"
+    ;;
+    makeinfo*)
+      echo "You should only need it if you modified a '.texi' file, or"
+      echo "any other file indirectly affecting the aspect of the manual."
+      echo "You might want to install the Texinfo package:"
+      echo "<$gnu_software_URL/texinfo/>"
+      echo "The spurious makeinfo call might also be the consequence of"
+      echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
+      echo "want to install GNU make:"
+      echo "<$gnu_software_URL/make/>"
+      ;;
+    *)
+      echo "You might have modified some files without having the proper"
+      echo "tools for further handling them.  Check the 'README' file, it"
+      echo "often tells you about the needed prerequisites for installing"
+      echo "this package.  You may also peek at any GNU archive site, in"
+      echo "case some other package contains this missing '$1' program."
+      ;;
+  esac
+}
+
+give_advice "$1" | sed -e '1s/^/WARNING: /' \
+                       -e '2,$s/^/         /' >&2
+
+# Propagate the correct exit status (expected to be 127 for a program
+# not found, 63 for a program that failed due to version mismatch).
+exit $st
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644 (file)
index 0000000..ba07ac5
--- /dev/null
@@ -0,0 +1,403 @@
+# Process this file with automake to produce Makefile.in
+
+NULL =
+SUBDIRS =
+DIST_SUBDIRS =
+BUILT_SOURCES =
+EXTRA_DIST =
+CLEANFILES =
+DISTCLEANFILES =
+MAINTAINERCLEANFILES =
+DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
+
+# The following warning options are useful for debugging: -Wpadded
+#AM_CXXFLAGS =
+
+lib_LTLIBRARIES = libharfbuzz.la
+
+HBCFLAGS =
+HBLIBS =
+HBSOURCES =  \
+       hb-atomic-private.hh \
+       hb-blob.cc \
+       hb-buffer-deserialize-json.hh \
+       hb-buffer-deserialize-text.hh \
+       hb-buffer-private.hh \
+       hb-buffer-serialize.cc \
+       hb-buffer.cc \
+       hb-cache-private.hh \
+       hb-common.cc \
+       hb-face-private.hh \
+       hb-face.cc \
+       hb-font-private.hh \
+       hb-font.cc \
+       hb-mutex-private.hh \
+       hb-object-private.hh \
+       hb-open-file-private.hh \
+       hb-open-type-private.hh \
+       hb-ot-cmap-table.hh \
+       hb-ot-head-table.hh \
+       hb-ot-hhea-table.hh \
+       hb-ot-hmtx-table.hh \
+       hb-ot-maxp-table.hh \
+       hb-ot-name-table.hh \
+       hb-ot-tag.cc \
+       hb-private.hh \
+       hb-set-private.hh \
+       hb-set.cc \
+       hb-shape.cc \
+       hb-shape-plan-private.hh \
+       hb-shape-plan.cc \
+       hb-shaper-list.hh \
+       hb-shaper-impl-private.hh \
+       hb-shaper-private.hh \
+       hb-shaper.cc \
+       hb-unicode-private.hh \
+       hb-unicode.cc \
+       hb-utf-private.hh \
+       hb-warning.cc \
+       $(NULL)
+HBHEADERS = \
+       hb.h \
+       hb-blob.h \
+       hb-buffer.h \
+       hb-common.h \
+       hb-deprecated.h \
+       hb-face.h \
+       hb-font.h \
+       hb-set.h \
+       hb-shape.h \
+       hb-shape-plan.h \
+       hb-unicode.h \
+       $(NULL)
+HBNODISTHEADERS = \
+       hb-version.h \
+       $(NULL)
+
+if HAVE_OT
+HBSOURCES += \
+       hb-ot-font.cc \
+       hb-ot-layout.cc \
+       hb-ot-layout-common-private.hh \
+       hb-ot-layout-gdef-table.hh \
+       hb-ot-layout-gpos-table.hh \
+       hb-ot-layout-gsubgpos-private.hh \
+       hb-ot-layout-gsub-table.hh \
+       hb-ot-layout-jstf-table.hh \
+       hb-ot-layout-private.hh \
+       hb-ot-map.cc \
+       hb-ot-map-private.hh \
+       hb-ot-shape.cc \
+       hb-ot-shape-complex-arabic.cc \
+       hb-ot-shape-complex-arabic-fallback.hh \
+       hb-ot-shape-complex-arabic-table.hh \
+       hb-ot-shape-complex-arabic-win1256.hh \
+       hb-ot-shape-complex-default.cc \
+       hb-ot-shape-complex-hangul.cc \
+       hb-ot-shape-complex-hebrew.cc \
+       hb-ot-shape-complex-indic.cc \
+       hb-ot-shape-complex-indic-machine.hh \
+       hb-ot-shape-complex-indic-private.hh \
+       hb-ot-shape-complex-indic-table.cc \
+       hb-ot-shape-complex-myanmar.cc \
+       hb-ot-shape-complex-myanmar-machine.hh \
+       hb-ot-shape-complex-sea.cc \
+       hb-ot-shape-complex-sea-machine.hh \
+       hb-ot-shape-complex-thai.cc \
+       hb-ot-shape-complex-tibetan.cc \
+       hb-ot-shape-complex-private.hh \
+       hb-ot-shape-normalize-private.hh \
+       hb-ot-shape-normalize.cc \
+       hb-ot-shape-fallback-private.hh \
+       hb-ot-shape-fallback.cc \
+       hb-ot-shape-private.hh \
+       $(NULL)
+HBHEADERS += \
+       hb-ot.h \
+       hb-ot-font.h \
+       hb-ot-layout.h \
+       hb-ot-shape.h \
+       hb-ot-tag.h \
+       $(NULL)
+endif
+
+if HAVE_FALLBACK
+HBSOURCES += hb-fallback-shape.cc
+endif
+
+if HAVE_PTHREAD
+HBCFLAGS += $(PTHREAD_CFLAGS)
+HBLIBS   += $(PTHREAD_LIBS)
+endif
+
+if HAVE_GLIB
+HBCFLAGS += $(GLIB_CFLAGS)
+HBLIBS   += $(GLIB_LIBS)
+HBSOURCES += hb-glib.cc
+HBHEADERS += hb-glib.h
+endif
+
+if HAVE_FREETYPE
+HBCFLAGS += $(FREETYPE_CFLAGS)
+HBLIBS   += $(FREETYPE_LIBS)
+HBSOURCES += hb-ft.cc
+HBHEADERS += hb-ft.h
+endif
+
+if HAVE_GRAPHITE2
+HBCFLAGS += $(GRAPHITE2_CFLAGS)
+HBLIBS   += $(GRAPHITE2_LIBS)
+HBSOURCES += hb-graphite2.cc
+HBHEADERS += hb-graphite2.h
+endif
+
+if HAVE_UNISCRIBE
+HBCFLAGS += $(UNISCRIBE_CFLAGS)
+HBLIBS   += $(UNISCRIBE_LIBS)
+HBSOURCES += hb-uniscribe.cc
+HBHEADERS += hb-uniscribe.h
+endif
+
+if HAVE_CORETEXT
+HBCFLAGS += $(CORETEXT_CFLAGS)
+HBLIBS   += $(CORETEXT_LIBS)
+HBSOURCES += hb-coretext.cc
+HBHEADERS += hb-coretext.h
+endif
+
+if HAVE_UCDN
+SUBDIRS += hb-ucdn
+HBCFLAGS += -I$(srcdir)/hb-ucdn
+HBLIBS   += hb-ucdn/libhb-ucdn.la
+HBSOURCES += hb-ucdn.cc
+endif
+DIST_SUBDIRS += hb-ucdn
+
+
+# Put the library together
+
+if OS_WIN32
+export_symbols = -export-symbols harfbuzz.def
+harfbuzz_def_dependency = harfbuzz.def
+libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
+else
+# Use a C linker for GCC, not C++; Don't link to libstdc++
+if HAVE_GCC
+libharfbuzz_la_LINK = $(LINK) $(libharfbuzz_la_LDFLAGS)
+else
+libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
+endif
+endif
+
+libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS) $(HBNODISTHEADERS)
+libharfbuzz_la_CPPFLAGS = $(HBCFLAGS)
+libharfbuzz_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) $(export_symbols) -no-undefined
+libharfbuzz_la_LIBADD = $(HBLIBS)
+EXTRA_libharfbuzz_la_DEPENDENCIES = $(harfbuzz_def_dependency)
+pkginclude_HEADERS = $(HBHEADERS)
+nodist_pkginclude_HEADERS = $(HBNODISTHEADERS)
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = harfbuzz.pc
+EXTRA_DIST += harfbuzz.pc.in
+
+if HAVE_ICU
+lib_LTLIBRARIES += libharfbuzz-icu.la
+libharfbuzz_icu_la_SOURCES = hb-icu.cc
+libharfbuzz_icu_la_CPPFLAGS = $(ICU_CFLAGS)
+libharfbuzz_icu_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
+libharfbuzz_icu_la_LIBADD = $(ICU_LIBS) libharfbuzz.la
+pkginclude_HEADERS += hb-icu.h
+pkgconfig_DATA += harfbuzz-icu.pc
+endif
+EXTRA_DIST += harfbuzz-icu.pc.in
+
+if HAVE_GOBJECT
+lib_LTLIBRARIES += libharfbuzz-gobject.la
+libharfbuzz_gobject_la_SOURCES = hb-gobject-structs.cc
+nodist_libharfbuzz_gobject_la_SOURCES = hb-gobject-enums.cc
+libharfbuzz_gobject_la_CPPFLAGS = $(GOBJECT_CFLAGS)
+libharfbuzz_gobject_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
+libharfbuzz_gobject_la_LIBADD = $(GOBJECT_LIBS) libharfbuzz.la
+pkginclude_HEADERS += hb-gobject.h hb-gobject-structs.h
+nodist_pkginclude_HEADERS += hb-gobject-enums.h
+pkgconfig_DATA += harfbuzz-gobject.pc
+
+BUILT_SOURCES += \
+       hb-gobject-enums.cc \
+       hb-gobject-enums.h \
+       $(NULL)
+DISTCLEANFILES += \
+       hb-gobject-enums.cc \
+       hb-gobject-enums.h \
+       $(NULL)
+hb-gobject-enums.%: hb-gobject-enums.%.tmpl $(HBHEADERS)
+       $(AM_V_GEN) $(GLIB_MKENUMS) \
+               --identifier-prefix hb_ --symbol-prefix hb_gobject \
+               --template $^ | \
+       sed 's/_t_get_type/_get_type/g; s/_T (/ (/g' > "$@.tmp" && \
+       mv "$@.tmp" "$@" || ( $(RM) "@.tmp" && false )
+endif
+EXTRA_DIST += \
+       harfbuzz-gobject.pc.in \
+       hb-gobject-enums.cc.tmpl \
+       hb-gobject-enums.h.tmpl \
+       $(NULL)
+
+
+%.pc: %.pc.in $(top_builddir)/config.status
+       $(AM_V_GEN) \
+       $(SED)  -e 's@%prefix%@$(prefix)@g' \
+               -e 's@%exec_prefix%@$(exec_prefix)@g' \
+               -e 's@%libdir%@$(libdir)@g' \
+               -e 's@%includedir%@$(includedir)@g' \
+               -e 's@%VERSION%@$(VERSION)@g' \
+       "$<" \
+       > "$@.tmp" && mv "$@.tmp" "$@" || ( $(RM) "$@.tmp"; false )
+
+CLEANFILES += $(pkgconfig_DATA)
+
+
+CLEANFILES += harfbuzz.def
+harfbuzz.def: $(HBHEADERS) $(HBNODISTHEADERS)
+       $(AM_V_GEN) (echo EXPORTS; \
+       (cat $^ || echo 'hb_ERROR ()' ) | \
+       $(EGREP) '^hb_.* \(' | \
+       sed -e 's/ (.*//' | \
+       LANG=C sort; \
+       echo LIBRARY libharfbuzz-$(HB_VERSION_MAJOR).dll; \
+       ) >"$@.tmp"
+       @ ! grep -q hb_ERROR "$@.tmp" && mv "$@.tmp" "$@" || ($(RM) "$@"; false)
+
+
+GENERATORS = \
+       gen-arabic-table.py \
+       gen-indic-table.py \
+       $(NULL)
+EXTRA_DIST += $(GENERATORS)
+
+unicode-tables: arabic-table indic-table
+
+indic-table: gen-indic-table.py IndicSyllabicCategory.txt IndicMatraCategory.txt Blocks.txt
+       $(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-indic-table.cc.tmp && \
+       mv hb-ot-shape-complex-indic-table.cc.tmp $(srcdir)/hb-ot-shape-complex-indic-table.cc || \
+       ($(RM) hb-ot-shape-complex-indic-table.cc.tmp; false)
+
+arabic-table: gen-arabic-table.py ArabicShaping.txt UnicodeData.txt Blocks.txt
+       $(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-arabic-table.hh.tmp && \
+       mv hb-ot-shape-complex-arabic-table.hh.tmp $(srcdir)/hb-ot-shape-complex-arabic-table.hh || \
+       ($(RM) hb-ot-shape-complex-arabic-table.hh.tmp; false)
+
+built-sources: $(BUILT_SOURCES)
+
+.PHONY: unicode-tables arabic-table indic-table built-sources
+
+BUILT_SOURCES += \
+       hb-buffer-deserialize-json.hh \
+       hb-buffer-deserialize-text.hh \
+       hb-ot-shape-complex-indic-machine.hh \
+       hb-ot-shape-complex-myanmar-machine.hh \
+       hb-ot-shape-complex-sea-machine.hh \
+       $(NULL)
+EXTRA_DIST += \
+       hb-buffer-deserialize-json.rl \
+       hb-buffer-deserialize-text.rl \
+       hb-ot-shape-complex-indic-machine.rl \
+       hb-ot-shape-complex-myanmar-machine.rl \
+       hb-ot-shape-complex-sea-machine.rl \
+       $(NULL)
+.rl.hh:
+       $(AM_V_GEN)$(RAGEL) -e -F1 -o "$@.tmp" "$<" && \
+       mv "$@.tmp" "$@" || ( $(RM) "$@.tmp" && false )
+
+noinst_PROGRAMS = \
+       main \
+       test \
+       test-buffer-serialize \
+       test-size-params \
+       test-would-substitute \
+       $(NULL)
+bin_PROGRAMS =
+
+main_SOURCES = main.cc
+main_CPPFLAGS = $(HBCFLAGS)
+main_LDADD = libharfbuzz.la $(HBLIBS)
+
+test_SOURCES = test.cc
+test_CPPFLAGS = $(HBCFLAGS) $(FREETYPE_CFLAGS)
+test_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
+
+test_would_substitute_SOURCES = test-would-substitute.cc
+test_would_substitute_CPPFLAGS = $(HBCFLAGS) $(FREETYPE_CFLAGS)
+test_would_substitute_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
+
+test_size_params_SOURCES = test-size-params.cc
+test_size_params_CPPFLAGS = $(HBCFLAGS)
+test_size_params_LDADD = libharfbuzz.la $(HBLIBS)
+
+test_buffer_serialize_SOURCES = test-buffer-serialize.cc
+test_buffer_serialize_CPPFLAGS = $(HBCFLAGS)
+test_buffer_serialize_LDADD = libharfbuzz.la $(HBLIBS)
+
+dist_check_SCRIPTS = \
+       check-c-linkage-decls.sh \
+       check-defs.sh \
+       check-header-guards.sh \
+       check-includes.sh \
+       check-libstdc++.sh \
+       check-static-inits.sh \
+       check-symbols.sh \
+       $(NULL)
+
+TESTS = $(dist_check_SCRIPTS)
+TESTS_ENVIRONMENT = \
+       srcdir="$(srcdir)" \
+       MAKE="$(MAKE) $(AM_MAKEFLAGS)" \
+       HBSOURCES="$(HBSOURCES)" \
+       HBHEADERS="$(HBHEADERS) $(HBNODISTHEADERS)" \
+       $(NULL)
+
+if HAVE_INTROSPECTION
+
+-include $(INTROSPECTION_MAKEFILE)
+INTROSPECTION_GIRS = HarfBuzz-$(HB_VERSION_MAJOR).0.gir # What does the 0 mean anyway?!
+INTROSPECTION_SCANNER_ARGS = -I$(srcdir) -n hb --identifier-prefix=hb_ --warn-all
+INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
+INTROSPECTION_SCANNER_ENV = CC="$(CC)"
+
+HarfBuzz-0.0.gir: libharfbuzz.la libharfbuzz-gobject.la
+HarfBuzz_0_0_gir_INCLUDES = GObject-2.0
+HarfBuzz_0_0_gir_CFLAGS = \
+       $(INCLUDES) \
+       $(HBCFLAGS) \
+       -DHB_H \
+       -DHB_H_IN \
+       -DHB_OT_H \
+       -DHB_OT_H_IN \
+       -DHB_GOBJECT_H \
+       -DHB_GOBJECT_H_IN \
+       $(NULL)
+HarfBuzz_0_0_gir_LIBS = \
+       libharfbuzz.la \
+       libharfbuzz-gobject.la \
+       $(NULL)
+HarfBuzz_0_0_gir_FILES = \
+       $(HBHEADERS) \
+       $(HBNODISTHEADERS) \
+       $(HBSOURCES) \
+       hb-gobject-enums.cc \
+       hb-gobject-enums.h \
+       hb-gobject-structs.cc \
+       hb-gobject-structs.h \
+       $(NULL)
+
+girdir = $(datadir)/gir-1.0
+gir_DATA = $(INTROSPECTION_GIRS)
+
+typelibdir = $(libdir)/girepository-1.0
+typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+
+CLEANFILES += $(gir_DATA) $(typelib_DATA)
+
+endif
+
+-include $(top_srcdir)/git.mk
diff --git a/src/Makefile.in b/src/Makefile.in
new file mode 100644 (file)
index 0000000..703d994
--- /dev/null
@@ -0,0 +1,2279 @@
+# Makefile.in generated by automake 1.14 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# Process this file with automake to produce Makefile.in
+
+
+
+
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \  ]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs  ]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+@HAVE_OT_TRUE@am__append_1 = \
+@HAVE_OT_TRUE@ hb-ot-font.cc \
+@HAVE_OT_TRUE@ hb-ot-layout.cc \
+@HAVE_OT_TRUE@ hb-ot-layout-common-private.hh \
+@HAVE_OT_TRUE@ hb-ot-layout-gdef-table.hh \
+@HAVE_OT_TRUE@ hb-ot-layout-gpos-table.hh \
+@HAVE_OT_TRUE@ hb-ot-layout-gsubgpos-private.hh \
+@HAVE_OT_TRUE@ hb-ot-layout-gsub-table.hh \
+@HAVE_OT_TRUE@ hb-ot-layout-jstf-table.hh \
+@HAVE_OT_TRUE@ hb-ot-layout-private.hh \
+@HAVE_OT_TRUE@ hb-ot-map.cc \
+@HAVE_OT_TRUE@ hb-ot-map-private.hh \
+@HAVE_OT_TRUE@ hb-ot-shape.cc \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-arabic.cc \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-arabic-fallback.hh \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-arabic-table.hh \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-arabic-win1256.hh \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-default.cc \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-hangul.cc \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-hebrew.cc \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-indic.cc \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-indic-machine.hh \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-indic-private.hh \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-indic-table.cc \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-myanmar.cc \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-myanmar-machine.hh \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-sea.cc \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-sea-machine.hh \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-thai.cc \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-tibetan.cc \
+@HAVE_OT_TRUE@ hb-ot-shape-complex-private.hh \
+@HAVE_OT_TRUE@ hb-ot-shape-normalize-private.hh \
+@HAVE_OT_TRUE@ hb-ot-shape-normalize.cc \
+@HAVE_OT_TRUE@ hb-ot-shape-fallback-private.hh \
+@HAVE_OT_TRUE@ hb-ot-shape-fallback.cc \
+@HAVE_OT_TRUE@ hb-ot-shape-private.hh \
+@HAVE_OT_TRUE@ $(NULL)
+
+@HAVE_OT_TRUE@am__append_2 = \
+@HAVE_OT_TRUE@ hb-ot.h \
+@HAVE_OT_TRUE@ hb-ot-font.h \
+@HAVE_OT_TRUE@ hb-ot-layout.h \
+@HAVE_OT_TRUE@ hb-ot-shape.h \
+@HAVE_OT_TRUE@ hb-ot-tag.h \
+@HAVE_OT_TRUE@ $(NULL)
+
+@HAVE_FALLBACK_TRUE@am__append_3 = hb-fallback-shape.cc
+@HAVE_PTHREAD_TRUE@am__append_4 = $(PTHREAD_CFLAGS)
+@HAVE_PTHREAD_TRUE@am__append_5 = $(PTHREAD_LIBS)
+@HAVE_GLIB_TRUE@am__append_6 = $(GLIB_CFLAGS)
+@HAVE_GLIB_TRUE@am__append_7 = $(GLIB_LIBS)
+@HAVE_GLIB_TRUE@am__append_8 = hb-glib.cc
+@HAVE_GLIB_TRUE@am__append_9 = hb-glib.h
+@HAVE_FREETYPE_TRUE@am__append_10 = $(FREETYPE_CFLAGS)
+@HAVE_FREETYPE_TRUE@am__append_11 = $(FREETYPE_LIBS)
+@HAVE_FREETYPE_TRUE@am__append_12 = hb-ft.cc
+@HAVE_FREETYPE_TRUE@am__append_13 = hb-ft.h
+@HAVE_GRAPHITE2_TRUE@am__append_14 = $(GRAPHITE2_CFLAGS)
+@HAVE_GRAPHITE2_TRUE@am__append_15 = $(GRAPHITE2_LIBS)
+@HAVE_GRAPHITE2_TRUE@am__append_16 = hb-graphite2.cc
+@HAVE_GRAPHITE2_TRUE@am__append_17 = hb-graphite2.h
+@HAVE_UNISCRIBE_TRUE@am__append_18 = $(UNISCRIBE_CFLAGS)
+@HAVE_UNISCRIBE_TRUE@am__append_19 = $(UNISCRIBE_LIBS)
+@HAVE_UNISCRIBE_TRUE@am__append_20 = hb-uniscribe.cc
+@HAVE_UNISCRIBE_TRUE@am__append_21 = hb-uniscribe.h
+@HAVE_CORETEXT_TRUE@am__append_22 = $(CORETEXT_CFLAGS)
+@HAVE_CORETEXT_TRUE@am__append_23 = $(CORETEXT_LIBS)
+@HAVE_CORETEXT_TRUE@am__append_24 = hb-coretext.cc
+@HAVE_CORETEXT_TRUE@am__append_25 = hb-coretext.h
+@HAVE_UCDN_TRUE@am__append_26 = hb-ucdn
+@HAVE_UCDN_TRUE@am__append_27 = -I$(srcdir)/hb-ucdn
+@HAVE_UCDN_TRUE@am__append_28 = hb-ucdn/libhb-ucdn.la
+@HAVE_UCDN_TRUE@am__append_29 = hb-ucdn.cc
+@HAVE_ICU_TRUE@am__append_30 = libharfbuzz-icu.la
+@HAVE_ICU_TRUE@am__append_31 = hb-icu.h
+@HAVE_ICU_TRUE@am__append_32 = harfbuzz-icu.pc
+@HAVE_GOBJECT_TRUE@am__append_33 = libharfbuzz-gobject.la
+@HAVE_GOBJECT_TRUE@am__append_34 = hb-gobject.h hb-gobject-structs.h
+@HAVE_GOBJECT_TRUE@am__append_35 = hb-gobject-enums.h
+@HAVE_GOBJECT_TRUE@am__append_36 = harfbuzz-gobject.pc
+@HAVE_GOBJECT_TRUE@am__append_37 = \
+@HAVE_GOBJECT_TRUE@    hb-gobject-enums.cc \
+@HAVE_GOBJECT_TRUE@    hb-gobject-enums.h \
+@HAVE_GOBJECT_TRUE@    $(NULL)
+
+@HAVE_GOBJECT_TRUE@am__append_38 = \
+@HAVE_GOBJECT_TRUE@    hb-gobject-enums.cc \
+@HAVE_GOBJECT_TRUE@    hb-gobject-enums.h \
+@HAVE_GOBJECT_TRUE@    $(NULL)
+
+noinst_PROGRAMS = main$(EXEEXT) test$(EXEEXT) \
+       test-buffer-serialize$(EXEEXT) test-size-params$(EXEEXT) \
+       test-would-substitute$(EXEEXT) $(am__EXEEXT_1)
+bin_PROGRAMS =
+TESTS = $(am__EXEEXT_2)
+@HAVE_INTROSPECTION_TRUE@am__append_39 = $(gir_DATA) $(typelib_DATA)
+subdir = src
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
+       $(srcdir)/hb-version.h.in $(dist_check_SCRIPTS) \
+       $(top_srcdir)/depcomp $(am__pkginclude_HEADERS_DIST) \
+       $(top_srcdir)/test-driver
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ax_pthread.m4 \
+       $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
+       $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+       $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+       $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+       $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES = hb-version.h
+CONFIG_CLEAN_VPATH_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+    *) f=$$p;; \
+  esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+  for p in $$list; do echo "$$p $$p"; done | \
+  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+    if (++n[$$2] == $(am__install_max)) \
+      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+    END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+  test -z "$$files" \
+    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+         $(am__cd) "$$dir" && rm -f $$files; }; \
+  }
+am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
+       "$(DESTDIR)$(girdir)" "$(DESTDIR)$(pkgconfigdir)" \
+       "$(DESTDIR)$(typelibdir)" "$(DESTDIR)$(pkgincludedir)" \
+       "$(DESTDIR)$(pkgincludedir)"
+LTLIBRARIES = $(lib_LTLIBRARIES)
+am__DEPENDENCIES_1 =
+@HAVE_GOBJECT_TRUE@libharfbuzz_gobject_la_DEPENDENCIES =  \
+@HAVE_GOBJECT_TRUE@    $(am__DEPENDENCIES_1) libharfbuzz.la
+am__libharfbuzz_gobject_la_SOURCES_DIST = hb-gobject-structs.cc
+@HAVE_GOBJECT_TRUE@am_libharfbuzz_gobject_la_OBJECTS = libharfbuzz_gobject_la-hb-gobject-structs.lo
+@HAVE_GOBJECT_TRUE@nodist_libharfbuzz_gobject_la_OBJECTS =  \
+@HAVE_GOBJECT_TRUE@    libharfbuzz_gobject_la-hb-gobject-enums.lo
+libharfbuzz_gobject_la_OBJECTS = $(am_libharfbuzz_gobject_la_OBJECTS) \
+       $(nodist_libharfbuzz_gobject_la_OBJECTS)
+AM_V_lt = $(am__v_lt_@AM_V@)
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+am__v_lt_0 = --silent
+am__v_lt_1 = 
+libharfbuzz_gobject_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
+       $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
+       $(AM_CXXFLAGS) $(CXXFLAGS) $(libharfbuzz_gobject_la_LDFLAGS) \
+       $(LDFLAGS) -o $@
+@HAVE_GOBJECT_TRUE@am_libharfbuzz_gobject_la_rpath = -rpath $(libdir)
+@HAVE_ICU_TRUE@libharfbuzz_icu_la_DEPENDENCIES =  \
+@HAVE_ICU_TRUE@        $(am__DEPENDENCIES_1) libharfbuzz.la
+am__libharfbuzz_icu_la_SOURCES_DIST = hb-icu.cc
+@HAVE_ICU_TRUE@am_libharfbuzz_icu_la_OBJECTS =  \
+@HAVE_ICU_TRUE@        libharfbuzz_icu_la-hb-icu.lo
+libharfbuzz_icu_la_OBJECTS = $(am_libharfbuzz_icu_la_OBJECTS)
+libharfbuzz_icu_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
+       $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
+       $(AM_CXXFLAGS) $(CXXFLAGS) $(libharfbuzz_icu_la_LDFLAGS) \
+       $(LDFLAGS) -o $@
+@HAVE_ICU_TRUE@am_libharfbuzz_icu_la_rpath = -rpath $(libdir)
+@HAVE_PTHREAD_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1)
+@HAVE_GLIB_TRUE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1)
+@HAVE_FREETYPE_TRUE@am__DEPENDENCIES_4 = $(am__DEPENDENCIES_1)
+@HAVE_GRAPHITE2_TRUE@am__DEPENDENCIES_5 = $(am__DEPENDENCIES_1)
+@HAVE_UNISCRIBE_TRUE@am__DEPENDENCIES_6 = $(am__DEPENDENCIES_1)
+@HAVE_CORETEXT_TRUE@am__DEPENDENCIES_7 = $(am__DEPENDENCIES_1)
+am__DEPENDENCIES_8 = $(am__DEPENDENCIES_2) $(am__DEPENDENCIES_3) \
+       $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_5) \
+       $(am__DEPENDENCIES_6) $(am__DEPENDENCIES_7) $(am__append_28)
+libharfbuzz_la_DEPENDENCIES = $(am__DEPENDENCIES_8)
+am__libharfbuzz_la_SOURCES_DIST = hb-atomic-private.hh hb-blob.cc \
+       hb-buffer-deserialize-json.hh hb-buffer-deserialize-text.hh \
+       hb-buffer-private.hh hb-buffer-serialize.cc hb-buffer.cc \
+       hb-cache-private.hh hb-common.cc hb-face-private.hh hb-face.cc \
+       hb-font-private.hh hb-font.cc hb-mutex-private.hh \
+       hb-object-private.hh hb-open-file-private.hh \
+       hb-open-type-private.hh hb-ot-cmap-table.hh \
+       hb-ot-head-table.hh hb-ot-hhea-table.hh hb-ot-hmtx-table.hh \
+       hb-ot-maxp-table.hh hb-ot-name-table.hh hb-ot-tag.cc \
+       hb-private.hh hb-set-private.hh hb-set.cc hb-shape.cc \
+       hb-shape-plan-private.hh hb-shape-plan.cc hb-shaper-list.hh \
+       hb-shaper-impl-private.hh hb-shaper-private.hh hb-shaper.cc \
+       hb-unicode-private.hh hb-unicode.cc hb-utf-private.hh \
+       hb-warning.cc hb-ot-font.cc hb-ot-layout.cc \
+       hb-ot-layout-common-private.hh hb-ot-layout-gdef-table.hh \
+       hb-ot-layout-gpos-table.hh hb-ot-layout-gsubgpos-private.hh \
+       hb-ot-layout-gsub-table.hh hb-ot-layout-jstf-table.hh \
+       hb-ot-layout-private.hh hb-ot-map.cc hb-ot-map-private.hh \
+       hb-ot-shape.cc hb-ot-shape-complex-arabic.cc \
+       hb-ot-shape-complex-arabic-fallback.hh \
+       hb-ot-shape-complex-arabic-table.hh \
+       hb-ot-shape-complex-arabic-win1256.hh \
+       hb-ot-shape-complex-default.cc hb-ot-shape-complex-hangul.cc \
+       hb-ot-shape-complex-hebrew.cc hb-ot-shape-complex-indic.cc \
+       hb-ot-shape-complex-indic-machine.hh \
+       hb-ot-shape-complex-indic-private.hh \
+       hb-ot-shape-complex-indic-table.cc \
+       hb-ot-shape-complex-myanmar.cc \
+       hb-ot-shape-complex-myanmar-machine.hh \
+       hb-ot-shape-complex-sea.cc hb-ot-shape-complex-sea-machine.hh \
+       hb-ot-shape-complex-thai.cc hb-ot-shape-complex-tibetan.cc \
+       hb-ot-shape-complex-private.hh \
+       hb-ot-shape-normalize-private.hh hb-ot-shape-normalize.cc \
+       hb-ot-shape-fallback-private.hh hb-ot-shape-fallback.cc \
+       hb-ot-shape-private.hh hb-fallback-shape.cc hb-glib.cc \
+       hb-ft.cc hb-graphite2.cc hb-uniscribe.cc hb-coretext.cc \
+       hb-ucdn.cc hb.h hb-blob.h hb-buffer.h hb-common.h \
+       hb-deprecated.h hb-face.h hb-font.h hb-set.h hb-shape.h \
+       hb-shape-plan.h hb-unicode.h hb-ot.h hb-ot-font.h \
+       hb-ot-layout.h hb-ot-shape.h hb-ot-tag.h hb-glib.h hb-ft.h \
+       hb-graphite2.h hb-uniscribe.h hb-coretext.h hb-version.h
+am__objects_1 =
+@HAVE_OT_TRUE@am__objects_2 = libharfbuzz_la-hb-ot-font.lo \
+@HAVE_OT_TRUE@ libharfbuzz_la-hb-ot-layout.lo \
+@HAVE_OT_TRUE@ libharfbuzz_la-hb-ot-map.lo \
+@HAVE_OT_TRUE@ libharfbuzz_la-hb-ot-shape.lo \
+@HAVE_OT_TRUE@ libharfbuzz_la-hb-ot-shape-complex-arabic.lo \
+@HAVE_OT_TRUE@ libharfbuzz_la-hb-ot-shape-complex-default.lo \
+@HAVE_OT_TRUE@ libharfbuzz_la-hb-ot-shape-complex-hangul.lo \
+@HAVE_OT_TRUE@ libharfbuzz_la-hb-ot-shape-complex-hebrew.lo \
+@HAVE_OT_TRUE@ libharfbuzz_la-hb-ot-shape-complex-indic.lo \
+@HAVE_OT_TRUE@ libharfbuzz_la-hb-ot-shape-complex-indic-table.lo \
+@HAVE_OT_TRUE@ libharfbuzz_la-hb-ot-shape-complex-myanmar.lo \
+@HAVE_OT_TRUE@ libharfbuzz_la-hb-ot-shape-complex-sea.lo \
+@HAVE_OT_TRUE@ libharfbuzz_la-hb-ot-shape-complex-thai.lo \
+@HAVE_OT_TRUE@ libharfbuzz_la-hb-ot-shape-complex-tibetan.lo \
+@HAVE_OT_TRUE@ libharfbuzz_la-hb-ot-shape-normalize.lo \
+@HAVE_OT_TRUE@ libharfbuzz_la-hb-ot-shape-fallback.lo \
+@HAVE_OT_TRUE@ $(am__objects_1)
+@HAVE_FALLBACK_TRUE@am__objects_3 =  \
+@HAVE_FALLBACK_TRUE@   libharfbuzz_la-hb-fallback-shape.lo
+@HAVE_GLIB_TRUE@am__objects_4 = libharfbuzz_la-hb-glib.lo
+@HAVE_FREETYPE_TRUE@am__objects_5 = libharfbuzz_la-hb-ft.lo
+@HAVE_GRAPHITE2_TRUE@am__objects_6 = libharfbuzz_la-hb-graphite2.lo
+@HAVE_UNISCRIBE_TRUE@am__objects_7 = libharfbuzz_la-hb-uniscribe.lo
+@HAVE_CORETEXT_TRUE@am__objects_8 = libharfbuzz_la-hb-coretext.lo
+@HAVE_UCDN_TRUE@am__objects_9 = libharfbuzz_la-hb-ucdn.lo
+am__objects_10 = libharfbuzz_la-hb-blob.lo \
+       libharfbuzz_la-hb-buffer-serialize.lo \
+       libharfbuzz_la-hb-buffer.lo libharfbuzz_la-hb-common.lo \
+       libharfbuzz_la-hb-face.lo libharfbuzz_la-hb-font.lo \
+       libharfbuzz_la-hb-ot-tag.lo libharfbuzz_la-hb-set.lo \
+       libharfbuzz_la-hb-shape.lo libharfbuzz_la-hb-shape-plan.lo \
+       libharfbuzz_la-hb-shaper.lo libharfbuzz_la-hb-unicode.lo \
+       libharfbuzz_la-hb-warning.lo $(am__objects_1) $(am__objects_2) \
+       $(am__objects_3) $(am__objects_4) $(am__objects_5) \
+       $(am__objects_6) $(am__objects_7) $(am__objects_8) \
+       $(am__objects_9)
+@HAVE_OT_TRUE@am__objects_11 = $(am__objects_1)
+am__objects_12 = $(am__objects_1) $(am__objects_11) $(am__objects_1) \
+       $(am__objects_1) $(am__objects_1) $(am__objects_1) \
+       $(am__objects_1)
+am__objects_13 = $(am__objects_1)
+am_libharfbuzz_la_OBJECTS = $(am__objects_10) $(am__objects_12) \
+       $(am__objects_13)
+libharfbuzz_la_OBJECTS = $(am_libharfbuzz_la_OBJECTS)
+am__EXEEXT_1 =
+PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
+am_main_OBJECTS = main-main.$(OBJEXT)
+main_OBJECTS = $(am_main_OBJECTS)
+main_DEPENDENCIES = libharfbuzz.la $(am__DEPENDENCIES_8)
+am_test_OBJECTS = test-test.$(OBJEXT)
+test_OBJECTS = $(am_test_OBJECTS)
+test_DEPENDENCIES = libharfbuzz.la $(am__DEPENDENCIES_8) \
+       $(am__DEPENDENCIES_1)
+am_test_buffer_serialize_OBJECTS =  \
+       test_buffer_serialize-test-buffer-serialize.$(OBJEXT)
+test_buffer_serialize_OBJECTS = $(am_test_buffer_serialize_OBJECTS)
+test_buffer_serialize_DEPENDENCIES = libharfbuzz.la \
+       $(am__DEPENDENCIES_8)
+am_test_size_params_OBJECTS =  \
+       test_size_params-test-size-params.$(OBJEXT)
+test_size_params_OBJECTS = $(am_test_size_params_OBJECTS)
+test_size_params_DEPENDENCIES = libharfbuzz.la $(am__DEPENDENCIES_8)
+am_test_would_substitute_OBJECTS =  \
+       test_would_substitute-test-would-substitute.$(OBJEXT)
+test_would_substitute_OBJECTS = $(am_test_would_substitute_OBJECTS)
+test_would_substitute_DEPENDENCIES = libharfbuzz.la \
+       $(am__DEPENDENCIES_8) $(am__DEPENDENCIES_1)
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+       $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
+       $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+       $(AM_CXXFLAGS) $(CXXFLAGS)
+AM_V_CXX = $(am__v_CXX_@AM_V@)
+am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
+am__v_CXX_0 = @echo "  CXX     " $@;
+am__v_CXX_1 = 
+CXXLD = $(CXX)
+CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
+       $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
+am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
+am__v_CXXLD_0 = @echo "  CXXLD   " $@;
+am__v_CXXLD_1 = 
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+       $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+       $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+       $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_@AM_V@)
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
+am__v_CC_0 = @echo "  CC      " $@;
+am__v_CC_1 = 
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_@AM_V@)
+am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
+am__v_CCLD_0 = @echo "  CCLD    " $@;
+am__v_CCLD_1 = 
+SOURCES = $(libharfbuzz_gobject_la_SOURCES) \
+       $(nodist_libharfbuzz_gobject_la_SOURCES) \
+       $(libharfbuzz_icu_la_SOURCES) $(libharfbuzz_la_SOURCES) \
+       $(main_SOURCES) $(test_SOURCES) \
+       $(test_buffer_serialize_SOURCES) $(test_size_params_SOURCES) \
+       $(test_would_substitute_SOURCES)
+DIST_SOURCES = $(am__libharfbuzz_gobject_la_SOURCES_DIST) \
+       $(am__libharfbuzz_icu_la_SOURCES_DIST) \
+       $(am__libharfbuzz_la_SOURCES_DIST) $(main_SOURCES) \
+       $(test_SOURCES) $(test_buffer_serialize_SOURCES) \
+       $(test_size_params_SOURCES) $(test_would_substitute_SOURCES)
+RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
+       ctags-recursive dvi-recursive html-recursive info-recursive \
+       install-data-recursive install-dvi-recursive \
+       install-exec-recursive install-html-recursive \
+       install-info-recursive install-pdf-recursive \
+       install-ps-recursive install-recursive installcheck-recursive \
+       installdirs-recursive pdf-recursive ps-recursive \
+       tags-recursive uninstall-recursive
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+DATA = $(gir_DATA) $(pkgconfig_DATA) $(typelib_DATA)
+am__pkginclude_HEADERS_DIST = hb.h hb-blob.h hb-buffer.h hb-common.h \
+       hb-deprecated.h hb-face.h hb-font.h hb-set.h hb-shape.h \
+       hb-shape-plan.h hb-unicode.h hb-ot.h hb-ot-font.h \
+       hb-ot-layout.h hb-ot-shape.h hb-ot-tag.h hb-glib.h hb-ft.h \
+       hb-graphite2.h hb-uniscribe.h hb-coretext.h hb-icu.h \
+       hb-gobject.h hb-gobject-structs.h
+HEADERS = $(nodist_pkginclude_HEADERS) $(pkginclude_HEADERS)
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive        \
+  distclean-recursive maintainer-clean-recursive
+am__recursive_targets = \
+  $(RECURSIVE_TARGETS) \
+  $(RECURSIVE_CLEAN_TARGETS) \
+  $(am__extra_recursive_targets)
+AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
+       check recheck distdir
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates.  Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+  BEGIN { nonempty = 0; } \
+  { items[$$0] = 1; nonempty = 1; } \
+  END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique.  This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+  list='$(am__tagged_files)'; \
+  unique=`for i in $$list; do \
+    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+  done | $(am__uniquify_input)`
+ETAGS = etags
+CTAGS = ctags
+am__tty_colors_dummy = \
+  mgn= red= grn= lgn= blu= brg= std=; \
+  am__color_tests=no
+am__tty_colors = { \
+  $(am__tty_colors_dummy); \
+  if test "X$(AM_COLOR_TESTS)" = Xno; then \
+    am__color_tests=no; \
+  elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
+    am__color_tests=yes; \
+  elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
+    am__color_tests=yes; \
+  fi; \
+  if test $$am__color_tests = yes; then \
+    red='\e[0;31m'; \
+    grn='\e[0;32m'; \
+    lgn='\e[1;32m'; \
+    blu='\e[1;34m'; \
+    mgn='\e[0;35m'; \
+    brg='\e[1m'; \
+    std='\e[m'; \
+  fi; \
+}
+am__recheck_rx = ^[    ]*:recheck:[    ]*
+am__global_test_result_rx = ^[         ]*:global-test-result:[         ]*
+am__copy_in_global_log_rx = ^[         ]*:copy-in-global-log:[         ]*
+# A command that, given a newline-separated list of test names on the
+# standard input, print the name of the tests that are to be re-run
+# upon "make recheck".
+am__list_recheck_tests = $(AWK) '{ \
+  recheck = 1; \
+  while ((rc = (getline line < ($$0 ".trs"))) != 0) \
+    { \
+      if (rc < 0) \
+        { \
+          if ((getline line2 < ($$0 ".log")) < 0) \
+           recheck = 0; \
+          break; \
+        } \
+      else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
+        { \
+          recheck = 0; \
+          break; \
+        } \
+      else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
+        { \
+          break; \
+        } \
+    }; \
+  if (recheck) \
+    print $$0; \
+  close ($$0 ".trs"); \
+  close ($$0 ".log"); \
+}'
+# A command that, given a newline-separated list of test names on the
+# standard input, create the global log from their .trs and .log files.
+am__create_global_log = $(AWK) ' \
+function fatal(msg) \
+{ \
+  print "fatal: making $@: " msg | "cat >&2"; \
+  exit 1; \
+} \
+function rst_section(header) \
+{ \
+  print header; \
+  len = length(header); \
+  for (i = 1; i <= len; i = i + 1) \
+    printf "="; \
+  printf "\n\n"; \
+} \
+{ \
+  copy_in_global_log = 1; \
+  global_test_result = "RUN"; \
+  while ((rc = (getline line < ($$0 ".trs"))) != 0) \
+    { \
+      if (rc < 0) \
+         fatal("failed to read from " $$0 ".trs"); \
+      if (line ~ /$(am__global_test_result_rx)/) \
+        { \
+          sub("$(am__global_test_result_rx)", "", line); \
+          sub("[       ]*$$", "", line); \
+          global_test_result = line; \
+        } \
+      else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
+        copy_in_global_log = 0; \
+    }; \
+  if (copy_in_global_log) \
+    { \
+      rst_section(global_test_result ": " $$0); \
+      while ((rc = (getline line < ($$0 ".log"))) != 0) \
+      { \
+        if (rc < 0) \
+          fatal("failed to read from " $$0 ".log"); \
+        print line; \
+      }; \
+      printf "\n"; \
+    }; \
+  close ($$0 ".trs"); \
+  close ($$0 ".log"); \
+}'
+# Restructured Text title.
+am__rst_title = { sed 's/.*/   &   /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
+# Solaris 10 'make', and several other traditional 'make' implementations,
+# pass "-e" to $(SHELL), and POSIX 2008 even requires this.  Work around it
+# by disabling -e (using the XSI extension "set +e") if it's set.
+am__sh_e_setup = case $$- in *e*) set +e;; esac
+# Default flags passed to test drivers.
+am__common_driver_flags = \
+  --color-tests "$$am__color_tests" \
+  --enable-hard-errors "$$am__enable_hard_errors" \
+  --expect-failure "$$am__expect_failure"
+# To be inserted before the command running the test.  Creates the
+# directory for the log if needed.  Stores in $dir the directory
+# containing $f, in $tst the test, in $log the log.  Executes the
+# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
+# passes TESTS_ENVIRONMENT.  Set up options for the wrapper that
+# will run the test scripts (or their associated LOG_COMPILER, if
+# thy have one).
+am__check_pre = \
+$(am__sh_e_setup);                                     \
+$(am__vpath_adj_setup) $(am__vpath_adj)                        \
+$(am__tty_colors);                                     \
+srcdir=$(srcdir); export srcdir;                       \
+case "$@" in                                           \
+  */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;;   \
+    *) am__odir=.;;                                    \
+esac;                                                  \
+test "x$$am__odir" = x"." || test -d "$$am__odir"      \
+  || $(MKDIR_P) "$$am__odir" || exit $$?;              \
+if test -f "./$$f"; then dir=./;                       \
+elif test -f "$$f"; then dir=;                         \
+else dir="$(srcdir)/"; fi;                             \
+tst=$$dir$$f; log='$@';                                \
+if test -n '$(DISABLE_HARD_ERRORS)'; then              \
+  am__enable_hard_errors=no;                           \
+else                                                   \
+  am__enable_hard_errors=yes;                          \
+fi;                                                    \
+case " $(XFAIL_TESTS) " in                             \
+  *[\ \        ]$$f[\ \        ]* | *[\ \      ]$$dir$$f[\ \   ]*) \
+    am__expect_failure=yes;;                           \
+  *)                                                   \
+    am__expect_failure=no;;                            \
+esac;                                                  \
+$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
+# A shell command to get the names of the tests scripts with any registered
+# extension removed (i.e., equivalently, the names of the test logs, with
+# the '.log' extension removed).  The result is saved in the shell variable
+# '$bases'.  This honors runtime overriding of TESTS and TEST_LOGS.  Sadly,
+# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
+# since that might cause problem with VPATH rewrites for suffix-less tests.
+# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
+am__set_TESTS_bases = \
+  bases='$(TEST_LOGS)'; \
+  bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
+  bases=`echo $$bases`
+RECHECK_LOGS = $(TEST_LOGS)
+am__EXEEXT_2 = check-c-linkage-decls.sh check-defs.sh \
+       check-header-guards.sh check-includes.sh check-libstdc++.sh \
+       check-static-inits.sh check-symbols.sh $(am__EXEEXT_1)
+TEST_SUITE_LOG = test-suite.log
+TEST_EXTENSIONS = @EXEEXT@ .test
+LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
+LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
+am__set_b = \
+  case '$@' in \
+    */*) \
+      case '$*' in \
+        */*) b='$*';; \
+          *) b=`echo '$@' | sed 's/\.log$$//'`; \
+       esac;; \
+    *) \
+      b='$*';; \
+  esac
+am__test_logs1 = $(TESTS:=.log)
+am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
+TEST_LOGS = $(am__test_logs2:.test.log=.log)
+TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
+TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
+       $(TEST_LOG_FLAGS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+am__relativize = \
+  dir0=`pwd`; \
+  sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+  sed_rest='s,^[^/]*/*,,'; \
+  sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+  sed_butlast='s,/*[^/]*$$,,'; \
+  while test -n "$$dir1"; do \
+    first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+    if test "$$first" != "."; then \
+      if test "$$first" = ".."; then \
+        dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+        dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+      else \
+        first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+        if test "$$first2" = "$$first"; then \
+          dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+        else \
+          dir2="../$$dir2"; \
+        fi; \
+        dir0="$$dir0"/"$$first"; \
+      fi; \
+    fi; \
+    dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+  done; \
+  reldir="$$dir2"
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_FT_CFLAGS = @CAIRO_FT_CFLAGS@
+CAIRO_FT_LIBS = @CAIRO_FT_LIBS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CORETEXT_CFLAGS = @CORETEXT_CFLAGS@
+CORETEXT_LIBS = @CORETEXT_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
+FREETYPE_LIBS = @FREETYPE_LIBS@
+GIT = @GIT@
+GLIB_CFLAGS = @GLIB_CFLAGS@
+GLIB_LIBS = @GLIB_LIBS@
+GLIB_MKENUMS = @GLIB_MKENUMS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GRAPHITE2_CFLAGS = @GRAPHITE2_CFLAGS@
+GRAPHITE2_LIBS = @GRAPHITE2_LIBS@
+GREP = @GREP@
+GTKDOC_CHECK = @GTKDOC_CHECK@
+GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
+GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
+GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
+GTKDOC_MKPDF = @GTKDOC_MKPDF@
+GTKDOC_REBASE = @GTKDOC_REBASE@
+HB_LIBTOOL_VERSION_INFO = @HB_LIBTOOL_VERSION_INFO@
+HB_VERSION = @HB_VERSION@
+HB_VERSION_MAJOR = @HB_VERSION_MAJOR@
+HB_VERSION_MICRO = @HB_VERSION_MICRO@
+HB_VERSION_MINOR = @HB_VERSION_MINOR@
+HTML_DIR = @HTML_DIR@
+ICU_CFLAGS = @ICU_CFLAGS@
+ICU_CONFIG = @ICU_CONFIG@
+ICU_LIBS = @ICU_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@
+INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@
+INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@
+INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@
+INTROSPECTION_LIBS = @INTROSPECTION_LIBS@
+INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@
+INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@
+INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PTHREAD_CC = @PTHREAD_CC@
+PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
+PTHREAD_LIBS = @PTHREAD_LIBS@
+RAGEL = @RAGEL@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UNISCRIBE_CFLAGS = @UNISCRIBE_CFLAGS@
+UNISCRIBE_LIBS = @UNISCRIBE_LIBS@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+ax_pthread_config = @ax_pthread_config@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+NULL = 
+SUBDIRS = $(am__append_26)
+DIST_SUBDIRS = hb-ucdn
+BUILT_SOURCES = $(am__append_37) hb-buffer-deserialize-json.hh \
+       hb-buffer-deserialize-text.hh \
+       hb-ot-shape-complex-indic-machine.hh \
+       hb-ot-shape-complex-myanmar-machine.hh \
+       hb-ot-shape-complex-sea-machine.hh $(NULL)
+EXTRA_DIST = harfbuzz.pc.in harfbuzz-icu.pc.in harfbuzz-gobject.pc.in \
+       hb-gobject-enums.cc.tmpl hb-gobject-enums.h.tmpl $(NULL) \
+       $(GENERATORS) hb-buffer-deserialize-json.rl \
+       hb-buffer-deserialize-text.rl \
+       hb-ot-shape-complex-indic-machine.rl \
+       hb-ot-shape-complex-myanmar-machine.rl \
+       hb-ot-shape-complex-sea-machine.rl $(NULL)
+CLEANFILES = $(pkgconfig_DATA) harfbuzz.def $(am__append_39)
+DISTCLEANFILES = $(am__append_38)
+MAINTAINERCLEANFILES = 
+DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
+
+# The following warning options are useful for debugging: -Wpadded
+#AM_CXXFLAGS =
+lib_LTLIBRARIES = libharfbuzz.la $(am__append_30) $(am__append_33)
+HBCFLAGS = $(am__append_4) $(am__append_6) $(am__append_10) \
+       $(am__append_14) $(am__append_18) $(am__append_22) \
+       $(am__append_27)
+HBLIBS = $(am__append_5) $(am__append_7) $(am__append_11) \
+       $(am__append_15) $(am__append_19) $(am__append_23) \
+       $(am__append_28)
+HBSOURCES = hb-atomic-private.hh hb-blob.cc \
+       hb-buffer-deserialize-json.hh hb-buffer-deserialize-text.hh \
+       hb-buffer-private.hh hb-buffer-serialize.cc hb-buffer.cc \
+       hb-cache-private.hh hb-common.cc hb-face-private.hh hb-face.cc \
+       hb-font-private.hh hb-font.cc hb-mutex-private.hh \
+       hb-object-private.hh hb-open-file-private.hh \
+       hb-open-type-private.hh hb-ot-cmap-table.hh \
+       hb-ot-head-table.hh hb-ot-hhea-table.hh hb-ot-hmtx-table.hh \
+       hb-ot-maxp-table.hh hb-ot-name-table.hh hb-ot-tag.cc \
+       hb-private.hh hb-set-private.hh hb-set.cc hb-shape.cc \
+       hb-shape-plan-private.hh hb-shape-plan.cc hb-shaper-list.hh \
+       hb-shaper-impl-private.hh hb-shaper-private.hh hb-shaper.cc \
+       hb-unicode-private.hh hb-unicode.cc hb-utf-private.hh \
+       hb-warning.cc $(NULL) $(am__append_1) $(am__append_3) \
+       $(am__append_8) $(am__append_12) $(am__append_16) \
+       $(am__append_20) $(am__append_24) $(am__append_29)
+HBHEADERS = hb.h hb-blob.h hb-buffer.h hb-common.h hb-deprecated.h \
+       hb-face.h hb-font.h hb-set.h hb-shape.h hb-shape-plan.h \
+       hb-unicode.h $(NULL) $(am__append_2) $(am__append_9) \
+       $(am__append_13) $(am__append_17) $(am__append_21) \
+       $(am__append_25)
+HBNODISTHEADERS = \
+       hb-version.h \
+       $(NULL)
+
+
+# Put the library together
+@OS_WIN32_TRUE@export_symbols = -export-symbols harfbuzz.def
+@OS_WIN32_TRUE@harfbuzz_def_dependency = harfbuzz.def
+@HAVE_GCC_FALSE@@OS_WIN32_FALSE@libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
+# Use a C linker for GCC, not C++; Don't link to libstdc++
+@HAVE_GCC_TRUE@@OS_WIN32_FALSE@libharfbuzz_la_LINK = $(LINK) $(libharfbuzz_la_LDFLAGS)
+@OS_WIN32_TRUE@libharfbuzz_la_LINK = $(CXXLINK) $(libharfbuzz_la_LDFLAGS)
+libharfbuzz_la_SOURCES = $(HBSOURCES) $(HBHEADERS) $(HBNODISTHEADERS)
+libharfbuzz_la_CPPFLAGS = $(HBCFLAGS)
+libharfbuzz_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) $(export_symbols) -no-undefined
+libharfbuzz_la_LIBADD = $(HBLIBS)
+EXTRA_libharfbuzz_la_DEPENDENCIES = $(harfbuzz_def_dependency)
+pkginclude_HEADERS = $(HBHEADERS) $(am__append_31) $(am__append_34)
+nodist_pkginclude_HEADERS = $(HBNODISTHEADERS) $(am__append_35)
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = harfbuzz.pc $(am__append_32) $(am__append_36)
+@HAVE_ICU_TRUE@libharfbuzz_icu_la_SOURCES = hb-icu.cc
+@HAVE_ICU_TRUE@libharfbuzz_icu_la_CPPFLAGS = $(ICU_CFLAGS)
+@HAVE_ICU_TRUE@libharfbuzz_icu_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
+@HAVE_ICU_TRUE@libharfbuzz_icu_la_LIBADD = $(ICU_LIBS) libharfbuzz.la
+@HAVE_GOBJECT_TRUE@libharfbuzz_gobject_la_SOURCES = hb-gobject-structs.cc
+@HAVE_GOBJECT_TRUE@nodist_libharfbuzz_gobject_la_SOURCES = hb-gobject-enums.cc
+@HAVE_GOBJECT_TRUE@libharfbuzz_gobject_la_CPPFLAGS = $(GOBJECT_CFLAGS)
+@HAVE_GOBJECT_TRUE@libharfbuzz_gobject_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(HB_LIBTOOL_VERSION_INFO) -no-undefined
+@HAVE_GOBJECT_TRUE@libharfbuzz_gobject_la_LIBADD = $(GOBJECT_LIBS) libharfbuzz.la
+GENERATORS = \
+       gen-arabic-table.py \
+       gen-indic-table.py \
+       $(NULL)
+
+main_SOURCES = main.cc
+main_CPPFLAGS = $(HBCFLAGS)
+main_LDADD = libharfbuzz.la $(HBLIBS)
+test_SOURCES = test.cc
+test_CPPFLAGS = $(HBCFLAGS) $(FREETYPE_CFLAGS)
+test_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
+test_would_substitute_SOURCES = test-would-substitute.cc
+test_would_substitute_CPPFLAGS = $(HBCFLAGS) $(FREETYPE_CFLAGS)
+test_would_substitute_LDADD = libharfbuzz.la $(HBLIBS) $(FREETYPE_LIBS)
+test_size_params_SOURCES = test-size-params.cc
+test_size_params_CPPFLAGS = $(HBCFLAGS)
+test_size_params_LDADD = libharfbuzz.la $(HBLIBS)
+test_buffer_serialize_SOURCES = test-buffer-serialize.cc
+test_buffer_serialize_CPPFLAGS = $(HBCFLAGS)
+test_buffer_serialize_LDADD = libharfbuzz.la $(HBLIBS)
+dist_check_SCRIPTS = \
+       check-c-linkage-decls.sh \
+       check-defs.sh \
+       check-header-guards.sh \
+       check-includes.sh \
+       check-libstdc++.sh \
+       check-static-inits.sh \
+       check-symbols.sh \
+       $(NULL)
+
+TESTS_ENVIRONMENT = \
+       srcdir="$(srcdir)" \
+       MAKE="$(MAKE) $(AM_MAKEFLAGS)" \
+       HBSOURCES="$(HBSOURCES)" \
+       HBHEADERS="$(HBHEADERS) $(HBNODISTHEADERS)" \
+       $(NULL)
+
+@HAVE_INTROSPECTION_TRUE@INTROSPECTION_GIRS = HarfBuzz-$(HB_VERSION_MAJOR).0.gir # What does the 0 mean anyway?!
+@HAVE_INTROSPECTION_TRUE@INTROSPECTION_SCANNER_ARGS = -I$(srcdir) -n hb --identifier-prefix=hb_ --warn-all
+@HAVE_INTROSPECTION_TRUE@INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
+@HAVE_INTROSPECTION_TRUE@INTROSPECTION_SCANNER_ENV = CC="$(CC)"
+@HAVE_INTROSPECTION_TRUE@HarfBuzz_0_0_gir_INCLUDES = GObject-2.0
+@HAVE_INTROSPECTION_TRUE@HarfBuzz_0_0_gir_CFLAGS = \
+@HAVE_INTROSPECTION_TRUE@      $(INCLUDES) \
+@HAVE_INTROSPECTION_TRUE@      $(HBCFLAGS) \
+@HAVE_INTROSPECTION_TRUE@      -DHB_H \
+@HAVE_INTROSPECTION_TRUE@      -DHB_H_IN \
+@HAVE_INTROSPECTION_TRUE@      -DHB_OT_H \
+@HAVE_INTROSPECTION_TRUE@      -DHB_OT_H_IN \
+@HAVE_INTROSPECTION_TRUE@      -DHB_GOBJECT_H \
+@HAVE_INTROSPECTION_TRUE@      -DHB_GOBJECT_H_IN \
+@HAVE_INTROSPECTION_TRUE@      $(NULL)
+
+@HAVE_INTROSPECTION_TRUE@HarfBuzz_0_0_gir_LIBS = \
+@HAVE_INTROSPECTION_TRUE@      libharfbuzz.la \
+@HAVE_INTROSPECTION_TRUE@      libharfbuzz-gobject.la \
+@HAVE_INTROSPECTION_TRUE@      $(NULL)
+
+@HAVE_INTROSPECTION_TRUE@HarfBuzz_0_0_gir_FILES = \
+@HAVE_INTROSPECTION_TRUE@      $(HBHEADERS) \
+@HAVE_INTROSPECTION_TRUE@      $(HBNODISTHEADERS) \
+@HAVE_INTROSPECTION_TRUE@      $(HBSOURCES) \
+@HAVE_INTROSPECTION_TRUE@      hb-gobject-enums.cc \
+@HAVE_INTROSPECTION_TRUE@      hb-gobject-enums.h \
+@HAVE_INTROSPECTION_TRUE@      hb-gobject-structs.cc \
+@HAVE_INTROSPECTION_TRUE@      hb-gobject-structs.h \
+@HAVE_INTROSPECTION_TRUE@      $(NULL)
+
+@HAVE_INTROSPECTION_TRUE@girdir = $(datadir)/gir-1.0
+@HAVE_INTROSPECTION_TRUE@gir_DATA = $(INTROSPECTION_GIRS)
+@HAVE_INTROSPECTION_TRUE@typelibdir = $(libdir)/girepository-1.0
+@HAVE_INTROSPECTION_TRUE@typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
+all: $(BUILT_SOURCES)
+       $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
+.SUFFIXES:
+.SUFFIXES: .cc .hh .lo .log .o .obj .rl .test .test$(EXEEXT) .trs
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+       @for dep in $?; do \
+         case '$(am__configure_deps)' in \
+           *$$dep*) \
+             ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+               && { if test -f $@; then exit 0; else break; fi; }; \
+             exit 1;; \
+         esac; \
+       done; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits src/Makefile'; \
+       $(am__cd) $(top_srcdir) && \
+         $(AUTOMAKE) --gnits src/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+       @case '$?' in \
+         *config.status*) \
+           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+         *) \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+       esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+hb-version.h: $(top_builddir)/config.status $(srcdir)/hb-version.h.in
+       cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
+
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+       @$(NORMAL_INSTALL)
+       @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
+       list2=; for p in $$list; do \
+         if test -f $$p; then \
+           list2="$$list2 $$p"; \
+         else :; fi; \
+       done; \
+       test -z "$$list2" || { \
+         echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
+         echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
+         $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
+       }
+
+uninstall-libLTLIBRARIES:
+       @$(NORMAL_UNINSTALL)
+       @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
+       for p in $$list; do \
+         $(am__strip_dir) \
+         echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
+         $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
+       done
+
+clean-libLTLIBRARIES:
+       -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
+       @list='$(lib_LTLIBRARIES)'; \
+       locs=`for p in $$list; do echo $$p; done | \
+             sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
+             sort -u`; \
+       test -z "$$locs" || { \
+         echo rm -f $${locs}; \
+         rm -f $${locs}; \
+       }
+
+libharfbuzz-gobject.la: $(libharfbuzz_gobject_la_OBJECTS) $(libharfbuzz_gobject_la_DEPENDENCIES) $(EXTRA_libharfbuzz_gobject_la_DEPENDENCIES) 
+       $(AM_V_CXXLD)$(libharfbuzz_gobject_la_LINK) $(am_libharfbuzz_gobject_la_rpath) $(libharfbuzz_gobject_la_OBJECTS) $(libharfbuzz_gobject_la_LIBADD) $(LIBS)
+
+libharfbuzz-icu.la: $(libharfbuzz_icu_la_OBJECTS) $(libharfbuzz_icu_la_DEPENDENCIES) $(EXTRA_libharfbuzz_icu_la_DEPENDENCIES) 
+       $(AM_V_CXXLD)$(libharfbuzz_icu_la_LINK) $(am_libharfbuzz_icu_la_rpath) $(libharfbuzz_icu_la_OBJECTS) $(libharfbuzz_icu_la_LIBADD) $(LIBS)
+
+libharfbuzz.la: $(libharfbuzz_la_OBJECTS) $(libharfbuzz_la_DEPENDENCIES) $(EXTRA_libharfbuzz_la_DEPENDENCIES) 
+       $(AM_V_GEN)$(libharfbuzz_la_LINK) -rpath $(libdir) $(libharfbuzz_la_OBJECTS) $(libharfbuzz_la_LIBADD) $(LIBS)
+install-binPROGRAMS: $(bin_PROGRAMS)
+       @$(NORMAL_INSTALL)
+       @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+       if test -n "$$list"; then \
+         echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
+       fi; \
+       for p in $$list; do echo "$$p $$p"; done | \
+       sed 's/$(EXEEXT)$$//' | \
+       while read p p1; do if test -f $$p \
+        || test -f $$p1 \
+         ; then echo "$$p"; echo "$$p"; else :; fi; \
+       done | \
+       sed -e 'p;s,.*/,,;n;h' \
+           -e 's|.*|.|' \
+           -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
+       sed 'N;N;N;s,\n, ,g' | \
+       $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
+         { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
+           if ($$2 == $$4) files[d] = files[d] " " $$1; \
+           else { print "f", $$3 "/" $$4, $$1; } } \
+         END { for (d in files) print "f", d, files[d] }' | \
+       while read type dir files; do \
+           if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
+           test -z "$$files" || { \
+           echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
+           $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
+           } \
+       ; done
+
+uninstall-binPROGRAMS:
+       @$(NORMAL_UNINSTALL)
+       @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+       files=`for p in $$list; do echo "$$p"; done | \
+         sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
+             -e 's/$$/$(EXEEXT)/' \
+       `; \
+       test -n "$$list" || exit 0; \
+       echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
+       cd "$(DESTDIR)$(bindir)" && rm -f $$files
+
+clean-binPROGRAMS:
+       @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
+       echo " rm -f" $$list; \
+       rm -f $$list || exit $$?; \
+       test -n "$(EXEEXT)" || exit 0; \
+       list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
+       echo " rm -f" $$list; \
+       rm -f $$list
+
+installcheck-binPROGRAMS: $(bin_PROGRAMS)
+       bad=0; pid=$$$$; list="$(bin_PROGRAMS)"; for p in $$list; do \
+         case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
+          *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
+         esac; \
+         f=`echo "$$p" | \
+            sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+         for opt in --help --version; do \
+           if "$(DESTDIR)$(bindir)/$$f" $$opt >c$${pid}_.out \
+                2>c$${pid}_.err </dev/null \
+                && test -n "`cat c$${pid}_.out`" \
+                && test -z "`cat c$${pid}_.err`"; then :; \
+           else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
+         done; \
+       done; rm -f c$${pid}_.???; exit $$bad
+
+clean-noinstPROGRAMS:
+       @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
+       echo " rm -f" $$list; \
+       rm -f $$list || exit $$?; \
+       test -n "$(EXEEXT)" || exit 0; \
+       list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
+       echo " rm -f" $$list; \
+       rm -f $$list
+
+main$(EXEEXT): $(main_OBJECTS) $(main_DEPENDENCIES) $(EXTRA_main_DEPENDENCIES) 
+       @rm -f main$(EXEEXT)
+       $(AM_V_CXXLD)$(CXXLINK) $(main_OBJECTS) $(main_LDADD) $(LIBS)
+
+test$(EXEEXT): $(test_OBJECTS) $(test_DEPENDENCIES) $(EXTRA_test_DEPENDENCIES) 
+       @rm -f test$(EXEEXT)
+       $(AM_V_CXXLD)$(CXXLINK) $(test_OBJECTS) $(test_LDADD) $(LIBS)
+
+test-buffer-serialize$(EXEEXT): $(test_buffer_serialize_OBJECTS) $(test_buffer_serialize_DEPENDENCIES) $(EXTRA_test_buffer_serialize_DEPENDENCIES) 
+       @rm -f test-buffer-serialize$(EXEEXT)
+       $(AM_V_CXXLD)$(CXXLINK) $(test_buffer_serialize_OBJECTS) $(test_buffer_serialize_LDADD) $(LIBS)
+
+test-size-params$(EXEEXT): $(test_size_params_OBJECTS) $(test_size_params_DEPENDENCIES) $(EXTRA_test_size_params_DEPENDENCIES) 
+       @rm -f test-size-params$(EXEEXT)
+       $(AM_V_CXXLD)$(CXXLINK) $(test_size_params_OBJECTS) $(test_size_params_LDADD) $(LIBS)
+
+test-would-substitute$(EXEEXT): $(test_would_substitute_OBJECTS) $(test_would_substitute_DEPENDENCIES) $(EXTRA_test_would_substitute_DEPENDENCIES) 
+       @rm -f test-would-substitute$(EXEEXT)
+       $(AM_V_CXXLD)$(CXXLINK) $(test_would_substitute_OBJECTS) $(test_would_substitute_LDADD) $(LIBS)
+
+mostlyclean-compile:
+       -rm -f *.$(OBJEXT)
+
+distclean-compile:
+       -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_gobject_la-hb-gobject-enums.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_gobject_la-hb-gobject-structs.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_icu_la-hb-icu.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-blob.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-buffer-serialize.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-buffer.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-common.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-coretext.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-face.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-fallback-shape.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-font.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ft.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-glib.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-graphite2.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-font.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-layout.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-map.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-arabic.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-default.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-hangul.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-hebrew.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-indic-table.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-indic.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-myanmar.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-sea.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-thai.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-tibetan.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-shape-fallback.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-shape-normalize.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-shape.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ot-tag.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-set.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-shape-plan.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-shape.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-shaper.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-ucdn.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-unicode.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-uniscribe.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libharfbuzz_la-hb-warning.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main-main.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-test.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_buffer_serialize-test-buffer-serialize.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_size_params-test-size-params.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_would_substitute-test-would-substitute.Po@am__quote@
+
+.cc.o:
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
+
+.cc.obj:
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.cc.lo:
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
+
+libharfbuzz_gobject_la-hb-gobject-structs.lo: hb-gobject-structs.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_gobject_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_gobject_la-hb-gobject-structs.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_gobject_la-hb-gobject-structs.Tpo -c -o libharfbuzz_gobject_la-hb-gobject-structs.lo `test -f 'hb-gobject-structs.cc' || echo '$(srcdir)/'`hb-gobject-structs.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_gobject_la-hb-gobject-structs.Tpo $(DEPDIR)/libharfbuzz_gobject_la-hb-gobject-structs.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-gobject-structs.cc' object='libharfbuzz_gobject_la-hb-gobject-structs.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_gobject_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_gobject_la-hb-gobject-structs.lo `test -f 'hb-gobject-structs.cc' || echo '$(srcdir)/'`hb-gobject-structs.cc
+
+libharfbuzz_gobject_la-hb-gobject-enums.lo: hb-gobject-enums.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_gobject_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_gobject_la-hb-gobject-enums.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_gobject_la-hb-gobject-enums.Tpo -c -o libharfbuzz_gobject_la-hb-gobject-enums.lo `test -f 'hb-gobject-enums.cc' || echo '$(srcdir)/'`hb-gobject-enums.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_gobject_la-hb-gobject-enums.Tpo $(DEPDIR)/libharfbuzz_gobject_la-hb-gobject-enums.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-gobject-enums.cc' object='libharfbuzz_gobject_la-hb-gobject-enums.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_gobject_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_gobject_la-hb-gobject-enums.lo `test -f 'hb-gobject-enums.cc' || echo '$(srcdir)/'`hb-gobject-enums.cc
+
+libharfbuzz_icu_la-hb-icu.lo: hb-icu.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_icu_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_icu_la-hb-icu.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_icu_la-hb-icu.Tpo -c -o libharfbuzz_icu_la-hb-icu.lo `test -f 'hb-icu.cc' || echo '$(srcdir)/'`hb-icu.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_icu_la-hb-icu.Tpo $(DEPDIR)/libharfbuzz_icu_la-hb-icu.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-icu.cc' object='libharfbuzz_icu_la-hb-icu.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_icu_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_icu_la-hb-icu.lo `test -f 'hb-icu.cc' || echo '$(srcdir)/'`hb-icu.cc
+
+libharfbuzz_la-hb-blob.lo: hb-blob.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-blob.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-blob.Tpo -c -o libharfbuzz_la-hb-blob.lo `test -f 'hb-blob.cc' || echo '$(srcdir)/'`hb-blob.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-blob.Tpo $(DEPDIR)/libharfbuzz_la-hb-blob.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-blob.cc' object='libharfbuzz_la-hb-blob.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-blob.lo `test -f 'hb-blob.cc' || echo '$(srcdir)/'`hb-blob.cc
+
+libharfbuzz_la-hb-buffer-serialize.lo: hb-buffer-serialize.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-buffer-serialize.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-buffer-serialize.Tpo -c -o libharfbuzz_la-hb-buffer-serialize.lo `test -f 'hb-buffer-serialize.cc' || echo '$(srcdir)/'`hb-buffer-serialize.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-buffer-serialize.Tpo $(DEPDIR)/libharfbuzz_la-hb-buffer-serialize.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-buffer-serialize.cc' object='libharfbuzz_la-hb-buffer-serialize.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-buffer-serialize.lo `test -f 'hb-buffer-serialize.cc' || echo '$(srcdir)/'`hb-buffer-serialize.cc
+
+libharfbuzz_la-hb-buffer.lo: hb-buffer.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-buffer.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-buffer.Tpo -c -o libharfbuzz_la-hb-buffer.lo `test -f 'hb-buffer.cc' || echo '$(srcdir)/'`hb-buffer.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-buffer.Tpo $(DEPDIR)/libharfbuzz_la-hb-buffer.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-buffer.cc' object='libharfbuzz_la-hb-buffer.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-buffer.lo `test -f 'hb-buffer.cc' || echo '$(srcdir)/'`hb-buffer.cc
+
+libharfbuzz_la-hb-common.lo: hb-common.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-common.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-common.Tpo -c -o libharfbuzz_la-hb-common.lo `test -f 'hb-common.cc' || echo '$(srcdir)/'`hb-common.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-common.Tpo $(DEPDIR)/libharfbuzz_la-hb-common.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-common.cc' object='libharfbuzz_la-hb-common.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-common.lo `test -f 'hb-common.cc' || echo '$(srcdir)/'`hb-common.cc
+
+libharfbuzz_la-hb-face.lo: hb-face.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-face.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-face.Tpo -c -o libharfbuzz_la-hb-face.lo `test -f 'hb-face.cc' || echo '$(srcdir)/'`hb-face.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-face.Tpo $(DEPDIR)/libharfbuzz_la-hb-face.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-face.cc' object='libharfbuzz_la-hb-face.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-face.lo `test -f 'hb-face.cc' || echo '$(srcdir)/'`hb-face.cc
+
+libharfbuzz_la-hb-font.lo: hb-font.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-font.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-font.Tpo -c -o libharfbuzz_la-hb-font.lo `test -f 'hb-font.cc' || echo '$(srcdir)/'`hb-font.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-font.Tpo $(DEPDIR)/libharfbuzz_la-hb-font.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-font.cc' object='libharfbuzz_la-hb-font.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-font.lo `test -f 'hb-font.cc' || echo '$(srcdir)/'`hb-font.cc
+
+libharfbuzz_la-hb-ot-tag.lo: hb-ot-tag.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-tag.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-tag.Tpo -c -o libharfbuzz_la-hb-ot-tag.lo `test -f 'hb-ot-tag.cc' || echo '$(srcdir)/'`hb-ot-tag.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-tag.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-tag.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-tag.cc' object='libharfbuzz_la-hb-ot-tag.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-tag.lo `test -f 'hb-ot-tag.cc' || echo '$(srcdir)/'`hb-ot-tag.cc
+
+libharfbuzz_la-hb-set.lo: hb-set.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-set.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-set.Tpo -c -o libharfbuzz_la-hb-set.lo `test -f 'hb-set.cc' || echo '$(srcdir)/'`hb-set.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-set.Tpo $(DEPDIR)/libharfbuzz_la-hb-set.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-set.cc' object='libharfbuzz_la-hb-set.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-set.lo `test -f 'hb-set.cc' || echo '$(srcdir)/'`hb-set.cc
+
+libharfbuzz_la-hb-shape.lo: hb-shape.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-shape.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-shape.Tpo -c -o libharfbuzz_la-hb-shape.lo `test -f 'hb-shape.cc' || echo '$(srcdir)/'`hb-shape.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-shape.Tpo $(DEPDIR)/libharfbuzz_la-hb-shape.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-shape.cc' object='libharfbuzz_la-hb-shape.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-shape.lo `test -f 'hb-shape.cc' || echo '$(srcdir)/'`hb-shape.cc
+
+libharfbuzz_la-hb-shape-plan.lo: hb-shape-plan.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-shape-plan.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-shape-plan.Tpo -c -o libharfbuzz_la-hb-shape-plan.lo `test -f 'hb-shape-plan.cc' || echo '$(srcdir)/'`hb-shape-plan.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-shape-plan.Tpo $(DEPDIR)/libharfbuzz_la-hb-shape-plan.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-shape-plan.cc' object='libharfbuzz_la-hb-shape-plan.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-shape-plan.lo `test -f 'hb-shape-plan.cc' || echo '$(srcdir)/'`hb-shape-plan.cc
+
+libharfbuzz_la-hb-shaper.lo: hb-shaper.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-shaper.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-shaper.Tpo -c -o libharfbuzz_la-hb-shaper.lo `test -f 'hb-shaper.cc' || echo '$(srcdir)/'`hb-shaper.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-shaper.Tpo $(DEPDIR)/libharfbuzz_la-hb-shaper.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-shaper.cc' object='libharfbuzz_la-hb-shaper.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-shaper.lo `test -f 'hb-shaper.cc' || echo '$(srcdir)/'`hb-shaper.cc
+
+libharfbuzz_la-hb-unicode.lo: hb-unicode.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-unicode.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-unicode.Tpo -c -o libharfbuzz_la-hb-unicode.lo `test -f 'hb-unicode.cc' || echo '$(srcdir)/'`hb-unicode.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-unicode.Tpo $(DEPDIR)/libharfbuzz_la-hb-unicode.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-unicode.cc' object='libharfbuzz_la-hb-unicode.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-unicode.lo `test -f 'hb-unicode.cc' || echo '$(srcdir)/'`hb-unicode.cc
+
+libharfbuzz_la-hb-warning.lo: hb-warning.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-warning.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-warning.Tpo -c -o libharfbuzz_la-hb-warning.lo `test -f 'hb-warning.cc' || echo '$(srcdir)/'`hb-warning.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-warning.Tpo $(DEPDIR)/libharfbuzz_la-hb-warning.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-warning.cc' object='libharfbuzz_la-hb-warning.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-warning.lo `test -f 'hb-warning.cc' || echo '$(srcdir)/'`hb-warning.cc
+
+libharfbuzz_la-hb-ot-font.lo: hb-ot-font.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-font.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-font.Tpo -c -o libharfbuzz_la-hb-ot-font.lo `test -f 'hb-ot-font.cc' || echo '$(srcdir)/'`hb-ot-font.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-font.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-font.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-font.cc' object='libharfbuzz_la-hb-ot-font.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-font.lo `test -f 'hb-ot-font.cc' || echo '$(srcdir)/'`hb-ot-font.cc
+
+libharfbuzz_la-hb-ot-layout.lo: hb-ot-layout.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-layout.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-layout.Tpo -c -o libharfbuzz_la-hb-ot-layout.lo `test -f 'hb-ot-layout.cc' || echo '$(srcdir)/'`hb-ot-layout.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-layout.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-layout.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-layout.cc' object='libharfbuzz_la-hb-ot-layout.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-layout.lo `test -f 'hb-ot-layout.cc' || echo '$(srcdir)/'`hb-ot-layout.cc
+
+libharfbuzz_la-hb-ot-map.lo: hb-ot-map.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-map.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-map.Tpo -c -o libharfbuzz_la-hb-ot-map.lo `test -f 'hb-ot-map.cc' || echo '$(srcdir)/'`hb-ot-map.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-map.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-map.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-map.cc' object='libharfbuzz_la-hb-ot-map.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-map.lo `test -f 'hb-ot-map.cc' || echo '$(srcdir)/'`hb-ot-map.cc
+
+libharfbuzz_la-hb-ot-shape.lo: hb-ot-shape.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-shape.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-shape.Tpo -c -o libharfbuzz_la-hb-ot-shape.lo `test -f 'hb-ot-shape.cc' || echo '$(srcdir)/'`hb-ot-shape.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-shape.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-shape.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-shape.cc' object='libharfbuzz_la-hb-ot-shape.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-shape.lo `test -f 'hb-ot-shape.cc' || echo '$(srcdir)/'`hb-ot-shape.cc
+
+libharfbuzz_la-hb-ot-shape-complex-arabic.lo: hb-ot-shape-complex-arabic.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-shape-complex-arabic.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-arabic.Tpo -c -o libharfbuzz_la-hb-ot-shape-complex-arabic.lo `test -f 'hb-ot-shape-complex-arabic.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-arabic.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-arabic.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-arabic.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-shape-complex-arabic.cc' object='libharfbuzz_la-hb-ot-shape-complex-arabic.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-shape-complex-arabic.lo `test -f 'hb-ot-shape-complex-arabic.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-arabic.cc
+
+libharfbuzz_la-hb-ot-shape-complex-default.lo: hb-ot-shape-complex-default.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-shape-complex-default.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-default.Tpo -c -o libharfbuzz_la-hb-ot-shape-complex-default.lo `test -f 'hb-ot-shape-complex-default.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-default.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-default.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-default.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-shape-complex-default.cc' object='libharfbuzz_la-hb-ot-shape-complex-default.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-shape-complex-default.lo `test -f 'hb-ot-shape-complex-default.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-default.cc
+
+libharfbuzz_la-hb-ot-shape-complex-hangul.lo: hb-ot-shape-complex-hangul.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-shape-complex-hangul.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-hangul.Tpo -c -o libharfbuzz_la-hb-ot-shape-complex-hangul.lo `test -f 'hb-ot-shape-complex-hangul.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-hangul.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-hangul.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-hangul.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-shape-complex-hangul.cc' object='libharfbuzz_la-hb-ot-shape-complex-hangul.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-shape-complex-hangul.lo `test -f 'hb-ot-shape-complex-hangul.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-hangul.cc
+
+libharfbuzz_la-hb-ot-shape-complex-hebrew.lo: hb-ot-shape-complex-hebrew.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-shape-complex-hebrew.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-hebrew.Tpo -c -o libharfbuzz_la-hb-ot-shape-complex-hebrew.lo `test -f 'hb-ot-shape-complex-hebrew.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-hebrew.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-hebrew.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-hebrew.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-shape-complex-hebrew.cc' object='libharfbuzz_la-hb-ot-shape-complex-hebrew.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-shape-complex-hebrew.lo `test -f 'hb-ot-shape-complex-hebrew.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-hebrew.cc
+
+libharfbuzz_la-hb-ot-shape-complex-indic.lo: hb-ot-shape-complex-indic.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-shape-complex-indic.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-indic.Tpo -c -o libharfbuzz_la-hb-ot-shape-complex-indic.lo `test -f 'hb-ot-shape-complex-indic.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-indic.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-indic.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-indic.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-shape-complex-indic.cc' object='libharfbuzz_la-hb-ot-shape-complex-indic.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-shape-complex-indic.lo `test -f 'hb-ot-shape-complex-indic.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-indic.cc
+
+libharfbuzz_la-hb-ot-shape-complex-indic-table.lo: hb-ot-shape-complex-indic-table.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-shape-complex-indic-table.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-indic-table.Tpo -c -o libharfbuzz_la-hb-ot-shape-complex-indic-table.lo `test -f 'hb-ot-shape-complex-indic-table.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-indic-table.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-indic-table.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-indic-table.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-shape-complex-indic-table.cc' object='libharfbuzz_la-hb-ot-shape-complex-indic-table.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-shape-complex-indic-table.lo `test -f 'hb-ot-shape-complex-indic-table.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-indic-table.cc
+
+libharfbuzz_la-hb-ot-shape-complex-myanmar.lo: hb-ot-shape-complex-myanmar.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-shape-complex-myanmar.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-myanmar.Tpo -c -o libharfbuzz_la-hb-ot-shape-complex-myanmar.lo `test -f 'hb-ot-shape-complex-myanmar.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-myanmar.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-myanmar.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-myanmar.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-shape-complex-myanmar.cc' object='libharfbuzz_la-hb-ot-shape-complex-myanmar.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-shape-complex-myanmar.lo `test -f 'hb-ot-shape-complex-myanmar.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-myanmar.cc
+
+libharfbuzz_la-hb-ot-shape-complex-sea.lo: hb-ot-shape-complex-sea.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-shape-complex-sea.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-sea.Tpo -c -o libharfbuzz_la-hb-ot-shape-complex-sea.lo `test -f 'hb-ot-shape-complex-sea.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-sea.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-sea.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-sea.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-shape-complex-sea.cc' object='libharfbuzz_la-hb-ot-shape-complex-sea.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-shape-complex-sea.lo `test -f 'hb-ot-shape-complex-sea.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-sea.cc
+
+libharfbuzz_la-hb-ot-shape-complex-thai.lo: hb-ot-shape-complex-thai.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-shape-complex-thai.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-thai.Tpo -c -o libharfbuzz_la-hb-ot-shape-complex-thai.lo `test -f 'hb-ot-shape-complex-thai.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-thai.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-thai.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-thai.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-shape-complex-thai.cc' object='libharfbuzz_la-hb-ot-shape-complex-thai.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-shape-complex-thai.lo `test -f 'hb-ot-shape-complex-thai.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-thai.cc
+
+libharfbuzz_la-hb-ot-shape-complex-tibetan.lo: hb-ot-shape-complex-tibetan.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-shape-complex-tibetan.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-tibetan.Tpo -c -o libharfbuzz_la-hb-ot-shape-complex-tibetan.lo `test -f 'hb-ot-shape-complex-tibetan.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-tibetan.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-tibetan.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-shape-complex-tibetan.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-shape-complex-tibetan.cc' object='libharfbuzz_la-hb-ot-shape-complex-tibetan.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-shape-complex-tibetan.lo `test -f 'hb-ot-shape-complex-tibetan.cc' || echo '$(srcdir)/'`hb-ot-shape-complex-tibetan.cc
+
+libharfbuzz_la-hb-ot-shape-normalize.lo: hb-ot-shape-normalize.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-shape-normalize.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-shape-normalize.Tpo -c -o libharfbuzz_la-hb-ot-shape-normalize.lo `test -f 'hb-ot-shape-normalize.cc' || echo '$(srcdir)/'`hb-ot-shape-normalize.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-shape-normalize.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-shape-normalize.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-shape-normalize.cc' object='libharfbuzz_la-hb-ot-shape-normalize.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-shape-normalize.lo `test -f 'hb-ot-shape-normalize.cc' || echo '$(srcdir)/'`hb-ot-shape-normalize.cc
+
+libharfbuzz_la-hb-ot-shape-fallback.lo: hb-ot-shape-fallback.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ot-shape-fallback.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ot-shape-fallback.Tpo -c -o libharfbuzz_la-hb-ot-shape-fallback.lo `test -f 'hb-ot-shape-fallback.cc' || echo '$(srcdir)/'`hb-ot-shape-fallback.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ot-shape-fallback.Tpo $(DEPDIR)/libharfbuzz_la-hb-ot-shape-fallback.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ot-shape-fallback.cc' object='libharfbuzz_la-hb-ot-shape-fallback.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ot-shape-fallback.lo `test -f 'hb-ot-shape-fallback.cc' || echo '$(srcdir)/'`hb-ot-shape-fallback.cc
+
+libharfbuzz_la-hb-fallback-shape.lo: hb-fallback-shape.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-fallback-shape.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-fallback-shape.Tpo -c -o libharfbuzz_la-hb-fallback-shape.lo `test -f 'hb-fallback-shape.cc' || echo '$(srcdir)/'`hb-fallback-shape.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-fallback-shape.Tpo $(DEPDIR)/libharfbuzz_la-hb-fallback-shape.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-fallback-shape.cc' object='libharfbuzz_la-hb-fallback-shape.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-fallback-shape.lo `test -f 'hb-fallback-shape.cc' || echo '$(srcdir)/'`hb-fallback-shape.cc
+
+libharfbuzz_la-hb-glib.lo: hb-glib.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-glib.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-glib.Tpo -c -o libharfbuzz_la-hb-glib.lo `test -f 'hb-glib.cc' || echo '$(srcdir)/'`hb-glib.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-glib.Tpo $(DEPDIR)/libharfbuzz_la-hb-glib.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-glib.cc' object='libharfbuzz_la-hb-glib.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-glib.lo `test -f 'hb-glib.cc' || echo '$(srcdir)/'`hb-glib.cc
+
+libharfbuzz_la-hb-ft.lo: hb-ft.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ft.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ft.Tpo -c -o libharfbuzz_la-hb-ft.lo `test -f 'hb-ft.cc' || echo '$(srcdir)/'`hb-ft.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ft.Tpo $(DEPDIR)/libharfbuzz_la-hb-ft.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ft.cc' object='libharfbuzz_la-hb-ft.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ft.lo `test -f 'hb-ft.cc' || echo '$(srcdir)/'`hb-ft.cc
+
+libharfbuzz_la-hb-graphite2.lo: hb-graphite2.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-graphite2.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-graphite2.Tpo -c -o libharfbuzz_la-hb-graphite2.lo `test -f 'hb-graphite2.cc' || echo '$(srcdir)/'`hb-graphite2.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-graphite2.Tpo $(DEPDIR)/libharfbuzz_la-hb-graphite2.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-graphite2.cc' object='libharfbuzz_la-hb-graphite2.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-graphite2.lo `test -f 'hb-graphite2.cc' || echo '$(srcdir)/'`hb-graphite2.cc
+
+libharfbuzz_la-hb-uniscribe.lo: hb-uniscribe.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-uniscribe.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-uniscribe.Tpo -c -o libharfbuzz_la-hb-uniscribe.lo `test -f 'hb-uniscribe.cc' || echo '$(srcdir)/'`hb-uniscribe.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-uniscribe.Tpo $(DEPDIR)/libharfbuzz_la-hb-uniscribe.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-uniscribe.cc' object='libharfbuzz_la-hb-uniscribe.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-uniscribe.lo `test -f 'hb-uniscribe.cc' || echo '$(srcdir)/'`hb-uniscribe.cc
+
+libharfbuzz_la-hb-coretext.lo: hb-coretext.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-coretext.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-coretext.Tpo -c -o libharfbuzz_la-hb-coretext.lo `test -f 'hb-coretext.cc' || echo '$(srcdir)/'`hb-coretext.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-coretext.Tpo $(DEPDIR)/libharfbuzz_la-hb-coretext.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-coretext.cc' object='libharfbuzz_la-hb-coretext.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-coretext.lo `test -f 'hb-coretext.cc' || echo '$(srcdir)/'`hb-coretext.cc
+
+libharfbuzz_la-hb-ucdn.lo: hb-ucdn.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT libharfbuzz_la-hb-ucdn.lo -MD -MP -MF $(DEPDIR)/libharfbuzz_la-hb-ucdn.Tpo -c -o libharfbuzz_la-hb-ucdn.lo `test -f 'hb-ucdn.cc' || echo '$(srcdir)/'`hb-ucdn.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/libharfbuzz_la-hb-ucdn.Tpo $(DEPDIR)/libharfbuzz_la-hb-ucdn.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='hb-ucdn.cc' object='libharfbuzz_la-hb-ucdn.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libharfbuzz_la_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o libharfbuzz_la-hb-ucdn.lo `test -f 'hb-ucdn.cc' || echo '$(srcdir)/'`hb-ucdn.cc
+
+main-main.o: main.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(main_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT main-main.o -MD -MP -MF $(DEPDIR)/main-main.Tpo -c -o main-main.o `test -f 'main.cc' || echo '$(srcdir)/'`main.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/main-main.Tpo $(DEPDIR)/main-main.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='main.cc' object='main-main.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(main_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o main-main.o `test -f 'main.cc' || echo '$(srcdir)/'`main.cc
+
+main-main.obj: main.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(main_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT main-main.obj -MD -MP -MF $(DEPDIR)/main-main.Tpo -c -o main-main.obj `if test -f 'main.cc'; then $(CYGPATH_W) 'main.cc'; else $(CYGPATH_W) '$(srcdir)/main.cc'; fi`
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/main-main.Tpo $(DEPDIR)/main-main.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='main.cc' object='main-main.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(main_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o main-main.obj `if test -f 'main.cc'; then $(CYGPATH_W) 'main.cc'; else $(CYGPATH_W) '$(srcdir)/main.cc'; fi`
+
+test-test.o: test.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT test-test.o -MD -MP -MF $(DEPDIR)/test-test.Tpo -c -o test-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/test-test.Tpo $(DEPDIR)/test-test.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='test.cc' object='test-test.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o test-test.o `test -f 'test.cc' || echo '$(srcdir)/'`test.cc
+
+test-test.obj: test.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT test-test.obj -MD -MP -MF $(DEPDIR)/test-test.Tpo -c -o test-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi`
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/test-test.Tpo $(DEPDIR)/test-test.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='test.cc' object='test-test.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o test-test.obj `if test -f 'test.cc'; then $(CYGPATH_W) 'test.cc'; else $(CYGPATH_W) '$(srcdir)/test.cc'; fi`
+
+test_buffer_serialize-test-buffer-serialize.o: test-buffer-serialize.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_buffer_serialize_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT test_buffer_serialize-test-buffer-serialize.o -MD -MP -MF $(DEPDIR)/test_buffer_serialize-test-buffer-serialize.Tpo -c -o test_buffer_serialize-test-buffer-serialize.o `test -f 'test-buffer-serialize.cc' || echo '$(srcdir)/'`test-buffer-serialize.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/test_buffer_serialize-test-buffer-serialize.Tpo $(DEPDIR)/test_buffer_serialize-test-buffer-serialize.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='test-buffer-serialize.cc' object='test_buffer_serialize-test-buffer-serialize.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_buffer_serialize_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o test_buffer_serialize-test-buffer-serialize.o `test -f 'test-buffer-serialize.cc' || echo '$(srcdir)/'`test-buffer-serialize.cc
+
+test_buffer_serialize-test-buffer-serialize.obj: test-buffer-serialize.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_buffer_serialize_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT test_buffer_serialize-test-buffer-serialize.obj -MD -MP -MF $(DEPDIR)/test_buffer_serialize-test-buffer-serialize.Tpo -c -o test_buffer_serialize-test-buffer-serialize.obj `if test -f 'test-buffer-serialize.cc'; then $(CYGPATH_W) 'test-buffer-serialize.cc'; else $(CYGPATH_W) '$(srcdir)/test-buffer-serialize.cc'; fi`
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/test_buffer_serialize-test-buffer-serialize.Tpo $(DEPDIR)/test_buffer_serialize-test-buffer-serialize.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='test-buffer-serialize.cc' object='test_buffer_serialize-test-buffer-serialize.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_buffer_serialize_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o test_buffer_serialize-test-buffer-serialize.obj `if test -f 'test-buffer-serialize.cc'; then $(CYGPATH_W) 'test-buffer-serialize.cc'; else $(CYGPATH_W) '$(srcdir)/test-buffer-serialize.cc'; fi`
+
+test_size_params-test-size-params.o: test-size-params.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_size_params_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT test_size_params-test-size-params.o -MD -MP -MF $(DEPDIR)/test_size_params-test-size-params.Tpo -c -o test_size_params-test-size-params.o `test -f 'test-size-params.cc' || echo '$(srcdir)/'`test-size-params.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/test_size_params-test-size-params.Tpo $(DEPDIR)/test_size_params-test-size-params.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='test-size-params.cc' object='test_size_params-test-size-params.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_size_params_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o test_size_params-test-size-params.o `test -f 'test-size-params.cc' || echo '$(srcdir)/'`test-size-params.cc
+
+test_size_params-test-size-params.obj: test-size-params.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_size_params_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT test_size_params-test-size-params.obj -MD -MP -MF $(DEPDIR)/test_size_params-test-size-params.Tpo -c -o test_size_params-test-size-params.obj `if test -f 'test-size-params.cc'; then $(CYGPATH_W) 'test-size-params.cc'; else $(CYGPATH_W) '$(srcdir)/test-size-params.cc'; fi`
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/test_size_params-test-size-params.Tpo $(DEPDIR)/test_size_params-test-size-params.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='test-size-params.cc' object='test_size_params-test-size-params.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_size_params_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o test_size_params-test-size-params.obj `if test -f 'test-size-params.cc'; then $(CYGPATH_W) 'test-size-params.cc'; else $(CYGPATH_W) '$(srcdir)/test-size-params.cc'; fi`
+
+test_would_substitute-test-would-substitute.o: test-would-substitute.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_would_substitute_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT test_would_substitute-test-would-substitute.o -MD -MP -MF $(DEPDIR)/test_would_substitute-test-would-substitute.Tpo -c -o test_would_substitute-test-would-substitute.o `test -f 'test-would-substitute.cc' || echo '$(srcdir)/'`test-would-substitute.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/test_would_substitute-test-would-substitute.Tpo $(DEPDIR)/test_would_substitute-test-would-substitute.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='test-would-substitute.cc' object='test_would_substitute-test-would-substitute.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_would_substitute_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o test_would_substitute-test-would-substitute.o `test -f 'test-would-substitute.cc' || echo '$(srcdir)/'`test-would-substitute.cc
+
+test_would_substitute-test-would-substitute.obj: test-would-substitute.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_would_substitute_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT test_would_substitute-test-would-substitute.obj -MD -MP -MF $(DEPDIR)/test_would_substitute-test-would-substitute.Tpo -c -o test_would_substitute-test-would-substitute.obj `if test -f 'test-would-substitute.cc'; then $(CYGPATH_W) 'test-would-substitute.cc'; else $(CYGPATH_W) '$(srcdir)/test-would-substitute.cc'; fi`
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/test_would_substitute-test-would-substitute.Tpo $(DEPDIR)/test_would_substitute-test-would-substitute.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='test-would-substitute.cc' object='test_would_substitute-test-would-substitute.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_would_substitute_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o test_would_substitute-test-would-substitute.obj `if test -f 'test-would-substitute.cc'; then $(CYGPATH_W) 'test-would-substitute.cc'; else $(CYGPATH_W) '$(srcdir)/test-would-substitute.cc'; fi`
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+install-girDATA: $(gir_DATA)
+       @$(NORMAL_INSTALL)
+       @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \
+       if test -n "$$list"; then \
+         echo " $(MKDIR_P) '$(DESTDIR)$(girdir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(girdir)" || exit 1; \
+       fi; \
+       for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         echo "$$d$$p"; \
+       done | $(am__base_list) | \
+       while read files; do \
+         echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(girdir)'"; \
+         $(INSTALL_DATA) $$files "$(DESTDIR)$(girdir)" || exit $$?; \
+       done
+
+uninstall-girDATA:
+       @$(NORMAL_UNINSTALL)
+       @list='$(gir_DATA)'; test -n "$(girdir)" || list=; \
+       files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+       dir='$(DESTDIR)$(girdir)'; $(am__uninstall_files_from_dir)
+install-pkgconfigDATA: $(pkgconfig_DATA)
+       @$(NORMAL_INSTALL)
+       @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
+       if test -n "$$list"; then \
+         echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
+       fi; \
+       for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         echo "$$d$$p"; \
+       done | $(am__base_list) | \
+       while read files; do \
+         echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
+         $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
+       done
+
+uninstall-pkgconfigDATA:
+       @$(NORMAL_UNINSTALL)
+       @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
+       files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+       dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
+install-typelibDATA: $(typelib_DATA)
+       @$(NORMAL_INSTALL)
+       @list='$(typelib_DATA)'; test -n "$(typelibdir)" || list=; \
+       if test -n "$$list"; then \
+         echo " $(MKDIR_P) '$(DESTDIR)$(typelibdir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(typelibdir)" || exit 1; \
+       fi; \
+       for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         echo "$$d$$p"; \
+       done | $(am__base_list) | \
+       while read files; do \
+         echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(typelibdir)'"; \
+         $(INSTALL_DATA) $$files "$(DESTDIR)$(typelibdir)" || exit $$?; \
+       done
+
+uninstall-typelibDATA:
+       @$(NORMAL_UNINSTALL)
+       @list='$(typelib_DATA)'; test -n "$(typelibdir)" || list=; \
+       files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+       dir='$(DESTDIR)$(typelibdir)'; $(am__uninstall_files_from_dir)
+install-nodist_pkgincludeHEADERS: $(nodist_pkginclude_HEADERS)
+       @$(NORMAL_INSTALL)
+       @list='$(nodist_pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
+       if test -n "$$list"; then \
+         echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
+       fi; \
+       for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         echo "$$d$$p"; \
+       done | $(am__base_list) | \
+       while read files; do \
+         echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
+         $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
+       done
+
+uninstall-nodist_pkgincludeHEADERS:
+       @$(NORMAL_UNINSTALL)
+       @list='$(nodist_pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
+       files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+       dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
+install-pkgincludeHEADERS: $(pkginclude_HEADERS)
+       @$(NORMAL_INSTALL)
+       @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
+       if test -n "$$list"; then \
+         echo " $(MKDIR_P) '$(DESTDIR)$(pkgincludedir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(pkgincludedir)" || exit 1; \
+       fi; \
+       for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         echo "$$d$$p"; \
+       done | $(am__base_list) | \
+       while read files; do \
+         echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(pkgincludedir)'"; \
+         $(INSTALL_HEADER) $$files "$(DESTDIR)$(pkgincludedir)" || exit $$?; \
+       done
+
+uninstall-pkgincludeHEADERS:
+       @$(NORMAL_UNINSTALL)
+       @list='$(pkginclude_HEADERS)'; test -n "$(pkgincludedir)" || list=; \
+       files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+       dir='$(DESTDIR)$(pkgincludedir)'; $(am__uninstall_files_from_dir)
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run 'make' without going through this Makefile.
+# To change the values of 'make' variables: instead of editing Makefiles,
+# (1) if the variable is set in 'config.status', edit 'config.status'
+#     (which will cause the Makefiles to be regenerated when you run 'make');
+# (2) otherwise, pass the desired values on the 'make' command line.
+$(am__recursive_targets):
+       @fail=; \
+       if $(am__make_keepgoing); then \
+         failcom='fail=yes'; \
+       else \
+         failcom='exit 1'; \
+       fi; \
+       dot_seen=no; \
+       target=`echo $@ | sed s/-recursive//`; \
+       case "$@" in \
+         distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+         *) list='$(SUBDIRS)' ;; \
+       esac; \
+       for subdir in $$list; do \
+         echo "Making $$target in $$subdir"; \
+         if test "$$subdir" = "."; then \
+           dot_seen=yes; \
+           local_target="$$target-am"; \
+         else \
+           local_target="$$target"; \
+         fi; \
+         ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+         || eval $$failcom; \
+       done; \
+       if test "$$dot_seen" = "no"; then \
+         $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+       fi; test -z "$$fail"
+
+ID: $(am__tagged_files)
+       $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-recursive
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       set x; \
+       here=`pwd`; \
+       if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+         include_option=--etags-include; \
+         empty_fix=.; \
+       else \
+         include_option=--include; \
+         empty_fix=; \
+       fi; \
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         if test "$$subdir" = .; then :; else \
+           test ! -f $$subdir/TAGS || \
+             set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
+         fi; \
+       done; \
+       $(am__define_uniq_tagged_files); \
+       shift; \
+       if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+         test -n "$$unique" || unique=$$empty_fix; \
+         if test $$# -gt 0; then \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             "$$@" $$unique; \
+         else \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             $$unique; \
+         fi; \
+       fi
+ctags: ctags-recursive
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       $(am__define_uniq_tagged_files); \
+       test -z "$(CTAGS_ARGS)$$unique" \
+         || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+            $$unique
+
+GTAGS:
+       here=`$(am__cd) $(top_builddir) && pwd` \
+         && $(am__cd) $(top_srcdir) \
+         && gtags -i $(GTAGS_ARGS) "$$here"
+cscopelist: cscopelist-recursive
+
+cscopelist-am: $(am__tagged_files)
+       list='$(am__tagged_files)'; \
+       case "$(srcdir)" in \
+         [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+         *) sdir=$(subdir)/$(srcdir) ;; \
+       esac; \
+       for i in $$list; do \
+         if test -f "$$i"; then \
+           echo "$(subdir)/$$i"; \
+         else \
+           echo "$$sdir/$$i"; \
+         fi; \
+       done >> $(top_builddir)/cscope.files
+
+distclean-tags:
+       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+# Recover from deleted '.trs' file; this should ensure that
+# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
+# both 'foo.log' and 'foo.trs'.  Break the recipe in two subshells
+# to avoid problems with "make -n".
+.log.trs:
+       rm -f $< $@
+       $(MAKE) $(AM_MAKEFLAGS) $<
+
+# Leading 'am--fnord' is there to ensure the list of targets does not
+# expand to empty, as could happen e.g. with make check TESTS=''.
+am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
+am--force-recheck:
+       @:
+
+$(TEST_SUITE_LOG): $(TEST_LOGS)
+       @$(am__set_TESTS_bases); \
+       am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
+       redo_bases=`for i in $$bases; do \
+                     am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
+                   done`; \
+       if test -n "$$redo_bases"; then \
+         redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
+         redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
+         if $(am__make_dryrun); then :; else \
+           rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
+         fi; \
+       fi; \
+       if test -n "$$am__remaking_logs"; then \
+         echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
+              "recursion detected" >&2; \
+       else \
+         am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
+       fi; \
+       if $(am__make_dryrun); then :; else \
+         st=0;  \
+         errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
+         for i in $$redo_bases; do \
+           test -f $$i.trs && test -r $$i.trs \
+             || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
+           test -f $$i.log && test -r $$i.log \
+             || { echo "$$errmsg $$i.log" >&2; st=1; }; \
+         done; \
+         test $$st -eq 0 || exit 1; \
+       fi
+       @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
+       ws='[   ]'; \
+       results=`for b in $$bases; do echo $$b.trs; done`; \
+       test -n "$$results" || results=/dev/null; \
+       all=`  grep "^$$ws*:test-result:"           $$results | wc -l`; \
+       pass=` grep "^$$ws*:test-result:$$ws*PASS"  $$results | wc -l`; \
+       fail=` grep "^$$ws*:test-result:$$ws*FAIL"  $$results | wc -l`; \
+       skip=` grep "^$$ws*:test-result:$$ws*SKIP"  $$results | wc -l`; \
+       xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
+       xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
+       error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
+       if test `expr $$fail + $$xpass + $$error` -eq 0; then \
+         success=true; \
+       else \
+         success=false; \
+       fi; \
+       br='==================='; br=$$br$$br$$br$$br; \
+       result_count () \
+       { \
+           if test x"$$1" = x"--maybe-color"; then \
+             maybe_colorize=yes; \
+           elif test x"$$1" = x"--no-color"; then \
+             maybe_colorize=no; \
+           else \
+             echo "$@: invalid 'result_count' usage" >&2; exit 4; \
+           fi; \
+           shift; \
+           desc=$$1 count=$$2; \
+           if test $$maybe_colorize = yes && test $$count -gt 0; then \
+             color_start=$$3 color_end=$$std; \
+           else \
+             color_start= color_end=; \
+           fi; \
+           echo "$${color_start}# $$desc $$count$${color_end}"; \
+       }; \
+       create_testsuite_report () \
+       { \
+         result_count $$1 "TOTAL:" $$all   "$$brg"; \
+         result_count $$1 "PASS: " $$pass  "$$grn"; \
+         result_count $$1 "SKIP: " $$skip  "$$blu"; \
+         result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
+         result_count $$1 "FAIL: " $$fail  "$$red"; \
+         result_count $$1 "XPASS:" $$xpass "$$red"; \
+         result_count $$1 "ERROR:" $$error "$$mgn"; \
+       }; \
+       {                                                               \
+         echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" |       \
+           $(am__rst_title);                                           \
+         create_testsuite_report --no-color;                           \
+         echo;                                                         \
+         echo ".. contents:: :depth: 2";                               \
+         echo;                                                         \
+         for b in $$bases; do echo $$b; done                           \
+           | $(am__create_global_log);                                 \
+       } >$(TEST_SUITE_LOG).tmp || exit 1;                             \
+       mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG);                     \
+       if $$success; then                                              \
+         col="$$grn";                                                  \
+        else                                                           \
+         col="$$red";                                                  \
+         test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG);               \
+       fi;                                                             \
+       echo "$${col}$$br$${std}";                                      \
+       echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}";   \
+       echo "$${col}$$br$${std}";                                      \
+       create_testsuite_report --maybe-color;                          \
+       echo "$$col$$br$$std";                                          \
+       if $$success; then :; else                                      \
+         echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}";         \
+         if test -n "$(PACKAGE_BUGREPORT)"; then                       \
+           echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
+         fi;                                                           \
+         echo "$$col$$br$$std";                                        \
+       fi;                                                             \
+       $$success || exit 1
+
+check-TESTS:
+       @list='$(RECHECK_LOGS)';           test -z "$$list" || rm -f $$list
+       @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
+       @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+       @set +e; $(am__set_TESTS_bases); \
+       log_list=`for i in $$bases; do echo $$i.log; done`; \
+       trs_list=`for i in $$bases; do echo $$i.trs; done`; \
+       log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
+       $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
+       exit $$?;
+recheck: all $(dist_check_SCRIPTS)
+       @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+       @set +e; $(am__set_TESTS_bases); \
+       bases=`for i in $$bases; do echo $$i; done \
+                | $(am__list_recheck_tests)` || exit 1; \
+       log_list=`for i in $$bases; do echo $$i.log; done`; \
+       log_list=`echo $$log_list`; \
+       $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
+               am__force_recheck=am--force-recheck \
+               TEST_LOGS="$$log_list"; \
+       exit $$?
+check-c-linkage-decls.sh.log: check-c-linkage-decls.sh
+       @p='check-c-linkage-decls.sh'; \
+       b='check-c-linkage-decls.sh'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+check-defs.sh.log: check-defs.sh
+       @p='check-defs.sh'; \
+       b='check-defs.sh'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+check-header-guards.sh.log: check-header-guards.sh
+       @p='check-header-guards.sh'; \
+       b='check-header-guards.sh'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+check-includes.sh.log: check-includes.sh
+       @p='check-includes.sh'; \
+       b='check-includes.sh'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+check-libstdc++.sh.log: check-libstdc++.sh
+       @p='check-libstdc++.sh'; \
+       b='check-libstdc++.sh'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+check-static-inits.sh.log: check-static-inits.sh
+       @p='check-static-inits.sh'; \
+       b='check-static-inits.sh'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+check-symbols.sh.log: check-symbols.sh
+       @p='check-symbols.sh'; \
+       b='check-symbols.sh'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+.test.log:
+       @p='$<'; \
+       $(am__set_b); \
+       $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+@am__EXEEXT_TRUE@.test$(EXEEXT).log:
+@am__EXEEXT_TRUE@      @p='$<'; \
+@am__EXEEXT_TRUE@      $(am__set_b); \
+@am__EXEEXT_TRUE@      $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
+@am__EXEEXT_TRUE@      --log-file $$b.log --trs-file $$b.trs \
+@am__EXEEXT_TRUE@      $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
+@am__EXEEXT_TRUE@      "$$tst" $(AM_TESTS_FD_REDIRECT)
+
+distdir: $(DISTFILES)
+       @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       list='$(DISTFILES)'; \
+         dist_files=`for file in $$list; do echo $$file; done | \
+         sed -e "s|^$$srcdirstrip/||;t" \
+             -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+       case $$dist_files in \
+         */*) $(MKDIR_P) `echo "$$dist_files" | \
+                          sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+                          sort -u` ;; \
+       esac; \
+       for file in $$dist_files; do \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         if test -d $$d/$$file; then \
+           dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+           if test -d "$(distdir)/$$file"; then \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+         else \
+           test -f "$(distdir)/$$file" \
+           || cp -p $$d/$$file "$(distdir)/$$file" \
+           || exit 1; \
+         fi; \
+       done
+       @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+         if test "$$subdir" = .; then :; else \
+           $(am__make_dryrun) \
+             || test -d "$(distdir)/$$subdir" \
+             || $(MKDIR_P) "$(distdir)/$$subdir" \
+             || exit 1; \
+           dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+           $(am__relativize); \
+           new_distdir=$$reldir; \
+           dir1=$$subdir; dir2="$(top_distdir)"; \
+           $(am__relativize); \
+           new_top_distdir=$$reldir; \
+           echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+           echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+           ($(am__cd) $$subdir && \
+             $(MAKE) $(AM_MAKEFLAGS) \
+               top_distdir="$$new_top_distdir" \
+               distdir="$$new_distdir" \
+               am__remove_distdir=: \
+               am__skip_length_check=: \
+               am__skip_mode_fix=: \
+               distdir) \
+             || exit 1; \
+         fi; \
+       done
+check-am: all-am
+       $(MAKE) $(AM_MAKEFLAGS) $(dist_check_SCRIPTS)
+       $(MAKE) $(AM_MAKEFLAGS) check-TESTS
+check: $(BUILT_SOURCES)
+       $(MAKE) $(AM_MAKEFLAGS) check-recursive
+all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(DATA) $(HEADERS)
+install-binPROGRAMS: install-libLTLIBRARIES
+
+installdirs: installdirs-recursive
+installdirs-am:
+       for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(girdir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(typelibdir)" "$(DESTDIR)$(pkgincludedir)" "$(DESTDIR)$(pkgincludedir)"; do \
+         test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+       done
+install: $(BUILT_SOURCES)
+       $(MAKE) $(AM_MAKEFLAGS) install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+       if test -z '$(STRIP)'; then \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+             install; \
+       else \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+           "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+       fi
+mostlyclean-generic:
+       -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
+       -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
+       -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+
+clean-generic:
+       -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+       -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+       -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+       -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
+       -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+clean: clean-recursive
+
+clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
+       clean-libtool clean-noinstPROGRAMS mostlyclean-am
+
+distclean: distclean-recursive
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+       distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+html-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am: install-girDATA install-nodist_pkgincludeHEADERS \
+       install-pkgconfigDATA install-pkgincludeHEADERS \
+       install-typelibDATA
+
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
+install-exec-am: install-binPROGRAMS install-libLTLIBRARIES
+
+install-html: install-html-recursive
+
+install-html-am:
+
+install-info: install-info-recursive
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
+installcheck-am: installcheck-binPROGRAMS
+
+maintainer-clean: maintainer-clean-recursive
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+       mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am: uninstall-binPROGRAMS uninstall-girDATA \
+       uninstall-libLTLIBRARIES uninstall-nodist_pkgincludeHEADERS \
+       uninstall-pkgconfigDATA uninstall-pkgincludeHEADERS \
+       uninstall-typelibDATA
+
+.MAKE: $(am__recursive_targets) all check check-am install install-am \
+       install-strip
+
+.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
+       check-TESTS check-am clean clean-binPROGRAMS clean-generic \
+       clean-libLTLIBRARIES clean-libtool clean-noinstPROGRAMS \
+       cscopelist-am ctags ctags-am distclean distclean-compile \
+       distclean-generic distclean-libtool distclean-tags distdir dvi \
+       dvi-am html html-am info info-am install install-am \
+       install-binPROGRAMS install-data install-data-am install-dvi \
+       install-dvi-am install-exec install-exec-am install-girDATA \
+       install-html install-html-am install-info install-info-am \
+       install-libLTLIBRARIES install-man \
+       install-nodist_pkgincludeHEADERS install-pdf install-pdf-am \
+       install-pkgconfigDATA install-pkgincludeHEADERS install-ps \
+       install-ps-am install-strip install-typelibDATA installcheck \
+       installcheck-am installcheck-binPROGRAMS installdirs \
+       installdirs-am maintainer-clean maintainer-clean-generic \
+       mostlyclean mostlyclean-compile mostlyclean-generic \
+       mostlyclean-libtool pdf pdf-am ps ps-am recheck tags tags-am \
+       uninstall uninstall-am uninstall-binPROGRAMS uninstall-girDATA \
+       uninstall-libLTLIBRARIES uninstall-nodist_pkgincludeHEADERS \
+       uninstall-pkgconfigDATA uninstall-pkgincludeHEADERS \
+       uninstall-typelibDATA
+
+@HAVE_GOBJECT_TRUE@hb-gobject-enums.%: hb-gobject-enums.%.tmpl $(HBHEADERS)
+@HAVE_GOBJECT_TRUE@    $(AM_V_GEN) $(GLIB_MKENUMS) \
+@HAVE_GOBJECT_TRUE@            --identifier-prefix hb_ --symbol-prefix hb_gobject \
+@HAVE_GOBJECT_TRUE@            --template $^ | \
+@HAVE_GOBJECT_TRUE@    sed 's/_t_get_type/_get_type/g; s/_T (/ (/g' > "$@.tmp" && \
+@HAVE_GOBJECT_TRUE@    mv "$@.tmp" "$@" || ( $(RM) "@.tmp" && false )
+
+%.pc: %.pc.in $(top_builddir)/config.status
+       $(AM_V_GEN) \
+       $(SED)  -e 's@%prefix%@$(prefix)@g' \
+               -e 's@%exec_prefix%@$(exec_prefix)@g' \
+               -e 's@%libdir%@$(libdir)@g' \
+               -e 's@%includedir%@$(includedir)@g' \
+               -e 's@%VERSION%@$(VERSION)@g' \
+       "$<" \
+       > "$@.tmp" && mv "$@.tmp" "$@" || ( $(RM) "$@.tmp"; false )
+harfbuzz.def: $(HBHEADERS) $(HBNODISTHEADERS)
+       $(AM_V_GEN) (echo EXPORTS; \
+       (cat $^ || echo 'hb_ERROR ()' ) | \
+       $(EGREP) '^hb_.* \(' | \
+       sed -e 's/ (.*//' | \
+       LANG=C sort; \
+       echo LIBRARY libharfbuzz-$(HB_VERSION_MAJOR).dll; \
+       ) >"$@.tmp"
+       @ ! grep -q hb_ERROR "$@.tmp" && mv "$@.tmp" "$@" || ($(RM) "$@"; false)
+
+unicode-tables: arabic-table indic-table
+
+indic-table: gen-indic-table.py IndicSyllabicCategory.txt IndicMatraCategory.txt Blocks.txt
+       $(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-indic-table.cc.tmp && \
+       mv hb-ot-shape-complex-indic-table.cc.tmp $(srcdir)/hb-ot-shape-complex-indic-table.cc || \
+       ($(RM) hb-ot-shape-complex-indic-table.cc.tmp; false)
+
+arabic-table: gen-arabic-table.py ArabicShaping.txt UnicodeData.txt Blocks.txt
+       $(AM_V_GEN) $(builddir)/$^ > hb-ot-shape-complex-arabic-table.hh.tmp && \
+       mv hb-ot-shape-complex-arabic-table.hh.tmp $(srcdir)/hb-ot-shape-complex-arabic-table.hh || \
+       ($(RM) hb-ot-shape-complex-arabic-table.hh.tmp; false)
+
+built-sources: $(BUILT_SOURCES)
+
+.PHONY: unicode-tables arabic-table indic-table built-sources
+.rl.hh:
+       $(AM_V_GEN)$(RAGEL) -e -F1 -o "$@.tmp" "$<" && \
+       mv "$@.tmp" "$@" || ( $(RM) "$@.tmp" && false )
+
+@HAVE_INTROSPECTION_TRUE@-include $(INTROSPECTION_MAKEFILE)
+
+@HAVE_INTROSPECTION_TRUE@HarfBuzz-0.0.gir: libharfbuzz.la libharfbuzz-gobject.la
+
+-include $(top_srcdir)/git.mk
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/check-c-linkage-decls.sh b/src/check-c-linkage-decls.sh
new file mode 100755 (executable)
index 0000000..b10310f
--- /dev/null
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+LC_ALL=C
+export LC_ALL
+
+test -z "$srcdir" && srcdir=.
+stat=0
+
+test "x$HBHEADERS" = x && HBHEADERS=`cd "$srcdir"; find . -maxdepth 1 -name 'hb*.h'`
+test "x$HBSOURCES" = x && HBSOURCES=`cd "$srcdir"; find . -maxdepth 1 -name 'hb*.h'`
+
+
+for x in $HBHEADERS; do
+       test -f $srcdir/$x && x=$srcdir/$x
+       if ! grep -q HB_BEGIN_DECLS "$x" || ! grep -q HB_END_DECLS "$x"; then
+               echo "Ouch, file $x does not have HB_BEGIN_DECLS / HB_END_DECLS, but it should"
+               stat=1
+       fi
+done
+for x in $HBSOURCES; do
+       test -f $srcdir/$x && x=$srcdir/$x
+       if grep -q HB_BEGIN_DECLS "$x" || grep -q HB_END_DECLS "$x"; then
+               echo "Ouch, file $x has HB_BEGIN_DECLS / HB_END_DECLS, but it shouldn't"
+               stat=1
+       fi
+done
+
+exit $stat
diff --git a/src/check-defs.sh b/src/check-defs.sh
new file mode 100755 (executable)
index 0000000..357347f
--- /dev/null
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+LC_ALL=C
+export LC_ALL
+
+test -z "$srcdir" && srcdir=.
+test -z "$MAKE" && MAKE=make
+stat=0
+
+if which nm 2>/dev/null >/dev/null; then
+       :
+else
+       echo "check-defs.sh: 'nm' not found; skipping test"
+       exit 77
+fi
+
+defs="harfbuzz.def"
+$MAKE $defs > /dev/null
+tested=false
+for def in $defs; do
+       lib=`echo "$def" | sed 's/[.]def$//;s@.*/@@'`
+       so=.libs/lib${lib}.so
+
+       EXPORTED_SYMBOLS="`nm "$so" | grep ' [BCDGINRSTVW] ' | grep -v ' _fini\>\| _init\>\| _fdata\>\| _ftext\>\| _fbss\>\| __bss_start\>\| __bss_start__\>\| __bss_end__\>\| _edata\>\| _end\>\| _bss_end__\>\| __end__\>' | cut -d' ' -f3`"
+
+       if test -f "$so"; then
+
+               echo "Checking that $so has the same symbol list as $def"
+               {
+                       echo EXPORTS
+                       echo "$EXPORTED_SYMBOLS"
+                       # cheat: copy the last line from the def file!
+                       tail -n1 "$def"
+               } | diff "$def" - >&2 || stat=1
+
+               tested=true
+       fi
+done
+if ! $tested; then
+       echo "check-defs.sh: libharfbuzz shared library not found; skipping test"
+       exit 77
+fi
+
+exit $stat
diff --git a/src/check-header-guards.sh b/src/check-header-guards.sh
new file mode 100755 (executable)
index 0000000..9a3302c
--- /dev/null
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+LC_ALL=C
+export LC_ALL
+
+test -z "$srcdir" && srcdir=.
+stat=0
+
+test "x$HBHEADERS" = x && HBHEADERS=`cd "$srcdir"; find . -maxdepth 1 -name 'hb*.h'`
+test "x$HBSOURCES" = x && HBSOURCES=`cd "$srcdir"; find . -maxdepth 1 -name 'hb-*.cc' -or -name 'hb-*.hh'`
+
+
+for x in $HBHEADERS $HBSOURCES; do
+       test -f "$srcdir/$x" && x="$srcdir/$x"
+       echo "$x" | grep '[^h]$' -q && continue;
+       xx=`echo "$x" | sed 's@.*/@@'`
+       tag=`echo "$xx" | tr 'a-z.-' 'A-Z_'`
+       lines=`grep "\<$tag\>" "$x" | wc -l | sed 's/[  ]*//g'`
+       if test "x$lines" != x3; then
+               echo "Ouch, header file $x does not have correct preprocessor guards"
+               stat=1
+       fi
+done
+
+exit $stat
diff --git a/src/check-includes.sh b/src/check-includes.sh
new file mode 100755 (executable)
index 0000000..902f235
--- /dev/null
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+LC_ALL=C
+export LC_ALL
+
+test -z "$srcdir" && srcdir=.
+stat=0
+
+test "x$HBHEADERS" = x && HBHEADERS=`cd "$srcdir"; find . -maxdepth 1 -name 'hb*.h'`
+test "x$HBSOURCES" = x && HBSOURCES=`cd "$srcdir"; find . -maxdepth 1 -name 'hb-*.cc' -or -name 'hb-*.hh'`
+
+
+echo 'Checking that public header files #include "hb-common.h" or "hb.h" first (or none)'
+
+for x in $HBHEADERS; do
+       test -f "$srcdir/$x" && x="$srcdir/$x"
+       grep '#.*\<include\>' "$x" /dev/null | head -n 1
+done |
+grep -v '"hb-common[.]h"' |
+grep -v '"hb[.]h"' |
+grep -v 'hb-common[.]h:' |
+grep -v 'hb[.]h:' |
+grep . >&2 && stat=1
+
+
+echo 'Checking that source files #include "hb-*private.hh" first (or none)'
+
+for x in $HBSOURCES; do
+       test -f "$srcdir/$x" && x="$srcdir/$x"
+       grep '#.*\<include\>' "$x" /dev/null | grep -v 'include _' | head -n 1
+done |
+grep -v '"hb-.*private[.]hh"' |
+grep -v 'hb-private[.]hh:' |
+grep . >&2 && stat=1
+
+
+echo 'Checking that there is no #include <hb.*.h>'
+for x in $HBHEADERS $HBSOURCES; do
+       test -f "$srcdir/$x" && x="$srcdir/$x"
+       grep '#.*\<include\>.*<.*hb' "$x" /dev/null >&2 && stat=1
+done
+
+
+exit $stat
diff --git a/src/check-libstdc++.sh b/src/check-libstdc++.sh
new file mode 100755 (executable)
index 0000000..e7e0e29
--- /dev/null
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+LC_ALL=C
+export LC_ALL
+
+test -z "$srcdir" && srcdir=.
+stat=0
+
+
+if which ldd 2>/dev/null >/dev/null; then
+       :
+else
+       echo "check-libstdc++.sh: 'ldd' not found; skipping test"
+       exit 77
+fi
+
+tested=false
+for suffix in so dylib; do
+       so=.libs/libharfbuzz.$suffix
+       if test -f "$so"; then
+               echo "Checking that we are not linking to libstdc++"
+               if ldd $so | grep 'libstdc[+][+]'; then
+                       echo "Ouch, linked to libstdc++"
+                       stat=1
+               fi
+               tested=true
+       fi
+done
+if ! $tested; then
+       echo "check-libstdc++.sh: libharfbuzz shared library not found; skipping test"
+       exit 77
+fi
+
+exit $stat
diff --git a/src/check-static-inits.sh b/src/check-static-inits.sh
new file mode 100755 (executable)
index 0000000..83d02c8
--- /dev/null
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+LC_ALL=C
+export LC_ALL
+
+test -z "$srcdir" && srcdir=.
+stat=0
+
+
+if which objdump 2>/dev/null >/dev/null; then
+       :
+else
+       echo "check-static-inits.sh: 'objdump' not found; skipping test"
+       exit 77
+fi
+
+OBJS=.libs/*.o
+if test "x`echo $OBJS`" = "x$OBJS" 2>/dev/null >/dev/null; then
+       echo "check-static-inits.sh: object files not found; skipping test"
+       exit 77
+fi
+
+echo "Checking that no object file has static initializers"
+for obj in $OBJS; do
+       if objdump -t "$obj" | grep '[.]ctors'; then
+               echo "Ouch, $obj has static initializers"
+               stat=1
+       fi
+done
+
+echo "Checking that no object file has lazy static C++ constructors/destructors or other such stuff"
+for obj in $OBJS; do
+       if objdump -t "$obj" | grep '__cxa_'; then
+               echo "Ouch, $obj has lazy static C++ constructors/destructors or other such stuff"
+               stat=1
+       fi
+done
+
+exit $stat
diff --git a/src/check-symbols.sh b/src/check-symbols.sh
new file mode 100755 (executable)
index 0000000..e000b01
--- /dev/null
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+LC_ALL=C
+export LC_ALL
+
+test -z "$srcdir" && srcdir=.
+stat=0
+
+
+if which nm 2>/dev/null >/dev/null; then
+       :
+else
+       echo "check-symbols.sh: 'nm' not found; skipping test"
+       exit 77
+fi
+
+echo "Checking that we are not exposing internal symbols"
+tested=false
+for so in `ls .libs/lib*.so .libs/lib*.dylib 2>/dev/null` ; do
+       
+       EXPORTED_SYMBOLS="`nm "$so" | grep ' [BCDGINRSTVW] ' | grep -v ' _fini\>\| _init\>\| _fdata\>\| _ftext\>\| _fbss\>\| __bss_start\>\| __bss_start__\>\| __bss_end__\>\| _edata\>\| _end\>\| _bss_end__\>\| __end__\>' | cut -d' ' -f3`"
+       prefix=`basename "$so" | sed 's/libharfbuzz/hb/; s/-/_/g; s/[.].*//'`
+
+       echo "Processing $so"
+       if echo "$EXPORTED_SYMBOLS" | grep -v "^${prefix}_"; then
+               echo "Ouch, internal symbols exposed"
+               stat=1
+       fi
+
+       tested=true
+done
+if ! $tested; then
+       echo "check-symbols.sh: no shared library found; skipping test"
+       exit 77
+fi
+
+exit $stat
diff --git a/src/gen-arabic-table.py b/src/gen-arabic-table.py
new file mode 100755 (executable)
index 0000000..308435f
--- /dev/null
@@ -0,0 +1,269 @@
+#!/usr/bin/python
+
+import sys
+import os.path
+
+if len (sys.argv) != 4:
+       print >>sys.stderr, "usage: ./gen-arabic-table.py ArabicShaping.txt UnicodeData.txt Blocks.txt"
+       sys.exit (1)
+
+files = [file (x) for x in sys.argv[1:]]
+
+headers = [[files[0].readline (), files[0].readline ()], [files[2].readline (), files[2].readline ()]]
+headers.append (["UnicodeData.txt does not have a header."])
+while files[0].readline ().find ('##################') < 0:
+       pass
+
+blocks = {}
+def read_blocks(f):
+       global blocks
+       for line in f:
+
+               j = line.find ('#')
+               if j >= 0:
+                       line = line[:j]
+
+               fields = [x.strip () for x in line.split (';')]
+               if len (fields) == 1:
+                       continue
+
+               uu = fields[0].split ('..')
+               start = int (uu[0], 16)
+               if len (uu) == 1:
+                       end = start
+               else:
+                       end = int (uu[1], 16)
+
+               t = fields[1]
+
+               for u in range (start, end + 1):
+                       blocks[u] = t
+
+def print_joining_table(f):
+
+       values = {}
+       for line in f:
+
+               if line[0] == '#':
+                       continue
+
+               fields = [x.strip () for x in line.split (';')]
+               if len (fields) == 1:
+                       continue
+
+               u = int (fields[0], 16)
+
+               if fields[3] in ["ALAPH", "DALATH RISH"]:
+                       value = "JOINING_GROUP_" + fields[3].replace(' ', '_')
+               else:
+                       value = "JOINING_TYPE_" + fields[2]
+               values[u] = value
+
+       short_value = {}
+       for value in set([v for v in values.values()] + ['JOINING_TYPE_X']):
+               short = ''.join(x[0] for x in value.split('_')[2:])
+               assert short not in short_value.values()
+               short_value[value] = short
+
+       print
+       for value,short in short_value.items():
+               print "#define %s       %s" % (short, value)
+
+       uu = sorted(values.keys())
+       num = len(values)
+       all_blocks = set([blocks[u] for u in uu])
+
+       last = -100000
+       ranges = []
+       for u in uu:
+               if u - last <= 1+16*5:
+                       ranges[-1][-1] = u
+               else:
+                       ranges.append([u,u])
+               last = u
+
+       print
+       print "static const uint8_t joining_table[] ="
+       print "{"
+       last_block = None
+       offset = 0
+       for start,end in ranges:
+
+               print
+               print "#define joining_offset_0x%04xu %d" % (start, offset)
+
+               for u in range(start, end+1):
+
+                       block = blocks.get(u, last_block)
+                       value = values.get(u, "JOINING_TYPE_X")
+
+                       if block != last_block or u == start:
+                               if u != start:
+                                       print
+                               if block in all_blocks:
+                                       print "\n  /* %s */" % block
+                               else:
+                                       print "\n  /* FILLER */"
+                               last_block = block
+                               if u % 32 != 0:
+                                       print
+                                       print "  /* %04X */" % (u//32*32), "  " * (u % 32),
+
+                       if u % 32 == 0:
+                               print
+                               print "  /* %04X */ " % u,
+                       sys.stdout.write("%s," % short_value[value])
+               print
+
+               offset += end - start + 1
+       print
+       occupancy = num * 100. / offset
+       print "}; /* Table items: %d; occupancy: %d%% */" % (offset, occupancy)
+       print
+
+       page_bits = 12;
+       print
+       print "static unsigned int"
+       print "joining_type (hb_codepoint_t u)"
+       print "{"
+       print "  switch (u >> %d)" % page_bits
+       print "  {"
+       pages = set([u>>page_bits for u in [s for s,e in ranges]+[e for s,e in ranges]])
+       for p in sorted(pages):
+               print "    case 0x%0Xu:" % p
+               for (start,end) in ranges:
+                       if p not in [start>>page_bits, end>>page_bits]: continue
+                       offset = "joining_offset_0x%04xu" % start
+                       print "      if (hb_in_range (u, 0x%04Xu, 0x%04Xu)) return joining_table[u - 0x%04Xu + %s];" % (start, end, start, offset)
+               print "      break;"
+               print ""
+       print "    default:"
+       print "      break;"
+       print "  }"
+       print "  return X;"
+       print "}"
+       print
+       for value,short in short_value.items():
+               print "#undef %s" % (short)
+       print
+
+def print_shaping_table(f):
+
+       shapes = {}
+       ligatures = {}
+       names = {}
+       for line in f:
+
+               fields = [x.strip () for x in line.split (';')]
+               if fields[5][0:1] != '<':
+                       continue
+
+               items = fields[5].split (' ')
+               shape, items = items[0][1:-1], tuple (int (x, 16) for x in items[1:])
+
+               if not shape in ['initial', 'medial', 'isolated', 'final']:
+                       continue
+
+               c = int (fields[0], 16)
+               if len (items) != 1:
+                       # We only care about lam-alef ligatures
+                       if len (items) != 2 or items[0] != 0x0644 or items[1] not in [0x0622, 0x0623, 0x0625, 0x0627]:
+                               continue
+
+                       # Save ligature
+                       names[c] = fields[1]
+                       if items not in ligatures:
+                               ligatures[items] = {}
+                       ligatures[items][shape] = c
+                       pass
+               else:
+                       # Save shape
+                       if items[0] not in names:
+                               names[items[0]] = fields[1]
+                       else:
+                               names[items[0]] = os.path.commonprefix ([names[items[0]], fields[1]]).strip ()
+                       if items[0] not in shapes:
+                               shapes[items[0]] = {}
+                       shapes[items[0]][shape] = c
+
+       print
+       print "static const uint16_t shaping_table[][4] ="
+       print "{"
+
+       keys = shapes.keys ()
+       min_u, max_u = min (keys), max (keys)
+       for u in range (min_u, max_u + 1):
+               s = [shapes[u][shape] if u in shapes and shape in shapes[u] else 0
+                    for shape in  ['initial', 'medial', 'final', 'isolated']]
+               value = ', '.join ("0x%04Xu" % c for c in s)
+               print "  {%s}, /* U+%04X %s */" % (value, u, names[u] if u in names else "")
+
+       print "};"
+       print
+       print "#define SHAPING_TABLE_FIRST      0x%04Xu" % min_u
+       print "#define SHAPING_TABLE_LAST       0x%04Xu" % max_u
+       print
+
+       ligas = {}
+       for pair in ligatures.keys ():
+               for shape in ligatures[pair]:
+                       c = ligatures[pair][shape]
+                       if shape == 'isolated':
+                               liga = (shapes[pair[0]]['initial'], shapes[pair[1]]['final'])
+                       elif shape == 'final':
+                               liga = (shapes[pair[0]]['medial'], shapes[pair[1]]['final'])
+                       else:
+                               raise Exception ("Unexpected shape", shape)
+                       if liga[0] not in ligas:
+                               ligas[liga[0]] = []
+                       ligas[liga[0]].append ((liga[1], c))
+       max_i = max (len (ligas[l]) for l in ligas)
+       print
+       print "static const struct ligature_set_t {"
+       print " uint16_t first;"
+       print " struct ligature_pairs_t {"
+       print "   uint16_t second;"
+       print "   uint16_t ligature;"
+       print " } ligatures[%d];" % max_i
+       print "} ligature_table[] ="
+       print "{"
+       keys = ligas.keys ()
+       keys.sort ()
+       for first in keys:
+
+               print "  { 0x%04Xu, {" % (first)
+               for liga in ligas[first]:
+                       print "    { 0x%04Xu, 0x%04Xu }, /* %s */" % (liga[0], liga[1], names[liga[1]])
+               print "  }},"
+
+       print "};"
+       print
+
+
+
+print "/* == Start of generated table == */"
+print "/*"
+print " * The following table is generated by running:"
+print " *"
+print " *   ./gen-arabic-table.py ArabicShaping.txt UnicodeData.txt Blocks.txt"
+print " *"
+print " * on files with these headers:"
+print " *"
+for h in headers:
+       for l in h:
+               print " * %s" % (l.strip())
+print " */"
+print
+print "#ifndef HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH"
+print "#define HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH"
+print
+
+read_blocks (files[2])
+print_joining_table (files[0])
+print_shaping_table (files[1])
+
+print
+print "#endif /* HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH */"
+print
+print "/* == End of generated table == */"
+
diff --git a/src/gen-indic-table.py b/src/gen-indic-table.py
new file mode 100755 (executable)
index 0000000..4fb76f4
--- /dev/null
@@ -0,0 +1,237 @@
+#!/usr/bin/python
+
+import sys
+
+if len (sys.argv) != 4:
+       print >>sys.stderr, "usage: ./gen-indic-table.py IndicSyllabicCategory.txt IndicMatraCategory.txt Blocks.txt"
+       sys.exit (1)
+
+BLACKLISTED_BLOCKS = ["Thai", "Lao", "Tibetan"]
+
+files = [file (x) for x in sys.argv[1:]]
+
+headers = [[f.readline () for i in range (2)] for f in files]
+
+data = [{} for f in files]
+values = [{} for f in files]
+for i, f in enumerate (files):
+       for line in f:
+
+               j = line.find ('#')
+               if j >= 0:
+                       line = line[:j]
+
+               fields = [x.strip () for x in line.split (';')]
+               if len (fields) == 1:
+                       continue
+
+               uu = fields[0].split ('..')
+               start = int (uu[0], 16)
+               if len (uu) == 1:
+                       end = start
+               else:
+                       end = int (uu[1], 16)
+
+               t = fields[1]
+
+               for u in range (start, end + 1):
+                       data[i][u] = t
+               values[i][t] = values[i].get (t, 0) + end - start + 1
+
+# Merge data into one dict:
+defaults = ('Other', 'Not_Applicable', 'No_Block')
+for i,v in enumerate (defaults):
+       values[i][v] = values[i].get (v, 0) + 1
+combined = {}
+for i,d in enumerate (data):
+       for u,v in d.items ():
+               if i == 2 and not u in combined:
+                       continue
+               if not u in combined:
+                       combined[u] = list (defaults)
+               combined[u][i] = v
+combined = {k:v for k,v in combined.items() if v[2] not in BLACKLISTED_BLOCKS}
+data = combined
+del combined
+num = len (data)
+
+for u in [0x17CD, 0x17CE, 0x17CF, 0x17D0, 0x17D3]:
+       if data[u][0] == 'Other':
+               data[u][0] = "Vowel_Dependent"
+
+# Move the outliers NO-BREAK SPACE and DOTTED CIRCLE out
+singles = {}
+for u in [0x00A0, 0x25CC]:
+       singles[u] = data[u]
+       del data[u]
+
+print "/* == Start of generated table == */"
+print "/*"
+print " * The following table is generated by running:"
+print " *"
+print " *   ./gen-indic-table.py IndicSyllabicCategory.txt IndicMatraCategory.txt Blocks.txt"
+print " *"
+print " * on files with these headers:"
+print " *"
+for h in headers:
+       for l in h:
+               print " * %s" % (l.strip())
+print " */"
+print
+print '#include "hb-ot-shape-complex-indic-private.hh"'
+print
+
+# Shorten values
+short = [{
+       "Bindu":                'Bi',
+       "Cantillation_Mark":    'Ca',
+       "Joiner":               'ZWJ',
+       "Non_Joiner":           'ZWNJ',
+       "Number":               'Nd',
+       "Visarga":              'Vs',
+       "Vowel":                'Vo',
+       "Vowel_Dependent":      'M',
+       "Other":                'x',
+},{
+       "Not_Applicable":       'x',
+}]
+all_shorts = [{},{}]
+
+# Add some of the values, to make them more readable, and to avoid duplicates
+
+
+for i in range (2):
+       for v,s in short[i].items ():
+               all_shorts[i][s] = v
+
+what = ["INDIC_SYLLABIC_CATEGORY", "INDIC_MATRA_CATEGORY"]
+what_short = ["ISC", "IMC"]
+for i in range (2):
+       print
+       vv = values[i].keys ()
+       vv.sort ()
+       for v in vv:
+               v_no_and = v.replace ('_And_', '_')
+               if v in short[i]:
+                       s = short[i][v]
+               else:
+                       s = ''.join ([c for c in v_no_and if ord ('A') <= ord (c) <= ord ('Z')])
+                       if s in all_shorts[i]:
+                               raise Exception ("Duplicate short value alias", v, all_shorts[i][s])
+                       all_shorts[i][s] = v
+                       short[i][v] = s
+               print "#define %s_%s    %s_%s   %s/* %3d chars; %s */" % \
+                       (what_short[i], s, what[i], v.upper (), \
+                       '       '* ((48-1 - len (what[i]) - 1 - len (v)) / 8), \
+                       values[i][v], v)
+print
+print "#define _(S,M) INDIC_COMBINE_CATEGORIES (ISC_##S, IMC_##M)"
+print
+print
+
+total = 0
+used = 0
+last_block = None
+def print_block (block, start, end, data):
+       global total, used, last_block
+       if block and block != last_block:
+               print
+               print
+               print "  /* %s */" % block
+       num = 0
+       assert start % 8 == 0
+       assert (end+1) % 8 == 0
+       for u in range (start, end+1):
+               if u % 8 == 0:
+                       print
+                       print "  /* %04X */" % u,
+               if u in data:
+                       num += 1
+               d = data.get (u, defaults)
+               sys.stdout.write ("%9s" % ("_(%s,%s)," % (short[0][d[0]], short[1][d[1]])))
+
+       total += end - start + 1
+       used += num
+       if block:
+               last_block = block
+
+uu = data.keys ()
+uu.sort ()
+
+last = -100000
+num = 0
+offset = 0
+starts = []
+ends = []
+print "static const INDIC_TABLE_ELEMENT_TYPE indic_table[] = {"
+for u in uu:
+       if u <= last:
+               continue
+       block = data[u][2]
+
+       start = u//8*8
+       end = start+1
+       while end in uu and block == data[end][2]:
+               end += 1
+       end = (end-1)//8*8 + 7
+
+       if start != last + 1:
+               if start - last <= 1+16*3:
+                       print_block (None, last+1, start-1, data)
+                       last = start-1
+               else:
+                       if last >= 0:
+                               ends.append (last + 1)
+                               offset += ends[-1] - starts[-1]
+                       print
+                       print
+                       print "#define indic_offset_0x%04xu %d" % (start, offset)
+                       starts.append (start)
+
+       print_block (block, start, end, data)
+       last = end
+ends.append (last + 1)
+offset += ends[-1] - starts[-1]
+print
+print
+occupancy = used * 100. / total
+page_bits = 12
+print "}; /* Table items: %d; occupancy: %d%% */" % (offset, occupancy)
+print
+print "INDIC_TABLE_ELEMENT_TYPE"
+print "hb_indic_get_categories (hb_codepoint_t u)"
+print "{"
+print "  switch (u >> %d)" % page_bits
+print "  {"
+pages = set([u>>page_bits for u in starts+ends+singles.keys()])
+for p in sorted(pages):
+       print "    case 0x%0Xu:" % p
+       for (start,end) in zip (starts, ends):
+               if p not in [start>>page_bits, end>>page_bits]: continue
+               offset = "indic_offset_0x%04xu" % start
+               print "      if (hb_in_range (u, 0x%04Xu, 0x%04Xu)) return indic_table[u - 0x%04Xu + %s];" % (start, end, start, offset)
+       for u,d in singles.items ():
+               if p != u>>page_bits: continue
+               print "      if (unlikely (u == 0x%04Xu)) return _(%s,%s);" % (u, short[0][d[0]], short[1][d[1]])
+       print "      break;"
+       print ""
+print "    default:"
+print "      break;"
+print "  }"
+print "  return _(x,x);"
+print "}"
+print
+print "#undef _"
+for i in range (2):
+       print
+       vv = values[i].keys ()
+       vv.sort ()
+       for v in vv:
+               print "#undef %s_%s" % \
+                       (what_short[i], short[i][v])
+print
+print "/* == End of generated table == */"
+
+# Maintain at least 30% occupancy in the table */
+if occupancy < 30:
+       raise Exception ("Table too sparse, please investigate: ", occupancy)
diff --git a/src/harfbuzz-gobject.pc.in b/src/harfbuzz-gobject.pc.in
new file mode 100644 (file)
index 0000000..7008360
--- /dev/null
@@ -0,0 +1,12 @@
+prefix=%prefix%
+exec_prefix=%exec_prefix%
+libdir=%libdir%
+includedir=%includedir%
+
+Name: harfbuzz
+Description: HarfBuzz text shaping library GObject integration
+Version: %VERSION%
+
+Requires: harfbuzz gobject-2.0 glib-2.0
+Libs: -L${libdir} -lharfbuzz-gobject
+Cflags: -I${includedir}/harfbuzz
diff --git a/src/harfbuzz-icu.pc.in b/src/harfbuzz-icu.pc.in
new file mode 100644 (file)
index 0000000..949869a
--- /dev/null
@@ -0,0 +1,13 @@
+prefix=%prefix%
+exec_prefix=%exec_prefix%
+libdir=%libdir%
+includedir=%includedir%
+
+Name: harfbuzz
+Description: HarfBuzz text shaping library ICU integration
+Version: %VERSION%
+
+Requires: harfbuzz
+Requires.private: icu-uc
+Libs: -L${libdir} -lharfbuzz-icu
+Cflags: -I${includedir}/harfbuzz
diff --git a/src/harfbuzz.pc.in b/src/harfbuzz.pc.in
new file mode 100644 (file)
index 0000000..7f27bbb
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=%prefix%
+exec_prefix=%exec_prefix%
+libdir=%libdir%
+includedir=%includedir%
+
+Name: harfbuzz
+Description: HarfBuzz text shaping library
+Version: %VERSION%
+
+Libs: -L${libdir} -lharfbuzz
+Cflags: -I${includedir}/harfbuzz
diff --git a/src/hb-atomic-private.hh b/src/hb-atomic-private.hh
new file mode 100644 (file)
index 0000000..e6738b7
--- /dev/null
@@ -0,0 +1,135 @@
+/*
+ * Copyright © 2007  Chris Wilson
+ * Copyright © 2009,2010  Red Hat, Inc.
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Contributor(s):
+ *     Chris Wilson <chris@chris-wilson.co.uk>
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_ATOMIC_PRIVATE_HH
+#define HB_ATOMIC_PRIVATE_HH
+
+#include "hb-private.hh"
+
+
+/* atomic_int */
+
+/* We need external help for these */
+
+#if 0
+
+
+#elif !defined(HB_NO_MT) && (defined(_WIN32) || defined(__CYGWIN__))
+
+#include <windows.h>
+
+/* MinGW has a convoluted history of supporting MemoryBarrier
+ * properly.  As such, define a function to wrap the whole
+ * thing. */
+static inline void _HBMemoryBarrier (void) {
+#if !defined(MemoryBarrier)
+  long dummy = 0;
+  InterlockedExchange (&dummy, 1);
+#else
+  MemoryBarrier ();
+#endif
+}
+
+typedef LONG hb_atomic_int_t;
+#define hb_atomic_int_add(AI, V)       InterlockedExchangeAdd (&(AI), (V))
+
+#define hb_atomic_ptr_get(P)           (_HBMemoryBarrier (), (void *) *(P))
+#define hb_atomic_ptr_cmpexch(P,O,N)   (InterlockedCompareExchangePointer ((void **) (P), (void *) (N), (void *) (O)) == (void *) (O))
+
+
+#elif !defined(HB_NO_MT) && defined(__APPLE__)
+
+#include <libkern/OSAtomic.h>
+#ifdef __MAC_OS_X_MIN_REQUIRED
+#include <AvailabilityMacros.h>
+#elif defined(__IPHONE_OS_MIN_REQUIRED)
+#include <Availability.h>
+#endif
+
+typedef int32_t hb_atomic_int_t;
+#define hb_atomic_int_add(AI, V)       (OSAtomicAdd32Barrier ((V), &(AI)) - (V))
+
+#define hb_atomic_ptr_get(P)           (OSMemoryBarrier (), (void *) *(P))
+#if (MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4 || __IPHONE_VERSION_MIN_REQUIRED >= 20100)
+#define hb_atomic_ptr_cmpexch(P,O,N)   OSAtomicCompareAndSwapPtrBarrier ((void *) (O), (void *) (N), (void **) (P))
+#else
+#if __ppc64__ || __x86_64__ || __aarch64__
+#define hb_atomic_ptr_cmpexch(P,O,N)    OSAtomicCompareAndSwap64Barrier ((int64_t) (O), (int64_t) (N), (int64_t*) (P))
+#else
+#define hb_atomic_ptr_cmpexch(P,O,N)    OSAtomicCompareAndSwap32Barrier ((int32_t) (O), (int32_t) (N), (int32_t*) (P))
+#endif
+#endif
+
+
+#elif !defined(HB_NO_MT) && defined(HAVE_INTEL_ATOMIC_PRIMITIVES)
+
+typedef int hb_atomic_int_t;
+#define hb_atomic_int_add(AI, V)       __sync_fetch_and_add (&(AI), (V))
+
+#define hb_atomic_ptr_get(P)           (void *) (__sync_synchronize (), *(P))
+#define hb_atomic_ptr_cmpexch(P,O,N)   __sync_bool_compare_and_swap ((P), (O), (N))
+
+
+#elif !defined(HB_NO_MT) && defined(HAVE_SOLARIS_ATOMIC_OPS)
+
+#include <atomic.h>
+#include <mbarrier.h>
+
+typedef unsigned int hb_atomic_int_t;
+#define hb_atomic_int_add(AI, V)       ( ({__machine_rw_barrier ();}), atomic_add_int_nv (&(AI), (V)) - (V))
+
+#define hb_atomic_ptr_get(P)           ( ({__machine_rw_barrier ();}), (void *) *(P))
+#define hb_atomic_ptr_cmpexch(P,O,N)   ( ({__machine_rw_barrier ();}), atomic_cas_ptr ((void **) (P), (void *) (O), (void *) (N)) == (void *) (O) ? true : false)
+
+
+#elif !defined(HB_NO_MT)
+
+#define HB_ATOMIC_INT_NIL 1 /* Warn that fallback implementation is in use. */
+typedef volatile int hb_atomic_int_t;
+#define hb_atomic_int_add(AI, V)       (((AI) += (V)) - (V))
+
+#define hb_atomic_ptr_get(P)           ((void *) *(P))
+#define hb_atomic_ptr_cmpexch(P,O,N)   (* (void * volatile *) (P) == (void *) (O) ? (* (void * volatile *) (P) = (void *) (N), true) : false)
+
+
+#else /* HB_NO_MT */
+
+typedef int hb_atomic_int_t;
+#define hb_atomic_int_add(AI, V)       (((AI) += (V)) - (V))
+
+#define hb_atomic_ptr_get(P)           ((void *) *(P))
+#define hb_atomic_ptr_cmpexch(P,O,N)   (* (void **) (P) == (void *) (O) ? (* (void **) (P) = (void *) (N), true) : false)
+
+#endif
+
+/* TODO Add tracing. */
+
+#endif /* HB_ATOMIC_PRIVATE_HH */
diff --git a/src/hb-blob.cc b/src/hb-blob.cc
new file mode 100644 (file)
index 0000000..b82b4b2
--- /dev/null
@@ -0,0 +1,476 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ */
+
+/* http://www.oracle.com/technetwork/articles/servers-storage-dev/standardheaderfiles-453865.html */
+#ifndef _POSIX_C_SOURCE
+#define _POSIX_C_SOURCE 199309L
+#endif
+
+#include "hb-private.hh"
+
+#include "hb-object-private.hh"
+
+#ifdef HAVE_SYS_MMAN_H
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif /* HAVE_UNISTD_H */
+#include <sys/mman.h>
+#endif /* HAVE_SYS_MMAN_H */
+
+#include <stdio.h>
+#include <errno.h>
+
+
+
+#ifndef HB_DEBUG_BLOB
+#define HB_DEBUG_BLOB (HB_DEBUG+0)
+#endif
+
+
+struct hb_blob_t {
+  hb_object_header_t header;
+  ASSERT_POD ();
+
+  bool immutable;
+
+  const char *data;
+  unsigned int length;
+  hb_memory_mode_t mode;
+
+  void *user_data;
+  hb_destroy_func_t destroy;
+};
+
+
+static bool _try_writable (hb_blob_t *blob);
+
+static void
+_hb_blob_destroy_user_data (hb_blob_t *blob)
+{
+  if (blob->destroy) {
+    blob->destroy (blob->user_data);
+    blob->user_data = NULL;
+    blob->destroy = NULL;
+  }
+}
+
+/**
+ * hb_blob_create: (Xconstructor)
+ * @data: (array length=length) (closure user_data) (destroy destroy) (scope notified) (transfer none): Pointer to blob data.
+ * @length: Length of @data in bytes.
+ * @mode: Memory mode for @data.
+ * @user_data: Data parameter to pass to @destroy.
+ * @destroy: Callback to call when @data is not needed anymore.
+ *
+ * Creates a new "blob" object wrapping @data.  The @mode parameter is used
+ * to negotiate ownership and lifecycle of @data.
+ *
+ * Return value: New blob, or the empty blob if something failed or if @length is
+ * zero.  Destroy with hb_blob_destroy().
+ *
+ * Since: 1.0
+ **/
+hb_blob_t *
+hb_blob_create (const char        *data,
+               unsigned int       length,
+               hb_memory_mode_t   mode,
+               void              *user_data,
+               hb_destroy_func_t  destroy)
+{
+  hb_blob_t *blob;
+
+  if (!length || !(blob = hb_object_create<hb_blob_t> ())) {
+    if (destroy)
+      destroy (user_data);
+    return hb_blob_get_empty ();
+  }
+
+  blob->data = data;
+  blob->length = length;
+  blob->mode = mode;
+
+  blob->user_data = user_data;
+  blob->destroy = destroy;
+
+  if (blob->mode == HB_MEMORY_MODE_DUPLICATE) {
+    blob->mode = HB_MEMORY_MODE_READONLY;
+    if (!_try_writable (blob)) {
+      hb_blob_destroy (blob);
+      return hb_blob_get_empty ();
+    }
+  }
+
+  return blob;
+}
+
+/**
+ * hb_blob_create_sub_blob:
+ * @parent: Parent blob.
+ * @offset: Start offset of sub-blob within @parent, in bytes.
+ * @length: Length of sub-blob.
+ *
+ * Returns a blob that represents a range of bytes in @parent.  The new
+ * blob is always created with %HB_MEMORY_MODE_READONLY, meaning that it
+ * will never modify data in the parent blob.  The parent data is not
+ * expected to be modified, and will result in undefined behavior if it
+ * is.
+ *
+ * Makes @parent immutable.
+ *
+ * Return value: New blob, or the empty blob if something failed or if
+ * @length is zero or @offset is beyond the end of @parent's data.  Destroy
+ * with hb_blob_destroy().
+ *
+ * Since: 1.0
+ **/
+hb_blob_t *
+hb_blob_create_sub_blob (hb_blob_t    *parent,
+                        unsigned int  offset,
+                        unsigned int  length)
+{
+  hb_blob_t *blob;
+
+  if (!length || offset >= parent->length)
+    return hb_blob_get_empty ();
+
+  hb_blob_make_immutable (parent);
+
+  blob = hb_blob_create (parent->data + offset,
+                        MIN (length, parent->length - offset),
+                        HB_MEMORY_MODE_READONLY,
+                        hb_blob_reference (parent),
+                        (hb_destroy_func_t) hb_blob_destroy);
+
+  return blob;
+}
+
+/**
+ * hb_blob_get_empty:
+ *
+ * Returns the singleton empty blob.
+ *
+ * See TODO:link object types for more information.
+ *
+ * Return value: (transfer full): the empty blob.
+ *
+ * Since: 1.0
+ **/
+hb_blob_t *
+hb_blob_get_empty (void)
+{
+  static const hb_blob_t _hb_blob_nil = {
+    HB_OBJECT_HEADER_STATIC,
+
+    true, /* immutable */
+
+    NULL, /* data */
+    0, /* length */
+    HB_MEMORY_MODE_READONLY, /* mode */
+
+    NULL, /* user_data */
+    NULL  /* destroy */
+  };
+
+  return const_cast<hb_blob_t *> (&_hb_blob_nil);
+}
+
+/**
+ * hb_blob_reference: (skip)
+ * @blob: a blob.
+ *
+ * Increases the reference count on @blob.
+ *
+ * See TODO:link object types for more information.
+ *
+ * Return value: @blob.
+ *
+ * Since: 1.0
+ **/
+hb_blob_t *
+hb_blob_reference (hb_blob_t *blob)
+{
+  return hb_object_reference (blob);
+}
+
+/**
+ * hb_blob_destroy: (skip)
+ * @blob: a blob.
+ *
+ * Descreases the reference count on @blob, and if it reaches zero, destroys
+ * @blob, freeing all memory, possibly calling the destroy-callback the blob
+ * was created for if it has not been called already.
+ *
+ * See TODO:link object types for more information.
+ *
+ * Since: 1.0
+ **/
+void
+hb_blob_destroy (hb_blob_t *blob)
+{
+  if (!hb_object_destroy (blob)) return;
+
+  _hb_blob_destroy_user_data (blob);
+
+  free (blob);
+}
+
+/**
+ * hb_blob_set_user_data: (skip)
+ * @blob: a blob.
+ * @key: key for data to set.
+ * @data: data to set.
+ * @destroy: callback to call when @data is not needed anymore.
+ * @replace: whether to replace an existing data with the same key.
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_blob_set_user_data (hb_blob_t          *blob,
+                      hb_user_data_key_t *key,
+                      void *              data,
+                      hb_destroy_func_t   destroy,
+                      hb_bool_t           replace)
+{
+  return hb_object_set_user_data (blob, key, data, destroy, replace);
+}
+
+/**
+ * hb_blob_get_user_data: (skip)
+ * @blob: a blob.
+ * @key: key for data to get.
+ *
+ * 
+ *
+ * Return value: (transfer none): 
+ *
+ * Since: 1.0
+ **/
+void *
+hb_blob_get_user_data (hb_blob_t          *blob,
+                      hb_user_data_key_t *key)
+{
+  return hb_object_get_user_data (blob, key);
+}
+
+
+/**
+ * hb_blob_make_immutable:
+ * @blob: a blob.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_blob_make_immutable (hb_blob_t *blob)
+{
+  if (hb_object_is_inert (blob))
+    return;
+
+  blob->immutable = true;
+}
+
+/**
+ * hb_blob_is_immutable:
+ * @blob: a blob.
+ *
+ * 
+ *
+ * Return value: TODO
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_blob_is_immutable (hb_blob_t *blob)
+{
+  return blob->immutable;
+}
+
+
+/**
+ * hb_blob_get_length:
+ * @blob: a blob.
+ *
+ * 
+ *
+ * Return value: the length of blob data in bytes.
+ *
+ * Since: 1.0
+ **/
+unsigned int
+hb_blob_get_length (hb_blob_t *blob)
+{
+  return blob->length;
+}
+
+/**
+ * hb_blob_get_data:
+ * @blob: a blob.
+ * @length: (out):
+ *
+ * 
+ *
+ * Returns: (transfer none) (array length=length): 
+ *
+ * Since: 1.0
+ **/
+const char *
+hb_blob_get_data (hb_blob_t *blob, unsigned int *length)
+{
+  if (length)
+    *length = blob->length;
+
+  return blob->data;
+}
+
+/**
+ * hb_blob_get_data_writable:
+ * @blob: a blob.
+ * @length: (out): output length of the writable data.
+ *
+ * Tries to make blob data writable (possibly copying it) and
+ * return pointer to data.
+ *
+ * Fails if blob has been made immutable, or if memory allocation
+ * fails.
+ *
+ * Returns: (transfer none) (array length=length): Writable blob data,
+ * or %NULL if failed.
+ *
+ * Since: 1.0
+ **/
+char *
+hb_blob_get_data_writable (hb_blob_t *blob, unsigned int *length)
+{
+  if (!_try_writable (blob)) {
+    if (length)
+      *length = 0;
+
+    return NULL;
+  }
+
+  if (length)
+    *length = blob->length;
+
+  return const_cast<char *> (blob->data);
+}
+
+
+static hb_bool_t
+_try_make_writable_inplace_unix (hb_blob_t *blob)
+{
+#if defined(HAVE_SYS_MMAN_H) && defined(HAVE_MPROTECT)
+  uintptr_t pagesize = -1, mask, length;
+  const char *addr;
+
+#if defined(HAVE_SYSCONF) && defined(_SC_PAGE_SIZE)
+  pagesize = (uintptr_t) sysconf (_SC_PAGE_SIZE);
+#elif defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE)
+  pagesize = (uintptr_t) sysconf (_SC_PAGESIZE);
+#elif defined(HAVE_GETPAGESIZE)
+  pagesize = (uintptr_t) getpagesize ();
+#endif
+
+  if ((uintptr_t) -1L == pagesize) {
+    DEBUG_MSG_FUNC (BLOB, blob, "failed to get pagesize: %s", strerror (errno));
+    return false;
+  }
+  DEBUG_MSG_FUNC (BLOB, blob, "pagesize is %lu", (unsigned long) pagesize);
+
+  mask = ~(pagesize-1);
+  addr = (const char *) (((uintptr_t) blob->data) & mask);
+  length = (const char *) (((uintptr_t) blob->data + blob->length + pagesize-1) & mask)  - addr;
+  DEBUG_MSG_FUNC (BLOB, blob,
+                 "calling mprotect on [%p..%p] (%lu bytes)",
+                 addr, addr+length, (unsigned long) length);
+  if (-1 == mprotect ((void *) addr, length, PROT_READ | PROT_WRITE)) {
+    DEBUG_MSG_FUNC (BLOB, blob, "mprotect failed: %s", strerror (errno));
+    return false;
+  }
+
+  blob->mode = HB_MEMORY_MODE_WRITABLE;
+
+  DEBUG_MSG_FUNC (BLOB, blob,
+                 "successfully made [%p..%p] (%lu bytes) writable\n",
+                 addr, addr+length, (unsigned long) length);
+  return true;
+#else
+  return false;
+#endif
+}
+
+static bool
+_try_writable_inplace (hb_blob_t *blob)
+{
+  DEBUG_MSG_FUNC (BLOB, blob, "making writable inplace\n");
+
+  if (_try_make_writable_inplace_unix (blob))
+    return true;
+
+  DEBUG_MSG_FUNC (BLOB, blob, "making writable -> FAILED\n");
+
+  /* Failed to make writable inplace, mark that */
+  blob->mode = HB_MEMORY_MODE_READONLY;
+  return false;
+}
+
+static bool
+_try_writable (hb_blob_t *blob)
+{
+  if (blob->immutable)
+    return false;
+
+  if (blob->mode == HB_MEMORY_MODE_WRITABLE)
+    return true;
+
+  if (blob->mode == HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE && _try_writable_inplace (blob))
+    return true;
+
+  if (blob->mode == HB_MEMORY_MODE_WRITABLE)
+    return true;
+
+
+  DEBUG_MSG_FUNC (BLOB, blob, "current data is -> %p\n", blob->data);
+
+  char *new_data;
+
+  new_data = (char *) malloc (blob->length);
+  if (unlikely (!new_data))
+    return false;
+
+  DEBUG_MSG_FUNC (BLOB, blob, "dupped successfully -> %p\n", blob->data);
+
+  memcpy (new_data, blob->data, blob->length);
+  _hb_blob_destroy_user_data (blob);
+  blob->mode = HB_MEMORY_MODE_WRITABLE;
+  blob->data = new_data;
+  blob->user_data = new_data;
+  blob->destroy = free;
+
+  return true;
+}
diff --git a/src/hb-blob.h b/src/hb-blob.h
new file mode 100644 (file)
index 0000000..b2419ab
--- /dev/null
@@ -0,0 +1,126 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_H_IN
+#error "Include <hb.h> instead."
+#endif
+
+#ifndef HB_BLOB_H
+#define HB_BLOB_H
+
+#include "hb-common.h"
+
+HB_BEGIN_DECLS
+
+
+/*
+ * Note re various memory-modes:
+ *
+ * - In no case shall the HarfBuzz client modify memory
+ *   that is passed to HarfBuzz in a blob.  If there is
+ *   any such possibility, MODE_DUPLICATE should be used
+ *   such that HarfBuzz makes a copy immediately,
+ *
+ * - Use MODE_READONLY otherse, unless you really really
+ *   really know what you are doing,
+ *
+ * - MODE_WRITABLE is appropriate if you really made a
+ *   copy of data solely for the purpose of passing to
+ *   HarfBuzz and doing that just once (no reuse!),
+ *
+ * - If the font is mmap()ed, it's ok to use
+ *   READONLY_MAY_MAKE_WRITABLE, however, using that mode
+ *   correctly is very tricky.  Use MODE_READONLY instead.
+ */
+typedef enum {
+  HB_MEMORY_MODE_DUPLICATE,
+  HB_MEMORY_MODE_READONLY,
+  HB_MEMORY_MODE_WRITABLE,
+  HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE
+} hb_memory_mode_t;
+
+typedef struct hb_blob_t hb_blob_t;
+
+hb_blob_t *
+hb_blob_create (const char        *data,
+               unsigned int       length,
+               hb_memory_mode_t   mode,
+               void              *user_data,
+               hb_destroy_func_t  destroy);
+
+/* Always creates with MEMORY_MODE_READONLY.
+ * Even if the parent blob is writable, we don't
+ * want the user of the sub-blob to be able to
+ * modify the parent data as that data may be
+ * shared among multiple sub-blobs.
+ */
+hb_blob_t *
+hb_blob_create_sub_blob (hb_blob_t    *parent,
+                        unsigned int  offset,
+                        unsigned int  length);
+
+hb_blob_t *
+hb_blob_get_empty (void);
+
+hb_blob_t *
+hb_blob_reference (hb_blob_t *blob);
+
+void
+hb_blob_destroy (hb_blob_t *blob);
+
+hb_bool_t
+hb_blob_set_user_data (hb_blob_t          *blob,
+                      hb_user_data_key_t *key,
+                      void *              data,
+                      hb_destroy_func_t   destroy,
+                      hb_bool_t           replace);
+
+
+void *
+hb_blob_get_user_data (hb_blob_t          *blob,
+                      hb_user_data_key_t *key);
+
+
+void
+hb_blob_make_immutable (hb_blob_t *blob);
+
+hb_bool_t
+hb_blob_is_immutable (hb_blob_t *blob);
+
+
+unsigned int
+hb_blob_get_length (hb_blob_t *blob);
+
+const char *
+hb_blob_get_data (hb_blob_t *blob, unsigned int *length);
+
+char *
+hb_blob_get_data_writable (hb_blob_t *blob, unsigned int *length);
+
+
+HB_END_DECLS
+
+#endif /* HB_BLOB_H */
diff --git a/src/hb-buffer-deserialize-json.hh b/src/hb-buffer-deserialize-json.hh
new file mode 100644 (file)
index 0000000..dead700
--- /dev/null
@@ -0,0 +1,643 @@
+
+#line 1 "../../src/hb-buffer-deserialize-json.rl"
+/*
+ * Copyright © 2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_BUFFER_DESERIALIZE_JSON_HH
+#define HB_BUFFER_DESERIALIZE_JSON_HH
+
+#include "hb-private.hh"
+
+
+#line 36 "hb-buffer-deserialize-json.hh.tmp"
+static const unsigned char _deserialize_json_trans_keys[] = {
+       0u, 0u, 9u, 123u, 9u, 34u, 97u, 103u, 120u, 121u, 34u, 34u, 9u, 58u, 9u, 57u, 
+       48u, 57u, 9u, 125u, 9u, 125u, 9u, 125u, 34u, 34u, 9u, 58u, 9u, 57u, 48u, 57u, 
+       9u, 125u, 9u, 125u, 108u, 108u, 34u, 34u, 9u, 58u, 9u, 57u, 9u, 125u, 9u, 125u, 
+       120u, 121u, 34u, 34u, 9u, 58u, 9u, 57u, 48u, 57u, 9u, 125u, 9u, 125u, 34u, 34u, 
+       9u, 58u, 9u, 57u, 48u, 57u, 9u, 125u, 9u, 125u, 34u, 34u, 9u, 58u, 9u, 57u, 
+       65u, 122u, 34u, 122u, 9u, 125u, 9u, 125u, 9u, 93u, 9u, 123u, 0u, 0u, 0
+};
+
+static const char _deserialize_json_key_spans[] = {
+       0, 115, 26, 7, 2, 1, 50, 49, 
+       10, 117, 117, 117, 1, 50, 49, 10, 
+       117, 117, 1, 1, 50, 49, 117, 117, 
+       2, 1, 50, 49, 10, 117, 117, 1, 
+       50, 49, 10, 117, 117, 1, 50, 49, 
+       58, 89, 117, 117, 85, 115, 0
+};
+
+static const short _deserialize_json_index_offsets[] = {
+       0, 0, 116, 143, 151, 154, 156, 207, 
+       257, 268, 386, 504, 622, 624, 675, 725, 
+       736, 854, 972, 974, 976, 1027, 1077, 1195, 
+       1313, 1316, 1318, 1369, 1419, 1430, 1548, 1666, 
+       1668, 1719, 1769, 1780, 1898, 2016, 2018, 2069, 
+       2119, 2178, 2268, 2386, 2504, 2590, 2706
+};
+
+static const char _deserialize_json_indicies[] = {
+       0, 0, 0, 0, 0, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       0, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 2, 1, 3, 3, 3, 
+       3, 3, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 3, 1, 4, 1, 
+       5, 1, 6, 7, 1, 1, 8, 1, 
+       9, 10, 1, 11, 1, 11, 11, 11, 
+       11, 11, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 11, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 12, 1, 
+       12, 12, 12, 12, 12, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 12, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 13, 1, 1, 14, 
+       15, 15, 15, 15, 15, 15, 15, 15, 
+       15, 1, 16, 17, 17, 17, 17, 17, 
+       17, 17, 17, 17, 1, 18, 18, 18, 
+       18, 18, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 18, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       19, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 20, 1, 21, 21, 21, 21, 21, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 21, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 3, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 22, 
+       1, 18, 18, 18, 18, 18, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       18, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 19, 1, 1, 1, 
+       17, 17, 17, 17, 17, 17, 17, 17, 
+       17, 17, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 20, 1, 23, 
+       1, 23, 23, 23, 23, 23, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       23, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 24, 1, 24, 24, 24, 24, 
+       24, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 24, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       25, 1, 1, 26, 27, 27, 27, 27, 
+       27, 27, 27, 27, 27, 1, 28, 29, 
+       29, 29, 29, 29, 29, 29, 29, 29, 
+       1, 30, 30, 30, 30, 30, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       30, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 31, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 32, 1, 30, 
+       30, 30, 30, 30, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 30, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 31, 1, 1, 1, 29, 29, 
+       29, 29, 29, 29, 29, 29, 29, 29, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 32, 1, 33, 1, 34, 
+       1, 34, 34, 34, 34, 34, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       34, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 35, 1, 35, 35, 35, 35, 
+       35, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 35, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 36, 37, 37, 37, 37, 
+       37, 37, 37, 37, 37, 1, 38, 38, 
+       38, 38, 38, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 38, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 39, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 40, 1, 38, 38, 38, 38, 
+       38, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 38, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 39, 
+       1, 1, 1, 41, 41, 41, 41, 41, 
+       41, 41, 41, 41, 41, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       40, 1, 42, 43, 1, 44, 1, 44, 
+       44, 44, 44, 44, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 44, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       45, 1, 45, 45, 45, 45, 45, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 45, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 46, 1, 
+       1, 47, 48, 48, 48, 48, 48, 48, 
+       48, 48, 48, 1, 49, 50, 50, 50, 
+       50, 50, 50, 50, 50, 50, 1, 51, 
+       51, 51, 51, 51, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 51, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 52, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 53, 1, 51, 51, 51, 
+       51, 51, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 51, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       52, 1, 1, 1, 50, 50, 50, 50, 
+       50, 50, 50, 50, 50, 50, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 53, 1, 54, 1, 54, 54, 54, 
+       54, 54, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 54, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 55, 1, 
+       55, 55, 55, 55, 55, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 55, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 56, 1, 1, 57, 
+       58, 58, 58, 58, 58, 58, 58, 58, 
+       58, 1, 59, 60, 60, 60, 60, 60, 
+       60, 60, 60, 60, 1, 61, 61, 61, 
+       61, 61, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 61, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       62, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 63, 1, 61, 61, 61, 61, 61, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 61, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 62, 1, 
+       1, 1, 60, 60, 60, 60, 60, 60, 
+       60, 60, 60, 60, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 63, 
+       1, 64, 1, 64, 64, 64, 64, 64, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 64, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 65, 1, 65, 65, 
+       65, 65, 65, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 65, 1, 66, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 67, 68, 68, 
+       68, 68, 68, 68, 68, 68, 68, 1, 
+       69, 69, 69, 69, 69, 69, 69, 69, 
+       69, 69, 69, 69, 69, 69, 69, 69, 
+       69, 69, 69, 69, 69, 69, 69, 69, 
+       69, 69, 1, 1, 1, 1, 1, 1, 
+       69, 69, 69, 69, 69, 69, 69, 69, 
+       69, 69, 69, 69, 69, 69, 69, 69, 
+       69, 69, 69, 69, 69, 69, 69, 69, 
+       69, 69, 1, 70, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 71, 71, 
+       1, 71, 71, 71, 71, 71, 71, 71, 
+       71, 71, 71, 1, 1, 1, 1, 1, 
+       1, 1, 71, 71, 71, 71, 71, 71, 
+       71, 71, 71, 71, 71, 71, 71, 71, 
+       71, 71, 71, 71, 71, 71, 71, 71, 
+       71, 71, 71, 71, 1, 1, 1, 1, 
+       71, 1, 71, 71, 71, 71, 71, 71, 
+       71, 71, 71, 71, 71, 71, 71, 71, 
+       71, 71, 71, 71, 71, 71, 71, 71, 
+       71, 71, 71, 71, 1, 72, 72, 72, 
+       72, 72, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 72, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       73, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 74, 1, 72, 72, 72, 72, 72, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 72, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 73, 1, 
+       1, 1, 75, 75, 75, 75, 75, 75, 
+       75, 75, 75, 75, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 74, 
+       1, 76, 76, 76, 76, 76, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       76, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 77, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 78, 1, 0, 
+       0, 0, 0, 0, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 0, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 2, 1, 1, 0
+};
+
+static const char _deserialize_json_trans_targs[] = {
+       1, 0, 2, 2, 3, 4, 18, 24, 
+       37, 5, 12, 6, 7, 8, 9, 11, 
+       9, 11, 10, 2, 44, 10, 44, 13, 
+       14, 15, 16, 17, 16, 17, 10, 2, 
+       44, 19, 20, 21, 22, 23, 10, 2, 
+       44, 23, 25, 31, 26, 27, 28, 29, 
+       30, 29, 30, 10, 2, 44, 32, 33, 
+       34, 35, 36, 35, 36, 10, 2, 44, 
+       38, 39, 40, 42, 43, 41, 10, 41, 
+       10, 2, 44, 43, 44, 45, 46
+};
+
+static const char _deserialize_json_trans_actions[] = {
+       0, 0, 1, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 2, 2, 2, 
+       0, 0, 3, 3, 4, 0, 5, 0, 
+       0, 2, 2, 2, 0, 0, 6, 6, 
+       7, 0, 0, 0, 2, 2, 8, 8, 
+       9, 0, 0, 0, 0, 0, 2, 2, 
+       2, 0, 0, 10, 10, 11, 0, 0, 
+       2, 2, 2, 0, 0, 12, 12, 13, 
+       0, 0, 0, 2, 2, 2, 14, 0, 
+       15, 15, 16, 0, 0, 0, 0
+};
+
+static const int deserialize_json_start = 1;
+static const int deserialize_json_first_final = 44;
+static const int deserialize_json_error = 0;
+
+static const int deserialize_json_en_main = 1;
+
+
+#line 97 "../../src/hb-buffer-deserialize-json.rl"
+
+
+static hb_bool_t
+_hb_buffer_deserialize_glyphs_json (hb_buffer_t *buffer,
+                                   const char *buf,
+                                   unsigned int buf_len,
+                                   const char **end_ptr,
+                                   hb_font_t *font)
+{
+  const char *p = buf, *pe = buf + buf_len;
+
+  /* Ensure we have positions. */
+  (void) hb_buffer_get_glyph_positions (buffer, NULL);
+
+  while (p < pe && ISSPACE (*p))
+    p++;
+  if (p < pe && *p == (buffer->len ? ',' : '['))
+  {
+    *end_ptr = ++p;
+  }
+
+  const char *tok = NULL;
+  int cs;
+  hb_glyph_info_t info;
+  hb_glyph_position_t pos;
+  
+#line 466 "hb-buffer-deserialize-json.hh.tmp"
+       {
+       cs = deserialize_json_start;
+       }
+
+#line 471 "hb-buffer-deserialize-json.hh.tmp"
+       {
+       int _slen;
+       int _trans;
+       const unsigned char *_keys;
+       const char *_inds;
+       if ( p == pe )
+               goto _test_eof;
+       if ( cs == 0 )
+               goto _out;
+_resume:
+       _keys = _deserialize_json_trans_keys + (cs<<1);
+       _inds = _deserialize_json_indicies + _deserialize_json_index_offsets[cs];
+
+       _slen = _deserialize_json_key_spans[cs];
+       _trans = _inds[ _slen > 0 && _keys[0] <=(*p) &&
+               (*p) <= _keys[1] ?
+               (*p) - _keys[0] : _slen ];
+
+       cs = _deserialize_json_trans_targs[_trans];
+
+       if ( _deserialize_json_trans_actions[_trans] == 0 )
+               goto _again;
+
+       switch ( _deserialize_json_trans_actions[_trans] ) {
+       case 1:
+#line 38 "../../src/hb-buffer-deserialize-json.rl"
+       {
+       memset (&info, 0, sizeof (info));
+       memset (&pos , 0, sizeof (pos ));
+}
+       break;
+       case 5:
+#line 43 "../../src/hb-buffer-deserialize-json.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+       case 2:
+#line 51 "../../src/hb-buffer-deserialize-json.rl"
+       {
+       tok = p;
+}
+       break;
+       case 14:
+#line 55 "../../src/hb-buffer-deserialize-json.rl"
+       {
+       if (!hb_font_glyph_from_string (font,
+                                       tok, p - tok,
+                                       &info.codepoint))
+         return false;
+}
+       break;
+       case 15:
+#line 62 "../../src/hb-buffer-deserialize-json.rl"
+       { if (!parse_uint (tok, p, &info.codepoint)) return false; }
+       break;
+       case 8:
+#line 63 "../../src/hb-buffer-deserialize-json.rl"
+       { if (!parse_uint (tok, p, &info.cluster )) return false; }
+       break;
+       case 10:
+#line 64 "../../src/hb-buffer-deserialize-json.rl"
+       { if (!parse_int  (tok, p, &pos.x_offset )) return false; }
+       break;
+       case 12:
+#line 65 "../../src/hb-buffer-deserialize-json.rl"
+       { if (!parse_int  (tok, p, &pos.y_offset )) return false; }
+       break;
+       case 3:
+#line 66 "../../src/hb-buffer-deserialize-json.rl"
+       { if (!parse_int  (tok, p, &pos.x_advance)) return false; }
+       break;
+       case 6:
+#line 67 "../../src/hb-buffer-deserialize-json.rl"
+       { if (!parse_int  (tok, p, &pos.y_advance)) return false; }
+       break;
+       case 16:
+#line 62 "../../src/hb-buffer-deserialize-json.rl"
+       { if (!parse_uint (tok, p, &info.codepoint)) return false; }
+#line 43 "../../src/hb-buffer-deserialize-json.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+       case 9:
+#line 63 "../../src/hb-buffer-deserialize-json.rl"
+       { if (!parse_uint (tok, p, &info.cluster )) return false; }
+#line 43 "../../src/hb-buffer-deserialize-json.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+       case 11:
+#line 64 "../../src/hb-buffer-deserialize-json.rl"
+       { if (!parse_int  (tok, p, &pos.x_offset )) return false; }
+#line 43 "../../src/hb-buffer-deserialize-json.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+       case 13:
+#line 65 "../../src/hb-buffer-deserialize-json.rl"
+       { if (!parse_int  (tok, p, &pos.y_offset )) return false; }
+#line 43 "../../src/hb-buffer-deserialize-json.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+       case 4:
+#line 66 "../../src/hb-buffer-deserialize-json.rl"
+       { if (!parse_int  (tok, p, &pos.x_advance)) return false; }
+#line 43 "../../src/hb-buffer-deserialize-json.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+       case 7:
+#line 67 "../../src/hb-buffer-deserialize-json.rl"
+       { if (!parse_int  (tok, p, &pos.y_advance)) return false; }
+#line 43 "../../src/hb-buffer-deserialize-json.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+#line 624 "hb-buffer-deserialize-json.hh.tmp"
+       }
+
+_again:
+       if ( cs == 0 )
+               goto _out;
+       if ( ++p != pe )
+               goto _resume;
+       _test_eof: {}
+       _out: {}
+       }
+
+#line 125 "../../src/hb-buffer-deserialize-json.rl"
+
+
+  *end_ptr = p;
+
+  return p == pe && *(p-1) != ']';
+}
+
+#endif /* HB_BUFFER_DESERIALIZE_JSON_HH */
diff --git a/src/hb-buffer-deserialize-json.rl b/src/hb-buffer-deserialize-json.rl
new file mode 100644 (file)
index 0000000..7351b2a
--- /dev/null
@@ -0,0 +1,132 @@
+/*
+ * Copyright © 2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_BUFFER_DESERIALIZE_JSON_HH
+#define HB_BUFFER_DESERIALIZE_JSON_HH
+
+#include "hb-private.hh"
+
+%%{
+
+machine deserialize_json;
+alphtype unsigned char;
+write data;
+
+action clear_item {
+       memset (&info, 0, sizeof (info));
+       memset (&pos , 0, sizeof (pos ));
+}
+
+action add_item {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+
+action tok {
+       tok = p;
+}
+
+action parse_glyph {
+       if (!hb_font_glyph_from_string (font,
+                                       tok, p - tok,
+                                       &info.codepoint))
+         return false;
+}
+
+action parse_gid       { if (!parse_uint (tok, p, &info.codepoint)) return false; }
+action parse_cluster   { if (!parse_uint (tok, p, &info.cluster )) return false; }
+action parse_x_offset  { if (!parse_int  (tok, p, &pos.x_offset )) return false; }
+action parse_y_offset  { if (!parse_int  (tok, p, &pos.y_offset )) return false; }
+action parse_x_advance { if (!parse_int  (tok, p, &pos.x_advance)) return false; }
+action parse_y_advance { if (!parse_int  (tok, p, &pos.y_advance)) return false; }
+
+unum   = '0' | [1-9] digit*;
+num    = '-'? unum;
+
+comma = space* ',' space*;
+colon = space* ':' space*;
+
+glyph_id = unum;
+glyph_name = alpha (alnum|'_'|'.'|'-')*;
+
+glyph_string   = '"' (glyph_name >tok %parse_glyph) '"';
+glyph_number = (glyph_id >tok %parse_gid);
+
+glyph  = "\"g\""  colon (glyph_string | glyph_number);
+cluster        = "\"cl\"" colon (unum >tok %parse_cluster);
+xoffset        = "\"dx\"" colon (num >tok %parse_x_offset);
+yoffset        = "\"dy\"" colon (num >tok %parse_y_offset);
+xadvance= "\"ax\"" colon (num >tok %parse_x_advance);
+yadvance= "\"ay\"" colon (num >tok %parse_y_advance);
+
+element = glyph | cluster | xoffset | yoffset | xadvance | yadvance;
+item   =
+       ( '{' space* element (comma element)* space* '}')
+       >clear_item
+       @add_item
+       ;
+
+main := space* item (comma item)* space* (','|']')?;
+
+}%%
+
+static hb_bool_t
+_hb_buffer_deserialize_glyphs_json (hb_buffer_t *buffer,
+                                   const char *buf,
+                                   unsigned int buf_len,
+                                   const char **end_ptr,
+                                   hb_font_t *font)
+{
+  const char *p = buf, *pe = buf + buf_len;
+
+  /* Ensure we have positions. */
+  (void) hb_buffer_get_glyph_positions (buffer, NULL);
+
+  while (p < pe && ISSPACE (*p))
+    p++;
+  if (p < pe && *p == (buffer->len ? ',' : '['))
+  {
+    *end_ptr = ++p;
+  }
+
+  const char *tok = NULL;
+  int cs;
+  hb_glyph_info_t info;
+  hb_glyph_position_t pos;
+  %%{
+    write init;
+    write exec;
+  }%%
+
+  *end_ptr = p;
+
+  return p == pe && *(p-1) != ']';
+}
+
+#endif /* HB_BUFFER_DESERIALIZE_JSON_HH */
diff --git a/src/hb-buffer-deserialize-text.hh b/src/hb-buffer-deserialize-text.hh
new file mode 100644 (file)
index 0000000..a38efe3
--- /dev/null
@@ -0,0 +1,571 @@
+
+#line 1 "../../src/hb-buffer-deserialize-text.rl"
+/*
+ * Copyright © 2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_BUFFER_DESERIALIZE_TEXT_HH
+#define HB_BUFFER_DESERIALIZE_TEXT_HH
+
+#include "hb-private.hh"
+
+
+#line 36 "hb-buffer-deserialize-text.hh.tmp"
+static const unsigned char _deserialize_text_trans_keys[] = {
+       0u, 0u, 9u, 122u, 45u, 57u, 48u, 57u, 45u, 57u, 48u, 57u, 48u, 57u, 45u, 57u, 
+       48u, 57u, 44u, 44u, 45u, 57u, 48u, 57u, 44u, 57u, 9u, 124u, 9u, 124u, 0u, 0u, 
+       9u, 122u, 9u, 124u, 9u, 124u, 9u, 124u, 9u, 124u, 9u, 124u, 9u, 124u, 9u, 124u, 
+       9u, 124u, 9u, 124u, 9u, 124u, 0
+};
+
+static const char _deserialize_text_key_spans[] = {
+       0, 114, 13, 10, 13, 10, 10, 13, 
+       10, 1, 13, 10, 14, 116, 116, 0, 
+       114, 116, 116, 116, 116, 116, 116, 116, 
+       116, 116, 116
+};
+
+static const short _deserialize_text_index_offsets[] = {
+       0, 0, 115, 129, 140, 154, 165, 176, 
+       190, 201, 203, 217, 228, 243, 360, 477, 
+       478, 593, 710, 827, 944, 1061, 1178, 1295, 
+       1412, 1529, 1646
+};
+
+static const char _deserialize_text_indicies[] = {
+       0, 0, 0, 0, 0, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       0, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       2, 3, 3, 3, 3, 3, 3, 3, 
+       3, 3, 1, 1, 1, 1, 1, 1, 
+       1, 4, 4, 4, 4, 4, 4, 4, 
+       4, 4, 4, 4, 4, 4, 4, 4, 
+       4, 4, 4, 4, 4, 4, 4, 4, 
+       4, 4, 4, 1, 1, 1, 1, 1, 
+       1, 4, 4, 4, 4, 4, 4, 4, 
+       4, 4, 4, 4, 4, 4, 4, 4, 
+       4, 4, 4, 4, 4, 4, 4, 4, 
+       4, 4, 4, 1, 5, 1, 1, 6, 
+       7, 7, 7, 7, 7, 7, 7, 7, 
+       7, 1, 8, 9, 9, 9, 9, 9, 
+       9, 9, 9, 9, 1, 10, 1, 1, 
+       11, 12, 12, 12, 12, 12, 12, 12, 
+       12, 12, 1, 13, 14, 14, 14, 14, 
+       14, 14, 14, 14, 14, 1, 15, 16, 
+       16, 16, 16, 16, 16, 16, 16, 16, 
+       1, 17, 1, 1, 18, 19, 19, 19, 
+       19, 19, 19, 19, 19, 19, 1, 20, 
+       21, 21, 21, 21, 21, 21, 21, 21, 
+       21, 1, 22, 1, 23, 1, 1, 24, 
+       25, 25, 25, 25, 25, 25, 25, 25, 
+       25, 1, 26, 27, 27, 27, 27, 27, 
+       27, 27, 27, 27, 1, 22, 1, 1, 
+       1, 21, 21, 21, 21, 21, 21, 21, 
+       21, 21, 21, 1, 28, 28, 28, 28, 
+       28, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 28, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 29, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       30, 1, 1, 31, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       32, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 33, 
+       1, 34, 34, 34, 34, 34, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       34, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 35, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 36, 1, 1, 0, 
+       0, 0, 0, 0, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 0, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 2, 3, 
+       3, 3, 3, 3, 3, 3, 3, 3, 
+       1, 1, 1, 1, 1, 1, 1, 4, 
+       4, 4, 4, 4, 4, 4, 4, 4, 
+       4, 4, 4, 4, 4, 4, 4, 4, 
+       4, 4, 4, 4, 4, 4, 4, 4, 
+       4, 1, 1, 1, 1, 1, 1, 4, 
+       4, 4, 4, 4, 4, 4, 4, 4, 
+       4, 4, 4, 4, 4, 4, 4, 4, 
+       4, 4, 4, 4, 4, 4, 4, 4, 
+       4, 1, 28, 28, 28, 28, 28, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 28, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 29, 1, 1, 1, 
+       1, 37, 37, 37, 37, 37, 37, 37, 
+       37, 37, 37, 1, 1, 1, 30, 1, 
+       1, 31, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 32, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 33, 1, 38, 
+       38, 38, 38, 38, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 38, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 39, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 40, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 41, 1, 42, 42, 42, 42, 
+       42, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 42, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       43, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 44, 
+       1, 42, 42, 42, 42, 42, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       42, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       14, 14, 14, 14, 14, 14, 14, 14, 
+       14, 14, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 43, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 44, 1, 38, 38, 
+       38, 38, 38, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 38, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 39, 1, 1, 1, 9, 9, 9, 
+       9, 9, 9, 9, 9, 9, 9, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 40, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 41, 1, 45, 45, 45, 45, 45, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 45, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 46, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 47, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 48, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 49, 1, 
+       50, 50, 50, 50, 50, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 50, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 51, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 52, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 53, 1, 50, 50, 50, 
+       50, 50, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 50, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 51, 
+       1, 1, 1, 1, 27, 27, 27, 27, 
+       27, 27, 27, 27, 27, 27, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 52, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       53, 1, 45, 45, 45, 45, 45, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 45, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 46, 1, 1, 1, 
+       1, 54, 54, 54, 54, 54, 54, 54, 
+       54, 54, 54, 1, 1, 1, 1, 1, 
+       1, 47, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 48, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 49, 1, 28, 
+       28, 28, 28, 28, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 28, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 29, 1, 55, 55, 1, 55, 55, 
+       55, 55, 55, 55, 55, 55, 55, 55, 
+       1, 1, 1, 30, 1, 1, 31, 55, 
+       55, 55, 55, 55, 55, 55, 55, 55, 
+       55, 55, 55, 55, 55, 55, 55, 55, 
+       55, 55, 55, 55, 55, 55, 55, 55, 
+       55, 1, 1, 32, 1, 55, 1, 55, 
+       55, 55, 55, 55, 55, 55, 55, 55, 
+       55, 55, 55, 55, 55, 55, 55, 55, 
+       55, 55, 55, 55, 55, 55, 55, 55, 
+       55, 1, 33, 1, 0
+};
+
+static const char _deserialize_text_trans_targs[] = {
+       1, 0, 13, 17, 26, 3, 18, 21, 
+       18, 21, 5, 19, 20, 19, 20, 22, 
+       25, 8, 9, 12, 9, 12, 10, 11, 
+       23, 24, 23, 24, 14, 2, 6, 7, 
+       15, 16, 14, 15, 16, 17, 14, 4, 
+       15, 16, 14, 15, 16, 14, 2, 7, 
+       15, 16, 14, 2, 15, 16, 25, 26
+};
+
+static const char _deserialize_text_trans_actions[] = {
+       0, 0, 1, 1, 1, 2, 2, 2, 
+       0, 0, 2, 2, 2, 0, 0, 2, 
+       2, 2, 2, 2, 0, 0, 3, 2, 
+       2, 2, 0, 0, 4, 5, 5, 5, 
+       4, 4, 0, 0, 0, 0, 6, 7, 
+       6, 6, 8, 8, 8, 9, 10, 10, 
+       9, 9, 11, 12, 11, 11, 0, 0
+};
+
+static const char _deserialize_text_eof_actions[] = {
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 4, 0, 0, 
+       0, 4, 6, 8, 8, 6, 9, 11, 
+       11, 9, 4
+};
+
+static const int deserialize_text_start = 1;
+static const int deserialize_text_first_final = 13;
+static const int deserialize_text_error = 0;
+
+static const int deserialize_text_en_main = 1;
+
+
+#line 91 "../../src/hb-buffer-deserialize-text.rl"
+
+
+static hb_bool_t
+_hb_buffer_deserialize_glyphs_text (hb_buffer_t *buffer,
+                                   const char *buf,
+                                   unsigned int buf_len,
+                                   const char **end_ptr,
+                                   hb_font_t *font)
+{
+  const char *p = buf, *pe = buf + buf_len;
+
+  /* Ensure we have positions. */
+  (void) hb_buffer_get_glyph_positions (buffer, NULL);
+
+  while (p < pe && ISSPACE (*p))
+    p++;
+  if (p < pe && *p == (buffer->len ? '|' : '['))
+  {
+    *end_ptr = ++p;
+  }
+
+  const char *eof = pe, *tok = NULL;
+  int cs;
+  hb_glyph_info_t info;
+  hb_glyph_position_t pos;
+  
+#line 343 "hb-buffer-deserialize-text.hh.tmp"
+       {
+       cs = deserialize_text_start;
+       }
+
+#line 348 "hb-buffer-deserialize-text.hh.tmp"
+       {
+       int _slen;
+       int _trans;
+       const unsigned char *_keys;
+       const char *_inds;
+       if ( p == pe )
+               goto _test_eof;
+       if ( cs == 0 )
+               goto _out;
+_resume:
+       _keys = _deserialize_text_trans_keys + (cs<<1);
+       _inds = _deserialize_text_indicies + _deserialize_text_index_offsets[cs];
+
+       _slen = _deserialize_text_key_spans[cs];
+       _trans = _inds[ _slen > 0 && _keys[0] <=(*p) &&
+               (*p) <= _keys[1] ?
+               (*p) - _keys[0] : _slen ];
+
+       cs = _deserialize_text_trans_targs[_trans];
+
+       if ( _deserialize_text_trans_actions[_trans] == 0 )
+               goto _again;
+
+       switch ( _deserialize_text_trans_actions[_trans] ) {
+       case 2:
+#line 51 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       tok = p;
+}
+       break;
+       case 5:
+#line 55 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       if (!hb_font_glyph_from_string (font,
+                                       tok, p - tok,
+                                       &info.codepoint))
+         return false;
+}
+       break;
+       case 10:
+#line 62 "../../src/hb-buffer-deserialize-text.rl"
+       { if (!parse_uint (tok, p, &info.cluster )) return false; }
+       break;
+       case 3:
+#line 63 "../../src/hb-buffer-deserialize-text.rl"
+       { if (!parse_int  (tok, p, &pos.x_offset )) return false; }
+       break;
+       case 12:
+#line 64 "../../src/hb-buffer-deserialize-text.rl"
+       { if (!parse_int  (tok, p, &pos.y_offset )) return false; }
+       break;
+       case 7:
+#line 65 "../../src/hb-buffer-deserialize-text.rl"
+       { if (!parse_int  (tok, p, &pos.x_advance)) return false; }
+       break;
+       case 1:
+#line 38 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       memset (&info, 0, sizeof (info));
+       memset (&pos , 0, sizeof (pos ));
+}
+#line 51 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       tok = p;
+}
+       break;
+       case 4:
+#line 55 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       if (!hb_font_glyph_from_string (font,
+                                       tok, p - tok,
+                                       &info.codepoint))
+         return false;
+}
+#line 43 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+       case 9:
+#line 62 "../../src/hb-buffer-deserialize-text.rl"
+       { if (!parse_uint (tok, p, &info.cluster )) return false; }
+#line 43 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+       case 11:
+#line 64 "../../src/hb-buffer-deserialize-text.rl"
+       { if (!parse_int  (tok, p, &pos.y_offset )) return false; }
+#line 43 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+       case 6:
+#line 65 "../../src/hb-buffer-deserialize-text.rl"
+       { if (!parse_int  (tok, p, &pos.x_advance)) return false; }
+#line 43 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+       case 8:
+#line 66 "../../src/hb-buffer-deserialize-text.rl"
+       { if (!parse_int  (tok, p, &pos.y_advance)) return false; }
+#line 43 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+#line 480 "hb-buffer-deserialize-text.hh.tmp"
+       }
+
+_again:
+       if ( cs == 0 )
+               goto _out;
+       if ( ++p != pe )
+               goto _resume;
+       _test_eof: {}
+       if ( p == eof )
+       {
+       switch ( _deserialize_text_eof_actions[cs] ) {
+       case 4:
+#line 55 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       if (!hb_font_glyph_from_string (font,
+                                       tok, p - tok,
+                                       &info.codepoint))
+         return false;
+}
+#line 43 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+       case 9:
+#line 62 "../../src/hb-buffer-deserialize-text.rl"
+       { if (!parse_uint (tok, p, &info.cluster )) return false; }
+#line 43 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+       case 11:
+#line 64 "../../src/hb-buffer-deserialize-text.rl"
+       { if (!parse_int  (tok, p, &pos.y_offset )) return false; }
+#line 43 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+       case 6:
+#line 65 "../../src/hb-buffer-deserialize-text.rl"
+       { if (!parse_int  (tok, p, &pos.x_advance)) return false; }
+#line 43 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+       case 8:
+#line 66 "../../src/hb-buffer-deserialize-text.rl"
+       { if (!parse_int  (tok, p, &pos.y_advance)) return false; }
+#line 43 "../../src/hb-buffer-deserialize-text.rl"
+       {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+       break;
+#line 557 "hb-buffer-deserialize-text.hh.tmp"
+       }
+       }
+
+       _out: {}
+       }
+
+#line 119 "../../src/hb-buffer-deserialize-text.rl"
+
+
+  *end_ptr = p;
+
+  return p == pe && *(p-1) != ']';
+}
+
+#endif /* HB_BUFFER_DESERIALIZE_TEXT_HH */
diff --git a/src/hb-buffer-deserialize-text.rl b/src/hb-buffer-deserialize-text.rl
new file mode 100644 (file)
index 0000000..8856580
--- /dev/null
@@ -0,0 +1,126 @@
+/*
+ * Copyright © 2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_BUFFER_DESERIALIZE_TEXT_HH
+#define HB_BUFFER_DESERIALIZE_TEXT_HH
+
+#include "hb-private.hh"
+
+%%{
+
+machine deserialize_text;
+alphtype unsigned char;
+write data;
+
+action clear_item {
+       memset (&info, 0, sizeof (info));
+       memset (&pos , 0, sizeof (pos ));
+}
+
+action add_item {
+       buffer->add_info (info);
+       if (buffer->in_error)
+         return false;
+       buffer->pos[buffer->len - 1] = pos;
+       *end_ptr = p;
+}
+
+action tok {
+       tok = p;
+}
+
+action parse_glyph {
+       if (!hb_font_glyph_from_string (font,
+                                       tok, p - tok,
+                                       &info.codepoint))
+         return false;
+}
+
+action parse_cluster   { if (!parse_uint (tok, p, &info.cluster )) return false; }
+action parse_x_offset  { if (!parse_int  (tok, p, &pos.x_offset )) return false; }
+action parse_y_offset  { if (!parse_int  (tok, p, &pos.y_offset )) return false; }
+action parse_x_advance { if (!parse_int  (tok, p, &pos.x_advance)) return false; }
+action parse_y_advance { if (!parse_int  (tok, p, &pos.y_advance)) return false; }
+
+unum   = '0' | [1-9] digit*;
+num    = '-'? unum;
+
+glyph_id = unum;
+glyph_name = alpha (alnum|'_'|'.'|'-')*;
+
+glyph  = (glyph_id | glyph_name) >tok %parse_glyph;
+cluster        = '=' (unum >tok %parse_cluster);
+offsets        = '@' (num >tok %parse_x_offset)   ',' (num >tok %parse_y_offset );
+advances= '+' (num >tok %parse_x_advance) (',' (num >tok %parse_y_advance))?;
+item   =
+       (
+               glyph
+               cluster?
+               offsets?
+               advances?
+       )
+       >clear_item
+       %add_item
+       ;
+
+main := space* item (space* '|' space* item)* space* ('|'|']')?;
+
+}%%
+
+static hb_bool_t
+_hb_buffer_deserialize_glyphs_text (hb_buffer_t *buffer,
+                                   const char *buf,
+                                   unsigned int buf_len,
+                                   const char **end_ptr,
+                                   hb_font_t *font)
+{
+  const char *p = buf, *pe = buf + buf_len;
+
+  /* Ensure we have positions. */
+  (void) hb_buffer_get_glyph_positions (buffer, NULL);
+
+  while (p < pe && ISSPACE (*p))
+    p++;
+  if (p < pe && *p == (buffer->len ? '|' : '['))
+  {
+    *end_ptr = ++p;
+  }
+
+  const char *eof = pe, *tok = NULL;
+  int cs;
+  hb_glyph_info_t info;
+  hb_glyph_position_t pos;
+  %%{
+    write init;
+    write exec;
+  }%%
+
+  *end_ptr = p;
+
+  return p == pe && *(p-1) != ']';
+}
+
+#endif /* HB_BUFFER_DESERIALIZE_TEXT_HH */
diff --git a/src/hb-buffer-private.hh b/src/hb-buffer-private.hh
new file mode 100644 (file)
index 0000000..069f925
--- /dev/null
@@ -0,0 +1,208 @@
+/*
+ * Copyright © 1998-2004  David Turner and Werner Lemberg
+ * Copyright © 2004,2007,2009,2010  Red Hat, Inc.
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Owen Taylor, Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_BUFFER_PRIVATE_HH
+#define HB_BUFFER_PRIVATE_HH
+
+#include "hb-private.hh"
+#include "hb-object-private.hh"
+#include "hb-unicode-private.hh"
+
+
+ASSERT_STATIC (sizeof (hb_glyph_info_t) == 20);
+ASSERT_STATIC (sizeof (hb_glyph_info_t) == sizeof (hb_glyph_position_t));
+
+
+/*
+ * hb_buffer_t
+ */
+
+struct hb_buffer_t {
+  hb_object_header_t header;
+  ASSERT_POD ();
+
+  /* Information about how the text in the buffer should be treated */
+  hb_unicode_funcs_t *unicode; /* Unicode functions */
+  hb_buffer_flags_t flags; /* BOT / EOT / etc. */
+  hb_codepoint_t replacement; /* U+FFFD or something else. */
+
+  /* Buffer contents */
+  hb_buffer_content_type_t content_type;
+  hb_segment_properties_t props; /* Script, language, direction */
+
+  bool in_error; /* Allocation failed */
+  bool have_output; /* Whether we have an output buffer going on */
+  bool have_positions; /* Whether we have positions */
+
+  unsigned int idx; /* Cursor into ->info and ->pos arrays */
+  unsigned int len; /* Length of ->info and ->pos arrays */
+  unsigned int out_len; /* Length of ->out array if have_output */
+
+  unsigned int allocated; /* Length of allocated arrays */
+  hb_glyph_info_t     *info;
+  hb_glyph_info_t     *out_info;
+  hb_glyph_position_t *pos;
+
+  inline hb_glyph_info_t &cur (unsigned int i = 0) { return info[idx + i]; }
+  inline hb_glyph_info_t cur (unsigned int i = 0) const { return info[idx + i]; }
+
+  inline hb_glyph_position_t &cur_pos (unsigned int i = 0) { return pos[idx + i]; }
+  inline hb_glyph_position_t cur_pos (unsigned int i = 0) const { return pos[idx + i]; }
+
+  inline hb_glyph_info_t &prev (void) { return out_info[out_len - 1]; }
+  inline hb_glyph_info_t prev (void) const { return info[out_len - 1]; }
+
+  inline bool has_separate_output (void) const { return info != out_info; }
+
+  unsigned int serial;
+
+  /* These reflect current allocations of the bytes in glyph_info_t's var1 and var2. */
+  uint8_t allocated_var_bytes[8];
+  const char *allocated_var_owner[8];
+
+  /* Text before / after the main buffer contents.
+   * Always in Unicode, and ordered outward.
+   * Index 0 is for "pre-context", 1 for "post-context". */
+  static const unsigned int CONTEXT_LENGTH = 5;
+  hb_codepoint_t context[2][CONTEXT_LENGTH];
+  unsigned int context_len[2];
+
+
+  /* Methods */
+
+  HB_INTERNAL void reset (void);
+  HB_INTERNAL void clear (void);
+
+  inline unsigned int backtrack_len (void) const
+  { return have_output? out_len : idx; }
+  inline unsigned int lookahead_len (void) const
+  { return len - idx; }
+  inline unsigned int next_serial (void) { return serial++; }
+
+  HB_INTERNAL void allocate_var (unsigned int byte_i, unsigned int count, const char *owner);
+  HB_INTERNAL void deallocate_var (unsigned int byte_i, unsigned int count, const char *owner);
+  HB_INTERNAL void assert_var (unsigned int byte_i, unsigned int count, const char *owner);
+  HB_INTERNAL void deallocate_var_all (void);
+
+  HB_INTERNAL void add (hb_codepoint_t  codepoint,
+                       unsigned int    cluster);
+  HB_INTERNAL void add_info (const hb_glyph_info_t &glyph_info);
+
+  HB_INTERNAL void reverse_range (unsigned int start, unsigned int end);
+  HB_INTERNAL void reverse (void);
+  HB_INTERNAL void reverse_clusters (void);
+  HB_INTERNAL void guess_segment_properties (void);
+
+  HB_INTERNAL void swap_buffers (void);
+  HB_INTERNAL void remove_output (void);
+  HB_INTERNAL void clear_output (void);
+  HB_INTERNAL void clear_positions (void);
+
+  HB_INTERNAL void replace_glyphs (unsigned int num_in,
+                                  unsigned int num_out,
+                                  const hb_codepoint_t *glyph_data);
+
+  HB_INTERNAL void replace_glyph (hb_codepoint_t glyph_index);
+  /* Makes a copy of the glyph at idx to output and replace glyph_index */
+  HB_INTERNAL void output_glyph (hb_codepoint_t glyph_index);
+  HB_INTERNAL void output_info (const hb_glyph_info_t &glyph_info);
+  /* Copies glyph at idx to output but doesn't advance idx */
+  HB_INTERNAL void copy_glyph (void);
+  HB_INTERNAL bool move_to (unsigned int i); /* i is output-buffer index. */
+  /* Copies glyph at idx to output and advance idx.
+   * If there's no output, just advance idx. */
+  inline void
+  next_glyph (void)
+  {
+    if (have_output)
+    {
+      if (unlikely (out_info != info || out_len != idx)) {
+       if (unlikely (!make_room_for (1, 1))) return;
+       out_info[out_len] = info[idx];
+      }
+      out_len++;
+    }
+
+    idx++;
+  }
+
+  /* Advance idx without copying to output. */
+  inline void skip_glyph (void) { idx++; }
+
+  inline void reset_masks (hb_mask_t mask)
+  {
+    for (unsigned int j = 0; j < len; j++)
+      info[j].mask = mask;
+  }
+  inline void add_masks (hb_mask_t mask)
+  {
+    for (unsigned int j = 0; j < len; j++)
+      info[j].mask |= mask;
+  }
+  HB_INTERNAL void set_masks (hb_mask_t value,
+                             hb_mask_t mask,
+                             unsigned int cluster_start,
+                             unsigned int cluster_end);
+
+  HB_INTERNAL void merge_clusters (unsigned int start,
+                                  unsigned int end);
+  HB_INTERNAL void merge_out_clusters (unsigned int start,
+                                      unsigned int end);
+
+  /* Internal methods */
+  HB_INTERNAL bool enlarge (unsigned int size);
+
+  inline bool ensure (unsigned int size)
+  { return likely (!size || size < allocated) ? true : enlarge (size); }
+
+  inline bool ensure_inplace (unsigned int size)
+  { return likely (!size || size < allocated); }
+
+  HB_INTERNAL bool make_room_for (unsigned int num_in, unsigned int num_out);
+  HB_INTERNAL bool shift_forward (unsigned int count);
+
+  typedef long scratch_buffer_t;
+  HB_INTERNAL scratch_buffer_t *get_scratch_buffer (unsigned int *size);
+
+  inline void clear_context (unsigned int side) { context_len[side] = 0; }
+};
+
+
+#define HB_BUFFER_XALLOCATE_VAR(b, func, var, owner) \
+  b->func (offsetof (hb_glyph_info_t, var) - offsetof(hb_glyph_info_t, var1), \
+          sizeof (b->info[0].var), owner)
+#define HB_BUFFER_ALLOCATE_VAR(b, var) \
+       HB_BUFFER_XALLOCATE_VAR (b, allocate_var, var (), #var)
+#define HB_BUFFER_DEALLOCATE_VAR(b, var) \
+       HB_BUFFER_XALLOCATE_VAR (b, deallocate_var, var (), #var)
+#define HB_BUFFER_ASSERT_VAR(b, var) \
+       HB_BUFFER_XALLOCATE_VAR (b, assert_var, var (), #var)
+
+
+#endif /* HB_BUFFER_PRIVATE_HH */
diff --git a/src/hb-buffer-serialize.cc b/src/hb-buffer-serialize.cc
new file mode 100644 (file)
index 0000000..406d69d
--- /dev/null
@@ -0,0 +1,399 @@
+/*
+ * Copyright © 2012,2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-buffer-private.hh"
+
+
+static const char *serialize_formats[] = {
+  "text",
+  "json",
+  NULL
+};
+
+/**
+ * hb_buffer_serialize_list_formats:
+ *
+ * 
+ *
+ * Return value: (transfer none):
+ *
+ * Since: 1.0
+ **/
+const char **
+hb_buffer_serialize_list_formats (void)
+{
+  return serialize_formats;
+}
+
+/**
+ * hb_buffer_serialize_format_from_string:
+ * @str: 
+ * @len: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_buffer_serialize_format_t
+hb_buffer_serialize_format_from_string (const char *str, int len)
+{
+  /* Upper-case it. */
+  return (hb_buffer_serialize_format_t) (hb_tag_from_string (str, len) & ~0x20202020u);
+}
+
+/**
+ * hb_buffer_serialize_format_to_string:
+ * @format: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+const char *
+hb_buffer_serialize_format_to_string (hb_buffer_serialize_format_t format)
+{
+  switch (format)
+  {
+    case HB_BUFFER_SERIALIZE_FORMAT_TEXT:      return serialize_formats[0];
+    case HB_BUFFER_SERIALIZE_FORMAT_JSON:      return serialize_formats[1];
+    default:
+    case HB_BUFFER_SERIALIZE_FORMAT_INVALID:   return NULL;
+  }
+}
+
+static unsigned int
+_hb_buffer_serialize_glyphs_json (hb_buffer_t *buffer,
+                                 unsigned int start,
+                                 unsigned int end,
+                                 char *buf,
+                                 unsigned int buf_size,
+                                 unsigned int *buf_consumed,
+                                 hb_font_t *font,
+                                 hb_buffer_serialize_flags_t flags)
+{
+  hb_glyph_info_t *info = hb_buffer_get_glyph_infos (buffer, NULL);
+  hb_glyph_position_t *pos = hb_buffer_get_glyph_positions (buffer, NULL);
+
+  *buf_consumed = 0;
+  for (unsigned int i = start; i < end; i++)
+  {
+    char b[1024];
+    char *p = b;
+
+    /* In the following code, we know b is large enough that no overflow can happen. */
+
+#define APPEND(s) HB_STMT_START { strcpy (p, s); p += strlen (s); } HB_STMT_END
+
+    if (i)
+      *p++ = ',';
+
+    *p++ = '{';
+
+    APPEND ("\"g\":");
+    if (!(flags & HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES))
+    {
+      char g[128];
+      hb_font_glyph_to_string (font, info[i].codepoint, g, sizeof (g));
+      *p++ = '"';
+      for (char *q = g; *q; q++) {
+        if (*q == '"')
+         *p++ = '\\';
+       *p++ = *q;
+      }
+      *p++ = '"';
+    }
+    else
+      p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "%u", info[i].codepoint));
+
+    if (!(flags & HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS)) {
+      p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"cl\":%u", info[i].cluster));
+    }
+
+    if (!(flags & HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS))
+    {
+      p += snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"dx\":%d,\"dy\":%d",
+                    pos[i].x_offset, pos[i].y_offset);
+      p += snprintf (p, ARRAY_LENGTH (b) - (p - b), ",\"ax\":%d,\"ay\":%d",
+                    pos[i].x_advance, pos[i].y_advance);
+    }
+
+    *p++ = '}';
+
+    unsigned int l = p - b;
+    if (buf_size > l)
+    {
+      memcpy (buf, b, l);
+      buf += l;
+      buf_size -= l;
+      *buf_consumed += l;
+      *buf = '\0';
+    } else
+      return i - start;
+  }
+
+  return end - start;
+}
+
+static unsigned int
+_hb_buffer_serialize_glyphs_text (hb_buffer_t *buffer,
+                                 unsigned int start,
+                                 unsigned int end,
+                                 char *buf,
+                                 unsigned int buf_size,
+                                 unsigned int *buf_consumed,
+                                 hb_font_t *font,
+                                 hb_buffer_serialize_flags_t flags)
+{
+  hb_glyph_info_t *info = hb_buffer_get_glyph_infos (buffer, NULL);
+  hb_glyph_position_t *pos = hb_buffer_get_glyph_positions (buffer, NULL);
+
+  *buf_consumed = 0;
+  for (unsigned int i = start; i < end; i++)
+  {
+    char b[1024];
+    char *p = b;
+
+    /* In the following code, we know b is large enough that no overflow can happen. */
+
+    if (i)
+      *p++ = '|';
+
+    if (!(flags & HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES))
+    {
+      hb_font_glyph_to_string (font, info[i].codepoint, p, 128);
+      p += strlen (p);
+    }
+    else
+      p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "%u", info[i].codepoint));
+
+    if (!(flags & HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS)) {
+      p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "=%u", info[i].cluster));
+    }
+
+    if (!(flags & HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS))
+    {
+      if (pos[i].x_offset || pos[i].y_offset)
+       p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "@%d,%d", pos[i].x_offset, pos[i].y_offset));
+
+      *p++ = '+';
+      p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), "%d", pos[i].x_advance));
+      if (pos[i].y_advance)
+       p += MAX (0, snprintf (p, ARRAY_LENGTH (b) - (p - b), ",%d", pos[i].y_advance));
+    }
+
+    unsigned int l = p - b;
+    if (buf_size > l)
+    {
+      memcpy (buf, b, l);
+      buf += l;
+      buf_size -= l;
+      *buf_consumed += l;
+      *buf = '\0';
+    } else
+      return i - start;
+  }
+
+  return end - start;
+}
+
+/* Returns number of items, starting at start, that were serialized. */
+/**
+ * hb_buffer_serialize_glyphs:
+ * @buffer: a buffer.
+ * @start: 
+ * @end: 
+ * @buf: (array length=buf_size):
+ * @buf_size: 
+ * @buf_consumed: (out):
+ * @font: 
+ * @format: 
+ * @flags: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+unsigned int
+hb_buffer_serialize_glyphs (hb_buffer_t *buffer,
+                           unsigned int start,
+                           unsigned int end,
+                           char *buf,
+                           unsigned int buf_size,
+                           unsigned int *buf_consumed, /* May be NULL */
+                           hb_font_t *font, /* May be NULL */
+                           hb_buffer_serialize_format_t format,
+                           hb_buffer_serialize_flags_t flags)
+{
+  assert (start <= end && end <= buffer->len);
+
+  unsigned int sconsumed;
+  if (!buf_consumed)
+    buf_consumed = &sconsumed;
+  *buf_consumed = 0;
+
+  assert ((!buffer->len && buffer->content_type == HB_BUFFER_CONTENT_TYPE_INVALID) ||
+         buffer->content_type == HB_BUFFER_CONTENT_TYPE_GLYPHS);
+
+  if (unlikely (start == end))
+    return 0;
+
+  if (!font)
+    font = hb_font_get_empty ();
+
+  switch (format)
+  {
+    case HB_BUFFER_SERIALIZE_FORMAT_TEXT:
+      return _hb_buffer_serialize_glyphs_text (buffer, start, end,
+                                              buf, buf_size, buf_consumed,
+                                              font, flags);
+
+    case HB_BUFFER_SERIALIZE_FORMAT_JSON:
+      return _hb_buffer_serialize_glyphs_json (buffer, start, end,
+                                              buf, buf_size, buf_consumed,
+                                              font, flags);
+
+    default:
+    case HB_BUFFER_SERIALIZE_FORMAT_INVALID:
+      return 0;
+
+  }
+}
+
+
+static hb_bool_t
+parse_uint (const char *pp, const char *end, uint32_t *pv)
+{
+  char buf[32];
+  unsigned int len = MIN (ARRAY_LENGTH (buf) - 1, (unsigned int) (end - pp));
+  strncpy (buf, pp, len);
+  buf[len] = '\0';
+
+  char *p = buf;
+  char *pend = p;
+  uint32_t v;
+
+  errno = 0;
+  v = strtol (p, &pend, 10);
+  if (errno || p == pend || pend - p != end - pp)
+    return false;
+
+  *pv = v;
+  return true;
+}
+
+static hb_bool_t
+parse_int (const char *pp, const char *end, int32_t *pv)
+{
+  char buf[32];
+  unsigned int len = MIN (ARRAY_LENGTH (buf) - 1, (unsigned int) (end - pp));
+  strncpy (buf, pp, len);
+  buf[len] = '\0';
+
+  char *p = buf;
+  char *pend = p;
+  int32_t v;
+
+  errno = 0;
+  v = strtol (p, &pend, 10);
+  if (errno || p == pend || pend - p != end - pp)
+    return false;
+
+  *pv = v;
+  return true;
+}
+
+#include "hb-buffer-deserialize-json.hh"
+#include "hb-buffer-deserialize-text.hh"
+
+/**
+ * hb_buffer_deserialize_glyphs:
+ * @buffer: a buffer.
+ * @buf: (array length=buf_len):
+ * @buf_len: 
+ * @end_ptr: (out):
+ * @font: 
+ * @format: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_buffer_deserialize_glyphs (hb_buffer_t *buffer,
+                             const char *buf,
+                             int buf_len, /* -1 means nul-terminated */
+                             const char **end_ptr, /* May be NULL */
+                             hb_font_t *font, /* May be NULL */
+                             hb_buffer_serialize_format_t format)
+{
+  const char *end;
+  if (!end_ptr)
+    end_ptr = &end;
+  *end_ptr = buf;
+
+  assert ((!buffer->len && buffer->content_type == HB_BUFFER_CONTENT_TYPE_INVALID) ||
+         buffer->content_type == HB_BUFFER_CONTENT_TYPE_GLYPHS);
+
+  if (buf_len == -1)
+    buf_len = strlen (buf);
+
+  if (!buf_len)
+  {
+    *end_ptr = buf;
+    return false;
+  }
+
+  hb_buffer_set_content_type (buffer, HB_BUFFER_CONTENT_TYPE_GLYPHS);
+
+  if (!font)
+    font = hb_font_get_empty ();
+
+  switch (format)
+  {
+    case HB_BUFFER_SERIALIZE_FORMAT_TEXT:
+      return _hb_buffer_deserialize_glyphs_text (buffer,
+                                                buf, buf_len, end_ptr,
+                                                font);
+
+    case HB_BUFFER_SERIALIZE_FORMAT_JSON:
+      return _hb_buffer_deserialize_glyphs_json (buffer,
+                                                buf, buf_len, end_ptr,
+                                                font);
+
+    default:
+    case HB_BUFFER_SERIALIZE_FORMAT_INVALID:
+      return false;
+
+  }
+}
diff --git a/src/hb-buffer.cc b/src/hb-buffer.cc
new file mode 100644 (file)
index 0000000..74ae273
--- /dev/null
@@ -0,0 +1,1572 @@
+/*
+ * Copyright © 1998-2004  David Turner and Werner Lemberg
+ * Copyright © 2004,2007,2009,2010  Red Hat, Inc.
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Owen Taylor, Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-buffer-private.hh"
+#include "hb-utf-private.hh"
+
+
+#ifndef HB_DEBUG_BUFFER
+#define HB_DEBUG_BUFFER (HB_DEBUG+0)
+#endif
+
+
+hb_bool_t
+hb_segment_properties_equal (const hb_segment_properties_t *a,
+                            const hb_segment_properties_t *b)
+{
+  return a->direction == b->direction &&
+        a->script    == b->script    &&
+        a->language  == b->language  &&
+        a->reserved1 == b->reserved1 &&
+        a->reserved2 == b->reserved2;
+
+}
+
+unsigned int
+hb_segment_properties_hash (const hb_segment_properties_t *p)
+{
+  return (unsigned int) p->direction ^
+        (unsigned int) p->script ^
+        (intptr_t) (p->language);
+}
+
+
+
+/* Here is how the buffer works internally:
+ *
+ * There are two info pointers: info and out_info.  They always have
+ * the same allocated size, but different lengths.
+ *
+ * As an optimization, both info and out_info may point to the
+ * same piece of memory, which is owned by info.  This remains the
+ * case as long as out_len doesn't exceed i at any time.
+ * In that case, swap_buffers() is no-op and the glyph operations operate
+ * mostly in-place.
+ *
+ * As soon as out_info gets longer than info, out_info is moved over
+ * to an alternate buffer (which we reuse the pos buffer for!), and its
+ * current contents (out_len entries) are copied to the new place.
+ * This should all remain transparent to the user.  swap_buffers() then
+ * switches info and out_info.
+ */
+
+
+
+/* Internal API */
+
+bool
+hb_buffer_t::enlarge (unsigned int size)
+{
+  if (unlikely (in_error))
+    return false;
+
+  unsigned int new_allocated = allocated;
+  hb_glyph_position_t *new_pos = NULL;
+  hb_glyph_info_t *new_info = NULL;
+  bool separate_out = out_info != info;
+
+  if (unlikely (_hb_unsigned_int_mul_overflows (size, sizeof (info[0]))))
+    goto done;
+
+  while (size >= new_allocated)
+    new_allocated += (new_allocated >> 1) + 32;
+
+  ASSERT_STATIC (sizeof (info[0]) == sizeof (pos[0]));
+  if (unlikely (_hb_unsigned_int_mul_overflows (new_allocated, sizeof (info[0]))))
+    goto done;
+
+  new_pos = (hb_glyph_position_t *) realloc (pos, new_allocated * sizeof (pos[0]));
+  new_info = (hb_glyph_info_t *) realloc (info, new_allocated * sizeof (info[0]));
+
+done:
+  if (unlikely (!new_pos || !new_info))
+    in_error = true;
+
+  if (likely (new_pos))
+    pos = new_pos;
+
+  if (likely (new_info))
+    info = new_info;
+
+  out_info = separate_out ? (hb_glyph_info_t *) pos : info;
+  if (likely (!in_error))
+    allocated = new_allocated;
+
+  return likely (!in_error);
+}
+
+bool
+hb_buffer_t::make_room_for (unsigned int num_in,
+                           unsigned int num_out)
+{
+  if (unlikely (!ensure (out_len + num_out))) return false;
+
+  if (out_info == info &&
+      out_len + num_out > idx + num_in)
+  {
+    assert (have_output);
+
+    out_info = (hb_glyph_info_t *) pos;
+    memcpy (out_info, info, out_len * sizeof (out_info[0]));
+  }
+
+  return true;
+}
+
+bool
+hb_buffer_t::shift_forward (unsigned int count)
+{
+  assert (have_output);
+  if (unlikely (!ensure (len + count))) return false;
+
+  memmove (info + idx + count, info + idx, (len - idx) * sizeof (info[0]));
+  len += count;
+  idx += count;
+
+  return true;
+}
+
+hb_buffer_t::scratch_buffer_t *
+hb_buffer_t::get_scratch_buffer (unsigned int *size)
+{
+  have_output = false;
+  have_positions = false;
+
+  out_len = 0;
+  out_info = info;
+
+  assert ((uintptr_t) pos % sizeof (scratch_buffer_t) == 0);
+  *size = allocated * sizeof (pos[0]) / sizeof (scratch_buffer_t);
+  return (scratch_buffer_t *) (void *) pos;
+}
+
+
+
+/* HarfBuzz-Internal API */
+
+void
+hb_buffer_t::reset (void)
+{
+  if (unlikely (hb_object_is_inert (this)))
+    return;
+
+  hb_unicode_funcs_destroy (unicode);
+  unicode = hb_unicode_funcs_get_default ();
+  flags = HB_BUFFER_FLAG_DEFAULT;
+  replacement = HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT;
+
+  clear ();
+}
+
+void
+hb_buffer_t::clear (void)
+{
+  if (unlikely (hb_object_is_inert (this)))
+    return;
+
+  hb_segment_properties_t default_props = HB_SEGMENT_PROPERTIES_DEFAULT;
+  props = default_props;
+
+  content_type = HB_BUFFER_CONTENT_TYPE_INVALID;
+  in_error = false;
+  have_output = false;
+  have_positions = false;
+
+  idx = 0;
+  len = 0;
+  out_len = 0;
+  out_info = info;
+
+  serial = 0;
+  memset (allocated_var_bytes, 0, sizeof allocated_var_bytes);
+  memset (allocated_var_owner, 0, sizeof allocated_var_owner);
+
+  memset (context, 0, sizeof context);
+  memset (context_len, 0, sizeof context_len);
+}
+
+void
+hb_buffer_t::add (hb_codepoint_t  codepoint,
+                 unsigned int    cluster)
+{
+  hb_glyph_info_t *glyph;
+
+  if (unlikely (!ensure (len + 1))) return;
+
+  glyph = &info[len];
+
+  memset (glyph, 0, sizeof (*glyph));
+  glyph->codepoint = codepoint;
+  glyph->mask = 1;
+  glyph->cluster = cluster;
+
+  len++;
+}
+
+void
+hb_buffer_t::add_info (const hb_glyph_info_t &glyph_info)
+{
+  if (unlikely (!ensure (len + 1))) return;
+
+  info[len] = glyph_info;
+
+  len++;
+}
+
+
+void
+hb_buffer_t::remove_output (void)
+{
+  if (unlikely (hb_object_is_inert (this)))
+    return;
+
+  have_output = false;
+  have_positions = false;
+
+  out_len = 0;
+  out_info = info;
+}
+
+void
+hb_buffer_t::clear_output (void)
+{
+  if (unlikely (hb_object_is_inert (this)))
+    return;
+
+  have_output = true;
+  have_positions = false;
+
+  out_len = 0;
+  out_info = info;
+}
+
+void
+hb_buffer_t::clear_positions (void)
+{
+  if (unlikely (hb_object_is_inert (this)))
+    return;
+
+  have_output = false;
+  have_positions = true;
+
+  out_len = 0;
+  out_info = info;
+
+  memset (pos, 0, sizeof (pos[0]) * len);
+}
+
+void
+hb_buffer_t::swap_buffers (void)
+{
+  if (unlikely (in_error)) return;
+
+  assert (have_output);
+  have_output = false;
+
+  if (out_info != info)
+  {
+    hb_glyph_info_t *tmp_string;
+    tmp_string = info;
+    info = out_info;
+    out_info = tmp_string;
+    pos = (hb_glyph_position_t *) out_info;
+  }
+
+  unsigned int tmp;
+  tmp = len;
+  len = out_len;
+  out_len = tmp;
+
+  idx = 0;
+}
+
+
+void
+hb_buffer_t::replace_glyphs (unsigned int num_in,
+                            unsigned int num_out,
+                            const uint32_t *glyph_data)
+{
+  if (unlikely (!make_room_for (num_in, num_out))) return;
+
+  merge_clusters (idx, idx + num_in);
+
+  hb_glyph_info_t orig_info = info[idx];
+  hb_glyph_info_t *pinfo = &out_info[out_len];
+  for (unsigned int i = 0; i < num_out; i++)
+  {
+    *pinfo = orig_info;
+    pinfo->codepoint = glyph_data[i];
+    pinfo++;
+  }
+
+  idx  += num_in;
+  out_len += num_out;
+}
+
+void
+hb_buffer_t::output_glyph (hb_codepoint_t glyph_index)
+{
+  if (unlikely (!make_room_for (0, 1))) return;
+
+  out_info[out_len] = info[idx];
+  out_info[out_len].codepoint = glyph_index;
+
+  out_len++;
+}
+
+void
+hb_buffer_t::output_info (const hb_glyph_info_t &glyph_info)
+{
+  if (unlikely (!make_room_for (0, 1))) return;
+
+  out_info[out_len] = glyph_info;
+
+  out_len++;
+}
+
+void
+hb_buffer_t::copy_glyph (void)
+{
+  if (unlikely (!make_room_for (0, 1))) return;
+
+  out_info[out_len] = info[idx];
+
+  out_len++;
+}
+
+bool
+hb_buffer_t::move_to (unsigned int i)
+{
+  if (!have_output)
+  {
+    assert (i <= len);
+    idx = i;
+    return true;
+  }
+
+  assert (i <= out_len + (len - idx));
+
+  if (out_len < i)
+  {
+    unsigned int count = i - out_len;
+    if (unlikely (!make_room_for (count, count))) return false;
+
+    memmove (out_info + out_len, info + idx, count * sizeof (out_info[0]));
+    idx += count;
+    out_len += count;
+  }
+  else if (out_len > i)
+  {
+    /* Tricky part: rewinding... */
+    unsigned int count = out_len - i;
+
+    if (unlikely (idx < count && !shift_forward (count + 32))) return false;
+
+    assert (idx >= count);
+
+    idx -= count;
+    out_len -= count;
+    memmove (info + idx, out_info + out_len, count * sizeof (out_info[0]));
+  }
+
+  return true;
+}
+
+void
+hb_buffer_t::replace_glyph (hb_codepoint_t glyph_index)
+{
+  if (unlikely (out_info != info || out_len != idx)) {
+    if (unlikely (!make_room_for (1, 1))) return;
+    out_info[out_len] = info[idx];
+  }
+  out_info[out_len].codepoint = glyph_index;
+
+  idx++;
+  out_len++;
+}
+
+
+void
+hb_buffer_t::set_masks (hb_mask_t    value,
+                       hb_mask_t    mask,
+                       unsigned int cluster_start,
+                       unsigned int cluster_end)
+{
+  hb_mask_t not_mask = ~mask;
+  value &= mask;
+
+  if (!mask)
+    return;
+
+  if (cluster_start == 0 && cluster_end == (unsigned int)-1) {
+    unsigned int count = len;
+    for (unsigned int i = 0; i < count; i++)
+      info[i].mask = (info[i].mask & not_mask) | value;
+    return;
+  }
+
+  unsigned int count = len;
+  for (unsigned int i = 0; i < count; i++)
+    if (cluster_start <= info[i].cluster && info[i].cluster < cluster_end)
+      info[i].mask = (info[i].mask & not_mask) | value;
+}
+
+void
+hb_buffer_t::reverse_range (unsigned int start,
+                           unsigned int end)
+{
+  unsigned int i, j;
+
+  if (start == end - 1)
+    return;
+
+  for (i = start, j = end - 1; i < j; i++, j--) {
+    hb_glyph_info_t t;
+
+    t = info[i];
+    info[i] = info[j];
+    info[j] = t;
+  }
+
+  if (pos) {
+    for (i = start, j = end - 1; i < j; i++, j--) {
+      hb_glyph_position_t t;
+
+      t = pos[i];
+      pos[i] = pos[j];
+      pos[j] = t;
+    }
+  }
+}
+
+void
+hb_buffer_t::reverse (void)
+{
+  if (unlikely (!len))
+    return;
+
+  reverse_range (0, len);
+}
+
+void
+hb_buffer_t::reverse_clusters (void)
+{
+  unsigned int i, start, count, last_cluster;
+
+  if (unlikely (!len))
+    return;
+
+  reverse ();
+
+  count = len;
+  start = 0;
+  last_cluster = info[0].cluster;
+  for (i = 1; i < count; i++) {
+    if (last_cluster != info[i].cluster) {
+      reverse_range (start, i);
+      start = i;
+      last_cluster = info[i].cluster;
+    }
+  }
+  reverse_range (start, i);
+}
+
+void
+hb_buffer_t::merge_clusters (unsigned int start,
+                            unsigned int end)
+{
+#ifdef HB_NO_MERGE_CLUSTERS
+  return;
+#endif
+
+  if (unlikely (end - start < 2))
+    return;
+
+  unsigned int cluster = info[start].cluster;
+
+  for (unsigned int i = start + 1; i < end; i++)
+    cluster = MIN (cluster, info[i].cluster);
+
+  /* Extend end */
+  while (end < len && info[end - 1].cluster == info[end].cluster)
+    end++;
+
+  /* Extend start */
+  while (idx < start && info[start - 1].cluster == info[start].cluster)
+    start--;
+
+  /* If we hit the start of buffer, continue in out-buffer. */
+  if (idx == start)
+    for (unsigned i = out_len; i && out_info[i - 1].cluster == info[start].cluster; i--)
+      out_info[i - 1].cluster = cluster;
+
+  for (unsigned int i = start; i < end; i++)
+    info[i].cluster = cluster;
+}
+void
+hb_buffer_t::merge_out_clusters (unsigned int start,
+                                unsigned int end)
+{
+#ifdef HB_NO_MERGE_CLUSTERS
+  return;
+#endif
+
+  if (unlikely (end - start < 2))
+    return;
+
+  unsigned int cluster = out_info[start].cluster;
+
+  for (unsigned int i = start + 1; i < end; i++)
+    cluster = MIN (cluster, out_info[i].cluster);
+
+  /* Extend start */
+  while (start && out_info[start - 1].cluster == out_info[start].cluster)
+    start--;
+
+  /* Extend end */
+  while (end < out_len && out_info[end - 1].cluster == out_info[end].cluster)
+    end++;
+
+  /* If we hit the end of out-buffer, continue in buffer. */
+  if (end == out_len)
+    for (unsigned i = idx; i < len && info[i].cluster == out_info[end - 1].cluster; i++)
+      info[i].cluster = cluster;
+
+  for (unsigned int i = start; i < end; i++)
+    out_info[i].cluster = cluster;
+}
+
+void
+hb_buffer_t::guess_segment_properties (void)
+{
+  assert (content_type == HB_BUFFER_CONTENT_TYPE_UNICODE ||
+         (!len && content_type == HB_BUFFER_CONTENT_TYPE_INVALID));
+
+  /* If script is set to INVALID, guess from buffer contents */
+  if (props.script == HB_SCRIPT_INVALID) {
+    for (unsigned int i = 0; i < len; i++) {
+      hb_script_t script = unicode->script (info[i].codepoint);
+      if (likely (script != HB_SCRIPT_COMMON &&
+                 script != HB_SCRIPT_INHERITED &&
+                 script != HB_SCRIPT_UNKNOWN)) {
+        props.script = script;
+        break;
+      }
+    }
+  }
+
+  /* If direction is set to INVALID, guess from script */
+  if (props.direction == HB_DIRECTION_INVALID) {
+    props.direction = hb_script_get_horizontal_direction (props.script);
+  }
+
+  /* If language is not set, use default language from locale */
+  if (props.language == HB_LANGUAGE_INVALID) {
+    /* TODO get_default_for_script? using $LANGUAGE */
+    props.language = hb_language_get_default ();
+  }
+}
+
+
+static inline void
+dump_var_allocation (const hb_buffer_t *buffer)
+{
+  char buf[80];
+  for (unsigned int i = 0; i < 8; i++)
+    buf[i] = '0' + buffer->allocated_var_bytes[7 - i];
+  buf[8] = '\0';
+  DEBUG_MSG (BUFFER, buffer,
+            "Current var allocation: %s",
+            buf);
+}
+
+void hb_buffer_t::allocate_var (unsigned int byte_i, unsigned int count, const char *owner)
+{
+  assert (byte_i < 8 && byte_i + count <= 8);
+
+  if (DEBUG_ENABLED (BUFFER))
+    dump_var_allocation (this);
+  DEBUG_MSG (BUFFER, this,
+            "Allocating var bytes %d..%d for %s",
+            byte_i, byte_i + count - 1, owner);
+
+  for (unsigned int i = byte_i; i < byte_i + count; i++) {
+    assert (!allocated_var_bytes[i]);
+    allocated_var_bytes[i]++;
+    allocated_var_owner[i] = owner;
+  }
+}
+
+void hb_buffer_t::deallocate_var (unsigned int byte_i, unsigned int count, const char *owner)
+{
+  if (DEBUG_ENABLED (BUFFER))
+    dump_var_allocation (this);
+
+  DEBUG_MSG (BUFFER, this,
+            "Deallocating var bytes %d..%d for %s",
+            byte_i, byte_i + count - 1, owner);
+
+  assert (byte_i < 8 && byte_i + count <= 8);
+  for (unsigned int i = byte_i; i < byte_i + count; i++) {
+    assert (allocated_var_bytes[i]);
+    assert (0 == strcmp (allocated_var_owner[i], owner));
+    allocated_var_bytes[i]--;
+  }
+}
+
+void hb_buffer_t::assert_var (unsigned int byte_i, unsigned int count, const char *owner)
+{
+  if (DEBUG_ENABLED (BUFFER))
+    dump_var_allocation (this);
+
+  DEBUG_MSG (BUFFER, this,
+            "Asserting var bytes %d..%d for %s",
+            byte_i, byte_i + count - 1, owner);
+
+  assert (byte_i < 8 && byte_i + count <= 8);
+  for (unsigned int i = byte_i; i < byte_i + count; i++) {
+    assert (allocated_var_bytes[i]);
+    assert (0 == strcmp (allocated_var_owner[i], owner));
+  }
+}
+
+void hb_buffer_t::deallocate_var_all (void)
+{
+  memset (allocated_var_bytes, 0, sizeof (allocated_var_bytes));
+  memset (allocated_var_owner, 0, sizeof (allocated_var_owner));
+}
+
+/* Public API */
+
+/**
+ * hb_buffer_create: (Xconstructor)
+ *
+ * 
+ *
+ * Return value: (transfer full)
+ *
+ * Since: 1.0
+ **/
+hb_buffer_t *
+hb_buffer_create (void)
+{
+  hb_buffer_t *buffer;
+
+  if (!(buffer = hb_object_create<hb_buffer_t> ()))
+    return hb_buffer_get_empty ();
+
+  buffer->reset ();
+
+  return buffer;
+}
+
+/**
+ * hb_buffer_get_empty:
+ *
+ * 
+ *
+ * Return value: (transfer full):
+ *
+ * Since: 1.0
+ **/
+hb_buffer_t *
+hb_buffer_get_empty (void)
+{
+  static const hb_buffer_t _hb_buffer_nil = {
+    HB_OBJECT_HEADER_STATIC,
+
+    const_cast<hb_unicode_funcs_t *> (&_hb_unicode_funcs_nil),
+    HB_BUFFER_FLAG_DEFAULT,
+    HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT,
+
+    HB_BUFFER_CONTENT_TYPE_INVALID,
+    HB_SEGMENT_PROPERTIES_DEFAULT,
+    true, /* in_error */
+    true, /* have_output */
+    true  /* have_positions */
+
+    /* Zero is good enough for everything else. */
+  };
+
+  return const_cast<hb_buffer_t *> (&_hb_buffer_nil);
+}
+
+/**
+ * hb_buffer_reference: (skip)
+ * @buffer: a buffer.
+ *
+ * 
+ *
+ * Return value: (transfer full):
+ *
+ * Since: 1.0
+ **/
+hb_buffer_t *
+hb_buffer_reference (hb_buffer_t *buffer)
+{
+  return hb_object_reference (buffer);
+}
+
+/**
+ * hb_buffer_destroy: (skip)
+ * @buffer: a buffer.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_destroy (hb_buffer_t *buffer)
+{
+  if (!hb_object_destroy (buffer)) return;
+
+  hb_unicode_funcs_destroy (buffer->unicode);
+
+  free (buffer->info);
+  free (buffer->pos);
+
+  free (buffer);
+}
+
+/**
+ * hb_buffer_set_user_data: (skip)
+ * @buffer: a buffer.
+ * @key: 
+ * @data: 
+ * @destroy: 
+ * @replace: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_buffer_set_user_data (hb_buffer_t        *buffer,
+                        hb_user_data_key_t *key,
+                        void *              data,
+                        hb_destroy_func_t   destroy,
+                        hb_bool_t           replace)
+{
+  return hb_object_set_user_data (buffer, key, data, destroy, replace);
+}
+
+/**
+ * hb_buffer_get_user_data: (skip)
+ * @buffer: a buffer.
+ * @key: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+void *
+hb_buffer_get_user_data (hb_buffer_t        *buffer,
+                        hb_user_data_key_t *key)
+{
+  return hb_object_get_user_data (buffer, key);
+}
+
+
+/**
+ * hb_buffer_set_content_type:
+ * @buffer: a buffer.
+ * @content_type: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_set_content_type (hb_buffer_t              *buffer,
+                           hb_buffer_content_type_t  content_type)
+{
+  buffer->content_type = content_type;
+}
+
+/**
+ * hb_buffer_get_content_type:
+ * @buffer: a buffer.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_buffer_content_type_t
+hb_buffer_get_content_type (hb_buffer_t *buffer)
+{
+  return buffer->content_type;
+}
+
+
+/**
+ * hb_buffer_set_unicode_funcs:
+ * @buffer: a buffer.
+ * @unicode_funcs: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_set_unicode_funcs (hb_buffer_t        *buffer,
+                            hb_unicode_funcs_t *unicode_funcs)
+{
+  if (unlikely (hb_object_is_inert (buffer)))
+    return;
+
+  if (!unicode_funcs)
+    unicode_funcs = hb_unicode_funcs_get_default ();
+
+
+  hb_unicode_funcs_reference (unicode_funcs);
+  hb_unicode_funcs_destroy (buffer->unicode);
+  buffer->unicode = unicode_funcs;
+}
+
+/**
+ * hb_buffer_get_unicode_funcs:
+ * @buffer: a buffer.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_unicode_funcs_t *
+hb_buffer_get_unicode_funcs (hb_buffer_t        *buffer)
+{
+  return buffer->unicode;
+}
+
+/**
+ * hb_buffer_set_direction:
+ * @buffer: a buffer.
+ * @direction: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_set_direction (hb_buffer_t    *buffer,
+                        hb_direction_t  direction)
+
+{
+  if (unlikely (hb_object_is_inert (buffer)))
+    return;
+
+  buffer->props.direction = direction;
+}
+
+/**
+ * hb_buffer_get_direction:
+ * @buffer: a buffer.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_direction_t
+hb_buffer_get_direction (hb_buffer_t    *buffer)
+{
+  return buffer->props.direction;
+}
+
+/**
+ * hb_buffer_set_script:
+ * @buffer: a buffer.
+ * @script: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_set_script (hb_buffer_t *buffer,
+                     hb_script_t  script)
+{
+  if (unlikely (hb_object_is_inert (buffer)))
+    return;
+
+  buffer->props.script = script;
+}
+
+/**
+ * hb_buffer_get_script:
+ * @buffer: a buffer.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_script_t
+hb_buffer_get_script (hb_buffer_t *buffer)
+{
+  return buffer->props.script;
+}
+
+/**
+ * hb_buffer_set_language:
+ * @buffer: a buffer.
+ * @language: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_set_language (hb_buffer_t   *buffer,
+                       hb_language_t  language)
+{
+  if (unlikely (hb_object_is_inert (buffer)))
+    return;
+
+  buffer->props.language = language;
+}
+
+/**
+ * hb_buffer_get_language:
+ * @buffer: a buffer.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_language_t
+hb_buffer_get_language (hb_buffer_t *buffer)
+{
+  return buffer->props.language;
+}
+
+/**
+ * hb_buffer_set_segment_properties:
+ * @buffer: a buffer.
+ * @props: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_set_segment_properties (hb_buffer_t *buffer,
+                                 const hb_segment_properties_t *props)
+{
+  if (unlikely (hb_object_is_inert (buffer)))
+    return;
+
+  buffer->props = *props;
+}
+
+/**
+ * hb_buffer_get_segment_properties:
+ * @buffer: a buffer.
+ * @props: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_get_segment_properties (hb_buffer_t *buffer,
+                                 hb_segment_properties_t *props)
+{
+  *props = buffer->props;
+}
+
+
+/**
+ * hb_buffer_set_flags:
+ * @buffer: a buffer.
+ * @flags: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_set_flags (hb_buffer_t       *buffer,
+                    hb_buffer_flags_t  flags)
+{
+  if (unlikely (hb_object_is_inert (buffer)))
+    return;
+
+  buffer->flags = flags;
+}
+
+/**
+ * hb_buffer_get_flags:
+ * @buffer: a buffer.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_buffer_flags_t
+hb_buffer_get_flags (hb_buffer_t *buffer)
+{
+  return buffer->flags;
+}
+
+
+/**
+ * hb_buffer_set_replacement_codepoint:
+ * @buffer: a buffer.
+ * @replacement: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_set_replacement_codepoint (hb_buffer_t    *buffer,
+                                    hb_codepoint_t  replacement)
+{
+  if (unlikely (hb_object_is_inert (buffer)))
+    return;
+
+  buffer->replacement = replacement;
+}
+
+/**
+ * hb_buffer_get_replacement_codepoint:
+ * @buffer: a buffer.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_codepoint_t
+hb_buffer_get_replacement_codepoint (hb_buffer_t    *buffer)
+{
+  return buffer->replacement;
+}
+
+
+/**
+ * hb_buffer_reset:
+ * @buffer: a buffer.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_reset (hb_buffer_t *buffer)
+{
+  buffer->reset ();
+}
+
+/**
+ * hb_buffer_clear_contents:
+ * @buffer: a buffer.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_clear_contents (hb_buffer_t *buffer)
+{
+  buffer->clear ();
+}
+
+/**
+ * hb_buffer_pre_allocate:
+ * @buffer: a buffer.
+ * @size: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_buffer_pre_allocate (hb_buffer_t *buffer, unsigned int size)
+{
+  return buffer->ensure (size);
+}
+
+/**
+ * hb_buffer_allocation_successful:
+ * @buffer: a buffer.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_buffer_allocation_successful (hb_buffer_t  *buffer)
+{
+  return !buffer->in_error;
+}
+
+/**
+ * hb_buffer_add:
+ * @buffer: a buffer.
+ * @codepoint: 
+ * @cluster: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_add (hb_buffer_t    *buffer,
+              hb_codepoint_t  codepoint,
+              unsigned int    cluster)
+{
+  buffer->add (codepoint, cluster);
+  buffer->clear_context (1);
+}
+
+/**
+ * hb_buffer_set_length:
+ * @buffer: a buffer.
+ * @length: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_buffer_set_length (hb_buffer_t  *buffer,
+                     unsigned int  length)
+{
+  if (unlikely (hb_object_is_inert (buffer)))
+    return length == 0;
+
+  if (!buffer->ensure (length))
+    return false;
+
+  /* Wipe the new space */
+  if (length > buffer->len) {
+    memset (buffer->info + buffer->len, 0, sizeof (buffer->info[0]) * (length - buffer->len));
+    if (buffer->have_positions)
+      memset (buffer->pos + buffer->len, 0, sizeof (buffer->pos[0]) * (length - buffer->len));
+  }
+
+  buffer->len = length;
+
+  if (!length)
+  {
+    buffer->content_type = HB_BUFFER_CONTENT_TYPE_INVALID;
+    buffer->clear_context (0);
+  }
+  buffer->clear_context (1);
+
+  return true;
+}
+
+/**
+ * hb_buffer_get_length:
+ * @buffer: a buffer.
+ *
+ * Returns the number of items in the buffer.
+ *
+ * Return value: buffer length.
+ *
+ * Since: 1.0
+ **/
+unsigned int
+hb_buffer_get_length (hb_buffer_t *buffer)
+{
+  return buffer->len;
+}
+
+/**
+ * hb_buffer_get_glyph_infos:
+ * @buffer: a buffer.
+ * @length: (out): output array length.
+ *
+ * Returns buffer glyph information array.  Returned pointer
+ * is valid as long as buffer contents are not modified.
+ *
+ * Return value: (transfer none) (array length=length): buffer glyph information array.
+ *
+ * Since: 1.0
+ **/
+hb_glyph_info_t *
+hb_buffer_get_glyph_infos (hb_buffer_t  *buffer,
+                           unsigned int *length)
+{
+  if (length)
+    *length = buffer->len;
+
+  return (hb_glyph_info_t *) buffer->info;
+}
+
+/**
+ * hb_buffer_get_glyph_positions:
+ * @buffer: a buffer.
+ * @length: (out): output length.
+ *
+ * Returns buffer glyph position array.  Returned pointer
+ * is valid as long as buffer contents are not modified.
+ *
+ * Return value: (transfer none) (array length=length): buffer glyph position array.
+ *
+ * Since: 1.0
+ **/
+hb_glyph_position_t *
+hb_buffer_get_glyph_positions (hb_buffer_t  *buffer,
+                               unsigned int *length)
+{
+  if (!buffer->have_positions)
+    buffer->clear_positions ();
+
+  if (length)
+    *length = buffer->len;
+
+  return (hb_glyph_position_t *) buffer->pos;
+}
+
+/**
+ * hb_buffer_reverse:
+ * @buffer: a buffer.
+ *
+ * Reverses buffer contents.
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_reverse (hb_buffer_t *buffer)
+{
+  buffer->reverse ();
+}
+
+/**
+ * hb_buffer_reverse_clusters:
+ * @buffer: a buffer.
+ *
+ * Reverses buffer clusters.  That is, the buffer contents are
+ * reversed, then each cluster (consecutive items having the
+ * same cluster number) are reversed again.
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_reverse_clusters (hb_buffer_t *buffer)
+{
+  buffer->reverse_clusters ();
+}
+
+/**
+ * hb_buffer_guess_segment_properties:
+ * @buffer: a buffer.
+ *
+ * Sets unset buffer segment properties based on buffer Unicode
+ * contents.  If buffer is not empty, it must have content type
+ * %HB_BUFFER_CONTENT_TYPE_UNICODE.
+ *
+ * If buffer script is not set (ie. is %HB_SCRIPT_INVALID), it
+ * will be set to the Unicode script of the first character in
+ * the buffer that has a script other than %HB_SCRIPT_COMMON,
+ * %HB_SCRIPT_INHERITED, and %HB_SCRIPT_UNKNOWN.
+ *
+ * Next, if buffer direction is not set (ie. is %HB_DIRECTION_INVALID),
+ * it will be set to the natural horizontal direction of the
+ * buffer script as returned by hb_script_get_horizontal_direction().
+ *
+ * Finally, if buffer language is not set (ie. is %HB_LANGUAGE_INVALID),
+ * it will be set to the process's default language as returned by
+ * hb_language_get_default().  This may change in the future by
+ * taking buffer script into consideration when choosing a language.
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_guess_segment_properties (hb_buffer_t *buffer)
+{
+  buffer->guess_segment_properties ();
+}
+
+template <bool validate, typename T>
+static inline void
+hb_buffer_add_utf (hb_buffer_t  *buffer,
+                  const T      *text,
+                  int           text_length,
+                  unsigned int  item_offset,
+                  int           item_length)
+{
+  typedef hb_utf_t<T, true> utf_t;
+  const hb_codepoint_t replacement = buffer->replacement;
+
+  assert (buffer->content_type == HB_BUFFER_CONTENT_TYPE_UNICODE ||
+         (!buffer->len && buffer->content_type == HB_BUFFER_CONTENT_TYPE_INVALID));
+
+  if (unlikely (hb_object_is_inert (buffer)))
+    return;
+
+  if (text_length == -1)
+    text_length = utf_t::strlen (text);
+
+  if (item_length == -1)
+    item_length = text_length - item_offset;
+
+  buffer->ensure (buffer->len + item_length * sizeof (T) / 4);
+
+  /* If buffer is empty and pre-context provided, install it.
+   * This check is written this way, to make sure people can
+   * provide pre-context in one add_utf() call, then provide
+   * text in a follow-up call.  See:
+   *
+   * https://bugzilla.mozilla.org/show_bug.cgi?id=801410#c13
+   */
+  if (!buffer->len && item_offset > 0)
+  {
+    /* Add pre-context */
+    buffer->clear_context (0);
+    const T *prev = text + item_offset;
+    const T *start = text;
+    while (start < prev && buffer->context_len[0] < buffer->CONTEXT_LENGTH)
+    {
+      hb_codepoint_t u;
+      prev = utf_t::prev (prev, start, &u, replacement);
+      buffer->context[0][buffer->context_len[0]++] = u;
+    }
+  }
+
+  const T *next = text + item_offset;
+  const T *end = next + item_length;
+  while (next < end)
+  {
+    hb_codepoint_t u;
+    const T *old_next = next;
+    next = utf_t::next (next, end, &u, replacement);
+    buffer->add (u, old_next - (const T *) text);
+  }
+
+  /* Add post-context */
+  buffer->clear_context (1);
+  end = text + text_length;
+  while (next < end && buffer->context_len[1] < buffer->CONTEXT_LENGTH)
+  {
+    hb_codepoint_t u;
+    next = utf_t::next (next, end, &u, replacement);
+    buffer->context[1][buffer->context_len[1]++] = u;
+  }
+
+  buffer->content_type = HB_BUFFER_CONTENT_TYPE_UNICODE;
+}
+
+/**
+ * hb_buffer_add_utf8:
+ * @buffer: a buffer.
+ * @text: (array length=text_length):
+ * @text_length: 
+ * @item_offset: 
+ * @item_length: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_add_utf8 (hb_buffer_t  *buffer,
+                   const char   *text,
+                   int           text_length,
+                   unsigned int  item_offset,
+                   int           item_length)
+{
+  hb_buffer_add_utf<true> (buffer, (const uint8_t *) text, text_length, item_offset, item_length);
+}
+
+/**
+ * hb_buffer_add_utf16:
+ * @buffer: a buffer.
+ * @text: (array length=text_length):
+ * @text_length: 
+ * @item_offset: 
+ * @item_length: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_add_utf16 (hb_buffer_t    *buffer,
+                    const uint16_t *text,
+                    int             text_length,
+                    unsigned int    item_offset,
+                    int             item_length)
+{
+  hb_buffer_add_utf<true> (buffer, text, text_length, item_offset, item_length);
+}
+
+/**
+ * hb_buffer_add_utf32:
+ * @buffer: a buffer.
+ * @text: (array length=text_length):
+ * @text_length: 
+ * @item_offset: 
+ * @item_length: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_add_utf32 (hb_buffer_t    *buffer,
+                    const uint32_t *text,
+                    int             text_length,
+                    unsigned int    item_offset,
+                    int             item_length)
+{
+  hb_buffer_add_utf<true> (buffer, text, text_length, item_offset, item_length);
+}
+
+/**
+ * hb_buffer_add_codepoints:
+ * @buffer: a buffer.
+ * @text: (array length=text_length):
+ * @text_length: 
+ * @item_offset: 
+ * @item_length: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_add_codepoints (hb_buffer_t          *buffer,
+                         const hb_codepoint_t *text,
+                         int                   text_length,
+                         unsigned int          item_offset,
+                         int                   item_length)
+{
+  hb_buffer_add_utf<false> (buffer, text, text_length, item_offset, item_length);
+}
+
+
+static int
+compare_info_codepoint (const hb_glyph_info_t *pa,
+                       const hb_glyph_info_t *pb)
+{
+  return (int) pb->codepoint - (int) pa->codepoint;
+}
+
+static inline void
+normalize_glyphs_cluster (hb_buffer_t *buffer,
+                         unsigned int start,
+                         unsigned int end,
+                         bool backward)
+{
+  hb_glyph_position_t *pos = buffer->pos;
+
+  /* Total cluster advance */
+  hb_position_t total_x_advance = 0, total_y_advance = 0;
+  for (unsigned int i = start; i < end; i++)
+  {
+    total_x_advance += pos[i].x_advance;
+    total_y_advance += pos[i].y_advance;
+  }
+
+  hb_position_t x_advance = 0, y_advance = 0;
+  for (unsigned int i = start; i < end; i++)
+  {
+    pos[i].x_offset += x_advance;
+    pos[i].y_offset += y_advance;
+
+    x_advance += pos[i].x_advance;
+    y_advance += pos[i].y_advance;
+
+    pos[i].x_advance = 0;
+    pos[i].y_advance = 0;
+  }
+
+  if (backward)
+  {
+    /* Transfer all cluster advance to the last glyph. */
+    pos[end - 1].x_advance = total_x_advance;
+    pos[end - 1].y_advance = total_y_advance;
+
+    hb_bubble_sort (buffer->info + start, end - start - 1, compare_info_codepoint, buffer->pos + start);
+  } else {
+    /* Transfer all cluster advance to the first glyph. */
+    pos[start].x_advance += total_x_advance;
+    pos[start].y_advance += total_y_advance;
+    for (unsigned int i = start + 1; i < end; i++) {
+      pos[i].x_offset -= total_x_advance;
+      pos[i].y_offset -= total_y_advance;
+    }
+    hb_bubble_sort (buffer->info + start + 1, end - start - 1, compare_info_codepoint, buffer->pos + start + 1);
+  }
+}
+
+/**
+ * hb_buffer_normalize_glyphs:
+ * @buffer: a buffer.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_buffer_normalize_glyphs (hb_buffer_t *buffer)
+{
+  assert (buffer->have_positions);
+  assert (buffer->content_type == HB_BUFFER_CONTENT_TYPE_GLYPHS);
+
+  bool backward = HB_DIRECTION_IS_BACKWARD (buffer->props.direction);
+
+  unsigned int count = buffer->len;
+  if (unlikely (!count)) return;
+  hb_glyph_info_t *info = buffer->info;
+
+  unsigned int start = 0;
+  unsigned int end;
+  for (end = start + 1; end < count; end++)
+    if (info[start].cluster != info[end].cluster) {
+      normalize_glyphs_cluster (buffer, start, end, backward);
+      start = end;
+    }
+  normalize_glyphs_cluster (buffer, start, end, backward);
+}
diff --git a/src/hb-buffer.h b/src/hb-buffer.h
new file mode 100644 (file)
index 0000000..7b0c920
--- /dev/null
@@ -0,0 +1,344 @@
+/*
+ * Copyright © 1998-2004  David Turner and Werner Lemberg
+ * Copyright © 2004,2007,2009  Red Hat, Inc.
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Owen Taylor, Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_H_IN
+#error "Include <hb.h> instead."
+#endif
+
+#ifndef HB_BUFFER_H
+#define HB_BUFFER_H
+
+#include "hb-common.h"
+#include "hb-unicode.h"
+#include "hb-font.h"
+
+HB_BEGIN_DECLS
+
+
+typedef struct hb_glyph_info_t {
+  hb_codepoint_t codepoint;
+  hb_mask_t      mask;
+  uint32_t       cluster;
+
+  /*< private >*/
+  hb_var_int_t   var1;
+  hb_var_int_t   var2;
+} hb_glyph_info_t;
+
+typedef struct hb_glyph_position_t {
+  hb_position_t  x_advance;
+  hb_position_t  y_advance;
+  hb_position_t  x_offset;
+  hb_position_t  y_offset;
+
+  /*< private >*/
+  hb_var_int_t   var;
+} hb_glyph_position_t;
+
+
+typedef struct hb_segment_properties_t {
+  hb_direction_t  direction;
+  hb_script_t     script;
+  hb_language_t   language;
+  /*< private >*/
+  void           *reserved1;
+  void           *reserved2;
+} hb_segment_properties_t;
+
+#define HB_SEGMENT_PROPERTIES_DEFAULT {HB_DIRECTION_INVALID, \
+                                      HB_SCRIPT_INVALID, \
+                                      HB_LANGUAGE_INVALID, \
+                                      NULL, \
+                                      NULL}
+
+hb_bool_t
+hb_segment_properties_equal (const hb_segment_properties_t *a,
+                            const hb_segment_properties_t *b);
+
+unsigned int
+hb_segment_properties_hash (const hb_segment_properties_t *p);
+
+
+
+/*
+ * hb_buffer_t
+ */
+
+typedef struct hb_buffer_t hb_buffer_t;
+
+hb_buffer_t *
+hb_buffer_create (void);
+
+hb_buffer_t *
+hb_buffer_get_empty (void);
+
+hb_buffer_t *
+hb_buffer_reference (hb_buffer_t *buffer);
+
+void
+hb_buffer_destroy (hb_buffer_t *buffer);
+
+hb_bool_t
+hb_buffer_set_user_data (hb_buffer_t        *buffer,
+                        hb_user_data_key_t *key,
+                        void *              data,
+                        hb_destroy_func_t   destroy,
+                        hb_bool_t           replace);
+
+void *
+hb_buffer_get_user_data (hb_buffer_t        *buffer,
+                        hb_user_data_key_t *key);
+
+
+typedef enum {
+  HB_BUFFER_CONTENT_TYPE_INVALID = 0,
+  HB_BUFFER_CONTENT_TYPE_UNICODE,
+  HB_BUFFER_CONTENT_TYPE_GLYPHS
+} hb_buffer_content_type_t;
+
+void
+hb_buffer_set_content_type (hb_buffer_t              *buffer,
+                           hb_buffer_content_type_t  content_type);
+
+hb_buffer_content_type_t
+hb_buffer_get_content_type (hb_buffer_t *buffer);
+
+
+void
+hb_buffer_set_unicode_funcs (hb_buffer_t        *buffer,
+                            hb_unicode_funcs_t *unicode_funcs);
+
+hb_unicode_funcs_t *
+hb_buffer_get_unicode_funcs (hb_buffer_t        *buffer);
+
+void
+hb_buffer_set_direction (hb_buffer_t    *buffer,
+                        hb_direction_t  direction);
+
+hb_direction_t
+hb_buffer_get_direction (hb_buffer_t *buffer);
+
+void
+hb_buffer_set_script (hb_buffer_t *buffer,
+                     hb_script_t  script);
+
+hb_script_t
+hb_buffer_get_script (hb_buffer_t *buffer);
+
+void
+hb_buffer_set_language (hb_buffer_t   *buffer,
+                       hb_language_t  language);
+
+
+hb_language_t
+hb_buffer_get_language (hb_buffer_t *buffer);
+
+void
+hb_buffer_set_segment_properties (hb_buffer_t *buffer,
+                                 const hb_segment_properties_t *props);
+
+void
+hb_buffer_get_segment_properties (hb_buffer_t *buffer,
+                                 hb_segment_properties_t *props);
+
+void
+hb_buffer_guess_segment_properties (hb_buffer_t *buffer);
+
+
+typedef enum { /*< flags >*/
+  HB_BUFFER_FLAG_DEFAULT                       = 0x00000000u,
+  HB_BUFFER_FLAG_BOT                           = 0x00000001u, /* Beginning-of-text */
+  HB_BUFFER_FLAG_EOT                           = 0x00000002u, /* End-of-text */
+  HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES   = 0x00000004u
+} hb_buffer_flags_t;
+
+void
+hb_buffer_set_flags (hb_buffer_t       *buffer,
+                    hb_buffer_flags_t  flags);
+
+hb_buffer_flags_t
+hb_buffer_get_flags (hb_buffer_t *buffer);
+
+
+
+#define HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT 0xFFFDu
+
+/* Sets codepoint used to replace invalid UTF-8/16/32 entries.
+ * Default is 0xFFFDu. */
+void
+hb_buffer_set_replacement_codepoint (hb_buffer_t    *buffer,
+                                    hb_codepoint_t  replacement);
+
+hb_codepoint_t
+hb_buffer_get_replacement_codepoint (hb_buffer_t    *buffer);
+
+
+/* Resets the buffer.  Afterwards it's as if it was just created,
+ * except that it has a larger buffer allocated perhaps... */
+void
+hb_buffer_reset (hb_buffer_t *buffer);
+
+/* Like reset, but does NOT clear unicode_funcs and replacement_codepoint. */
+void
+hb_buffer_clear_contents (hb_buffer_t *buffer);
+
+/* Returns false if allocation failed */
+hb_bool_t
+hb_buffer_pre_allocate (hb_buffer_t  *buffer,
+                       unsigned int  size);
+
+
+/* Returns false if allocation has failed before */
+hb_bool_t
+hb_buffer_allocation_successful (hb_buffer_t  *buffer);
+
+void
+hb_buffer_reverse (hb_buffer_t *buffer);
+
+void
+hb_buffer_reverse_clusters (hb_buffer_t *buffer);
+
+
+/* Filling the buffer in */
+
+void
+hb_buffer_add (hb_buffer_t    *buffer,
+              hb_codepoint_t  codepoint,
+              unsigned int    cluster);
+
+void
+hb_buffer_add_utf8 (hb_buffer_t  *buffer,
+                   const char   *text,
+                   int           text_length,
+                   unsigned int  item_offset,
+                   int           item_length);
+
+void
+hb_buffer_add_utf16 (hb_buffer_t    *buffer,
+                    const uint16_t *text,
+                    int             text_length,
+                    unsigned int    item_offset,
+                    int             item_length);
+
+void
+hb_buffer_add_utf32 (hb_buffer_t    *buffer,
+                    const uint32_t *text,
+                    int             text_length,
+                    unsigned int    item_offset,
+                    int             item_length);
+
+/* Like add_utf32 but does NOT check for invalid Unicode codepoints. */
+void
+hb_buffer_add_codepoints (hb_buffer_t          *buffer,
+                         const hb_codepoint_t *text,
+                         int                   text_length,
+                         unsigned int          item_offset,
+                         int                   item_length);
+
+
+/* Clears any new items added at the end */
+hb_bool_t
+hb_buffer_set_length (hb_buffer_t  *buffer,
+                     unsigned int  length);
+
+/* Return value valid as long as buffer not modified */
+unsigned int
+hb_buffer_get_length (hb_buffer_t *buffer);
+
+/* Getting glyphs out of the buffer */
+
+/* Return value valid as long as buffer not modified */
+hb_glyph_info_t *
+hb_buffer_get_glyph_infos (hb_buffer_t  *buffer,
+                           unsigned int *length);
+
+/* Return value valid as long as buffer not modified */
+hb_glyph_position_t *
+hb_buffer_get_glyph_positions (hb_buffer_t  *buffer,
+                               unsigned int *length);
+
+
+/* Reorders a glyph buffer to have canonical in-cluster glyph order / position.
+ * The resulting clusters should behave identical to pre-reordering clusters.
+ * NOTE: This has nothing to do with Unicode normalization. */
+void
+hb_buffer_normalize_glyphs (hb_buffer_t *buffer);
+
+
+/*
+ * Serialize
+ */
+
+typedef enum { /*< flags >*/
+  HB_BUFFER_SERIALIZE_FLAG_DEFAULT             = 0x00000000u,
+  HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS         = 0x00000001u,
+  HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS                = 0x00000002u,
+  HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES      = 0x00000004u
+} hb_buffer_serialize_flags_t;
+
+typedef enum {
+  HB_BUFFER_SERIALIZE_FORMAT_TEXT      = HB_TAG('T','E','X','T'),
+  HB_BUFFER_SERIALIZE_FORMAT_JSON      = HB_TAG('J','S','O','N'),
+  HB_BUFFER_SERIALIZE_FORMAT_INVALID   = HB_TAG_NONE
+} hb_buffer_serialize_format_t;
+
+/* len=-1 means str is NUL-terminated. */
+hb_buffer_serialize_format_t
+hb_buffer_serialize_format_from_string (const char *str, int len);
+
+const char *
+hb_buffer_serialize_format_to_string (hb_buffer_serialize_format_t format);
+
+const char **
+hb_buffer_serialize_list_formats (void);
+
+/* Returns number of items, starting at start, that were serialized. */
+unsigned int
+hb_buffer_serialize_glyphs (hb_buffer_t *buffer,
+                           unsigned int start,
+                           unsigned int end,
+                           char *buf,
+                           unsigned int buf_size,
+                           unsigned int *buf_consumed, /* May be NULL */
+                           hb_font_t *font, /* May be NULL */
+                           hb_buffer_serialize_format_t format,
+                           hb_buffer_serialize_flags_t flags);
+
+hb_bool_t
+hb_buffer_deserialize_glyphs (hb_buffer_t *buffer,
+                             const char *buf,
+                             int buf_len, /* -1 means nul-terminated */
+                             const char **end_ptr, /* May be NULL */
+                             hb_font_t *font, /* May be NULL */
+                             hb_buffer_serialize_format_t format);
+
+
+HB_END_DECLS
+
+#endif /* HB_BUFFER_H */
diff --git a/src/hb-cache-private.hh b/src/hb-cache-private.hh
new file mode 100644 (file)
index 0000000..19b70b7
--- /dev/null
@@ -0,0 +1,74 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_CACHE_PRIVATE_HH
+#define HB_CACHE_PRIVATE_HH
+
+#include "hb-private.hh"
+
+
+/* Implements a lock-free cache for int->int functions. */
+
+template <unsigned int key_bits, unsigned int value_bits, unsigned int cache_bits>
+struct hb_cache_t
+{
+  ASSERT_STATIC (key_bits >= cache_bits);
+  ASSERT_STATIC (key_bits + value_bits - cache_bits < 8 * sizeof (unsigned int));
+
+  inline void clear (void)
+  {
+    memset (values, 255, sizeof (values));
+  }
+
+  inline bool get (unsigned int key, unsigned int *value)
+  {
+    unsigned int k = key & ((1<<cache_bits)-1);
+    unsigned int v = values[k];
+    if ((v >> value_bits) != (key >> cache_bits))
+      return false;
+    *value = v & ((1<<value_bits)-1);
+    return true;
+  }
+
+  inline bool set (unsigned int key, unsigned int value)
+  {
+    if (unlikely ((key >> key_bits) || (value >> value_bits)))
+      return false; /* Overflows */
+    unsigned int k = key & ((1<<cache_bits)-1);
+    unsigned int v = ((key>>cache_bits)<<value_bits) | value;
+    values[k] = v;
+    return true;
+  }
+
+  private:
+  unsigned int values[1<<cache_bits];
+};
+
+typedef hb_cache_t<21, 16, 8> hb_cmap_cache_t;
+typedef hb_cache_t<16, 24, 8> hb_advance_cache_t;
+
+
+#endif /* HB_CACHE_PRIVATE_HH */
diff --git a/src/hb-common.cc b/src/hb-common.cc
new file mode 100644 (file)
index 0000000..a6a5144
--- /dev/null
@@ -0,0 +1,589 @@
+/*
+ * Copyright © 2009,2010  Red Hat, Inc.
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-private.hh"
+
+#include "hb-mutex-private.hh"
+#include "hb-object-private.hh"
+
+#include <locale.h>
+
+
+/* hb_options_t */
+
+hb_options_union_t _hb_options;
+
+void
+_hb_options_init (void)
+{
+  hb_options_union_t u;
+  u.i = 0;
+  u.opts.initialized = 1;
+
+  char *c = getenv ("HB_OPTIONS");
+  u.opts.uniscribe_bug_compatible = c && strstr (c, "uniscribe-bug-compatible");
+
+  /* This is idempotent and threadsafe. */
+  _hb_options = u;
+}
+
+
+/* hb_tag_t */
+
+/**
+ * hb_tag_from_string:
+ * @str: (array length=len): 
+ * @len: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_tag_t
+hb_tag_from_string (const char *str, int len)
+{
+  char tag[4];
+  unsigned int i;
+
+  if (!str || !len || !*str)
+    return HB_TAG_NONE;
+
+  if (len < 0 || len > 4)
+    len = 4;
+  for (i = 0; i < (unsigned) len && str[i]; i++)
+    tag[i] = str[i];
+  for (; i < 4; i++)
+    tag[i] = ' ';
+
+  return HB_TAG_CHAR4 (tag);
+}
+
+/**
+ * hb_tag_to_string:
+ * @tag: 
+ * @buf: (array fixed-size=4): 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_tag_to_string (hb_tag_t tag, char *buf)
+{
+  buf[0] = (char) (uint8_t) (tag >> 24);
+  buf[1] = (char) (uint8_t) (tag >> 16);
+  buf[2] = (char) (uint8_t) (tag >>  8);
+  buf[3] = (char) (uint8_t) (tag >>  0);
+}
+
+
+/* hb_direction_t */
+
+const char direction_strings[][4] = {
+  "ltr",
+  "rtl",
+  "ttb",
+  "btt"
+};
+
+/**
+ * hb_direction_from_string:
+ * @str: (array length=len): 
+ * @len: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_direction_t
+hb_direction_from_string (const char *str, int len)
+{
+  if (unlikely (!str || !len || !*str))
+    return HB_DIRECTION_INVALID;
+
+  /* Lets match loosely: just match the first letter, such that
+   * all of "ltr", "left-to-right", etc work!
+   */
+  char c = TOLOWER (str[0]);
+  for (unsigned int i = 0; i < ARRAY_LENGTH (direction_strings); i++)
+    if (c == direction_strings[i][0])
+      return (hb_direction_t) (HB_DIRECTION_LTR + i);
+
+  return HB_DIRECTION_INVALID;
+}
+
+/**
+ * hb_direction_to_string:
+ * @direction: 
+ *
+ * 
+ *
+ * Return value: (transfer none): 
+ *
+ * Since: 1.0
+ **/
+const char *
+hb_direction_to_string (hb_direction_t direction)
+{
+  if (likely ((unsigned int) (direction - HB_DIRECTION_LTR)
+             < ARRAY_LENGTH (direction_strings)))
+    return direction_strings[direction - HB_DIRECTION_LTR];
+
+  return "invalid";
+}
+
+
+/* hb_language_t */
+
+struct hb_language_impl_t {
+  const char s[1];
+};
+
+static const char canon_map[256] = {
+   0,   0,   0,   0,   0,   0,   0,   0,    0,   0,   0,   0,   0,   0,   0,   0,
+   0,   0,   0,   0,   0,   0,   0,   0,    0,   0,   0,   0,   0,   0,   0,   0,
+   0,   0,   0,   0,   0,   0,   0,   0,    0,   0,   0,   0,   0,  '-',  0,   0,
+  '0', '1', '2', '3', '4', '5', '6', '7',  '8', '9',  0,   0,   0,   0,   0,   0,
+  '-', 'a', 'b', 'c', 'd', 'e', 'f', 'g',  'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
+  'p', 'q', 'r', 's', 't', 'u', 'v', 'w',  'x', 'y', 'z',  0,   0,   0,   0,  '-',
+   0,  'a', 'b', 'c', 'd', 'e', 'f', 'g',  'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
+  'p', 'q', 'r', 's', 't', 'u', 'v', 'w',  'x', 'y', 'z',  0,   0,   0,   0,   0
+};
+
+static hb_bool_t
+lang_equal (hb_language_t  v1,
+           const void    *v2)
+{
+  const unsigned char *p1 = (const unsigned char *) v1;
+  const unsigned char *p2 = (const unsigned char *) v2;
+
+  while (*p1 && *p1 == canon_map[*p2])
+    p1++, p2++;
+
+  return *p1 == canon_map[*p2];
+}
+
+#if 0
+static unsigned int
+lang_hash (const void *key)
+{
+  const unsigned char *p = key;
+  unsigned int h = 0;
+  while (canon_map[*p])
+    {
+      h = (h << 5) - h + canon_map[*p];
+      p++;
+    }
+
+  return h;
+}
+#endif
+
+
+struct hb_language_item_t {
+
+  struct hb_language_item_t *next;
+  hb_language_t lang;
+
+  inline bool operator == (const char *s) const {
+    return lang_equal (lang, s);
+  }
+
+  inline hb_language_item_t & operator = (const char *s) {
+    lang = (hb_language_t) strdup (s);
+    for (unsigned char *p = (unsigned char *) lang; *p; p++)
+      *p = canon_map[*p];
+
+    return *this;
+  }
+
+  void finish (void) { free ((void *) lang); }
+};
+
+
+/* Thread-safe lock-free language list */
+
+static hb_language_item_t *langs;
+
+#ifdef HB_USE_ATEXIT
+static inline
+void free_langs (void)
+{
+  while (langs) {
+    hb_language_item_t *next = langs->next;
+    langs->finish ();
+    free (langs);
+    langs = next;
+  }
+}
+#endif
+
+static hb_language_item_t *
+lang_find_or_insert (const char *key)
+{
+retry:
+  hb_language_item_t *first_lang = (hb_language_item_t *) hb_atomic_ptr_get (&langs);
+
+  for (hb_language_item_t *lang = first_lang; lang; lang = lang->next)
+    if (*lang == key)
+      return lang;
+
+  /* Not found; allocate one. */
+  hb_language_item_t *lang = (hb_language_item_t *) calloc (1, sizeof (hb_language_item_t));
+  if (unlikely (!lang))
+    return NULL;
+  lang->next = first_lang;
+  *lang = key;
+
+  if (!hb_atomic_ptr_cmpexch (&langs, first_lang, lang)) {
+    free (lang);
+    goto retry;
+  }
+
+#ifdef HB_USE_ATEXIT
+  if (!first_lang)
+    atexit (free_langs); /* First person registers atexit() callback. */
+#endif
+
+  return lang;
+}
+
+
+/**
+ * hb_language_from_string:
+ * @str: (array length=len): 
+ * @len: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_language_t
+hb_language_from_string (const char *str, int len)
+{
+  char strbuf[64];
+
+  if (!str || !len || !*str)
+    return HB_LANGUAGE_INVALID;
+
+  if (len >= 0)
+  {
+    /* NUL-terminate it. */
+    len = MIN (len, (int) sizeof (strbuf) - 1);
+    memcpy (strbuf, str, len);
+    strbuf[len] = '\0';
+    str = strbuf;
+  }
+
+  hb_language_item_t *item = lang_find_or_insert (str);
+
+  return likely (item) ? item->lang : HB_LANGUAGE_INVALID;
+}
+
+/**
+ * hb_language_to_string:
+ * @language: 
+ *
+ * 
+ *
+ * Return value: (transfer none): 
+ *
+ * Since: 1.0
+ **/
+const char *
+hb_language_to_string (hb_language_t language)
+{
+  /* This is actually NULL-safe! */
+  return language->s;
+}
+
+/**
+ * hb_language_get_default:
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_language_t
+hb_language_get_default (void)
+{
+  static hb_language_t default_language = HB_LANGUAGE_INVALID;
+
+  hb_language_t language = (hb_language_t) hb_atomic_ptr_get (&default_language);
+  if (unlikely (language == HB_LANGUAGE_INVALID)) {
+    language = hb_language_from_string (setlocale (LC_CTYPE, NULL), -1);
+    hb_atomic_ptr_cmpexch (&default_language, HB_LANGUAGE_INVALID, language);
+  }
+
+  return default_language;
+}
+
+
+/* hb_script_t */
+
+/**
+ * hb_script_from_iso15924_tag:
+ * @tag: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_script_t
+hb_script_from_iso15924_tag (hb_tag_t tag)
+{
+  if (unlikely (tag == HB_TAG_NONE))
+    return HB_SCRIPT_INVALID;
+
+  /* Be lenient, adjust case (one capital letter followed by three small letters) */
+  tag = (tag & 0xDFDFDFDFu) | 0x00202020u;
+
+  switch (tag) {
+
+    /* These graduated from the 'Q' private-area codes, but
+     * the old code is still aliased by Unicode, and the Qaai
+     * one in use by ICU. */
+    case HB_TAG('Q','a','a','i'): return HB_SCRIPT_INHERITED;
+    case HB_TAG('Q','a','a','c'): return HB_SCRIPT_COPTIC;
+
+    /* Script variants from http://unicode.org/iso15924/ */
+    case HB_TAG('C','y','r','s'): return HB_SCRIPT_CYRILLIC;
+    case HB_TAG('L','a','t','f'): return HB_SCRIPT_LATIN;
+    case HB_TAG('L','a','t','g'): return HB_SCRIPT_LATIN;
+    case HB_TAG('S','y','r','e'): return HB_SCRIPT_SYRIAC;
+    case HB_TAG('S','y','r','j'): return HB_SCRIPT_SYRIAC;
+    case HB_TAG('S','y','r','n'): return HB_SCRIPT_SYRIAC;
+  }
+
+  /* If it looks right, just use the tag as a script */
+  if (((uint32_t) tag & 0xE0E0E0E0u) == 0x40606060u)
+    return (hb_script_t) tag;
+
+  /* Otherwise, return unknown */
+  return HB_SCRIPT_UNKNOWN;
+}
+
+/**
+ * hb_script_from_string:
+ * @s: (array length=len): 
+ * @len: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_script_t
+hb_script_from_string (const char *s, int len)
+{
+  return hb_script_from_iso15924_tag (hb_tag_from_string (s, len));
+}
+
+/**
+ * hb_script_to_iso15924_tag:
+ * @script: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_tag_t
+hb_script_to_iso15924_tag (hb_script_t script)
+{
+  return (hb_tag_t) script;
+}
+
+/**
+ * hb_script_get_horizontal_direction:
+ * @script: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_direction_t
+hb_script_get_horizontal_direction (hb_script_t script)
+{
+  /* http://goo.gl/x9ilM */
+  switch ((hb_tag_t) script)
+  {
+    /* Unicode-1.1 additions */
+    case HB_SCRIPT_ARABIC:
+    case HB_SCRIPT_HEBREW:
+
+    /* Unicode-3.0 additions */
+    case HB_SCRIPT_SYRIAC:
+    case HB_SCRIPT_THAANA:
+
+    /* Unicode-4.0 additions */
+    case HB_SCRIPT_CYPRIOT:
+
+    /* Unicode-4.1 additions */
+    case HB_SCRIPT_KHAROSHTHI:
+
+    /* Unicode-5.0 additions */
+    case HB_SCRIPT_PHOENICIAN:
+    case HB_SCRIPT_NKO:
+
+    /* Unicode-5.1 additions */
+    case HB_SCRIPT_LYDIAN:
+
+    /* Unicode-5.2 additions */
+    case HB_SCRIPT_AVESTAN:
+    case HB_SCRIPT_IMPERIAL_ARAMAIC:
+    case HB_SCRIPT_INSCRIPTIONAL_PAHLAVI:
+    case HB_SCRIPT_INSCRIPTIONAL_PARTHIAN:
+    case HB_SCRIPT_OLD_SOUTH_ARABIAN:
+    case HB_SCRIPT_OLD_TURKIC:
+    case HB_SCRIPT_SAMARITAN:
+
+    /* Unicode-6.0 additions */
+    case HB_SCRIPT_MANDAIC:
+
+    /* Unicode-6.1 additions */
+    case HB_SCRIPT_MEROITIC_CURSIVE:
+    case HB_SCRIPT_MEROITIC_HIEROGLYPHS:
+
+    /* Unicode-7.0 additions */
+    case HB_SCRIPT_MANICHAEAN:
+    case HB_SCRIPT_MENDE_KIKAKUI:
+    case HB_SCRIPT_NABATAEAN:
+    case HB_SCRIPT_OLD_NORTH_ARABIAN:
+    case HB_SCRIPT_PALMYRENE:
+    case HB_SCRIPT_PSALTER_PAHLAVI:
+
+      return HB_DIRECTION_RTL;
+  }
+
+  return HB_DIRECTION_LTR;
+}
+
+
+/* hb_user_data_array_t */
+
+bool
+hb_user_data_array_t::set (hb_user_data_key_t *key,
+                          void *              data,
+                          hb_destroy_func_t   destroy,
+                          hb_bool_t           replace)
+{
+  if (!key)
+    return false;
+
+  if (replace) {
+    if (!data && !destroy) {
+      items.remove (key, lock);
+      return true;
+    }
+  }
+  hb_user_data_item_t item = {key, data, destroy};
+  bool ret = !!items.replace_or_insert (item, lock, replace);
+
+  return ret;
+}
+
+void *
+hb_user_data_array_t::get (hb_user_data_key_t *key)
+{
+  hb_user_data_item_t item = {NULL };
+
+  return items.find (key, &item, lock) ? item.data : NULL;
+}
+
+
+/* hb_version */
+
+/**
+ * hb_version:
+ * @major: (out): Library major version component.
+ * @minor: (out): Library minor version component.
+ * @micro: (out): Library micro version component.
+ *
+ * Returns library version as three integer components.
+ *
+ * Since: 1.0
+ **/
+void
+hb_version (unsigned int *major,
+           unsigned int *minor,
+           unsigned int *micro)
+{
+  *major = HB_VERSION_MAJOR;
+  *minor = HB_VERSION_MINOR;
+  *micro = HB_VERSION_MICRO;
+}
+
+/**
+ * hb_version_string:
+ *
+ * Returns library version as a string with three components.
+ *
+ * Return value: library version string.
+ *
+ * Since: 1.0
+ **/
+const char *
+hb_version_string (void)
+{
+  return HB_VERSION_STRING;
+}
+
+/**
+ * hb_version_atleast:
+ * @major: 
+ * @minor: 
+ * @micro: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_version_atleast (unsigned int major,
+                   unsigned int minor,
+                   unsigned int micro)
+{
+  return HB_VERSION_ATLEAST (major, minor, micro);
+}
diff --git a/src/hb-common.h b/src/hb-common.h
new file mode 100644 (file)
index 0000000..b6ce3f7
--- /dev/null
@@ -0,0 +1,344 @@
+/*
+ * Copyright © 2007,2008,2009  Red Hat, Inc.
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_H_IN
+#error "Include <hb.h> instead."
+#endif
+
+#ifndef HB_COMMON_H
+#define HB_COMMON_H
+
+#ifndef HB_BEGIN_DECLS
+# ifdef __cplusplus
+#  define HB_BEGIN_DECLS       extern "C" {
+#  define HB_END_DECLS         }
+# else /* !__cplusplus */
+#  define HB_BEGIN_DECLS
+#  define HB_END_DECLS
+# endif /* !__cplusplus */
+#endif
+
+#if !defined (HB_DONT_DEFINE_STDINT)
+
+#if defined (_SVR4) || defined (SVR4) || defined (__OpenBSD__) || \
+    defined (_sgi) || defined (__sun) || defined (sun) || \
+    defined (__digital__) || defined (__HP_cc)
+#  include <inttypes.h>
+#elif defined (_AIX)
+#  include <sys/inttypes.h>
+/* VS 2010 (_MSC_VER 1600) has stdint.h */
+#elif defined (_MSC_VER) && _MSC_VER < 1600
+typedef __int8 int8_t;
+typedef unsigned __int8 uint8_t;
+typedef __int16 int16_t;
+typedef unsigned __int16 uint16_t;
+typedef __int32 int32_t;
+typedef unsigned __int32 uint32_t;
+typedef __int64 int64_t;
+typedef unsigned __int64 uint64_t;
+#else
+#  include <stdint.h>
+#endif
+
+#endif
+
+HB_BEGIN_DECLS
+
+
+typedef int hb_bool_t;
+
+typedef uint32_t hb_codepoint_t;
+typedef int32_t hb_position_t;
+typedef uint32_t hb_mask_t;
+
+typedef union _hb_var_int_t {
+  uint32_t u32;
+  int32_t i32;
+  uint16_t u16[2];
+  int16_t i16[2];
+  uint8_t u8[4];
+  int8_t i8[4];
+} hb_var_int_t;
+
+
+/* hb_tag_t */
+
+typedef uint32_t hb_tag_t;
+
+#define HB_TAG(c1,c2,c3,c4) ((hb_tag_t)((((uint8_t)(c1))<<24)|(((uint8_t)(c2))<<16)|(((uint8_t)(c3))<<8)|((uint8_t)(c4))))
+#define HB_UNTAG(tag)   ((uint8_t)((tag)>>24)), ((uint8_t)((tag)>>16)), ((uint8_t)((tag)>>8)), ((uint8_t)(tag))
+
+#define HB_TAG_NONE HB_TAG(0,0,0,0)
+#define HB_TAG_MAX HB_TAG(0xff,0xff,0xff,0xff)
+#define HB_TAG_MAX_SIGNED HB_TAG(0x7f,0xff,0xff,0xff)
+
+/* len=-1 means str is NUL-terminated. */
+hb_tag_t
+hb_tag_from_string (const char *str, int len);
+
+/* buf should have 4 bytes. */
+void
+hb_tag_to_string (hb_tag_t tag, char *buf);
+
+
+/* hb_direction_t */
+
+typedef enum {
+  HB_DIRECTION_INVALID = 0,
+  HB_DIRECTION_LTR = 4,
+  HB_DIRECTION_RTL,
+  HB_DIRECTION_TTB,
+  HB_DIRECTION_BTT
+} hb_direction_t;
+
+/* len=-1 means str is NUL-terminated */
+hb_direction_t
+hb_direction_from_string (const char *str, int len);
+
+const char *
+hb_direction_to_string (hb_direction_t direction);
+
+#define HB_DIRECTION_IS_VALID(dir)     ((((unsigned int) (dir)) & ~3U) == 4)
+/* Direction must be valid for the following */
+#define HB_DIRECTION_IS_HORIZONTAL(dir)        ((((unsigned int) (dir)) & ~1U) == 4)
+#define HB_DIRECTION_IS_VERTICAL(dir)  ((((unsigned int) (dir)) & ~1U) == 6)
+#define HB_DIRECTION_IS_FORWARD(dir)   ((((unsigned int) (dir)) & ~2U) == 4)
+#define HB_DIRECTION_IS_BACKWARD(dir)  ((((unsigned int) (dir)) & ~2U) == 5)
+#define HB_DIRECTION_REVERSE(dir)      ((hb_direction_t) (((unsigned int) (dir)) ^ 1))
+
+
+/* hb_language_t */
+
+typedef const struct hb_language_impl_t *hb_language_t;
+
+/* len=-1 means str is NUL-terminated */
+hb_language_t
+hb_language_from_string (const char *str, int len);
+
+const char *
+hb_language_to_string (hb_language_t language);
+
+#define HB_LANGUAGE_INVALID ((hb_language_t) NULL)
+
+hb_language_t
+hb_language_get_default (void);
+
+
+/* hb_script_t */
+
+/* http://unicode.org/iso15924/ */
+/* http://goo.gl/x9ilM */
+/* Unicode Character Database property: Script (sc) */
+typedef enum
+{
+  /*1.1*/ HB_SCRIPT_COMMON                     = HB_TAG ('Z','y','y','y'),
+  /*1.1*/ HB_SCRIPT_INHERITED                  = HB_TAG ('Z','i','n','h'),
+  /*5.0*/ HB_SCRIPT_UNKNOWN                    = HB_TAG ('Z','z','z','z'),
+
+  /*1.1*/ HB_SCRIPT_ARABIC                     = HB_TAG ('A','r','a','b'),
+  /*1.1*/ HB_SCRIPT_ARMENIAN                   = HB_TAG ('A','r','m','n'),
+  /*1.1*/ HB_SCRIPT_BENGALI                    = HB_TAG ('B','e','n','g'),
+  /*1.1*/ HB_SCRIPT_CYRILLIC                   = HB_TAG ('C','y','r','l'),
+  /*1.1*/ HB_SCRIPT_DEVANAGARI                 = HB_TAG ('D','e','v','a'),
+  /*1.1*/ HB_SCRIPT_GEORGIAN                   = HB_TAG ('G','e','o','r'),
+  /*1.1*/ HB_SCRIPT_GREEK                      = HB_TAG ('G','r','e','k'),
+  /*1.1*/ HB_SCRIPT_GUJARATI                   = HB_TAG ('G','u','j','r'),
+  /*1.1*/ HB_SCRIPT_GURMUKHI                   = HB_TAG ('G','u','r','u'),
+  /*1.1*/ HB_SCRIPT_HANGUL                     = HB_TAG ('H','a','n','g'),
+  /*1.1*/ HB_SCRIPT_HAN                                = HB_TAG ('H','a','n','i'),
+  /*1.1*/ HB_SCRIPT_HEBREW                     = HB_TAG ('H','e','b','r'),
+  /*1.1*/ HB_SCRIPT_HIRAGANA                   = HB_TAG ('H','i','r','a'),
+  /*1.1*/ HB_SCRIPT_KANNADA                    = HB_TAG ('K','n','d','a'),
+  /*1.1*/ HB_SCRIPT_KATAKANA                   = HB_TAG ('K','a','n','a'),
+  /*1.1*/ HB_SCRIPT_LAO                                = HB_TAG ('L','a','o','o'),
+  /*1.1*/ HB_SCRIPT_LATIN                      = HB_TAG ('L','a','t','n'),
+  /*1.1*/ HB_SCRIPT_MALAYALAM                  = HB_TAG ('M','l','y','m'),
+  /*1.1*/ HB_SCRIPT_ORIYA                      = HB_TAG ('O','r','y','a'),
+  /*1.1*/ HB_SCRIPT_TAMIL                      = HB_TAG ('T','a','m','l'),
+  /*1.1*/ HB_SCRIPT_TELUGU                     = HB_TAG ('T','e','l','u'),
+  /*1.1*/ HB_SCRIPT_THAI                       = HB_TAG ('T','h','a','i'),
+
+  /*2.0*/ HB_SCRIPT_TIBETAN                    = HB_TAG ('T','i','b','t'),
+
+  /*3.0*/ HB_SCRIPT_BOPOMOFO                   = HB_TAG ('B','o','p','o'),
+  /*3.0*/ HB_SCRIPT_BRAILLE                    = HB_TAG ('B','r','a','i'),
+  /*3.0*/ HB_SCRIPT_CANADIAN_SYLLABICS         = HB_TAG ('C','a','n','s'),
+  /*3.0*/ HB_SCRIPT_CHEROKEE                   = HB_TAG ('C','h','e','r'),
+  /*3.0*/ HB_SCRIPT_ETHIOPIC                   = HB_TAG ('E','t','h','i'),
+  /*3.0*/ HB_SCRIPT_KHMER                      = HB_TAG ('K','h','m','r'),
+  /*3.0*/ HB_SCRIPT_MONGOLIAN                  = HB_TAG ('M','o','n','g'),
+  /*3.0*/ HB_SCRIPT_MYANMAR                    = HB_TAG ('M','y','m','r'),
+  /*3.0*/ HB_SCRIPT_OGHAM                      = HB_TAG ('O','g','a','m'),
+  /*3.0*/ HB_SCRIPT_RUNIC                      = HB_TAG ('R','u','n','r'),
+  /*3.0*/ HB_SCRIPT_SINHALA                    = HB_TAG ('S','i','n','h'),
+  /*3.0*/ HB_SCRIPT_SYRIAC                     = HB_TAG ('S','y','r','c'),
+  /*3.0*/ HB_SCRIPT_THAANA                     = HB_TAG ('T','h','a','a'),
+  /*3.0*/ HB_SCRIPT_YI                         = HB_TAG ('Y','i','i','i'),
+
+  /*3.1*/ HB_SCRIPT_DESERET                    = HB_TAG ('D','s','r','t'),
+  /*3.1*/ HB_SCRIPT_GOTHIC                     = HB_TAG ('G','o','t','h'),
+  /*3.1*/ HB_SCRIPT_OLD_ITALIC                 = HB_TAG ('I','t','a','l'),
+
+  /*3.2*/ HB_SCRIPT_BUHID                      = HB_TAG ('B','u','h','d'),
+  /*3.2*/ HB_SCRIPT_HANUNOO                    = HB_TAG ('H','a','n','o'),
+  /*3.2*/ HB_SCRIPT_TAGALOG                    = HB_TAG ('T','g','l','g'),
+  /*3.2*/ HB_SCRIPT_TAGBANWA                   = HB_TAG ('T','a','g','b'),
+
+  /*4.0*/ HB_SCRIPT_CYPRIOT                    = HB_TAG ('C','p','r','t'),
+  /*4.0*/ HB_SCRIPT_LIMBU                      = HB_TAG ('L','i','m','b'),
+  /*4.0*/ HB_SCRIPT_LINEAR_B                   = HB_TAG ('L','i','n','b'),
+  /*4.0*/ HB_SCRIPT_OSMANYA                    = HB_TAG ('O','s','m','a'),
+  /*4.0*/ HB_SCRIPT_SHAVIAN                    = HB_TAG ('S','h','a','w'),
+  /*4.0*/ HB_SCRIPT_TAI_LE                     = HB_TAG ('T','a','l','e'),
+  /*4.0*/ HB_SCRIPT_UGARITIC                   = HB_TAG ('U','g','a','r'),
+
+  /*4.1*/ HB_SCRIPT_BUGINESE                   = HB_TAG ('B','u','g','i'),
+  /*4.1*/ HB_SCRIPT_COPTIC                     = HB_TAG ('C','o','p','t'),
+  /*4.1*/ HB_SCRIPT_GLAGOLITIC                 = HB_TAG ('G','l','a','g'),
+  /*4.1*/ HB_SCRIPT_KHAROSHTHI                 = HB_TAG ('K','h','a','r'),
+  /*4.1*/ HB_SCRIPT_NEW_TAI_LUE                        = HB_TAG ('T','a','l','u'),
+  /*4.1*/ HB_SCRIPT_OLD_PERSIAN                        = HB_TAG ('X','p','e','o'),
+  /*4.1*/ HB_SCRIPT_SYLOTI_NAGRI               = HB_TAG ('S','y','l','o'),
+  /*4.1*/ HB_SCRIPT_TIFINAGH                   = HB_TAG ('T','f','n','g'),
+
+  /*5.0*/ HB_SCRIPT_BALINESE                   = HB_TAG ('B','a','l','i'),
+  /*5.0*/ HB_SCRIPT_CUNEIFORM                  = HB_TAG ('X','s','u','x'),
+  /*5.0*/ HB_SCRIPT_NKO                                = HB_TAG ('N','k','o','o'),
+  /*5.0*/ HB_SCRIPT_PHAGS_PA                   = HB_TAG ('P','h','a','g'),
+  /*5.0*/ HB_SCRIPT_PHOENICIAN                 = HB_TAG ('P','h','n','x'),
+
+  /*5.1*/ HB_SCRIPT_CARIAN                     = HB_TAG ('C','a','r','i'),
+  /*5.1*/ HB_SCRIPT_CHAM                       = HB_TAG ('C','h','a','m'),
+  /*5.1*/ HB_SCRIPT_KAYAH_LI                   = HB_TAG ('K','a','l','i'),
+  /*5.1*/ HB_SCRIPT_LEPCHA                     = HB_TAG ('L','e','p','c'),
+  /*5.1*/ HB_SCRIPT_LYCIAN                     = HB_TAG ('L','y','c','i'),
+  /*5.1*/ HB_SCRIPT_LYDIAN                     = HB_TAG ('L','y','d','i'),
+  /*5.1*/ HB_SCRIPT_OL_CHIKI                   = HB_TAG ('O','l','c','k'),
+  /*5.1*/ HB_SCRIPT_REJANG                     = HB_TAG ('R','j','n','g'),
+  /*5.1*/ HB_SCRIPT_SAURASHTRA                 = HB_TAG ('S','a','u','r'),
+  /*5.1*/ HB_SCRIPT_SUNDANESE                  = HB_TAG ('S','u','n','d'),
+  /*5.1*/ HB_SCRIPT_VAI                                = HB_TAG ('V','a','i','i'),
+
+  /*5.2*/ HB_SCRIPT_AVESTAN                    = HB_TAG ('A','v','s','t'),
+  /*5.2*/ HB_SCRIPT_BAMUM                      = HB_TAG ('B','a','m','u'),
+  /*5.2*/ HB_SCRIPT_EGYPTIAN_HIEROGLYPHS       = HB_TAG ('E','g','y','p'),
+  /*5.2*/ HB_SCRIPT_IMPERIAL_ARAMAIC           = HB_TAG ('A','r','m','i'),
+  /*5.2*/ HB_SCRIPT_INSCRIPTIONAL_PAHLAVI      = HB_TAG ('P','h','l','i'),
+  /*5.2*/ HB_SCRIPT_INSCRIPTIONAL_PARTHIAN     = HB_TAG ('P','r','t','i'),
+  /*5.2*/ HB_SCRIPT_JAVANESE                   = HB_TAG ('J','a','v','a'),
+  /*5.2*/ HB_SCRIPT_KAITHI                     = HB_TAG ('K','t','h','i'),
+  /*5.2*/ HB_SCRIPT_LISU                       = HB_TAG ('L','i','s','u'),
+  /*5.2*/ HB_SCRIPT_MEETEI_MAYEK               = HB_TAG ('M','t','e','i'),
+  /*5.2*/ HB_SCRIPT_OLD_SOUTH_ARABIAN          = HB_TAG ('S','a','r','b'),
+  /*5.2*/ HB_SCRIPT_OLD_TURKIC                 = HB_TAG ('O','r','k','h'),
+  /*5.2*/ HB_SCRIPT_SAMARITAN                  = HB_TAG ('S','a','m','r'),
+  /*5.2*/ HB_SCRIPT_TAI_THAM                   = HB_TAG ('L','a','n','a'),
+  /*5.2*/ HB_SCRIPT_TAI_VIET                   = HB_TAG ('T','a','v','t'),
+
+  /*6.0*/ HB_SCRIPT_BATAK                      = HB_TAG ('B','a','t','k'),
+  /*6.0*/ HB_SCRIPT_BRAHMI                     = HB_TAG ('B','r','a','h'),
+  /*6.0*/ HB_SCRIPT_MANDAIC                    = HB_TAG ('M','a','n','d'),
+
+  /*6.1*/ HB_SCRIPT_CHAKMA                     = HB_TAG ('C','a','k','m'),
+  /*6.1*/ HB_SCRIPT_MEROITIC_CURSIVE           = HB_TAG ('M','e','r','c'),
+  /*6.1*/ HB_SCRIPT_MEROITIC_HIEROGLYPHS       = HB_TAG ('M','e','r','o'),
+  /*6.1*/ HB_SCRIPT_MIAO                       = HB_TAG ('P','l','r','d'),
+  /*6.1*/ HB_SCRIPT_SHARADA                    = HB_TAG ('S','h','r','d'),
+  /*6.1*/ HB_SCRIPT_SORA_SOMPENG               = HB_TAG ('S','o','r','a'),
+  /*6.1*/ HB_SCRIPT_TAKRI                      = HB_TAG ('T','a','k','r'),
+
+  /*7.0*/ HB_SCRIPT_BASSA_VAH                  = HB_TAG ('B','a','s','s'),
+  /*7.0*/ HB_SCRIPT_CAUCASIAN_ALBANIAN         = HB_TAG ('A','g','h','b'),
+  /*7.0*/ HB_SCRIPT_DUPLOYAN                   = HB_TAG ('D','u','p','l'),
+  /*7.0*/ HB_SCRIPT_ELBASAN                    = HB_TAG ('E','l','b','a'),
+  /*7.0*/ HB_SCRIPT_GRANTHA                    = HB_TAG ('G','r','a','n'),
+  /*7.0*/ HB_SCRIPT_KHOJKI                     = HB_TAG ('K','h','o','j'),
+  /*7.0*/ HB_SCRIPT_KHUDAWADI                  = HB_TAG ('S','i','n','d'),
+  /*7.0*/ HB_SCRIPT_LINEAR_A                   = HB_TAG ('L','i','n','a'),
+  /*7.0*/ HB_SCRIPT_MAHAJANI                   = HB_TAG ('M','a','h','j'),
+  /*7.0*/ HB_SCRIPT_MANICHAEAN                 = HB_TAG ('M','a','n','i'),
+  /*7.0*/ HB_SCRIPT_MENDE_KIKAKUI              = HB_TAG ('M','e','n','d'),
+  /*7.0*/ HB_SCRIPT_MODI                       = HB_TAG ('M','o','d','i'),
+  /*7.0*/ HB_SCRIPT_MRO                                = HB_TAG ('M','r','o','o'),
+  /*7.0*/ HB_SCRIPT_NABATAEAN                  = HB_TAG ('N','b','a','t'),
+  /*7.0*/ HB_SCRIPT_OLD_NORTH_ARABIAN          = HB_TAG ('N','a','r','b'),
+  /*7.0*/ HB_SCRIPT_OLD_PERMIC                 = HB_TAG ('P','e','r','m'),
+  /*7.0*/ HB_SCRIPT_PAHAWH_HMONG               = HB_TAG ('H','m','n','g'),
+  /*7.0*/ HB_SCRIPT_PALMYRENE                  = HB_TAG ('P','a','l','m'),
+  /*7.0*/ HB_SCRIPT_PAU_CIN_HAU                        = HB_TAG ('P','a','u','c'),
+  /*7.0*/ HB_SCRIPT_PSALTER_PAHLAVI            = HB_TAG ('P','h','l','p'),
+  /*7.0*/ HB_SCRIPT_SIDDHAM                    = HB_TAG ('S','i','d','d'),
+  /*7.0*/ HB_SCRIPT_TIRHUTA                    = HB_TAG ('T','i','r','h'),
+  /*7.0*/ HB_SCRIPT_WARANG_CITI                        = HB_TAG ('W','a','r','a'),
+
+  /* No script set. */
+  HB_SCRIPT_INVALID                            = HB_TAG_NONE,
+
+  /* Dummy values to ensure any hb_tag_t value can be passed/stored as hb_script_t
+   * without risking undefined behavior.  Include both a signed and unsigned max,
+   * since technically enums are int, and indeed, hb_script_t ends up being signed.
+   * See this thread for technicalities:
+   *
+   *   http://lists.freedesktop.org/archives/harfbuzz/2014-March/004150.html
+   */
+  _HB_SCRIPT_MAX_VALUE                         = HB_TAG_MAX, /*< skip >*/
+  _HB_SCRIPT_MAX_VALUE_SIGNED                  = HB_TAG_MAX_SIGNED /*< skip >*/
+
+} hb_script_t;
+
+
+/* Script functions */
+
+hb_script_t
+hb_script_from_iso15924_tag (hb_tag_t tag);
+
+/* sugar for tag_from_string() then script_from_iso15924_tag */
+/* len=-1 means s is NUL-terminated */
+hb_script_t
+hb_script_from_string (const char *s, int len);
+
+hb_tag_t
+hb_script_to_iso15924_tag (hb_script_t script);
+
+hb_direction_t
+hb_script_get_horizontal_direction (hb_script_t script);
+
+
+/* User data */
+
+typedef struct hb_user_data_key_t {
+  /*< private >*/
+  char unused;
+} hb_user_data_key_t;
+
+typedef void (*hb_destroy_func_t) (void *user_data);
+
+
+HB_END_DECLS
+
+#endif /* HB_COMMON_H */
diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc
new file mode 100644 (file)
index 0000000..9097cce
--- /dev/null
@@ -0,0 +1,1155 @@
+/*
+ * Copyright © 2012,2013  Mozilla Foundation.
+ * Copyright © 2012,2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Mozilla Author(s): Jonathan Kew
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#define HB_SHAPER coretext
+#define hb_coretext_shaper_face_data_t CGFont
+#include "hb-shaper-impl-private.hh"
+
+#include "hb-coretext.h"
+
+
+#ifndef HB_DEBUG_CORETEXT
+#define HB_DEBUG_CORETEXT (HB_DEBUG+0)
+#endif
+
+
+static void
+release_table_data (void *user_data)
+{
+  CFDataRef cf_data = reinterpret_cast<CFDataRef> (user_data);
+  CFRelease(cf_data);
+}
+
+static hb_blob_t *
+reference_table  (hb_face_t *face HB_UNUSED, hb_tag_t tag, void *user_data)
+{
+  CGFontRef cg_font = reinterpret_cast<CGFontRef> (user_data);
+  CFDataRef cf_data = CGFontCopyTableForTag (cg_font, tag);
+  if (unlikely (!cf_data))
+    return NULL;
+
+  const char *data = reinterpret_cast<const char*> (CFDataGetBytePtr (cf_data));
+  const size_t length = CFDataGetLength (cf_data);
+  if (!data || !length)
+    return NULL;
+
+  return hb_blob_create (data, length, HB_MEMORY_MODE_READONLY,
+                        reinterpret_cast<void *> (const_cast<__CFData *> (cf_data)),
+                        release_table_data);
+}
+
+hb_face_t *
+hb_coretext_face_create (CGFontRef cg_font)
+{
+  return hb_face_create_for_tables (reference_table, CGFontRetain (cg_font), (hb_destroy_func_t) CGFontRelease);
+}
+
+
+HB_SHAPER_DATA_ENSURE_DECLARE(coretext, face)
+HB_SHAPER_DATA_ENSURE_DECLARE(coretext, font)
+
+
+/*
+ * shaper face data
+ */
+
+static void
+release_data (void *info, const void *data, size_t size)
+{
+  assert (hb_blob_get_length ((hb_blob_t *) info) == size &&
+          hb_blob_get_data ((hb_blob_t *) info, NULL) == data);
+
+  hb_blob_destroy ((hb_blob_t *) info);
+}
+
+hb_coretext_shaper_face_data_t *
+_hb_coretext_shaper_face_data_create (hb_face_t *face)
+{
+  hb_coretext_shaper_face_data_t *data = NULL;
+
+  if (face->destroy == (hb_destroy_func_t) CGFontRelease)
+  {
+    data = CGFontRetain ((CGFontRef) face->user_data);
+  }
+  else
+  {
+    hb_blob_t *blob = hb_face_reference_blob (face);
+    unsigned int blob_length;
+    const char *blob_data = hb_blob_get_data (blob, &blob_length);
+    if (unlikely (!blob_length))
+      DEBUG_MSG (CORETEXT, face, "Face has empty blob");
+
+    CGDataProviderRef provider = CGDataProviderCreateWithData (blob, blob_data, blob_length, &release_data);
+    if (likely (provider))
+    {
+      data = CGFontCreateWithDataProvider (provider);
+      CGDataProviderRelease (provider);
+    }
+  }
+
+  if (unlikely (!data)) {
+    DEBUG_MSG (CORETEXT, face, "Face CGFontCreateWithDataProvider() failed");
+  }
+
+  return data;
+}
+
+void
+_hb_coretext_shaper_face_data_destroy (hb_coretext_shaper_face_data_t *data)
+{
+  CFRelease (data);
+}
+
+CGFontRef
+hb_coretext_face_get_cg_font (hb_face_t *face)
+{
+  if (unlikely (!hb_coretext_shaper_face_data_ensure (face))) return NULL;
+  hb_coretext_shaper_face_data_t *face_data = HB_SHAPER_DATA_GET (face);
+  return face_data;
+}
+
+
+/*
+ * shaper font data
+ */
+
+struct hb_coretext_shaper_font_data_t {
+  CTFontRef ct_font;
+};
+
+hb_coretext_shaper_font_data_t *
+_hb_coretext_shaper_font_data_create (hb_font_t *font)
+{
+  if (unlikely (!hb_coretext_shaper_face_data_ensure (font->face))) return NULL;
+
+  hb_coretext_shaper_font_data_t *data = (hb_coretext_shaper_font_data_t *) calloc (1, sizeof (hb_coretext_shaper_font_data_t));
+  if (unlikely (!data))
+    return NULL;
+
+  hb_face_t *face = font->face;
+  hb_coretext_shaper_face_data_t *face_data = HB_SHAPER_DATA_GET (face);
+
+  data->ct_font = CTFontCreateWithGraphicsFont (face_data, font->y_scale, NULL, NULL);
+  if (unlikely (!data->ct_font)) {
+    DEBUG_MSG (CORETEXT, font, "Font CTFontCreateWithGraphicsFont() failed");
+    free (data);
+    return NULL;
+  }
+
+  return data;
+}
+
+void
+_hb_coretext_shaper_font_data_destroy (hb_coretext_shaper_font_data_t *data)
+{
+  CFRelease (data->ct_font);
+  free (data);
+}
+
+
+/*
+ * shaper shape_plan data
+ */
+
+struct hb_coretext_shaper_shape_plan_data_t {};
+
+hb_coretext_shaper_shape_plan_data_t *
+_hb_coretext_shaper_shape_plan_data_create (hb_shape_plan_t    *shape_plan HB_UNUSED,
+                                            const hb_feature_t *user_features HB_UNUSED,
+                                            unsigned int        num_user_features HB_UNUSED)
+{
+  return (hb_coretext_shaper_shape_plan_data_t *) HB_SHAPER_DATA_SUCCEEDED;
+}
+
+void
+_hb_coretext_shaper_shape_plan_data_destroy (hb_coretext_shaper_shape_plan_data_t *data HB_UNUSED)
+{
+}
+
+CTFontRef
+hb_coretext_font_get_ct_font (hb_font_t *font)
+{
+  if (unlikely (!hb_coretext_shaper_font_data_ensure (font))) return NULL;
+  hb_coretext_shaper_font_data_t *font_data = HB_SHAPER_DATA_GET (font);
+  return font_data->ct_font;
+}
+
+
+/*
+ * shaper
+ */
+
+struct feature_record_t {
+  unsigned int feature;
+  unsigned int setting;
+};
+
+struct active_feature_t {
+  feature_record_t rec;
+  unsigned int order;
+
+  static int cmp (const active_feature_t *a, const active_feature_t *b) {
+    return a->rec.feature < b->rec.feature ? -1 : a->rec.feature > b->rec.feature ? 1 :
+          a->order < b->order ? -1 : a->order > b->order ? 1 :
+          a->rec.setting < b->rec.setting ? -1 : a->rec.setting > b->rec.setting ? 1 :
+          0;
+  }
+  bool operator== (const active_feature_t *f) {
+    return cmp (this, f) == 0;
+  }
+};
+
+struct feature_event_t {
+  unsigned int index;
+  bool start;
+  active_feature_t feature;
+
+  static int cmp (const feature_event_t *a, const feature_event_t *b) {
+    return a->index < b->index ? -1 : a->index > b->index ? 1 :
+          a->start < b->start ? -1 : a->start > b->start ? 1 :
+          active_feature_t::cmp (&a->feature, &b->feature);
+  }
+};
+
+struct range_record_t {
+  CTFontRef font;
+  unsigned int index_first; /* == start */
+  unsigned int index_last;  /* == end - 1 */
+};
+
+
+/* The following enum members are added in OS X 10.8. */
+#define kAltHalfWidthTextSelector              6
+#define kAltProportionalTextSelector           5
+#define kAlternateHorizKanaOffSelector         1
+#define kAlternateHorizKanaOnSelector          0
+#define kAlternateKanaType                     34
+#define kAlternateVertKanaOffSelector          3
+#define kAlternateVertKanaOnSelector           2
+#define kCaseSensitiveLayoutOffSelector                1
+#define kCaseSensitiveLayoutOnSelector         0
+#define kCaseSensitiveLayoutType               33
+#define kCaseSensitiveSpacingOffSelector       3
+#define kCaseSensitiveSpacingOnSelector                2
+#define kContextualAlternatesOffSelector       1
+#define kContextualAlternatesOnSelector                0
+#define kContextualAlternatesType              36
+#define kContextualLigaturesOffSelector                19
+#define kContextualLigaturesOnSelector         18
+#define kContextualSwashAlternatesOffSelector  5
+#define kContextualSwashAlternatesOnSelector   4
+#define kDefaultLowerCaseSelector              0
+#define kDefaultUpperCaseSelector              0
+#define kHistoricalLigaturesOffSelector                21
+#define kHistoricalLigaturesOnSelector         20
+#define kHojoCharactersSelector                        12
+#define kJIS2004CharactersSelector             11
+#define kLowerCasePetiteCapsSelector           2
+#define kLowerCaseSmallCapsSelector            1
+#define kLowerCaseType                         37
+#define kMathematicalGreekOffSelector          11
+#define kMathematicalGreekOnSelector           10
+#define kNLCCharactersSelector                 13
+#define kQuarterWidthTextSelector              4
+#define kScientificInferiorsSelector           4
+#define kStylisticAltEightOffSelector          17
+#define kStylisticAltEightOnSelector           16
+#define kStylisticAltEighteenOffSelector       37
+#define kStylisticAltEighteenOnSelector                36
+#define kStylisticAltElevenOffSelector         23
+#define kStylisticAltElevenOnSelector          22
+#define kStylisticAltFifteenOffSelector                31
+#define kStylisticAltFifteenOnSelector         30
+#define kStylisticAltFiveOffSelector           11
+#define kStylisticAltFiveOnSelector            10
+#define kStylisticAltFourOffSelector           9
+#define kStylisticAltFourOnSelector            8
+#define kStylisticAltFourteenOffSelector       29
+#define kStylisticAltFourteenOnSelector                28
+#define kStylisticAltNineOffSelector           19
+#define kStylisticAltNineOnSelector            18
+#define kStylisticAltNineteenOffSelector       39
+#define kStylisticAltNineteenOnSelector                38
+#define kStylisticAltOneOffSelector            3
+#define kStylisticAltOneOnSelector             2
+#define kStylisticAltSevenOffSelector          15
+#define kStylisticAltSevenOnSelector           14
+#define kStylisticAltSeventeenOffSelector      35
+#define kStylisticAltSeventeenOnSelector       34
+#define kStylisticAltSixOffSelector            13
+#define kStylisticAltSixOnSelector             12
+#define kStylisticAltSixteenOffSelector                33
+#define kStylisticAltSixteenOnSelector         32
+#define kStylisticAltTenOffSelector            21
+#define kStylisticAltTenOnSelector             20
+#define kStylisticAltThirteenOffSelector       27
+#define kStylisticAltThirteenOnSelector                26
+#define kStylisticAltThreeOffSelector          7
+#define kStylisticAltThreeOnSelector           6
+#define kStylisticAltTwelveOffSelector         25
+#define kStylisticAltTwelveOnSelector          24
+#define kStylisticAltTwentyOffSelector         41
+#define kStylisticAltTwentyOnSelector          40
+#define kStylisticAltTwoOffSelector            5
+#define kStylisticAltTwoOnSelector             4
+#define kStylisticAlternativesType             35
+#define kSwashAlternatesOffSelector            3
+#define kSwashAlternatesOnSelector             2
+#define kThirdWidthTextSelector                        3
+#define kTraditionalNamesCharactersSelector    14
+#define kUpperCasePetiteCapsSelector           2
+#define kUpperCaseSmallCapsSelector            1
+#define kUpperCaseType                         38
+
+/* Table data courtesy of Apple. */
+struct feature_mapping_t {
+    FourCharCode otFeatureTag;
+    uint16_t aatFeatureType;
+    uint16_t selectorToEnable;
+    uint16_t selectorToDisable;
+} feature_mappings[] = {
+    { 'c2pc',   kUpperCaseType,             kUpperCasePetiteCapsSelector,           kDefaultUpperCaseSelector },
+    { 'c2sc',   kUpperCaseType,             kUpperCaseSmallCapsSelector,            kDefaultUpperCaseSelector },
+    { 'calt',   kContextualAlternatesType,  kContextualAlternatesOnSelector,        kContextualAlternatesOffSelector },
+    { 'case',   kCaseSensitiveLayoutType,   kCaseSensitiveLayoutOnSelector,         kCaseSensitiveLayoutOffSelector },
+    { 'clig',   kLigaturesType,             kContextualLigaturesOnSelector,         kContextualLigaturesOffSelector },
+    { 'cpsp',   kCaseSensitiveLayoutType,   kCaseSensitiveSpacingOnSelector,        kCaseSensitiveSpacingOffSelector },
+    { 'cswh',   kContextualAlternatesType,  kContextualSwashAlternatesOnSelector,   kContextualSwashAlternatesOffSelector },
+    { 'dlig',   kLigaturesType,             kRareLigaturesOnSelector,               kRareLigaturesOffSelector },
+    { 'expt',   kCharacterShapeType,        kExpertCharactersSelector,              16 },
+    { 'frac',   kFractionsType,             kDiagonalFractionsSelector,             kNoFractionsSelector },
+    { 'fwid',   kTextSpacingType,           kMonospacedTextSelector,                7 },
+    { 'halt',   kTextSpacingType,           kAltHalfWidthTextSelector,              7 },
+    { 'hist',   kLigaturesType,             kHistoricalLigaturesOnSelector,         kHistoricalLigaturesOffSelector },
+    { 'hkna',   kAlternateKanaType,         kAlternateHorizKanaOnSelector,          kAlternateHorizKanaOffSelector, },
+    { 'hlig',   kLigaturesType,             kHistoricalLigaturesOnSelector,         kHistoricalLigaturesOffSelector },
+    { 'hngl',   kTransliterationType,       kHanjaToHangulSelector,                 kNoTransliterationSelector },
+    { 'hojo',   kCharacterShapeType,        kHojoCharactersSelector,                16 },
+    { 'hwid',   kTextSpacingType,           kHalfWidthTextSelector,                 7 },
+    { 'ital',   kItalicCJKRomanType,        kCJKItalicRomanOnSelector,              kCJKItalicRomanOffSelector },
+    { 'jp04',   kCharacterShapeType,        kJIS2004CharactersSelector,             16 },
+    { 'jp78',   kCharacterShapeType,        kJIS1978CharactersSelector,             16 },
+    { 'jp83',   kCharacterShapeType,        kJIS1983CharactersSelector,             16 },
+    { 'jp90',   kCharacterShapeType,        kJIS1990CharactersSelector,             16 },
+    { 'liga',   kLigaturesType,             kCommonLigaturesOnSelector,             kCommonLigaturesOffSelector },
+    { 'lnum',   kNumberCaseType,            kUpperCaseNumbersSelector,              2 },
+    { 'mgrk',   kMathematicalExtrasType,    kMathematicalGreekOnSelector,           kMathematicalGreekOffSelector },
+    { 'nlck',   kCharacterShapeType,        kNLCCharactersSelector,                 16 },
+    { 'onum',   kNumberCaseType,            kLowerCaseNumbersSelector,              2 },
+    { 'ordn',   kVerticalPositionType,      kOrdinalsSelector,                      kNormalPositionSelector },
+    { 'palt',   kTextSpacingType,           kAltProportionalTextSelector,           7 },
+    { 'pcap',   kLowerCaseType,             kLowerCasePetiteCapsSelector,           kDefaultLowerCaseSelector },
+    { 'pkna',   kTextSpacingType,           kProportionalTextSelector,              7 },
+    { 'pnum',   kNumberSpacingType,         kProportionalNumbersSelector,           4 },
+    { 'pwid',   kTextSpacingType,           kProportionalTextSelector,              7 },
+    { 'qwid',   kTextSpacingType,           kQuarterWidthTextSelector,              7 },
+    { 'ruby',   kRubyKanaType,              kRubyKanaOnSelector,                    kRubyKanaOffSelector },
+    { 'sinf',   kVerticalPositionType,      kScientificInferiorsSelector,           kNormalPositionSelector },
+    { 'smcp',   kLowerCaseType,             kLowerCaseSmallCapsSelector,            kDefaultLowerCaseSelector },
+    { 'smpl',   kCharacterShapeType,        kSimplifiedCharactersSelector,          16 },
+    { 'ss01',   kStylisticAlternativesType, kStylisticAltOneOnSelector,             kStylisticAltOneOffSelector },
+    { 'ss02',   kStylisticAlternativesType, kStylisticAltTwoOnSelector,             kStylisticAltTwoOffSelector },
+    { 'ss03',   kStylisticAlternativesType, kStylisticAltThreeOnSelector,           kStylisticAltThreeOffSelector },
+    { 'ss04',   kStylisticAlternativesType, kStylisticAltFourOnSelector,            kStylisticAltFourOffSelector },
+    { 'ss05',   kStylisticAlternativesType, kStylisticAltFiveOnSelector,            kStylisticAltFiveOffSelector },
+    { 'ss06',   kStylisticAlternativesType, kStylisticAltSixOnSelector,             kStylisticAltSixOffSelector },
+    { 'ss07',   kStylisticAlternativesType, kStylisticAltSevenOnSelector,           kStylisticAltSevenOffSelector },
+    { 'ss08',   kStylisticAlternativesType, kStylisticAltEightOnSelector,           kStylisticAltEightOffSelector },
+    { 'ss09',   kStylisticAlternativesType, kStylisticAltNineOnSelector,            kStylisticAltNineOffSelector },
+    { 'ss10',   kStylisticAlternativesType, kStylisticAltTenOnSelector,             kStylisticAltTenOffSelector },
+    { 'ss11',   kStylisticAlternativesType, kStylisticAltElevenOnSelector,          kStylisticAltElevenOffSelector },
+    { 'ss12',   kStylisticAlternativesType, kStylisticAltTwelveOnSelector,          kStylisticAltTwelveOffSelector },
+    { 'ss13',   kStylisticAlternativesType, kStylisticAltThirteenOnSelector,        kStylisticAltThirteenOffSelector },
+    { 'ss14',   kStylisticAlternativesType, kStylisticAltFourteenOnSelector,        kStylisticAltFourteenOffSelector },
+    { 'ss15',   kStylisticAlternativesType, kStylisticAltFifteenOnSelector,         kStylisticAltFifteenOffSelector },
+    { 'ss16',   kStylisticAlternativesType, kStylisticAltSixteenOnSelector,         kStylisticAltSixteenOffSelector },
+    { 'ss17',   kStylisticAlternativesType, kStylisticAltSeventeenOnSelector,       kStylisticAltSeventeenOffSelector },
+    { 'ss18',   kStylisticAlternativesType, kStylisticAltEighteenOnSelector,        kStylisticAltEighteenOffSelector },
+    { 'ss19',   kStylisticAlternativesType, kStylisticAltNineteenOnSelector,        kStylisticAltNineteenOffSelector },
+    { 'ss20',   kStylisticAlternativesType, kStylisticAltTwentyOnSelector,          kStylisticAltTwentyOffSelector },
+    { 'subs',   kVerticalPositionType,      kInferiorsSelector,                     kNormalPositionSelector },
+    { 'sups',   kVerticalPositionType,      kSuperiorsSelector,                     kNormalPositionSelector },
+    { 'swsh',   kContextualAlternatesType,  kSwashAlternatesOnSelector,             kSwashAlternatesOffSelector },
+    { 'titl',   kStyleOptionsType,          kTitlingCapsSelector,                   kNoStyleOptionsSelector },
+    { 'tnam',   kCharacterShapeType,        kTraditionalNamesCharactersSelector,    16 },
+    { 'tnum',   kNumberSpacingType,         kMonospacedNumbersSelector,             4 },
+    { 'trad',   kCharacterShapeType,        kTraditionalCharactersSelector,         16 },
+    { 'twid',   kTextSpacingType,           kThirdWidthTextSelector,                7 },
+    { 'unic',   kLetterCaseType,            14,                                     15 },
+    { 'valt',   kTextSpacingType,           kAltProportionalTextSelector,           7 },
+    { 'vert',   kVerticalSubstitutionType,  kSubstituteVerticalFormsOnSelector,     kSubstituteVerticalFormsOffSelector },
+    { 'vhal',   kTextSpacingType,           kAltHalfWidthTextSelector,              7 },
+    { 'vkna',   kAlternateKanaType,         kAlternateVertKanaOnSelector,           kAlternateVertKanaOffSelector },
+    { 'vpal',   kTextSpacingType,           kAltProportionalTextSelector,           7 },
+    { 'vrt2',   kVerticalSubstitutionType,  kSubstituteVerticalFormsOnSelector,     kSubstituteVerticalFormsOffSelector },
+    { 'zero',   kTypographicExtrasType,     kSlashedZeroOnSelector,                 kSlashedZeroOffSelector },
+};
+
+static int
+_hb_feature_mapping_cmp (const void *key_, const void *entry_)
+{
+  unsigned int key = * (unsigned int *) key_;
+  const feature_mapping_t * entry = (const feature_mapping_t *) entry_;
+  return key < entry->otFeatureTag ? -1 :
+        key > entry->otFeatureTag ? 1 :
+        0;
+}
+
+hb_bool_t
+_hb_coretext_shape (hb_shape_plan_t    *shape_plan,
+                   hb_font_t          *font,
+                    hb_buffer_t        *buffer,
+                    const hb_feature_t *features,
+                    unsigned int        num_features)
+{
+  hb_face_t *face = font->face;
+  hb_coretext_shaper_face_data_t *face_data = HB_SHAPER_DATA_GET (face);
+  hb_coretext_shaper_font_data_t *font_data = HB_SHAPER_DATA_GET (font);
+
+  /* Attach marks to their bases, to match the 'ot' shaper.
+   * Adapted from hb-ot-shape:hb_form_clusters().
+   * Note that this only makes us be closer to the 'ot' shaper,
+   * but by no means the same.  For example, if there's
+   * B1 M1 B2 M2, and B1-B2 form a ligature, M2's cluster will
+   * continue pointing to B2 even though B2 was merged into B1's
+   * cluster... */
+  {
+    hb_unicode_funcs_t *unicode = buffer->unicode;
+    unsigned int count = buffer->len;
+    hb_glyph_info_t *info = buffer->info;
+    for (unsigned int i = 1; i < count; i++)
+      if (HB_UNICODE_GENERAL_CATEGORY_IS_MARK (unicode->general_category (info[i].codepoint)))
+       buffer->merge_clusters (i - 1, i + 1);
+  }
+
+  hb_auto_array_t<feature_record_t> feature_records;
+  hb_auto_array_t<range_record_t> range_records;
+
+  /*
+   * Set up features.
+   * (copied + modified from code from hb-uniscribe.cc)
+   */
+  if (num_features)
+  {
+    /* Sort features by start/end events. */
+    hb_auto_array_t<feature_event_t> feature_events;
+    for (unsigned int i = 0; i < num_features; i++)
+    {
+      const feature_mapping_t * mapping = (const feature_mapping_t *) bsearch (&features[i].tag,
+                                                                              feature_mappings,
+                                                                              ARRAY_LENGTH (feature_mappings),
+                                                                              sizeof (feature_mappings[0]),
+                                                                              _hb_feature_mapping_cmp);
+      if (!mapping)
+        continue;
+
+      active_feature_t feature;
+      feature.rec.feature = mapping->aatFeatureType;
+      feature.rec.setting = features[i].value ? mapping->selectorToEnable : mapping->selectorToDisable;
+      feature.order = i;
+
+      feature_event_t *event;
+
+      event = feature_events.push ();
+      if (unlikely (!event))
+       goto fail_features;
+      event->index = features[i].start;
+      event->start = true;
+      event->feature = feature;
+
+      event = feature_events.push ();
+      if (unlikely (!event))
+       goto fail_features;
+      event->index = features[i].end;
+      event->start = false;
+      event->feature = feature;
+    }
+    feature_events.qsort ();
+    /* Add a strategic final event. */
+    {
+      active_feature_t feature;
+      feature.rec.feature = HB_TAG_NONE;
+      feature.rec.setting = 0;
+      feature.order = num_features + 1;
+
+      feature_event_t *event = feature_events.push ();
+      if (unlikely (!event))
+       goto fail_features;
+      event->index = 0; /* This value does magic. */
+      event->start = false;
+      event->feature = feature;
+    }
+
+    /* Scan events and save features for each range. */
+    hb_auto_array_t<active_feature_t> active_features;
+    unsigned int last_index = 0;
+    for (unsigned int i = 0; i < feature_events.len; i++)
+    {
+      feature_event_t *event = &feature_events[i];
+
+      if (event->index != last_index)
+      {
+        /* Save a snapshot of active features and the range. */
+       range_record_t *range = range_records.push ();
+       if (unlikely (!range))
+         goto fail_features;
+
+       if (active_features.len)
+       {
+         CFMutableArrayRef features_array = CFArrayCreateMutable(kCFAllocatorDefault, 0, &kCFTypeArrayCallBacks);
+
+         /* TODO sort and resolve conflicting features? */
+         /* active_features.qsort (); */
+         for (unsigned int j = 0; j < active_features.len; j++)
+         {
+           CFStringRef keys[2] = {
+             kCTFontFeatureTypeIdentifierKey,
+             kCTFontFeatureSelectorIdentifierKey
+           };
+           CFNumberRef values[2] = {
+             CFNumberCreate (kCFAllocatorDefault, kCFNumberIntType, &active_features[j].rec.feature),
+             CFNumberCreate (kCFAllocatorDefault, kCFNumberIntType, &active_features[j].rec.setting)
+           };
+           CFDictionaryRef dict = CFDictionaryCreate (kCFAllocatorDefault,
+                                                      (const void **) keys,
+                                                      (const void **) values,
+                                                      2,
+                                                      &kCFTypeDictionaryKeyCallBacks,
+                                                      &kCFTypeDictionaryValueCallBacks);
+           CFRelease (values[0]);
+           CFRelease (values[1]);
+
+           CFArrayAppendValue (features_array, dict);
+           CFRelease (dict);
+
+         }
+
+         CFDictionaryRef attributes = CFDictionaryCreate (kCFAllocatorDefault,
+                                                          (const void **) &kCTFontFeatureSettingsAttribute,
+                                                          (const void **) &features_array,
+                                                          1,
+                                                          &kCFTypeDictionaryKeyCallBacks,
+                                                          &kCFTypeDictionaryValueCallBacks);
+         CFRelease (features_array);
+
+         CTFontDescriptorRef font_desc = CTFontDescriptorCreateWithAttributes (attributes);
+         CFRelease (attributes);
+
+         range->font = CTFontCreateCopyWithAttributes (font_data->ct_font, 0.0, NULL, font_desc);
+         CFRelease (font_desc);
+       }
+       else
+       {
+         range->font = NULL;
+       }
+
+       range->index_first = last_index;
+       range->index_last  = event->index - 1;
+
+       last_index = event->index;
+      }
+
+      if (event->start) {
+        active_feature_t *feature = active_features.push ();
+       if (unlikely (!feature))
+         goto fail_features;
+       *feature = event->feature;
+      } else {
+        active_feature_t *feature = active_features.find (&event->feature);
+       if (feature)
+         active_features.remove (feature - active_features.array);
+      }
+    }
+
+    if (!range_records.len) /* No active feature found. */
+      goto fail_features;
+  }
+  else
+  {
+  fail_features:
+    num_features = 0;
+  }
+
+  unsigned int scratch_size;
+  hb_buffer_t::scratch_buffer_t *scratch = buffer->get_scratch_buffer (&scratch_size);
+
+#define ALLOCATE_ARRAY(Type, name, len, on_no_room) \
+  Type *name = (Type *) scratch; \
+  { \
+    unsigned int _consumed = DIV_CEIL ((len) * sizeof (Type), sizeof (*scratch)); \
+    if (unlikely (_consumed > scratch_size)) \
+    { \
+      on_no_room; \
+      assert (0); \
+    } \
+    scratch += _consumed; \
+    scratch_size -= _consumed; \
+  }
+
+  ALLOCATE_ARRAY (UniChar, pchars, buffer->len * 2, /*nothing*/);
+  unsigned int chars_len = 0;
+  for (unsigned int i = 0; i < buffer->len; i++) {
+    hb_codepoint_t c = buffer->info[i].codepoint;
+    if (likely (c <= 0xFFFFu))
+      pchars[chars_len++] = c;
+    else if (unlikely (c > 0x10FFFFu))
+      pchars[chars_len++] = 0xFFFDu;
+    else {
+      pchars[chars_len++] = 0xD800u + ((c - 0x10000u) >> 10);
+      pchars[chars_len++] = 0xDC00u + ((c - 0x10000u) & ((1 << 10) - 1));
+    }
+  }
+
+  ALLOCATE_ARRAY (unsigned int, log_clusters, chars_len, /*nothing*/);
+  chars_len = 0;
+  for (unsigned int i = 0; i < buffer->len; i++)
+  {
+    hb_codepoint_t c = buffer->info[i].codepoint;
+    unsigned int cluster = buffer->info[i].cluster;
+    log_clusters[chars_len++] = cluster;
+    if (hb_in_range (c, 0x10000u, 0x10FFFFu))
+      log_clusters[chars_len++] = cluster; /* Surrogates. */
+  }
+
+#define FAIL(...) \
+  HB_STMT_START { \
+    DEBUG_MSG (CORETEXT, NULL, __VA_ARGS__); \
+    ret = false; \
+    goto fail; \
+  } HB_STMT_END;
+
+  bool ret = true;
+  CFStringRef string_ref = NULL;
+  CTLineRef line = NULL;
+
+  if (0)
+  {
+resize_and_retry:
+    DEBUG_MSG (CORETEXT, buffer, "Buffer resize");
+    /* string_ref uses the scratch-buffer for backing store, and line references
+     * string_ref (via attr_string).  We must release those before resizing buffer. */
+    assert (string_ref);
+    assert (line);
+    CFRelease (string_ref);
+    CFRelease (line);
+    string_ref = NULL;
+    line = NULL;
+
+    /* Get previous start-of-scratch-area, that we use later for readjusting
+     * our existing scratch arrays. */
+    unsigned int old_scratch_used;
+    hb_buffer_t::scratch_buffer_t *old_scratch;
+    old_scratch = buffer->get_scratch_buffer (&old_scratch_used);
+    old_scratch_used = scratch - old_scratch;
+
+    if (unlikely (!buffer->ensure (buffer->allocated * 2)))
+      FAIL ("Buffer resize failed");
+
+    /* Adjust scratch, pchars, and log_cluster arrays.  This is ugly, but really the
+     * cleanest way to do without completely restructuring the rest of this shaper. */
+    scratch = buffer->get_scratch_buffer (&scratch_size);
+    pchars = reinterpret_cast<UniChar *> (((char *) scratch + ((char *) pchars - (char *) old_scratch)));
+    log_clusters = reinterpret_cast<unsigned int *> (((char *) scratch + ((char *) log_clusters - (char *) old_scratch)));
+    scratch += old_scratch_used;
+    scratch_size -= old_scratch_used;
+  }
+retry:
+  {
+    string_ref = CFStringCreateWithCharactersNoCopy (NULL,
+                                                    pchars, chars_len,
+                                                    kCFAllocatorNull);
+    if (unlikely (!string_ref))
+      FAIL ("CFStringCreateWithCharactersNoCopy failed");
+
+    /* Create an attributed string, populate it, and create a line from it, then release attributed string. */
+    {
+      CFMutableAttributedStringRef attr_string = CFAttributedStringCreateMutable (kCFAllocatorDefault,
+                                                                                 chars_len);
+      if (unlikely (!attr_string))
+       FAIL ("CFAttributedStringCreateMutable failed");
+      CFAttributedStringReplaceString (attr_string, CFRangeMake (0, 0), string_ref);
+      if (HB_DIRECTION_IS_VERTICAL (buffer->props.direction))
+      {
+       CFAttributedStringSetAttribute (attr_string, CFRangeMake (0, chars_len),
+                                       kCTVerticalFormsAttributeName, kCFBooleanTrue);
+      }
+
+      if (buffer->props.language)
+      {
+/* What's the iOS equivalent of this check?
+ * The symbols was introduced in iOS 7.0.
+ * At any rate, our fallback is safe and works fine. */
+#if MAC_OS_X_VERSION_MIN_REQUIRED < 1090
+#  define kCTLanguageAttributeName CFSTR ("NSLanguage")
+#endif
+        CFStringRef lang = CFStringCreateWithCStringNoCopy (kCFAllocatorDefault,
+                                                           hb_language_to_string (buffer->props.language),
+                                                           kCFStringEncodingUTF8,
+                                                           kCFAllocatorNull);
+       if (unlikely (!lang))
+         FAIL ("CFStringCreateWithCStringNoCopy failed");
+       CFAttributedStringSetAttribute (attr_string, CFRangeMake (0, chars_len),
+                                       kCTLanguageAttributeName, lang);
+       CFRelease (lang);
+      }
+      CFAttributedStringSetAttribute (attr_string, CFRangeMake (0, chars_len),
+                                     kCTFontAttributeName, font_data->ct_font);
+
+      if (num_features)
+      {
+       unsigned int start = 0;
+       range_record_t *last_range = &range_records[0];
+       for (unsigned int k = 0; k < chars_len; k++)
+       {
+         range_record_t *range = last_range;
+         while (log_clusters[k] < range->index_first)
+           range--;
+         while (log_clusters[k] > range->index_last)
+           range++;
+         if (range != last_range)
+         {
+           if (last_range->font)
+             CFAttributedStringSetAttribute (attr_string, CFRangeMake (start, k - start),
+                                             kCTFontAttributeName, last_range->font);
+
+           start = k;
+         }
+
+         last_range = range;
+       }
+       if (start != chars_len && last_range->font)
+         CFAttributedStringSetAttribute (attr_string, CFRangeMake (start, chars_len - start),
+                                         kCTFontAttributeName, last_range->font);
+      }
+
+      int level = HB_DIRECTION_IS_FORWARD (buffer->props.direction) ? 0 : 1;
+      CFNumberRef level_number = CFNumberCreate (kCFAllocatorDefault, kCFNumberIntType, &level);
+      CFDictionaryRef options = CFDictionaryCreate (kCFAllocatorDefault,
+                                                   (const void **) &kCTTypesetterOptionForcedEmbeddingLevel,
+                                                   (const void **) &level_number,
+                                                   1,
+                                                   &kCFTypeDictionaryKeyCallBacks,
+                                                   &kCFTypeDictionaryValueCallBacks);
+      if (unlikely (!options))
+        FAIL ("CFDictionaryCreate failed");
+
+      CTTypesetterRef typesetter = CTTypesetterCreateWithAttributedStringAndOptions (attr_string, options);
+      CFRelease (options);
+      CFRelease (attr_string);
+      if (unlikely (!typesetter))
+       FAIL ("CTTypesetterCreateWithAttributedStringAndOptions failed");
+
+      line = CTTypesetterCreateLine (typesetter, CFRangeMake(0, 0));
+      CFRelease (typesetter);
+      if (unlikely (!line))
+       FAIL ("CTTypesetterCreateLine failed");
+    }
+
+    CFArrayRef glyph_runs = CTLineGetGlyphRuns (line);
+    unsigned int num_runs = CFArrayGetCount (glyph_runs);
+    DEBUG_MSG (CORETEXT, NULL, "Num runs: %d", num_runs);
+
+    buffer->len = 0;
+    uint32_t status_and = ~0, status_or = 0;
+
+    const CFRange range_all = CFRangeMake (0, 0);
+
+    for (unsigned int i = 0; i < num_runs; i++)
+    {
+      CTRunRef run = static_cast<CTRunRef>(CFArrayGetValueAtIndex (glyph_runs, i));
+      CTRunStatus run_status = CTRunGetStatus (run);
+      status_or  |= run_status;
+      status_and &= run_status;
+      DEBUG_MSG (CORETEXT, run, "CTRunStatus: %x", run_status);
+
+      /* CoreText does automatic font fallback (AKA "cascading") for  characters
+       * not supported by the requested font, and provides no way to turn it off,
+       * so we must detect if the returned run uses a font other than the requested
+       * one and fill in the buffer with .notdef glyphs instead of random glyph
+       * indices from a different font.
+       */
+      CFDictionaryRef attributes = CTRunGetAttributes (run);
+      CTFontRef run_ct_font = static_cast<CTFontRef>(CFDictionaryGetValue (attributes, kCTFontAttributeName));
+      if (!CFEqual (run_ct_font, font_data->ct_font))
+      {
+       /* The run doesn't use our main font instance.  We have to figure out
+        * whether font fallback happened, or this is just CoreText giving us
+        * another CTFont using the same underlying CGFont.  CoreText seems
+        * to do that in a variety of situations, one of which being vertical
+        * text, but also perhaps for caching reasons.
+        *
+        * First, see if it uses any of our subfonts created to set font features...
+        *
+        * Next, compare the CGFont to the one we used to create our fonts.
+        * Even this doesn't work all the time.
+        *
+        * Finally, we compare PS names, which I don't think are unique...
+        *
+        * Looks like if we really want to be sure here we have to modify the
+        * font to change the name table, similar to what we do in the uniscribe
+        * backend.
+        *
+        * However, even that wouldn't work if we were passed in the CGFont to
+        * begin with.
+        *
+        * Webkit uses a slightly different approach: it installs LastResort
+        * as fallback chain, and then checks PS name of used font against
+        * LastResort.  That one is safe for any font except for LastResort,
+        * as opposed to ours, which can fail if we are using any uninstalled
+        * font that has the same name as an installed font.
+        *
+        * See: http://github.com/behdad/harfbuzz/pull/36
+        */
+       bool matched = false;
+       for (unsigned int i = 0; i < range_records.len; i++)
+         if (range_records[i].font && CFEqual (run_ct_font, range_records[i].font))
+         {
+           matched = true;
+           break;
+         }
+       if (!matched)
+       {
+         CGFontRef run_cg_font = CTFontCopyGraphicsFont (run_ct_font, 0);
+         if (run_cg_font)
+         {
+           matched = CFEqual (run_cg_font, face_data);
+           CFRelease (run_cg_font);
+         }
+       }
+       if (!matched)
+       {
+         CFStringRef font_ps_name = CTFontCopyName (font_data->ct_font, kCTFontPostScriptNameKey);
+         CFStringRef run_ps_name = CTFontCopyName (run_ct_font, kCTFontPostScriptNameKey);
+         CFComparisonResult result = CFStringCompare (run_ps_name, font_ps_name, 0);
+         CFRelease (run_ps_name);
+         CFRelease (font_ps_name);
+         if (result == kCFCompareEqualTo)
+           matched = true;
+       }
+       if (!matched)
+       {
+         CFRange range = CTRunGetStringRange (run);
+          DEBUG_MSG (CORETEXT, run, "Run used fallback font: %ld..%ld",
+                    range.location, range.location + range.length);
+         if (!buffer->ensure_inplace (buffer->len + range.length))
+           goto resize_and_retry;
+         hb_glyph_info_t *info = buffer->info + buffer->len;
+
+         CGGlyph notdef = 0;
+         double advance = CTFontGetAdvancesForGlyphs (font_data->ct_font, kCTFontHorizontalOrientation, &notdef, NULL, 1);
+
+         unsigned int old_len = buffer->len;
+         for (CFIndex j = range.location; j < range.location + range.length; j++)
+         {
+             UniChar ch = CFStringGetCharacterAtIndex (string_ref, j);
+             if (hb_in_range<UniChar> (ch, 0xDC00u, 0xDFFFu) && range.location < j)
+             {
+               ch = CFStringGetCharacterAtIndex (string_ref, j - 1);
+               if (hb_in_range<UniChar> (ch, 0xD800u, 0xDBFFu))
+                 /* This is the second of a surrogate pair.  Don't need .notdef
+                  * for this one. */
+                 continue;
+             }
+
+             info->codepoint = notdef;
+             info->cluster = log_clusters[j];
+
+             info->mask = advance;
+             info->var1.u32 = 0;
+             info->var2.u32 = 0;
+
+             info++;
+             buffer->len++;
+         }
+         if (HB_DIRECTION_IS_BACKWARD (buffer->props.direction))
+           buffer->reverse_range (old_len, buffer->len);
+         continue;
+       }
+      }
+
+      unsigned int num_glyphs = CTRunGetGlyphCount (run);
+      if (num_glyphs == 0)
+       continue;
+
+      if (!buffer->ensure_inplace (buffer->len + num_glyphs))
+       goto resize_and_retry;
+
+      hb_glyph_info_t *run_info = buffer->info + buffer->len;
+
+      /* Testing used to indicate that CTRunGetGlyphsPtr, etc (almost?) always
+       * succeed, and so copying data to our own buffer will be rare.  Reports
+       * have it that this changed in OS X 10.10 Yosemite, and NULL is returned
+       * frequently.  At any rate, we can test that codepath by setting USE_PTR
+       * to false. */
+
+#define USE_PTR true
+
+#define SCRATCH_SAVE() \
+  unsigned int scratch_size_saved = scratch_size; \
+  hb_buffer_t::scratch_buffer_t *scratch_saved = scratch
+
+#define SCRATCH_RESTORE() \
+  scratch_size = scratch_size_saved; \
+  scratch = scratch_saved;
+
+      {
+        SCRATCH_SAVE();
+       const CGGlyph* glyphs = USE_PTR ? CTRunGetGlyphsPtr (run) : NULL;
+       if (!glyphs) {
+         ALLOCATE_ARRAY (CGGlyph, glyph_buf, num_glyphs, goto resize_and_retry);
+         CTRunGetGlyphs (run, range_all, glyph_buf);
+         glyphs = glyph_buf;
+       }
+       const CFIndex* string_indices = USE_PTR ? CTRunGetStringIndicesPtr (run) : NULL;
+       if (!string_indices) {
+         ALLOCATE_ARRAY (CFIndex, index_buf, num_glyphs, goto resize_and_retry);
+         CTRunGetStringIndices (run, range_all, index_buf);
+         string_indices = index_buf;
+       }
+       hb_glyph_info_t *info = run_info;
+       for (unsigned int j = 0; j < num_glyphs; j++)
+       {
+         info->codepoint = glyphs[j];
+         info->cluster = log_clusters[string_indices[j]];
+         info++;
+       }
+       SCRATCH_RESTORE();
+      }
+      {
+        SCRATCH_SAVE();
+       const CGPoint* positions = USE_PTR ? CTRunGetPositionsPtr (run) : NULL;
+       if (!positions) {
+         ALLOCATE_ARRAY (CGPoint, position_buf, num_glyphs, goto resize_and_retry);
+         CTRunGetPositions (run, range_all, position_buf);
+         positions = position_buf;
+       }
+       double run_advance = CTRunGetTypographicBounds (run, range_all, NULL, NULL, NULL);
+       DEBUG_MSG (CORETEXT, run, "Run advance: %g", run_advance);
+       hb_glyph_info_t *info = run_info;
+       if (HB_DIRECTION_IS_HORIZONTAL (buffer->props.direction))
+       {
+         for (unsigned int j = 0; j < num_glyphs; j++)
+         {
+           double advance = (j + 1 < num_glyphs ? positions[j + 1].x : positions[0].x + run_advance) - positions[j].x;
+           info->mask = advance;
+           info->var1.u32 = positions[0].x; /* Yes, zero. */
+           info->var2.u32 = positions[j].y;
+           info++;
+         }
+       }
+       else
+       {
+         run_advance = -run_advance;
+         for (unsigned int j = 0; j < num_glyphs; j++)
+         {
+           double advance = (j + 1 < num_glyphs ? positions[j + 1].y : positions[0].y + run_advance) - positions[j].y;
+           info->mask = advance;
+           info->var1.u32 = positions[j].x;
+           info->var2.u32 = positions[0].y; /* Yes, zero. */
+           info++;
+         }
+       }
+       SCRATCH_RESTORE();
+      }
+#undef SCRATCH_RESTORE
+#undef SCRATCH_SAVE
+#undef USE_PTR
+#undef ALLOCATE_ARRAY
+
+      buffer->len += num_glyphs;
+    }
+
+    /* Make sure all runs had the expected direction. */
+    bool backward = HB_DIRECTION_IS_BACKWARD (buffer->props.direction);
+    assert (bool (status_and & kCTRunStatusRightToLeft) == backward);
+    assert (bool (status_or  & kCTRunStatusRightToLeft) == backward);
+
+    buffer->clear_positions ();
+
+    unsigned int count = buffer->len;
+    hb_glyph_info_t *info = buffer->info;
+    hb_glyph_position_t *pos = buffer->pos;
+    if (HB_DIRECTION_IS_HORIZONTAL (buffer->props.direction))
+      for (unsigned int i = 0; i < count; i++)
+      {
+       pos->x_advance = info->mask;
+       pos->x_offset = info->var1.u32;
+       pos->y_offset = info->var2.u32;
+       info++, pos++;
+      }
+    else
+      for (unsigned int i = 0; i < count; i++)
+      {
+       pos->y_advance = info->mask;
+       pos->x_offset = info->var1.u32;
+       pos->y_offset = info->var2.u32;
+       info++, pos++;
+      }
+
+    /* Fix up clusters so that we never return out-of-order indices;
+     * if core text has reordered glyphs, we'll merge them to the
+     * beginning of the reordered cluster.  CoreText is nice enough
+     * to tell us whenever it has produced nonmonotonic results...
+     * Note that we assume the input clusters were nonmonotonic to
+     * begin with.
+     *
+     * This does *not* mean we'll form the same clusters as Uniscribe
+     * or the native OT backend, only that the cluster indices will be
+     * monotonic in the output buffer. */
+    if (count > 1 && (status_or & kCTRunStatusNonMonotonic))
+    {
+      hb_glyph_info_t *info = buffer->info;
+      if (HB_DIRECTION_IS_FORWARD (buffer->props.direction))
+      {
+       unsigned int cluster = info[count - 1].cluster;
+       for (unsigned int i = count - 1; i > 0; i--)
+       {
+         cluster = MIN (cluster, info[i - 1].cluster);
+         info[i - 1].cluster = cluster;
+       }
+      }
+      else
+      {
+       unsigned int cluster = info[0].cluster;
+       for (unsigned int i = 1; i < count; i++)
+       {
+         cluster = MIN (cluster, info[i].cluster);
+         info[i].cluster = cluster;
+       }
+      }
+    }
+  }
+
+#undef FAIL
+
+fail:
+  if (string_ref)
+    CFRelease (string_ref);
+  if (line)
+    CFRelease (line);
+
+  for (unsigned int i = 0; i < range_records.len; i++)
+    if (range_records[i].font)
+      CFRelease (range_records[i].font);
+
+  return ret;
+}
+
+
+/*
+ * AAT shaper
+ */
+
+HB_SHAPER_DATA_ENSURE_DECLARE(coretext_aat, face)
+HB_SHAPER_DATA_ENSURE_DECLARE(coretext_aat, font)
+
+
+/*
+ * shaper face data
+ */
+
+struct hb_coretext_aat_shaper_face_data_t {};
+
+hb_coretext_aat_shaper_face_data_t *
+_hb_coretext_aat_shaper_face_data_create (hb_face_t *face)
+{
+  hb_blob_t *mort_blob = face->reference_table (HB_CORETEXT_TAG_MORT);
+  /* Umm, we just reference the table to check whether it exists.
+   * Maybe add better API for this? */
+  if (!hb_blob_get_length (mort_blob))
+  {
+    hb_blob_destroy (mort_blob);
+    mort_blob = face->reference_table (HB_CORETEXT_TAG_MORX);
+    if (!hb_blob_get_length (mort_blob))
+    {
+      hb_blob_destroy (mort_blob);
+      return NULL;
+    }
+  }
+  hb_blob_destroy (mort_blob);
+
+  return hb_coretext_shaper_face_data_ensure (face) ? (hb_coretext_aat_shaper_face_data_t *) HB_SHAPER_DATA_SUCCEEDED : NULL;
+}
+
+void
+_hb_coretext_aat_shaper_face_data_destroy (hb_coretext_aat_shaper_face_data_t *data HB_UNUSED)
+{
+}
+
+
+/*
+ * shaper font data
+ */
+
+struct hb_coretext_aat_shaper_font_data_t {};
+
+hb_coretext_aat_shaper_font_data_t *
+_hb_coretext_aat_shaper_font_data_create (hb_font_t *font)
+{
+  return hb_coretext_shaper_font_data_ensure (font) ? (hb_coretext_aat_shaper_font_data_t *) HB_SHAPER_DATA_SUCCEEDED : NULL;
+}
+
+void
+_hb_coretext_aat_shaper_font_data_destroy (hb_coretext_aat_shaper_font_data_t *data HB_UNUSED)
+{
+}
+
+
+/*
+ * shaper shape_plan data
+ */
+
+struct hb_coretext_aat_shaper_shape_plan_data_t {};
+
+hb_coretext_aat_shaper_shape_plan_data_t *
+_hb_coretext_aat_shaper_shape_plan_data_create (hb_shape_plan_t    *shape_plan HB_UNUSED,
+                                            const hb_feature_t *user_features HB_UNUSED,
+                                            unsigned int        num_user_features HB_UNUSED)
+{
+  return (hb_coretext_aat_shaper_shape_plan_data_t *) HB_SHAPER_DATA_SUCCEEDED;
+}
+
+void
+_hb_coretext_aat_shaper_shape_plan_data_destroy (hb_coretext_aat_shaper_shape_plan_data_t *data HB_UNUSED)
+{
+}
+
+
+/*
+ * shaper
+ */
+
+hb_bool_t
+_hb_coretext_aat_shape (hb_shape_plan_t    *shape_plan,
+                       hb_font_t          *font,
+                       hb_buffer_t        *buffer,
+                       const hb_feature_t *features,
+                       unsigned int        num_features)
+{
+  return _hb_coretext_shape (shape_plan, font, buffer, features, num_features);
+}
diff --git a/src/hb-coretext.h b/src/hb-coretext.h
new file mode 100644 (file)
index 0000000..25267bc
--- /dev/null
@@ -0,0 +1,60 @@
+/*
+ * Copyright © 2012  Mozilla Foundation.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Mozilla Author(s): Jonathan Kew
+ */
+
+#ifndef HB_CORETEXT_H
+#define HB_CORETEXT_H
+
+#include "hb.h"
+
+#include <TargetConditionals.h>
+#if TARGET_OS_IPHONE
+#  include <CoreText/CoreText.h>
+#  include <CoreGraphics/CoreGraphics.h>
+#else
+#  include <ApplicationServices/ApplicationServices.h>
+#endif
+
+HB_BEGIN_DECLS
+
+
+#define HB_CORETEXT_TAG_MORT HB_TAG('m','o','r','t')
+#define HB_CORETEXT_TAG_MORX HB_TAG('m','o','r','x')
+
+
+hb_face_t *
+hb_coretext_face_create (CGFontRef cg_font);
+
+
+CGFontRef
+hb_coretext_face_get_cg_font (hb_face_t *face);
+
+CTFontRef
+hb_coretext_font_get_ct_font (hb_font_t *font);
+
+
+HB_END_DECLS
+
+#endif /* HB_CORETEXT_H */
diff --git a/src/hb-deprecated.h b/src/hb-deprecated.h
new file mode 100644 (file)
index 0000000..30ae4b1
--- /dev/null
@@ -0,0 +1,51 @@
+/*
+ * Copyright © 2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_H_IN
+#error "Include <hb.h> instead."
+#endif
+
+#ifndef HB_DEPRECATED_H
+#define HB_DEPRECATED_H
+
+#include "hb-common.h"
+#include "hb-unicode.h"
+#include "hb-font.h"
+
+HB_BEGIN_DECLS
+
+#ifndef HB_DISABLE_DEPRECATED
+
+#define HB_SCRIPT_CANADIAN_ABORIGINAL          HB_SCRIPT_CANADIAN_SYLLABICS
+
+#define HB_BUFFER_FLAGS_DEFAULT                        HB_BUFFER_FLAG_DEFAULT
+#define HB_BUFFER_SERIALIZE_FLAGS_DEFAULT      HB_BUFFER_SERIALIZE_FLAG_DEFAULT
+
+#endif
+
+HB_END_DECLS
+
+#endif /* HB_DEPRECATED_H */
diff --git a/src/hb-face-private.hh b/src/hb-face-private.hh
new file mode 100644 (file)
index 0000000..6520d3d
--- /dev/null
@@ -0,0 +1,107 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_FACE_PRIVATE_HH
+#define HB_FACE_PRIVATE_HH
+
+#include "hb-private.hh"
+
+#include "hb-object-private.hh"
+#include "hb-shaper-private.hh"
+#include "hb-shape-plan-private.hh"
+
+
+/*
+ * hb_face_t
+ */
+
+struct hb_face_t {
+  hb_object_header_t header;
+  ASSERT_POD ();
+
+  hb_bool_t immutable;
+
+  hb_reference_table_func_t  reference_table_func;
+  void                      *user_data;
+  hb_destroy_func_t          destroy;
+
+  unsigned int index;
+  mutable unsigned int upem;
+  mutable unsigned int num_glyphs;
+
+  struct hb_shaper_data_t shaper_data;
+
+  struct plan_node_t {
+    hb_shape_plan_t *shape_plan;
+    plan_node_t *next;
+  } *shape_plans;
+
+
+  inline hb_blob_t *reference_table (hb_tag_t tag) const
+  {
+    hb_blob_t *blob;
+
+    if (unlikely (!this || !reference_table_func))
+      return hb_blob_get_empty ();
+
+    blob = reference_table_func (/*XXX*/const_cast<hb_face_t *> (this), tag, user_data);
+    if (unlikely (!blob))
+      return hb_blob_get_empty ();
+
+    return blob;
+  }
+
+  inline HB_PURE_FUNC unsigned int get_upem (void) const
+  {
+    if (unlikely (!upem))
+      load_upem ();
+    return upem;
+  }
+
+  inline unsigned int get_num_glyphs (void) const
+  {
+    if (unlikely (num_glyphs == (unsigned int) -1))
+      load_num_glyphs ();
+    return num_glyphs;
+  }
+
+  private:
+  HB_INTERNAL void load_upem (void) const;
+  HB_INTERNAL void load_num_glyphs (void) const;
+};
+
+extern HB_INTERNAL const hb_face_t _hb_face_nil;
+
+#define HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS
+#define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_PROTOTYPE(shaper, face);
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+#undef HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS
+
+
+#endif /* HB_FACE_PRIVATE_HH */
diff --git a/src/hb-face.cc b/src/hb-face.cc
new file mode 100644 (file)
index 0000000..9348af7
--- /dev/null
@@ -0,0 +1,481 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-private.hh"
+
+#include "hb-ot-layout-private.hh"
+
+#include "hb-font-private.hh"
+#include "hb-open-file-private.hh"
+#include "hb-ot-head-table.hh"
+#include "hb-ot-maxp-table.hh"
+
+#include "hb-cache-private.hh"
+
+#include <string.h>
+
+
+/*
+ * hb_face_t
+ */
+
+const hb_face_t _hb_face_nil = {
+  HB_OBJECT_HEADER_STATIC,
+
+  true, /* immutable */
+
+  NULL, /* reference_table_func */
+  NULL, /* user_data */
+  NULL, /* destroy */
+
+  0,    /* index */
+  1000, /* upem */
+  0,    /* num_glyphs */
+
+  {
+#define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_INVALID,
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+  },
+
+  NULL, /* shape_plans */
+};
+
+
+/**
+ * hb_face_create_for_tables:
+ * @reference_table_func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data: 
+ * @destroy: 
+ *
+ * 
+ *
+ * Return value: (transfer full)
+ *
+ * Since: 1.0
+ **/
+hb_face_t *
+hb_face_create_for_tables (hb_reference_table_func_t  reference_table_func,
+                          void                      *user_data,
+                          hb_destroy_func_t          destroy)
+{
+  hb_face_t *face;
+
+  if (!reference_table_func || !(face = hb_object_create<hb_face_t> ())) {
+    if (destroy)
+      destroy (user_data);
+    return hb_face_get_empty ();
+  }
+
+  face->reference_table_func = reference_table_func;
+  face->user_data = user_data;
+  face->destroy = destroy;
+
+  face->upem = 0;
+  face->num_glyphs = (unsigned int) -1;
+
+  return face;
+}
+
+
+typedef struct hb_face_for_data_closure_t {
+  hb_blob_t *blob;
+  unsigned int  index;
+} hb_face_for_data_closure_t;
+
+static hb_face_for_data_closure_t *
+_hb_face_for_data_closure_create (hb_blob_t *blob, unsigned int index)
+{
+  hb_face_for_data_closure_t *closure;
+
+  closure = (hb_face_for_data_closure_t *) malloc (sizeof (hb_face_for_data_closure_t));
+  if (unlikely (!closure))
+    return NULL;
+
+  closure->blob = blob;
+  closure->index = index;
+
+  return closure;
+}
+
+static void
+_hb_face_for_data_closure_destroy (hb_face_for_data_closure_t *closure)
+{
+  hb_blob_destroy (closure->blob);
+  free (closure);
+}
+
+static hb_blob_t *
+_hb_face_for_data_reference_table (hb_face_t *face HB_UNUSED, hb_tag_t tag, void *user_data)
+{
+  hb_face_for_data_closure_t *data = (hb_face_for_data_closure_t *) user_data;
+
+  if (tag == HB_TAG_NONE)
+    return hb_blob_reference (data->blob);
+
+  const OT::OpenTypeFontFile &ot_file = *OT::Sanitizer<OT::OpenTypeFontFile>::lock_instance (data->blob);
+  const OT::OpenTypeFontFace &ot_face = ot_file.get_face (data->index);
+
+  const OT::OpenTypeTable &table = ot_face.get_table_by_tag (tag);
+
+  hb_blob_t *blob = hb_blob_create_sub_blob (data->blob, table.offset, table.length);
+
+  return blob;
+}
+
+/**
+ * hb_face_create: (Xconstructor)
+ * @blob: 
+ * @index: 
+ *
+ * 
+ *
+ * Return value: (transfer full):
+ *
+ * Since: 1.0
+ **/
+hb_face_t *
+hb_face_create (hb_blob_t    *blob,
+               unsigned int  index)
+{
+  hb_face_t *face;
+
+  if (unlikely (!blob || !hb_blob_get_length (blob)))
+    return hb_face_get_empty ();
+
+  hb_face_for_data_closure_t *closure = _hb_face_for_data_closure_create (OT::Sanitizer<OT::OpenTypeFontFile>::sanitize (hb_blob_reference (blob)), index);
+
+  if (unlikely (!closure))
+    return hb_face_get_empty ();
+
+  face = hb_face_create_for_tables (_hb_face_for_data_reference_table,
+                                   closure,
+                                   (hb_destroy_func_t) _hb_face_for_data_closure_destroy);
+
+  hb_face_set_index (face, index);
+
+  return face;
+}
+
+/**
+ * hb_face_get_empty:
+ *
+ * 
+ *
+ * Return value: (transfer full)
+ *
+ * Since: 1.0
+ **/
+hb_face_t *
+hb_face_get_empty (void)
+{
+  return const_cast<hb_face_t *> (&_hb_face_nil);
+}
+
+
+/**
+ * hb_face_reference: (skip)
+ * @face: a face.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_face_t *
+hb_face_reference (hb_face_t *face)
+{
+  return hb_object_reference (face);
+}
+
+/**
+ * hb_face_destroy: (skip)
+ * @face: a face.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_face_destroy (hb_face_t *face)
+{
+  if (!hb_object_destroy (face)) return;
+
+  for (hb_face_t::plan_node_t *node = face->shape_plans; node; )
+  {
+    hb_face_t::plan_node_t *next = node->next;
+    hb_shape_plan_destroy (node->shape_plan);
+    free (node);
+    node = next;
+  }
+
+#define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_DESTROY(shaper, face);
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+
+  if (face->destroy)
+    face->destroy (face->user_data);
+
+  free (face);
+}
+
+/**
+ * hb_face_set_user_data: (skip)
+ * @face: a face.
+ * @key: 
+ * @data: 
+ * @destroy: 
+ * @replace: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_face_set_user_data (hb_face_t          *face,
+                      hb_user_data_key_t *key,
+                      void *              data,
+                      hb_destroy_func_t   destroy,
+                      hb_bool_t           replace)
+{
+  return hb_object_set_user_data (face, key, data, destroy, replace);
+}
+
+/**
+ * hb_face_get_user_data: (skip)
+ * @face: a face.
+ * @key: 
+ *
+ * 
+ *
+ * Return value: (transfer none):
+ *
+ * Since: 1.0
+ **/
+void *
+hb_face_get_user_data (hb_face_t          *face,
+                      hb_user_data_key_t *key)
+{
+  return hb_object_get_user_data (face, key);
+}
+
+/**
+ * hb_face_make_immutable:
+ * @face: a face.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_face_make_immutable (hb_face_t *face)
+{
+  if (unlikely (hb_object_is_inert (face)))
+    return;
+
+  face->immutable = true;
+}
+
+/**
+ * hb_face_is_immutable:
+ * @face: a face.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_face_is_immutable (hb_face_t *face)
+{
+  return face->immutable;
+}
+
+
+/**
+ * hb_face_reference_table:
+ * @face: a face.
+ * @tag: 
+ *
+ * 
+ *
+ * Return value: (transfer full):
+ *
+ * Since: 1.0
+ **/
+hb_blob_t *
+hb_face_reference_table (hb_face_t *face,
+                        hb_tag_t   tag)
+{
+  return face->reference_table (tag);
+}
+
+/**
+ * hb_face_reference_blob:
+ * @face: a face.
+ *
+ * 
+ *
+ * Return value: (transfer full):
+ *
+ * Since: 1.0
+ **/
+hb_blob_t *
+hb_face_reference_blob (hb_face_t *face)
+{
+  return face->reference_table (HB_TAG_NONE);
+}
+
+/**
+ * hb_face_set_index:
+ * @face: a face.
+ * @index: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_face_set_index (hb_face_t    *face,
+                  unsigned int  index)
+{
+  if (face->immutable)
+    return;
+
+  face->index = index;
+}
+
+/**
+ * hb_face_get_index:
+ * @face: a face.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+unsigned int
+hb_face_get_index (hb_face_t    *face)
+{
+  return face->index;
+}
+
+/**
+ * hb_face_set_upem:
+ * @face: a face.
+ * @upem: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_face_set_upem (hb_face_t    *face,
+                 unsigned int  upem)
+{
+  if (face->immutable)
+    return;
+
+  face->upem = upem;
+}
+
+/**
+ * hb_face_get_upem:
+ * @face: a face.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+unsigned int
+hb_face_get_upem (hb_face_t *face)
+{
+  return face->get_upem ();
+}
+
+void
+hb_face_t::load_upem (void) const
+{
+  hb_blob_t *head_blob = OT::Sanitizer<OT::head>::sanitize (reference_table (HB_OT_TAG_head));
+  const OT::head *head_table = OT::Sanitizer<OT::head>::lock_instance (head_blob);
+  upem = head_table->get_upem ();
+  hb_blob_destroy (head_blob);
+}
+
+/**
+ * hb_face_set_glyph_count:
+ * @face: a face.
+ * @glyph_count: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_face_set_glyph_count (hb_face_t    *face,
+                        unsigned int  glyph_count)
+{
+  if (face->immutable)
+    return;
+
+  face->num_glyphs = glyph_count;
+}
+
+/**
+ * hb_face_get_glyph_count:
+ * @face: a face.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+unsigned int
+hb_face_get_glyph_count (hb_face_t *face)
+{
+  return face->get_num_glyphs ();
+}
+
+void
+hb_face_t::load_num_glyphs (void) const
+{
+  hb_blob_t *maxp_blob = OT::Sanitizer<OT::maxp>::sanitize (reference_table (HB_OT_TAG_maxp));
+  const OT::maxp *maxp_table = OT::Sanitizer<OT::maxp>::lock_instance (maxp_blob);
+  num_glyphs = maxp_table->get_num_glyphs ();
+  hb_blob_destroy (maxp_blob);
+}
+
+
diff --git a/src/hb-face.h b/src/hb-face.h
new file mode 100644 (file)
index 0000000..f682c46
--- /dev/null
@@ -0,0 +1,117 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_H_IN
+#error "Include <hb.h> instead."
+#endif
+
+#ifndef HB_FACE_H
+#define HB_FACE_H
+
+#include "hb-common.h"
+#include "hb-blob.h"
+
+HB_BEGIN_DECLS
+
+
+/*
+ * hb_face_t
+ */
+
+typedef struct hb_face_t hb_face_t;
+
+hb_face_t *
+hb_face_create (hb_blob_t    *blob,
+               unsigned int  index);
+
+typedef hb_blob_t * (*hb_reference_table_func_t)  (hb_face_t *face, hb_tag_t tag, void *user_data);
+
+/* calls destroy() when not needing user_data anymore */
+hb_face_t *
+hb_face_create_for_tables (hb_reference_table_func_t  reference_table_func,
+                          void                      *user_data,
+                          hb_destroy_func_t          destroy);
+
+hb_face_t *
+hb_face_get_empty (void);
+
+hb_face_t *
+hb_face_reference (hb_face_t *face);
+
+void
+hb_face_destroy (hb_face_t *face);
+
+hb_bool_t
+hb_face_set_user_data (hb_face_t          *face,
+                      hb_user_data_key_t *key,
+                      void *              data,
+                      hb_destroy_func_t   destroy,
+                      hb_bool_t           replace);
+
+
+void *
+hb_face_get_user_data (hb_face_t          *face,
+                      hb_user_data_key_t *key);
+
+void
+hb_face_make_immutable (hb_face_t *face);
+
+hb_bool_t
+hb_face_is_immutable (hb_face_t *face);
+
+
+hb_blob_t *
+hb_face_reference_table (hb_face_t *face,
+                        hb_tag_t   tag);
+
+hb_blob_t *
+hb_face_reference_blob (hb_face_t *face);
+
+void
+hb_face_set_index (hb_face_t    *face,
+                  unsigned int  index);
+
+unsigned int
+hb_face_get_index (hb_face_t    *face);
+
+void
+hb_face_set_upem (hb_face_t    *face,
+                 unsigned int  upem);
+
+unsigned int
+hb_face_get_upem (hb_face_t *face);
+
+void
+hb_face_set_glyph_count (hb_face_t    *face,
+                        unsigned int  glyph_count);
+
+unsigned int
+hb_face_get_glyph_count (hb_face_t *face);
+
+
+HB_END_DECLS
+
+#endif /* HB_FACE_H */
diff --git a/src/hb-fallback-shape.cc b/src/hb-fallback-shape.cc
new file mode 100644 (file)
index 0000000..9d061a9
--- /dev/null
@@ -0,0 +1,141 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#define HB_SHAPER fallback
+#include "hb-shaper-impl-private.hh"
+
+
+/*
+ * shaper face data
+ */
+
+struct hb_fallback_shaper_face_data_t {};
+
+hb_fallback_shaper_face_data_t *
+_hb_fallback_shaper_face_data_create (hb_face_t *face HB_UNUSED)
+{
+  return (hb_fallback_shaper_face_data_t *) HB_SHAPER_DATA_SUCCEEDED;
+}
+
+void
+_hb_fallback_shaper_face_data_destroy (hb_fallback_shaper_face_data_t *data HB_UNUSED)
+{
+}
+
+
+/*
+ * shaper font data
+ */
+
+struct hb_fallback_shaper_font_data_t {};
+
+hb_fallback_shaper_font_data_t *
+_hb_fallback_shaper_font_data_create (hb_font_t *font HB_UNUSED)
+{
+  return (hb_fallback_shaper_font_data_t *) HB_SHAPER_DATA_SUCCEEDED;
+}
+
+void
+_hb_fallback_shaper_font_data_destroy (hb_fallback_shaper_font_data_t *data HB_UNUSED)
+{
+}
+
+
+/*
+ * shaper shape_plan data
+ */
+
+struct hb_fallback_shaper_shape_plan_data_t {};
+
+hb_fallback_shaper_shape_plan_data_t *
+_hb_fallback_shaper_shape_plan_data_create (hb_shape_plan_t    *shape_plan HB_UNUSED,
+                                           const hb_feature_t *user_features HB_UNUSED,
+                                           unsigned int        num_user_features HB_UNUSED)
+{
+  return (hb_fallback_shaper_shape_plan_data_t *) HB_SHAPER_DATA_SUCCEEDED;
+}
+
+void
+_hb_fallback_shaper_shape_plan_data_destroy (hb_fallback_shaper_shape_plan_data_t *data HB_UNUSED)
+{
+}
+
+
+/*
+ * shaper
+ */
+
+hb_bool_t
+_hb_fallback_shape (hb_shape_plan_t    *shape_plan HB_UNUSED,
+                   hb_font_t          *font,
+                   hb_buffer_t        *buffer,
+                   const hb_feature_t *features HB_UNUSED,
+                   unsigned int        num_features HB_UNUSED)
+{
+  /* TODO
+   *
+   * - Apply fallback kern.
+   * - Handle Variation Selectors?
+   * - Apply normalization?
+   *
+   * This will make the fallback shaper into a dumb "TrueType"
+   * shaper which many people unfortunately still request.
+   */
+
+  hb_codepoint_t space;
+  bool has_space = font->get_glyph (' ', 0, &space);
+
+  buffer->clear_positions ();
+
+  hb_direction_t direction = buffer->props.direction;
+  hb_unicode_funcs_t *unicode = buffer->unicode;
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  hb_glyph_position_t *pos = buffer->pos;
+  for (unsigned int i = 0; i < count; i++)
+  {
+    if (has_space && unicode->is_default_ignorable (info[i].codepoint)) {
+      info[i].codepoint = space;
+      pos[i].x_advance = 0;
+      pos[i].y_advance = 0;
+      continue;
+    }
+    font->get_glyph (info[i].codepoint, 0, &info[i].codepoint);
+    font->get_glyph_advance_for_direction (info[i].codepoint,
+                                          direction,
+                                          &pos[i].x_advance,
+                                          &pos[i].y_advance);
+    font->subtract_glyph_origin_for_direction (info[i].codepoint,
+                                              direction,
+                                              &pos[i].x_offset,
+                                              &pos[i].y_offset);
+  }
+
+  if (HB_DIRECTION_IS_BACKWARD (direction))
+    hb_buffer_reverse (buffer);
+
+  return true;
+}
diff --git a/src/hb-font-private.hh b/src/hb-font-private.hh
new file mode 100644 (file)
index 0000000..33bbf71
--- /dev/null
@@ -0,0 +1,415 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_FONT_PRIVATE_HH
+#define HB_FONT_PRIVATE_HH
+
+#include "hb-private.hh"
+
+#include "hb-object-private.hh"
+#include "hb-face-private.hh"
+#include "hb-shaper-private.hh"
+
+
+
+/*
+ * hb_font_funcs_t
+ */
+
+#define HB_FONT_FUNCS_IMPLEMENT_CALLBACKS \
+  HB_FONT_FUNC_IMPLEMENT (glyph) \
+  HB_FONT_FUNC_IMPLEMENT (glyph_h_advance) \
+  HB_FONT_FUNC_IMPLEMENT (glyph_v_advance) \
+  HB_FONT_FUNC_IMPLEMENT (glyph_h_origin) \
+  HB_FONT_FUNC_IMPLEMENT (glyph_v_origin) \
+  HB_FONT_FUNC_IMPLEMENT (glyph_h_kerning) \
+  HB_FONT_FUNC_IMPLEMENT (glyph_v_kerning) \
+  HB_FONT_FUNC_IMPLEMENT (glyph_extents) \
+  HB_FONT_FUNC_IMPLEMENT (glyph_contour_point) \
+  HB_FONT_FUNC_IMPLEMENT (glyph_name) \
+  HB_FONT_FUNC_IMPLEMENT (glyph_from_name) \
+  /* ^--- Add new callbacks here */
+
+struct hb_font_funcs_t {
+  hb_object_header_t header;
+  ASSERT_POD ();
+
+  hb_bool_t immutable;
+
+  /* Don't access these directly.  Call hb_font_get_*() instead. */
+
+  struct {
+#define HB_FONT_FUNC_IMPLEMENT(name) hb_font_get_##name##_func_t name;
+    HB_FONT_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_FONT_FUNC_IMPLEMENT
+  } get;
+
+  struct {
+#define HB_FONT_FUNC_IMPLEMENT(name) void *name;
+    HB_FONT_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_FONT_FUNC_IMPLEMENT
+  } user_data;
+
+  struct {
+#define HB_FONT_FUNC_IMPLEMENT(name) hb_destroy_func_t name;
+    HB_FONT_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_FONT_FUNC_IMPLEMENT
+  } destroy;
+};
+
+
+
+/*
+ * hb_font_t
+ */
+
+struct hb_font_t {
+  hb_object_header_t header;
+  ASSERT_POD ();
+
+  hb_bool_t immutable;
+
+  hb_font_t *parent;
+  hb_face_t *face;
+
+  int x_scale;
+  int y_scale;
+
+  unsigned int x_ppem;
+  unsigned int y_ppem;
+
+  hb_font_funcs_t   *klass;
+  void              *user_data;
+  hb_destroy_func_t  destroy;
+
+  struct hb_shaper_data_t shaper_data;
+
+
+  /* Convert from font-space to user-space */
+  inline hb_position_t em_scale_x (int16_t v) { return em_scale (v, this->x_scale); }
+  inline hb_position_t em_scale_y (int16_t v) { return em_scale (v, this->y_scale); }
+
+  /* Convert from parent-font user-space to our user-space */
+  inline hb_position_t parent_scale_x_distance (hb_position_t v) {
+    if (unlikely (parent && parent->x_scale != x_scale))
+      return (hb_position_t) (v * (int64_t) this->x_scale / this->parent->x_scale);
+    return v;
+  }
+  inline hb_position_t parent_scale_y_distance (hb_position_t v) {
+    if (unlikely (parent && parent->y_scale != y_scale))
+      return (hb_position_t) (v * (int64_t) this->y_scale / this->parent->y_scale);
+    return v;
+  }
+  inline hb_position_t parent_scale_x_position (hb_position_t v) {
+    return parent_scale_x_distance (v);
+  }
+  inline hb_position_t parent_scale_y_position (hb_position_t v) {
+    return parent_scale_y_distance (v);
+  }
+
+  inline void parent_scale_distance (hb_position_t *x, hb_position_t *y) {
+    *x = parent_scale_x_distance (*x);
+    *y = parent_scale_y_distance (*y);
+  }
+  inline void parent_scale_position (hb_position_t *x, hb_position_t *y) {
+    *x = parent_scale_x_position (*x);
+    *y = parent_scale_y_position (*y);
+  }
+
+
+  /* Public getters */
+
+  inline hb_bool_t has_glyph (hb_codepoint_t unicode)
+  {
+    hb_codepoint_t glyph;
+    return get_glyph (unicode, 0, &glyph);
+  }
+
+  inline hb_bool_t get_glyph (hb_codepoint_t unicode, hb_codepoint_t variation_selector,
+                             hb_codepoint_t *glyph)
+  {
+    *glyph = 0;
+    return klass->get.glyph (this, user_data,
+                            unicode, variation_selector, glyph,
+                            klass->user_data.glyph);
+  }
+
+  inline hb_position_t get_glyph_h_advance (hb_codepoint_t glyph)
+  {
+    return klass->get.glyph_h_advance (this, user_data,
+                                      glyph,
+                                      klass->user_data.glyph_h_advance);
+  }
+
+  inline hb_position_t get_glyph_v_advance (hb_codepoint_t glyph)
+  {
+    return klass->get.glyph_v_advance (this, user_data,
+                                      glyph,
+                                      klass->user_data.glyph_v_advance);
+  }
+
+  inline hb_bool_t get_glyph_h_origin (hb_codepoint_t glyph,
+                                      hb_position_t *x, hb_position_t *y)
+  {
+    *x = *y = 0;
+    return klass->get.glyph_h_origin (this, user_data,
+                                     glyph, x, y,
+                                     klass->user_data.glyph_h_origin);
+  }
+
+  inline hb_bool_t get_glyph_v_origin (hb_codepoint_t glyph,
+                                      hb_position_t *x, hb_position_t *y)
+  {
+    *x = *y = 0;
+    return klass->get.glyph_v_origin (this, user_data,
+                                     glyph, x, y,
+                                     klass->user_data.glyph_v_origin);
+  }
+
+  inline hb_position_t get_glyph_h_kerning (hb_codepoint_t left_glyph, hb_codepoint_t right_glyph)
+  {
+    return klass->get.glyph_h_kerning (this, user_data,
+                                      left_glyph, right_glyph,
+                                      klass->user_data.glyph_h_kerning);
+  }
+
+  inline hb_position_t get_glyph_v_kerning (hb_codepoint_t top_glyph, hb_codepoint_t bottom_glyph)
+  {
+    return klass->get.glyph_v_kerning (this, user_data,
+                                      top_glyph, bottom_glyph,
+                                      klass->user_data.glyph_v_kerning);
+  }
+
+  inline hb_bool_t get_glyph_extents (hb_codepoint_t glyph,
+                                     hb_glyph_extents_t *extents)
+  {
+    memset (extents, 0, sizeof (*extents));
+    return klass->get.glyph_extents (this, user_data,
+                                    glyph,
+                                    extents,
+                                    klass->user_data.glyph_extents);
+  }
+
+  inline hb_bool_t get_glyph_contour_point (hb_codepoint_t glyph, unsigned int point_index,
+                                           hb_position_t *x, hb_position_t *y)
+  {
+    *x = *y = 0;
+    return klass->get.glyph_contour_point (this, user_data,
+                                          glyph, point_index,
+                                          x, y,
+                                          klass->user_data.glyph_contour_point);
+  }
+
+  inline hb_bool_t get_glyph_name (hb_codepoint_t glyph,
+                                  char *name, unsigned int size)
+  {
+    if (size) *name = '\0';
+    return klass->get.glyph_name (this, user_data,
+                                 glyph,
+                                 name, size,
+                                 klass->user_data.glyph_name);
+  }
+
+  inline hb_bool_t get_glyph_from_name (const char *name, int len, /* -1 means nul-terminated */
+                                       hb_codepoint_t *glyph)
+  {
+    *glyph = 0;
+    if (len == -1) len = strlen (name);
+    return klass->get.glyph_from_name (this, user_data,
+                                      name, len,
+                                      glyph,
+                                      klass->user_data.glyph_from_name);
+  }
+
+
+  /* A bit higher-level, and with fallback */
+
+  inline void get_glyph_advance_for_direction (hb_codepoint_t glyph,
+                                              hb_direction_t direction,
+                                              hb_position_t *x, hb_position_t *y)
+  {
+    if (likely (HB_DIRECTION_IS_HORIZONTAL (direction))) {
+      *x = get_glyph_h_advance (glyph);
+      *y = 0;
+    } else {
+      *x = 0;
+      *y = get_glyph_v_advance (glyph);
+    }
+  }
+
+  /* Internal only */
+  inline void guess_v_origin_minus_h_origin (hb_codepoint_t glyph,
+                                            hb_position_t *x, hb_position_t *y)
+  {
+    *x = get_glyph_h_advance (glyph) / 2;
+
+    /* TODO use font_metics.ascent */
+    *y = y_scale;
+  }
+
+  inline void get_glyph_origin_for_direction (hb_codepoint_t glyph,
+                                             hb_direction_t direction,
+                                             hb_position_t *x, hb_position_t *y)
+  {
+    if (likely (HB_DIRECTION_IS_HORIZONTAL (direction)))
+    {
+      if (!get_glyph_h_origin (glyph, x, y) &&
+          get_glyph_v_origin (glyph, x, y))
+      {
+       hb_position_t dx, dy;
+       guess_v_origin_minus_h_origin (glyph, &dx, &dy);
+       *x -= dx; *y -= dy;
+      }
+    }
+    else
+    {
+      if (!get_glyph_v_origin (glyph, x, y) &&
+          get_glyph_h_origin (glyph, x, y))
+      {
+       hb_position_t dx, dy;
+       guess_v_origin_minus_h_origin (glyph, &dx, &dy);
+       *x += dx; *y += dy;
+      }
+    }
+  }
+
+  inline void add_glyph_origin_for_direction (hb_codepoint_t glyph,
+                                             hb_direction_t direction,
+                                             hb_position_t *x, hb_position_t *y)
+  {
+    hb_position_t origin_x, origin_y;
+
+    get_glyph_origin_for_direction (glyph, direction, &origin_x, &origin_y);
+
+    *x += origin_x;
+    *y += origin_y;
+  }
+
+  inline void subtract_glyph_origin_for_direction (hb_codepoint_t glyph,
+                                                  hb_direction_t direction,
+                                                  hb_position_t *x, hb_position_t *y)
+  {
+    hb_position_t origin_x, origin_y;
+
+    get_glyph_origin_for_direction (glyph, direction, &origin_x, &origin_y);
+
+    *x -= origin_x;
+    *y -= origin_y;
+  }
+
+  inline void get_glyph_kerning_for_direction (hb_codepoint_t first_glyph, hb_codepoint_t second_glyph,
+                                              hb_direction_t direction,
+                                              hb_position_t *x, hb_position_t *y)
+  {
+    if (likely (HB_DIRECTION_IS_HORIZONTAL (direction))) {
+      *x = get_glyph_h_kerning (first_glyph, second_glyph);
+      *y = 0;
+    } else {
+      *x = 0;
+      *y = get_glyph_v_kerning (first_glyph, second_glyph);
+    }
+  }
+
+  inline hb_bool_t get_glyph_extents_for_origin (hb_codepoint_t glyph,
+                                                hb_direction_t direction,
+                                                hb_glyph_extents_t *extents)
+  {
+    hb_bool_t ret = get_glyph_extents (glyph, extents);
+
+    if (ret)
+      subtract_glyph_origin_for_direction (glyph, direction, &extents->x_bearing, &extents->y_bearing);
+
+    return ret;
+  }
+
+  inline hb_bool_t get_glyph_contour_point_for_origin (hb_codepoint_t glyph, unsigned int point_index,
+                                                      hb_direction_t direction,
+                                                      hb_position_t *x, hb_position_t *y)
+  {
+    hb_bool_t ret = get_glyph_contour_point (glyph, point_index, x, y);
+
+    if (ret)
+      subtract_glyph_origin_for_direction (glyph, direction, x, y);
+
+    return ret;
+  }
+
+  /* Generates gidDDD if glyph has no name. */
+  inline void
+  glyph_to_string (hb_codepoint_t glyph,
+                  char *s, unsigned int size)
+  {
+    if (get_glyph_name (glyph, s, size)) return;
+
+    if (size && snprintf (s, size, "gid%u", glyph) < 0)
+      *s = '\0';
+  }
+
+  /* Parses gidDDD and uniUUUU strings automatically. */
+  inline hb_bool_t
+  glyph_from_string (const char *s, int len, /* -1 means nul-terminated */
+                    hb_codepoint_t *glyph)
+  {
+    if (get_glyph_from_name (s, len, glyph)) return true;
+
+    if (len == -1) len = strlen (s);
+
+    /* Straight glyph index. */
+    if (hb_codepoint_parse (s, len, 10, glyph))
+      return true;
+
+    if (len > 3)
+    {
+      /* gidDDD syntax for glyph indices. */
+      if (0 == strncmp (s, "gid", 3) &&
+         hb_codepoint_parse (s + 3, len - 3, 10, glyph))
+       return true;
+
+      /* uniUUUU and other Unicode character indices. */
+      hb_codepoint_t unichar;
+      if (0 == strncmp (s, "uni", 3) &&
+         hb_codepoint_parse (s + 3, len - 3, 16, &unichar) &&
+         get_glyph (unichar, 0, glyph))
+       return true;
+    }
+
+    return false;
+  }
+
+  private:
+  inline hb_position_t em_scale (int16_t v, int scale) { return (hb_position_t) (v * (int64_t) scale / face->get_upem ()); }
+};
+
+#define HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS
+#define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_PROTOTYPE(shaper, font);
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+#undef HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS
+
+
+#endif /* HB_FONT_PRIVATE_HH */
diff --git a/src/hb-font.cc b/src/hb-font.cc
new file mode 100644 (file)
index 0000000..4364ca7
--- /dev/null
@@ -0,0 +1,1238 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-private.hh"
+
+#include "hb-ot-layout-private.hh"
+
+#include "hb-font-private.hh"
+#include "hb-open-file-private.hh"
+#include "hb-ot-head-table.hh"
+#include "hb-ot-maxp-table.hh"
+
+#include "hb-cache-private.hh"
+
+#include <string.h>
+
+
+/*
+ * hb_font_funcs_t
+ */
+
+static hb_bool_t
+hb_font_get_glyph_nil (hb_font_t *font,
+                      void *font_data HB_UNUSED,
+                      hb_codepoint_t unicode,
+                      hb_codepoint_t variation_selector,
+                      hb_codepoint_t *glyph,
+                      void *user_data HB_UNUSED)
+{
+  if (font->parent)
+    return font->parent->get_glyph (unicode, variation_selector, glyph);
+
+  *glyph = 0;
+  return false;
+}
+
+static hb_position_t
+hb_font_get_glyph_h_advance_nil (hb_font_t *font,
+                                void *font_data HB_UNUSED,
+                                hb_codepoint_t glyph,
+                                void *user_data HB_UNUSED)
+{
+  if (font->parent)
+    return font->parent_scale_x_distance (font->parent->get_glyph_h_advance (glyph));
+
+  return font->x_scale;
+}
+
+static hb_position_t
+hb_font_get_glyph_v_advance_nil (hb_font_t *font,
+                                void *font_data HB_UNUSED,
+                                hb_codepoint_t glyph,
+                                void *user_data HB_UNUSED)
+{
+  if (font->parent)
+    return font->parent_scale_y_distance (font->parent->get_glyph_v_advance (glyph));
+
+  return font->y_scale;
+}
+
+static hb_bool_t
+hb_font_get_glyph_h_origin_nil (hb_font_t *font,
+                               void *font_data HB_UNUSED,
+                               hb_codepoint_t glyph,
+                               hb_position_t *x,
+                               hb_position_t *y,
+                               void *user_data HB_UNUSED)
+{
+  if (font->parent) {
+    hb_bool_t ret = font->parent->get_glyph_h_origin (glyph, x, y);
+    if (ret)
+      font->parent_scale_position (x, y);
+    return ret;
+  }
+
+  *x = *y = 0;
+  return false;
+}
+
+static hb_bool_t
+hb_font_get_glyph_v_origin_nil (hb_font_t *font,
+                               void *font_data HB_UNUSED,
+                               hb_codepoint_t glyph,
+                               hb_position_t *x,
+                               hb_position_t *y,
+                               void *user_data HB_UNUSED)
+{
+  if (font->parent) {
+    hb_bool_t ret = font->parent->get_glyph_v_origin (glyph, x, y);
+    if (ret)
+      font->parent_scale_position (x, y);
+    return ret;
+  }
+
+  *x = *y = 0;
+  return false;
+}
+
+static hb_position_t
+hb_font_get_glyph_h_kerning_nil (hb_font_t *font,
+                                void *font_data HB_UNUSED,
+                                hb_codepoint_t left_glyph,
+                                hb_codepoint_t right_glyph,
+                                void *user_data HB_UNUSED)
+{
+  if (font->parent)
+    return font->parent_scale_x_distance (font->parent->get_glyph_h_kerning (left_glyph, right_glyph));
+
+  return 0;
+}
+
+static hb_position_t
+hb_font_get_glyph_v_kerning_nil (hb_font_t *font,
+                                void *font_data HB_UNUSED,
+                                hb_codepoint_t top_glyph,
+                                hb_codepoint_t bottom_glyph,
+                                void *user_data HB_UNUSED)
+{
+  if (font->parent)
+    return font->parent_scale_y_distance (font->parent->get_glyph_v_kerning (top_glyph, bottom_glyph));
+
+  return 0;
+}
+
+static hb_bool_t
+hb_font_get_glyph_extents_nil (hb_font_t *font,
+                              void *font_data HB_UNUSED,
+                              hb_codepoint_t glyph,
+                              hb_glyph_extents_t *extents,
+                              void *user_data HB_UNUSED)
+{
+  if (font->parent) {
+    hb_bool_t ret = font->parent->get_glyph_extents (glyph, extents);
+    if (ret) {
+      font->parent_scale_position (&extents->x_bearing, &extents->y_bearing);
+      font->parent_scale_distance (&extents->width, &extents->height);
+    }
+    return ret;
+  }
+
+  memset (extents, 0, sizeof (*extents));
+  return false;
+}
+
+static hb_bool_t
+hb_font_get_glyph_contour_point_nil (hb_font_t *font,
+                                    void *font_data HB_UNUSED,
+                                    hb_codepoint_t glyph,
+                                    unsigned int point_index,
+                                    hb_position_t *x,
+                                    hb_position_t *y,
+                                    void *user_data HB_UNUSED)
+{
+  if (font->parent) {
+    hb_bool_t ret = font->parent->get_glyph_contour_point (glyph, point_index, x, y);
+    if (ret)
+      font->parent_scale_position (x, y);
+    return ret;
+  }
+
+  *x = *y = 0;
+  return false;
+}
+
+static hb_bool_t
+hb_font_get_glyph_name_nil (hb_font_t *font,
+                           void *font_data HB_UNUSED,
+                           hb_codepoint_t glyph,
+                           char *name, unsigned int size,
+                           void *user_data HB_UNUSED)
+{
+  if (font->parent)
+    return font->parent->get_glyph_name (glyph, name, size);
+
+  if (size) *name = '\0';
+  return false;
+}
+
+static hb_bool_t
+hb_font_get_glyph_from_name_nil (hb_font_t *font,
+                                void *font_data HB_UNUSED,
+                                const char *name, int len, /* -1 means nul-terminated */
+                                hb_codepoint_t *glyph,
+                                void *user_data HB_UNUSED)
+{
+  if (font->parent)
+    return font->parent->get_glyph_from_name (name, len, glyph);
+
+  *glyph = 0;
+  return false;
+}
+
+
+static const hb_font_funcs_t _hb_font_funcs_nil = {
+  HB_OBJECT_HEADER_STATIC,
+
+  true, /* immutable */
+
+  {
+#define HB_FONT_FUNC_IMPLEMENT(name) hb_font_get_##name##_nil,
+    HB_FONT_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_FONT_FUNC_IMPLEMENT
+  }
+};
+
+
+/**
+ * hb_font_funcs_create: (Xconstructor)
+ *
+ * 
+ *
+ * Return value: (transfer full): 
+ *
+ * Since: 1.0
+ **/
+hb_font_funcs_t *
+hb_font_funcs_create (void)
+{
+  hb_font_funcs_t *ffuncs;
+
+  if (!(ffuncs = hb_object_create<hb_font_funcs_t> ()))
+    return hb_font_funcs_get_empty ();
+
+  ffuncs->get = _hb_font_funcs_nil.get;
+
+  return ffuncs;
+}
+
+/**
+ * hb_font_funcs_get_empty:
+ *
+ * 
+ *
+ * Return value: (transfer full): 
+ *
+ * Since: 1.0
+ **/
+hb_font_funcs_t *
+hb_font_funcs_get_empty (void)
+{
+  return const_cast<hb_font_funcs_t *> (&_hb_font_funcs_nil);
+}
+
+/**
+ * hb_font_funcs_reference: (skip)
+ * @ffuncs: font functions.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_font_funcs_t *
+hb_font_funcs_reference (hb_font_funcs_t *ffuncs)
+{
+  return hb_object_reference (ffuncs);
+}
+
+/**
+ * hb_font_funcs_destroy: (skip)
+ * @ffuncs: font functions.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_funcs_destroy (hb_font_funcs_t *ffuncs)
+{
+  if (!hb_object_destroy (ffuncs)) return;
+
+#define HB_FONT_FUNC_IMPLEMENT(name) if (ffuncs->destroy.name) \
+  ffuncs->destroy.name (ffuncs->user_data.name);
+  HB_FONT_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_FONT_FUNC_IMPLEMENT
+
+  free (ffuncs);
+}
+
+/**
+ * hb_font_funcs_set_user_data: (skip)
+ * @ffuncs: font functions.
+ * @key: 
+ * @data: 
+ * @destroy: 
+ * @replace: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_font_funcs_set_user_data (hb_font_funcs_t    *ffuncs,
+                            hb_user_data_key_t *key,
+                            void *              data,
+                            hb_destroy_func_t   destroy,
+                            hb_bool_t           replace)
+{
+  return hb_object_set_user_data (ffuncs, key, data, destroy, replace);
+}
+
+/**
+ * hb_font_funcs_get_user_data: (skip)
+ * @ffuncs: font functions.
+ * @key: 
+ *
+ * 
+ *
+ * Return value: (transfer none): 
+ *
+ * Since: 1.0
+ **/
+void *
+hb_font_funcs_get_user_data (hb_font_funcs_t    *ffuncs,
+                            hb_user_data_key_t *key)
+{
+  return hb_object_get_user_data (ffuncs, key);
+}
+
+
+/**
+ * hb_font_funcs_make_immutable:
+ * @ffuncs: font functions.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_funcs_make_immutable (hb_font_funcs_t *ffuncs)
+{
+  if (unlikely (hb_object_is_inert (ffuncs)))
+    return;
+
+  ffuncs->immutable = true;
+}
+
+/**
+ * hb_font_funcs_is_immutable:
+ * @ffuncs: font functions.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_font_funcs_is_immutable (hb_font_funcs_t *ffuncs)
+{
+  return ffuncs->immutable;
+}
+
+
+#define HB_FONT_FUNC_IMPLEMENT(name) \
+                                                                         \
+void                                                                     \
+hb_font_funcs_set_##name##_func (hb_font_funcs_t             *ffuncs,    \
+                                 hb_font_get_##name##_func_t  func,      \
+                                 void                        *user_data, \
+                                 hb_destroy_func_t            destroy)   \
+{                                                                        \
+  if (ffuncs->immutable) {                                               \
+    if (destroy)                                                         \
+      destroy (user_data);                                               \
+    return;                                                              \
+  }                                                                      \
+                                                                         \
+  if (ffuncs->destroy.name)                                              \
+    ffuncs->destroy.name (ffuncs->user_data.name);                       \
+                                                                         \
+  if (func) {                                                            \
+    ffuncs->get.name = func;                                             \
+    ffuncs->user_data.name = user_data;                                  \
+    ffuncs->destroy.name = destroy;                                      \
+  } else {                                                               \
+    ffuncs->get.name = hb_font_get_##name##_nil;                         \
+    ffuncs->user_data.name = NULL;                                       \
+    ffuncs->destroy.name = NULL;                                         \
+  }                                                                      \
+}
+
+HB_FONT_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_FONT_FUNC_IMPLEMENT
+
+
+/* Public getters */
+
+/**
+ * hb_font_get_glyph:
+ * @font: a font.
+ * @unicode: 
+ * @variation_selector: 
+ * @glyph: (out): 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_font_get_glyph (hb_font_t *font,
+                  hb_codepoint_t unicode, hb_codepoint_t variation_selector,
+                  hb_codepoint_t *glyph)
+{
+  return font->get_glyph (unicode, variation_selector, glyph);
+}
+
+/**
+ * hb_font_get_glyph_h_advance:
+ * @font: a font.
+ * @glyph: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_position_t
+hb_font_get_glyph_h_advance (hb_font_t *font,
+                            hb_codepoint_t glyph)
+{
+  return font->get_glyph_h_advance (glyph);
+}
+
+/**
+ * hb_font_get_glyph_v_advance:
+ * @font: a font.
+ * @glyph: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_position_t
+hb_font_get_glyph_v_advance (hb_font_t *font,
+                            hb_codepoint_t glyph)
+{
+  return font->get_glyph_v_advance (glyph);
+}
+
+/**
+ * hb_font_get_glyph_h_origin:
+ * @font: a font.
+ * @glyph: 
+ * @x: (out): 
+ * @y: (out): 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_font_get_glyph_h_origin (hb_font_t *font,
+                           hb_codepoint_t glyph,
+                           hb_position_t *x, hb_position_t *y)
+{
+  return font->get_glyph_h_origin (glyph, x, y);
+}
+
+/**
+ * hb_font_get_glyph_v_origin:
+ * @font: a font.
+ * @glyph: 
+ * @x: (out): 
+ * @y: (out): 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_font_get_glyph_v_origin (hb_font_t *font,
+                           hb_codepoint_t glyph,
+                           hb_position_t *x, hb_position_t *y)
+{
+  return font->get_glyph_v_origin (glyph, x, y);
+}
+
+/**
+ * hb_font_get_glyph_h_kerning:
+ * @font: a font.
+ * @left_glyph: 
+ * @right_glyph: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_position_t
+hb_font_get_glyph_h_kerning (hb_font_t *font,
+                            hb_codepoint_t left_glyph, hb_codepoint_t right_glyph)
+{
+  return font->get_glyph_h_kerning (left_glyph, right_glyph);
+}
+
+/**
+ * hb_font_get_glyph_v_kerning:
+ * @font: a font.
+ * @top_glyph: 
+ * @bottom_glyph: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_position_t
+hb_font_get_glyph_v_kerning (hb_font_t *font,
+                            hb_codepoint_t top_glyph, hb_codepoint_t bottom_glyph)
+{
+  return font->get_glyph_v_kerning (top_glyph, bottom_glyph);
+}
+
+/**
+ * hb_font_get_glyph_extents:
+ * @font: a font.
+ * @glyph: 
+ * @extents: (out): 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_font_get_glyph_extents (hb_font_t *font,
+                          hb_codepoint_t glyph,
+                          hb_glyph_extents_t *extents)
+{
+  return font->get_glyph_extents (glyph, extents);
+}
+
+/**
+ * hb_font_get_glyph_contour_point:
+ * @font: a font.
+ * @glyph: 
+ * @point_index: 
+ * @x: (out): 
+ * @y: (out): 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_font_get_glyph_contour_point (hb_font_t *font,
+                                hb_codepoint_t glyph, unsigned int point_index,
+                                hb_position_t *x, hb_position_t *y)
+{
+  return font->get_glyph_contour_point (glyph, point_index, x, y);
+}
+
+/**
+ * hb_font_get_glyph_name:
+ * @font: a font.
+ * @glyph: 
+ * @name: (array length=size): 
+ * @size: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_font_get_glyph_name (hb_font_t *font,
+                       hb_codepoint_t glyph,
+                       char *name, unsigned int size)
+{
+  return font->get_glyph_name (glyph, name, size);
+}
+
+/**
+ * hb_font_get_glyph_from_name:
+ * @font: a font.
+ * @name: (array length=len): 
+ * @len: 
+ * @glyph: (out): 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_font_get_glyph_from_name (hb_font_t *font,
+                            const char *name, int len, /* -1 means nul-terminated */
+                            hb_codepoint_t *glyph)
+{
+  return font->get_glyph_from_name (name, len, glyph);
+}
+
+
+/* A bit higher-level, and with fallback */
+
+/**
+ * hb_font_get_glyph_advance_for_direction:
+ * @font: a font.
+ * @glyph: 
+ * @direction: 
+ * @x: (out): 
+ * @y: (out): 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_get_glyph_advance_for_direction (hb_font_t *font,
+                                        hb_codepoint_t glyph,
+                                        hb_direction_t direction,
+                                        hb_position_t *x, hb_position_t *y)
+{
+  return font->get_glyph_advance_for_direction (glyph, direction, x, y);
+}
+
+/**
+ * hb_font_get_glyph_origin_for_direction:
+ * @font: a font.
+ * @glyph: 
+ * @direction: 
+ * @x: (out): 
+ * @y: (out): 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_get_glyph_origin_for_direction (hb_font_t *font,
+                                       hb_codepoint_t glyph,
+                                       hb_direction_t direction,
+                                       hb_position_t *x, hb_position_t *y)
+{
+  return font->get_glyph_origin_for_direction (glyph, direction, x, y);
+}
+
+/**
+ * hb_font_add_glyph_origin_for_direction:
+ * @font: a font.
+ * @glyph: 
+ * @direction: 
+ * @x: (out): 
+ * @y: (out): 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_add_glyph_origin_for_direction (hb_font_t *font,
+                                       hb_codepoint_t glyph,
+                                       hb_direction_t direction,
+                                       hb_position_t *x, hb_position_t *y)
+{
+  return font->add_glyph_origin_for_direction (glyph, direction, x, y);
+}
+
+/**
+ * hb_font_subtract_glyph_origin_for_direction:
+ * @font: a font.
+ * @glyph: 
+ * @direction: 
+ * @x: (out): 
+ * @y: (out): 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_subtract_glyph_origin_for_direction (hb_font_t *font,
+                                            hb_codepoint_t glyph,
+                                            hb_direction_t direction,
+                                            hb_position_t *x, hb_position_t *y)
+{
+  return font->subtract_glyph_origin_for_direction (glyph, direction, x, y);
+}
+
+/**
+ * hb_font_get_glyph_kerning_for_direction:
+ * @font: a font.
+ * @first_glyph: 
+ * @second_glyph: 
+ * @direction: 
+ * @x: (out): 
+ * @y: (out): 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_get_glyph_kerning_for_direction (hb_font_t *font,
+                                        hb_codepoint_t first_glyph, hb_codepoint_t second_glyph,
+                                        hb_direction_t direction,
+                                        hb_position_t *x, hb_position_t *y)
+{
+  return font->get_glyph_kerning_for_direction (first_glyph, second_glyph, direction, x, y);
+}
+
+/**
+ * hb_font_get_glyph_extents_for_origin:
+ * @font: a font.
+ * @glyph: 
+ * @direction: 
+ * @extents: (out): 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_font_get_glyph_extents_for_origin (hb_font_t *font,
+                                     hb_codepoint_t glyph,
+                                     hb_direction_t direction,
+                                     hb_glyph_extents_t *extents)
+{
+  return font->get_glyph_extents_for_origin (glyph, direction, extents);
+}
+
+/**
+ * hb_font_get_glyph_contour_point_for_origin:
+ * @font: a font.
+ * @glyph: 
+ * @point_index: 
+ * @direction: 
+ * @x: (out): 
+ * @y: (out): 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_font_get_glyph_contour_point_for_origin (hb_font_t *font,
+                                           hb_codepoint_t glyph, unsigned int point_index,
+                                           hb_direction_t direction,
+                                           hb_position_t *x, hb_position_t *y)
+{
+  return font->get_glyph_contour_point_for_origin (glyph, point_index, direction, x, y);
+}
+
+/* Generates gidDDD if glyph has no name. */
+/**
+ * hb_font_glyph_to_string:
+ * @font: a font.
+ * @glyph: 
+ * @s: (array length=size): 
+ * @size: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_glyph_to_string (hb_font_t *font,
+                        hb_codepoint_t glyph,
+                        char *s, unsigned int size)
+{
+  font->glyph_to_string (glyph, s, size);
+}
+
+/* Parses gidDDD and uniUUUU strings automatically. */
+/**
+ * hb_font_glyph_from_string:
+ * @font: a font.
+ * @s: (array length=len): 
+ * @len: 
+ * @glyph: (out): 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_font_glyph_from_string (hb_font_t *font,
+                          const char *s, int len, /* -1 means nul-terminated */
+                          hb_codepoint_t *glyph)
+{
+  return font->glyph_from_string (s, len, glyph);
+}
+
+
+/*
+ * hb_font_t
+ */
+
+/**
+ * hb_font_create: (Xconstructor)
+ * @face: a face.
+ *
+ * 
+ *
+ * Return value: (transfer full): 
+ *
+ * Since: 1.0
+ **/
+hb_font_t *
+hb_font_create (hb_face_t *face)
+{
+  hb_font_t *font;
+
+  if (unlikely (!face))
+    face = hb_face_get_empty ();
+  if (unlikely (hb_object_is_inert (face)))
+    return hb_font_get_empty ();
+  if (!(font = hb_object_create<hb_font_t> ()))
+    return hb_font_get_empty ();
+
+  hb_face_make_immutable (face);
+  font->face = hb_face_reference (face);
+  font->klass = hb_font_funcs_get_empty ();
+
+  return font;
+}
+
+/**
+ * hb_font_create_sub_font:
+ * @parent: parent font.
+ *
+ * 
+ *
+ * Return value: (transfer full): 
+ *
+ * Since: 1.0
+ **/
+hb_font_t *
+hb_font_create_sub_font (hb_font_t *parent)
+{
+  if (unlikely (!parent))
+    return hb_font_get_empty ();
+
+  hb_font_t *font = hb_font_create (parent->face);
+
+  if (unlikely (hb_object_is_inert (font)))
+    return font;
+
+  hb_font_make_immutable (parent);
+  font->parent = hb_font_reference (parent);
+
+  font->x_scale = parent->x_scale;
+  font->y_scale = parent->y_scale;
+  font->x_ppem = parent->x_ppem;
+  font->y_ppem = parent->y_ppem;
+
+  return font;
+}
+
+/**
+ * hb_font_get_empty:
+ *
+ * 
+ *
+ * Return value: (transfer full)
+ *
+ * Since: 1.0
+ **/
+hb_font_t *
+hb_font_get_empty (void)
+{
+  static const hb_font_t _hb_font_nil = {
+    HB_OBJECT_HEADER_STATIC,
+
+    true, /* immutable */
+
+    NULL, /* parent */
+    const_cast<hb_face_t *> (&_hb_face_nil),
+
+    0, /* x_scale */
+    0, /* y_scale */
+
+    0, /* x_ppem */
+    0, /* y_ppem */
+
+    const_cast<hb_font_funcs_t *> (&_hb_font_funcs_nil), /* klass */
+    NULL, /* user_data */
+    NULL, /* destroy */
+
+    {
+#define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_INVALID,
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+    }
+  };
+
+  return const_cast<hb_font_t *> (&_hb_font_nil);
+}
+
+/**
+ * hb_font_reference: (skip)
+ * @font: a font.
+ *
+ * 
+ *
+ * Return value: (transfer full): 
+ *
+ * Since: 1.0
+ **/
+hb_font_t *
+hb_font_reference (hb_font_t *font)
+{
+  return hb_object_reference (font);
+}
+
+/**
+ * hb_font_destroy: (skip)
+ * @font: a font.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_destroy (hb_font_t *font)
+{
+  if (!hb_object_destroy (font)) return;
+
+#define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_DESTROY(shaper, font);
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+
+  if (font->destroy)
+    font->destroy (font->user_data);
+
+  hb_font_destroy (font->parent);
+  hb_face_destroy (font->face);
+  hb_font_funcs_destroy (font->klass);
+
+  free (font);
+}
+
+/**
+ * hb_font_set_user_data: (skip)
+ * @font: a font.
+ * @key: 
+ * @data: 
+ * @destroy: 
+ * @replace: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_font_set_user_data (hb_font_t          *font,
+                      hb_user_data_key_t *key,
+                      void *              data,
+                      hb_destroy_func_t   destroy,
+                      hb_bool_t           replace)
+{
+  return hb_object_set_user_data (font, key, data, destroy, replace);
+}
+
+/**
+ * hb_font_get_user_data: (skip)
+ * @font: a font.
+ * @key: 
+ *
+ * 
+ *
+ * Return value: (transfer none): 
+ *
+ * Since: 1.0
+ **/
+void *
+hb_font_get_user_data (hb_font_t          *font,
+                      hb_user_data_key_t *key)
+{
+  return hb_object_get_user_data (font, key);
+}
+
+/**
+ * hb_font_make_immutable:
+ * @font: a font.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_make_immutable (hb_font_t *font)
+{
+  if (unlikely (hb_object_is_inert (font)))
+    return;
+
+  font->immutable = true;
+}
+
+/**
+ * hb_font_is_immutable:
+ * @font: a font.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_font_is_immutable (hb_font_t *font)
+{
+  return font->immutable;
+}
+
+/**
+ * hb_font_get_parent:
+ * @font: a font.
+ *
+ * 
+ *
+ * Return value: (transfer none): 
+ *
+ * Since: 1.0
+ **/
+hb_font_t *
+hb_font_get_parent (hb_font_t *font)
+{
+  return font->parent;
+}
+
+/**
+ * hb_font_get_face:
+ * @font: a font.
+ *
+ * 
+ *
+ * Return value: (transfer none): 
+ *
+ * Since: 1.0
+ **/
+hb_face_t *
+hb_font_get_face (hb_font_t *font)
+{
+  return font->face;
+}
+
+
+/**
+ * hb_font_set_funcs:
+ * @font: a font.
+ * @klass: (closure font_data) (destroy destroy) (scope notified):
+ * @font_data: 
+ * @destroy: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_set_funcs (hb_font_t         *font,
+                  hb_font_funcs_t   *klass,
+                  void              *font_data,
+                  hb_destroy_func_t  destroy)
+{
+  if (font->immutable) {
+    if (destroy)
+      destroy (font_data);
+    return;
+  }
+
+  if (font->destroy)
+    font->destroy (font->user_data);
+
+  if (!klass)
+    klass = hb_font_funcs_get_empty ();
+
+  hb_font_funcs_reference (klass);
+  hb_font_funcs_destroy (font->klass);
+  font->klass = klass;
+  font->user_data = font_data;
+  font->destroy = destroy;
+}
+
+/**
+ * hb_font_set_funcs_data:
+ * @font: a font.
+ * @font_data: (destroy destroy) (scope notified):
+ * @destroy: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_set_funcs_data (hb_font_t         *font,
+                       void              *font_data,
+                       hb_destroy_func_t  destroy)
+{
+  /* Destroy user_data? */
+  if (font->immutable) {
+    if (destroy)
+      destroy (font_data);
+    return;
+  }
+
+  if (font->destroy)
+    font->destroy (font->user_data);
+
+  font->user_data = font_data;
+  font->destroy = destroy;
+}
+
+
+/**
+ * hb_font_set_scale:
+ * @font: a font.
+ * @x_scale: 
+ * @y_scale: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_set_scale (hb_font_t *font,
+                  int x_scale,
+                  int y_scale)
+{
+  if (font->immutable)
+    return;
+
+  font->x_scale = x_scale;
+  font->y_scale = y_scale;
+}
+
+/**
+ * hb_font_get_scale:
+ * @font: a font.
+ * @x_scale: (out): 
+ * @y_scale: (out): 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_get_scale (hb_font_t *font,
+                  int *x_scale,
+                  int *y_scale)
+{
+  if (x_scale) *x_scale = font->x_scale;
+  if (y_scale) *y_scale = font->y_scale;
+}
+
+/**
+ * hb_font_set_ppem:
+ * @font: a font.
+ * @x_ppem: 
+ * @y_ppem: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_set_ppem (hb_font_t *font,
+                 unsigned int x_ppem,
+                 unsigned int y_ppem)
+{
+  if (font->immutable)
+    return;
+
+  font->x_ppem = x_ppem;
+  font->y_ppem = y_ppem;
+}
+
+/**
+ * hb_font_get_ppem:
+ * @font: a font.
+ * @x_ppem: (out): 
+ * @y_ppem: (out): 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_get_ppem (hb_font_t *font,
+                 unsigned int *x_ppem,
+                 unsigned int *y_ppem)
+{
+  if (x_ppem) *x_ppem = font->x_ppem;
+  if (y_ppem) *y_ppem = font->y_ppem;
+}
diff --git a/src/hb-font.h b/src/hb-font.h
new file mode 100644 (file)
index 0000000..7273db4
--- /dev/null
@@ -0,0 +1,507 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_H_IN
+#error "Include <hb.h> instead."
+#endif
+
+#ifndef HB_FONT_H
+#define HB_FONT_H
+
+#include "hb-common.h"
+#include "hb-face.h"
+
+HB_BEGIN_DECLS
+
+
+typedef struct hb_font_t hb_font_t;
+
+
+/*
+ * hb_font_funcs_t
+ */
+
+typedef struct hb_font_funcs_t hb_font_funcs_t;
+
+hb_font_funcs_t *
+hb_font_funcs_create (void);
+
+hb_font_funcs_t *
+hb_font_funcs_get_empty (void);
+
+hb_font_funcs_t *
+hb_font_funcs_reference (hb_font_funcs_t *ffuncs);
+
+void
+hb_font_funcs_destroy (hb_font_funcs_t *ffuncs);
+
+hb_bool_t
+hb_font_funcs_set_user_data (hb_font_funcs_t    *ffuncs,
+                            hb_user_data_key_t *key,
+                            void *              data,
+                            hb_destroy_func_t   destroy,
+                            hb_bool_t           replace);
+
+
+void *
+hb_font_funcs_get_user_data (hb_font_funcs_t    *ffuncs,
+                            hb_user_data_key_t *key);
+
+
+void
+hb_font_funcs_make_immutable (hb_font_funcs_t *ffuncs);
+
+hb_bool_t
+hb_font_funcs_is_immutable (hb_font_funcs_t *ffuncs);
+
+
+/* glyph extents */
+
+typedef struct hb_glyph_extents_t
+{
+  hb_position_t x_bearing;
+  hb_position_t y_bearing;
+  hb_position_t width;
+  hb_position_t height;
+} hb_glyph_extents_t;
+
+
+/* func types */
+
+typedef hb_bool_t (*hb_font_get_glyph_func_t) (hb_font_t *font, void *font_data,
+                                              hb_codepoint_t unicode, hb_codepoint_t variation_selector,
+                                              hb_codepoint_t *glyph,
+                                              void *user_data);
+
+
+typedef hb_position_t (*hb_font_get_glyph_advance_func_t) (hb_font_t *font, void *font_data,
+                                                          hb_codepoint_t glyph,
+                                                          void *user_data);
+typedef hb_font_get_glyph_advance_func_t hb_font_get_glyph_h_advance_func_t;
+typedef hb_font_get_glyph_advance_func_t hb_font_get_glyph_v_advance_func_t;
+
+typedef hb_bool_t (*hb_font_get_glyph_origin_func_t) (hb_font_t *font, void *font_data,
+                                                     hb_codepoint_t glyph,
+                                                     hb_position_t *x, hb_position_t *y,
+                                                     void *user_data);
+typedef hb_font_get_glyph_origin_func_t hb_font_get_glyph_h_origin_func_t;
+typedef hb_font_get_glyph_origin_func_t hb_font_get_glyph_v_origin_func_t;
+
+typedef hb_position_t (*hb_font_get_glyph_kerning_func_t) (hb_font_t *font, void *font_data,
+                                                          hb_codepoint_t first_glyph, hb_codepoint_t second_glyph,
+                                                          void *user_data);
+typedef hb_font_get_glyph_kerning_func_t hb_font_get_glyph_h_kerning_func_t;
+typedef hb_font_get_glyph_kerning_func_t hb_font_get_glyph_v_kerning_func_t;
+
+
+typedef hb_bool_t (*hb_font_get_glyph_extents_func_t) (hb_font_t *font, void *font_data,
+                                                      hb_codepoint_t glyph,
+                                                      hb_glyph_extents_t *extents,
+                                                      void *user_data);
+typedef hb_bool_t (*hb_font_get_glyph_contour_point_func_t) (hb_font_t *font, void *font_data,
+                                                            hb_codepoint_t glyph, unsigned int point_index,
+                                                            hb_position_t *x, hb_position_t *y,
+                                                            void *user_data);
+
+
+typedef hb_bool_t (*hb_font_get_glyph_name_func_t) (hb_font_t *font, void *font_data,
+                                                   hb_codepoint_t glyph,
+                                                   char *name, unsigned int size,
+                                                   void *user_data);
+typedef hb_bool_t (*hb_font_get_glyph_from_name_func_t) (hb_font_t *font, void *font_data,
+                                                        const char *name, int len, /* -1 means nul-terminated */
+                                                        hb_codepoint_t *glyph,
+                                                        void *user_data);
+
+
+/* func setters */
+
+/**
+ * hb_font_funcs_set_glyph_func:
+ * @ffuncs: font functions.
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_funcs_set_glyph_func (hb_font_funcs_t *ffuncs,
+                             hb_font_get_glyph_func_t func,
+                             void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_font_funcs_set_glyph_h_advance_func:
+ * @ffuncs: font functions.
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_funcs_set_glyph_h_advance_func (hb_font_funcs_t *ffuncs,
+                                       hb_font_get_glyph_h_advance_func_t func,
+                                       void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_font_funcs_set_glyph_v_advance_func:
+ * @ffuncs: font functions.
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_funcs_set_glyph_v_advance_func (hb_font_funcs_t *ffuncs,
+                                       hb_font_get_glyph_v_advance_func_t func,
+                                       void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_font_funcs_set_glyph_h_origin_func:
+ * @ffuncs: font functions.
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_funcs_set_glyph_h_origin_func (hb_font_funcs_t *ffuncs,
+                                      hb_font_get_glyph_h_origin_func_t func,
+                                      void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_font_funcs_set_glyph_v_origin_func:
+ * @ffuncs: font functions.
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_funcs_set_glyph_v_origin_func (hb_font_funcs_t *ffuncs,
+                                      hb_font_get_glyph_v_origin_func_t func,
+                                      void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_font_funcs_set_glyph_h_kerning_func:
+ * @ffuncs: font functions.
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_funcs_set_glyph_h_kerning_func (hb_font_funcs_t *ffuncs,
+                                       hb_font_get_glyph_h_kerning_func_t func,
+                                       void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_font_funcs_set_glyph_v_kerning_func:
+ * @ffuncs: font functions.
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_funcs_set_glyph_v_kerning_func (hb_font_funcs_t *ffuncs,
+                                       hb_font_get_glyph_v_kerning_func_t func,
+                                       void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_font_funcs_set_glyph_extents_func:
+ * @ffuncs: font functions.
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_funcs_set_glyph_extents_func (hb_font_funcs_t *ffuncs,
+                                     hb_font_get_glyph_extents_func_t func,
+                                     void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_font_funcs_set_glyph_contour_point_func:
+ * @ffuncs: font functions.
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_funcs_set_glyph_contour_point_func (hb_font_funcs_t *ffuncs,
+                                           hb_font_get_glyph_contour_point_func_t func,
+                                           void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_font_funcs_set_glyph_name_func:
+ * @ffuncs: font functions.
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_funcs_set_glyph_name_func (hb_font_funcs_t *ffuncs,
+                                  hb_font_get_glyph_name_func_t func,
+                                  void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_font_funcs_set_glyph_from_name_func:
+ * @ffuncs: font functions.
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_font_funcs_set_glyph_from_name_func (hb_font_funcs_t *ffuncs,
+                                       hb_font_get_glyph_from_name_func_t func,
+                                       void *user_data, hb_destroy_func_t destroy);
+
+
+/* func dispatch */
+
+hb_bool_t
+hb_font_get_glyph (hb_font_t *font,
+                  hb_codepoint_t unicode, hb_codepoint_t variation_selector,
+                  hb_codepoint_t *glyph);
+
+hb_position_t
+hb_font_get_glyph_h_advance (hb_font_t *font,
+                            hb_codepoint_t glyph);
+hb_position_t
+hb_font_get_glyph_v_advance (hb_font_t *font,
+                            hb_codepoint_t glyph);
+
+hb_bool_t
+hb_font_get_glyph_h_origin (hb_font_t *font,
+                           hb_codepoint_t glyph,
+                           hb_position_t *x, hb_position_t *y);
+hb_bool_t
+hb_font_get_glyph_v_origin (hb_font_t *font,
+                           hb_codepoint_t glyph,
+                           hb_position_t *x, hb_position_t *y);
+
+hb_position_t
+hb_font_get_glyph_h_kerning (hb_font_t *font,
+                            hb_codepoint_t left_glyph, hb_codepoint_t right_glyph);
+hb_position_t
+hb_font_get_glyph_v_kerning (hb_font_t *font,
+                            hb_codepoint_t top_glyph, hb_codepoint_t bottom_glyph);
+
+hb_bool_t
+hb_font_get_glyph_extents (hb_font_t *font,
+                          hb_codepoint_t glyph,
+                          hb_glyph_extents_t *extents);
+
+hb_bool_t
+hb_font_get_glyph_contour_point (hb_font_t *font,
+                                hb_codepoint_t glyph, unsigned int point_index,
+                                hb_position_t *x, hb_position_t *y);
+
+hb_bool_t
+hb_font_get_glyph_name (hb_font_t *font,
+                       hb_codepoint_t glyph,
+                       char *name, unsigned int size);
+hb_bool_t
+hb_font_get_glyph_from_name (hb_font_t *font,
+                            const char *name, int len, /* -1 means nul-terminated */
+                            hb_codepoint_t *glyph);
+
+
+/* high-level funcs, with fallback */
+
+void
+hb_font_get_glyph_advance_for_direction (hb_font_t *font,
+                                        hb_codepoint_t glyph,
+                                        hb_direction_t direction,
+                                        hb_position_t *x, hb_position_t *y);
+void
+hb_font_get_glyph_origin_for_direction (hb_font_t *font,
+                                       hb_codepoint_t glyph,
+                                       hb_direction_t direction,
+                                       hb_position_t *x, hb_position_t *y);
+void
+hb_font_add_glyph_origin_for_direction (hb_font_t *font,
+                                       hb_codepoint_t glyph,
+                                       hb_direction_t direction,
+                                       hb_position_t *x, hb_position_t *y);
+void
+hb_font_subtract_glyph_origin_for_direction (hb_font_t *font,
+                                            hb_codepoint_t glyph,
+                                            hb_direction_t direction,
+                                            hb_position_t *x, hb_position_t *y);
+
+void
+hb_font_get_glyph_kerning_for_direction (hb_font_t *font,
+                                        hb_codepoint_t first_glyph, hb_codepoint_t second_glyph,
+                                        hb_direction_t direction,
+                                        hb_position_t *x, hb_position_t *y);
+
+hb_bool_t
+hb_font_get_glyph_extents_for_origin (hb_font_t *font,
+                                     hb_codepoint_t glyph,
+                                     hb_direction_t direction,
+                                     hb_glyph_extents_t *extents);
+
+hb_bool_t
+hb_font_get_glyph_contour_point_for_origin (hb_font_t *font,
+                                           hb_codepoint_t glyph, unsigned int point_index,
+                                           hb_direction_t direction,
+                                           hb_position_t *x, hb_position_t *y);
+
+/* Generates gidDDD if glyph has no name. */
+void
+hb_font_glyph_to_string (hb_font_t *font,
+                        hb_codepoint_t glyph,
+                        char *s, unsigned int size);
+/* Parses gidDDD and uniUUUU strings automatically. */
+hb_bool_t
+hb_font_glyph_from_string (hb_font_t *font,
+                          const char *s, int len, /* -1 means nul-terminated */
+                          hb_codepoint_t *glyph);
+
+
+/*
+ * hb_font_t
+ */
+
+/* Fonts are very light-weight objects */
+
+hb_font_t *
+hb_font_create (hb_face_t *face);
+
+hb_font_t *
+hb_font_create_sub_font (hb_font_t *parent);
+
+hb_font_t *
+hb_font_get_empty (void);
+
+hb_font_t *
+hb_font_reference (hb_font_t *font);
+
+void
+hb_font_destroy (hb_font_t *font);
+
+hb_bool_t
+hb_font_set_user_data (hb_font_t          *font,
+                      hb_user_data_key_t *key,
+                      void *              data,
+                      hb_destroy_func_t   destroy,
+                      hb_bool_t           replace);
+
+
+void *
+hb_font_get_user_data (hb_font_t          *font,
+                      hb_user_data_key_t *key);
+
+void
+hb_font_make_immutable (hb_font_t *font);
+
+hb_bool_t
+hb_font_is_immutable (hb_font_t *font);
+
+hb_font_t *
+hb_font_get_parent (hb_font_t *font);
+
+hb_face_t *
+hb_font_get_face (hb_font_t *font);
+
+
+void
+hb_font_set_funcs (hb_font_t         *font,
+                  hb_font_funcs_t   *klass,
+                  void              *font_data,
+                  hb_destroy_func_t  destroy);
+
+/* Be *very* careful with this function! */
+void
+hb_font_set_funcs_data (hb_font_t         *font,
+                       void              *font_data,
+                       hb_destroy_func_t  destroy);
+
+
+void
+hb_font_set_scale (hb_font_t *font,
+                  int x_scale,
+                  int y_scale);
+
+void
+hb_font_get_scale (hb_font_t *font,
+                  int *x_scale,
+                  int *y_scale);
+
+/*
+ * A zero value means "no hinting in that direction"
+ */
+void
+hb_font_set_ppem (hb_font_t *font,
+                 unsigned int x_ppem,
+                 unsigned int y_ppem);
+
+void
+hb_font_get_ppem (hb_font_t *font,
+                 unsigned int *x_ppem,
+                 unsigned int *y_ppem);
+
+
+HB_END_DECLS
+
+#endif /* HB_FONT_H */
diff --git a/src/hb-ft.cc b/src/hb-ft.cc
new file mode 100644 (file)
index 0000000..16bf51f
--- /dev/null
@@ -0,0 +1,522 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ * Copyright © 2009  Keith Stribley
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ */
+
+#include "hb-private.hh"
+
+#include "hb-ft.h"
+
+#include "hb-font-private.hh"
+
+#include FT_ADVANCES_H
+#include FT_TRUETYPE_TABLES_H
+
+
+
+#ifndef HB_DEBUG_FT
+#define HB_DEBUG_FT (HB_DEBUG+0)
+#endif
+
+
+/* TODO:
+ *
+ * In general, this file does a fine job of what it's supposed to do.
+ * There are, however, things that need more work:
+ *
+ *   - We don't handle any load_flags.  That definitely has API implications. :(
+ *     I believe hb_ft_font_create() should take load_flags input.
+ *     In particular, FT_Get_Advance() without the NO_HINTING flag seems to be
+ *     buggy.
+ *
+ *   - We don't handle / allow for emboldening / obliqueing.
+ *
+ *   - In the future, we should add constructors to create fonts in font space?
+ *
+ *   - FT_Load_Glyph() is exteremely costly.  Do something about it?
+ */
+
+
+static hb_bool_t
+hb_ft_get_glyph (hb_font_t *font HB_UNUSED,
+                void *font_data,
+                hb_codepoint_t unicode,
+                hb_codepoint_t variation_selector,
+                hb_codepoint_t *glyph,
+                void *user_data HB_UNUSED)
+
+{
+  FT_Face ft_face = (FT_Face) font_data;
+
+#ifdef HAVE_FT_FACE_GETCHARVARIANTINDEX
+  if (unlikely (variation_selector)) {
+    *glyph = FT_Face_GetCharVariantIndex (ft_face, unicode, variation_selector);
+    return *glyph != 0;
+  }
+#endif
+
+  *glyph = FT_Get_Char_Index (ft_face, unicode);
+  return *glyph != 0;
+}
+
+static hb_position_t
+hb_ft_get_glyph_h_advance (hb_font_t *font HB_UNUSED,
+                          void *font_data,
+                          hb_codepoint_t glyph,
+                          void *user_data HB_UNUSED)
+{
+  FT_Face ft_face = (FT_Face) font_data;
+  int load_flags = FT_LOAD_DEFAULT | FT_LOAD_NO_HINTING;
+  FT_Fixed v;
+
+  if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v)))
+    return 0;
+
+  return (v + (1<<9)) >> 10;
+}
+
+static hb_position_t
+hb_ft_get_glyph_v_advance (hb_font_t *font HB_UNUSED,
+                          void *font_data,
+                          hb_codepoint_t glyph,
+                          void *user_data HB_UNUSED)
+{
+  FT_Face ft_face = (FT_Face) font_data;
+  int load_flags = FT_LOAD_DEFAULT | FT_LOAD_NO_HINTING | FT_LOAD_VERTICAL_LAYOUT;
+  FT_Fixed v;
+
+  if (unlikely (FT_Get_Advance (ft_face, glyph, load_flags, &v)))
+    return 0;
+
+  /* Note: FreeType's vertical metrics grows downward while other FreeType coordinates
+   * have a Y growing upward.  Hence the extra negation. */
+  return (-v + (1<<9)) >> 10;
+}
+
+static hb_bool_t
+hb_ft_get_glyph_h_origin (hb_font_t *font HB_UNUSED,
+                         void *font_data HB_UNUSED,
+                         hb_codepoint_t glyph HB_UNUSED,
+                         hb_position_t *x HB_UNUSED,
+                         hb_position_t *y HB_UNUSED,
+                         void *user_data HB_UNUSED)
+{
+  /* We always work in the horizontal coordinates. */
+  return true;
+}
+
+static hb_bool_t
+hb_ft_get_glyph_v_origin (hb_font_t *font HB_UNUSED,
+                         void *font_data,
+                         hb_codepoint_t glyph,
+                         hb_position_t *x,
+                         hb_position_t *y,
+                         void *user_data HB_UNUSED)
+{
+  FT_Face ft_face = (FT_Face) font_data;
+  int load_flags = FT_LOAD_DEFAULT;
+
+  if (unlikely (FT_Load_Glyph (ft_face, glyph, load_flags)))
+    return false;
+
+  /* Note: FreeType's vertical metrics grows downward while other FreeType coordinates
+   * have a Y growing upward.  Hence the extra negation. */
+  *x = ft_face->glyph->metrics.horiBearingX -   ft_face->glyph->metrics.vertBearingX;
+  *y = ft_face->glyph->metrics.horiBearingY - (-ft_face->glyph->metrics.vertBearingY);
+
+  return true;
+}
+
+static hb_position_t
+hb_ft_get_glyph_h_kerning (hb_font_t *font,
+                          void *font_data,
+                          hb_codepoint_t left_glyph,
+                          hb_codepoint_t right_glyph,
+                          void *user_data HB_UNUSED)
+{
+  FT_Face ft_face = (FT_Face) font_data;
+  FT_Vector kerningv;
+
+  FT_Kerning_Mode mode = font->x_ppem ? FT_KERNING_DEFAULT : FT_KERNING_UNFITTED;
+  if (FT_Get_Kerning (ft_face, left_glyph, right_glyph, mode, &kerningv))
+    return 0;
+
+  return kerningv.x;
+}
+
+static hb_position_t
+hb_ft_get_glyph_v_kerning (hb_font_t *font HB_UNUSED,
+                          void *font_data HB_UNUSED,
+                          hb_codepoint_t top_glyph HB_UNUSED,
+                          hb_codepoint_t bottom_glyph HB_UNUSED,
+                          void *user_data HB_UNUSED)
+{
+  /* FreeType API doesn't support vertical kerning */
+  return 0;
+}
+
+static hb_bool_t
+hb_ft_get_glyph_extents (hb_font_t *font HB_UNUSED,
+                        void *font_data,
+                        hb_codepoint_t glyph,
+                        hb_glyph_extents_t *extents,
+                        void *user_data HB_UNUSED)
+{
+  FT_Face ft_face = (FT_Face) font_data;
+  int load_flags = FT_LOAD_DEFAULT;
+
+  if (unlikely (FT_Load_Glyph (ft_face, glyph, load_flags)))
+    return false;
+
+  extents->x_bearing = ft_face->glyph->metrics.horiBearingX;
+  extents->y_bearing = ft_face->glyph->metrics.horiBearingY;
+  extents->width = ft_face->glyph->metrics.width;
+  extents->height = -ft_face->glyph->metrics.height;
+  return true;
+}
+
+static hb_bool_t
+hb_ft_get_glyph_contour_point (hb_font_t *font HB_UNUSED,
+                              void *font_data,
+                              hb_codepoint_t glyph,
+                              unsigned int point_index,
+                              hb_position_t *x,
+                              hb_position_t *y,
+                              void *user_data HB_UNUSED)
+{
+  FT_Face ft_face = (FT_Face) font_data;
+  int load_flags = FT_LOAD_DEFAULT;
+
+  if (unlikely (FT_Load_Glyph (ft_face, glyph, load_flags)))
+      return false;
+
+  if (unlikely (ft_face->glyph->format != FT_GLYPH_FORMAT_OUTLINE))
+      return false;
+
+  if (unlikely (point_index >= (unsigned int) ft_face->glyph->outline.n_points))
+      return false;
+
+  *x = ft_face->glyph->outline.points[point_index].x;
+  *y = ft_face->glyph->outline.points[point_index].y;
+
+  return true;
+}
+
+static hb_bool_t
+hb_ft_get_glyph_name (hb_font_t *font HB_UNUSED,
+                     void *font_data,
+                     hb_codepoint_t glyph,
+                     char *name, unsigned int size,
+                     void *user_data HB_UNUSED)
+{
+  FT_Face ft_face = (FT_Face) font_data;
+
+  hb_bool_t ret = !FT_Get_Glyph_Name (ft_face, glyph, name, size);
+  if (ret && (size && !*name))
+    ret = false;
+
+  return ret;
+}
+
+static hb_bool_t
+hb_ft_get_glyph_from_name (hb_font_t *font HB_UNUSED,
+                          void *font_data,
+                          const char *name, int len, /* -1 means nul-terminated */
+                          hb_codepoint_t *glyph,
+                          void *user_data HB_UNUSED)
+{
+  FT_Face ft_face = (FT_Face) font_data;
+
+  if (len < 0)
+    *glyph = FT_Get_Name_Index (ft_face, (FT_String *) name);
+  else {
+    /* Make a nul-terminated version. */
+    char buf[128];
+    len = MIN (len, (int) sizeof (buf) - 1);
+    strncpy (buf, name, len);
+    buf[len] = '\0';
+    *glyph = FT_Get_Name_Index (ft_face, buf);
+  }
+
+  if (*glyph == 0)
+  {
+    /* Check whether the given name was actually the name of glyph 0. */
+    char buf[128];
+    if (!FT_Get_Glyph_Name(ft_face, 0, buf, sizeof (buf)) &&
+        len < 0 ? !strcmp (buf, name) : !strncmp (buf, name, len))
+      return true;
+  }
+
+  return *glyph != 0;
+}
+
+
+static hb_font_funcs_t *
+_hb_ft_get_font_funcs (void)
+{
+  static const hb_font_funcs_t ft_ffuncs = {
+    HB_OBJECT_HEADER_STATIC,
+
+    true, /* immutable */
+
+    {
+#define HB_FONT_FUNC_IMPLEMENT(name) hb_ft_get_##name,
+      HB_FONT_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_FONT_FUNC_IMPLEMENT
+    }
+  };
+
+  return const_cast<hb_font_funcs_t *> (&ft_ffuncs);
+}
+
+
+static hb_blob_t *
+reference_table  (hb_face_t *face HB_UNUSED, hb_tag_t tag, void *user_data)
+{
+  FT_Face ft_face = (FT_Face) user_data;
+  FT_Byte *buffer;
+  FT_ULong  length = 0;
+  FT_Error error;
+
+  /* Note: FreeType like HarfBuzz uses the NONE tag for fetching the entire blob */
+
+  error = FT_Load_Sfnt_Table (ft_face, tag, 0, NULL, &length);
+  if (error)
+    return NULL;
+
+  buffer = (FT_Byte *) malloc (length);
+  if (buffer == NULL)
+    return NULL;
+
+  error = FT_Load_Sfnt_Table (ft_face, tag, 0, buffer, &length);
+  if (error)
+    return NULL;
+
+  return hb_blob_create ((const char *) buffer, length,
+                        HB_MEMORY_MODE_WRITABLE,
+                        buffer, free);
+}
+
+/**
+ * hb_ft_face_create:
+ * @ft_face: (destroy destroy) (scope notified): 
+ * @destroy:
+ *
+ * 
+ *
+ * Return value: (transfer full): 
+ * Since: 1.0
+ **/
+hb_face_t *
+hb_ft_face_create (FT_Face           ft_face,
+                  hb_destroy_func_t destroy)
+{
+  hb_face_t *face;
+
+  if (ft_face->stream->read == NULL) {
+    hb_blob_t *blob;
+
+    blob = hb_blob_create ((const char *) ft_face->stream->base,
+                          (unsigned int) ft_face->stream->size,
+                          /* TODO: We assume that it's mmap()'ed, but FreeType code
+                           * suggests that there are cases we reach here but font is
+                           * not mmapped.  For example, when mmap() fails.  No idea
+                           * how to deal with it better here. */
+                          HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE,
+                          ft_face, destroy);
+    face = hb_face_create (blob, ft_face->face_index);
+    hb_blob_destroy (blob);
+  } else {
+    face = hb_face_create_for_tables (reference_table, ft_face, destroy);
+  }
+
+  hb_face_set_index (face, ft_face->face_index);
+  hb_face_set_upem (face, ft_face->units_per_EM);
+
+  return face;
+}
+
+static void
+hb_ft_face_finalize (FT_Face ft_face)
+{
+  hb_face_destroy ((hb_face_t *) ft_face->generic.data);
+}
+
+/**
+ * hb_ft_face_create_cached:
+ * @ft_face: 
+ *
+ * 
+ *
+ * Return value: (transfer full): 
+ * Since: 1.0
+ **/
+hb_face_t *
+hb_ft_face_create_cached (FT_Face ft_face)
+{
+  if (unlikely (!ft_face->generic.data || ft_face->generic.finalizer != (FT_Generic_Finalizer) hb_ft_face_finalize))
+  {
+    if (ft_face->generic.finalizer)
+      ft_face->generic.finalizer (ft_face);
+
+    ft_face->generic.data = hb_ft_face_create (ft_face, NULL);
+    ft_face->generic.finalizer = (FT_Generic_Finalizer) hb_ft_face_finalize;
+  }
+
+  return hb_face_reference ((hb_face_t *) ft_face->generic.data);
+}
+
+static void
+_do_nothing (void)
+{
+}
+
+
+/**
+ * hb_ft_font_create:
+ * @ft_face: (destroy destroy) (scope notified): 
+ * @destroy:
+ *
+ * 
+ *
+ * Return value: (transfer full): 
+ * Since: 1.0
+ **/
+hb_font_t *
+hb_ft_font_create (FT_Face           ft_face,
+                  hb_destroy_func_t destroy)
+{
+  hb_font_t *font;
+  hb_face_t *face;
+
+  face = hb_ft_face_create (ft_face, destroy);
+  font = hb_font_create (face);
+  hb_face_destroy (face);
+  hb_font_set_funcs (font,
+                    _hb_ft_get_font_funcs (),
+                    ft_face, (hb_destroy_func_t) _do_nothing);
+  hb_font_set_scale (font,
+                    (int) (((uint64_t) ft_face->size->metrics.x_scale * (uint64_t) ft_face->units_per_EM + (1<<15)) >> 16),
+                    (int) (((uint64_t) ft_face->size->metrics.y_scale * (uint64_t) ft_face->units_per_EM + (1<<15)) >> 16));
+  hb_font_set_ppem (font,
+                   ft_face->size->metrics.x_ppem,
+                   ft_face->size->metrics.y_ppem);
+
+  return font;
+}
+
+
+/* Thread-safe, lock-free, FT_Library */
+
+static FT_Library ft_library;
+
+static inline
+void free_ft_library (void)
+{
+  FT_Done_FreeType (ft_library);
+}
+
+static FT_Library
+get_ft_library (void)
+{
+retry:
+  FT_Library library = (FT_Library) hb_atomic_ptr_get (&ft_library);
+
+  if (unlikely (!library))
+  {
+    /* Not found; allocate one. */
+    if (FT_Init_FreeType (&library))
+      return NULL;
+
+    if (!hb_atomic_ptr_cmpexch (&ft_library, NULL, library)) {
+      FT_Done_FreeType (library);
+      goto retry;
+    }
+
+#ifdef HB_USE_ATEXIT
+    atexit (free_ft_library); /* First person registers atexit() callback. */
+#endif
+  }
+
+  return library;
+}
+
+static void
+_release_blob (FT_Face ft_face)
+{
+  hb_blob_destroy ((hb_blob_t *) ft_face->generic.data);
+}
+
+void
+hb_ft_font_set_funcs (hb_font_t *font)
+{
+  hb_blob_t *blob = hb_face_reference_blob (font->face);
+  unsigned int blob_length;
+  const char *blob_data = hb_blob_get_data (blob, &blob_length);
+  if (unlikely (!blob_length))
+    DEBUG_MSG (FT, font, "Font face has empty blob");
+
+  FT_Face ft_face = NULL;
+  FT_Error err = FT_New_Memory_Face (get_ft_library (),
+                                    (const FT_Byte *) blob_data,
+                                    blob_length,
+                                    hb_face_get_index (font->face),
+                                    &ft_face);
+
+  if (unlikely (err)) {
+    hb_blob_destroy (blob);
+    DEBUG_MSG (FT, font, "Font face FT_New_Memory_Face() failed");
+    return;
+  }
+
+  FT_Select_Charmap (ft_face, FT_ENCODING_UNICODE);
+
+  assert (font->y_scale >= 0);
+  FT_Set_Char_Size (ft_face,
+                   font->x_scale, font->y_scale,
+                   0, 0);
+#if 0
+                   font->x_ppem * 72 * 64 / font->x_scale,
+                   font->y_ppem * 72 * 64 / font->y_scale);
+#endif
+
+  ft_face->generic.data = blob;
+  ft_face->generic.finalizer = (FT_Generic_Finalizer) _release_blob;
+
+  hb_font_set_funcs (font,
+                    _hb_ft_get_font_funcs (),
+                    ft_face,
+                    (hb_destroy_func_t) FT_Done_Face);
+}
+
+FT_Face
+hb_ft_font_get_face (hb_font_t *font)
+{
+  if (font->destroy == (hb_destroy_func_t) FT_Done_Face ||
+      font->destroy == (hb_destroy_func_t) _do_nothing)
+    return (FT_Face) font->user_data;
+
+  return NULL;
+}
diff --git a/src/hb-ft.h b/src/hb-ft.h
new file mode 100644 (file)
index 0000000..696251e
--- /dev/null
@@ -0,0 +1,62 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_FT_H
+#define HB_FT_H
+
+#include "hb.h"
+
+#include <ft2build.h>
+#include FT_FREETYPE_H
+
+HB_BEGIN_DECLS
+
+/* Note: FreeType is not thread-safe.  Hence, these functions are not either. */
+
+hb_face_t *
+hb_ft_face_create (FT_Face           ft_face,
+                  hb_destroy_func_t destroy);
+
+hb_face_t *
+hb_ft_face_create_cached (FT_Face ft_face);
+
+hb_font_t *
+hb_ft_font_create (FT_Face           ft_face,
+                  hb_destroy_func_t destroy);
+
+
+
+/* Makes an hb_font_t use FreeType internally to implement font functions. */
+void
+hb_ft_font_set_funcs (hb_font_t *font);
+
+FT_Face
+hb_ft_font_get_face (hb_font_t *font);
+
+
+HB_END_DECLS
+
+#endif /* HB_FT_H */
diff --git a/src/hb-glib.cc b/src/hb-glib.cc
new file mode 100644 (file)
index 0000000..af43cab
--- /dev/null
@@ -0,0 +1,384 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-private.hh"
+
+#include "hb-glib.h"
+
+#include "hb-unicode-private.hh"
+
+
+#if !GLIB_CHECK_VERSION(2,29,14)
+static const hb_script_t
+glib_script_to_script[] =
+{
+  HB_SCRIPT_COMMON,
+  HB_SCRIPT_INHERITED,
+  HB_SCRIPT_ARABIC,
+  HB_SCRIPT_ARMENIAN,
+  HB_SCRIPT_BENGALI,
+  HB_SCRIPT_BOPOMOFO,
+  HB_SCRIPT_CHEROKEE,
+  HB_SCRIPT_COPTIC,
+  HB_SCRIPT_CYRILLIC,
+  HB_SCRIPT_DESERET,
+  HB_SCRIPT_DEVANAGARI,
+  HB_SCRIPT_ETHIOPIC,
+  HB_SCRIPT_GEORGIAN,
+  HB_SCRIPT_GOTHIC,
+  HB_SCRIPT_GREEK,
+  HB_SCRIPT_GUJARATI,
+  HB_SCRIPT_GURMUKHI,
+  HB_SCRIPT_HAN,
+  HB_SCRIPT_HANGUL,
+  HB_SCRIPT_HEBREW,
+  HB_SCRIPT_HIRAGANA,
+  HB_SCRIPT_KANNADA,
+  HB_SCRIPT_KATAKANA,
+  HB_SCRIPT_KHMER,
+  HB_SCRIPT_LAO,
+  HB_SCRIPT_LATIN,
+  HB_SCRIPT_MALAYALAM,
+  HB_SCRIPT_MONGOLIAN,
+  HB_SCRIPT_MYANMAR,
+  HB_SCRIPT_OGHAM,
+  HB_SCRIPT_OLD_ITALIC,
+  HB_SCRIPT_ORIYA,
+  HB_SCRIPT_RUNIC,
+  HB_SCRIPT_SINHALA,
+  HB_SCRIPT_SYRIAC,
+  HB_SCRIPT_TAMIL,
+  HB_SCRIPT_TELUGU,
+  HB_SCRIPT_THAANA,
+  HB_SCRIPT_THAI,
+  HB_SCRIPT_TIBETAN,
+  HB_SCRIPT_CANADIAN_SYLLABICS,
+  HB_SCRIPT_YI,
+  HB_SCRIPT_TAGALOG,
+  HB_SCRIPT_HANUNOO,
+  HB_SCRIPT_BUHID,
+  HB_SCRIPT_TAGBANWA,
+
+  /* Unicode-4.0 additions */
+  HB_SCRIPT_BRAILLE,
+  HB_SCRIPT_CYPRIOT,
+  HB_SCRIPT_LIMBU,
+  HB_SCRIPT_OSMANYA,
+  HB_SCRIPT_SHAVIAN,
+  HB_SCRIPT_LINEAR_B,
+  HB_SCRIPT_TAI_LE,
+  HB_SCRIPT_UGARITIC,
+
+  /* Unicode-4.1 additions */
+  HB_SCRIPT_NEW_TAI_LUE,
+  HB_SCRIPT_BUGINESE,
+  HB_SCRIPT_GLAGOLITIC,
+  HB_SCRIPT_TIFINAGH,
+  HB_SCRIPT_SYLOTI_NAGRI,
+  HB_SCRIPT_OLD_PERSIAN,
+  HB_SCRIPT_KHAROSHTHI,
+
+  /* Unicode-5.0 additions */
+  HB_SCRIPT_UNKNOWN,
+  HB_SCRIPT_BALINESE,
+  HB_SCRIPT_CUNEIFORM,
+  HB_SCRIPT_PHOENICIAN,
+  HB_SCRIPT_PHAGS_PA,
+  HB_SCRIPT_NKO,
+
+  /* Unicode-5.1 additions */
+  HB_SCRIPT_KAYAH_LI,
+  HB_SCRIPT_LEPCHA,
+  HB_SCRIPT_REJANG,
+  HB_SCRIPT_SUNDANESE,
+  HB_SCRIPT_SAURASHTRA,
+  HB_SCRIPT_CHAM,
+  HB_SCRIPT_OL_CHIKI,
+  HB_SCRIPT_VAI,
+  HB_SCRIPT_CARIAN,
+  HB_SCRIPT_LYCIAN,
+  HB_SCRIPT_LYDIAN,
+
+  /* Unicode-5.2 additions */
+  HB_SCRIPT_AVESTAN,
+  HB_SCRIPT_BAMUM,
+  HB_SCRIPT_EGYPTIAN_HIEROGLYPHS,
+  HB_SCRIPT_IMPERIAL_ARAMAIC,
+  HB_SCRIPT_INSCRIPTIONAL_PAHLAVI,
+  HB_SCRIPT_INSCRIPTIONAL_PARTHIAN,
+  HB_SCRIPT_JAVANESE,
+  HB_SCRIPT_KAITHI,
+  HB_SCRIPT_TAI_THAM,
+  HB_SCRIPT_LISU,
+  HB_SCRIPT_MEETEI_MAYEK,
+  HB_SCRIPT_OLD_SOUTH_ARABIAN,
+  HB_SCRIPT_OLD_TURKIC,
+  HB_SCRIPT_SAMARITAN,
+  HB_SCRIPT_TAI_VIET,
+
+  /* Unicode-6.0 additions */
+  HB_SCRIPT_BATAK,
+  HB_SCRIPT_BRAHMI,
+  HB_SCRIPT_MANDAIC,
+
+  /* Unicode-6.1 additions */
+  HB_SCRIPT_CHAKMA,
+  HB_SCRIPT_MEROITIC_CURSIVE,
+  HB_SCRIPT_MEROITIC_HIEROGLYPHS,
+  HB_SCRIPT_MIAO,
+  HB_SCRIPT_SHARADA,
+  HB_SCRIPT_SORA_SOMPENG,
+  HB_SCRIPT_TAKRI
+};
+#endif
+
+hb_script_t
+hb_glib_script_to_script (GUnicodeScript script)
+{
+#if GLIB_CHECK_VERSION(2,29,14)
+  return (hb_script_t) g_unicode_script_to_iso15924 (script);
+#else
+  if (likely ((unsigned int) script < ARRAY_LENGTH (glib_script_to_script)))
+    return glib_script_to_script[script];
+
+  if (unlikely (script == G_UNICODE_SCRIPT_INVALID_CODE))
+    return HB_SCRIPT_INVALID;
+
+  return HB_SCRIPT_UNKNOWN;
+#endif
+}
+
+GUnicodeScript
+hb_glib_script_from_script (hb_script_t script)
+{
+#if GLIB_CHECK_VERSION(2,29,14)
+  return g_unicode_script_from_iso15924 (script);
+#else
+  unsigned int count = ARRAY_LENGTH (glib_script_to_script);
+  for (unsigned int i = 0; i < count; i++)
+    if (glib_script_to_script[i] == script)
+      return (GUnicodeScript) i;
+
+  if (unlikely (script == HB_SCRIPT_INVALID))
+    return G_UNICODE_SCRIPT_INVALID_CODE;
+
+  return G_UNICODE_SCRIPT_UNKNOWN;
+#endif
+}
+
+
+static hb_unicode_combining_class_t
+hb_glib_unicode_combining_class (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                                hb_codepoint_t      unicode,
+                                void               *user_data HB_UNUSED)
+
+{
+  return (hb_unicode_combining_class_t) g_unichar_combining_class (unicode);
+}
+
+static unsigned int
+hb_glib_unicode_eastasian_width (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                                hb_codepoint_t      unicode,
+                                void               *user_data HB_UNUSED)
+{
+  return g_unichar_iswide (unicode) ? 2 : 1;
+}
+
+static hb_unicode_general_category_t
+hb_glib_unicode_general_category (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                                 hb_codepoint_t      unicode,
+                                 void               *user_data HB_UNUSED)
+
+{
+  /* hb_unicode_general_category_t and GUnicodeType are identical */
+  return (hb_unicode_general_category_t) g_unichar_type (unicode);
+}
+
+static hb_codepoint_t
+hb_glib_unicode_mirroring (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                          hb_codepoint_t      unicode,
+                          void               *user_data HB_UNUSED)
+{
+  g_unichar_get_mirror_char (unicode, &unicode);
+  return unicode;
+}
+
+static hb_script_t
+hb_glib_unicode_script (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                       hb_codepoint_t      unicode,
+                       void               *user_data HB_UNUSED)
+{
+  return hb_glib_script_to_script (g_unichar_get_script (unicode));
+}
+
+static hb_bool_t
+hb_glib_unicode_compose (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                        hb_codepoint_t      a,
+                        hb_codepoint_t      b,
+                        hb_codepoint_t     *ab,
+                        void               *user_data HB_UNUSED)
+{
+#if GLIB_CHECK_VERSION(2,29,12)
+  return g_unichar_compose (a, b, ab);
+#endif
+
+  /* We don't ifdef-out the fallback code such that compiler always
+   * sees it and makes sure it's compilable. */
+
+  gchar utf8[12];
+  gchar *normalized;
+  int len;
+  hb_bool_t ret;
+
+  len = g_unichar_to_utf8 (a, utf8);
+  len += g_unichar_to_utf8 (b, utf8 + len);
+  normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFC);
+  len = g_utf8_strlen (normalized, -1);
+  if (unlikely (!len))
+    return false;
+
+  if (len == 1) {
+    *ab = g_utf8_get_char (normalized);
+    ret = true;
+  } else {
+    ret = false;
+  }
+
+  g_free (normalized);
+  return ret;
+}
+
+static hb_bool_t
+hb_glib_unicode_decompose (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                          hb_codepoint_t      ab,
+                          hb_codepoint_t     *a,
+                          hb_codepoint_t     *b,
+                          void               *user_data HB_UNUSED)
+{
+#if GLIB_CHECK_VERSION(2,29,12)
+  return g_unichar_decompose (ab, a, b);
+#endif
+
+  /* We don't ifdef-out the fallback code such that compiler always
+   * sees it and makes sure it's compilable. */
+
+  gchar utf8[6];
+  gchar *normalized;
+  int len;
+  hb_bool_t ret;
+
+  len = g_unichar_to_utf8 (ab, utf8);
+  normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFD);
+  len = g_utf8_strlen (normalized, -1);
+  if (unlikely (!len))
+    return false;
+
+  if (len == 1) {
+    *a = g_utf8_get_char (normalized);
+    *b = 0;
+    ret = *a != ab;
+  } else if (len == 2) {
+    *a = g_utf8_get_char (normalized);
+    *b = g_utf8_get_char (g_utf8_next_char (normalized));
+    /* Here's the ugly part: if ab decomposes to a single character and
+     * that character decomposes again, we have to detect that and undo
+     * the second part :-(. */
+    gchar *recomposed = g_utf8_normalize (normalized, -1, G_NORMALIZE_NFC);
+    hb_codepoint_t c = g_utf8_get_char (recomposed);
+    if (c != ab && c != *a) {
+      *a = c;
+      *b = 0;
+    }
+    g_free (recomposed);
+    ret = true;
+  } else {
+    /* If decomposed to more than two characters, take the last one,
+     * and recompose the rest to get the first component. */
+    gchar *end = g_utf8_offset_to_pointer (normalized, len - 1);
+    gchar *recomposed;
+    *b = g_utf8_get_char (end);
+    recomposed = g_utf8_normalize (normalized, end - normalized, G_NORMALIZE_NFC);
+    /* We expect that recomposed has exactly one character now. */
+    *a = g_utf8_get_char (recomposed);
+    g_free (recomposed);
+    ret = true;
+  }
+
+  g_free (normalized);
+  return ret;
+}
+
+static unsigned int
+hb_glib_unicode_decompose_compatibility (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                                        hb_codepoint_t      u,
+                                        hb_codepoint_t     *decomposed,
+                                        void               *user_data HB_UNUSED)
+{
+#if GLIB_CHECK_VERSION(2,29,12)
+  return g_unichar_fully_decompose (u, true, decomposed, HB_UNICODE_MAX_DECOMPOSITION_LEN);
+#endif
+
+  /* If the user doesn't have GLib >= 2.29.12 we have to perform
+   * a round trip to UTF-8 and the associated memory management dance. */
+  gchar utf8[6];
+  gchar *utf8_decomposed, *c;
+  gsize utf8_len, utf8_decomposed_len, i;
+
+  /* Convert @u to UTF-8 and normalise it in NFKD mode. This performs the compatibility decomposition. */
+  utf8_len = g_unichar_to_utf8 (u, utf8);
+  utf8_decomposed = g_utf8_normalize (utf8, utf8_len, G_NORMALIZE_NFKD);
+  utf8_decomposed_len = g_utf8_strlen (utf8_decomposed, -1);
+
+  assert (utf8_decomposed_len <= HB_UNICODE_MAX_DECOMPOSITION_LEN);
+
+  for (i = 0, c = utf8_decomposed; i < utf8_decomposed_len; i++, c = g_utf8_next_char (c))
+    *decomposed++ = g_utf8_get_char (c);
+
+  g_free (utf8_decomposed);
+
+  return utf8_decomposed_len;
+}
+
+hb_unicode_funcs_t *
+hb_glib_get_unicode_funcs (void)
+{
+  static const hb_unicode_funcs_t _hb_glib_unicode_funcs = {
+    HB_OBJECT_HEADER_STATIC,
+
+    NULL, /* parent */
+    true, /* immutable */
+    {
+#define HB_UNICODE_FUNC_IMPLEMENT(name) hb_glib_unicode_##name,
+      HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_UNICODE_FUNC_IMPLEMENT
+    }
+  };
+
+  return const_cast<hb_unicode_funcs_t *> (&_hb_glib_unicode_funcs);
+}
+
diff --git a/src/hb-glib.h b/src/hb-glib.h
new file mode 100644 (file)
index 0000000..63a9d33
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_GLIB_H
+#define HB_GLIB_H
+
+#include "hb.h"
+
+#include <glib.h>
+
+HB_BEGIN_DECLS
+
+
+hb_script_t
+hb_glib_script_to_script (GUnicodeScript script);
+
+GUnicodeScript
+hb_glib_script_from_script (hb_script_t script);
+
+
+hb_unicode_funcs_t *
+hb_glib_get_unicode_funcs (void);
+
+
+HB_END_DECLS
+
+#endif /* HB_GLIB_H */
diff --git a/src/hb-gobject-enums.cc.tmpl b/src/hb-gobject-enums.cc.tmpl
new file mode 100644 (file)
index 0000000..ca458a3
--- /dev/null
@@ -0,0 +1,73 @@
+/*** BEGIN file-header ***/
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-private.hh"
+
+/* g++ didn't like older gtype.h gcc-only code path. */
+#include <glib.h>
+#if !GLIB_CHECK_VERSION(2,29,16)
+#undef __GNUC__
+#undef __GNUC_MINOR__
+#define __GNUC__ 2
+#define __GNUC_MINOR__ 6
+#endif
+
+#include "hb-gobject.h"
+
+/*** END file-header ***/
+
+/*** BEGIN file-production ***/
+/* enumerations from "@filename@" */
+/*** END file-production ***/
+
+/*** BEGIN value-header ***/
+GType
+@enum_name@_get_type (void)
+{
+  static gsize type_id = 0;
+
+  if (g_once_init_enter (&type_id))
+    {
+      static const G@Type@Value values[] = {
+/*** END value-header ***/
+
+/*** BEGIN value-production ***/
+        { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
+/*** END value-production ***/
+
+/*** BEGIN value-tail ***/
+        { 0, NULL, NULL }
+      };
+      GType id =
+        g_@type@_register_static (g_intern_static_string ("@EnumName@"), values);
+      g_once_init_leave (&type_id, id);
+    }
+
+  return type_id;
+}
+
+/*** END value-tail ***/
diff --git a/src/hb-gobject-enums.h.tmpl b/src/hb-gobject-enums.h.tmpl
new file mode 100644 (file)
index 0000000..6ecda06
--- /dev/null
@@ -0,0 +1,55 @@
+/*** BEGIN file-header ***/
+/*
+ * Copyright © 2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_GOBJECT_H_IN
+#error "Include <hb-gobject.h> instead."
+#endif
+
+#ifndef HB_GOBJECT_ENUMS_H
+#define HB_GOBJECT_ENUMS_H
+
+#include "hb.h"
+
+#include <glib-object.h>
+
+HB_BEGIN_DECLS
+
+
+/*** END file-header ***/
+
+/*** BEGIN value-header ***/
+GType @enum_name@_get_type (void) G_GNUC_CONST;
+#define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ())
+
+/*** END value-header ***/
+
+/*** BEGIN file-tail ***/
+
+HB_END_DECLS
+
+#endif /* HB_GOBJECT_ENUMS_H */
+/*** END file-tail ***/
diff --git a/src/hb-gobject-structs.cc b/src/hb-gobject-structs.cc
new file mode 100644 (file)
index 0000000..2451b66
--- /dev/null
@@ -0,0 +1,120 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-private.hh"
+
+/* g++ didn't like older gtype.h gcc-only code path. */
+#include <glib.h>
+#if !GLIB_CHECK_VERSION(2,29,16)
+#undef __GNUC__
+#undef __GNUC_MINOR__
+#define __GNUC__ 2
+#define __GNUC_MINOR__ 6
+#endif
+
+#include "hb-gobject.h"
+
+#define HB_DEFINE_BOXED_TYPE(name,copy_func,free_func) \
+GType \
+hb_gobject_##name##_get_type (void) \
+{ \
+   static gsize type_id = 0; \
+   if (g_once_init_enter (&type_id)) { \
+      GType id = g_boxed_type_register_static (g_intern_static_string ("hb_" #name "_t"), \
+                                              (GBoxedCopyFunc) copy_func, \
+                                              (GBoxedFreeFunc) free_func); \
+      g_once_init_leave (&type_id, id); \
+   } \
+   return type_id; \
+}
+
+#define HB_DEFINE_OBJECT_TYPE(name) \
+       HB_DEFINE_BOXED_TYPE (name, hb_##name##_reference, hb_##name##_destroy);
+
+HB_DEFINE_OBJECT_TYPE (buffer)
+HB_DEFINE_OBJECT_TYPE (blob)
+HB_DEFINE_OBJECT_TYPE (face)
+HB_DEFINE_OBJECT_TYPE (font)
+HB_DEFINE_OBJECT_TYPE (font_funcs)
+HB_DEFINE_OBJECT_TYPE (set)
+HB_DEFINE_OBJECT_TYPE (shape_plan)
+HB_DEFINE_OBJECT_TYPE (unicode_funcs)
+
+
+static hb_feature_t *feature_reference (hb_feature_t *g)
+{
+  hb_feature_t *c = (hb_feature_t *) calloc (1, sizeof (hb_feature_t));
+  if (unlikely (!c)) return NULL;
+  *c = *g;
+  return c;
+}
+static void feature_destroy (hb_feature_t *g) { free (g); }
+HB_DEFINE_BOXED_TYPE (feature, feature_reference, feature_destroy)
+
+static hb_glyph_info_t *glyph_info_reference (hb_glyph_info_t *g)
+{
+  hb_glyph_info_t *c = (hb_glyph_info_t *) calloc (1, sizeof (hb_glyph_info_t));
+  if (unlikely (!c)) return NULL;
+  *c = *g;
+  return c;
+}
+static void glyph_info_destroy (hb_glyph_info_t *g) { free (g); }
+HB_DEFINE_BOXED_TYPE (glyph_info, glyph_info_reference, glyph_info_destroy)
+
+static hb_glyph_position_t *glyph_position_reference (hb_glyph_position_t *g)
+{
+  hb_glyph_position_t *c = (hb_glyph_position_t *) calloc (1, sizeof (hb_glyph_position_t));
+  if (unlikely (!c)) return NULL;
+  *c = *g;
+  return c;
+}
+static void glyph_position_destroy (hb_glyph_position_t *g) { free (g); }
+HB_DEFINE_BOXED_TYPE (glyph_position, glyph_position_reference, glyph_position_destroy)
+
+static hb_segment_properties_t *segment_properties_reference (hb_segment_properties_t *g)
+{
+  hb_segment_properties_t *c = (hb_segment_properties_t *) calloc (1, sizeof (hb_segment_properties_t));
+  if (unlikely (!c)) return NULL;
+  *c = *g;
+  return c;
+}
+static void segment_properties_destroy (hb_segment_properties_t *g) { free (g); }
+HB_DEFINE_BOXED_TYPE (segment_properties, segment_properties_reference, segment_properties_destroy)
+
+static hb_user_data_key_t user_data_key_reference (hb_user_data_key_t l) { return l; }
+static void user_data_key_destroy (hb_user_data_key_t l) { }
+HB_DEFINE_BOXED_TYPE (user_data_key, user_data_key_reference, user_data_key_destroy)
+
+
+static hb_language_t *language_reference (hb_language_t *l)
+{
+  hb_language_t *c = (hb_language_t *) calloc (1, sizeof (hb_language_t));
+  if (unlikely (!c)) return NULL;
+  *c = *l;
+  return c;
+}
+static void language_destroy (hb_language_t *l) { free (l); }
+HB_DEFINE_BOXED_TYPE (language, language_reference, language_destroy)
diff --git a/src/hb-gobject-structs.h b/src/hb-gobject-structs.h
new file mode 100644 (file)
index 0000000..4a88d56
--- /dev/null
@@ -0,0 +1,95 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_GOBJECT_H_IN
+#error "Include <hb-gobject.h> instead."
+#endif
+
+#ifndef HB_GOBJECT_STRUCTS_H
+#define HB_GOBJECT_STRUCTS_H
+
+#include "hb.h"
+
+#include <glib-object.h>
+
+HB_BEGIN_DECLS
+
+
+/* Object types */
+
+GType hb_gobject_blob_get_type (void);
+#define HB_GOBJECT_TYPE_BLOB (hb_gobject_blob_get_type ())
+
+GType hb_gobject_buffer_get_type (void);
+#define HB_GOBJECT_TYPE_BUFFER (hb_gobject_buffer_get_type ())
+
+GType hb_gobject_face_get_type (void);
+#define HB_GOBJECT_TYPE_FACE (hb_gobject_face_get_type ())
+
+GType hb_gobject_font_get_type (void);
+#define HB_GOBJECT_TYPE_FONT (hb_gobject_font_get_type ())
+
+GType hb_gobject_font_funcs_get_type (void);
+#define HB_GOBJECT_TYPE_FONT_FUNCS (hb_gobject_font_funcs_get_type ())
+
+GType hb_gobject_set_get_type (void);
+#define HB_GOBJECT_TYPE_SET (hb_gobject_set_get_type ())
+
+GType hb_gobject_shape_plan_get_type (void);
+#define HB_GOBJECT_TYPE_SHAPE_PLAN (hb_gobject_shape_plan_get_type ())
+
+GType hb_gobject_unicode_funcs_get_type (void);
+#define HB_GOBJECT_TYPE_UNICODE_FUNCS (hb_gobject_unicode_funcs_get_type ())
+
+/* Value types */
+
+GType hb_gobject_feature_get_type (void);
+#define HB_GOBJECT_TYPE_FEATURE (hb_gobject_feature_get_type ())
+
+GType hb_gobject_glyph_info_get_type (void);
+#define HB_GOBJECT_TYPE_GLYPH_INFO (hb_gobject_glyph_info_get_type ())
+
+GType hb_gobject_glyph_position_get_type (void);
+#define HB_GOBJECT_TYPE_GLYPH_POSITION (hb_gobject_glyph_position_get_type ())
+
+GType hb_gobject_segment_properties_get_type (void);
+#define HB_GOBJECT_TYPE_SEGMENT_PROPERTIES (hb_gobject_segment_properties_get_type ())
+
+GType hb_gobject_user_data_key_get_type (void);
+#define HB_GOBJECT_TYPE_USER_DATA_KEY (hb_gobject_user_data_key_get_type ())
+
+/* Currently gobject-introspection doesn't understand that hb_language_t
+ * can be passed by-value.  As such we box it up.  May remove in the
+ * future.
+ *
+ *   https://bugzilla.gnome.org/show_bug.cgi?id=707656
+ */
+GType hb_gobject_language_get_type (void);
+#define HB_GOBJECT_TYPE_LANGUAGE (hb_gobject_language_get_type ())
+
+HB_END_DECLS
+
+#endif /* HB_GOBJECT_H */
diff --git a/src/hb-gobject.h b/src/hb-gobject.h
new file mode 100644 (file)
index 0000000..ea1bd25
--- /dev/null
@@ -0,0 +1,40 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_GOBJECT_H
+#define HB_GOBJECT_H
+#define HB_GOBJECT_H_IN
+
+#include "hb.h"
+
+#include "hb-gobject-enums.h"
+#include "hb-gobject-structs.h"
+
+HB_BEGIN_DECLS
+HB_END_DECLS
+
+#undef HB_GOBJECT_H_IN
+#endif /* HB_GOBJECT_H */
diff --git a/src/hb-graphite2.cc b/src/hb-graphite2.cc
new file mode 100644 (file)
index 0000000..807c330
--- /dev/null
@@ -0,0 +1,376 @@
+/*
+ * Copyright © 2011  Martin Hosken
+ * Copyright © 2011  SIL International
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#define HB_SHAPER graphite2
+#define hb_graphite2_shaper_font_data_t gr_font
+#include "hb-shaper-impl-private.hh"
+
+#include "hb-graphite2.h"
+
+#include <graphite2/Segment.h>
+
+
+HB_SHAPER_DATA_ENSURE_DECLARE(graphite2, face)
+HB_SHAPER_DATA_ENSURE_DECLARE(graphite2, font)
+
+
+/*
+ * shaper face data
+ */
+
+typedef struct hb_graphite2_tablelist_t {
+  struct hb_graphite2_tablelist_t *next;
+  hb_blob_t *blob;
+  unsigned int tag;
+} hb_graphite2_tablelist_t;
+
+struct hb_graphite2_shaper_face_data_t {
+  hb_face_t *face;
+  gr_face   *grface;
+  hb_graphite2_tablelist_t *tlist;
+};
+
+static const void *hb_graphite2_get_table (const void *data, unsigned int tag, size_t *len)
+{
+  hb_graphite2_shaper_face_data_t *face_data = (hb_graphite2_shaper_face_data_t *) data;
+  hb_graphite2_tablelist_t *tlist = face_data->tlist;
+
+  hb_blob_t *blob = NULL;
+
+  for (hb_graphite2_tablelist_t *p = tlist; p; p = p->next)
+    if (p->tag == tag) {
+      blob = p->blob;
+      break;
+    }
+
+  if (unlikely (!blob))
+  {
+    blob = face_data->face->reference_table (tag);
+
+    hb_graphite2_tablelist_t *p = (hb_graphite2_tablelist_t *) calloc (1, sizeof (hb_graphite2_tablelist_t));
+    if (unlikely (!p)) {
+      hb_blob_destroy (blob);
+      return NULL;
+    }
+    p->blob = blob;
+    p->tag = tag;
+
+    /* TODO Not thread-safe, but fairly harmless.
+     * We can do the double-chcked pointer cmpexch thing here. */
+    p->next = face_data->tlist;
+    face_data->tlist = p;
+  }
+
+  unsigned int tlen;
+  const char *d = hb_blob_get_data (blob, &tlen);
+  *len = tlen;
+  return d;
+}
+
+hb_graphite2_shaper_face_data_t *
+_hb_graphite2_shaper_face_data_create (hb_face_t *face)
+{
+  hb_blob_t *silf_blob = face->reference_table (HB_GRAPHITE2_TAG_SILF);
+  /* Umm, we just reference the table to check whether it exists.
+   * Maybe add better API for this? */
+  if (!hb_blob_get_length (silf_blob))
+  {
+    hb_blob_destroy (silf_blob);
+    return NULL;
+  }
+  hb_blob_destroy (silf_blob);
+
+  hb_graphite2_shaper_face_data_t *data = (hb_graphite2_shaper_face_data_t *) calloc (1, sizeof (hb_graphite2_shaper_face_data_t));
+  if (unlikely (!data))
+    return NULL;
+
+  data->face = face;
+  data->grface = gr_make_face (data, &hb_graphite2_get_table, gr_face_preloadAll);
+
+  if (unlikely (!data->grface)) {
+    free (data);
+    return NULL;
+  }
+
+  return data;
+}
+
+void
+_hb_graphite2_shaper_face_data_destroy (hb_graphite2_shaper_face_data_t *data)
+{
+  hb_graphite2_tablelist_t *tlist = data->tlist;
+
+  while (tlist)
+  {
+    hb_graphite2_tablelist_t *old = tlist;
+    hb_blob_destroy (tlist->blob);
+    tlist = tlist->next;
+    free (old);
+  }
+
+  gr_face_destroy (data->grface);
+
+  free (data);
+}
+
+gr_face *
+hb_graphite2_face_get_gr_face (hb_face_t *face)
+{
+  if (unlikely (!hb_graphite2_shaper_face_data_ensure (face))) return NULL;
+  return HB_SHAPER_DATA_GET (face)->grface;
+}
+
+
+/*
+ * shaper font data
+ */
+
+static float hb_graphite2_get_advance (const void *hb_font, unsigned short gid)
+{
+  return ((hb_font_t *) hb_font)->get_glyph_h_advance (gid);
+}
+
+hb_graphite2_shaper_font_data_t *
+_hb_graphite2_shaper_font_data_create (hb_font_t *font)
+{
+  if (unlikely (!hb_graphite2_shaper_face_data_ensure (font->face))) return NULL;
+
+  hb_face_t *face = font->face;
+  hb_graphite2_shaper_face_data_t *face_data = HB_SHAPER_DATA_GET (face);
+
+  return gr_make_font_with_advance_fn (font->x_scale, font, &hb_graphite2_get_advance, face_data->grface);
+}
+
+void
+_hb_graphite2_shaper_font_data_destroy (hb_graphite2_shaper_font_data_t *data)
+{
+  gr_font_destroy (data);
+}
+
+gr_font *
+hb_graphite2_font_get_gr_font (hb_font_t *font)
+{
+  if (unlikely (!hb_graphite2_shaper_font_data_ensure (font))) return NULL;
+  return HB_SHAPER_DATA_GET (font);
+}
+
+
+/*
+ * shaper shape_plan data
+ */
+
+struct hb_graphite2_shaper_shape_plan_data_t {};
+
+hb_graphite2_shaper_shape_plan_data_t *
+_hb_graphite2_shaper_shape_plan_data_create (hb_shape_plan_t    *shape_plan HB_UNUSED,
+                                            const hb_feature_t *user_features HB_UNUSED,
+                                            unsigned int        num_user_features HB_UNUSED)
+{
+  return (hb_graphite2_shaper_shape_plan_data_t *) HB_SHAPER_DATA_SUCCEEDED;
+}
+
+void
+_hb_graphite2_shaper_shape_plan_data_destroy (hb_graphite2_shaper_shape_plan_data_t *data HB_UNUSED)
+{
+}
+
+
+/*
+ * shaper
+ */
+
+struct hb_graphite2_cluster_t {
+  unsigned int base_char;
+  unsigned int num_chars;
+  unsigned int base_glyph;
+  unsigned int num_glyphs;
+  unsigned int cluster;
+};
+
+hb_bool_t
+_hb_graphite2_shape (hb_shape_plan_t    *shape_plan,
+                    hb_font_t          *font,
+                    hb_buffer_t        *buffer,
+                    const hb_feature_t *features,
+                    unsigned int        num_features)
+{
+  hb_face_t *face = font->face;
+  gr_face *grface = HB_SHAPER_DATA_GET (face)->grface;
+  gr_font *grfont = HB_SHAPER_DATA_GET (font);
+
+  const char *lang = hb_language_to_string (hb_buffer_get_language (buffer));
+  const char *lang_end = lang ? strchr (lang, '-') : NULL;
+  int lang_len = lang_end ? lang_end - lang : -1;
+  gr_feature_val *feats = gr_face_featureval_for_lang (grface, lang ? hb_tag_from_string (lang, lang_len) : 0);
+
+  while (num_features--)
+  {
+    const gr_feature_ref *fref = gr_face_find_fref (grface, features->tag);
+    if (fref)
+      gr_fref_set_feature_value (fref, features->value, feats);
+    features++;
+  }
+
+  gr_segment *seg = NULL;
+  const gr_slot *is;
+  unsigned int ci = 0, ic = 0;
+  float curradvx = 0., curradvy = 0.;
+
+  unsigned int scratch_size;
+  hb_buffer_t::scratch_buffer_t *scratch = buffer->get_scratch_buffer (&scratch_size);
+
+  uint32_t *chars = (uint32_t *) scratch;
+
+  for (unsigned int i = 0; i < buffer->len; ++i)
+    chars[i] = buffer->info[i].codepoint;
+
+  hb_tag_t script_tag[2];
+  hb_ot_tags_from_script (hb_buffer_get_script (buffer), &script_tag[0], &script_tag[1]);
+
+  seg = gr_make_seg (grfont, grface,
+                    script_tag[1] == HB_TAG_NONE ? script_tag[0] : script_tag[1],
+                    feats,
+                    gr_utf32, chars, buffer->len,
+                    2 | (hb_buffer_get_direction (buffer) == HB_DIRECTION_RTL ? 1 : 0));
+
+  if (unlikely (!seg)) {
+    if (feats) gr_featureval_destroy (feats);
+    return false;
+  }
+
+  unsigned int glyph_count = gr_seg_n_slots (seg);
+  if (unlikely (!glyph_count)) {
+    if (feats) gr_featureval_destroy (feats);
+    gr_seg_destroy (seg);
+    return false;
+  }
+
+  scratch = buffer->get_scratch_buffer (&scratch_size);
+  while ((DIV_CEIL (sizeof (hb_graphite2_cluster_t) * buffer->len, sizeof (*scratch)) +
+         DIV_CEIL (sizeof (hb_codepoint_t) * glyph_count, sizeof (*scratch))) > scratch_size)
+  {
+    if (unlikely (!buffer->ensure (buffer->allocated * 2)))
+    {
+      if (feats) gr_featureval_destroy (feats);
+      gr_seg_destroy (seg);
+      return false;
+    }
+    scratch = buffer->get_scratch_buffer (&scratch_size);
+  }
+
+#define ALLOCATE_ARRAY(Type, name, len) \
+  Type *name = (Type *) scratch; \
+  { \
+    unsigned int _consumed = DIV_CEIL ((len) * sizeof (Type), sizeof (*scratch)); \
+    assert (_consumed <= scratch_size); \
+    scratch += _consumed; \
+    scratch_size -= _consumed; \
+  }
+
+  ALLOCATE_ARRAY (hb_graphite2_cluster_t, clusters, buffer->len);
+  ALLOCATE_ARRAY (hb_codepoint_t, gids, glyph_count);
+
+#undef ALLOCATE_ARRAY
+
+  memset (clusters, 0, sizeof (clusters[0]) * buffer->len);
+
+  hb_codepoint_t *pg = gids;
+  clusters[0].cluster = buffer->info[0].cluster;
+  for (is = gr_seg_first_slot (seg), ic = 0; is; is = gr_slot_next_in_segment (is), ic++)
+  {
+    unsigned int before = gr_slot_before (is);
+    unsigned int after = gr_slot_after (is);
+    *pg = gr_slot_gid (is);
+    pg++;
+    while (clusters[ci].base_char > before && ci)
+    {
+      clusters[ci-1].num_chars += clusters[ci].num_chars;
+      clusters[ci-1].num_glyphs += clusters[ci].num_glyphs;
+      ci--;
+    }
+
+    if (gr_slot_can_insert_before (is) && clusters[ci].num_chars && before >= clusters[ci].base_char + clusters[ci].num_chars)
+    {
+      hb_graphite2_cluster_t *c = clusters + ci + 1;
+      c->base_char = clusters[ci].base_char + clusters[ci].num_chars;
+      c->cluster = buffer->info[c->base_char].cluster;
+      c->num_chars = before - c->base_char;
+      c->base_glyph = ic;
+      c->num_glyphs = 0;
+      ci++;
+    }
+    clusters[ci].num_glyphs++;
+
+    if (clusters[ci].base_char + clusters[ci].num_chars < after + 1)
+       clusters[ci].num_chars = after + 1 - clusters[ci].base_char;
+  }
+  ci++;
+
+  //buffer->clear_output ();
+  for (unsigned int i = 0; i < ci; ++i)
+  {
+    for (unsigned int j = 0; j < clusters[i].num_glyphs; ++j)
+    {
+      hb_glyph_info_t *info = &buffer->info[clusters[i].base_glyph + j];
+      info->codepoint = gids[clusters[i].base_glyph + j];
+      info->cluster = clusters[i].cluster;
+    }
+  }
+  buffer->len = glyph_count;
+  //buffer->swap_buffers ();
+
+  if (HB_DIRECTION_IS_BACKWARD(buffer->props.direction))
+    curradvx = gr_seg_advance_X(seg);
+
+  hb_glyph_position_t *pPos;
+  for (pPos = hb_buffer_get_glyph_positions (buffer, NULL), is = gr_seg_first_slot (seg);
+       is; pPos++, is = gr_slot_next_in_segment (is))
+  {
+    pPos->x_offset = gr_slot_origin_X (is) - curradvx;
+    pPos->y_offset = gr_slot_origin_Y (is) - curradvy;
+    pPos->x_advance = gr_slot_advance_X (is, grface, grfont);
+    pPos->y_advance = gr_slot_advance_Y (is, grface, grfont);
+    if (HB_DIRECTION_IS_BACKWARD (buffer->props.direction))
+      curradvx -= pPos->x_advance;
+    pPos->x_offset = gr_slot_origin_X (is) - curradvx;
+    if (!HB_DIRECTION_IS_BACKWARD (buffer->props.direction))
+      curradvx += pPos->x_advance;
+    pPos->y_offset = gr_slot_origin_Y (is) - curradvy;
+    curradvy += pPos->y_advance;
+  }
+  if (!HB_DIRECTION_IS_BACKWARD (buffer->props.direction))
+    pPos[-1].x_advance += gr_seg_advance_X(seg) - curradvx;
+
+  if (HB_DIRECTION_IS_BACKWARD (buffer->props.direction))
+    hb_buffer_reverse_clusters (buffer);
+
+  if (feats) gr_featureval_destroy (feats);
+  gr_seg_destroy (seg);
+
+  return true;
+}
diff --git a/src/hb-graphite2.h b/src/hb-graphite2.h
new file mode 100644 (file)
index 0000000..3eae54a
--- /dev/null
@@ -0,0 +1,48 @@
+/*
+ * Copyright (C) 2011  Martin Hosken
+ * Copyright (C) 2011  SIL International
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ */
+
+#ifndef HB_GRAPHITE2_H
+#define HB_GRAPHITE2_H
+
+#include "hb.h"
+
+#include <graphite2/Font.h>
+
+HB_BEGIN_DECLS
+
+
+#define HB_GRAPHITE2_TAG_SILF HB_TAG('S','i','l','f')
+
+
+gr_face *
+hb_graphite2_face_get_gr_face (hb_face_t *face);
+
+gr_font *
+hb_graphite2_font_get_gr_font (hb_font_t *font);
+
+
+HB_END_DECLS
+
+#endif /* HB_GRAPHITE2_H */
diff --git a/src/hb-icu.cc b/src/hb-icu.cc
new file mode 100644 (file)
index 0000000..86c8b5c
--- /dev/null
@@ -0,0 +1,372 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ * Copyright © 2009  Keith Stribley
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-private.hh"
+
+#include "hb-icu.h"
+
+#include "hb-unicode-private.hh"
+
+#include <unicode/uchar.h>
+#include <unicode/unorm.h>
+#include <unicode/ustring.h>
+#include <unicode/uversion.h>
+
+
+hb_script_t
+hb_icu_script_to_script (UScriptCode script)
+{
+  if (unlikely (script == USCRIPT_INVALID_CODE))
+    return HB_SCRIPT_INVALID;
+
+  return hb_script_from_string (uscript_getShortName (script), -1);
+}
+
+UScriptCode
+hb_icu_script_from_script (hb_script_t script)
+{
+  if (unlikely (script == HB_SCRIPT_INVALID))
+    return USCRIPT_INVALID_CODE;
+
+  for (unsigned int i = 0; i < USCRIPT_CODE_LIMIT; i++)
+    if (unlikely (hb_icu_script_to_script ((UScriptCode) i) == script))
+      return (UScriptCode) i;
+
+  return USCRIPT_UNKNOWN;
+}
+
+
+static hb_unicode_combining_class_t
+hb_icu_unicode_combining_class (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                               hb_codepoint_t      unicode,
+                               void               *user_data HB_UNUSED)
+
+{
+  return (hb_unicode_combining_class_t) u_getCombiningClass (unicode);
+}
+
+static unsigned int
+hb_icu_unicode_eastasian_width (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                               hb_codepoint_t      unicode,
+                               void               *user_data HB_UNUSED)
+{
+  switch (u_getIntPropertyValue(unicode, UCHAR_EAST_ASIAN_WIDTH))
+  {
+  case U_EA_WIDE:
+  case U_EA_FULLWIDTH:
+    return 2;
+  case U_EA_NEUTRAL:
+  case U_EA_AMBIGUOUS:
+  case U_EA_HALFWIDTH:
+  case U_EA_NARROW:
+    return 1;
+  }
+  return 1;
+}
+
+static hb_unicode_general_category_t
+hb_icu_unicode_general_category (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                                hb_codepoint_t      unicode,
+                                void               *user_data HB_UNUSED)
+{
+  switch (u_getIntPropertyValue(unicode, UCHAR_GENERAL_CATEGORY))
+  {
+  case U_UNASSIGNED:                   return HB_UNICODE_GENERAL_CATEGORY_UNASSIGNED;
+
+  case U_UPPERCASE_LETTER:             return HB_UNICODE_GENERAL_CATEGORY_UPPERCASE_LETTER;
+  case U_LOWERCASE_LETTER:             return HB_UNICODE_GENERAL_CATEGORY_LOWERCASE_LETTER;
+  case U_TITLECASE_LETTER:             return HB_UNICODE_GENERAL_CATEGORY_TITLECASE_LETTER;
+  case U_MODIFIER_LETTER:              return HB_UNICODE_GENERAL_CATEGORY_MODIFIER_LETTER;
+  case U_OTHER_LETTER:                 return HB_UNICODE_GENERAL_CATEGORY_OTHER_LETTER;
+
+  case U_NON_SPACING_MARK:             return HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK;
+  case U_ENCLOSING_MARK:               return HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK;
+  case U_COMBINING_SPACING_MARK:       return HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK;
+
+  case U_DECIMAL_DIGIT_NUMBER:         return HB_UNICODE_GENERAL_CATEGORY_DECIMAL_NUMBER;
+  case U_LETTER_NUMBER:                        return HB_UNICODE_GENERAL_CATEGORY_LETTER_NUMBER;
+  case U_OTHER_NUMBER:                 return HB_UNICODE_GENERAL_CATEGORY_OTHER_NUMBER;
+
+  case U_SPACE_SEPARATOR:              return HB_UNICODE_GENERAL_CATEGORY_SPACE_SEPARATOR;
+  case U_LINE_SEPARATOR:               return HB_UNICODE_GENERAL_CATEGORY_LINE_SEPARATOR;
+  case U_PARAGRAPH_SEPARATOR:          return HB_UNICODE_GENERAL_CATEGORY_PARAGRAPH_SEPARATOR;
+
+  case U_CONTROL_CHAR:                 return HB_UNICODE_GENERAL_CATEGORY_CONTROL;
+  case U_FORMAT_CHAR:                  return HB_UNICODE_GENERAL_CATEGORY_FORMAT;
+  case U_PRIVATE_USE_CHAR:             return HB_UNICODE_GENERAL_CATEGORY_PRIVATE_USE;
+  case U_SURROGATE:                    return HB_UNICODE_GENERAL_CATEGORY_SURROGATE;
+
+
+  case U_DASH_PUNCTUATION:             return HB_UNICODE_GENERAL_CATEGORY_DASH_PUNCTUATION;
+  case U_START_PUNCTUATION:            return HB_UNICODE_GENERAL_CATEGORY_OPEN_PUNCTUATION;
+  case U_END_PUNCTUATION:              return HB_UNICODE_GENERAL_CATEGORY_CLOSE_PUNCTUATION;
+  case U_CONNECTOR_PUNCTUATION:                return HB_UNICODE_GENERAL_CATEGORY_CONNECT_PUNCTUATION;
+  case U_OTHER_PUNCTUATION:            return HB_UNICODE_GENERAL_CATEGORY_OTHER_PUNCTUATION;
+
+  case U_MATH_SYMBOL:                  return HB_UNICODE_GENERAL_CATEGORY_MATH_SYMBOL;
+  case U_CURRENCY_SYMBOL:              return HB_UNICODE_GENERAL_CATEGORY_CURRENCY_SYMBOL;
+  case U_MODIFIER_SYMBOL:              return HB_UNICODE_GENERAL_CATEGORY_MODIFIER_SYMBOL;
+  case U_OTHER_SYMBOL:                 return HB_UNICODE_GENERAL_CATEGORY_OTHER_SYMBOL;
+
+  case U_INITIAL_PUNCTUATION:          return HB_UNICODE_GENERAL_CATEGORY_INITIAL_PUNCTUATION;
+  case U_FINAL_PUNCTUATION:            return HB_UNICODE_GENERAL_CATEGORY_FINAL_PUNCTUATION;
+  }
+
+  return HB_UNICODE_GENERAL_CATEGORY_UNASSIGNED;
+}
+
+static hb_codepoint_t
+hb_icu_unicode_mirroring (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                         hb_codepoint_t      unicode,
+                         void               *user_data HB_UNUSED)
+{
+  return u_charMirror(unicode);
+}
+
+static hb_script_t
+hb_icu_unicode_script (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                      hb_codepoint_t      unicode,
+                      void               *user_data HB_UNUSED)
+{
+  UErrorCode status = U_ZERO_ERROR;
+  UScriptCode scriptCode = uscript_getScript(unicode, &status);
+
+  if (unlikely (U_FAILURE (status)))
+    return HB_SCRIPT_UNKNOWN;
+
+  return hb_icu_script_to_script (scriptCode);
+}
+
+#if U_ICU_VERSION_MAJOR_NUM >= 49
+static const UNormalizer2 *normalizer;
+#endif
+
+static hb_bool_t
+hb_icu_unicode_compose (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                       hb_codepoint_t      a,
+                       hb_codepoint_t      b,
+                       hb_codepoint_t     *ab,
+                       void               *user_data HB_UNUSED)
+{
+#if U_ICU_VERSION_MAJOR_NUM >= 49
+  {
+    UChar32 ret = unorm2_composePair (normalizer, a, b);
+    if (ret < 0) return false;
+    *ab = ret;
+    return true;
+  }
+#endif
+
+  /* We don't ifdef-out the fallback code such that compiler always
+   * sees it and makes sure it's compilable. */
+
+  UChar utf16[4], normalized[5];
+  unsigned int len;
+  hb_bool_t ret, err;
+  UErrorCode icu_err;
+
+  len = 0;
+  err = false;
+  U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err);
+  if (err) return false;
+  U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err);
+  if (err) return false;
+
+  icu_err = U_ZERO_ERROR;
+  len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err);
+  if (U_FAILURE (icu_err))
+    return false;
+  if (u_countChar32 (normalized, len) == 1) {
+    U16_GET_UNSAFE (normalized, 0, *ab);
+    ret = true;
+  } else {
+    ret = false;
+  }
+
+  return ret;
+}
+
+static hb_bool_t
+hb_icu_unicode_decompose (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                         hb_codepoint_t      ab,
+                         hb_codepoint_t     *a,
+                         hb_codepoint_t     *b,
+                         void               *user_data HB_UNUSED)
+{
+#if U_ICU_VERSION_MAJOR_NUM >= 49
+  {
+    UChar decomposed[4];
+    int len;
+    UErrorCode icu_err = U_ZERO_ERROR;
+    len = unorm2_getRawDecomposition (normalizer, ab, decomposed,
+                                     ARRAY_LENGTH (decomposed), &icu_err);
+    if (U_FAILURE (icu_err) || len < 0) return false;
+
+    len = u_countChar32 (decomposed, len);
+    if (len == 1) {
+      U16_GET_UNSAFE (decomposed, 0, *a);
+      *b = 0;
+      return *a != ab;
+    } else if (len == 2) {
+      len =0;
+      U16_NEXT_UNSAFE (decomposed, len, *a);
+      U16_NEXT_UNSAFE (decomposed, len, *b);
+    }
+    return true;
+  }
+#endif
+
+  /* We don't ifdef-out the fallback code such that compiler always
+   * sees it and makes sure it's compilable. */
+
+  UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1];
+  unsigned int len;
+  hb_bool_t ret, err;
+  UErrorCode icu_err;
+
+  /* This function is a monster! Maybe it wasn't a good idea adding a
+   * pairwise decompose API... */
+  /* Watchout for the dragons.  Err, watchout for macros changing len. */
+
+  len = 0;
+  err = false;
+  U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), ab, err);
+  if (err) return false;
+
+  icu_err = U_ZERO_ERROR;
+  len = unorm_normalize (utf16, len, UNORM_NFD, 0, normalized, ARRAY_LENGTH (normalized), &icu_err);
+  if (U_FAILURE (icu_err))
+    return false;
+
+  len = u_countChar32 (normalized, len);
+
+  if (len == 1) {
+    U16_GET_UNSAFE (normalized, 0, *a);
+    *b = 0;
+    ret = *a != ab;
+  } else if (len == 2) {
+    len =0;
+    U16_NEXT_UNSAFE (normalized, len, *a);
+    U16_NEXT_UNSAFE (normalized, len, *b);
+
+    /* Here's the ugly part: if ab decomposes to a single character and
+     * that character decomposes again, we have to detect that and undo
+     * the second part :-(. */
+    UChar recomposed[20];
+    icu_err = U_ZERO_ERROR;
+    unorm_normalize (normalized, len, UNORM_NFC, 0, recomposed, ARRAY_LENGTH (recomposed), &icu_err);
+    if (U_FAILURE (icu_err))
+      return false;
+    hb_codepoint_t c;
+    U16_GET_UNSAFE (recomposed, 0, c);
+    if (c != *a && c != ab) {
+      *a = c;
+      *b = 0;
+    }
+    ret = true;
+  } else {
+    /* If decomposed to more than two characters, take the last one,
+     * and recompose the rest to get the first component. */
+    U16_PREV_UNSAFE (normalized, len, *b); /* Changes len in-place. */
+    UChar recomposed[18 * 2];
+    icu_err = U_ZERO_ERROR;
+    len = unorm_normalize (normalized, len, UNORM_NFC, 0, recomposed, ARRAY_LENGTH (recomposed), &icu_err);
+    if (U_FAILURE (icu_err))
+      return false;
+    /* We expect that recomposed has exactly one character now. */
+    if (unlikely (u_countChar32 (recomposed, len) != 1))
+      return false;
+    U16_GET_UNSAFE (recomposed, 0, *a);
+    ret = true;
+  }
+
+  return ret;
+}
+
+static unsigned int
+hb_icu_unicode_decompose_compatibility (hb_unicode_funcs_t *ufuncs HB_UNUSED,
+                                       hb_codepoint_t      u,
+                                       hb_codepoint_t     *decomposed,
+                                       void               *user_data HB_UNUSED)
+{
+  UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1];
+  unsigned int len;
+  int32_t utf32_len;
+  hb_bool_t err;
+  UErrorCode icu_err;
+
+  /* Copy @u into a UTF-16 array to be passed to ICU. */
+  len = 0;
+  err = false;
+  U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), u, err);
+  if (err)
+    return 0;
+
+  /* Normalise the codepoint using NFKD mode. */
+  icu_err = U_ZERO_ERROR;
+  len = unorm_normalize (utf16, len, UNORM_NFKD, 0, normalized, ARRAY_LENGTH (normalized), &icu_err);
+  if (icu_err)
+    return 0;
+
+  /* Convert the decomposed form from UTF-16 to UTF-32. */
+  icu_err = U_ZERO_ERROR;
+  u_strToUTF32 ((UChar32*) decomposed, HB_UNICODE_MAX_DECOMPOSITION_LEN, &utf32_len, normalized, len, &icu_err);
+  if (icu_err)
+    return 0;
+
+  return utf32_len;
+}
+
+
+hb_unicode_funcs_t *
+hb_icu_get_unicode_funcs (void)
+{
+  static const hb_unicode_funcs_t _hb_icu_unicode_funcs = {
+    HB_OBJECT_HEADER_STATIC,
+
+    NULL, /* parent */
+    true, /* immutable */
+    {
+#define HB_UNICODE_FUNC_IMPLEMENT(name) hb_icu_unicode_##name,
+      HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_UNICODE_FUNC_IMPLEMENT
+    }
+  };
+
+#if U_ICU_VERSION_MAJOR_NUM >= 49
+  if (!hb_atomic_ptr_get (&normalizer)) {
+    UErrorCode icu_err = U_ZERO_ERROR;
+    /* We ignore failure in getNFCInstace(). */
+    hb_atomic_ptr_cmpexch (&normalizer, NULL, unorm2_getNFCInstance (&icu_err));
+  }
+#endif
+  return const_cast<hb_unicode_funcs_t *> (&_hb_icu_unicode_funcs);
+}
+
+
diff --git a/src/hb-icu.h b/src/hb-icu.h
new file mode 100644 (file)
index 0000000..f2f35f0
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_ICU_H
+#define HB_ICU_H
+
+#include "hb.h"
+
+#include <unicode/uscript.h>
+
+HB_BEGIN_DECLS
+
+
+hb_script_t
+hb_icu_script_to_script (UScriptCode script);
+
+UScriptCode
+hb_icu_script_from_script (hb_script_t script);
+
+
+hb_unicode_funcs_t *
+hb_icu_get_unicode_funcs (void);
+
+
+HB_END_DECLS
+
+#endif /* HB_ICU_H */
diff --git a/src/hb-mutex-private.hh b/src/hb-mutex-private.hh
new file mode 100644 (file)
index 0000000..6281201
--- /dev/null
@@ -0,0 +1,129 @@
+/*
+ * Copyright © 2007  Chris Wilson
+ * Copyright © 2009,2010  Red Hat, Inc.
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Contributor(s):
+ *     Chris Wilson <chris@chris-wilson.co.uk>
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_MUTEX_PRIVATE_HH
+#define HB_MUTEX_PRIVATE_HH
+
+#include "hb-private.hh"
+
+
+/* mutex */
+
+/* We need external help for these */
+
+#if 0
+
+
+#elif !defined(HB_NO_MT) && (defined(_WIN32) || defined(__CYGWIN__))
+
+#include <windows.h>
+typedef CRITICAL_SECTION hb_mutex_impl_t;
+#define HB_MUTEX_IMPL_INIT     {0}
+#define hb_mutex_impl_init(M)  InitializeCriticalSection (M)
+#define hb_mutex_impl_lock(M)  EnterCriticalSection (M)
+#define hb_mutex_impl_unlock(M)        LeaveCriticalSection (M)
+#define hb_mutex_impl_finish(M)        DeleteCriticalSection (M)
+
+
+#elif !defined(HB_NO_MT) && (defined(HAVE_PTHREAD) || defined(__APPLE__))
+
+#include <pthread.h>
+typedef pthread_mutex_t hb_mutex_impl_t;
+#define HB_MUTEX_IMPL_INIT     PTHREAD_MUTEX_INITIALIZER
+#define hb_mutex_impl_init(M)  pthread_mutex_init (M, NULL)
+#define hb_mutex_impl_lock(M)  pthread_mutex_lock (M)
+#define hb_mutex_impl_unlock(M)        pthread_mutex_unlock (M)
+#define hb_mutex_impl_finish(M)        pthread_mutex_destroy (M)
+
+
+#elif !defined(HB_NO_MT) && defined(HAVE_INTEL_ATOMIC_PRIMITIVES)
+
+#if defined(HAVE_SCHED_H) && defined(HAVE_SCHED_YIELD)
+# include <sched.h>
+# define HB_SCHED_YIELD() sched_yield ()
+#else
+# define HB_SCHED_YIELD() HB_STMT_START {} HB_STMT_END
+#endif
+
+/* This actually is not a totally awful implementation. */
+typedef volatile int hb_mutex_impl_t;
+#define HB_MUTEX_IMPL_INIT     0
+#define hb_mutex_impl_init(M)  *(M) = 0
+#define hb_mutex_impl_lock(M)  HB_STMT_START { while (__sync_lock_test_and_set((M), 1)) HB_SCHED_YIELD (); } HB_STMT_END
+#define hb_mutex_impl_unlock(M)        __sync_lock_release (M)
+#define hb_mutex_impl_finish(M)        HB_STMT_START {} HB_STMT_END
+
+
+#elif !defined(HB_NO_MT)
+
+#if defined(HAVE_SCHED_H) && defined(HAVE_SCHED_YIELD)
+# include <sched.h>
+# define HB_SCHED_YIELD() sched_yield ()
+#else
+# define HB_SCHED_YIELD() HB_STMT_START {} HB_STMT_END
+#endif
+
+#define HB_MUTEX_INT_NIL 1 /* Warn that fallback implementation is in use. */
+typedef volatile int hb_mutex_impl_t;
+#define HB_MUTEX_IMPL_INIT     0
+#define hb_mutex_impl_init(M)  *(M) = 0
+#define hb_mutex_impl_lock(M)  HB_STMT_START { while (*(M)) HB_SCHED_YIELD (); (*(M))++; } HB_STMT_END
+#define hb_mutex_impl_unlock(M)        (*(M))--;
+#define hb_mutex_impl_finish(M)        HB_STMT_START {} HB_STMT_END
+
+
+#else /* HB_NO_MT */
+
+typedef int hb_mutex_impl_t;
+#define HB_MUTEX_IMPL_INIT     0
+#define hb_mutex_impl_init(M)  HB_STMT_START {} HB_STMT_END
+#define hb_mutex_impl_lock(M)  HB_STMT_START {} HB_STMT_END
+#define hb_mutex_impl_unlock(M)        HB_STMT_START {} HB_STMT_END
+#define hb_mutex_impl_finish(M)        HB_STMT_START {} HB_STMT_END
+
+#endif
+
+
+#define HB_MUTEX_INIT          {HB_MUTEX_IMPL_INIT}
+struct hb_mutex_t
+{
+  /* TODO Add tracing. */
+
+  hb_mutex_impl_t m;
+
+  inline void init   (void) { hb_mutex_impl_init   (&m); }
+  inline void lock   (void) { hb_mutex_impl_lock   (&m); }
+  inline void unlock (void) { hb_mutex_impl_unlock (&m); }
+  inline void finish (void) { hb_mutex_impl_finish (&m); }
+};
+
+
+#endif /* HB_MUTEX_PRIVATE_HH */
diff --git a/src/hb-object-private.hh b/src/hb-object-private.hh
new file mode 100644 (file)
index 0000000..8a9ae34
--- /dev/null
@@ -0,0 +1,227 @@
+/*
+ * Copyright © 2007  Chris Wilson
+ * Copyright © 2009,2010  Red Hat, Inc.
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Contributor(s):
+ *     Chris Wilson <chris@chris-wilson.co.uk>
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OBJECT_PRIVATE_HH
+#define HB_OBJECT_PRIVATE_HH
+
+#include "hb-private.hh"
+
+#include "hb-atomic-private.hh"
+#include "hb-mutex-private.hh"
+
+
+/* Debug */
+
+#ifndef HB_DEBUG_OBJECT
+#define HB_DEBUG_OBJECT (HB_DEBUG+0)
+#endif
+
+
+/* reference_count */
+
+#define HB_REFERENCE_COUNT_INVALID_VALUE ((hb_atomic_int_t) -1)
+#define HB_REFERENCE_COUNT_INVALID {HB_REFERENCE_COUNT_INVALID_VALUE}
+struct hb_reference_count_t
+{
+  hb_atomic_int_t ref_count;
+
+  inline void init (int v) { ref_count = v; }
+  inline int inc (void) { return hb_atomic_int_add (const_cast<hb_atomic_int_t &> (ref_count),  1); }
+  inline int dec (void) { return hb_atomic_int_add (const_cast<hb_atomic_int_t &> (ref_count), -1); }
+  inline void finish (void) { ref_count = HB_REFERENCE_COUNT_INVALID_VALUE; }
+
+  inline bool is_invalid (void) const { return ref_count == HB_REFERENCE_COUNT_INVALID_VALUE; }
+
+};
+
+
+/* user_data */
+
+#define HB_USER_DATA_ARRAY_INIT {HB_MUTEX_INIT, HB_LOCKABLE_SET_INIT}
+struct hb_user_data_array_t
+{
+  /* TODO Add tracing. */
+
+  struct hb_user_data_item_t {
+    hb_user_data_key_t *key;
+    void *data;
+    hb_destroy_func_t destroy;
+
+    inline bool operator == (hb_user_data_key_t *other_key) const { return key == other_key; }
+    inline bool operator == (hb_user_data_item_t &other) const { return key == other.key; }
+
+    void finish (void) { if (destroy) destroy (data); }
+  };
+
+  hb_mutex_t lock;
+  hb_lockable_set_t<hb_user_data_item_t, hb_mutex_t> items;
+
+  inline void init (void) { lock.init (); items.init (); }
+
+  HB_INTERNAL bool set (hb_user_data_key_t *key,
+                       void *              data,
+                       hb_destroy_func_t   destroy,
+                       hb_bool_t           replace);
+
+  HB_INTERNAL void *get (hb_user_data_key_t *key);
+
+  inline void finish (void) { items.finish (lock); lock.finish (); }
+};
+
+
+/* object_header */
+
+struct hb_object_header_t
+{
+  hb_reference_count_t ref_count;
+  hb_user_data_array_t user_data;
+
+#define HB_OBJECT_HEADER_STATIC {HB_REFERENCE_COUNT_INVALID, HB_USER_DATA_ARRAY_INIT}
+
+  static inline void *create (unsigned int size) {
+    hb_object_header_t *obj = (hb_object_header_t *) calloc (1, size);
+
+    if (likely (obj))
+      obj->init ();
+
+    return obj;
+  }
+
+  inline void init (void) {
+    ref_count.init (1);
+    user_data.init ();
+  }
+
+  inline bool is_inert (void) const {
+    return unlikely (ref_count.is_invalid ());
+  }
+
+  inline void reference (void) {
+    if (unlikely (!this || this->is_inert ()))
+      return;
+    ref_count.inc ();
+  }
+
+  inline bool destroy (void) {
+    if (unlikely (!this || this->is_inert ()))
+      return false;
+    if (ref_count.dec () != 1)
+      return false;
+
+    ref_count.finish (); /* Do this before user_data */
+    user_data.finish ();
+
+    return true;
+  }
+
+  inline bool set_user_data (hb_user_data_key_t *key,
+                            void *              data,
+                            hb_destroy_func_t   destroy_func,
+                            hb_bool_t           replace) {
+    if (unlikely (!this || this->is_inert ()))
+      return false;
+
+    return user_data.set (key, data, destroy_func, replace);
+  }
+
+  inline void *get_user_data (hb_user_data_key_t *key) {
+    if (unlikely (!this || this->is_inert ()))
+      return NULL;
+
+    return user_data.get (key);
+  }
+
+  inline void trace (const char *function) const {
+    if (unlikely (!this)) return;
+    /* TODO We cannot use DEBUG_MSG_FUNC here since that one currently only
+     * prints the class name and throws away the template info. */
+    DEBUG_MSG (OBJECT, (void *) this,
+              "%s refcount=%d",
+              function,
+              this ? ref_count.ref_count : 0);
+  }
+
+  private:
+  ASSERT_POD ();
+};
+
+
+/* object */
+
+template <typename Type>
+static inline void hb_object_trace (const Type *obj, const char *function)
+{
+  obj->header.trace (function);
+}
+template <typename Type>
+static inline Type *hb_object_create (void)
+{
+  Type *obj = (Type *) hb_object_header_t::create (sizeof (Type));
+  hb_object_trace (obj, HB_FUNC);
+  return obj;
+}
+template <typename Type>
+static inline bool hb_object_is_inert (const Type *obj)
+{
+  return unlikely (obj->header.is_inert ());
+}
+template <typename Type>
+static inline Type *hb_object_reference (Type *obj)
+{
+  hb_object_trace (obj, HB_FUNC);
+  obj->header.reference ();
+  return obj;
+}
+template <typename Type>
+static inline bool hb_object_destroy (Type *obj)
+{
+  hb_object_trace (obj, HB_FUNC);
+  return obj->header.destroy ();
+}
+template <typename Type>
+static inline bool hb_object_set_user_data (Type               *obj,
+                                           hb_user_data_key_t *key,
+                                           void *              data,
+                                           hb_destroy_func_t   destroy,
+                                           hb_bool_t           replace)
+{
+  return obj->header.set_user_data (key, data, destroy, replace);
+}
+
+template <typename Type>
+static inline void *hb_object_get_user_data (Type               *obj,
+                                            hb_user_data_key_t *key)
+{
+  return obj->header.get_user_data (key);
+}
+
+
+#endif /* HB_OBJECT_PRIVATE_HH */
diff --git a/src/hb-open-file-private.hh b/src/hb-open-file-private.hh
new file mode 100644 (file)
index 0000000..57db59d
--- /dev/null
@@ -0,0 +1,261 @@
+/*
+ * Copyright © 2007,2008,2009  Red Hat, Inc.
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OPEN_FILE_PRIVATE_HH
+#define HB_OPEN_FILE_PRIVATE_HH
+
+#include "hb-open-type-private.hh"
+
+
+namespace OT {
+
+
+/*
+ *
+ * The OpenType Font File
+ *
+ */
+
+
+/*
+ * Organization of an OpenType Font
+ */
+
+struct OpenTypeFontFile;
+struct OffsetTable;
+struct TTCHeader;
+
+
+typedef struct TableRecord
+{
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this));
+  }
+
+  Tag          tag;            /* 4-byte identifier. */
+  CheckSum     checkSum;       /* CheckSum for this table. */
+  ULONG                offset;         /* Offset from beginning of TrueType font
+                                * file. */
+  ULONG                length;         /* Length of this table. */
+  public:
+  DEFINE_SIZE_STATIC (16);
+} OpenTypeTable;
+
+typedef struct OffsetTable
+{
+  friend struct OpenTypeFontFile;
+
+  inline unsigned int get_table_count (void) const
+  { return numTables; }
+  inline const TableRecord& get_table (unsigned int i) const
+  {
+    if (unlikely (i >= numTables)) return Null(TableRecord);
+    return tables[i];
+  }
+  inline bool find_table_index (hb_tag_t tag, unsigned int *table_index) const
+  {
+    Tag t;
+    t.set (tag);
+    unsigned int count = numTables;
+    for (unsigned int i = 0; i < count; i++)
+    {
+      if (t == tables[i].tag)
+      {
+        if (table_index) *table_index = i;
+        return true;
+      }
+    }
+    if (table_index) *table_index = Index::NOT_FOUND_INDEX;
+    return false;
+  }
+  inline const TableRecord& get_table_by_tag (hb_tag_t tag) const
+  {
+    unsigned int table_index;
+    find_table_index (tag, &table_index);
+    return get_table (table_index);
+  }
+
+  public:
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && c->check_array (tables, TableRecord::static_size, numTables));
+  }
+
+  protected:
+  Tag          sfnt_version;   /* '\0\001\0\00' if TrueType / 'OTTO' if CFF */
+  USHORT       numTables;      /* Number of tables. */
+  USHORT       searchRangeZ;   /* (Maximum power of 2 <= numTables) x 16 */
+  USHORT       entrySelectorZ; /* Log2(maximum power of 2 <= numTables). */
+  USHORT       rangeShiftZ;    /* NumTables x 16-searchRange. */
+  TableRecord  tables[VAR];    /* TableRecord entries. numTables items */
+  public:
+  DEFINE_SIZE_ARRAY (12, tables);
+} OpenTypeFontFace;
+
+
+/*
+ * TrueType Collections
+ */
+
+struct TTCHeaderVersion1
+{
+  friend struct TTCHeader;
+
+  inline unsigned int get_face_count (void) const { return table.len; }
+  inline const OpenTypeFontFace& get_face (unsigned int i) const { return this+table[i]; }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (table.sanitize (c, this));
+  }
+
+  protected:
+  Tag          ttcTag;         /* TrueType Collection ID string: 'ttcf' */
+  FixedVersion version;        /* Version of the TTC Header (1.0),
+                                * 0x00010000u */
+  ArrayOf<OffsetTo<OffsetTable, ULONG>, ULONG>
+               table;          /* Array of offsets to the OffsetTable for each font
+                                * from the beginning of the file */
+  public:
+  DEFINE_SIZE_ARRAY (12, table);
+};
+
+struct TTCHeader
+{
+  friend struct OpenTypeFontFile;
+
+  private:
+
+  inline unsigned int get_face_count (void) const
+  {
+    switch (u.header.version.major) {
+    case 2: /* version 2 is compatible with version 1 */
+    case 1: return u.version1.get_face_count ();
+    default:return 0;
+    }
+  }
+  inline const OpenTypeFontFace& get_face (unsigned int i) const
+  {
+    switch (u.header.version.major) {
+    case 2: /* version 2 is compatible with version 1 */
+    case 1: return u.version1.get_face (i);
+    default:return Null(OpenTypeFontFace);
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (unlikely (!u.header.version.sanitize (c))) return TRACE_RETURN (false);
+    switch (u.header.version.major) {
+    case 2: /* version 2 is compatible with version 1 */
+    case 1: return TRACE_RETURN (u.version1.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  struct {
+  Tag          ttcTag;         /* TrueType Collection ID string: 'ttcf' */
+  FixedVersion version;        /* Version of the TTC Header (1.0 or 2.0),
+                                * 0x00010000u or 0x00020000u */
+  }                    header;
+  TTCHeaderVersion1    version1;
+  } u;
+};
+
+
+/*
+ * OpenType Font File
+ */
+
+struct OpenTypeFontFile
+{
+  static const hb_tag_t CFFTag         = HB_TAG ('O','T','T','O'); /* OpenType with Postscript outlines */
+  static const hb_tag_t TrueTypeTag    = HB_TAG ( 0 , 1 , 0 , 0 ); /* OpenType with TrueType outlines */
+  static const hb_tag_t TTCTag         = HB_TAG ('t','t','c','f'); /* TrueType Collection */
+  static const hb_tag_t TrueTag                = HB_TAG ('t','r','u','e'); /* Obsolete Apple TrueType */
+  static const hb_tag_t Typ1Tag                = HB_TAG ('t','y','p','1'); /* Obsolete Apple Type1 font in SFNT container */
+
+  inline hb_tag_t get_tag (void) const { return u.tag; }
+
+  inline unsigned int get_face_count (void) const
+  {
+    switch (u.tag) {
+    case CFFTag:       /* All the non-collection tags */
+    case TrueTag:
+    case Typ1Tag:
+    case TrueTypeTag:  return 1;
+    case TTCTag:       return u.ttcHeader.get_face_count ();
+    default:           return 0;
+    }
+  }
+  inline const OpenTypeFontFace& get_face (unsigned int i) const
+  {
+    switch (u.tag) {
+    /* Note: for non-collection SFNT data we ignore index.  This is because
+     * Apple dfont container is a container of SFNT's.  So each SFNT is a
+     * non-TTC, but the index is more than zero. */
+    case CFFTag:       /* All the non-collection tags */
+    case TrueTag:
+    case Typ1Tag:
+    case TrueTypeTag:  return u.fontFace;
+    case TTCTag:       return u.ttcHeader.get_face (i);
+    default:           return Null(OpenTypeFontFace);
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (unlikely (!u.tag.sanitize (c))) return TRACE_RETURN (false);
+    switch (u.tag) {
+    case CFFTag:       /* All the non-collection tags */
+    case TrueTag:
+    case Typ1Tag:
+    case TrueTypeTag:  return TRACE_RETURN (u.fontFace.sanitize (c));
+    case TTCTag:       return TRACE_RETURN (u.ttcHeader.sanitize (c));
+    default:           return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  Tag                  tag;            /* 4-byte identifier. */
+  OpenTypeFontFace     fontFace;
+  TTCHeader            ttcHeader;
+  } u;
+  public:
+  DEFINE_SIZE_UNION (4, tag);
+};
+
+
+} /* namespace OT */
+
+
+#endif /* HB_OPEN_FILE_PRIVATE_HH */
diff --git a/src/hb-open-type-private.hh b/src/hb-open-type-private.hh
new file mode 100644 (file)
index 0000000..475187b
--- /dev/null
@@ -0,0 +1,960 @@
+/*
+ * Copyright © 2007,2008,2009,2010  Red Hat, Inc.
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OPEN_TYPE_PRIVATE_HH
+#define HB_OPEN_TYPE_PRIVATE_HH
+
+#include "hb-private.hh"
+
+
+namespace OT {
+
+
+
+/*
+ * Casts
+ */
+
+/* Cast to struct T, reference to reference */
+template<typename Type, typename TObject>
+static inline const Type& CastR(const TObject &X)
+{ return reinterpret_cast<const Type&> (X); }
+template<typename Type, typename TObject>
+static inline Type& CastR(TObject &X)
+{ return reinterpret_cast<Type&> (X); }
+
+/* Cast to struct T, pointer to pointer */
+template<typename Type, typename TObject>
+static inline const Type* CastP(const TObject *X)
+{ return reinterpret_cast<const Type*> (X); }
+template<typename Type, typename TObject>
+static inline Type* CastP(TObject *X)
+{ return reinterpret_cast<Type*> (X); }
+
+/* StructAtOffset<T>(P,Ofs) returns the struct T& that is placed at memory
+ * location pointed to by P plus Ofs bytes. */
+template<typename Type>
+static inline const Type& StructAtOffset(const void *P, unsigned int offset)
+{ return * reinterpret_cast<const Type*> ((const char *) P + offset); }
+template<typename Type>
+static inline Type& StructAtOffset(void *P, unsigned int offset)
+{ return * reinterpret_cast<Type*> ((char *) P + offset); }
+
+/* StructAfter<T>(X) returns the struct T& that is placed after X.
+ * Works with X of variable size also.  X must implement get_size() */
+template<typename Type, typename TObject>
+static inline const Type& StructAfter(const TObject &X)
+{ return StructAtOffset<Type>(&X, X.get_size()); }
+template<typename Type, typename TObject>
+static inline Type& StructAfter(TObject &X)
+{ return StructAtOffset<Type>(&X, X.get_size()); }
+
+
+
+/*
+ * Size checking
+ */
+
+/* Check _assertion in a method environment */
+#define _DEFINE_INSTANCE_ASSERTION1(_line, _assertion) \
+  inline void _instance_assertion_on_line_##_line (void) const \
+  { \
+    ASSERT_STATIC (_assertion); \
+    ASSERT_INSTANCE_POD (*this); /* Make sure it's POD. */ \
+  }
+# define _DEFINE_INSTANCE_ASSERTION0(_line, _assertion) _DEFINE_INSTANCE_ASSERTION1 (_line, _assertion)
+# define DEFINE_INSTANCE_ASSERTION(_assertion) _DEFINE_INSTANCE_ASSERTION0 (__LINE__, _assertion)
+
+/* Check that _code compiles in a method environment */
+#define _DEFINE_COMPILES_ASSERTION1(_line, _code) \
+  inline void _compiles_assertion_on_line_##_line (void) const \
+  { _code; }
+# define _DEFINE_COMPILES_ASSERTION0(_line, _code) _DEFINE_COMPILES_ASSERTION1 (_line, _code)
+# define DEFINE_COMPILES_ASSERTION(_code) _DEFINE_COMPILES_ASSERTION0 (__LINE__, _code)
+
+
+#define DEFINE_SIZE_STATIC(size) \
+  DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size)); \
+  static const unsigned int static_size = (size); \
+  static const unsigned int min_size = (size)
+
+/* Size signifying variable-sized array */
+#define VAR 1
+
+#define DEFINE_SIZE_UNION(size, _member) \
+  DEFINE_INSTANCE_ASSERTION (this->u._member.static_size == (size)); \
+  static const unsigned int min_size = (size)
+
+#define DEFINE_SIZE_MIN(size) \
+  DEFINE_INSTANCE_ASSERTION (sizeof (*this) >= (size)); \
+  static const unsigned int min_size = (size)
+
+#define DEFINE_SIZE_ARRAY(size, array) \
+  DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + sizeof (array[0])); \
+  DEFINE_COMPILES_ASSERTION ((void) array[0].static_size) \
+  static const unsigned int min_size = (size)
+
+#define DEFINE_SIZE_ARRAY2(size, array1, array2) \
+  DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + sizeof (this->array1[0]) + sizeof (this->array2[0])); \
+  DEFINE_COMPILES_ASSERTION ((void) array1[0].static_size; (void) array2[0].static_size) \
+  static const unsigned int min_size = (size)
+
+
+
+/*
+ * Null objects
+ */
+
+/* Global nul-content Null pool.  Enlarge as necessary. */
+/* TODO This really should be a extern HB_INTERNAL and defined somewhere... */
+static const void *_NullPool[(256+8) / sizeof (void *)];
+
+/* Generic nul-content Null objects. */
+template <typename Type>
+static inline const Type& Null (void) {
+  ASSERT_STATIC (sizeof (Type) <= sizeof (_NullPool));
+  return *CastP<Type> (_NullPool);
+}
+
+/* Specializaiton for arbitrary-content arbitrary-sized Null objects. */
+#define DEFINE_NULL_DATA(Type, data) \
+static const char _Null##Type[sizeof (Type) + 1] = data; /* +1 is for nul-termination in data */ \
+template <> \
+/*static*/ inline const Type& Null<Type> (void) { \
+  return *CastP<Type> (_Null##Type); \
+} /* The following line really exists such that we end in a place needing semicolon */ \
+ASSERT_STATIC (Type::min_size + 1 <= sizeof (_Null##Type))
+
+/* Accessor macro. */
+#define Null(Type) Null<Type>()
+
+
+
+/*
+ * Sanitize
+ */
+
+#ifndef HB_DEBUG_SANITIZE
+#define HB_DEBUG_SANITIZE (HB_DEBUG+0)
+#endif
+
+
+#define TRACE_SANITIZE(this) \
+       hb_auto_trace_t<HB_DEBUG_SANITIZE, bool> trace \
+       (&c->debug_depth, c->get_name (), this, HB_FUNC, \
+        "");
+
+/* This limits sanitizing time on really broken fonts. */
+#ifndef HB_SANITIZE_MAX_EDITS
+#define HB_SANITIZE_MAX_EDITS 100
+#endif
+
+struct hb_sanitize_context_t
+{
+  inline const char *get_name (void) { return "SANITIZE"; }
+  static const unsigned int max_debug_depth = HB_DEBUG_SANITIZE;
+  typedef bool return_t;
+  template <typename T>
+  inline return_t dispatch (const T &obj) { return obj.sanitize (this); }
+  static return_t default_return_value (void) { return true; }
+  bool stop_sublookup_iteration (const return_t r HB_UNUSED) const { return false; }
+
+  inline void init (hb_blob_t *b)
+  {
+    this->blob = hb_blob_reference (b);
+    this->writable = false;
+  }
+
+  inline void start_processing (void)
+  {
+    this->start = hb_blob_get_data (this->blob, NULL);
+    this->end = this->start + hb_blob_get_length (this->blob);
+    this->edit_count = 0;
+    this->debug_depth = 0;
+
+    DEBUG_MSG_LEVEL (SANITIZE, this->blob, 0, +1,
+                    "start [%p..%p] (%lu bytes)",
+                    this->start, this->end,
+                    (unsigned long) (this->end - this->start));
+  }
+
+  inline void end_processing (void)
+  {
+    DEBUG_MSG_LEVEL (SANITIZE, this->blob, 0, -1,
+                    "end [%p..%p] %u edit requests",
+                    this->start, this->end, this->edit_count);
+
+    hb_blob_destroy (this->blob);
+    this->blob = NULL;
+    this->start = this->end = NULL;
+  }
+
+  inline bool check_range (const void *base, unsigned int len) const
+  {
+    const char *p = (const char *) base;
+
+    hb_auto_trace_t<HB_DEBUG_SANITIZE, bool> trace
+      (&this->debug_depth, "SANITIZE", this->blob, NULL,
+       "check_range [%p..%p] (%d bytes) in [%p..%p]",
+       p, p + len, len,
+       this->start, this->end);
+
+    return TRACE_RETURN (likely (this->start <= p && p <= this->end && (unsigned int) (this->end - p) >= len));
+  }
+
+  inline bool check_array (const void *base, unsigned int record_size, unsigned int len) const
+  {
+    const char *p = (const char *) base;
+    bool overflows = _hb_unsigned_int_mul_overflows (len, record_size);
+
+    hb_auto_trace_t<HB_DEBUG_SANITIZE, bool> trace
+      (&this->debug_depth, "SANITIZE", this->blob, NULL,
+       "check_array [%p..%p] (%d*%d=%ld bytes) in [%p..%p]",
+       p, p + (record_size * len), record_size, len, (unsigned long) record_size * len,
+       this->start, this->end);
+
+    return TRACE_RETURN (likely (!overflows && this->check_range (base, record_size * len)));
+  }
+
+  template <typename Type>
+  inline bool check_struct (const Type *obj) const
+  {
+    return likely (this->check_range (obj, obj->min_size));
+  }
+
+  inline bool may_edit (const void *base HB_UNUSED, unsigned int len HB_UNUSED)
+  {
+    if (this->edit_count >= HB_SANITIZE_MAX_EDITS)
+      return false;
+
+    const char *p = (const char *) base;
+    this->edit_count++;
+
+    hb_auto_trace_t<HB_DEBUG_SANITIZE, bool> trace
+      (&this->debug_depth, "SANITIZE", this->blob, NULL,
+       "may_edit(%u) [%p..%p] (%d bytes) in [%p..%p] -> %s",
+       this->edit_count,
+       p, p + len, len,
+       this->start, this->end,
+       this->writable ? "GRANTED" : "DENIED");
+
+    return TRACE_RETURN (this->writable);
+  }
+
+  template <typename Type, typename ValueType>
+  inline bool try_set (Type *obj, const ValueType &v) {
+    if (this->may_edit (obj, obj->static_size)) {
+      obj->set (v);
+      return true;
+    }
+    return false;
+  }
+
+  mutable unsigned int debug_depth;
+  const char *start, *end;
+  bool writable;
+  unsigned int edit_count;
+  hb_blob_t *blob;
+};
+
+
+
+/* Template to sanitize an object. */
+template <typename Type>
+struct Sanitizer
+{
+  static hb_blob_t *sanitize (hb_blob_t *blob) {
+    hb_sanitize_context_t c[1] = {{0, NULL, NULL, false, 0, NULL}};
+    bool sane;
+
+    /* TODO is_sane() stuff */
+
+    c->init (blob);
+
+  retry:
+    DEBUG_MSG_FUNC (SANITIZE, blob, "start");
+
+    c->start_processing ();
+
+    if (unlikely (!c->start)) {
+      c->end_processing ();
+      return blob;
+    }
+
+    Type *t = CastP<Type> (const_cast<char *> (c->start));
+
+    sane = t->sanitize (c);
+    if (sane) {
+      if (c->edit_count) {
+       DEBUG_MSG_FUNC (SANITIZE, blob, "passed first round with %d edits; going for second round", c->edit_count);
+
+        /* sanitize again to ensure no toe-stepping */
+        c->edit_count = 0;
+       sane = t->sanitize (c);
+       if (c->edit_count) {
+         DEBUG_MSG_FUNC (SANITIZE, blob, "requested %d edits in second round; FAILLING", c->edit_count);
+         sane = false;
+       }
+      }
+    } else {
+      unsigned int edit_count = c->edit_count;
+      if (edit_count && !c->writable) {
+        c->start = hb_blob_get_data_writable (blob, NULL);
+       c->end = c->start + hb_blob_get_length (blob);
+
+       if (c->start) {
+         c->writable = true;
+         /* ok, we made it writable by relocating.  try again */
+         DEBUG_MSG_FUNC (SANITIZE, blob, "retry");
+         goto retry;
+       }
+      }
+    }
+
+    c->end_processing ();
+
+    DEBUG_MSG_FUNC (SANITIZE, blob, sane ? "PASSED" : "FAILED");
+    if (sane)
+      return blob;
+    else {
+      hb_blob_destroy (blob);
+      return hb_blob_get_empty ();
+    }
+  }
+
+  static const Type* lock_instance (hb_blob_t *blob) {
+    hb_blob_make_immutable (blob);
+    const char *base = hb_blob_get_data (blob, NULL);
+    return unlikely (!base) ? &Null(Type) : CastP<Type> (base);
+  }
+};
+
+
+
+/*
+ * Serialize
+ */
+
+#ifndef HB_DEBUG_SERIALIZE
+#define HB_DEBUG_SERIALIZE (HB_DEBUG+0)
+#endif
+
+
+#define TRACE_SERIALIZE(this) \
+       hb_auto_trace_t<HB_DEBUG_SERIALIZE, bool> trace \
+       (&c->debug_depth, "SERIALIZE", c, HB_FUNC, \
+        "");
+
+
+struct hb_serialize_context_t
+{
+  inline hb_serialize_context_t (void *start, unsigned int size)
+  {
+    this->start = (char *) start;
+    this->end = this->start + size;
+
+    this->ran_out_of_room = false;
+    this->head = this->start;
+    this->debug_depth = 0;
+  }
+
+  template <typename Type>
+  inline Type *start_serialize (void)
+  {
+    DEBUG_MSG_LEVEL (SERIALIZE, this->start, 0, +1,
+                    "start [%p..%p] (%lu bytes)",
+                    this->start, this->end,
+                    (unsigned long) (this->end - this->start));
+
+    return start_embed<Type> ();
+  }
+
+  inline void end_serialize (void)
+  {
+    DEBUG_MSG_LEVEL (SERIALIZE, this->start, 0, -1,
+                    "end [%p..%p] serialized %d bytes; %s",
+                    this->start, this->end,
+                    (int) (this->head - this->start),
+                    this->ran_out_of_room ? "RAN OUT OF ROOM" : "did not ran out of room");
+
+  }
+
+  template <typename Type>
+  inline Type *copy (void)
+  {
+    assert (!this->ran_out_of_room);
+    unsigned int len = this->head - this->start;
+    void *p = malloc (len);
+    if (p)
+      memcpy (p, this->start, len);
+    return reinterpret_cast<Type *> (p);
+  }
+
+  template <typename Type>
+  inline Type *allocate_size (unsigned int size)
+  {
+    if (unlikely (this->ran_out_of_room || this->end - this->head < ptrdiff_t (size))) {
+      this->ran_out_of_room = true;
+      return NULL;
+    }
+    memset (this->head, 0, size);
+    char *ret = this->head;
+    this->head += size;
+    return reinterpret_cast<Type *> (ret);
+  }
+
+  template <typename Type>
+  inline Type *allocate_min (void)
+  {
+    return this->allocate_size<Type> (Type::min_size);
+  }
+
+  template <typename Type>
+  inline Type *start_embed (void)
+  {
+    Type *ret = reinterpret_cast<Type *> (this->head);
+    return ret;
+  }
+
+  template <typename Type>
+  inline Type *embed (const Type &obj)
+  {
+    unsigned int size = obj.get_size ();
+    Type *ret = this->allocate_size<Type> (size);
+    if (unlikely (!ret)) return NULL;
+    memcpy (ret, obj, size);
+    return ret;
+  }
+
+  template <typename Type>
+  inline Type *extend_min (Type &obj)
+  {
+    unsigned int size = obj.min_size;
+    assert (this->start <= (char *) &obj && (char *) &obj <= this->head && (char *) &obj + size >= this->head);
+    if (unlikely (!this->allocate_size<Type> (((char *) &obj) + size - this->head))) return NULL;
+    return reinterpret_cast<Type *> (&obj);
+  }
+
+  template <typename Type>
+  inline Type *extend (Type &obj)
+  {
+    unsigned int size = obj.get_size ();
+    assert (this->start < (char *) &obj && (char *) &obj <= this->head && (char *) &obj + size >= this->head);
+    if (unlikely (!this->allocate_size<Type> (((char *) &obj) + size - this->head))) return NULL;
+    return reinterpret_cast<Type *> (&obj);
+  }
+
+  inline void truncate (void *head)
+  {
+    assert (this->start < head && head <= this->head);
+    this->head = (char *) head;
+  }
+
+  unsigned int debug_depth;
+  char *start, *end, *head;
+  bool ran_out_of_room;
+};
+
+template <typename Type>
+struct Supplier
+{
+  inline Supplier (const Type *array, unsigned int len_)
+  {
+    head = array;
+    len = len_;
+  }
+  inline const Type operator [] (unsigned int i) const
+  {
+    if (unlikely (i >= len)) return Type ();
+    return head[i];
+  }
+
+  inline void advance (unsigned int count)
+  {
+    if (unlikely (count > len))
+      count = len;
+    len -= count;
+    head += count;
+  }
+
+  private:
+  inline Supplier (const Supplier<Type> &); /* Disallow copy */
+  inline Supplier<Type>& operator= (const Supplier<Type> &); /* Disallow copy */
+
+  unsigned int len;
+  const Type *head;
+};
+
+
+
+
+/*
+ *
+ * The OpenType Font File: Data Types
+ */
+
+
+/* "The following data types are used in the OpenType font file.
+ *  All OpenType fonts use Motorola-style byte ordering (Big Endian):" */
+
+/*
+ * Int types
+ */
+
+
+template <typename Type, int Bytes> struct BEInt;
+
+template <typename Type>
+struct BEInt<Type, 2>
+{
+  public:
+  inline void set (Type i) { hb_be_uint16_put (v,i); }
+  inline operator Type (void) const { return hb_be_uint16_get (v); }
+  inline bool operator == (const BEInt<Type, 2>& o) const { return hb_be_uint16_eq (v, o.v); }
+  inline bool operator != (const BEInt<Type, 2>& o) const { return !(*this == o); }
+  private: uint8_t v[2];
+};
+template <typename Type>
+struct BEInt<Type, 4>
+{
+  public:
+  inline void set (Type i) { hb_be_uint32_put (v,i); }
+  inline operator Type (void) const { return hb_be_uint32_get (v); }
+  inline bool operator == (const BEInt<Type, 4>& o) const { return hb_be_uint32_eq (v, o.v); }
+  inline bool operator != (const BEInt<Type, 4>& o) const { return !(*this == o); }
+  private: uint8_t v[4];
+};
+template <typename Type>
+struct BEInt<Type, 3>
+{
+  public:
+  inline void set (Type i) { hb_be_uint24_put (v,i); }
+  inline operator Type (void) const { return hb_be_uint24_get (v); }
+  inline bool operator == (const BEInt<Type, 3>& o) const { return hb_be_uint24_eq (v, o.v); }
+  inline bool operator != (const BEInt<Type, 3>& o) const { return !(*this == o); }
+  private: uint8_t v[3];
+};
+
+/* Integer types in big-endian order and no alignment requirement */
+template <typename Type, unsigned int Size>
+struct IntType
+{
+  inline void set (Type i) { v.set (i); }
+  inline operator Type(void) const { return v; }
+  inline bool operator == (const IntType<Type,Size> &o) const { return v == o.v; }
+  inline bool operator != (const IntType<Type,Size> &o) const { return v != o.v; }
+  static inline int cmp (const IntType<Type,Size> *a, const IntType<Type,Size> *b) { return b->cmp (*a); }
+  inline int cmp (IntType<Type,Size> va) const { Type a = va; Type b = v; return a < b ? -1 : a == b ? 0 : +1; }
+  inline int cmp (Type a) const { Type b = v; return a < b ? -1 : a == b ? 0 : +1; }
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (likely (c->check_struct (this)));
+  }
+  protected:
+  BEInt<Type, Size> v;
+  public:
+  DEFINE_SIZE_STATIC (Size);
+};
+
+typedef                uint8_t      BYTE;      /* 8-bit unsigned integer. */
+typedef IntType<uint16_t, 2> USHORT;   /* 16-bit unsigned integer. */
+typedef IntType<int16_t,  2> SHORT;    /* 16-bit signed integer. */
+typedef IntType<uint32_t, 4> ULONG;    /* 32-bit unsigned integer. */
+typedef IntType<int32_t,  4> LONG;     /* 32-bit signed integer. */
+typedef IntType<uint32_t, 3> UINT24;   /* 24-bit unsigned integer. */
+
+/* 16-bit signed integer (SHORT) that describes a quantity in FUnits. */
+typedef SHORT FWORD;
+
+/* 16-bit unsigned integer (USHORT) that describes a quantity in FUnits. */
+typedef USHORT UFWORD;
+
+/* Date represented in number of seconds since 12:00 midnight, January 1,
+ * 1904. The value is represented as a signed 64-bit integer. */
+struct LONGDATETIME
+{
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (likely (c->check_struct (this)));
+  }
+  protected:
+  LONG major;
+  ULONG minor;
+  public:
+  DEFINE_SIZE_STATIC (8);
+};
+
+/* Array of four uint8s (length = 32 bits) used to identify a script, language
+ * system, feature, or baseline */
+struct Tag : ULONG
+{
+  /* What the char* converters return is NOT nul-terminated.  Print using "%.4s" */
+  inline operator const char* (void) const { return reinterpret_cast<const char *> (&this->v); }
+  inline operator char* (void) { return reinterpret_cast<char *> (&this->v); }
+  public:
+  DEFINE_SIZE_STATIC (4);
+};
+DEFINE_NULL_DATA (Tag, "    ");
+
+/* Glyph index number, same as uint16 (length = 16 bits) */
+typedef USHORT GlyphID;
+
+/* Script/language-system/feature index */
+struct Index : USHORT {
+  static const unsigned int NOT_FOUND_INDEX = 0xFFFFu;
+};
+DEFINE_NULL_DATA (Index, "\xff\xff");
+
+/* Offset, Null offset = 0 */
+template <typename Type=USHORT>
+struct Offset : Type
+{
+  inline bool is_null (void) const { return 0 == *this; }
+  public:
+  DEFINE_SIZE_STATIC (sizeof(Type));
+};
+
+
+/* CheckSum */
+struct CheckSum : ULONG
+{
+  /* This is reference implementation from the spec. */
+  static inline uint32_t CalcTableChecksum (const ULONG *Table, uint32_t Length)
+  {
+    uint32_t Sum = 0L;
+    const ULONG *EndPtr = Table+((Length+3) & ~3) / ULONG::static_size;
+
+    while (Table < EndPtr)
+      Sum += *Table++;
+    return Sum;
+  }
+
+  /* Note: data should be 4byte aligned and have 4byte padding at the end. */
+  inline void set_for_data (const void *data, unsigned int length)
+  { set (CalcTableChecksum ((const ULONG *) data, length)); }
+
+  public:
+  DEFINE_SIZE_STATIC (4);
+};
+
+
+/*
+ * Version Numbers
+ */
+
+struct FixedVersion
+{
+  inline uint32_t to_int (void) const { return (major << 16) + minor; }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this));
+  }
+
+  USHORT major;
+  USHORT minor;
+  public:
+  DEFINE_SIZE_STATIC (4);
+};
+
+
+
+/*
+ * Template subclasses of Offset that do the dereferencing.
+ * Use: (base+offset)
+ */
+
+template <typename Type, typename OffsetType=USHORT>
+struct OffsetTo : Offset<OffsetType>
+{
+  inline const Type& operator () (const void *base) const
+  {
+    unsigned int offset = *this;
+    if (unlikely (!offset)) return Null(Type);
+    return StructAtOffset<Type> (base, offset);
+  }
+
+  inline Type& serialize (hb_serialize_context_t *c, void *base)
+  {
+    Type *t = c->start_embed<Type> ();
+    this->set ((char *) t - (char *) base); /* TODO(serialize) Overflow? */
+    return *t;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c, void *base) {
+    TRACE_SANITIZE (this);
+    if (unlikely (!c->check_struct (this))) return TRACE_RETURN (false);
+    unsigned int offset = *this;
+    if (unlikely (!offset)) return TRACE_RETURN (true);
+    Type &obj = StructAtOffset<Type> (base, offset);
+    return TRACE_RETURN (likely (obj.sanitize (c)) || neuter (c));
+  }
+  template <typename T>
+  inline bool sanitize (hb_sanitize_context_t *c, void *base, T user_data) {
+    TRACE_SANITIZE (this);
+    if (unlikely (!c->check_struct (this))) return TRACE_RETURN (false);
+    unsigned int offset = *this;
+    if (unlikely (!offset)) return TRACE_RETURN (true);
+    Type &obj = StructAtOffset<Type> (base, offset);
+    return TRACE_RETURN (likely (obj.sanitize (c, user_data)) || neuter (c));
+  }
+
+  /* Set the offset to Null */
+  inline bool neuter (hb_sanitize_context_t *c) {
+    return c->try_set (this, 0);
+  }
+  DEFINE_SIZE_STATIC (sizeof(OffsetType));
+};
+template <typename Base, typename OffsetType, typename Type>
+static inline const Type& operator + (const Base &base, const OffsetTo<Type, OffsetType> &offset) { return offset (base); }
+template <typename Base, typename OffsetType, typename Type>
+static inline Type& operator + (Base &base, OffsetTo<Type, OffsetType> &offset) { return offset (base); }
+
+
+/*
+ * Array Types
+ */
+
+/* An array with a number of elements. */
+template <typename Type, typename LenType=USHORT>
+struct ArrayOf
+{
+  const Type *sub_array (unsigned int start_offset, unsigned int *pcount /* IN/OUT */) const
+  {
+    unsigned int count = len;
+    if (unlikely (start_offset > count))
+      count = 0;
+    else
+      count -= start_offset;
+    count = MIN (count, *pcount);
+    *pcount = count;
+    return array + start_offset;
+  }
+
+  inline const Type& operator [] (unsigned int i) const
+  {
+    if (unlikely (i >= len)) return Null(Type);
+    return array[i];
+  }
+  inline Type& operator [] (unsigned int i)
+  {
+    return array[i];
+  }
+  inline unsigned int get_size (void) const
+  { return len.static_size + len * Type::static_size; }
+
+  inline bool serialize (hb_serialize_context_t *c,
+                        unsigned int items_len)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false);
+    len.set (items_len); /* TODO(serialize) Overflow? */
+    if (unlikely (!c->extend (*this))) return TRACE_RETURN (false);
+    return TRACE_RETURN (true);
+  }
+
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<Type> &items,
+                        unsigned int items_len)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!serialize (c, items_len))) return TRACE_RETURN (false);
+    for (unsigned int i = 0; i < items_len; i++)
+      array[i] = items[i];
+    items.advance (items_len);
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (unlikely (!sanitize_shallow (c))) return TRACE_RETURN (false);
+
+    /* Note: for structs that do not reference other structs,
+     * we do not need to call their sanitize() as we already did
+     * a bound check on the aggregate array size.  We just include
+     * a small unreachable expression to make sure the structs
+     * pointed to do have a simple sanitize(), ie. they do not
+     * reference other structs via offsets.
+     */
+    (void) (false && array[0].sanitize (c));
+
+    return TRACE_RETURN (true);
+  }
+  inline bool sanitize (hb_sanitize_context_t *c, void *base) {
+    TRACE_SANITIZE (this);
+    if (unlikely (!sanitize_shallow (c))) return TRACE_RETURN (false);
+    unsigned int count = len;
+    for (unsigned int i = 0; i < count; i++)
+      if (unlikely (!array[i].sanitize (c, base)))
+        return TRACE_RETURN (false);
+    return TRACE_RETURN (true);
+  }
+  template <typename T>
+  inline bool sanitize (hb_sanitize_context_t *c, void *base, T user_data) {
+    TRACE_SANITIZE (this);
+    if (unlikely (!sanitize_shallow (c))) return TRACE_RETURN (false);
+    unsigned int count = len;
+    for (unsigned int i = 0; i < count; i++)
+      if (unlikely (!array[i].sanitize (c, base, user_data)))
+        return TRACE_RETURN (false);
+    return TRACE_RETURN (true);
+  }
+
+  template <typename SearchType>
+  inline int lsearch (const SearchType &x) const
+  {
+    unsigned int count = len;
+    for (unsigned int i = 0; i < count; i++)
+      if (!this->array[i].cmp (x))
+        return i;
+    return -1;
+  }
+
+  private:
+  inline bool sanitize_shallow (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && c->check_array (this, Type::static_size, len));
+  }
+
+  public:
+  LenType len;
+  Type array[VAR];
+  public:
+  DEFINE_SIZE_ARRAY (sizeof (LenType), array);
+};
+
+/* Array of Offset's */
+template <typename Type>
+struct OffsetArrayOf : ArrayOf<OffsetTo<Type> > {};
+
+/* Array of offsets relative to the beginning of the array itself. */
+template <typename Type>
+struct OffsetListOf : OffsetArrayOf<Type>
+{
+  inline const Type& operator [] (unsigned int i) const
+  {
+    if (unlikely (i >= this->len)) return Null(Type);
+    return this+this->array[i];
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (OffsetArrayOf<Type>::sanitize (c, this));
+  }
+  template <typename T>
+  inline bool sanitize (hb_sanitize_context_t *c, T user_data) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (OffsetArrayOf<Type>::sanitize (c, this, user_data));
+  }
+};
+
+
+/* An array starting at second element. */
+template <typename Type, typename LenType=USHORT>
+struct HeadlessArrayOf
+{
+  inline const Type& operator [] (unsigned int i) const
+  {
+    if (unlikely (i >= len || !i)) return Null(Type);
+    return array[i-1];
+  }
+  inline unsigned int get_size (void) const
+  { return len.static_size + (len ? len - 1 : 0) * Type::static_size; }
+
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<Type> &items,
+                        unsigned int items_len)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false);
+    len.set (items_len); /* TODO(serialize) Overflow? */
+    if (unlikely (!items_len)) return TRACE_RETURN (true);
+    if (unlikely (!c->extend (*this))) return TRACE_RETURN (false);
+    for (unsigned int i = 0; i < items_len - 1; i++)
+      array[i] = items[i];
+    items.advance (items_len - 1);
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize_shallow (hb_sanitize_context_t *c) {
+    return c->check_struct (this)
+       && c->check_array (this, Type::static_size, len);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (unlikely (!sanitize_shallow (c))) return TRACE_RETURN (false);
+
+    /* Note: for structs that do not reference other structs,
+     * we do not need to call their sanitize() as we already did
+     * a bound check on the aggregate array size.  We just include
+     * a small unreachable expression to make sure the structs
+     * pointed to do have a simple sanitize(), ie. they do not
+     * reference other structs via offsets.
+     */
+    (void) (false && array[0].sanitize (c));
+
+    return TRACE_RETURN (true);
+  }
+
+  LenType len;
+  Type array[VAR];
+  public:
+  DEFINE_SIZE_ARRAY (sizeof (LenType), array);
+};
+
+
+/* An array with sorted elements.  Supports binary searching. */
+template <typename Type, typename LenType=USHORT>
+struct SortedArrayOf : ArrayOf<Type, LenType>
+{
+  template <typename SearchType>
+  inline int bsearch (const SearchType &x) const
+  {
+    /* Hand-coded bsearch here since this is in the hot inner loop. */
+    int min = 0, max = (int) this->len - 1;
+    while (min <= max)
+    {
+      int mid = (min + max) / 2;
+      int c = this->array[mid].cmp (x);
+      if (c < 0)
+        max = mid - 1;
+      else if (c > 0)
+        min = mid + 1;
+      else
+        return mid;
+    }
+    return -1;
+  }
+};
+
+
+} /* namespace OT */
+
+
+#endif /* HB_OPEN_TYPE_PRIVATE_HH */
diff --git a/src/hb-ot-cmap-table.hh b/src/hb-ot-cmap-table.hh
new file mode 100644 (file)
index 0000000..d531411
--- /dev/null
@@ -0,0 +1,517 @@
+/*
+ * Copyright © 2014  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_CMAP_TABLE_HH
+#define HB_OT_CMAP_TABLE_HH
+
+#include "hb-open-type-private.hh"
+
+
+namespace OT {
+
+
+/*
+ * cmap -- Character To Glyph Index Mapping Table
+ */
+
+#define HB_OT_TAG_cmap HB_TAG('c','m','a','p')
+
+
+struct CmapSubtableFormat0
+{
+  inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const
+  {
+    hb_codepoint_t gid = codepoint < 256 ? glyphIdArray[codepoint] : 0;
+    if (!gid)
+      return false;
+    *glyph = gid;
+    return true;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this));
+  }
+
+  protected:
+  USHORT       format;         /* Format number is set to 0. */
+  USHORT       lengthZ;        /* Byte length of this subtable. */
+  USHORT       languageZ;      /* Ignore. */
+  BYTE         glyphIdArray[256];/* An array that maps character
+                                * code to glyph index values. */
+  public:
+  DEFINE_SIZE_STATIC (6 + 256);
+};
+
+struct CmapSubtableFormat4
+{
+  inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const
+  {
+    unsigned int segCount;
+    const USHORT *endCount;
+    const USHORT *startCount;
+    const USHORT *idDelta;
+    const USHORT *idRangeOffset;
+    const USHORT *glyphIdArray;
+    unsigned int glyphIdArrayLength;
+
+    segCount = this->segCountX2 / 2;
+    endCount = this->values;
+    startCount = endCount + segCount + 1;
+    idDelta = startCount + segCount;
+    idRangeOffset = idDelta + segCount;
+    glyphIdArray = idRangeOffset + segCount;
+    glyphIdArrayLength = (this->length - 16 - 8 * segCount) / 2;
+
+    /* Custom two-array bsearch. */
+    int min = 0, max = (int) segCount - 1;
+    unsigned int i;
+    while (min <= max)
+    {
+      int mid = (min + max) / 2;
+      if (codepoint < startCount[mid])
+        max = mid - 1;
+      else if (codepoint > endCount[mid])
+        min = mid + 1;
+      else
+      {
+       i = mid;
+       goto found;
+      }
+    }
+    return false;
+
+  found:
+    hb_codepoint_t gid;
+    unsigned int rangeOffset = idRangeOffset[i];
+    if (rangeOffset == 0)
+      gid = codepoint + idDelta[i];
+    else
+    {
+      /* Somebody has been smoking... */
+      unsigned int index = rangeOffset / 2 + (codepoint - startCount[i]) + i - segCount;
+      if (unlikely (index >= glyphIdArrayLength))
+       return false;
+      gid = glyphIdArray[index];
+      if (unlikely (!gid))
+       return false;
+      gid += idDelta[i];
+    }
+
+    *glyph = gid & 0xFFFFu;
+    return true;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c)
+  {
+    TRACE_SANITIZE (this);
+    if (unlikely (!c->check_struct (this)))
+      return TRACE_RETURN (false);
+
+    if (unlikely (!c->check_range (this, length)))
+    {
+      /* Some broken fonts have too long of a "length" value.
+       * If that is the case, just change the value to truncate
+       * the subtable at the end of the blob. */
+      uint16_t new_length = (uint16_t) MIN ((uintptr_t) 65535,
+                                           (uintptr_t) (c->end -
+                                                        (char *) this));
+      if (!c->try_set (&length, new_length))
+       return TRACE_RETURN (false);
+    }
+
+    return TRACE_RETURN (16 + 4 * (unsigned int) segCountX2 <= length);
+  }
+
+  protected:
+  USHORT       format;         /* Format number is set to 4. */
+  USHORT       length;         /* This is the length in bytes of the
+                                * subtable. */
+  USHORT       languageZ;      /* Ignore. */
+  USHORT       segCountX2;     /* 2 x segCount. */
+  USHORT       searchRangeZ;   /* 2 * (2**floor(log2(segCount))) */
+  USHORT       entrySelectorZ; /* log2(searchRange/2) */
+  USHORT       rangeShiftZ;    /* 2 x segCount - searchRange */
+
+  USHORT       values[VAR];
+#if 0
+  USHORT       endCount[segCount];     /* End characterCode for each segment,
+                                        * last=0xFFFFu. */
+  USHORT       reservedPad;            /* Set to 0. */
+  USHORT       startCount[segCount];   /* Start character code for each segment. */
+  SHORT                idDelta[segCount];      /* Delta for all character codes in segment. */
+  USHORT       idRangeOffset[segCount];/* Offsets into glyphIdArray or 0 */
+  USHORT       glyphIdArray[VAR];      /* Glyph index array (arbitrary length) */
+#endif
+
+  public:
+  DEFINE_SIZE_ARRAY (14, values);
+};
+
+struct CmapSubtableLongGroup
+{
+  friend struct CmapSubtableFormat12;
+  friend struct CmapSubtableFormat13;
+
+  int cmp (hb_codepoint_t codepoint) const
+  {
+    if (codepoint < startCharCode) return -1;
+    if (codepoint > endCharCode)   return +1;
+    return 0;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this));
+  }
+
+  private:
+  ULONG                startCharCode;  /* First character code in this group. */
+  ULONG                endCharCode;    /* Last character code in this group. */
+  ULONG                glyphID;        /* Glyph index; interpretation depends on
+                                * subtable format. */
+  public:
+  DEFINE_SIZE_STATIC (12);
+};
+
+template <typename UINT>
+struct CmapSubtableTrimmed
+{
+  inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const
+  {
+    /* Rely on our implicit array bound-checking. */
+    hb_codepoint_t gid = glyphIdArray[codepoint - startCharCode];
+    if (!gid)
+      return false;
+    *glyph = gid;
+    return true;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && glyphIdArray.sanitize (c));
+  }
+
+  protected:
+  UINT         formatReserved; /* Subtable format and (maybe) padding. */
+  UINT         lengthZ;        /* Byte length of this subtable. */
+  UINT         languageZ;      /* Ignore. */
+  UINT         startCharCode;  /* First character code covered. */
+  ArrayOf<GlyphID, UINT>
+               glyphIdArray;   /* Array of glyph index values for character
+                                * codes in the range. */
+  public:
+  DEFINE_SIZE_ARRAY (5 * sizeof (UINT), glyphIdArray);
+};
+
+struct CmapSubtableFormat6  : CmapSubtableTrimmed<USHORT> {};
+struct CmapSubtableFormat10 : CmapSubtableTrimmed<ULONG > {};
+
+template <typename T>
+struct CmapSubtableLongSegmented
+{
+  inline bool get_glyph (hb_codepoint_t codepoint, hb_codepoint_t *glyph) const
+  {
+    int i = groups.bsearch (codepoint);
+    if (i == -1)
+      return false;
+    *glyph = T::group_get_glyph (groups[i], codepoint);
+    return true;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && groups.sanitize (c));
+  }
+
+  protected:
+  USHORT       format;         /* Subtable format; set to 12. */
+  USHORT       reservedZ;      /* Reserved; set to 0. */
+  ULONG                lengthZ;        /* Byte length of this subtable. */
+  ULONG                languageZ;      /* Ignore. */
+  SortedArrayOf<CmapSubtableLongGroup, ULONG>
+               groups;         /* Groupings. */
+  public:
+  DEFINE_SIZE_ARRAY (16, groups);
+};
+
+struct CmapSubtableFormat12 : CmapSubtableLongSegmented<CmapSubtableFormat12>
+{
+  static inline hb_codepoint_t group_get_glyph (const CmapSubtableLongGroup &group,
+                                               hb_codepoint_t u)
+  { return group.glyphID + (u - group.startCharCode); }
+};
+
+struct CmapSubtableFormat13 : CmapSubtableLongSegmented<CmapSubtableFormat13>
+{
+  static inline hb_codepoint_t group_get_glyph (const CmapSubtableLongGroup &group,
+                                               hb_codepoint_t u HB_UNUSED)
+  { return group.glyphID; }
+};
+
+typedef enum
+{
+  GLYPH_VARIANT_NOT_FOUND = 0,
+  GLYPH_VARIANT_FOUND = 1,
+  GLYPH_VARIANT_USE_DEFAULT = 2
+} glyph_variant_t;
+
+struct UnicodeValueRange
+{
+  inline int cmp (const hb_codepoint_t &codepoint) const
+  {
+    if (codepoint < startUnicodeValue) return -1;
+    if (codepoint > startUnicodeValue + additionalCount) return +1;
+    return 0;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this));
+  }
+
+  UINT24       startUnicodeValue;      /* First value in this range. */
+  BYTE         additionalCount;        /* Number of additional values in this
+                                        * range. */
+  public:
+  DEFINE_SIZE_STATIC (4);
+};
+
+typedef SortedArrayOf<UnicodeValueRange, ULONG> DefaultUVS;
+
+struct UVSMapping
+{
+  inline int cmp (const hb_codepoint_t &codepoint) const
+  {
+    return unicodeValue.cmp (codepoint);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this));
+  }
+
+  UINT24       unicodeValue;   /* Base Unicode value of the UVS */
+  GlyphID      glyphID;        /* Glyph ID of the UVS */
+  public:
+  DEFINE_SIZE_STATIC (5);
+};
+
+typedef SortedArrayOf<UVSMapping, ULONG> NonDefaultUVS;
+
+struct VariationSelectorRecord
+{
+  inline glyph_variant_t get_glyph (hb_codepoint_t codepoint,
+                                   hb_codepoint_t *glyph,
+                                   const void *base) const
+  {
+    int i;
+    const DefaultUVS &defaults = base+defaultUVS;
+    i = defaults.bsearch (codepoint);
+    if (i != -1)
+      return GLYPH_VARIANT_USE_DEFAULT;
+    const NonDefaultUVS &nonDefaults = base+nonDefaultUVS;
+    i = nonDefaults.bsearch (codepoint);
+    if (i != -1)
+    {
+      *glyph = nonDefaults[i].glyphID;
+       return GLYPH_VARIANT_FOUND;
+    }
+    return GLYPH_VARIANT_NOT_FOUND;
+  }
+
+  inline int cmp (const hb_codepoint_t &variation_selector) const
+  {
+    return varSelector.cmp (variation_selector);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c, void *base) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) &&
+                        defaultUVS.sanitize (c, base) &&
+                        nonDefaultUVS.sanitize (c, base));
+  }
+
+  UINT24       varSelector;    /* Variation selector. */
+  OffsetTo<DefaultUVS, ULONG>
+               defaultUVS;     /* Offset to Default UVS Table. May be 0. */
+  OffsetTo<NonDefaultUVS, ULONG>
+               nonDefaultUVS;  /* Offset to Non-Default UVS Table. May be 0. */
+  public:
+  DEFINE_SIZE_STATIC (11);
+};
+
+struct CmapSubtableFormat14
+{
+  inline glyph_variant_t get_glyph_variant (hb_codepoint_t codepoint,
+                                           hb_codepoint_t variation_selector,
+                                           hb_codepoint_t *glyph) const
+  {
+    return record[record.bsearch(variation_selector)].get_glyph (codepoint, glyph, this);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) &&
+                        record.sanitize (c, this));
+  }
+
+  protected:
+  USHORT       format;         /* Format number is set to 0. */
+  ULONG                lengthZ;        /* Byte length of this subtable. */
+  SortedArrayOf<VariationSelectorRecord, ULONG>
+               record;         /* Variation selector records; sorted
+                                * in increasing order of `varSelector'. */
+  public:
+  DEFINE_SIZE_ARRAY (10, record);
+};
+
+struct CmapSubtable
+{
+  /* Note: We intentionally do NOT implement subtable formats 2 and 8. */
+
+  inline bool get_glyph (hb_codepoint_t codepoint,
+                        hb_codepoint_t *glyph) const
+  {
+    switch (u.format) {
+    case  0: return u.format0 .get_glyph(codepoint, glyph);
+    case  4: return u.format4 .get_glyph(codepoint, glyph);
+    case  6: return u.format6 .get_glyph(codepoint, glyph);
+    case 10: return u.format10.get_glyph(codepoint, glyph);
+    case 12: return u.format12.get_glyph(codepoint, glyph);
+    case 13: return u.format13.get_glyph(codepoint, glyph);
+    case 14:
+    default: return false;
+    }
+  }
+
+  inline glyph_variant_t get_glyph_variant (hb_codepoint_t codepoint,
+                                           hb_codepoint_t variation_selector,
+                                           hb_codepoint_t *glyph) const
+  {
+    switch (u.format) {
+    case 14: return u.format14.get_glyph_variant(codepoint, variation_selector, glyph);
+    default: return GLYPH_VARIANT_NOT_FOUND;
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case  0: return TRACE_RETURN (u.format0 .sanitize (c));
+    case  4: return TRACE_RETURN (u.format4 .sanitize (c));
+    case  6: return TRACE_RETURN (u.format6 .sanitize (c));
+    case 10: return TRACE_RETURN (u.format10.sanitize (c));
+    case 12: return TRACE_RETURN (u.format12.sanitize (c));
+    case 13: return TRACE_RETURN (u.format13.sanitize (c));
+    case 14: return TRACE_RETURN (u.format14.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  CmapSubtableFormat0  format0;
+  CmapSubtableFormat4  format4;
+  CmapSubtableFormat6  format6;
+  CmapSubtableFormat10 format10;
+  CmapSubtableFormat12 format12;
+  CmapSubtableFormat13 format13;
+  CmapSubtableFormat14 format14;
+  } u;
+  public:
+  DEFINE_SIZE_UNION (2, format);
+};
+
+
+struct EncodingRecord
+{
+  inline int cmp (const EncodingRecord &other) const
+  {
+    int ret;
+    ret = platformID.cmp (other.platformID);
+    if (ret) return ret;
+    ret = encodingID.cmp (other.encodingID);
+    if (ret) return ret;
+    return 0;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c, void *base) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) &&
+                        subtable.sanitize (c, base));
+  }
+
+  USHORT       platformID;     /* Platform ID. */
+  USHORT       encodingID;     /* Platform-specific encoding ID. */
+  OffsetTo<CmapSubtable, ULONG>
+               subtable;       /* Byte offset from beginning of table to the subtable for this encoding. */
+  public:
+  DEFINE_SIZE_STATIC (8);
+};
+
+struct cmap
+{
+  static const hb_tag_t tableTag       = HB_OT_TAG_cmap;
+
+  inline const CmapSubtable *find_subtable (unsigned int platform_id,
+                                           unsigned int encoding_id) const
+  {
+    EncodingRecord key;
+    key.platformID.set (platform_id);
+    key.encodingID.set (encoding_id);
+
+    /* Note: We can use bsearch, but since it has no performance
+     * implications, we use lsearch and as such accept fonts with
+     * unsorted subtable list. */
+    int result = encodingRecord./*bsearch*/lsearch (key);
+    if (result == -1 || !encodingRecord[result].subtable)
+      return NULL;
+
+    return &(this+encodingRecord[result].subtable);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) &&
+                        likely (version == 0) &&
+                        encodingRecord.sanitize (c, this));
+  }
+
+  USHORT               version;        /* Table version number (0). */
+  SortedArrayOf<EncodingRecord>
+                       encodingRecord; /* Encoding tables. */
+  public:
+  DEFINE_SIZE_ARRAY (4, encodingRecord);
+};
+
+
+} /* namespace OT */
+
+
+#endif /* HB_OT_CMAP_TABLE_HH */
diff --git a/src/hb-ot-font.cc b/src/hb-ot-font.cc
new file mode 100644 (file)
index 0000000..c9890c5
--- /dev/null
@@ -0,0 +1,289 @@
+/*
+ * Copyright © 2011,2014  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod, Roozbeh Pournader
+ */
+
+#include "hb-private.hh"
+
+#include "hb-ot.h"
+
+#include "hb-font-private.hh"
+
+#include "hb-ot-cmap-table.hh"
+#include "hb-ot-hhea-table.hh"
+#include "hb-ot-hmtx-table.hh"
+
+
+
+struct hb_ot_font_t
+{
+  unsigned int num_glyphs;
+  unsigned int num_hmetrics;
+  const OT::hmtx *hmtx;
+  hb_blob_t *hmtx_blob;
+
+  const OT::CmapSubtable *cmap;
+  const OT::CmapSubtable *cmap_uvs;
+  hb_blob_t *cmap_blob;
+};
+
+
+static hb_ot_font_t *
+_hb_ot_font_create (hb_font_t *font)
+{
+  hb_ot_font_t *ot_font = (hb_ot_font_t *) calloc (1, sizeof (hb_ot_font_t));
+
+  if (unlikely (!ot_font))
+    return NULL;
+
+  ot_font->num_glyphs = font->face->get_num_glyphs ();
+
+  {
+    hb_blob_t *hhea_blob = OT::Sanitizer<OT::hhea>::sanitize (font->face->reference_table (HB_OT_TAG_hhea));
+    const OT::hhea *hhea = OT::Sanitizer<OT::hhea>::lock_instance (hhea_blob);
+    ot_font->num_hmetrics = hhea->numberOfHMetrics;
+    hb_blob_destroy (hhea_blob);
+  }
+  ot_font->hmtx_blob = OT::Sanitizer<OT::hmtx>::sanitize (font->face->reference_table (HB_OT_TAG_hmtx));
+  if (unlikely (!ot_font->num_hmetrics ||
+               2 * (ot_font->num_hmetrics + ot_font->num_glyphs) < hb_blob_get_length (ot_font->hmtx_blob)))
+  {
+    hb_blob_destroy (ot_font->hmtx_blob);
+    free (ot_font);
+    return NULL;
+  }
+  ot_font->hmtx = OT::Sanitizer<OT::hmtx>::lock_instance (ot_font->hmtx_blob);
+
+  ot_font->cmap_blob = OT::Sanitizer<OT::cmap>::sanitize (font->face->reference_table (HB_OT_TAG_cmap));
+  const OT::cmap *cmap = OT::Sanitizer<OT::cmap>::lock_instance (ot_font->cmap_blob);
+  const OT::CmapSubtable *subtable = NULL;
+  const OT::CmapSubtable *subtable_uvs = NULL;
+
+  /* 32-bit subtables. */
+  if (!subtable) subtable = cmap->find_subtable (0, 6);
+  if (!subtable) subtable = cmap->find_subtable (0, 4);
+  if (!subtable) subtable = cmap->find_subtable (3, 10);
+  /* 16-bit subtables. */
+  if (!subtable) subtable = cmap->find_subtable (0, 3);
+  if (!subtable) subtable = cmap->find_subtable (3, 1);
+  /* Meh. */
+  if (!subtable) subtable = &OT::Null(OT::CmapSubtable);
+
+  /* UVS subtable. */
+  if (!subtable_uvs) subtable_uvs = cmap->find_subtable (0, 5);
+  /* Meh. */
+  if (!subtable_uvs) subtable_uvs = &OT::Null(OT::CmapSubtable);
+
+  ot_font->cmap = subtable;
+  ot_font->cmap_uvs = subtable_uvs;
+
+  return ot_font;
+}
+
+static void
+_hb_ot_font_destroy (hb_ot_font_t *ot_font)
+{
+  hb_blob_destroy (ot_font->cmap_blob);
+  hb_blob_destroy (ot_font->hmtx_blob);
+
+  free (ot_font);
+}
+
+
+static hb_bool_t
+hb_ot_get_glyph (hb_font_t *font HB_UNUSED,
+                void *font_data,
+                hb_codepoint_t unicode,
+                hb_codepoint_t variation_selector,
+                hb_codepoint_t *glyph,
+                void *user_data HB_UNUSED)
+
+{
+  const hb_ot_font_t *ot_font = (const hb_ot_font_t *) font_data;
+
+  if (unlikely (variation_selector))
+  {
+    switch (ot_font->cmap_uvs->get_glyph_variant (unicode,
+                                                 variation_selector,
+                                                 glyph))
+    {
+      case OT::GLYPH_VARIANT_NOT_FOUND:                return false;
+      case OT::GLYPH_VARIANT_FOUND:            return true;
+      case OT::GLYPH_VARIANT_USE_DEFAULT:      break;
+    }
+  }
+
+  return ot_font->cmap->get_glyph (unicode, glyph);
+}
+
+static hb_position_t
+hb_ot_get_glyph_h_advance (hb_font_t *font HB_UNUSED,
+                          void *font_data,
+                          hb_codepoint_t glyph,
+                          void *user_data HB_UNUSED)
+{
+  const hb_ot_font_t *ot_font = (const hb_ot_font_t *) font_data;
+
+  if (unlikely (glyph >= ot_font->num_glyphs))
+    return 0; /* Maybe better to return notdef's advance instead? */
+
+  if (glyph >= ot_font->num_hmetrics)
+    glyph = ot_font->num_hmetrics - 1;
+
+  return font->em_scale_x (ot_font->hmtx->longHorMetric[glyph].advanceWidth);
+}
+
+static hb_position_t
+hb_ot_get_glyph_v_advance (hb_font_t *font HB_UNUSED,
+                          void *font_data,
+                          hb_codepoint_t glyph,
+                          void *user_data HB_UNUSED)
+{
+  /* TODO */
+  return 0;
+}
+
+static hb_bool_t
+hb_ot_get_glyph_h_origin (hb_font_t *font HB_UNUSED,
+                         void *font_data HB_UNUSED,
+                         hb_codepoint_t glyph HB_UNUSED,
+                         hb_position_t *x HB_UNUSED,
+                         hb_position_t *y HB_UNUSED,
+                         void *user_data HB_UNUSED)
+{
+  /* We always work in the horizontal coordinates. */
+  return true;
+}
+
+static hb_bool_t
+hb_ot_get_glyph_v_origin (hb_font_t *font HB_UNUSED,
+                         void *font_data,
+                         hb_codepoint_t glyph,
+                         hb_position_t *x,
+                         hb_position_t *y,
+                         void *user_data HB_UNUSED)
+{
+  /* TODO */
+  return false;
+}
+
+static hb_position_t
+hb_ot_get_glyph_h_kerning (hb_font_t *font,
+                          void *font_data,
+                          hb_codepoint_t left_glyph,
+                          hb_codepoint_t right_glyph,
+                          void *user_data HB_UNUSED)
+{
+  /* TODO */
+  return 0;
+}
+
+static hb_position_t
+hb_ot_get_glyph_v_kerning (hb_font_t *font HB_UNUSED,
+                          void *font_data HB_UNUSED,
+                          hb_codepoint_t top_glyph HB_UNUSED,
+                          hb_codepoint_t bottom_glyph HB_UNUSED,
+                          void *user_data HB_UNUSED)
+{
+  return 0;
+}
+
+static hb_bool_t
+hb_ot_get_glyph_extents (hb_font_t *font HB_UNUSED,
+                        void *font_data,
+                        hb_codepoint_t glyph,
+                        hb_glyph_extents_t *extents,
+                        void *user_data HB_UNUSED)
+{
+  /* TODO */
+  return false;
+}
+
+static hb_bool_t
+hb_ot_get_glyph_contour_point (hb_font_t *font HB_UNUSED,
+                              void *font_data,
+                              hb_codepoint_t glyph,
+                              unsigned int point_index,
+                              hb_position_t *x,
+                              hb_position_t *y,
+                              void *user_data HB_UNUSED)
+{
+  /* TODO */
+  return false;
+}
+
+static hb_bool_t
+hb_ot_get_glyph_name (hb_font_t *font HB_UNUSED,
+                     void *font_data,
+                     hb_codepoint_t glyph,
+                     char *name, unsigned int size,
+                     void *user_data HB_UNUSED)
+{
+  /* TODO */
+  return false;
+}
+
+static hb_bool_t
+hb_ot_get_glyph_from_name (hb_font_t *font HB_UNUSED,
+                          void *font_data,
+                          const char *name, int len, /* -1 means nul-terminated */
+                          hb_codepoint_t *glyph,
+                          void *user_data HB_UNUSED)
+{
+  /* TODO */
+  return false;
+}
+
+
+static hb_font_funcs_t *
+_hb_ot_get_font_funcs (void)
+{
+  static const hb_font_funcs_t ot_ffuncs = {
+    HB_OBJECT_HEADER_STATIC,
+
+    true, /* immutable */
+
+    {
+#define HB_FONT_FUNC_IMPLEMENT(name) hb_ot_get_##name,
+      HB_FONT_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_FONT_FUNC_IMPLEMENT
+    }
+  };
+
+  return const_cast<hb_font_funcs_t *> (&ot_ffuncs);
+}
+
+
+void
+hb_ot_font_set_funcs (hb_font_t *font)
+{
+  hb_ot_font_t *ot_font = _hb_ot_font_create (font);
+  if (unlikely (!ot_font))
+    return;
+
+  hb_font_set_funcs (font,
+                    _hb_ot_get_font_funcs (),
+                    ot_font,
+                    (hb_destroy_func_t) _hb_ot_font_destroy);
+}
diff --git a/src/hb-ot-font.h b/src/hb-ot-font.h
new file mode 100644 (file)
index 0000000..7a8c04a
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * Copyright © 2014  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod, Roozbeh Pournader
+ */
+
+#ifndef HB_OT_FONT_H
+#define HB_OT_FONT_H
+
+#include "hb.h"
+
+HB_BEGIN_DECLS
+
+
+void
+hb_ot_font_set_funcs (hb_font_t *font);
+
+
+HB_END_DECLS
+
+#endif /* HB_OT_FONT_H */
diff --git a/src/hb-ot-head-table.hh b/src/hb-ot-head-table.hh
new file mode 100644 (file)
index 0000000..ec4e8c9
--- /dev/null
@@ -0,0 +1,149 @@
+/*
+ * Copyright © 2010  Red Hat, Inc.
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_HEAD_TABLE_HH
+#define HB_OT_HEAD_TABLE_HH
+
+#include "hb-open-type-private.hh"
+
+
+namespace OT {
+
+
+/*
+ * head -- Font Header
+ */
+
+#define HB_OT_TAG_head HB_TAG('h','e','a','d')
+
+struct head
+{
+  static const hb_tag_t tableTag       = HB_OT_TAG_head;
+
+  inline unsigned int get_upem (void) const {
+    unsigned int upem = unitsPerEm;
+    /* If no valid head table found, assume 1000, which matches typical Type1 usage. */
+    return 16 <= upem && upem <= 16384 ? upem : 1000;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && likely (version.major == 1));
+  }
+
+  protected:
+  FixedVersion version;                /* Version of the head table--currently
+                                        * 0x00010000u for version 1.0. */
+  FixedVersion fontRevision;           /* Set by font manufacturer. */
+  ULONG                checkSumAdjustment;     /* To compute: set it to 0, sum the
+                                        * entire font as ULONG, then store
+                                        * 0xB1B0AFBAu - sum. */
+  ULONG                magicNumber;            /* Set to 0x5F0F3CF5u. */
+  USHORT       flags;                  /* Bit 0: Baseline for font at y=0;
+                                        * Bit 1: Left sidebearing point at x=0;
+                                        * Bit 2: Instructions may depend on point size;
+                                        * Bit 3: Force ppem to integer values for all
+                                        *   internal scaler math; may use fractional
+                                        *   ppem sizes if this bit is clear;
+                                        * Bit 4: Instructions may alter advance width
+                                        *   (the advance widths might not scale linearly);
+
+                                        * Bits 5-10: These should be set according to
+                                        *   Apple's specification. However, they are not
+                                        *   implemented in OpenType.
+                                        * Bit 5: This bit should be set in fonts that are
+                                        *   intended to e laid out vertically, and in
+                                        *   which the glyphs have been drawn such that an
+                                        *   x-coordinate of 0 corresponds to the desired
+                                        *   vertical baseline.
+                                        * Bit 6: This bit must be set to zero.
+                                        * Bit 7: This bit should be set if the font
+                                        *   requires layout for correct linguistic
+                                        *   rendering (e.g. Arabic fonts).
+                                        * Bit 8: This bit should be set for a GX font
+                                        *   which has one or more metamorphosis effects
+                                        *   designated as happening by default.
+                                        * Bit 9: This bit should be set if the font
+                                        *   contains any strong right-to-left glyphs.
+                                        * Bit 10: This bit should be set if the font
+                                        *   contains Indic-style rearrangement effects.
+
+                                        * Bit 11: Font data is 'lossless,' as a result
+                                        *   of having been compressed and decompressed
+                                        *   with the Agfa MicroType Express engine.
+                                        * Bit 12: Font converted (produce compatible metrics)
+                                        * Bit 13: Font optimized for ClearType™.
+                                        *   Note, fonts that rely on embedded bitmaps (EBDT)
+                                        *   for rendering should not be considered optimized
+                                        *   for ClearType, and therefore should keep this bit
+                                        *   cleared.
+                                        * Bit 14: Last Resort font. If set, indicates that
+                                        * the glyphs encoded in the cmap subtables are simply
+                                        * generic symbolic representations of code point
+                                        * ranges and don’t truly represent support for those
+                                        * code points. If unset, indicates that the glyphs
+                                        * encoded in the cmap subtables represent proper
+                                        * support for those code points.
+                                        * Bit 15: Reserved, set to 0. */
+  USHORT       unitsPerEm;             /* Valid range is from 16 to 16384. This value
+                                        * should be a power of 2 for fonts that have
+                                        * TrueType outlines. */
+  LONGDATETIME created;                /* Number of seconds since 12:00 midnight,
+                                          January 1, 1904. 64-bit integer */
+  LONGDATETIME modified;               /* Number of seconds since 12:00 midnight,
+                                          January 1, 1904. 64-bit integer */
+  SHORT                xMin;                   /* For all glyph bounding boxes. */
+  SHORT                yMin;                   /* For all glyph bounding boxes. */
+  SHORT                xMax;                   /* For all glyph bounding boxes. */
+  SHORT                yMax;                   /* For all glyph bounding boxes. */
+  USHORT       macStyle;               /* Bit 0: Bold (if set to 1);
+                                        * Bit 1: Italic (if set to 1)
+                                        * Bit 2: Underline (if set to 1)
+                                        * Bit 3: Outline (if set to 1)
+                                        * Bit 4: Shadow (if set to 1)
+                                        * Bit 5: Condensed (if set to 1)
+                                        * Bit 6: Extended (if set to 1)
+                                        * Bits 7-15: Reserved (set to 0). */
+  USHORT       lowestRecPPEM;          /* Smallest readable size in pixels. */
+  SHORT                fontDirectionHint;      /* Deprecated (Set to 2).
+                                        * 0: Fully mixed directional glyphs;
+                                        * 1: Only strongly left to right;
+                                        * 2: Like 1 but also contains neutrals;
+                                        * -1: Only strongly right to left;
+                                        * -2: Like -1 but also contains neutrals. */
+  SHORT                indexToLocFormat;       /* 0 for short offsets, 1 for long. */
+  SHORT                glyphDataFormat;        /* 0 for current format. */
+  public:
+  DEFINE_SIZE_STATIC (54);
+};
+
+
+} /* namespace OT */
+
+
+#endif /* HB_OT_HEAD_TABLE_HH */
diff --git a/src/hb-ot-hhea-table.hh b/src/hb-ot-hhea-table.hh
new file mode 100644 (file)
index 0000000..d433200
--- /dev/null
@@ -0,0 +1,97 @@
+/*
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_HHEA_TABLE_HH
+#define HB_OT_HHEA_TABLE_HH
+
+#include "hb-open-type-private.hh"
+
+
+namespace OT {
+
+
+/*
+ * hhea -- The Horizontal Header Table
+ */
+
+#define HB_OT_TAG_hhea HB_TAG('h','h','e','a')
+
+
+struct hhea
+{
+  static const hb_tag_t tableTag       = HB_OT_TAG_hhea;
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && likely (version.major == 1));
+  }
+
+  public:
+  FixedVersion version;                /* 0x00010000u for version 1.0. */
+  FWORD                ascender;               /* Typographic ascent. <a
+                                        * href="http://developer.apple.com/fonts/TTRefMan/RM06/Chap6hhea.html">
+                                        * (Distance from baseline of highest
+                                        * ascender)</a> */
+  FWORD                descender;              /* Typographic descent. <a
+                                        * href="http://developer.apple.com/fonts/TTRefMan/RM06/Chap6hhea.html">
+                                        * (Distance from baseline of lowest
+                                        * descender)</a> */
+  FWORD                lineGap;                /* Typographic line gap. Negative
+                                        * LineGap values are treated as zero
+                                        * in Windows 3.1, System 6, and
+                                        * System 7. */
+  UFWORD       advanceWidthMax;        /* Maximum advance width value in
+                                        * 'hmtx' table. */
+  FWORD                minLeftSideBearing;     /* Minimum left sidebearing value in
+                                        * 'hmtx' table. */
+  FWORD                minRightSideBearing;    /* Minimum right sidebearing value;
+                                        * calculated as Min(aw - lsb -
+                                        * (xMax - xMin)). */
+  FWORD                xMaxExtent;             /* Max(lsb + (xMax - xMin)). */
+  SHORT                caretSlopeRise;         /* Used to calculate the slope of the
+                                        * cursor (rise/run); 1 for vertical. */
+  SHORT                caretSlopeRun;          /* 0 for vertical. */
+  SHORT                caretOffset;            /* The amount by which a slanted
+                                        * highlight on a glyph needs
+                                        * to be shifted to produce the
+                                        * best appearance. Set to 0 for
+                                        * non--slanted fonts */
+  SHORT                reserved1;              /* set to 0 */
+  SHORT                reserved2;              /* set to 0 */
+  SHORT                reserved3;              /* set to 0 */
+  SHORT                reserved4;              /* set to 0 */
+  SHORT                metricDataFormat;       /* 0 for current format. */
+  USHORT       numberOfHMetrics;       /* Number of hMetric entries in 'hmtx'
+                                        * table */
+  public:
+  DEFINE_SIZE_STATIC (36);
+};
+
+
+} /* namespace OT */
+
+
+#endif /* HB_OT_HHEA_TABLE_HH */
diff --git a/src/hb-ot-hmtx-table.hh b/src/hb-ot-hmtx-table.hh
new file mode 100644 (file)
index 0000000..e918e3b
--- /dev/null
@@ -0,0 +1,92 @@
+/*
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_HMTX_TABLE_HH
+#define HB_OT_HMTX_TABLE_HH
+
+#include "hb-open-type-private.hh"
+
+
+namespace OT {
+
+
+/*
+ * hmtx -- The Horizontal Metrics Table
+ */
+
+#define HB_OT_TAG_hmtx HB_TAG('h','m','t','x')
+
+
+struct LongHorMetric
+{
+  USHORT       advanceWidth;
+  SHORT                lsb;
+  public:
+  DEFINE_SIZE_STATIC (4);
+};
+
+struct hmtx
+{
+  static const hb_tag_t tableTag       = HB_OT_TAG_hmtx;
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    /* We don't check for anything specific here.  The users of the
+     * struct do all the hard work... */
+    return TRACE_RETURN (true);
+  }
+
+  public:
+  LongHorMetric        longHorMetric[VAR];     /* Paired advance width and left side
+                                        * bearing values for each glyph. The
+                                        * value numOfHMetrics comes from
+                                        * the 'hhea' table. If the font is
+                                        * monospaced, only one entry need
+                                        * be in the array, but that entry is
+                                        * required. The last entry applies to
+                                        * all subsequent glyphs. */
+  SHORT                leftSideBearingX[VAR];  /* Here the advanceWidth is assumed
+                                        * to be the same as the advanceWidth
+                                        * for the last entry above. The
+                                        * number of entries in this array is
+                                        * derived from numGlyphs (from 'maxp'
+                                        * table) minus numberOfHMetrics. This
+                                        * generally is used with a run of
+                                        * monospaced glyphs (e.g., Kanji
+                                        * fonts or Courier fonts). Only one
+                                        * run is allowed and it must be at
+                                        * the end. This allows a monospaced
+                                        * font to vary the left side bearing
+                                        * values for each glyph. */
+  public:
+  DEFINE_SIZE_ARRAY2 (0, longHorMetric, leftSideBearingX);
+};
+
+
+} /* namespace OT */
+
+
+#endif /* HB_OT_HMTX_TABLE_HH */
diff --git a/src/hb-ot-layout-common-private.hh b/src/hb-ot-layout-common-private.hh
new file mode 100644 (file)
index 0000000..abd063c
--- /dev/null
@@ -0,0 +1,1173 @@
+/*
+ * Copyright © 2007,2008,2009  Red Hat, Inc.
+ * Copyright © 2010,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_LAYOUT_COMMON_PRIVATE_HH
+#define HB_OT_LAYOUT_COMMON_PRIVATE_HH
+
+#include "hb-ot-layout-private.hh"
+#include "hb-open-type-private.hh"
+#include "hb-set-private.hh"
+
+
+namespace OT {
+
+
+#define NOT_COVERED            ((unsigned int) -1)
+#define MAX_NESTING_LEVEL      8
+#define MAX_CONTEXT_LENGTH     64
+
+
+
+/*
+ *
+ * OpenType Layout Common Table Formats
+ *
+ */
+
+
+/*
+ * Script, ScriptList, LangSys, Feature, FeatureList, Lookup, LookupList
+ */
+
+template <typename Type>
+struct Record
+{
+  inline int cmp (hb_tag_t a) const {
+    return tag.cmp (a);
+  }
+
+  struct sanitize_closure_t {
+    hb_tag_t tag;
+    void *list_base;
+  };
+  inline bool sanitize (hb_sanitize_context_t *c, void *base) {
+    TRACE_SANITIZE (this);
+    const sanitize_closure_t closure = {tag, base};
+    return TRACE_RETURN (c->check_struct (this) && offset.sanitize (c, base, &closure));
+  }
+
+  Tag          tag;            /* 4-byte Tag identifier */
+  OffsetTo<Type>
+               offset;         /* Offset from beginning of object holding
+                                * the Record */
+  public:
+  DEFINE_SIZE_STATIC (6);
+};
+
+template <typename Type>
+struct RecordArrayOf : SortedArrayOf<Record<Type> > {
+  inline const Tag& get_tag (unsigned int i) const
+  {
+    /* We cheat slightly and don't define separate Null objects
+     * for Record types.  Instead, we return the correct Null(Tag)
+     * here. */
+    if (unlikely (i >= this->len)) return Null(Tag);
+    return (*this)[i].tag;
+  }
+  inline unsigned int get_tags (unsigned int start_offset,
+                               unsigned int *record_count /* IN/OUT */,
+                               hb_tag_t     *record_tags /* OUT */) const
+  {
+    if (record_count) {
+      const Record<Type> *arr = this->sub_array (start_offset, record_count);
+      unsigned int count = *record_count;
+      for (unsigned int i = 0; i < count; i++)
+       record_tags[i] = arr[i].tag;
+    }
+    return this->len;
+  }
+  inline bool find_index (hb_tag_t tag, unsigned int *index) const
+  {
+    /* If we want to allow non-sorted data, we can lsearch(). */
+    int i = this->/*lsearch*/bsearch (tag);
+    if (i != -1) {
+        if (index) *index = i;
+        return true;
+    } else {
+      if (index) *index = Index::NOT_FOUND_INDEX;
+      return false;
+    }
+  }
+};
+
+template <typename Type>
+struct RecordListOf : RecordArrayOf<Type>
+{
+  inline const Type& operator [] (unsigned int i) const
+  { return this+RecordArrayOf<Type>::operator [](i).offset; }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (RecordArrayOf<Type>::sanitize (c, this));
+  }
+};
+
+
+struct RangeRecord
+{
+  inline int cmp (hb_codepoint_t g) const {
+    return g < start ? -1 : g <= end ? 0 : +1 ;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this));
+  }
+
+  inline bool intersects (const hb_set_t *glyphs) const {
+    return glyphs->intersects (start, end);
+  }
+
+  template <typename set_t>
+  inline void add_coverage (set_t *glyphs) const {
+    glyphs->add_range (start, end);
+  }
+
+  GlyphID      start;          /* First GlyphID in the range */
+  GlyphID      end;            /* Last GlyphID in the range */
+  USHORT       value;          /* Value */
+  public:
+  DEFINE_SIZE_STATIC (6);
+};
+DEFINE_NULL_DATA (RangeRecord, "\000\001");
+
+
+struct IndexArray : ArrayOf<Index>
+{
+  inline unsigned int get_indexes (unsigned int start_offset,
+                                  unsigned int *_count /* IN/OUT */,
+                                  unsigned int *_indexes /* OUT */) const
+  {
+    if (_count) {
+      const USHORT *arr = this->sub_array (start_offset, _count);
+      unsigned int count = *_count;
+      for (unsigned int i = 0; i < count; i++)
+       _indexes[i] = arr[i];
+    }
+    return this->len;
+  }
+};
+
+
+struct Script;
+struct LangSys;
+struct Feature;
+
+
+struct LangSys
+{
+  inline unsigned int get_feature_count (void) const
+  { return featureIndex.len; }
+  inline hb_tag_t get_feature_index (unsigned int i) const
+  { return featureIndex[i]; }
+  inline unsigned int get_feature_indexes (unsigned int start_offset,
+                                          unsigned int *feature_count /* IN/OUT */,
+                                          unsigned int *feature_indexes /* OUT */) const
+  { return featureIndex.get_indexes (start_offset, feature_count, feature_indexes); }
+
+  inline bool has_required_feature (void) const { return reqFeatureIndex != 0xFFFFu; }
+  inline unsigned int get_required_feature_index (void) const
+  {
+    if (reqFeatureIndex == 0xFFFFu)
+      return Index::NOT_FOUND_INDEX;
+   return reqFeatureIndex;;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c,
+                       const Record<LangSys>::sanitize_closure_t * = NULL) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && featureIndex.sanitize (c));
+  }
+
+  Offset<>     lookupOrderZ;   /* = Null (reserved for an offset to a
+                                * reordering table) */
+  USHORT       reqFeatureIndex;/* Index of a feature required for this
+                                * language system--if no required features
+                                * = 0xFFFFu */
+  IndexArray   featureIndex;   /* Array of indices into the FeatureList */
+  public:
+  DEFINE_SIZE_ARRAY (6, featureIndex);
+};
+DEFINE_NULL_DATA (LangSys, "\0\0\xFF\xFF");
+
+
+struct Script
+{
+  inline unsigned int get_lang_sys_count (void) const
+  { return langSys.len; }
+  inline const Tag& get_lang_sys_tag (unsigned int i) const
+  { return langSys.get_tag (i); }
+  inline unsigned int get_lang_sys_tags (unsigned int start_offset,
+                                        unsigned int *lang_sys_count /* IN/OUT */,
+                                        hb_tag_t     *lang_sys_tags /* OUT */) const
+  { return langSys.get_tags (start_offset, lang_sys_count, lang_sys_tags); }
+  inline const LangSys& get_lang_sys (unsigned int i) const
+  {
+    if (i == Index::NOT_FOUND_INDEX) return get_default_lang_sys ();
+    return this+langSys[i].offset;
+  }
+  inline bool find_lang_sys_index (hb_tag_t tag, unsigned int *index) const
+  { return langSys.find_index (tag, index); }
+
+  inline bool has_default_lang_sys (void) const { return defaultLangSys != 0; }
+  inline const LangSys& get_default_lang_sys (void) const { return this+defaultLangSys; }
+
+  inline bool sanitize (hb_sanitize_context_t *c,
+                       const Record<Script>::sanitize_closure_t * = NULL) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (defaultLangSys.sanitize (c, this) && langSys.sanitize (c, this));
+  }
+
+  protected:
+  OffsetTo<LangSys>
+               defaultLangSys; /* Offset to DefaultLangSys table--from
+                                * beginning of Script table--may be Null */
+  RecordArrayOf<LangSys>
+               langSys;        /* Array of LangSysRecords--listed
+                                * alphabetically by LangSysTag */
+  public:
+  DEFINE_SIZE_ARRAY (4, langSys);
+};
+
+typedef RecordListOf<Script> ScriptList;
+
+
+/* http://www.microsoft.com/typography/otspec/features_pt.htm#size */
+struct FeatureParamsSize
+{
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (unlikely (!c->check_struct (this))) return TRACE_RETURN (false);
+
+    /* This subtable has some "history", if you will.  Some earlier versions of
+     * Adobe tools calculated the offset of the FeatureParams sutable from the
+     * beginning of the FeatureList table!  Now, that is dealt with in the
+     * Feature implementation.  But we still need to be able to tell junk from
+     * real data.  Note: We don't check that the nameID actually exists.
+     *
+     * Read Roberts wrote on 9/15/06 on opentype-list@indx.co.uk :
+     *
+     * Yes, it is correct that a new version of the AFDKO (version 2.0) will be
+     * coming out soon, and that the makeotf program will build a font with a
+     * 'size' feature that is correct by the specification.
+     *
+     * The specification for this feature tag is in the "OpenType Layout Tag
+     * Registry". You can see a copy of this at:
+     * http://partners.adobe.com/public/developer/opentype/index_tag8.html#size
+     *
+     * Here is one set of rules to determine if the 'size' feature is built
+     * correctly, or as by the older versions of MakeOTF. You may be able to do
+     * better.
+     *
+     * Assume that the offset to the size feature is according to specification,
+     * and make the following value checks. If it fails, assume the the size
+     * feature is calculated as versions of MakeOTF before the AFDKO 2.0 built it.
+     * If this fails, reject the 'size' feature. The older makeOTF's calculated the
+     * offset from the beginning of the FeatureList table, rather than from the
+     * beginning of the 'size' Feature table.
+     *
+     * If "design size" == 0:
+     *     fails check
+     *
+     * Else if ("subfamily identifier" == 0 and
+     *     "range start" == 0 and
+     *     "range end" == 0 and
+     *     "range start" == 0 and
+     *     "menu name ID" == 0)
+     *     passes check: this is the format used when there is a design size
+     * specified, but there is no recommended size range.
+     *
+     * Else if ("design size" <  "range start" or
+     *     "design size" >   "range end" or
+     *     "range end" <= "range start" or
+     *     "menu name ID"  < 256 or
+     *     "menu name ID"  > 32767 or
+     *     menu name ID is not a name ID which is actually in the name table)
+     *     fails test
+     * Else
+     *     passes test.
+     */
+
+    if (!designSize)
+      return TRACE_RETURN (false);
+    else if (subfamilyID == 0 &&
+            subfamilyNameID == 0 &&
+            rangeStart == 0 &&
+            rangeEnd == 0)
+      return TRACE_RETURN (true);
+    else if (designSize < rangeStart ||
+            designSize > rangeEnd ||
+            subfamilyNameID < 256 ||
+            subfamilyNameID > 32767)
+      return TRACE_RETURN (false);
+    else
+      return TRACE_RETURN (true);
+  }
+
+  USHORT       designSize;     /* Represents the design size in 720/inch
+                                * units (decipoints).  The design size entry
+                                * must be non-zero.  When there is a design
+                                * size but no recommended size range, the
+                                * rest of the array will consist of zeros. */
+  USHORT       subfamilyID;    /* Has no independent meaning, but serves
+                                * as an identifier that associates fonts
+                                * in a subfamily. All fonts which share a
+                                * Preferred or Font Family name and which
+                                * differ only by size range shall have the
+                                * same subfamily value, and no fonts which
+                                * differ in weight or style shall have the
+                                * same subfamily value. If this value is
+                                * zero, the remaining fields in the array
+                                * will be ignored. */
+  USHORT       subfamilyNameID;/* If the preceding value is non-zero, this
+                                * value must be set in the range 256 - 32767
+                                * (inclusive). It records the value of a
+                                * field in the name table, which must
+                                * contain English-language strings encoded
+                                * in Windows Unicode and Macintosh Roman,
+                                * and may contain additional strings
+                                * localized to other scripts and languages.
+                                * Each of these strings is the name an
+                                * application should use, in combination
+                                * with the family name, to represent the
+                                * subfamily in a menu.  Applications will
+                                * choose the appropriate version based on
+                                * their selection criteria. */
+  USHORT       rangeStart;     /* Large end of the recommended usage range
+                                * (inclusive), stored in 720/inch units
+                                * (decipoints). */
+  USHORT       rangeEnd;       /* Small end of the recommended usage range
+                                  (exclusive), stored in 720/inch units
+                                * (decipoints). */
+  public:
+  DEFINE_SIZE_STATIC (10);
+};
+
+/* http://www.microsoft.com/typography/otspec/features_pt.htm#ssxx */
+struct FeatureParamsStylisticSet
+{
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    /* Right now minorVersion is at zero.  Which means, any table supports
+     * the uiNameID field. */
+    return TRACE_RETURN (c->check_struct (this));
+  }
+
+  USHORT       version;        /* (set to 0): This corresponds to a “minor”
+                                * version number. Additional data may be
+                                * added to the end of this Feature Parameters
+                                * table in the future. */
+
+  USHORT       uiNameID;       /* The 'name' table name ID that specifies a
+                                * string (or strings, for multiple languages)
+                                * for a user-interface label for this
+                                * feature.  The values of uiLabelNameId and
+                                * sampleTextNameId are expected to be in the
+                                * font-specific name ID range (256-32767),
+                                * though that is not a requirement in this
+                                * Feature Parameters specification. The
+                                * user-interface label for the feature can
+                                * be provided in multiple languages. An
+                                * English string should be included as a
+                                * fallback. The string should be kept to a
+                                * minimal length to fit comfortably with
+                                * different application interfaces. */
+  public:
+  DEFINE_SIZE_STATIC (4);
+};
+
+/* http://www.microsoft.com/typography/otspec/features_ae.htm#cv01-cv99 */
+struct FeatureParamsCharacterVariants
+{
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) &&
+                        characters.sanitize (c));
+  }
+
+  USHORT       format;                 /* Format number is set to 0. */
+  USHORT       featUILableNameID;      /* The ‘name’ table name ID that
+                                        * specifies a string (or strings,
+                                        * for multiple languages) for a
+                                        * user-interface label for this
+                                        * feature. (May be NULL.) */
+  USHORT       featUITooltipTextNameID;/* The ‘name’ table name ID that
+                                        * specifies a string (or strings,
+                                        * for multiple languages) that an
+                                        * application can use for tooltip
+                                        * text for this feature. (May be
+                                        * NULL.) */
+  USHORT       sampleTextNameID;       /* The ‘name’ table name ID that
+                                        * specifies sample text that
+                                        * illustrates the effect of this
+                                        * feature. (May be NULL.) */
+  USHORT       numNamedParameters;     /* Number of named parameters. (May
+                                        * be zero.) */
+  USHORT       firstParamUILabelNameID;/* The first ‘name’ table name ID
+                                        * used to specify strings for
+                                        * user-interface labels for the
+                                        * feature parameters. (Must be zero
+                                        * if numParameters is zero.) */
+  ArrayOf<UINT24>
+               characters;             /* Array of the Unicode Scalar Value
+                                        * of the characters for which this
+                                        * feature provides glyph variants.
+                                        * (May be zero.) */
+  public:
+  DEFINE_SIZE_ARRAY (14, characters);
+};
+
+struct FeatureParams
+{
+  inline bool sanitize (hb_sanitize_context_t *c, hb_tag_t tag) {
+    TRACE_SANITIZE (this);
+    if (tag == HB_TAG ('s','i','z','e'))
+      return TRACE_RETURN (u.size.sanitize (c));
+    if ((tag & 0xFFFF0000u) == HB_TAG ('s','s','\0','\0')) /* ssXX */
+      return TRACE_RETURN (u.stylisticSet.sanitize (c));
+    if ((tag & 0xFFFF0000u) == HB_TAG ('c','v','\0','\0')) /* cvXX */
+      return TRACE_RETURN (u.characterVariants.sanitize (c));
+    return TRACE_RETURN (true);
+  }
+
+  inline const FeatureParamsSize& get_size_params (hb_tag_t tag) const
+  {
+    if (tag == HB_TAG ('s','i','z','e'))
+      return u.size;
+    return Null(FeatureParamsSize);
+  }
+
+  private:
+  union {
+  FeatureParamsSize                    size;
+  FeatureParamsStylisticSet            stylisticSet;
+  FeatureParamsCharacterVariants       characterVariants;
+  } u;
+  DEFINE_SIZE_STATIC (17);
+};
+
+struct Feature
+{
+  inline unsigned int get_lookup_count (void) const
+  { return lookupIndex.len; }
+  inline hb_tag_t get_lookup_index (unsigned int i) const
+  { return lookupIndex[i]; }
+  inline unsigned int get_lookup_indexes (unsigned int start_index,
+                                         unsigned int *lookup_count /* IN/OUT */,
+                                         unsigned int *lookup_tags /* OUT */) const
+  { return lookupIndex.get_indexes (start_index, lookup_count, lookup_tags); }
+
+  inline const FeatureParams &get_feature_params (void) const
+  { return this+featureParams; }
+
+  inline bool sanitize (hb_sanitize_context_t *c,
+                       const Record<Feature>::sanitize_closure_t *closure) {
+    TRACE_SANITIZE (this);
+    if (unlikely (!(c->check_struct (this) && lookupIndex.sanitize (c))))
+      return TRACE_RETURN (false);
+
+    /* Some earlier versions of Adobe tools calculated the offset of the
+     * FeatureParams subtable from the beginning of the FeatureList table!
+     *
+     * If sanitizing "failed" for the FeatureParams subtable, try it with the
+     * alternative location.  We would know sanitize "failed" if old value
+     * of the offset was non-zero, but it's zeroed now.
+     *
+     * Only do this for the 'size' feature, since at the time of the faulty
+     * Adobe tools, only the 'size' feature had FeatureParams defined.
+     */
+
+    OffsetTo<FeatureParams> orig_offset = featureParams;
+    if (unlikely (!featureParams.sanitize (c, this, closure ? closure->tag : HB_TAG_NONE)))
+      return TRACE_RETURN (false);
+
+    if (likely (orig_offset.is_null ()))
+      return TRACE_RETURN (true);
+
+    if (featureParams == 0 && closure &&
+       closure->tag == HB_TAG ('s','i','z','e') &&
+       closure->list_base && closure->list_base < this)
+    {
+      unsigned int new_offset_int = (unsigned int) orig_offset -
+                                   (((char *) this) - ((char *) closure->list_base));
+
+      OffsetTo<FeatureParams> new_offset;
+      /* Check that it did not overflow. */
+      new_offset.set (new_offset_int);
+      if (new_offset == new_offset_int &&
+         c->try_set (&featureParams, new_offset) &&
+         !featureParams.sanitize (c, this, closure ? closure->tag : HB_TAG_NONE))
+       return TRACE_RETURN (false);
+    }
+
+    return TRACE_RETURN (true);
+  }
+
+  OffsetTo<FeatureParams>
+                featureParams; /* Offset to Feature Parameters table (if one
+                                * has been defined for the feature), relative
+                                * to the beginning of the Feature Table; = Null
+                                * if not required */
+  IndexArray    lookupIndex;   /* Array of LookupList indices */
+  public:
+  DEFINE_SIZE_ARRAY (4, lookupIndex);
+};
+
+typedef RecordListOf<Feature> FeatureList;
+
+
+struct LookupFlag : USHORT
+{
+  enum Flags {
+    RightToLeft                = 0x0001u,
+    IgnoreBaseGlyphs   = 0x0002u,
+    IgnoreLigatures    = 0x0004u,
+    IgnoreMarks                = 0x0008u,
+    IgnoreFlags                = 0x000Eu,
+    UseMarkFilteringSet        = 0x0010u,
+    Reserved           = 0x00E0u,
+    MarkAttachmentType = 0xFF00u
+  };
+  public:
+  DEFINE_SIZE_STATIC (2);
+};
+
+struct Lookup
+{
+  inline unsigned int get_subtable_count (void) const { return subTable.len; }
+
+  inline unsigned int get_type (void) const { return lookupType; }
+
+  /* lookup_props is a 32-bit integer where the lower 16-bit is LookupFlag and
+   * higher 16-bit is mark-filtering-set if the lookup uses one.
+   * Not to be confused with glyph_props which is very similar. */
+  inline uint32_t get_props (void) const
+  {
+    unsigned int flag = lookupFlag;
+    if (unlikely (flag & LookupFlag::UseMarkFilteringSet))
+    {
+      const USHORT &markFilteringSet = StructAfter<USHORT> (subTable);
+      flag += (markFilteringSet << 16);
+    }
+    return flag;
+  }
+
+  inline bool serialize (hb_serialize_context_t *c,
+                        unsigned int lookup_type,
+                        uint32_t lookup_props,
+                        unsigned int num_subtables)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false);
+    lookupType.set (lookup_type);
+    lookupFlag.set (lookup_props & 0xFFFFu);
+    if (unlikely (!subTable.serialize (c, num_subtables))) return TRACE_RETURN (false);
+    if (lookupFlag & LookupFlag::UseMarkFilteringSet)
+    {
+      USHORT &markFilteringSet = StructAfter<USHORT> (subTable);
+      markFilteringSet.set (lookup_props >> 16);
+    }
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    /* Real sanitize of the subtables is done by GSUB/GPOS/... */
+    if (!(c->check_struct (this) && subTable.sanitize (c))) return TRACE_RETURN (false);
+    if (lookupFlag & LookupFlag::UseMarkFilteringSet)
+    {
+      USHORT &markFilteringSet = StructAfter<USHORT> (subTable);
+      if (!markFilteringSet.sanitize (c)) return TRACE_RETURN (false);
+    }
+    return TRACE_RETURN (true);
+  }
+
+  USHORT       lookupType;             /* Different enumerations for GSUB and GPOS */
+  USHORT       lookupFlag;             /* Lookup qualifiers */
+  ArrayOf<Offset<> >
+               subTable;               /* Array of SubTables */
+  USHORT       markFilteringSetX[VAR]; /* Index (base 0) into GDEF mark glyph sets
+                                        * structure. This field is only present if bit
+                                        * UseMarkFilteringSet of lookup flags is set. */
+  public:
+  DEFINE_SIZE_ARRAY2 (6, subTable, markFilteringSetX);
+};
+
+typedef OffsetListOf<Lookup> LookupList;
+
+
+/*
+ * Coverage Table
+ */
+
+struct CoverageFormat1
+{
+  friend struct Coverage;
+
+  private:
+  inline unsigned int get_coverage (hb_codepoint_t glyph_id) const
+  {
+    int i = glyphArray.bsearch (glyph_id);
+    ASSERT_STATIC (((unsigned int) -1) == NOT_COVERED);
+    return i;
+  }
+
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<GlyphID> &glyphs,
+                        unsigned int num_glyphs)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false);
+    glyphArray.len.set (num_glyphs);
+    if (unlikely (!c->extend (glyphArray))) return TRACE_RETURN (false);
+    for (unsigned int i = 0; i < num_glyphs; i++)
+      glyphArray[i] = glyphs[i];
+    glyphs.advance (num_glyphs);
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (glyphArray.sanitize (c));
+  }
+
+  inline bool intersects_coverage (const hb_set_t *glyphs, unsigned int index) const {
+    return glyphs->has (glyphArray[index]);
+  }
+
+  template <typename set_t>
+  inline void add_coverage (set_t *glyphs) const {
+    unsigned int count = glyphArray.len;
+    for (unsigned int i = 0; i < count; i++)
+      glyphs->add (glyphArray[i]);
+  }
+
+  public:
+  /* Older compilers need this to be public. */
+  struct Iter {
+    inline void init (const struct CoverageFormat1 &c_) { c = &c_; i = 0; };
+    inline bool more (void) { return i < c->glyphArray.len; }
+    inline void next (void) { i++; }
+    inline uint16_t get_glyph (void) { return c->glyphArray[i]; }
+    inline uint16_t get_coverage (void) { return i; }
+
+    private:
+    const struct CoverageFormat1 *c;
+    unsigned int i;
+  };
+  private:
+
+  protected:
+  USHORT       coverageFormat; /* Format identifier--format = 1 */
+  SortedArrayOf<GlyphID>
+               glyphArray;     /* Array of GlyphIDs--in numerical order */
+  public:
+  DEFINE_SIZE_ARRAY (4, glyphArray);
+};
+
+struct CoverageFormat2
+{
+  friend struct Coverage;
+
+  private:
+  inline unsigned int get_coverage (hb_codepoint_t glyph_id) const
+  {
+    int i = rangeRecord.bsearch (glyph_id);
+    if (i != -1) {
+      const RangeRecord &range = rangeRecord[i];
+      return (unsigned int) range.value + (glyph_id - range.start);
+    }
+    return NOT_COVERED;
+  }
+
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<GlyphID> &glyphs,
+                        unsigned int num_glyphs)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false);
+
+    if (unlikely (!num_glyphs)) return TRACE_RETURN (true);
+
+    unsigned int num_ranges = 1;
+    for (unsigned int i = 1; i < num_glyphs; i++)
+      if (glyphs[i - 1] + 1 != glyphs[i])
+        num_ranges++;
+    rangeRecord.len.set (num_ranges);
+    if (unlikely (!c->extend (rangeRecord))) return TRACE_RETURN (false);
+
+    unsigned int range = 0;
+    rangeRecord[range].start = glyphs[0];
+    rangeRecord[range].value.set (0);
+    for (unsigned int i = 1; i < num_glyphs; i++)
+      if (glyphs[i - 1] + 1 != glyphs[i]) {
+       range++;
+       rangeRecord[range].start = glyphs[i];
+       rangeRecord[range].value.set (i);
+        rangeRecord[range].end = glyphs[i];
+      } else {
+        rangeRecord[range].end = glyphs[i];
+      }
+    glyphs.advance (num_glyphs);
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (rangeRecord.sanitize (c));
+  }
+
+  inline bool intersects_coverage (const hb_set_t *glyphs, unsigned int index) const {
+    unsigned int i;
+    unsigned int count = rangeRecord.len;
+    for (i = 0; i < count; i++) {
+      const RangeRecord &range = rangeRecord[i];
+      if (range.value <= index &&
+         index < (unsigned int) range.value + (range.end - range.start) &&
+         range.intersects (glyphs))
+        return true;
+      else if (index < range.value)
+        return false;
+    }
+    return false;
+  }
+
+  template <typename set_t>
+  inline void add_coverage (set_t *glyphs) const {
+    unsigned int count = rangeRecord.len;
+    for (unsigned int i = 0; i < count; i++)
+      rangeRecord[i].add_coverage (glyphs);
+  }
+
+  public:
+  /* Older compilers need this to be public. */
+  struct Iter {
+    inline void init (const CoverageFormat2 &c_) {
+      c = &c_;
+      coverage = 0;
+      i = 0;
+      j = c->rangeRecord.len ? c_.rangeRecord[0].start : 0;
+    }
+    inline bool more (void) { return i < c->rangeRecord.len; }
+    inline void next (void) {
+      coverage++;
+      if (j == c->rangeRecord[i].end) {
+        i++;
+       if (more ())
+         j = c->rangeRecord[i].start;
+       return;
+      }
+      j++;
+    }
+    inline uint16_t get_glyph (void) { return j; }
+    inline uint16_t get_coverage (void) { return coverage; }
+
+    private:
+    const struct CoverageFormat2 *c;
+    unsigned int i, j, coverage;
+  };
+  private:
+
+  protected:
+  USHORT       coverageFormat; /* Format identifier--format = 2 */
+  SortedArrayOf<RangeRecord>
+               rangeRecord;    /* Array of glyph ranges--ordered by
+                                * Start GlyphID. rangeCount entries
+                                * long */
+  public:
+  DEFINE_SIZE_ARRAY (4, rangeRecord);
+};
+
+struct Coverage
+{
+  inline unsigned int get_coverage (hb_codepoint_t glyph_id) const
+  {
+    switch (u.format) {
+    case 1: return u.format1.get_coverage(glyph_id);
+    case 2: return u.format2.get_coverage(glyph_id);
+    default:return NOT_COVERED;
+    }
+  }
+
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<GlyphID> &glyphs,
+                        unsigned int num_glyphs)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false);
+    unsigned int num_ranges = 1;
+    for (unsigned int i = 1; i < num_glyphs; i++)
+      if (glyphs[i - 1] + 1 != glyphs[i])
+        num_ranges++;
+    u.format.set (num_glyphs * 2 < num_ranges * 3 ? 1 : 2);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.serialize (c, glyphs, num_glyphs));
+    case 2: return TRACE_RETURN (u.format2.serialize (c, glyphs, num_glyphs));
+    default:return TRACE_RETURN (false);
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    case 2: return TRACE_RETURN (u.format2.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  inline bool intersects (const hb_set_t *glyphs) const {
+    /* TODO speed this up */
+    Coverage::Iter iter;
+    for (iter.init (*this); iter.more (); iter.next ()) {
+      if (glyphs->has (iter.get_glyph ()))
+        return true;
+    }
+    return false;
+  }
+
+  inline bool intersects_coverage (const hb_set_t *glyphs, unsigned int index) const {
+    switch (u.format) {
+    case 1: return u.format1.intersects_coverage (glyphs, index);
+    case 2: return u.format2.intersects_coverage (glyphs, index);
+    default:return false;
+    }
+  }
+
+  template <typename set_t>
+  inline void add_coverage (set_t *glyphs) const {
+    switch (u.format) {
+    case 1: u.format1.add_coverage (glyphs); break;
+    case 2: u.format2.add_coverage (glyphs); break;
+    default:                                 break;
+    }
+  }
+
+  struct Iter {
+    Iter (void) : format (0) {};
+    inline void init (const Coverage &c_) {
+      format = c_.u.format;
+      switch (format) {
+      case 1: u.format1.init (c_.u.format1); return;
+      case 2: u.format2.init (c_.u.format2); return;
+      default:                               return;
+      }
+    }
+    inline bool more (void) {
+      switch (format) {
+      case 1: return u.format1.more ();
+      case 2: return u.format2.more ();
+      default:return false;
+      }
+    }
+    inline void next (void) {
+      switch (format) {
+      case 1: u.format1.next (); break;
+      case 2: u.format2.next (); break;
+      default:                   break;
+      }
+    }
+    inline uint16_t get_glyph (void) {
+      switch (format) {
+      case 1: return u.format1.get_glyph ();
+      case 2: return u.format2.get_glyph ();
+      default:return 0;
+      }
+    }
+    inline uint16_t get_coverage (void) {
+      switch (format) {
+      case 1: return u.format1.get_coverage ();
+      case 2: return u.format2.get_coverage ();
+      default:return -1;
+      }
+    }
+
+    private:
+    unsigned int format;
+    union {
+    CoverageFormat1::Iter      format1;
+    CoverageFormat2::Iter      format2;
+    } u;
+  };
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  CoverageFormat1      format1;
+  CoverageFormat2      format2;
+  } u;
+  public:
+  DEFINE_SIZE_UNION (2, format);
+};
+
+
+/*
+ * Class Definition Table
+ */
+
+struct ClassDefFormat1
+{
+  friend struct ClassDef;
+
+  private:
+  inline unsigned int get_class (hb_codepoint_t glyph_id) const
+  {
+    if (unlikely ((unsigned int) (glyph_id - startGlyph) < classValue.len))
+      return classValue[glyph_id - startGlyph];
+    return 0;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && classValue.sanitize (c));
+  }
+
+  template <typename set_t>
+  inline void add_class (set_t *glyphs, unsigned int klass) const {
+    unsigned int count = classValue.len;
+    for (unsigned int i = 0; i < count; i++)
+      if (classValue[i] == klass)
+        glyphs->add (startGlyph + i);
+  }
+
+  inline bool intersects_class (const hb_set_t *glyphs, unsigned int klass) const {
+    unsigned int count = classValue.len;
+    if (klass == 0)
+    {
+      /* Match if there's any glyph that is not listed! */
+      hb_codepoint_t g = -1;
+      if (!hb_set_next (glyphs, &g))
+        return false;
+      if (g < startGlyph)
+        return true;
+      g = startGlyph + count - 1;
+      if (hb_set_next (glyphs, &g))
+        return true;
+      /* Fall through. */
+    }
+    for (unsigned int i = 0; i < count; i++)
+      if (classValue[i] == klass && glyphs->has (startGlyph + i))
+        return true;
+    return false;
+  }
+
+  protected:
+  USHORT       classFormat;            /* Format identifier--format = 1 */
+  GlyphID      startGlyph;             /* First GlyphID of the classValueArray */
+  ArrayOf<USHORT>
+               classValue;             /* Array of Class Values--one per GlyphID */
+  public:
+  DEFINE_SIZE_ARRAY (6, classValue);
+};
+
+struct ClassDefFormat2
+{
+  friend struct ClassDef;
+
+  private:
+  inline unsigned int get_class (hb_codepoint_t glyph_id) const
+  {
+    int i = rangeRecord.bsearch (glyph_id);
+    if (i != -1)
+      return rangeRecord[i].value;
+    return 0;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (rangeRecord.sanitize (c));
+  }
+
+  template <typename set_t>
+  inline void add_class (set_t *glyphs, unsigned int klass) const {
+    unsigned int count = rangeRecord.len;
+    for (unsigned int i = 0; i < count; i++)
+      if (rangeRecord[i].value == klass)
+        rangeRecord[i].add_coverage (glyphs);
+  }
+
+  inline bool intersects_class (const hb_set_t *glyphs, unsigned int klass) const {
+    unsigned int count = rangeRecord.len;
+    if (klass == 0)
+    {
+      /* Match if there's any glyph that is not listed! */
+      hb_codepoint_t g = (hb_codepoint_t) -1;
+      for (unsigned int i = 0; i < count; i++)
+      {
+       if (!hb_set_next (glyphs, &g))
+         break;
+       if (g < rangeRecord[i].start)
+         return true;
+       g = rangeRecord[i].end;
+      }
+      if (g != (hb_codepoint_t) -1 && hb_set_next (glyphs, &g))
+        return true;
+      /* Fall through. */
+    }
+    for (unsigned int i = 0; i < count; i++)
+      if (rangeRecord[i].value == klass && rangeRecord[i].intersects (glyphs))
+        return true;
+    return false;
+  }
+
+  protected:
+  USHORT       classFormat;    /* Format identifier--format = 2 */
+  SortedArrayOf<RangeRecord>
+               rangeRecord;    /* Array of glyph ranges--ordered by
+                                * Start GlyphID */
+  public:
+  DEFINE_SIZE_ARRAY (4, rangeRecord);
+};
+
+struct ClassDef
+{
+  inline unsigned int get_class (hb_codepoint_t glyph_id) const
+  {
+    switch (u.format) {
+    case 1: return u.format1.get_class(glyph_id);
+    case 2: return u.format2.get_class(glyph_id);
+    default:return 0;
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    case 2: return TRACE_RETURN (u.format2.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  inline void add_class (hb_set_t *glyphs, unsigned int klass) const {
+    switch (u.format) {
+    case 1: u.format1.add_class (glyphs, klass); return;
+    case 2: u.format2.add_class (glyphs, klass); return;
+    default:return;
+    }
+  }
+
+  inline bool intersects_class (const hb_set_t *glyphs, unsigned int klass) const {
+    switch (u.format) {
+    case 1: return u.format1.intersects_class (glyphs, klass);
+    case 2: return u.format2.intersects_class (glyphs, klass);
+    default:return false;
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  ClassDefFormat1      format1;
+  ClassDefFormat2      format2;
+  } u;
+  public:
+  DEFINE_SIZE_UNION (2, format);
+};
+
+
+/*
+ * Device Tables
+ */
+
+struct Device
+{
+
+  inline hb_position_t get_x_delta (hb_font_t *font) const
+  { return get_delta (font->x_ppem, font->x_scale); }
+
+  inline hb_position_t get_y_delta (hb_font_t *font) const
+  { return get_delta (font->y_ppem, font->y_scale); }
+
+  inline int get_delta (unsigned int ppem, int scale) const
+  {
+    if (!ppem) return 0;
+
+    int pixels = get_delta_pixels (ppem);
+
+    if (!pixels) return 0;
+
+    return (int) (pixels * (int64_t) scale / ppem);
+  }
+
+
+  inline int get_delta_pixels (unsigned int ppem_size) const
+  {
+    unsigned int f = deltaFormat;
+    if (unlikely (f < 1 || f > 3))
+      return 0;
+
+    if (ppem_size < startSize || ppem_size > endSize)
+      return 0;
+
+    unsigned int s = ppem_size - startSize;
+
+    unsigned int byte = deltaValue[s >> (4 - f)];
+    unsigned int bits = (byte >> (16 - (((s & ((1 << (4 - f)) - 1)) + 1) << f)));
+    unsigned int mask = (0xFFFFu >> (16 - (1 << f)));
+
+    int delta = bits & mask;
+
+    if ((unsigned int) delta >= ((mask + 1) >> 1))
+      delta -= mask + 1;
+
+    return delta;
+  }
+
+  inline unsigned int get_size (void) const
+  {
+    unsigned int f = deltaFormat;
+    if (unlikely (f < 1 || f > 3 || startSize > endSize)) return 3 * USHORT::static_size;
+    return USHORT::static_size * (4 + ((endSize - startSize) >> (4 - f)));
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && c->check_range (this, this->get_size ()));
+  }
+
+  protected:
+  USHORT       startSize;              /* Smallest size to correct--in ppem */
+  USHORT       endSize;                /* Largest size to correct--in ppem */
+  USHORT       deltaFormat;            /* Format of DeltaValue array data: 1, 2, or 3
+                                        * 1    Signed 2-bit value, 8 values per uint16
+                                        * 2    Signed 4-bit value, 4 values per uint16
+                                        * 3    Signed 8-bit value, 2 values per uint16
+                                        */
+  USHORT       deltaValue[VAR];        /* Array of compressed data */
+  public:
+  DEFINE_SIZE_ARRAY (6, deltaValue);
+};
+
+
+} /* namespace OT */
+
+
+#endif /* HB_OT_LAYOUT_COMMON_PRIVATE_HH */
diff --git a/src/hb-ot-layout-gdef-table.hh b/src/hb-ot-layout-gdef-table.hh
new file mode 100644 (file)
index 0000000..84a5e79
--- /dev/null
@@ -0,0 +1,433 @@
+/*
+ * Copyright © 2007,2008,2009  Red Hat, Inc.
+ * Copyright © 2010,2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_LAYOUT_GDEF_TABLE_HH
+#define HB_OT_LAYOUT_GDEF_TABLE_HH
+
+#include "hb-ot-layout-common-private.hh"
+
+#include "hb-font-private.hh"
+
+
+namespace OT {
+
+
+/*
+ * Attachment List Table
+ */
+
+typedef ArrayOf<USHORT> AttachPoint;   /* Array of contour point indices--in
+                                        * increasing numerical order */
+
+struct AttachList
+{
+  inline unsigned int get_attach_points (hb_codepoint_t glyph_id,
+                                        unsigned int start_offset,
+                                        unsigned int *point_count /* IN/OUT */,
+                                        unsigned int *point_array /* OUT */) const
+  {
+    unsigned int index = (this+coverage).get_coverage (glyph_id);
+    if (index == NOT_COVERED)
+    {
+      if (point_count)
+       *point_count = 0;
+      return 0;
+    }
+
+    const AttachPoint &points = this+attachPoint[index];
+
+    if (point_count) {
+      const USHORT *array = points.sub_array (start_offset, point_count);
+      unsigned int count = *point_count;
+      for (unsigned int i = 0; i < count; i++)
+       point_array[i] = array[i];
+    }
+
+    return points.len;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (coverage.sanitize (c, this) && attachPoint.sanitize (c, this));
+  }
+
+  protected:
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table -- from
+                                        * beginning of AttachList table */
+  OffsetArrayOf<AttachPoint>
+               attachPoint;            /* Array of AttachPoint tables
+                                        * in Coverage Index order */
+  public:
+  DEFINE_SIZE_ARRAY (4, attachPoint);
+};
+
+/*
+ * Ligature Caret Table
+ */
+
+struct CaretValueFormat1
+{
+  friend struct CaretValue;
+
+  private:
+  inline hb_position_t get_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id HB_UNUSED) const
+  {
+    return HB_DIRECTION_IS_HORIZONTAL (direction) ? font->em_scale_x (coordinate) : font->em_scale_y (coordinate);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this));
+  }
+
+  protected:
+  USHORT       caretValueFormat;       /* Format identifier--format = 1 */
+  SHORT                coordinate;             /* X or Y value, in design units */
+  public:
+  DEFINE_SIZE_STATIC (4);
+};
+
+struct CaretValueFormat2
+{
+  friend struct CaretValue;
+
+  private:
+  inline hb_position_t get_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id) const
+  {
+    hb_position_t x, y;
+    if (font->get_glyph_contour_point_for_origin (glyph_id, caretValuePoint, direction, &x, &y))
+      return HB_DIRECTION_IS_HORIZONTAL (direction) ? x : y;
+    else
+      return 0;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this));
+  }
+
+  protected:
+  USHORT       caretValueFormat;       /* Format identifier--format = 2 */
+  USHORT       caretValuePoint;        /* Contour point index on glyph */
+  public:
+  DEFINE_SIZE_STATIC (4);
+};
+
+struct CaretValueFormat3
+{
+  friend struct CaretValue;
+
+  inline hb_position_t get_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id HB_UNUSED) const
+  {
+    return HB_DIRECTION_IS_HORIZONTAL (direction) ?
+           font->em_scale_x (coordinate) + (this+deviceTable).get_x_delta (font) :
+           font->em_scale_y (coordinate) + (this+deviceTable).get_y_delta (font);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && deviceTable.sanitize (c, this));
+  }
+
+  protected:
+  USHORT       caretValueFormat;       /* Format identifier--format = 3 */
+  SHORT                coordinate;             /* X or Y value, in design units */
+  OffsetTo<Device>
+               deviceTable;            /* Offset to Device table for X or Y
+                                        * value--from beginning of CaretValue
+                                        * table */
+  public:
+  DEFINE_SIZE_STATIC (6);
+};
+
+struct CaretValue
+{
+  inline hb_position_t get_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id) const
+  {
+    switch (u.format) {
+    case 1: return u.format1.get_caret_value (font, direction, glyph_id);
+    case 2: return u.format2.get_caret_value (font, direction, glyph_id);
+    case 3: return u.format3.get_caret_value (font, direction, glyph_id);
+    default:return 0;
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    case 2: return TRACE_RETURN (u.format2.sanitize (c));
+    case 3: return TRACE_RETURN (u.format3.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  CaretValueFormat1    format1;
+  CaretValueFormat2    format2;
+  CaretValueFormat3    format3;
+  } u;
+  public:
+  DEFINE_SIZE_UNION (2, format);
+};
+
+struct LigGlyph
+{
+  inline unsigned int get_lig_carets (hb_font_t *font,
+                                     hb_direction_t direction,
+                                     hb_codepoint_t glyph_id,
+                                     unsigned int start_offset,
+                                     unsigned int *caret_count /* IN/OUT */,
+                                     hb_position_t *caret_array /* OUT */) const
+  {
+    if (caret_count) {
+      const OffsetTo<CaretValue> *array = carets.sub_array (start_offset, caret_count);
+      unsigned int count = *caret_count;
+      for (unsigned int i = 0; i < count; i++)
+       caret_array[i] = (this+array[i]).get_caret_value (font, direction, glyph_id);
+    }
+
+    return carets.len;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (carets.sanitize (c, this));
+  }
+
+  protected:
+  OffsetArrayOf<CaretValue>
+               carets;                 /* Offset array of CaretValue tables
+                                        * --from beginning of LigGlyph table
+                                        * --in increasing coordinate order */
+  public:
+  DEFINE_SIZE_ARRAY (2, carets);
+};
+
+struct LigCaretList
+{
+  inline unsigned int get_lig_carets (hb_font_t *font,
+                                     hb_direction_t direction,
+                                     hb_codepoint_t glyph_id,
+                                     unsigned int start_offset,
+                                     unsigned int *caret_count /* IN/OUT */,
+                                     hb_position_t *caret_array /* OUT */) const
+  {
+    unsigned int index = (this+coverage).get_coverage (glyph_id);
+    if (index == NOT_COVERED)
+    {
+      if (caret_count)
+       *caret_count = 0;
+      return 0;
+    }
+    const LigGlyph &lig_glyph = this+ligGlyph[index];
+    return lig_glyph.get_lig_carets (font, direction, glyph_id, start_offset, caret_count, caret_array);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (coverage.sanitize (c, this) && ligGlyph.sanitize (c, this));
+  }
+
+  protected:
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of LigCaretList table */
+  OffsetArrayOf<LigGlyph>
+               ligGlyph;               /* Array of LigGlyph tables
+                                        * in Coverage Index order */
+  public:
+  DEFINE_SIZE_ARRAY (4, ligGlyph);
+};
+
+
+struct MarkGlyphSetsFormat1
+{
+  inline bool covers (unsigned int set_index, hb_codepoint_t glyph_id) const
+  { return (this+coverage[set_index]).get_coverage (glyph_id) != NOT_COVERED; }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (coverage.sanitize (c, this));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 1 */
+  ArrayOf<OffsetTo<Coverage, ULONG> >
+               coverage;               /* Array of long offsets to mark set
+                                        * coverage tables */
+  public:
+  DEFINE_SIZE_ARRAY (4, coverage);
+};
+
+struct MarkGlyphSets
+{
+  inline bool covers (unsigned int set_index, hb_codepoint_t glyph_id) const
+  {
+    switch (u.format) {
+    case 1: return u.format1.covers (set_index, glyph_id);
+    default:return false;
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  MarkGlyphSetsFormat1 format1;
+  } u;
+  public:
+  DEFINE_SIZE_UNION (2, format);
+};
+
+
+/*
+ * GDEF -- The Glyph Definition Table
+ */
+
+struct GDEF
+{
+  static const hb_tag_t tableTag       = HB_OT_TAG_GDEF;
+
+  enum GlyphClasses {
+    UnclassifiedGlyph  = 0,
+    BaseGlyph          = 1,
+    LigatureGlyph      = 2,
+    MarkGlyph          = 3,
+    ComponentGlyph     = 4
+  };
+
+  inline bool has_glyph_classes (void) const { return glyphClassDef != 0; }
+  inline unsigned int get_glyph_class (hb_codepoint_t glyph) const
+  { return (this+glyphClassDef).get_class (glyph); }
+  inline void get_glyphs_in_class (unsigned int klass, hb_set_t *glyphs) const
+  { (this+glyphClassDef).add_class (glyphs, klass); }
+
+  inline bool has_mark_attachment_types (void) const { return markAttachClassDef != 0; }
+  inline unsigned int get_mark_attachment_type (hb_codepoint_t glyph) const
+  { return (this+markAttachClassDef).get_class (glyph); }
+
+  inline bool has_attach_points (void) const { return attachList != 0; }
+  inline unsigned int get_attach_points (hb_codepoint_t glyph_id,
+                                        unsigned int start_offset,
+                                        unsigned int *point_count /* IN/OUT */,
+                                        unsigned int *point_array /* OUT */) const
+  { return (this+attachList).get_attach_points (glyph_id, start_offset, point_count, point_array); }
+
+  inline bool has_lig_carets (void) const { return ligCaretList != 0; }
+  inline unsigned int get_lig_carets (hb_font_t *font,
+                                     hb_direction_t direction,
+                                     hb_codepoint_t glyph_id,
+                                     unsigned int start_offset,
+                                     unsigned int *caret_count /* IN/OUT */,
+                                     hb_position_t *caret_array /* OUT */) const
+  { return (this+ligCaretList).get_lig_carets (font, direction, glyph_id, start_offset, caret_count, caret_array); }
+
+  inline bool has_mark_sets (void) const { return version.to_int () >= 0x00010002u && markGlyphSetsDef[0] != 0; }
+  inline bool mark_set_covers (unsigned int set_index, hb_codepoint_t glyph_id) const
+  { return version.to_int () >= 0x00010002u && (this+markGlyphSetsDef[0]).covers (set_index, glyph_id); }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (version.sanitize (c) &&
+                        likely (version.major == 1) &&
+                        glyphClassDef.sanitize (c, this) &&
+                        attachList.sanitize (c, this) &&
+                        ligCaretList.sanitize (c, this) &&
+                        markAttachClassDef.sanitize (c, this) &&
+                        (version.to_int () < 0x00010002u || markGlyphSetsDef[0].sanitize (c, this)));
+  }
+
+
+  /* glyph_props is a 16-bit integer where the lower 8-bit have bits representing
+   * glyph class and other bits, and high 8-bit gthe mark attachment type (if any).
+   * Not to be confused with lookup_props which is very similar. */
+  inline unsigned int get_glyph_props (hb_codepoint_t glyph) const
+  {
+    unsigned int klass = get_glyph_class (glyph);
+
+    ASSERT_STATIC ((unsigned int) HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH == (unsigned int) LookupFlag::IgnoreBaseGlyphs);
+    ASSERT_STATIC ((unsigned int) HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE == (unsigned int) LookupFlag::IgnoreLigatures);
+    ASSERT_STATIC ((unsigned int) HB_OT_LAYOUT_GLYPH_PROPS_MARK == (unsigned int) LookupFlag::IgnoreMarks);
+
+    switch (klass) {
+    default:                   return 0;
+    case BaseGlyph:            return HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH;
+    case LigatureGlyph:                return HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE;
+    case MarkGlyph:
+         klass = get_mark_attachment_type (glyph);
+         return HB_OT_LAYOUT_GLYPH_PROPS_MARK | (klass << 8);
+    }
+  }
+
+
+  protected:
+  FixedVersion version;                /* Version of the GDEF table--currently
+                                        * 0x00010002u */
+  OffsetTo<ClassDef>
+               glyphClassDef;          /* Offset to class definition table
+                                        * for glyph type--from beginning of
+                                        * GDEF header (may be Null) */
+  OffsetTo<AttachList>
+               attachList;             /* Offset to list of glyphs with
+                                        * attachment points--from beginning
+                                        * of GDEF header (may be Null) */
+  OffsetTo<LigCaretList>
+               ligCaretList;           /* Offset to list of positioning points
+                                        * for ligature carets--from beginning
+                                        * of GDEF header (may be Null) */
+  OffsetTo<ClassDef>
+               markAttachClassDef;     /* Offset to class definition table for
+                                        * mark attachment type--from beginning
+                                        * of GDEF header (may be Null) */
+  OffsetTo<MarkGlyphSets>
+               markGlyphSetsDef[VAR];  /* Offset to the table of mark set
+                                        * definitions--from beginning of GDEF
+                                        * header (may be NULL).  Introduced
+                                        * in version 00010002. */
+  public:
+  DEFINE_SIZE_ARRAY (12, markGlyphSetsDef);
+};
+
+
+} /* namespace OT */
+
+
+#endif /* HB_OT_LAYOUT_GDEF_TABLE_HH */
diff --git a/src/hb-ot-layout-gpos-table.hh b/src/hb-ot-layout-gpos-table.hh
new file mode 100644 (file)
index 0000000..8e2860c
--- /dev/null
@@ -0,0 +1,1637 @@
+/*
+ * Copyright © 2007,2008,2009,2010  Red Hat, Inc.
+ * Copyright © 2010,2012,2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_LAYOUT_GPOS_TABLE_HH
+#define HB_OT_LAYOUT_GPOS_TABLE_HH
+
+#include "hb-ot-layout-gsubgpos-private.hh"
+
+
+namespace OT {
+
+
+/* buffer **position** var allocations */
+#define attach_lookback() var.u16[0] /* number of glyphs to go back to attach this glyph to its base */
+#define cursive_chain() var.i16[1] /* character to which this connects, may be positive or negative */
+
+
+/* Shared Tables: ValueRecord, Anchor Table, and MarkArray */
+
+typedef USHORT Value;
+
+typedef Value ValueRecord[VAR];
+
+struct ValueFormat : USHORT
+{
+  enum Flags {
+    xPlacement = 0x0001u,      /* Includes horizontal adjustment for placement */
+    yPlacement = 0x0002u,      /* Includes vertical adjustment for placement */
+    xAdvance   = 0x0004u,      /* Includes horizontal adjustment for advance */
+    yAdvance   = 0x0008u,      /* Includes vertical adjustment for advance */
+    xPlaDevice = 0x0010u,      /* Includes horizontal Device table for placement */
+    yPlaDevice = 0x0020u,      /* Includes vertical Device table for placement */
+    xAdvDevice = 0x0040u,      /* Includes horizontal Device table for advance */
+    yAdvDevice = 0x0080u,      /* Includes vertical Device table for advance */
+    ignored    = 0x0F00u,      /* Was used in TrueType Open for MM fonts */
+    reserved   = 0xF000u,      /* For future use */
+
+    devices    = 0x00F0u       /* Mask for having any Device table */
+  };
+
+/* All fields are options.  Only those available advance the value pointer. */
+#if 0
+  SHORT                xPlacement;             /* Horizontal adjustment for
+                                        * placement--in design units */
+  SHORT                yPlacement;             /* Vertical adjustment for
+                                        * placement--in design units */
+  SHORT                xAdvance;               /* Horizontal adjustment for
+                                        * advance--in design units (only used
+                                        * for horizontal writing) */
+  SHORT                yAdvance;               /* Vertical adjustment for advance--in
+                                        * design units (only used for vertical
+                                        * writing) */
+  Offset       xPlaDevice;             /* Offset to Device table for
+                                        * horizontal placement--measured from
+                                        * beginning of PosTable (may be NULL) */
+  Offset       yPlaDevice;             /* Offset to Device table for vertical
+                                        * placement--measured from beginning
+                                        * of PosTable (may be NULL) */
+  Offset       xAdvDevice;             /* Offset to Device table for
+                                        * horizontal advance--measured from
+                                        * beginning of PosTable (may be NULL) */
+  Offset       yAdvDevice;             /* Offset to Device table for vertical
+                                        * advance--measured from beginning of
+                                        * PosTable (may be NULL) */
+#endif
+
+  inline unsigned int get_len (void) const
+  { return _hb_popcount32 ((unsigned int) *this); }
+  inline unsigned int get_size (void) const
+  { return get_len () * Value::static_size; }
+
+  void apply_value (hb_font_t            *font,
+                   hb_direction_t        direction,
+                   const void           *base,
+                   const Value          *values,
+                   hb_glyph_position_t  &glyph_pos) const
+  {
+    unsigned int x_ppem, y_ppem;
+    unsigned int format = *this;
+    hb_bool_t horizontal = HB_DIRECTION_IS_HORIZONTAL (direction);
+
+    if (!format) return;
+
+    if (format & xPlacement) glyph_pos.x_offset  += font->em_scale_x (get_short (values++));
+    if (format & yPlacement) glyph_pos.y_offset  += font->em_scale_y (get_short (values++));
+    if (format & xAdvance) {
+      if (likely (horizontal)) glyph_pos.x_advance += font->em_scale_x (get_short (values));
+      values++;
+    }
+    /* y_advance values grow downward but font-space grows upward, hence negation */
+    if (format & yAdvance) {
+      if (unlikely (!horizontal)) glyph_pos.y_advance -= font->em_scale_y (get_short (values));
+      values++;
+    }
+
+    if (!has_device ()) return;
+
+    x_ppem = font->x_ppem;
+    y_ppem = font->y_ppem;
+
+    if (!x_ppem && !y_ppem) return;
+
+    /* pixel -> fractional pixel */
+    if (format & xPlaDevice) {
+      if (x_ppem) glyph_pos.x_offset  += (base + get_device (values)).get_x_delta (font);
+      values++;
+    }
+    if (format & yPlaDevice) {
+      if (y_ppem) glyph_pos.y_offset  += (base + get_device (values)).get_y_delta (font);
+      values++;
+    }
+    if (format & xAdvDevice) {
+      if (horizontal && x_ppem) glyph_pos.x_advance += (base + get_device (values)).get_x_delta (font);
+      values++;
+    }
+    if (format & yAdvDevice) {
+      /* y_advance values grow downward but font-space grows upward, hence negation */
+      if (!horizontal && y_ppem) glyph_pos.y_advance -= (base + get_device (values)).get_y_delta (font);
+      values++;
+    }
+  }
+
+  private:
+  inline bool sanitize_value_devices (hb_sanitize_context_t *c, void *base, Value *values) {
+    unsigned int format = *this;
+
+    if (format & xPlacement) values++;
+    if (format & yPlacement) values++;
+    if (format & xAdvance)   values++;
+    if (format & yAdvance)   values++;
+
+    if ((format & xPlaDevice) && !get_device (values++).sanitize (c, base)) return false;
+    if ((format & yPlaDevice) && !get_device (values++).sanitize (c, base)) return false;
+    if ((format & xAdvDevice) && !get_device (values++).sanitize (c, base)) return false;
+    if ((format & yAdvDevice) && !get_device (values++).sanitize (c, base)) return false;
+
+    return true;
+  }
+
+  static inline OffsetTo<Device>& get_device (Value* value)
+  { return *CastP<OffsetTo<Device> > (value); }
+  static inline const OffsetTo<Device>& get_device (const Value* value)
+  { return *CastP<OffsetTo<Device> > (value); }
+
+  static inline const SHORT& get_short (const Value* value)
+  { return *CastP<SHORT> (value); }
+
+  public:
+
+  inline bool has_device (void) const {
+    unsigned int format = *this;
+    return (format & devices) != 0;
+  }
+
+  inline bool sanitize_value (hb_sanitize_context_t *c, void *base, Value *values) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_range (values, get_size ()) && (!has_device () || sanitize_value_devices (c, base, values)));
+  }
+
+  inline bool sanitize_values (hb_sanitize_context_t *c, void *base, Value *values, unsigned int count) {
+    TRACE_SANITIZE (this);
+    unsigned int len = get_len ();
+
+    if (!c->check_array (values, get_size (), count)) return TRACE_RETURN (false);
+
+    if (!has_device ()) return TRACE_RETURN (true);
+
+    for (unsigned int i = 0; i < count; i++) {
+      if (!sanitize_value_devices (c, base, values))
+        return TRACE_RETURN (false);
+      values += len;
+    }
+
+    return TRACE_RETURN (true);
+  }
+
+  /* Just sanitize referenced Device tables.  Doesn't check the values themselves. */
+  inline bool sanitize_values_stride_unsafe (hb_sanitize_context_t *c, void *base, Value *values, unsigned int count, unsigned int stride) {
+    TRACE_SANITIZE (this);
+
+    if (!has_device ()) return TRACE_RETURN (true);
+
+    for (unsigned int i = 0; i < count; i++) {
+      if (!sanitize_value_devices (c, base, values))
+        return TRACE_RETURN (false);
+      values += stride;
+    }
+
+    return TRACE_RETURN (true);
+  }
+};
+
+
+struct AnchorFormat1
+{
+  inline void get_anchor (hb_font_t *font, hb_codepoint_t glyph_id HB_UNUSED,
+                         hb_position_t *x, hb_position_t *y) const
+  {
+      *x = font->em_scale_x (xCoordinate);
+      *y = font->em_scale_y (yCoordinate);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 1 */
+  SHORT                xCoordinate;            /* Horizontal value--in design units */
+  SHORT                yCoordinate;            /* Vertical value--in design units */
+  public:
+  DEFINE_SIZE_STATIC (6);
+};
+
+struct AnchorFormat2
+{
+  inline void get_anchor (hb_font_t *font, hb_codepoint_t glyph_id,
+                         hb_position_t *x, hb_position_t *y) const
+  {
+      unsigned int x_ppem = font->x_ppem;
+      unsigned int y_ppem = font->y_ppem;
+      hb_position_t cx, cy;
+      hb_bool_t ret;
+
+      ret = (x_ppem || y_ppem) &&
+             font->get_glyph_contour_point_for_origin (glyph_id, anchorPoint, HB_DIRECTION_LTR, &cx, &cy);
+      *x = ret && x_ppem ? cx : font->em_scale_x (xCoordinate);
+      *y = ret && y_ppem ? cy : font->em_scale_y (yCoordinate);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 2 */
+  SHORT                xCoordinate;            /* Horizontal value--in design units */
+  SHORT                yCoordinate;            /* Vertical value--in design units */
+  USHORT       anchorPoint;            /* Index to glyph contour point */
+  public:
+  DEFINE_SIZE_STATIC (8);
+};
+
+struct AnchorFormat3
+{
+  inline void get_anchor (hb_font_t *font, hb_codepoint_t glyph_id HB_UNUSED,
+                         hb_position_t *x, hb_position_t *y) const
+  {
+      *x = font->em_scale_x (xCoordinate);
+      *y = font->em_scale_y (yCoordinate);
+
+      if (font->x_ppem)
+       *x += (this+xDeviceTable).get_x_delta (font);
+      if (font->y_ppem)
+       *y += (this+yDeviceTable).get_x_delta (font);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && xDeviceTable.sanitize (c, this) && yDeviceTable.sanitize (c, this));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 3 */
+  SHORT                xCoordinate;            /* Horizontal value--in design units */
+  SHORT                yCoordinate;            /* Vertical value--in design units */
+  OffsetTo<Device>
+               xDeviceTable;           /* Offset to Device table for X
+                                        * coordinate-- from beginning of
+                                        * Anchor table (may be NULL) */
+  OffsetTo<Device>
+               yDeviceTable;           /* Offset to Device table for Y
+                                        * coordinate-- from beginning of
+                                        * Anchor table (may be NULL) */
+  public:
+  DEFINE_SIZE_STATIC (10);
+};
+
+struct Anchor
+{
+  inline void get_anchor (hb_font_t *font, hb_codepoint_t glyph_id,
+                         hb_position_t *x, hb_position_t *y) const
+  {
+    *x = *y = 0;
+    switch (u.format) {
+    case 1: u.format1.get_anchor (font, glyph_id, x, y); return;
+    case 2: u.format2.get_anchor (font, glyph_id, x, y); return;
+    case 3: u.format3.get_anchor (font, glyph_id, x, y); return;
+    default:                                            return;
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    case 2: return TRACE_RETURN (u.format2.sanitize (c));
+    case 3: return TRACE_RETURN (u.format3.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  AnchorFormat1                format1;
+  AnchorFormat2                format2;
+  AnchorFormat3                format3;
+  } u;
+  public:
+  DEFINE_SIZE_UNION (2, format);
+};
+
+
+struct AnchorMatrix
+{
+  inline const Anchor& get_anchor (unsigned int row, unsigned int col, unsigned int cols, bool *found) const {
+    *found = false;
+    if (unlikely (row >= rows || col >= cols)) return Null(Anchor);
+    *found = !matrix[row * cols + col].is_null ();
+    return this+matrix[row * cols + col];
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c, unsigned int cols) {
+    TRACE_SANITIZE (this);
+    if (!c->check_struct (this)) return TRACE_RETURN (false);
+    if (unlikely (rows > 0 && cols >= ((unsigned int) -1) / rows)) return TRACE_RETURN (false);
+    unsigned int count = rows * cols;
+    if (!c->check_array (matrix, matrix[0].static_size, count)) return TRACE_RETURN (false);
+    for (unsigned int i = 0; i < count; i++)
+      if (!matrix[i].sanitize (c, this)) return TRACE_RETURN (false);
+    return TRACE_RETURN (true);
+  }
+
+  USHORT       rows;                   /* Number of rows */
+  protected:
+  OffsetTo<Anchor>
+               matrix[VAR];            /* Matrix of offsets to Anchor tables--
+                                        * from beginning of AnchorMatrix table */
+  public:
+  DEFINE_SIZE_ARRAY (2, matrix);
+};
+
+
+struct MarkRecord
+{
+  friend struct MarkArray;
+
+  inline bool sanitize (hb_sanitize_context_t *c, void *base) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && markAnchor.sanitize (c, base));
+  }
+
+  protected:
+  USHORT       klass;                  /* Class defined for this mark */
+  OffsetTo<Anchor>
+               markAnchor;             /* Offset to Anchor table--from
+                                        * beginning of MarkArray table */
+  public:
+  DEFINE_SIZE_STATIC (4);
+};
+
+struct MarkArray : ArrayOf<MarkRecord> /* Array of MarkRecords--in Coverage order */
+{
+  inline bool apply (hb_apply_context_t *c,
+                    unsigned int mark_index, unsigned int glyph_index,
+                    const AnchorMatrix &anchors, unsigned int class_count,
+                    unsigned int glyph_pos) const
+  {
+    TRACE_APPLY (this);
+    hb_buffer_t *buffer = c->buffer;
+    const MarkRecord &record = ArrayOf<MarkRecord>::operator[](mark_index);
+    unsigned int mark_class = record.klass;
+
+    const Anchor& mark_anchor = this + record.markAnchor;
+    bool found;
+    const Anchor& glyph_anchor = anchors.get_anchor (glyph_index, mark_class, class_count, &found);
+    /* If this subtable doesn't have an anchor for this base and this class,
+     * return false such that the subsequent subtables have a chance at it. */
+    if (unlikely (!found)) return TRACE_RETURN (false);
+
+    hb_position_t mark_x, mark_y, base_x, base_y;
+
+    mark_anchor.get_anchor (c->font, buffer->cur().codepoint, &mark_x, &mark_y);
+    glyph_anchor.get_anchor (c->font, buffer->info[glyph_pos].codepoint, &base_x, &base_y);
+
+    hb_glyph_position_t &o = buffer->cur_pos();
+    o.x_offset = base_x - mark_x;
+    o.y_offset = base_y - mark_y;
+    o.attach_lookback() = buffer->idx - glyph_pos;
+
+    buffer->idx++;
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (ArrayOf<MarkRecord>::sanitize (c, this));
+  }
+};
+
+
+/* Lookups */
+
+struct SinglePosFormat1
+{
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    (this+coverage).add_coverage (c->input);
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage;
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    hb_buffer_t *buffer = c->buffer;
+    unsigned int index = (this+coverage).get_coverage  (buffer->cur().codepoint);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    valueFormat.apply_value (c->font, c->direction, this,
+                            values, buffer->cur_pos());
+
+    buffer->idx++;
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && coverage.sanitize (c, this) && valueFormat.sanitize_value (c, this, values));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 1 */
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of subtable */
+  ValueFormat  valueFormat;            /* Defines the types of data in the
+                                        * ValueRecord */
+  ValueRecord  values;                 /* Defines positioning
+                                        * value(s)--applied to all glyphs in
+                                        * the Coverage table */
+  public:
+  DEFINE_SIZE_ARRAY (6, values);
+};
+
+struct SinglePosFormat2
+{
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    (this+coverage).add_coverage (c->input);
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage;
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    hb_buffer_t *buffer = c->buffer;
+    unsigned int index = (this+coverage).get_coverage  (buffer->cur().codepoint);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    if (likely (index >= valueCount)) return TRACE_RETURN (false);
+
+    valueFormat.apply_value (c->font, c->direction, this,
+                            &values[index * valueFormat.get_len ()],
+                            buffer->cur_pos());
+
+    buffer->idx++;
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && coverage.sanitize (c, this) && valueFormat.sanitize_values (c, this, values, valueCount));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 2 */
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of subtable */
+  ValueFormat  valueFormat;            /* Defines the types of data in the
+                                        * ValueRecord */
+  USHORT       valueCount;             /* Number of ValueRecords */
+  ValueRecord  values;                 /* Array of ValueRecords--positioning
+                                        * values applied to glyphs */
+  public:
+  DEFINE_SIZE_ARRAY (8, values);
+};
+
+struct SinglePos
+{
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    TRACE_DISPATCH (this);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (c->dispatch (u.format1));
+    case 2: return TRACE_RETURN (c->dispatch (u.format2));
+    default:return TRACE_RETURN (c->default_return_value ());
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    case 2: return TRACE_RETURN (u.format2.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  SinglePosFormat1     format1;
+  SinglePosFormat2     format2;
+  } u;
+};
+
+
+struct PairValueRecord
+{
+  friend struct PairSet;
+
+  protected:
+  GlyphID      secondGlyph;            /* GlyphID of second glyph in the
+                                        * pair--first glyph is listed in the
+                                        * Coverage table */
+  ValueRecord  values;                 /* Positioning data for the first glyph
+                                        * followed by for second glyph */
+  public:
+  DEFINE_SIZE_ARRAY (2, values);
+};
+
+struct PairSet
+{
+  friend struct PairPosFormat1;
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c,
+                             const ValueFormat *valueFormats) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    unsigned int len1 = valueFormats[0].get_len ();
+    unsigned int len2 = valueFormats[1].get_len ();
+    unsigned int record_size = USHORT::static_size * (1 + len1 + len2);
+
+    const PairValueRecord *record = CastP<PairValueRecord> (array);
+    unsigned int count = len;
+    for (unsigned int i = 0; i < count; i++)
+    {
+      c->input->add (record->secondGlyph);
+      record = &StructAtOffset<PairValueRecord> (record, record_size);
+    }
+  }
+
+  inline bool apply (hb_apply_context_t *c,
+                    const ValueFormat *valueFormats,
+                    unsigned int pos) const
+  {
+    TRACE_APPLY (this);
+    hb_buffer_t *buffer = c->buffer;
+    unsigned int len1 = valueFormats[0].get_len ();
+    unsigned int len2 = valueFormats[1].get_len ();
+    unsigned int record_size = USHORT::static_size * (1 + len1 + len2);
+
+    const PairValueRecord *record = CastP<PairValueRecord> (array);
+    unsigned int count = len;
+    for (unsigned int i = 0; i < count; i++)
+    {
+      /* TODO bsearch */
+      if (buffer->info[pos].codepoint == record->secondGlyph)
+      {
+       valueFormats[0].apply_value (c->font, c->direction, this,
+                                    &record->values[0], buffer->cur_pos());
+       valueFormats[1].apply_value (c->font, c->direction, this,
+                                    &record->values[len1], buffer->pos[pos]);
+       if (len2)
+         pos++;
+       buffer->idx = pos;
+       return TRACE_RETURN (true);
+      }
+      record = &StructAtOffset<PairValueRecord> (record, record_size);
+    }
+
+    return TRACE_RETURN (false);
+  }
+
+  struct sanitize_closure_t {
+    void *base;
+    ValueFormat *valueFormats;
+    unsigned int len1; /* valueFormats[0].get_len() */
+    unsigned int stride; /* 1 + len1 + len2 */
+  };
+
+  inline bool sanitize (hb_sanitize_context_t *c, const sanitize_closure_t *closure) {
+    TRACE_SANITIZE (this);
+    if (!(c->check_struct (this)
+       && c->check_array (array, USHORT::static_size * closure->stride, len))) return TRACE_RETURN (false);
+
+    unsigned int count = len;
+    PairValueRecord *record = CastP<PairValueRecord> (array);
+    return TRACE_RETURN (closure->valueFormats[0].sanitize_values_stride_unsafe (c, closure->base, &record->values[0], count, closure->stride)
+                     && closure->valueFormats[1].sanitize_values_stride_unsafe (c, closure->base, &record->values[closure->len1], count, closure->stride));
+  }
+
+  protected:
+  USHORT       len;                    /* Number of PairValueRecords */
+  USHORT       array[VAR];             /* Array of PairValueRecords--ordered
+                                        * by GlyphID of the second glyph */
+  public:
+  DEFINE_SIZE_ARRAY (2, array);
+};
+
+struct PairPosFormat1
+{
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    (this+coverage).add_coverage (c->input);
+    unsigned int count = pairSet.len;
+    for (unsigned int i = 0; i < count; i++)
+      (this+pairSet[i]).collect_glyphs (c, &valueFormat1);
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage;
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    hb_buffer_t *buffer = c->buffer;
+    hb_apply_context_t::skipping_forward_iterator_t skippy_iter (c, buffer->idx, 1);
+    if (skippy_iter.has_no_chance ()) return TRACE_RETURN (false);
+
+    unsigned int index = (this+coverage).get_coverage  (buffer->cur().codepoint);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    if (!skippy_iter.next ()) return TRACE_RETURN (false);
+
+    return TRACE_RETURN ((this+pairSet[index]).apply (c, &valueFormat1, skippy_iter.idx));
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+
+    unsigned int len1 = valueFormat1.get_len ();
+    unsigned int len2 = valueFormat2.get_len ();
+    PairSet::sanitize_closure_t closure = {
+      this,
+      &valueFormat1,
+      len1,
+      1 + len1 + len2
+    };
+
+    return TRACE_RETURN (c->check_struct (this) && coverage.sanitize (c, this) && pairSet.sanitize (c, this, &closure));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 1 */
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of subtable */
+  ValueFormat  valueFormat1;           /* Defines the types of data in
+                                        * ValueRecord1--for the first glyph
+                                        * in the pair--may be zero (0) */
+  ValueFormat  valueFormat2;           /* Defines the types of data in
+                                        * ValueRecord2--for the second glyph
+                                        * in the pair--may be zero (0) */
+  OffsetArrayOf<PairSet>
+               pairSet;                /* Array of PairSet tables
+                                        * ordered by Coverage Index */
+  public:
+  DEFINE_SIZE_ARRAY (10, pairSet);
+};
+
+struct PairPosFormat2
+{
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    /* (this+coverage).add_coverage (c->input); // Don't need this. */
+
+    unsigned int count1 = class1Count;
+    const ClassDef &klass1 = this+classDef1;
+    for (unsigned int i = 0; i < count1; i++)
+      klass1.add_class (c->input, i);
+
+    unsigned int count2 = class2Count;
+    const ClassDef &klass2 = this+classDef2;
+    for (unsigned int i = 0; i < count2; i++)
+      klass2.add_class (c->input, i);
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage;
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    hb_buffer_t *buffer = c->buffer;
+    hb_apply_context_t::skipping_forward_iterator_t skippy_iter (c, buffer->idx, 1);
+    if (skippy_iter.has_no_chance ()) return TRACE_RETURN (false);
+
+    unsigned int index = (this+coverage).get_coverage  (buffer->cur().codepoint);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    if (!skippy_iter.next ()) return TRACE_RETURN (false);
+
+    unsigned int len1 = valueFormat1.get_len ();
+    unsigned int len2 = valueFormat2.get_len ();
+    unsigned int record_len = len1 + len2;
+
+    unsigned int klass1 = (this+classDef1).get_class (buffer->cur().codepoint);
+    unsigned int klass2 = (this+classDef2).get_class (buffer->info[skippy_iter.idx].codepoint);
+    if (unlikely (klass1 >= class1Count || klass2 >= class2Count)) return TRACE_RETURN (false);
+
+    const Value *v = &values[record_len * (klass1 * class2Count + klass2)];
+    valueFormat1.apply_value (c->font, c->direction, this,
+                             v, buffer->cur_pos());
+    valueFormat2.apply_value (c->font, c->direction, this,
+                             v + len1, buffer->pos[skippy_iter.idx]);
+
+    buffer->idx = skippy_iter.idx;
+    if (len2)
+      buffer->idx++;
+
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!(c->check_struct (this)
+       && coverage.sanitize (c, this)
+       && classDef1.sanitize (c, this)
+       && classDef2.sanitize (c, this))) return TRACE_RETURN (false);
+
+    unsigned int len1 = valueFormat1.get_len ();
+    unsigned int len2 = valueFormat2.get_len ();
+    unsigned int stride = len1 + len2;
+    unsigned int record_size = valueFormat1.get_size () + valueFormat2.get_size ();
+    unsigned int count = (unsigned int) class1Count * (unsigned int) class2Count;
+    return TRACE_RETURN (c->check_array (values, record_size, count) &&
+                        valueFormat1.sanitize_values_stride_unsafe (c, this, &values[0], count, stride) &&
+                        valueFormat2.sanitize_values_stride_unsafe (c, this, &values[len1], count, stride));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 2 */
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of subtable */
+  ValueFormat  valueFormat1;           /* ValueRecord definition--for the
+                                        * first glyph of the pair--may be zero
+                                        * (0) */
+  ValueFormat  valueFormat2;           /* ValueRecord definition--for the
+                                        * second glyph of the pair--may be
+                                        * zero (0) */
+  OffsetTo<ClassDef>
+               classDef1;              /* Offset to ClassDef table--from
+                                        * beginning of PairPos subtable--for
+                                        * the first glyph of the pair */
+  OffsetTo<ClassDef>
+               classDef2;              /* Offset to ClassDef table--from
+                                        * beginning of PairPos subtable--for
+                                        * the second glyph of the pair */
+  USHORT       class1Count;            /* Number of classes in ClassDef1
+                                        * table--includes Class0 */
+  USHORT       class2Count;            /* Number of classes in ClassDef2
+                                        * table--includes Class0 */
+  ValueRecord  values;                 /* Matrix of value pairs:
+                                        * class1-major, class2-minor,
+                                        * Each entry has value1 and value2 */
+  public:
+  DEFINE_SIZE_ARRAY (16, values);
+};
+
+struct PairPos
+{
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    TRACE_DISPATCH (this);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (c->dispatch (u.format1));
+    case 2: return TRACE_RETURN (c->dispatch (u.format2));
+    default:return TRACE_RETURN (c->default_return_value ());
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    case 2: return TRACE_RETURN (u.format2.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  PairPosFormat1       format1;
+  PairPosFormat2       format2;
+  } u;
+};
+
+
+struct EntryExitRecord
+{
+  friend struct CursivePosFormat1;
+
+  inline bool sanitize (hb_sanitize_context_t *c, void *base) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (entryAnchor.sanitize (c, base) && exitAnchor.sanitize (c, base));
+  }
+
+  protected:
+  OffsetTo<Anchor>
+               entryAnchor;            /* Offset to EntryAnchor table--from
+                                        * beginning of CursivePos
+                                        * subtable--may be NULL */
+  OffsetTo<Anchor>
+               exitAnchor;             /* Offset to ExitAnchor table--from
+                                        * beginning of CursivePos
+                                        * subtable--may be NULL */
+  public:
+  DEFINE_SIZE_STATIC (4);
+};
+
+struct CursivePosFormat1
+{
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    (this+coverage).add_coverage (c->input);
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage;
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    hb_buffer_t *buffer = c->buffer;
+
+    /* We don't handle mark glyphs here. */
+    if (unlikely (_hb_glyph_info_is_mark (&buffer->cur()))) return TRACE_RETURN (false);
+
+    hb_apply_context_t::skipping_forward_iterator_t skippy_iter (c, buffer->idx, 1);
+    if (skippy_iter.has_no_chance ()) return TRACE_RETURN (false);
+
+    const EntryExitRecord &this_record = entryExitRecord[(this+coverage).get_coverage  (buffer->cur().codepoint)];
+    if (!this_record.exitAnchor) return TRACE_RETURN (false);
+
+    if (!skippy_iter.next ()) return TRACE_RETURN (false);
+
+    const EntryExitRecord &next_record = entryExitRecord[(this+coverage).get_coverage  (buffer->info[skippy_iter.idx].codepoint)];
+    if (!next_record.entryAnchor) return TRACE_RETURN (false);
+
+    unsigned int i = buffer->idx;
+    unsigned int j = skippy_iter.idx;
+
+    hb_position_t entry_x, entry_y, exit_x, exit_y;
+    (this+this_record.exitAnchor).get_anchor (c->font, buffer->info[i].codepoint, &exit_x, &exit_y);
+    (this+next_record.entryAnchor).get_anchor (c->font, buffer->info[j].codepoint, &entry_x, &entry_y);
+
+    hb_glyph_position_t *pos = buffer->pos;
+
+    hb_position_t d;
+    /* Main-direction adjustment */
+    switch (c->direction) {
+      case HB_DIRECTION_LTR:
+       pos[i].x_advance  =  exit_x + pos[i].x_offset;
+
+       d = entry_x + pos[j].x_offset;
+       pos[j].x_advance -= d;
+       pos[j].x_offset  -= d;
+       break;
+      case HB_DIRECTION_RTL:
+       d = exit_x + pos[i].x_offset;
+       pos[i].x_advance -= d;
+       pos[i].x_offset  -= d;
+
+       pos[j].x_advance  =  entry_x + pos[j].x_offset;
+       break;
+      case HB_DIRECTION_TTB:
+       pos[i].y_advance  =  exit_y + pos[i].y_offset;
+
+       d = entry_y + pos[j].y_offset;
+       pos[j].y_advance -= d;
+       pos[j].y_offset  -= d;
+       break;
+      case HB_DIRECTION_BTT:
+       d = exit_y + pos[i].y_offset;
+       pos[i].y_advance -= d;
+       pos[i].y_offset  -= d;
+
+       pos[j].y_advance  =  entry_y;
+       break;
+      case HB_DIRECTION_INVALID:
+      default:
+       break;
+    }
+
+    /* Cross-direction adjustment */
+    if  (c->lookup_props & LookupFlag::RightToLeft) {
+      pos[i].cursive_chain() = j - i;
+      if (likely (HB_DIRECTION_IS_HORIZONTAL (c->direction)))
+       pos[i].y_offset = entry_y - exit_y;
+      else
+       pos[i].x_offset = entry_x - exit_x;
+    } else {
+      pos[j].cursive_chain() = i - j;
+      if (likely (HB_DIRECTION_IS_HORIZONTAL (c->direction)))
+       pos[j].y_offset = exit_y - entry_y;
+      else
+       pos[j].x_offset = exit_x - entry_x;
+    }
+
+    buffer->idx = j;
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (coverage.sanitize (c, this) && entryExitRecord.sanitize (c, this));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 1 */
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of subtable */
+  ArrayOf<EntryExitRecord>
+               entryExitRecord;        /* Array of EntryExit records--in
+                                        * Coverage Index order */
+  public:
+  DEFINE_SIZE_ARRAY (6, entryExitRecord);
+};
+
+struct CursivePos
+{
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    TRACE_DISPATCH (this);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (c->dispatch (u.format1));
+    default:return TRACE_RETURN (c->default_return_value ());
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  CursivePosFormat1    format1;
+  } u;
+};
+
+
+typedef AnchorMatrix BaseArray;                /* base-major--
+                                        * in order of BaseCoverage Index--,
+                                        * mark-minor--
+                                        * ordered by class--zero-based. */
+
+struct MarkBasePosFormat1
+{
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    (this+markCoverage).add_coverage (c->input);
+    (this+baseCoverage).add_coverage (c->input);
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+markCoverage;
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    hb_buffer_t *buffer = c->buffer;
+    unsigned int mark_index = (this+markCoverage).get_coverage  (buffer->cur().codepoint);
+    if (likely (mark_index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    /* now we search backwards for a non-mark glyph */
+    hb_apply_context_t::skipping_backward_iterator_t skippy_iter (c, buffer->idx, 1);
+    skippy_iter.set_lookup_props (LookupFlag::IgnoreMarks);
+    do {
+      if (!skippy_iter.prev ()) return TRACE_RETURN (false);
+      /* We only want to attach to the first of a MultipleSubst sequence.  Reject others. */
+      if (0 == _hb_glyph_info_get_lig_comp (&buffer->info[skippy_iter.idx])) break;
+      skippy_iter.reject ();
+    } while (1);
+
+    /* Checking that matched glyph is actually a base glyph by GDEF is too strong; disabled */
+    if (!_hb_glyph_info_is_base_glyph (&buffer->info[skippy_iter.idx])) { /*return TRACE_RETURN (false);*/ }
+
+    unsigned int base_index = (this+baseCoverage).get_coverage  (buffer->info[skippy_iter.idx].codepoint);
+    if (base_index == NOT_COVERED) return TRACE_RETURN (false);
+
+    return TRACE_RETURN ((this+markArray).apply (c, mark_index, base_index, this+baseArray, classCount, skippy_iter.idx));
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && markCoverage.sanitize (c, this) && baseCoverage.sanitize (c, this) &&
+                        markArray.sanitize (c, this) && baseArray.sanitize (c, this, (unsigned int) classCount));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 1 */
+  OffsetTo<Coverage>
+               markCoverage;           /* Offset to MarkCoverage table--from
+                                        * beginning of MarkBasePos subtable */
+  OffsetTo<Coverage>
+               baseCoverage;           /* Offset to BaseCoverage table--from
+                                        * beginning of MarkBasePos subtable */
+  USHORT       classCount;             /* Number of classes defined for marks */
+  OffsetTo<MarkArray>
+               markArray;              /* Offset to MarkArray table--from
+                                        * beginning of MarkBasePos subtable */
+  OffsetTo<BaseArray>
+               baseArray;              /* Offset to BaseArray table--from
+                                        * beginning of MarkBasePos subtable */
+  public:
+  DEFINE_SIZE_STATIC (12);
+};
+
+struct MarkBasePos
+{
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    TRACE_DISPATCH (this);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (c->dispatch (u.format1));
+    default:return TRACE_RETURN (c->default_return_value ());
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  MarkBasePosFormat1   format1;
+  } u;
+};
+
+
+typedef AnchorMatrix LigatureAttach;   /* component-major--
+                                        * in order of writing direction--,
+                                        * mark-minor--
+                                        * ordered by class--zero-based. */
+
+typedef OffsetListOf<LigatureAttach> LigatureArray;
+                                       /* Array of LigatureAttach
+                                        * tables ordered by
+                                        * LigatureCoverage Index */
+
+struct MarkLigPosFormat1
+{
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    (this+markCoverage).add_coverage (c->input);
+    (this+ligatureCoverage).add_coverage (c->input);
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+markCoverage;
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    hb_buffer_t *buffer = c->buffer;
+    unsigned int mark_index = (this+markCoverage).get_coverage  (buffer->cur().codepoint);
+    if (likely (mark_index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    /* now we search backwards for a non-mark glyph */
+    hb_apply_context_t::skipping_backward_iterator_t skippy_iter (c, buffer->idx, 1);
+    skippy_iter.set_lookup_props (LookupFlag::IgnoreMarks);
+    if (!skippy_iter.prev ()) return TRACE_RETURN (false);
+
+    /* Checking that matched glyph is actually a ligature by GDEF is too strong; disabled */
+    if (!_hb_glyph_info_is_ligature (&buffer->info[skippy_iter.idx])) { /*return TRACE_RETURN (false);*/ }
+
+    unsigned int j = skippy_iter.idx;
+    unsigned int lig_index = (this+ligatureCoverage).get_coverage  (buffer->info[j].codepoint);
+    if (lig_index == NOT_COVERED) return TRACE_RETURN (false);
+
+    const LigatureArray& lig_array = this+ligatureArray;
+    const LigatureAttach& lig_attach = lig_array[lig_index];
+
+    /* Find component to attach to */
+    unsigned int comp_count = lig_attach.rows;
+    if (unlikely (!comp_count)) return TRACE_RETURN (false);
+
+    /* We must now check whether the ligature ID of the current mark glyph
+     * is identical to the ligature ID of the found ligature.  If yes, we
+     * can directly use the component index.  If not, we attach the mark
+     * glyph to the last component of the ligature. */
+    unsigned int comp_index;
+    unsigned int lig_id = _hb_glyph_info_get_lig_id (&buffer->info[j]);
+    unsigned int mark_id = _hb_glyph_info_get_lig_id (&buffer->cur());
+    unsigned int mark_comp = _hb_glyph_info_get_lig_comp (&buffer->cur());
+    if (lig_id && lig_id == mark_id && mark_comp > 0)
+      comp_index = MIN (comp_count, _hb_glyph_info_get_lig_comp (&buffer->cur())) - 1;
+    else
+      comp_index = comp_count - 1;
+
+    return TRACE_RETURN ((this+markArray).apply (c, mark_index, comp_index, lig_attach, classCount, j));
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && markCoverage.sanitize (c, this) && ligatureCoverage.sanitize (c, this) &&
+                        markArray.sanitize (c, this) && ligatureArray.sanitize (c, this, (unsigned int) classCount));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 1 */
+  OffsetTo<Coverage>
+               markCoverage;           /* Offset to Mark Coverage table--from
+                                        * beginning of MarkLigPos subtable */
+  OffsetTo<Coverage>
+               ligatureCoverage;       /* Offset to Ligature Coverage
+                                        * table--from beginning of MarkLigPos
+                                        * subtable */
+  USHORT       classCount;             /* Number of defined mark classes */
+  OffsetTo<MarkArray>
+               markArray;              /* Offset to MarkArray table--from
+                                        * beginning of MarkLigPos subtable */
+  OffsetTo<LigatureArray>
+               ligatureArray;          /* Offset to LigatureArray table--from
+                                        * beginning of MarkLigPos subtable */
+  public:
+  DEFINE_SIZE_STATIC (12);
+};
+
+struct MarkLigPos
+{
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    TRACE_DISPATCH (this);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (c->dispatch (u.format1));
+    default:return TRACE_RETURN (c->default_return_value ());
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  MarkLigPosFormat1    format1;
+  } u;
+};
+
+
+typedef AnchorMatrix Mark2Array;       /* mark2-major--
+                                        * in order of Mark2Coverage Index--,
+                                        * mark1-minor--
+                                        * ordered by class--zero-based. */
+
+struct MarkMarkPosFormat1
+{
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    (this+mark1Coverage).add_coverage (c->input);
+    (this+mark2Coverage).add_coverage (c->input);
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+mark1Coverage;
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    hb_buffer_t *buffer = c->buffer;
+    unsigned int mark1_index = (this+mark1Coverage).get_coverage  (buffer->cur().codepoint);
+    if (likely (mark1_index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    /* now we search backwards for a suitable mark glyph until a non-mark glyph */
+    hb_apply_context_t::skipping_backward_iterator_t skippy_iter (c, buffer->idx, 1);
+    skippy_iter.set_lookup_props (c->lookup_props & ~LookupFlag::IgnoreFlags);
+    if (!skippy_iter.prev ()) return TRACE_RETURN (false);
+
+    if (!_hb_glyph_info_is_mark (&buffer->info[skippy_iter.idx])) { return TRACE_RETURN (false); }
+
+    unsigned int j = skippy_iter.idx;
+
+    unsigned int id1 = _hb_glyph_info_get_lig_id (&buffer->cur());
+    unsigned int id2 = _hb_glyph_info_get_lig_id (&buffer->info[j]);
+    unsigned int comp1 = _hb_glyph_info_get_lig_comp (&buffer->cur());
+    unsigned int comp2 = _hb_glyph_info_get_lig_comp (&buffer->info[j]);
+
+    if (likely (id1 == id2)) {
+      if (id1 == 0) /* Marks belonging to the same base. */
+       goto good;
+      else if (comp1 == comp2) /* Marks belonging to the same ligature component. */
+        goto good;
+    } else {
+      /* If ligature ids don't match, it may be the case that one of the marks
+       * itself is a ligature.  In which case match. */
+      if ((id1 > 0 && !comp1) || (id2 > 0 && !comp2))
+       goto good;
+    }
+
+    /* Didn't match. */
+    return TRACE_RETURN (false);
+
+    good:
+    unsigned int mark2_index = (this+mark2Coverage).get_coverage  (buffer->info[j].codepoint);
+    if (mark2_index == NOT_COVERED) return TRACE_RETURN (false);
+
+    return TRACE_RETURN ((this+mark1Array).apply (c, mark1_index, mark2_index, this+mark2Array, classCount, j));
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) && mark1Coverage.sanitize (c, this) &&
+                        mark2Coverage.sanitize (c, this) && mark1Array.sanitize (c, this)
+                        && mark2Array.sanitize (c, this, (unsigned int) classCount));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 1 */
+  OffsetTo<Coverage>
+               mark1Coverage;          /* Offset to Combining Mark1 Coverage
+                                        * table--from beginning of MarkMarkPos
+                                        * subtable */
+  OffsetTo<Coverage>
+               mark2Coverage;          /* Offset to Combining Mark2 Coverage
+                                        * table--from beginning of MarkMarkPos
+                                        * subtable */
+  USHORT       classCount;             /* Number of defined mark classes */
+  OffsetTo<MarkArray>
+               mark1Array;             /* Offset to Mark1Array table--from
+                                        * beginning of MarkMarkPos subtable */
+  OffsetTo<Mark2Array>
+               mark2Array;             /* Offset to Mark2Array table--from
+                                        * beginning of MarkMarkPos subtable */
+  public:
+  DEFINE_SIZE_STATIC (12);
+};
+
+struct MarkMarkPos
+{
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    TRACE_DISPATCH (this);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (c->dispatch (u.format1));
+    default:return TRACE_RETURN (c->default_return_value ());
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  MarkMarkPosFormat1   format1;
+  } u;
+};
+
+
+struct ContextPos : Context {};
+
+struct ChainContextPos : ChainContext {};
+
+struct ExtensionPos : Extension<ExtensionPos>
+{
+  typedef struct PosLookupSubTable LookupSubTable;
+};
+
+
+
+/*
+ * PosLookup
+ */
+
+
+struct PosLookupSubTable
+{
+  friend struct PosLookup;
+
+  enum Type {
+    Single             = 1,
+    Pair               = 2,
+    Cursive            = 3,
+    MarkBase           = 4,
+    MarkLig            = 5,
+    MarkMark           = 6,
+    Context            = 7,
+    ChainContext       = 8,
+    Extension          = 9
+  };
+
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c, unsigned int lookup_type) const
+  {
+    TRACE_DISPATCH (this);
+    switch (lookup_type) {
+    case Single:               return TRACE_RETURN (u.single.dispatch (c));
+    case Pair:                 return TRACE_RETURN (u.pair.dispatch (c));
+    case Cursive:              return TRACE_RETURN (u.cursive.dispatch (c));
+    case MarkBase:             return TRACE_RETURN (u.markBase.dispatch (c));
+    case MarkLig:              return TRACE_RETURN (u.markLig.dispatch (c));
+    case MarkMark:             return TRACE_RETURN (u.markMark.dispatch (c));
+    case Context:              return TRACE_RETURN (u.context.dispatch (c));
+    case ChainContext:         return TRACE_RETURN (u.chainContext.dispatch (c));
+    case Extension:            return TRACE_RETURN (u.extension.dispatch (c));
+    default:                   return TRACE_RETURN (c->default_return_value ());
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c, unsigned int lookup_type) {
+    TRACE_SANITIZE (this);
+    if (!u.header.sub_format.sanitize (c))
+      return TRACE_RETURN (false);
+    switch (lookup_type) {
+    case Single:               return TRACE_RETURN (u.single.sanitize (c));
+    case Pair:                 return TRACE_RETURN (u.pair.sanitize (c));
+    case Cursive:              return TRACE_RETURN (u.cursive.sanitize (c));
+    case MarkBase:             return TRACE_RETURN (u.markBase.sanitize (c));
+    case MarkLig:              return TRACE_RETURN (u.markLig.sanitize (c));
+    case MarkMark:             return TRACE_RETURN (u.markMark.sanitize (c));
+    case Context:              return TRACE_RETURN (u.context.sanitize (c));
+    case ChainContext:         return TRACE_RETURN (u.chainContext.sanitize (c));
+    case Extension:            return TRACE_RETURN (u.extension.sanitize (c));
+    default:                   return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  struct {
+    USHORT             sub_format;
+  } header;
+  SinglePos            single;
+  PairPos              pair;
+  CursivePos           cursive;
+  MarkBasePos          markBase;
+  MarkLigPos           markLig;
+  MarkMarkPos          markMark;
+  ContextPos           context;
+  ChainContextPos      chainContext;
+  ExtensionPos         extension;
+  } u;
+  public:
+  DEFINE_SIZE_UNION (2, header.sub_format);
+};
+
+
+struct PosLookup : Lookup
+{
+  inline const PosLookupSubTable& get_subtable (unsigned int i) const
+  { return this+CastR<OffsetArrayOf<PosLookupSubTable> > (subTable)[i]; }
+
+  inline bool is_reverse (void) const
+  {
+    return false;
+  }
+
+  inline hb_collect_glyphs_context_t::return_t collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    c->set_recurse_func (NULL);
+    return TRACE_RETURN (dispatch (c));
+  }
+
+  template <typename set_t>
+  inline void add_coverage (set_t *glyphs) const
+  {
+    hb_get_coverage_context_t c;
+    const Coverage *last = NULL;
+    unsigned int count = get_subtable_count ();
+    for (unsigned int i = 0; i < count; i++) {
+      const Coverage *coverage = &get_subtable (i).dispatch (&c, get_type ());
+      if (coverage != last) {
+        coverage->add_coverage (glyphs);
+        last = coverage;
+      }
+    }
+  }
+
+  inline bool apply_once (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    if (!c->check_glyph_property (&c->buffer->cur(), c->lookup_props))
+      return TRACE_RETURN (false);
+    return TRACE_RETURN (dispatch (c));
+  }
+
+  static bool apply_recurse_func (hb_apply_context_t *c, unsigned int lookup_index);
+
+  template <typename context_t>
+  static inline typename context_t::return_t dispatch_recurse_func (context_t *c, unsigned int lookup_index);
+
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    TRACE_DISPATCH (this);
+    unsigned int lookup_type = get_type ();
+    unsigned int count = get_subtable_count ();
+    for (unsigned int i = 0; i < count; i++) {
+      typename context_t::return_t r = get_subtable (i).dispatch (c, lookup_type);
+      if (c->stop_sublookup_iteration (r))
+        return TRACE_RETURN (r);
+    }
+    return TRACE_RETURN (c->default_return_value ());
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (unlikely (!Lookup::sanitize (c))) return TRACE_RETURN (false);
+    OffsetArrayOf<PosLookupSubTable> &list = CastR<OffsetArrayOf<PosLookupSubTable> > (subTable);
+    return TRACE_RETURN (list.sanitize (c, this, get_type ()));
+  }
+};
+
+typedef OffsetListOf<PosLookup> PosLookupList;
+
+/*
+ * GPOS -- The Glyph Positioning Table
+ */
+
+struct GPOS : GSUBGPOS
+{
+  static const hb_tag_t tableTag       = HB_OT_TAG_GPOS;
+
+  inline const PosLookup& get_lookup (unsigned int i) const
+  { return CastR<PosLookup> (GSUBGPOS::get_lookup (i)); }
+
+  static inline void position_start (hb_font_t *font, hb_buffer_t *buffer);
+  static inline void position_finish (hb_font_t *font, hb_buffer_t *buffer);
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (unlikely (!GSUBGPOS::sanitize (c))) return TRACE_RETURN (false);
+    OffsetTo<PosLookupList> &list = CastR<OffsetTo<PosLookupList> > (lookupList);
+    return TRACE_RETURN (list.sanitize (c, this));
+  }
+  public:
+  DEFINE_SIZE_STATIC (10);
+};
+
+
+static void
+fix_cursive_minor_offset (hb_glyph_position_t *pos, unsigned int i, hb_direction_t direction)
+{
+  unsigned int j = pos[i].cursive_chain();
+  if (likely (!j))
+    return;
+
+  j += i;
+
+  pos[i].cursive_chain() = 0;
+
+  fix_cursive_minor_offset (pos, j, direction);
+
+  if (HB_DIRECTION_IS_HORIZONTAL (direction))
+    pos[i].y_offset += pos[j].y_offset;
+  else
+    pos[i].x_offset += pos[j].x_offset;
+}
+
+static void
+fix_mark_attachment (hb_glyph_position_t *pos, unsigned int i, hb_direction_t direction)
+{
+  if (likely (!(pos[i].attach_lookback())))
+    return;
+
+  unsigned int j = i - pos[i].attach_lookback();
+
+  pos[i].x_offset += pos[j].x_offset;
+  pos[i].y_offset += pos[j].y_offset;
+
+  if (HB_DIRECTION_IS_FORWARD (direction))
+    for (unsigned int k = j; k < i; k++) {
+      pos[i].x_offset -= pos[k].x_advance;
+      pos[i].y_offset -= pos[k].y_advance;
+    }
+  else
+    for (unsigned int k = j + 1; k < i + 1; k++) {
+      pos[i].x_offset += pos[k].x_advance;
+      pos[i].y_offset += pos[k].y_advance;
+    }
+}
+
+void
+GPOS::position_start (hb_font_t *font HB_UNUSED, hb_buffer_t *buffer)
+{
+  buffer->clear_positions ();
+
+  unsigned int count = buffer->len;
+  for (unsigned int i = 0; i < count; i++)
+    buffer->pos[i].attach_lookback() = buffer->pos[i].cursive_chain() = 0;
+}
+
+void
+GPOS::position_finish (hb_font_t *font HB_UNUSED, hb_buffer_t *buffer)
+{
+  _hb_buffer_assert_gsubgpos_vars (buffer);
+
+  unsigned int len;
+  hb_glyph_position_t *pos = hb_buffer_get_glyph_positions (buffer, &len);
+  hb_direction_t direction = buffer->props.direction;
+
+  /* Handle cursive connections */
+  for (unsigned int i = 0; i < len; i++)
+    fix_cursive_minor_offset (pos, i, direction);
+
+  /* Handle attachments */
+  for (unsigned int i = 0; i < len; i++)
+    fix_mark_attachment (pos, i, direction);
+}
+
+
+/* Out-of-class implementation for methods recursing */
+
+template <typename context_t>
+/*static*/ inline typename context_t::return_t PosLookup::dispatch_recurse_func (context_t *c, unsigned int lookup_index)
+{
+  const GPOS &gpos = *(hb_ot_layout_from_face (c->face)->gpos);
+  const PosLookup &l = gpos.get_lookup (lookup_index);
+  return l.dispatch (c);
+}
+
+/*static*/ inline bool PosLookup::apply_recurse_func (hb_apply_context_t *c, unsigned int lookup_index)
+{
+  const GPOS &gpos = *(hb_ot_layout_from_face (c->face)->gpos);
+  const PosLookup &l = gpos.get_lookup (lookup_index);
+  unsigned int saved_lookup_props = c->lookup_props;
+  c->set_lookup (l);
+  bool ret = l.apply_once (c);
+  c->lookup_props = saved_lookup_props;
+  return ret;
+}
+
+
+#undef attach_lookback
+#undef cursive_chain
+
+
+} /* namespace OT */
+
+
+#endif /* HB_OT_LAYOUT_GPOS_TABLE_HH */
diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh
new file mode 100644 (file)
index 0000000..2b421a9
--- /dev/null
@@ -0,0 +1,1392 @@
+/*
+ * Copyright © 2007,2008,2009,2010  Red Hat, Inc.
+ * Copyright © 2010,2012,2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_LAYOUT_GSUB_TABLE_HH
+#define HB_OT_LAYOUT_GSUB_TABLE_HH
+
+#include "hb-ot-layout-gsubgpos-private.hh"
+
+
+namespace OT {
+
+
+struct SingleSubstFormat1
+{
+  inline void closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+    Coverage::Iter iter;
+    for (iter.init (this+coverage); iter.more (); iter.next ()) {
+      hb_codepoint_t glyph_id = iter.get_glyph ();
+      if (c->glyphs->has (glyph_id))
+       c->glyphs->add ((glyph_id + deltaGlyphID) & 0xFFFFu);
+    }
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    Coverage::Iter iter;
+    for (iter.init (this+coverage); iter.more (); iter.next ()) {
+      hb_codepoint_t glyph_id = iter.get_glyph ();
+      c->input->add (glyph_id);
+      c->output->add ((glyph_id + deltaGlyphID) & 0xFFFFu);
+    }
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage;
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c) const
+  {
+    TRACE_WOULD_APPLY (this);
+    return TRACE_RETURN (c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED);
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    hb_codepoint_t glyph_id = c->buffer->cur().codepoint;
+    unsigned int index = (this+coverage).get_coverage (glyph_id);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    /* According to the Adobe Annotated OpenType Suite, result is always
+     * limited to 16bit. */
+    glyph_id = (glyph_id + deltaGlyphID) & 0xFFFFu;
+    c->replace_glyph (glyph_id);
+
+    return TRACE_RETURN (true);
+  }
+
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<GlyphID> &glyphs,
+                        unsigned int num_glyphs,
+                        int delta)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false);
+    if (unlikely (!coverage.serialize (c, this).serialize (c, glyphs, num_glyphs))) return TRACE_RETURN (false);
+    deltaGlyphID.set (delta); /* TODO(serilaize) overflow? */
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (coverage.sanitize (c, this) && deltaGlyphID.sanitize (c));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 1 */
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of Substitution table */
+  SHORT                deltaGlyphID;           /* Add to original GlyphID to get
+                                        * substitute GlyphID */
+  public:
+  DEFINE_SIZE_STATIC (6);
+};
+
+struct SingleSubstFormat2
+{
+  inline void closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+    Coverage::Iter iter;
+    for (iter.init (this+coverage); iter.more (); iter.next ()) {
+      if (c->glyphs->has (iter.get_glyph ()))
+       c->glyphs->add (substitute[iter.get_coverage ()]);
+    }
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    Coverage::Iter iter;
+    for (iter.init (this+coverage); iter.more (); iter.next ()) {
+      c->input->add (iter.get_glyph ());
+      c->output->add (substitute[iter.get_coverage ()]);
+    }
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage;
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c) const
+  {
+    TRACE_WOULD_APPLY (this);
+    return TRACE_RETURN (c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED);
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    hb_codepoint_t glyph_id = c->buffer->cur().codepoint;
+    unsigned int index = (this+coverage).get_coverage (glyph_id);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    if (unlikely (index >= substitute.len)) return TRACE_RETURN (false);
+
+    glyph_id = substitute[index];
+    c->replace_glyph (glyph_id);
+
+    return TRACE_RETURN (true);
+  }
+
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<GlyphID> &glyphs,
+                        Supplier<GlyphID> &substitutes,
+                        unsigned int num_glyphs)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false);
+    if (unlikely (!substitute.serialize (c, substitutes, num_glyphs))) return TRACE_RETURN (false);
+    if (unlikely (!coverage.serialize (c, this).serialize (c, glyphs, num_glyphs))) return TRACE_RETURN (false);
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (coverage.sanitize (c, this) && substitute.sanitize (c));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 2 */
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of Substitution table */
+  ArrayOf<GlyphID>
+               substitute;             /* Array of substitute
+                                        * GlyphIDs--ordered by Coverage Index */
+  public:
+  DEFINE_SIZE_ARRAY (6, substitute);
+};
+
+struct SingleSubst
+{
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<GlyphID> &glyphs,
+                        Supplier<GlyphID> &substitutes,
+                        unsigned int num_glyphs)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (u.format))) return TRACE_RETURN (false);
+    unsigned int format = 2;
+    int delta;
+    if (num_glyphs) {
+      format = 1;
+      /* TODO(serialize) check for wrap-around */
+      delta = substitutes[0] - glyphs[0];
+      for (unsigned int i = 1; i < num_glyphs; i++)
+       if (delta != substitutes[i] - glyphs[i]) {
+         format = 2;
+         break;
+       }
+    }
+    u.format.set (format);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.serialize (c, glyphs, num_glyphs, delta));
+    case 2: return TRACE_RETURN (u.format2.serialize (c, glyphs, substitutes, num_glyphs));
+    default:return TRACE_RETURN (false);
+    }
+  }
+
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    TRACE_DISPATCH (this);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (c->dispatch (u.format1));
+    case 2: return TRACE_RETURN (c->dispatch (u.format2));
+    default:return TRACE_RETURN (c->default_return_value ());
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    case 2: return TRACE_RETURN (u.format2.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  SingleSubstFormat1   format1;
+  SingleSubstFormat2   format2;
+  } u;
+};
+
+
+struct Sequence
+{
+  inline void closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+    unsigned int count = substitute.len;
+    for (unsigned int i = 0; i < count; i++)
+      c->glyphs->add (substitute[i]);
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    unsigned int count = substitute.len;
+    for (unsigned int i = 0; i < count; i++)
+      c->output->add (substitute[i]);
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    unsigned int count = substitute.len;
+
+    /* TODO:
+     * Testing shows that Uniscribe actually allows zero-len susbstitute,
+     * which essentially deletes a glyph.  We don't allow for now.  It
+     * can be confusing to the client since the cluster from the deleted
+     * glyph won't be merged with any output cluster...  Also, currently
+     * buffer->move_to() makes assumptions about this too.  Perhaps fix
+     * in the future after figuring out what to do with the clusters.
+     */
+    if (unlikely (!count)) return TRACE_RETURN (false);
+
+    /* Special-case to make it in-place and not consider this
+     * as a "multiplied" substitution. */
+    if (unlikely (count == 1))
+    {
+      c->replace_glyph (substitute.array[0]);
+      return TRACE_RETURN (true);
+    }
+
+    unsigned int klass = _hb_glyph_info_is_ligature (&c->buffer->cur()) ?
+                        HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH : 0;
+
+    for (unsigned int i = 0; i < count; i++) {
+      _hb_glyph_info_set_lig_props_for_component (&c->buffer->cur(), i);
+      c->output_glyph_for_component (substitute.array[i], klass);
+    }
+    c->buffer->skip_glyph ();
+
+    return TRACE_RETURN (true);
+  }
+
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<GlyphID> &glyphs,
+                        unsigned int num_glyphs)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false);
+    if (unlikely (!substitute.serialize (c, glyphs, num_glyphs))) return TRACE_RETURN (false);
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (substitute.sanitize (c));
+  }
+
+  protected:
+  ArrayOf<GlyphID>
+               substitute;             /* String of GlyphIDs to substitute */
+  public:
+  DEFINE_SIZE_ARRAY (2, substitute);
+};
+
+struct MultipleSubstFormat1
+{
+  inline void closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+    Coverage::Iter iter;
+    for (iter.init (this+coverage); iter.more (); iter.next ()) {
+      if (c->glyphs->has (iter.get_glyph ()))
+       (this+sequence[iter.get_coverage ()]).closure (c);
+    }
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    (this+coverage).add_coverage (c->input);
+    unsigned int count = sequence.len;
+    for (unsigned int i = 0; i < count; i++)
+       (this+sequence[i]).collect_glyphs (c);
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage;
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c) const
+  {
+    TRACE_WOULD_APPLY (this);
+    return TRACE_RETURN (c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED);
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+
+    unsigned int index = (this+coverage).get_coverage (c->buffer->cur().codepoint);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    return TRACE_RETURN ((this+sequence[index]).apply (c));
+  }
+
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<GlyphID> &glyphs,
+                        Supplier<unsigned int> &substitute_len_list,
+                        unsigned int num_glyphs,
+                        Supplier<GlyphID> &substitute_glyphs_list)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false);
+    if (unlikely (!sequence.serialize (c, num_glyphs))) return TRACE_RETURN (false);
+    for (unsigned int i = 0; i < num_glyphs; i++)
+      if (unlikely (!sequence[i].serialize (c, this).serialize (c,
+                                                               substitute_glyphs_list,
+                                                               substitute_len_list[i]))) return TRACE_RETURN (false);
+    substitute_len_list.advance (num_glyphs);
+    if (unlikely (!coverage.serialize (c, this).serialize (c, glyphs, num_glyphs))) return TRACE_RETURN (false);
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (coverage.sanitize (c, this) && sequence.sanitize (c, this));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 1 */
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of Substitution table */
+  OffsetArrayOf<Sequence>
+               sequence;               /* Array of Sequence tables
+                                        * ordered by Coverage Index */
+  public:
+  DEFINE_SIZE_ARRAY (6, sequence);
+};
+
+struct MultipleSubst
+{
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<GlyphID> &glyphs,
+                        Supplier<unsigned int> &substitute_len_list,
+                        unsigned int num_glyphs,
+                        Supplier<GlyphID> &substitute_glyphs_list)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (u.format))) return TRACE_RETURN (false);
+    unsigned int format = 1;
+    u.format.set (format);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.serialize (c, glyphs, substitute_len_list, num_glyphs, substitute_glyphs_list));
+    default:return TRACE_RETURN (false);
+    }
+  }
+
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    TRACE_DISPATCH (this);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (c->dispatch (u.format1));
+    default:return TRACE_RETURN (c->default_return_value ());
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  MultipleSubstFormat1 format1;
+  } u;
+};
+
+
+typedef ArrayOf<GlyphID> AlternateSet; /* Array of alternate GlyphIDs--in
+                                        * arbitrary order */
+
+struct AlternateSubstFormat1
+{
+  inline void closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+    Coverage::Iter iter;
+    for (iter.init (this+coverage); iter.more (); iter.next ()) {
+      if (c->glyphs->has (iter.get_glyph ())) {
+       const AlternateSet &alt_set = this+alternateSet[iter.get_coverage ()];
+       unsigned int count = alt_set.len;
+       for (unsigned int i = 0; i < count; i++)
+         c->glyphs->add (alt_set[i]);
+      }
+    }
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    Coverage::Iter iter;
+    for (iter.init (this+coverage); iter.more (); iter.next ()) {
+      c->input->add (iter.get_glyph ());
+      const AlternateSet &alt_set = this+alternateSet[iter.get_coverage ()];
+      unsigned int count = alt_set.len;
+      for (unsigned int i = 0; i < count; i++)
+       c->output->add (alt_set[i]);
+    }
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage;
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c) const
+  {
+    TRACE_WOULD_APPLY (this);
+    return TRACE_RETURN (c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED);
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    hb_codepoint_t glyph_id = c->buffer->cur().codepoint;
+
+    unsigned int index = (this+coverage).get_coverage (glyph_id);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    const AlternateSet &alt_set = this+alternateSet[index];
+
+    if (unlikely (!alt_set.len)) return TRACE_RETURN (false);
+
+    hb_mask_t glyph_mask = c->buffer->cur().mask;
+    hb_mask_t lookup_mask = c->lookup_mask;
+
+    /* Note: This breaks badly if two features enabled this lookup together. */
+    unsigned int shift = _hb_ctz (lookup_mask);
+    unsigned int alt_index = ((lookup_mask & glyph_mask) >> shift);
+
+    if (unlikely (alt_index > alt_set.len || alt_index == 0)) return TRACE_RETURN (false);
+
+    glyph_id = alt_set[alt_index - 1];
+
+    c->replace_glyph (glyph_id);
+
+    return TRACE_RETURN (true);
+  }
+
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<GlyphID> &glyphs,
+                        Supplier<unsigned int> &alternate_len_list,
+                        unsigned int num_glyphs,
+                        Supplier<GlyphID> &alternate_glyphs_list)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false);
+    if (unlikely (!alternateSet.serialize (c, num_glyphs))) return TRACE_RETURN (false);
+    for (unsigned int i = 0; i < num_glyphs; i++)
+      if (unlikely (!alternateSet[i].serialize (c, this).serialize (c,
+                                                                   alternate_glyphs_list,
+                                                                   alternate_len_list[i]))) return TRACE_RETURN (false);
+    alternate_len_list.advance (num_glyphs);
+    if (unlikely (!coverage.serialize (c, this).serialize (c, glyphs, num_glyphs))) return TRACE_RETURN (false);
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (coverage.sanitize (c, this) && alternateSet.sanitize (c, this));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 1 */
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of Substitution table */
+  OffsetArrayOf<AlternateSet>
+               alternateSet;           /* Array of AlternateSet tables
+                                        * ordered by Coverage Index */
+  public:
+  DEFINE_SIZE_ARRAY (6, alternateSet);
+};
+
+struct AlternateSubst
+{
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<GlyphID> &glyphs,
+                        Supplier<unsigned int> &alternate_len_list,
+                        unsigned int num_glyphs,
+                        Supplier<GlyphID> &alternate_glyphs_list)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (u.format))) return TRACE_RETURN (false);
+    unsigned int format = 1;
+    u.format.set (format);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.serialize (c, glyphs, alternate_len_list, num_glyphs, alternate_glyphs_list));
+    default:return TRACE_RETURN (false);
+    }
+  }
+
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    TRACE_DISPATCH (this);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (c->dispatch (u.format1));
+    default:return TRACE_RETURN (c->default_return_value ());
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  AlternateSubstFormat1        format1;
+  } u;
+};
+
+
+struct Ligature
+{
+  inline void closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+    unsigned int count = component.len;
+    for (unsigned int i = 1; i < count; i++)
+      if (!c->glyphs->has (component[i]))
+        return;
+    c->glyphs->add (ligGlyph);
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    unsigned int count = component.len;
+    for (unsigned int i = 1; i < count; i++)
+      c->input->add (component[i]);
+    c->output->add (ligGlyph);
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c) const
+  {
+    TRACE_WOULD_APPLY (this);
+    if (c->len != component.len)
+      return TRACE_RETURN (false);
+
+    for (unsigned int i = 1; i < c->len; i++)
+      if (likely (c->glyphs[i] != component[i]))
+       return TRACE_RETURN (false);
+
+    return TRACE_RETURN (true);
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    unsigned int count = component.len;
+
+    if (unlikely (!count)) return TRACE_RETURN (false);
+
+    /* Special-case to make it in-place and not consider this
+     * as a "ligated" substitution. */
+    if (unlikely (count == 1))
+    {
+      c->replace_glyph (ligGlyph);
+      return TRACE_RETURN (true);
+    }
+
+    bool is_mark_ligature = false;
+    unsigned int total_component_count = 0;
+
+    unsigned int match_length = 0;
+    unsigned int match_positions[MAX_CONTEXT_LENGTH];
+
+    if (likely (!match_input (c, count,
+                             &component[1],
+                             match_glyph,
+                             NULL,
+                             &match_length,
+                             match_positions,
+                             &is_mark_ligature,
+                             &total_component_count)))
+      return TRACE_RETURN (false);
+
+    ligate_input (c,
+                 count,
+                 match_positions,
+                 match_length,
+                 ligGlyph,
+                 is_mark_ligature,
+                 total_component_count);
+
+    return TRACE_RETURN (true);
+  }
+
+  inline bool serialize (hb_serialize_context_t *c,
+                        GlyphID ligature,
+                        Supplier<GlyphID> &components, /* Starting from second */
+                        unsigned int num_components /* Including first component */)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false);
+    ligGlyph = ligature;
+    if (unlikely (!component.serialize (c, components, num_components))) return TRACE_RETURN (false);
+    return TRACE_RETURN (true);
+  }
+
+  public:
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (ligGlyph.sanitize (c) && component.sanitize (c));
+  }
+
+  protected:
+  GlyphID      ligGlyph;               /* GlyphID of ligature to substitute */
+  HeadlessArrayOf<GlyphID>
+               component;              /* Array of component GlyphIDs--start
+                                        * with the second  component--ordered
+                                        * in writing direction */
+  public:
+  DEFINE_SIZE_ARRAY (4, component);
+};
+
+struct LigatureSet
+{
+  inline void closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+    unsigned int num_ligs = ligature.len;
+    for (unsigned int i = 0; i < num_ligs; i++)
+      (this+ligature[i]).closure (c);
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    unsigned int num_ligs = ligature.len;
+    for (unsigned int i = 0; i < num_ligs; i++)
+      (this+ligature[i]).collect_glyphs (c);
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c) const
+  {
+    TRACE_WOULD_APPLY (this);
+    unsigned int num_ligs = ligature.len;
+    for (unsigned int i = 0; i < num_ligs; i++)
+    {
+      const Ligature &lig = this+ligature[i];
+      if (lig.would_apply (c))
+        return TRACE_RETURN (true);
+    }
+    return TRACE_RETURN (false);
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    unsigned int num_ligs = ligature.len;
+    for (unsigned int i = 0; i < num_ligs; i++)
+    {
+      const Ligature &lig = this+ligature[i];
+      if (lig.apply (c)) return TRACE_RETURN (true);
+    }
+
+    return TRACE_RETURN (false);
+  }
+
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<GlyphID> &ligatures,
+                        Supplier<unsigned int> &component_count_list,
+                        unsigned int num_ligatures,
+                        Supplier<GlyphID> &component_list /* Starting from second for each ligature */)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false);
+    if (unlikely (!ligature.serialize (c, num_ligatures))) return TRACE_RETURN (false);
+    for (unsigned int i = 0; i < num_ligatures; i++)
+      if (unlikely (!ligature[i].serialize (c, this).serialize (c,
+                                                               ligatures[i],
+                                                               component_list,
+                                                               component_count_list[i]))) return TRACE_RETURN (false);
+    ligatures.advance (num_ligatures);
+    component_count_list.advance (num_ligatures);
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (ligature.sanitize (c, this));
+  }
+
+  protected:
+  OffsetArrayOf<Ligature>
+               ligature;               /* Array LigatureSet tables
+                                        * ordered by preference */
+  public:
+  DEFINE_SIZE_ARRAY (2, ligature);
+};
+
+struct LigatureSubstFormat1
+{
+  inline void closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+    Coverage::Iter iter;
+    for (iter.init (this+coverage); iter.more (); iter.next ()) {
+      if (c->glyphs->has (iter.get_glyph ()))
+       (this+ligatureSet[iter.get_coverage ()]).closure (c);
+    }
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    Coverage::Iter iter;
+    for (iter.init (this+coverage); iter.more (); iter.next ()) {
+      c->input->add (iter.get_glyph ());
+      (this+ligatureSet[iter.get_coverage ()]).collect_glyphs (c);
+    }
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage;
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c) const
+  {
+    TRACE_WOULD_APPLY (this);
+    unsigned int index = (this+coverage).get_coverage (c->glyphs[0]);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    const LigatureSet &lig_set = this+ligatureSet[index];
+    return TRACE_RETURN (lig_set.would_apply (c));
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    hb_codepoint_t glyph_id = c->buffer->cur().codepoint;
+
+    unsigned int index = (this+coverage).get_coverage (glyph_id);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    const LigatureSet &lig_set = this+ligatureSet[index];
+    return TRACE_RETURN (lig_set.apply (c));
+  }
+
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<GlyphID> &first_glyphs,
+                        Supplier<unsigned int> &ligature_per_first_glyph_count_list,
+                        unsigned int num_first_glyphs,
+                        Supplier<GlyphID> &ligatures_list,
+                        Supplier<unsigned int> &component_count_list,
+                        Supplier<GlyphID> &component_list /* Starting from second for each ligature */)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (*this))) return TRACE_RETURN (false);
+    if (unlikely (!ligatureSet.serialize (c, num_first_glyphs))) return TRACE_RETURN (false);
+    for (unsigned int i = 0; i < num_first_glyphs; i++)
+      if (unlikely (!ligatureSet[i].serialize (c, this).serialize (c,
+                                                                  ligatures_list,
+                                                                  component_count_list,
+                                                                  ligature_per_first_glyph_count_list[i],
+                                                                  component_list))) return TRACE_RETURN (false);
+    ligature_per_first_glyph_count_list.advance (num_first_glyphs);
+    if (unlikely (!coverage.serialize (c, this).serialize (c, first_glyphs, num_first_glyphs))) return TRACE_RETURN (false);
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (coverage.sanitize (c, this) && ligatureSet.sanitize (c, this));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 1 */
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of Substitution table */
+  OffsetArrayOf<LigatureSet>
+               ligatureSet;            /* Array LigatureSet tables
+                                        * ordered by Coverage Index */
+  public:
+  DEFINE_SIZE_ARRAY (6, ligatureSet);
+};
+
+struct LigatureSubst
+{
+  inline bool serialize (hb_serialize_context_t *c,
+                        Supplier<GlyphID> &first_glyphs,
+                        Supplier<unsigned int> &ligature_per_first_glyph_count_list,
+                        unsigned int num_first_glyphs,
+                        Supplier<GlyphID> &ligatures_list,
+                        Supplier<unsigned int> &component_count_list,
+                        Supplier<GlyphID> &component_list /* Starting from second for each ligature */)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!c->extend_min (u.format))) return TRACE_RETURN (false);
+    unsigned int format = 1;
+    u.format.set (format);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.serialize (c, first_glyphs, ligature_per_first_glyph_count_list, num_first_glyphs,
+                                                     ligatures_list, component_count_list, component_list));
+    default:return TRACE_RETURN (false);
+    }
+  }
+
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    TRACE_DISPATCH (this);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (c->dispatch (u.format1));
+    default:return TRACE_RETURN (c->default_return_value ());
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  LigatureSubstFormat1 format1;
+  } u;
+};
+
+
+struct ContextSubst : Context {};
+
+struct ChainContextSubst : ChainContext {};
+
+struct ExtensionSubst : Extension<ExtensionSubst>
+{
+  typedef struct SubstLookupSubTable LookupSubTable;
+
+  inline bool is_reverse (void) const;
+};
+
+
+struct ReverseChainSingleSubstFormat1
+{
+  inline void closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+    const OffsetArrayOf<Coverage> &lookahead = StructAfter<OffsetArrayOf<Coverage> > (backtrack);
+
+    unsigned int count;
+
+    count = backtrack.len;
+    for (unsigned int i = 0; i < count; i++)
+      if (!(this+backtrack[i]).intersects (c->glyphs))
+        return;
+
+    count = lookahead.len;
+    for (unsigned int i = 0; i < count; i++)
+      if (!(this+lookahead[i]).intersects (c->glyphs))
+        return;
+
+    const ArrayOf<GlyphID> &substitute = StructAfter<ArrayOf<GlyphID> > (lookahead);
+    Coverage::Iter iter;
+    for (iter.init (this+coverage); iter.more (); iter.next ()) {
+      if (c->glyphs->has (iter.get_glyph ()))
+       c->glyphs->add (substitute[iter.get_coverage ()]);
+    }
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+
+    const OffsetArrayOf<Coverage> &lookahead = StructAfter<OffsetArrayOf<Coverage> > (backtrack);
+
+    unsigned int count;
+
+    (this+coverage).add_coverage (c->input);
+
+    count = backtrack.len;
+    for (unsigned int i = 0; i < count; i++)
+      (this+backtrack[i]).add_coverage (c->before);
+
+    count = lookahead.len;
+    for (unsigned int i = 0; i < count; i++)
+      (this+lookahead[i]).add_coverage (c->after);
+
+    const ArrayOf<GlyphID> &substitute = StructAfter<ArrayOf<GlyphID> > (lookahead);
+    count = substitute.len;
+    for (unsigned int i = 0; i < count; i++)
+      c->output->add (substitute[i]);
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage;
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c) const
+  {
+    TRACE_WOULD_APPLY (this);
+    return TRACE_RETURN (c->len == 1 && (this+coverage).get_coverage (c->glyphs[0]) != NOT_COVERED);
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    if (unlikely (c->nesting_level_left != MAX_NESTING_LEVEL))
+      return TRACE_RETURN (false); /* No chaining to this type */
+
+    unsigned int index = (this+coverage).get_coverage (c->buffer->cur().codepoint);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    const OffsetArrayOf<Coverage> &lookahead = StructAfter<OffsetArrayOf<Coverage> > (backtrack);
+    const ArrayOf<GlyphID> &substitute = StructAfter<ArrayOf<GlyphID> > (lookahead);
+
+    if (match_backtrack (c,
+                        backtrack.len, (USHORT *) backtrack.array,
+                        match_coverage, this) &&
+        match_lookahead (c,
+                        lookahead.len, (USHORT *) lookahead.array,
+                        match_coverage, this,
+                        1))
+    {
+      c->replace_glyph_inplace (substitute[index]);
+      /* Note: We DON'T decrease buffer->idx.  The main loop does it
+       * for us.  This is useful for preventing surprises if someone
+       * calls us through a Context lookup. */
+      return TRACE_RETURN (true);
+    }
+
+    return TRACE_RETURN (false);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!(coverage.sanitize (c, this) && backtrack.sanitize (c, this)))
+      return TRACE_RETURN (false);
+    OffsetArrayOf<Coverage> &lookahead = StructAfter<OffsetArrayOf<Coverage> > (backtrack);
+    if (!lookahead.sanitize (c, this))
+      return TRACE_RETURN (false);
+    ArrayOf<GlyphID> &substitute = StructAfter<ArrayOf<GlyphID> > (lookahead);
+    return TRACE_RETURN (substitute.sanitize (c));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 1 */
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of table */
+  OffsetArrayOf<Coverage>
+               backtrack;              /* Array of coverage tables
+                                        * in backtracking sequence, in  glyph
+                                        * sequence order */
+  OffsetArrayOf<Coverage>
+               lookaheadX;             /* Array of coverage tables
+                                        * in lookahead sequence, in glyph
+                                        * sequence order */
+  ArrayOf<GlyphID>
+               substituteX;            /* Array of substitute
+                                        * GlyphIDs--ordered by Coverage Index */
+  public:
+  DEFINE_SIZE_MIN (10);
+};
+
+struct ReverseChainSingleSubst
+{
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    TRACE_DISPATCH (this);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (c->dispatch (u.format1));
+    default:return TRACE_RETURN (c->default_return_value ());
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT                               format;         /* Format identifier */
+  ReverseChainSingleSubstFormat1       format1;
+  } u;
+};
+
+
+
+/*
+ * SubstLookup
+ */
+
+struct SubstLookupSubTable
+{
+  friend struct SubstLookup;
+
+  enum Type {
+    Single             = 1,
+    Multiple           = 2,
+    Alternate          = 3,
+    Ligature           = 4,
+    Context            = 5,
+    ChainContext       = 6,
+    Extension          = 7,
+    ReverseChainSingle = 8
+  };
+
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c, unsigned int lookup_type) const
+  {
+    TRACE_DISPATCH (this);
+    switch (lookup_type) {
+    case Single:               return TRACE_RETURN (u.single.dispatch (c));
+    case Multiple:             return TRACE_RETURN (u.multiple.dispatch (c));
+    case Alternate:            return TRACE_RETURN (u.alternate.dispatch (c));
+    case Ligature:             return TRACE_RETURN (u.ligature.dispatch (c));
+    case Context:              return TRACE_RETURN (u.context.dispatch (c));
+    case ChainContext:         return TRACE_RETURN (u.chainContext.dispatch (c));
+    case Extension:            return TRACE_RETURN (u.extension.dispatch (c));
+    case ReverseChainSingle:   return TRACE_RETURN (u.reverseChainContextSingle.dispatch (c));
+    default:                   return TRACE_RETURN (c->default_return_value ());
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c, unsigned int lookup_type) {
+    TRACE_SANITIZE (this);
+    if (!u.header.sub_format.sanitize (c))
+      return TRACE_RETURN (false);
+    switch (lookup_type) {
+    case Single:               return TRACE_RETURN (u.single.sanitize (c));
+    case Multiple:             return TRACE_RETURN (u.multiple.sanitize (c));
+    case Alternate:            return TRACE_RETURN (u.alternate.sanitize (c));
+    case Ligature:             return TRACE_RETURN (u.ligature.sanitize (c));
+    case Context:              return TRACE_RETURN (u.context.sanitize (c));
+    case ChainContext:         return TRACE_RETURN (u.chainContext.sanitize (c));
+    case Extension:            return TRACE_RETURN (u.extension.sanitize (c));
+    case ReverseChainSingle:   return TRACE_RETURN (u.reverseChainContextSingle.sanitize (c));
+    default:                   return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  struct {
+    USHORT                     sub_format;
+  } header;
+  SingleSubst                  single;
+  MultipleSubst                        multiple;
+  AlternateSubst               alternate;
+  LigatureSubst                        ligature;
+  ContextSubst                 context;
+  ChainContextSubst            chainContext;
+  ExtensionSubst               extension;
+  ReverseChainSingleSubst      reverseChainContextSingle;
+  } u;
+  public:
+  DEFINE_SIZE_UNION (2, header.sub_format);
+};
+
+
+struct SubstLookup : Lookup
+{
+  inline const SubstLookupSubTable& get_subtable (unsigned int i) const
+  { return this+CastR<OffsetArrayOf<SubstLookupSubTable> > (subTable)[i]; }
+
+  inline static bool lookup_type_is_reverse (unsigned int lookup_type)
+  { return lookup_type == SubstLookupSubTable::ReverseChainSingle; }
+
+  inline bool is_reverse (void) const
+  {
+    unsigned int type = get_type ();
+    if (unlikely (type == SubstLookupSubTable::Extension))
+      return CastR<ExtensionSubst> (get_subtable(0)).is_reverse ();
+    return lookup_type_is_reverse (type);
+  }
+
+  inline hb_closure_context_t::return_t closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+    c->set_recurse_func (dispatch_recurse_func<hb_closure_context_t>);
+    return TRACE_RETURN (dispatch (c));
+  }
+
+  inline hb_collect_glyphs_context_t::return_t collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    c->set_recurse_func (dispatch_recurse_func<hb_collect_glyphs_context_t>);
+    return TRACE_RETURN (dispatch (c));
+  }
+
+  template <typename set_t>
+  inline void add_coverage (set_t *glyphs) const
+  {
+    hb_get_coverage_context_t c;
+    const Coverage *last = NULL;
+    unsigned int count = get_subtable_count ();
+    for (unsigned int i = 0; i < count; i++) {
+      const Coverage *coverage = &get_subtable (i).dispatch (&c, get_type ());
+      if (coverage != last) {
+        coverage->add_coverage (glyphs);
+        last = coverage;
+      }
+    }
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c, const hb_set_digest_t *digest) const
+  {
+    TRACE_WOULD_APPLY (this);
+    if (unlikely (!c->len))  return TRACE_RETURN (false);
+    if (!digest->may_have (c->glyphs[0]))  return TRACE_RETURN (false);
+      return TRACE_RETURN (dispatch (c));
+  }
+
+  inline bool apply_once (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    if (!c->check_glyph_property (&c->buffer->cur(), c->lookup_props))
+      return TRACE_RETURN (false);
+    return TRACE_RETURN (dispatch (c));
+  }
+
+  static bool apply_recurse_func (hb_apply_context_t *c, unsigned int lookup_index);
+
+  inline SubstLookupSubTable& serialize_subtable (hb_serialize_context_t *c,
+                                                 unsigned int i)
+  { return CastR<OffsetArrayOf<SubstLookupSubTable> > (subTable)[i].serialize (c, this); }
+
+  inline bool serialize_single (hb_serialize_context_t *c,
+                               uint32_t lookup_props,
+                               Supplier<GlyphID> &glyphs,
+                               Supplier<GlyphID> &substitutes,
+                               unsigned int num_glyphs)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!Lookup::serialize (c, SubstLookupSubTable::Single, lookup_props, 1))) return TRACE_RETURN (false);
+    return TRACE_RETURN (serialize_subtable (c, 0).u.single.serialize (c, glyphs, substitutes, num_glyphs));
+  }
+
+  inline bool serialize_multiple (hb_serialize_context_t *c,
+                                 uint32_t lookup_props,
+                                 Supplier<GlyphID> &glyphs,
+                                 Supplier<unsigned int> &substitute_len_list,
+                                 unsigned int num_glyphs,
+                                 Supplier<GlyphID> &substitute_glyphs_list)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!Lookup::serialize (c, SubstLookupSubTable::Multiple, lookup_props, 1))) return TRACE_RETURN (false);
+    return TRACE_RETURN (serialize_subtable (c, 0).u.multiple.serialize (c, glyphs, substitute_len_list, num_glyphs,
+                                                                        substitute_glyphs_list));
+  }
+
+  inline bool serialize_alternate (hb_serialize_context_t *c,
+                                  uint32_t lookup_props,
+                                  Supplier<GlyphID> &glyphs,
+                                  Supplier<unsigned int> &alternate_len_list,
+                                  unsigned int num_glyphs,
+                                  Supplier<GlyphID> &alternate_glyphs_list)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!Lookup::serialize (c, SubstLookupSubTable::Alternate, lookup_props, 1))) return TRACE_RETURN (false);
+    return TRACE_RETURN (serialize_subtable (c, 0).u.alternate.serialize (c, glyphs, alternate_len_list, num_glyphs,
+                                                                         alternate_glyphs_list));
+  }
+
+  inline bool serialize_ligature (hb_serialize_context_t *c,
+                                 uint32_t lookup_props,
+                                 Supplier<GlyphID> &first_glyphs,
+                                 Supplier<unsigned int> &ligature_per_first_glyph_count_list,
+                                 unsigned int num_first_glyphs,
+                                 Supplier<GlyphID> &ligatures_list,
+                                 Supplier<unsigned int> &component_count_list,
+                                 Supplier<GlyphID> &component_list /* Starting from second for each ligature */)
+  {
+    TRACE_SERIALIZE (this);
+    if (unlikely (!Lookup::serialize (c, SubstLookupSubTable::Ligature, lookup_props, 1))) return TRACE_RETURN (false);
+    return TRACE_RETURN (serialize_subtable (c, 0).u.ligature.serialize (c, first_glyphs, ligature_per_first_glyph_count_list, num_first_glyphs,
+                                                                        ligatures_list, component_count_list, component_list));
+  }
+
+  template <typename context_t>
+  static inline typename context_t::return_t dispatch_recurse_func (context_t *c, unsigned int lookup_index);
+
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    TRACE_DISPATCH (this);
+    unsigned int lookup_type = get_type ();
+    unsigned int count = get_subtable_count ();
+    for (unsigned int i = 0; i < count; i++) {
+      typename context_t::return_t r = get_subtable (i).dispatch (c, lookup_type);
+      if (c->stop_sublookup_iteration (r))
+        return TRACE_RETURN (r);
+    }
+    return TRACE_RETURN (c->default_return_value ());
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c)
+  {
+    TRACE_SANITIZE (this);
+    if (unlikely (!Lookup::sanitize (c))) return TRACE_RETURN (false);
+    OffsetArrayOf<SubstLookupSubTable> &list = CastR<OffsetArrayOf<SubstLookupSubTable> > (subTable);
+    if (unlikely (!list.sanitize (c, this, get_type ()))) return TRACE_RETURN (false);
+
+    if (unlikely (get_type () == SubstLookupSubTable::Extension))
+    {
+      /* The spec says all subtables of an Extension lookup should
+       * have the same type.  This is specially important if one has
+       * a reverse type! */
+      unsigned int type = get_subtable (0).u.extension.get_type ();
+      unsigned int count = get_subtable_count ();
+      for (unsigned int i = 1; i < count; i++)
+        if (get_subtable (i).u.extension.get_type () != type)
+         return TRACE_RETURN (false);
+    }
+    return TRACE_RETURN (true);
+  }
+};
+
+typedef OffsetListOf<SubstLookup> SubstLookupList;
+
+/*
+ * GSUB -- The Glyph Substitution Table
+ */
+
+struct GSUB : GSUBGPOS
+{
+  static const hb_tag_t tableTag       = HB_OT_TAG_GSUB;
+
+  inline const SubstLookup& get_lookup (unsigned int i) const
+  { return CastR<SubstLookup> (GSUBGPOS::get_lookup (i)); }
+
+  static inline void substitute_start (hb_font_t *font, hb_buffer_t *buffer);
+  static inline void substitute_finish (hb_font_t *font, hb_buffer_t *buffer);
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (unlikely (!GSUBGPOS::sanitize (c))) return TRACE_RETURN (false);
+    OffsetTo<SubstLookupList> &list = CastR<OffsetTo<SubstLookupList> > (lookupList);
+    return TRACE_RETURN (list.sanitize (c, this));
+  }
+  public:
+  DEFINE_SIZE_STATIC (10);
+};
+
+
+void
+GSUB::substitute_start (hb_font_t *font, hb_buffer_t *buffer)
+{
+  _hb_buffer_assert_gsubgpos_vars (buffer);
+
+  const GDEF &gdef = *hb_ot_layout_from_face (font->face)->gdef;
+  unsigned int count = buffer->len;
+  for (unsigned int i = 0; i < count; i++)
+  {
+    _hb_glyph_info_set_glyph_props (&buffer->info[i], gdef.get_glyph_props (buffer->info[i].codepoint));
+    _hb_glyph_info_clear_lig_props (&buffer->info[i]);
+    buffer->info[i].syllable() = 0;
+  }
+}
+
+void
+GSUB::substitute_finish (hb_font_t *font HB_UNUSED, hb_buffer_t *buffer HB_UNUSED)
+{
+}
+
+
+/* Out-of-class implementation for methods recursing */
+
+/*static*/ inline bool ExtensionSubst::is_reverse (void) const
+{
+  unsigned int type = get_type ();
+  if (unlikely (type == SubstLookupSubTable::Extension))
+    return CastR<ExtensionSubst> (get_subtable<SubstLookupSubTable>()).is_reverse ();
+  return SubstLookup::lookup_type_is_reverse (type);
+}
+
+template <typename context_t>
+/*static*/ inline typename context_t::return_t SubstLookup::dispatch_recurse_func (context_t *c, unsigned int lookup_index)
+{
+  const GSUB &gsub = *(hb_ot_layout_from_face (c->face)->gsub);
+  const SubstLookup &l = gsub.get_lookup (lookup_index);
+  return l.dispatch (c);
+}
+
+/*static*/ inline bool SubstLookup::apply_recurse_func (hb_apply_context_t *c, unsigned int lookup_index)
+{
+  const GSUB &gsub = *(hb_ot_layout_from_face (c->face)->gsub);
+  const SubstLookup &l = gsub.get_lookup (lookup_index);
+  unsigned int saved_lookup_props = c->lookup_props;
+  c->set_lookup (l);
+  bool ret = l.apply_once (c);
+  c->lookup_props = saved_lookup_props;
+  return ret;
+}
+
+
+} /* namespace OT */
+
+
+#endif /* HB_OT_LAYOUT_GSUB_TABLE_HH */
diff --git a/src/hb-ot-layout-gsubgpos-private.hh b/src/hb-ot-layout-gsubgpos-private.hh
new file mode 100644 (file)
index 0000000..546ff4b
--- /dev/null
@@ -0,0 +1,2298 @@
+/*
+ * Copyright © 2007,2008,2009,2010  Red Hat, Inc.
+ * Copyright © 2010,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_LAYOUT_GSUBGPOS_PRIVATE_HH
+#define HB_OT_LAYOUT_GSUBGPOS_PRIVATE_HH
+
+#include "hb-buffer-private.hh"
+#include "hb-ot-layout-gdef-table.hh"
+#include "hb-set-private.hh"
+
+
+namespace OT {
+
+
+
+#define TRACE_DISPATCH(this) \
+       hb_auto_trace_t<context_t::max_debug_depth, typename context_t::return_t> trace \
+       (&c->debug_depth, c->get_name (), this, HB_FUNC, \
+        "");
+
+#ifndef HB_DEBUG_CLOSURE
+#define HB_DEBUG_CLOSURE (HB_DEBUG+0)
+#endif
+
+#define TRACE_CLOSURE(this) \
+       hb_auto_trace_t<HB_DEBUG_CLOSURE, hb_void_t> trace \
+       (&c->debug_depth, c->get_name (), this, HB_FUNC, \
+        "");
+
+struct hb_closure_context_t
+{
+  inline const char *get_name (void) { return "CLOSURE"; }
+  static const unsigned int max_debug_depth = HB_DEBUG_CLOSURE;
+  typedef hb_void_t return_t;
+  typedef return_t (*recurse_func_t) (hb_closure_context_t *c, unsigned int lookup_index);
+  template <typename T>
+  inline return_t dispatch (const T &obj) { obj.closure (this); return HB_VOID; }
+  static return_t default_return_value (void) { return HB_VOID; }
+  bool stop_sublookup_iteration (return_t r HB_UNUSED) const { return false; }
+  return_t recurse (unsigned int lookup_index)
+  {
+    if (unlikely (nesting_level_left == 0 || !recurse_func))
+      return default_return_value ();
+
+    nesting_level_left--;
+    recurse_func (this, lookup_index);
+    nesting_level_left++;
+    return HB_VOID;
+  }
+
+  hb_face_t *face;
+  hb_set_t *glyphs;
+  recurse_func_t recurse_func;
+  unsigned int nesting_level_left;
+  unsigned int debug_depth;
+
+  hb_closure_context_t (hb_face_t *face_,
+                       hb_set_t *glyphs_,
+                       unsigned int nesting_level_left_ = MAX_NESTING_LEVEL) :
+                         face (face_),
+                         glyphs (glyphs_),
+                         recurse_func (NULL),
+                         nesting_level_left (nesting_level_left_),
+                         debug_depth (0) {}
+
+  void set_recurse_func (recurse_func_t func) { recurse_func = func; }
+};
+
+
+
+#ifndef HB_DEBUG_WOULD_APPLY
+#define HB_DEBUG_WOULD_APPLY (HB_DEBUG+0)
+#endif
+
+#define TRACE_WOULD_APPLY(this) \
+       hb_auto_trace_t<HB_DEBUG_WOULD_APPLY, bool> trace \
+       (&c->debug_depth, c->get_name (), this, HB_FUNC, \
+        "%d glyphs", c->len);
+
+struct hb_would_apply_context_t
+{
+  inline const char *get_name (void) { return "WOULD_APPLY"; }
+  static const unsigned int max_debug_depth = HB_DEBUG_WOULD_APPLY;
+  typedef bool return_t;
+  template <typename T>
+  inline return_t dispatch (const T &obj) { return obj.would_apply (this); }
+  static return_t default_return_value (void) { return false; }
+  bool stop_sublookup_iteration (return_t r) const { return r; }
+
+  hb_face_t *face;
+  const hb_codepoint_t *glyphs;
+  unsigned int len;
+  bool zero_context;
+  unsigned int debug_depth;
+
+  hb_would_apply_context_t (hb_face_t *face_,
+                           const hb_codepoint_t *glyphs_,
+                           unsigned int len_,
+                           bool zero_context_) :
+                             face (face_),
+                             glyphs (glyphs_),
+                             len (len_),
+                             zero_context (zero_context_),
+                             debug_depth (0) {}
+};
+
+
+
+#ifndef HB_DEBUG_COLLECT_GLYPHS
+#define HB_DEBUG_COLLECT_GLYPHS (HB_DEBUG+0)
+#endif
+
+#define TRACE_COLLECT_GLYPHS(this) \
+       hb_auto_trace_t<HB_DEBUG_COLLECT_GLYPHS, hb_void_t> trace \
+       (&c->debug_depth, c->get_name (), this, HB_FUNC, \
+        "");
+
+struct hb_collect_glyphs_context_t
+{
+  inline const char *get_name (void) { return "COLLECT_GLYPHS"; }
+  static const unsigned int max_debug_depth = HB_DEBUG_COLLECT_GLYPHS;
+  typedef hb_void_t return_t;
+  typedef return_t (*recurse_func_t) (hb_collect_glyphs_context_t *c, unsigned int lookup_index);
+  template <typename T>
+  inline return_t dispatch (const T &obj) { obj.collect_glyphs (this); return HB_VOID; }
+  static return_t default_return_value (void) { return HB_VOID; }
+  bool stop_sublookup_iteration (return_t r HB_UNUSED) const { return false; }
+  return_t recurse (unsigned int lookup_index)
+  {
+    if (unlikely (nesting_level_left == 0 || !recurse_func))
+      return default_return_value ();
+
+    /* Note that GPOS sets recurse_func to NULL already, so it doesn't get
+     * past the previous check.  For GSUB, we only want to collect the output
+     * glyphs in the recursion.  If output is not requested, we can go home now.
+     *
+     * Note further, that the above is not exactly correct.  A recursed lookup
+     * is allowed to match input that is not matched in the context, but that's
+     * not how most fonts are built.  It's possible to relax that and recurse
+     * with all sets here if it proves to be an issue.
+     */
+
+    if (output == hb_set_get_empty ())
+      return HB_VOID;
+
+    hb_set_t *old_before = before;
+    hb_set_t *old_input  = input;
+    hb_set_t *old_after  = after;
+    before = input = after = hb_set_get_empty ();
+
+    nesting_level_left--;
+    recurse_func (this, lookup_index);
+    nesting_level_left++;
+
+    before = old_before;
+    input  = old_input;
+    after  = old_after;
+
+    return HB_VOID;
+  }
+
+  hb_face_t *face;
+  hb_set_t *before;
+  hb_set_t *input;
+  hb_set_t *after;
+  hb_set_t *output;
+  recurse_func_t recurse_func;
+  unsigned int nesting_level_left;
+  unsigned int debug_depth;
+
+  hb_collect_glyphs_context_t (hb_face_t *face_,
+                              hb_set_t  *glyphs_before, /* OUT. May be NULL */
+                              hb_set_t  *glyphs_input,  /* OUT. May be NULL */
+                              hb_set_t  *glyphs_after,  /* OUT. May be NULL */
+                              hb_set_t  *glyphs_output, /* OUT. May be NULL */
+                              unsigned int nesting_level_left_ = MAX_NESTING_LEVEL) :
+                             face (face_),
+                             before (glyphs_before ? glyphs_before : hb_set_get_empty ()),
+                             input  (glyphs_input  ? glyphs_input  : hb_set_get_empty ()),
+                             after  (glyphs_after  ? glyphs_after  : hb_set_get_empty ()),
+                             output (glyphs_output ? glyphs_output : hb_set_get_empty ()),
+                             recurse_func (NULL),
+                             nesting_level_left (nesting_level_left_),
+                             debug_depth (0) {}
+
+  void set_recurse_func (recurse_func_t func) { recurse_func = func; }
+};
+
+
+
+struct hb_get_coverage_context_t
+{
+  inline const char *get_name (void) { return "GET_COVERAGE"; }
+  static const unsigned int max_debug_depth = 0;
+  typedef const Coverage &return_t;
+  template <typename T>
+  inline return_t dispatch (const T &obj) { return obj.get_coverage (); }
+  static return_t default_return_value (void) { return Null(Coverage); }
+
+  hb_get_coverage_context_t (void) :
+                           debug_depth (0) {}
+
+  unsigned int debug_depth;
+};
+
+
+
+#ifndef HB_DEBUG_APPLY
+#define HB_DEBUG_APPLY (HB_DEBUG+0)
+#endif
+
+#define TRACE_APPLY(this) \
+       hb_auto_trace_t<HB_DEBUG_APPLY, bool> trace \
+       (&c->debug_depth, c->get_name (), this, HB_FUNC, \
+        "idx %d codepoint %u", c->buffer->idx, c->buffer->cur().codepoint);
+
+struct hb_apply_context_t
+{
+  inline const char *get_name (void) { return "APPLY"; }
+  static const unsigned int max_debug_depth = HB_DEBUG_APPLY;
+  typedef bool return_t;
+  typedef return_t (*recurse_func_t) (hb_apply_context_t *c, unsigned int lookup_index);
+  template <typename T>
+  inline return_t dispatch (const T &obj) { return obj.apply (this); }
+  static return_t default_return_value (void) { return false; }
+  bool stop_sublookup_iteration (return_t r) const { return r; }
+  return_t recurse (unsigned int lookup_index)
+  {
+    if (unlikely (nesting_level_left == 0 || !recurse_func))
+      return default_return_value ();
+
+    nesting_level_left--;
+    bool ret = recurse_func (this, lookup_index);
+    nesting_level_left++;
+    return ret;
+  }
+
+  unsigned int table_index; /* GSUB/GPOS */
+  hb_font_t *font;
+  hb_face_t *face;
+  hb_buffer_t *buffer;
+  hb_direction_t direction;
+  hb_mask_t lookup_mask;
+  bool auto_zwj;
+  recurse_func_t recurse_func;
+  unsigned int nesting_level_left;
+  unsigned int lookup_props;
+  const GDEF &gdef;
+  bool has_glyph_classes;
+  unsigned int debug_depth;
+
+
+  hb_apply_context_t (unsigned int table_index_,
+                     hb_font_t *font_,
+                     hb_buffer_t *buffer_) :
+                       table_index (table_index_),
+                       font (font_), face (font->face), buffer (buffer_),
+                       direction (buffer_->props.direction),
+                       lookup_mask (1),
+                       auto_zwj (true),
+                       recurse_func (NULL),
+                       nesting_level_left (MAX_NESTING_LEVEL),
+                       lookup_props (0),
+                       gdef (*hb_ot_layout_from_face (face)->gdef),
+                       has_glyph_classes (gdef.has_glyph_classes ()),
+                       debug_depth (0) {}
+
+  inline void set_lookup_mask (hb_mask_t mask) { lookup_mask = mask; }
+  inline void set_auto_zwj (bool auto_zwj_) { auto_zwj = auto_zwj_; }
+  inline void set_recurse_func (recurse_func_t func) { recurse_func = func; }
+  inline void set_lookup_props (unsigned int lookup_props_) { lookup_props = lookup_props_; }
+  inline void set_lookup (const Lookup &l) { lookup_props = l.get_props (); }
+
+  struct matcher_t
+  {
+    inline matcher_t (void) :
+            lookup_props (0),
+            ignore_zwnj (false),
+            ignore_zwj (false),
+            mask (-1),
+#define arg1(arg) (arg) /* Remove the macro to see why it's needed! */
+            syllable arg1(0),
+#undef arg1
+            match_func (NULL),
+            match_data (NULL) {};
+
+    typedef bool (*match_func_t) (hb_codepoint_t glyph_id, const USHORT &value, const void *data);
+
+    inline void set_ignore_zwnj (bool ignore_zwnj_) { ignore_zwnj = ignore_zwnj_; }
+    inline void set_ignore_zwj (bool ignore_zwj_) { ignore_zwj = ignore_zwj_; }
+    inline void set_lookup_props (unsigned int lookup_props_) { lookup_props = lookup_props_; }
+    inline void set_mask (hb_mask_t mask_) { mask = mask_; }
+    inline void set_syllable (uint8_t syllable_)  { syllable = syllable_; }
+    inline void set_match_func (match_func_t match_func_,
+                               const void *match_data_)
+    { match_func = match_func_; match_data = match_data_; }
+
+    enum may_match_t {
+      MATCH_NO,
+      MATCH_YES,
+      MATCH_MAYBE
+    };
+
+    inline may_match_t may_match (const hb_glyph_info_t &info,
+                                 const USHORT          *glyph_data) const
+    {
+      if (!(info.mask & mask) ||
+         (syllable && syllable != info.syllable ()))
+       return MATCH_NO;
+
+      if (match_func)
+        return match_func (info.codepoint, *glyph_data, match_data) ? MATCH_YES : MATCH_NO;
+
+      return MATCH_MAYBE;
+    }
+
+    enum may_skip_t {
+      SKIP_NO,
+      SKIP_YES,
+      SKIP_MAYBE
+    };
+
+    inline may_skip_t
+    may_skip (const hb_apply_context_t *c,
+             const hb_glyph_info_t    &info) const
+    {
+      if (!c->check_glyph_property (&info, lookup_props))
+       return SKIP_YES;
+
+      if (unlikely (_hb_glyph_info_is_default_ignorable (&info) &&
+                   (ignore_zwnj || !_hb_glyph_info_is_zwnj (&info)) &&
+                   (ignore_zwj || !_hb_glyph_info_is_zwj (&info)) &&
+                   !_hb_glyph_info_ligated (&info)))
+       return SKIP_MAYBE;
+
+      return SKIP_NO;
+    }
+
+    protected:
+    unsigned int lookup_props;
+    bool ignore_zwnj;
+    bool ignore_zwj;
+    hb_mask_t mask;
+    uint8_t syllable;
+    match_func_t match_func;
+    const void *match_data;
+  };
+
+  struct skipping_forward_iterator_t
+  {
+    inline skipping_forward_iterator_t (hb_apply_context_t *c_,
+                                       unsigned int start_index_,
+                                       unsigned int num_items_,
+                                       bool context_match = false) :
+                                        idx (start_index_),
+                                        c (c_),
+                                        match_glyph_data (NULL),
+                                        num_items (num_items_),
+                                        end (c->buffer->len)
+    {
+      matcher.set_lookup_props (c->lookup_props);
+      /* Ignore ZWNJ if we are matching GSUB context, or matching GPOS. */
+      matcher.set_ignore_zwnj (context_match || c->table_index == 1);
+      /* Ignore ZWJ if we are matching GSUB context, or matching GPOS, or if asked to. */
+      matcher.set_ignore_zwj (context_match || c->table_index == 1 || c->auto_zwj);
+      if (!context_match)
+       matcher.set_mask (c->lookup_mask);
+      matcher.set_syllable (start_index_ == c->buffer->idx ? c->buffer->cur().syllable () : 0);
+    }
+    inline void set_lookup_props (unsigned int lookup_props) { matcher.set_lookup_props (lookup_props); }
+    inline void set_syllable (unsigned int syllable) { matcher.set_syllable (syllable); }
+    inline void set_match_func (matcher_t::match_func_t match_func,
+                               const void *match_data,
+                               const USHORT glyph_data[])
+    {
+      matcher.set_match_func (match_func, match_data);
+      match_glyph_data = glyph_data;
+    }
+
+    inline bool has_no_chance (void) const { return unlikely (num_items && idx + num_items >= end); }
+    inline void reject (void) { num_items++; match_glyph_data--; }
+    inline bool next (void)
+    {
+      assert (num_items > 0);
+      while (!has_no_chance ())
+      {
+       idx++;
+       const hb_glyph_info_t &info = c->buffer->info[idx];
+
+       matcher_t::may_skip_t skip = matcher.may_skip (c, info);
+       if (unlikely (skip == matcher_t::SKIP_YES))
+         continue;
+
+       matcher_t::may_match_t match = matcher.may_match (info, match_glyph_data);
+       if (match == matcher_t::MATCH_YES ||
+           (match == matcher_t::MATCH_MAYBE &&
+            skip == matcher_t::SKIP_NO))
+       {
+         num_items--;
+         match_glyph_data++;
+         return true;
+       }
+
+       if (skip == matcher_t::SKIP_NO)
+         return false;
+      }
+      return false;
+    }
+
+    unsigned int idx;
+    protected:
+    hb_apply_context_t *c;
+    matcher_t matcher;
+    const USHORT *match_glyph_data;
+
+    unsigned int num_items;
+    unsigned int end;
+  };
+
+  struct skipping_backward_iterator_t
+  {
+    inline skipping_backward_iterator_t (hb_apply_context_t *c_,
+                                        unsigned int start_index_,
+                                        unsigned int num_items_,
+                                        bool context_match = false) :
+                                         idx (start_index_),
+                                         c (c_),
+                                         match_glyph_data (NULL),
+                                         num_items (num_items_)
+    {
+      matcher.set_lookup_props (c->lookup_props);
+      /* Ignore ZWNJ if we are matching GSUB context, or matching GPOS. */
+      matcher.set_ignore_zwnj (context_match || c->table_index == 1);
+      /* Ignore ZWJ if we are matching GSUB context, or matching GPOS, or if asked to. */
+      matcher.set_ignore_zwj (context_match || c->table_index == 1 || c->auto_zwj);
+      if (!context_match)
+       matcher.set_mask (c->lookup_mask);
+      matcher.set_syllable (start_index_ == c->buffer->idx ? c->buffer->cur().syllable () : 0);
+    }
+    inline void set_lookup_props (unsigned int lookup_props) { matcher.set_lookup_props (lookup_props); }
+    inline void set_syllable (unsigned int syllable) { matcher.set_syllable (syllable); }
+    inline void set_match_func (matcher_t::match_func_t match_func,
+                               const void *match_data,
+                               const USHORT glyph_data[])
+    {
+      matcher.set_match_func (match_func, match_data);
+      match_glyph_data = glyph_data;
+    }
+
+    inline bool has_no_chance (void) const { return unlikely (idx < num_items); }
+    inline void reject (void) { num_items++; }
+    inline bool prev (void)
+    {
+      assert (num_items > 0);
+      while (!has_no_chance ())
+      {
+       idx--;
+       const hb_glyph_info_t &info = c->buffer->out_info[idx];
+
+       matcher_t::may_skip_t skip = matcher.may_skip (c, info);
+       if (unlikely (skip == matcher_t::SKIP_YES))
+         continue;
+
+       matcher_t::may_match_t match = matcher.may_match (info, match_glyph_data);
+       if (match == matcher_t::MATCH_YES ||
+           (match == matcher_t::MATCH_MAYBE &&
+            skip == matcher_t::SKIP_NO))
+       {
+         num_items--;
+         match_glyph_data++;
+         return true;
+       }
+
+       if (skip == matcher_t::SKIP_NO)
+         return false;
+      }
+      return false;
+    }
+
+    unsigned int idx;
+    protected:
+    hb_apply_context_t *c;
+    matcher_t matcher;
+    const USHORT *match_glyph_data;
+
+    unsigned int num_items;
+  };
+
+  inline bool
+  match_properties_mark (hb_codepoint_t  glyph,
+                        unsigned int    glyph_props,
+                        unsigned int    lookup_props) const
+  {
+    /* If using mark filtering sets, the high short of
+     * lookup_props has the set index.
+     */
+    if (lookup_props & LookupFlag::UseMarkFilteringSet)
+      return gdef.mark_set_covers (lookup_props >> 16, glyph);
+
+    /* The second byte of lookup_props has the meaning
+     * "ignore marks of attachment type different than
+     * the attachment type specified."
+     */
+    if (lookup_props & LookupFlag::MarkAttachmentType)
+      return (lookup_props & LookupFlag::MarkAttachmentType) == (glyph_props & LookupFlag::MarkAttachmentType);
+
+    return true;
+  }
+
+  inline bool
+  check_glyph_property (const hb_glyph_info_t *info,
+                       unsigned int  lookup_props) const
+  {
+    hb_codepoint_t glyph = info->codepoint;
+    unsigned int glyph_props = _hb_glyph_info_get_glyph_props (info);
+
+    /* Not covered, if, for example, glyph class is ligature and
+     * lookup_props includes LookupFlags::IgnoreLigatures
+     */
+    if (glyph_props & lookup_props & LookupFlag::IgnoreFlags)
+      return false;
+
+    if (unlikely (glyph_props & HB_OT_LAYOUT_GLYPH_PROPS_MARK))
+      return match_properties_mark (glyph, glyph_props, lookup_props);
+
+    return true;
+  }
+
+  inline void _set_glyph_props (hb_codepoint_t glyph_index,
+                         unsigned int class_guess = 0,
+                         bool ligature = false,
+                         bool component = false) const
+  {
+    unsigned int add_in = _hb_glyph_info_get_glyph_props (&buffer->cur()) &
+                         HB_OT_LAYOUT_GLYPH_PROPS_PRESERVE;
+    add_in |= HB_OT_LAYOUT_GLYPH_PROPS_SUBSTITUTED;
+    if (ligature)
+    {
+      add_in |= HB_OT_LAYOUT_GLYPH_PROPS_LIGATED;
+      /* In the only place that the MULTIPLIED bit is used, Uniscribe
+       * seems to only care about the "last" transformation between
+       * Ligature and Multiple substitions.  Ie. if you ligate, expand,
+       * and ligate again, it forgives the multiplication and acts as
+       * if only ligation happened.  As such, clear MULTIPLIED bit.
+       */
+      add_in &= ~HB_OT_LAYOUT_GLYPH_PROPS_MULTIPLIED;
+    }
+    if (component)
+      add_in |= HB_OT_LAYOUT_GLYPH_PROPS_MULTIPLIED;
+    if (likely (has_glyph_classes))
+      _hb_glyph_info_set_glyph_props (&buffer->cur(), add_in | gdef.get_glyph_props (glyph_index));
+    else if (class_guess)
+      _hb_glyph_info_set_glyph_props (&buffer->cur(), add_in | class_guess);
+  }
+
+  inline void replace_glyph (hb_codepoint_t glyph_index) const
+  {
+    _set_glyph_props (glyph_index);
+    buffer->replace_glyph (glyph_index);
+  }
+  inline void replace_glyph_inplace (hb_codepoint_t glyph_index) const
+  {
+    _set_glyph_props (glyph_index);
+    buffer->cur().codepoint = glyph_index;
+  }
+  inline void replace_glyph_with_ligature (hb_codepoint_t glyph_index,
+                                          unsigned int class_guess) const
+  {
+    _set_glyph_props (glyph_index, class_guess, true);
+    buffer->replace_glyph (glyph_index);
+  }
+  inline void output_glyph_for_component (hb_codepoint_t glyph_index,
+                                         unsigned int class_guess) const
+  {
+    _set_glyph_props (glyph_index, class_guess, false, true);
+    buffer->output_glyph (glyph_index);
+  }
+};
+
+
+
+typedef bool (*intersects_func_t) (hb_set_t *glyphs, const USHORT &value, const void *data);
+typedef void (*collect_glyphs_func_t) (hb_set_t *glyphs, const USHORT &value, const void *data);
+typedef bool (*match_func_t) (hb_codepoint_t glyph_id, const USHORT &value, const void *data);
+
+struct ContextClosureFuncs
+{
+  intersects_func_t intersects;
+};
+struct ContextCollectGlyphsFuncs
+{
+  collect_glyphs_func_t collect;
+};
+struct ContextApplyFuncs
+{
+  match_func_t match;
+};
+
+
+static inline bool intersects_glyph (hb_set_t *glyphs, const USHORT &value, const void *data HB_UNUSED)
+{
+  return glyphs->has (value);
+}
+static inline bool intersects_class (hb_set_t *glyphs, const USHORT &value, const void *data)
+{
+  const ClassDef &class_def = *reinterpret_cast<const ClassDef *>(data);
+  return class_def.intersects_class (glyphs, value);
+}
+static inline bool intersects_coverage (hb_set_t *glyphs, const USHORT &value, const void *data)
+{
+  const OffsetTo<Coverage> &coverage = (const OffsetTo<Coverage>&)value;
+  return (data+coverage).intersects (glyphs);
+}
+
+static inline bool intersects_array (hb_closure_context_t *c,
+                                    unsigned int count,
+                                    const USHORT values[],
+                                    intersects_func_t intersects_func,
+                                    const void *intersects_data)
+{
+  for (unsigned int i = 0; i < count; i++)
+    if (likely (!intersects_func (c->glyphs, values[i], intersects_data)))
+      return false;
+  return true;
+}
+
+
+static inline void collect_glyph (hb_set_t *glyphs, const USHORT &value, const void *data HB_UNUSED)
+{
+  glyphs->add (value);
+}
+static inline void collect_class (hb_set_t *glyphs, const USHORT &value, const void *data)
+{
+  const ClassDef &class_def = *reinterpret_cast<const ClassDef *>(data);
+  class_def.add_class (glyphs, value);
+}
+static inline void collect_coverage (hb_set_t *glyphs, const USHORT &value, const void *data)
+{
+  const OffsetTo<Coverage> &coverage = (const OffsetTo<Coverage>&)value;
+  (data+coverage).add_coverage (glyphs);
+}
+static inline void collect_array (hb_collect_glyphs_context_t *c HB_UNUSED,
+                                 hb_set_t *glyphs,
+                                 unsigned int count,
+                                 const USHORT values[],
+                                 collect_glyphs_func_t collect_func,
+                                 const void *collect_data)
+{
+  for (unsigned int i = 0; i < count; i++)
+    collect_func (glyphs, values[i], collect_data);
+}
+
+
+static inline bool match_glyph (hb_codepoint_t glyph_id, const USHORT &value, const void *data HB_UNUSED)
+{
+  return glyph_id == value;
+}
+static inline bool match_class (hb_codepoint_t glyph_id, const USHORT &value, const void *data)
+{
+  const ClassDef &class_def = *reinterpret_cast<const ClassDef *>(data);
+  return class_def.get_class (glyph_id) == value;
+}
+static inline bool match_coverage (hb_codepoint_t glyph_id, const USHORT &value, const void *data)
+{
+  const OffsetTo<Coverage> &coverage = (const OffsetTo<Coverage>&)value;
+  return (data+coverage).get_coverage (glyph_id) != NOT_COVERED;
+}
+
+static inline bool would_match_input (hb_would_apply_context_t *c,
+                                     unsigned int count, /* Including the first glyph (not matched) */
+                                     const USHORT input[], /* Array of input values--start with second glyph */
+                                     match_func_t match_func,
+                                     const void *match_data)
+{
+  if (count != c->len)
+    return false;
+
+  for (unsigned int i = 1; i < count; i++)
+    if (likely (!match_func (c->glyphs[i], input[i - 1], match_data)))
+      return false;
+
+  return true;
+}
+static inline bool match_input (hb_apply_context_t *c,
+                               unsigned int count, /* Including the first glyph (not matched) */
+                               const USHORT input[], /* Array of input values--start with second glyph */
+                               match_func_t match_func,
+                               const void *match_data,
+                               unsigned int *end_offset,
+                               unsigned int match_positions[MAX_CONTEXT_LENGTH],
+                               bool *p_is_mark_ligature = NULL,
+                               unsigned int *p_total_component_count = NULL)
+{
+  TRACE_APPLY (NULL);
+
+  if (unlikely (count > MAX_CONTEXT_LENGTH)) TRACE_RETURN (false);
+
+  hb_buffer_t *buffer = c->buffer;
+
+  hb_apply_context_t::skipping_forward_iterator_t skippy_iter (c, buffer->idx, count - 1);
+  skippy_iter.set_match_func (match_func, match_data, input);
+  if (skippy_iter.has_no_chance ()) return TRACE_RETURN (false);
+
+  /*
+   * This is perhaps the trickiest part of OpenType...  Remarks:
+   *
+   * - If all components of the ligature were marks, we call this a mark ligature.
+   *
+   * - If there is no GDEF, and the ligature is NOT a mark ligature, we categorize
+   *   it as a ligature glyph.
+   *
+   * - Ligatures cannot be formed across glyphs attached to different components
+   *   of previous ligatures.  Eg. the sequence is LAM,SHADDA,LAM,FATHA,HEH, and
+   *   LAM,LAM,HEH form a ligature, leaving SHADDA,FATHA next to eachother.
+   *   However, it would be wrong to ligate that SHADDA,FATHA sequence.o
+   *   There is an exception to this: If a ligature tries ligating with marks that
+   *   belong to it itself, go ahead, assuming that the font designer knows what
+   *   they are doing (otherwise it can break Indic stuff when a matra wants to
+   *   ligate with a conjunct...)
+   */
+
+  bool is_mark_ligature = _hb_glyph_info_is_mark (&buffer->cur());
+
+  unsigned int total_component_count = 0;
+  total_component_count += _hb_glyph_info_get_lig_num_comps (&buffer->cur());
+
+  unsigned int first_lig_id = _hb_glyph_info_get_lig_id (&buffer->cur());
+  unsigned int first_lig_comp = _hb_glyph_info_get_lig_comp (&buffer->cur());
+
+  match_positions[0] = buffer->idx;
+  for (unsigned int i = 1; i < count; i++)
+  {
+    if (!skippy_iter.next ()) return TRACE_RETURN (false);
+
+    match_positions[i] = skippy_iter.idx;
+
+    unsigned int this_lig_id = _hb_glyph_info_get_lig_id (&buffer->info[skippy_iter.idx]);
+    unsigned int this_lig_comp = _hb_glyph_info_get_lig_comp (&buffer->info[skippy_iter.idx]);
+
+    if (first_lig_id && first_lig_comp) {
+      /* If first component was attached to a previous ligature component,
+       * all subsequent components should be attached to the same ligature
+       * component, otherwise we shouldn't ligate them. */
+      if (first_lig_id != this_lig_id || first_lig_comp != this_lig_comp)
+       return TRACE_RETURN (false);
+    } else {
+      /* If first component was NOT attached to a previous ligature component,
+       * all subsequent components should also NOT be attached to any ligature
+       * component, unless they are attached to the first component itself! */
+      if (this_lig_id && this_lig_comp && (this_lig_id != first_lig_id))
+       return TRACE_RETURN (false);
+    }
+
+    is_mark_ligature = is_mark_ligature && _hb_glyph_info_is_mark (&buffer->info[skippy_iter.idx]);
+    total_component_count += _hb_glyph_info_get_lig_num_comps (&buffer->info[skippy_iter.idx]);
+  }
+
+  *end_offset = skippy_iter.idx - buffer->idx + 1;
+
+  if (p_is_mark_ligature)
+    *p_is_mark_ligature = is_mark_ligature;
+
+  if (p_total_component_count)
+    *p_total_component_count = total_component_count;
+
+  return TRACE_RETURN (true);
+}
+static inline void ligate_input (hb_apply_context_t *c,
+                                unsigned int count, /* Including the first glyph */
+                                unsigned int match_positions[MAX_CONTEXT_LENGTH], /* Including the first glyph */
+                                unsigned int match_length,
+                                hb_codepoint_t lig_glyph,
+                                bool is_mark_ligature,
+                                unsigned int total_component_count)
+{
+  TRACE_APPLY (NULL);
+
+  hb_buffer_t *buffer = c->buffer;
+
+  buffer->merge_clusters (buffer->idx, buffer->idx + match_length);
+
+  /*
+   * - If it *is* a mark ligature, we don't allocate a new ligature id, and leave
+   *   the ligature to keep its old ligature id.  This will allow it to attach to
+   *   a base ligature in GPOS.  Eg. if the sequence is: LAM,LAM,SHADDA,FATHA,HEH,
+   *   and LAM,LAM,HEH for a ligature, they will leave SHADDA and FATHA wit a
+   *   ligature id and component value of 2.  Then if SHADDA,FATHA form a ligature
+   *   later, we don't want them to lose their ligature id/component, otherwise
+   *   GPOS will fail to correctly position the mark ligature on top of the
+   *   LAM,LAM,HEH ligature.  See:
+   *     https://bugzilla.gnome.org/show_bug.cgi?id=676343
+   *
+   * - If a ligature is formed of components that some of which are also ligatures
+   *   themselves, and those ligature components had marks attached to *their*
+   *   components, we have to attach the marks to the new ligature component
+   *   positions!  Now *that*'s tricky!  And these marks may be following the
+   *   last component of the whole sequence, so we should loop forward looking
+   *   for them and update them.
+   *
+   *   Eg. the sequence is LAM,LAM,SHADDA,FATHA,HEH, and the font first forms a
+   *   'calt' ligature of LAM,HEH, leaving the SHADDA and FATHA with a ligature
+   *   id and component == 1.  Now, during 'liga', the LAM and the LAM-HEH ligature
+   *   form a LAM-LAM-HEH ligature.  We need to reassign the SHADDA and FATHA to
+   *   the new ligature with a component value of 2.
+   *
+   *   This in fact happened to a font...  See:
+   *   https://bugzilla.gnome.org/show_bug.cgi?id=437633
+   */
+
+  unsigned int klass = is_mark_ligature ? 0 : HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE;
+  unsigned int lig_id = is_mark_ligature ? 0 : _hb_allocate_lig_id (buffer);
+  unsigned int last_lig_id = _hb_glyph_info_get_lig_id (&buffer->cur());
+  unsigned int last_num_components = _hb_glyph_info_get_lig_num_comps (&buffer->cur());
+  unsigned int components_so_far = last_num_components;
+
+  if (!is_mark_ligature)
+  {
+    _hb_glyph_info_set_lig_props_for_ligature (&buffer->cur(), lig_id, total_component_count);
+    if (_hb_glyph_info_get_general_category (&buffer->cur()) == HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK)
+    {
+      _hb_glyph_info_set_general_category (&buffer->cur(), HB_UNICODE_GENERAL_CATEGORY_OTHER_LETTER);
+      _hb_glyph_info_set_modified_combining_class (&buffer->cur(), 0);
+    }
+  }
+  c->replace_glyph_with_ligature (lig_glyph, klass);
+
+  for (unsigned int i = 1; i < count; i++)
+  {
+    while (buffer->idx < match_positions[i])
+    {
+      if (!is_mark_ligature) {
+       unsigned int new_lig_comp = components_so_far - last_num_components +
+                                   MIN (MAX (_hb_glyph_info_get_lig_comp (&buffer->cur()), 1u), last_num_components);
+       _hb_glyph_info_set_lig_props_for_mark (&buffer->cur(), lig_id, new_lig_comp);
+      }
+      buffer->next_glyph ();
+    }
+
+    last_lig_id = _hb_glyph_info_get_lig_id (&buffer->cur());
+    last_num_components = _hb_glyph_info_get_lig_num_comps (&buffer->cur());
+    components_so_far += last_num_components;
+
+    /* Skip the base glyph */
+    buffer->idx++;
+  }
+
+  if (!is_mark_ligature && last_lig_id) {
+    /* Re-adjust components for any marks following. */
+    for (unsigned int i = buffer->idx; i < buffer->len; i++) {
+      if (last_lig_id == _hb_glyph_info_get_lig_id (&buffer->info[i])) {
+       unsigned int new_lig_comp = components_so_far - last_num_components +
+                                   MIN (MAX (_hb_glyph_info_get_lig_comp (&buffer->info[i]), 1u), last_num_components);
+       _hb_glyph_info_set_lig_props_for_mark (&buffer->info[i], lig_id, new_lig_comp);
+      } else
+       break;
+    }
+  }
+  TRACE_RETURN (true);
+}
+
+static inline bool match_backtrack (hb_apply_context_t *c,
+                                   unsigned int count,
+                                   const USHORT backtrack[],
+                                   match_func_t match_func,
+                                   const void *match_data)
+{
+  TRACE_APPLY (NULL);
+
+  hb_apply_context_t::skipping_backward_iterator_t skippy_iter (c, c->buffer->backtrack_len (), count, true);
+  skippy_iter.set_match_func (match_func, match_data, backtrack);
+  if (skippy_iter.has_no_chance ()) return TRACE_RETURN (false);
+
+  for (unsigned int i = 0; i < count; i++)
+    if (!skippy_iter.prev ())
+      return TRACE_RETURN (false);
+
+  return TRACE_RETURN (true);
+}
+
+static inline bool match_lookahead (hb_apply_context_t *c,
+                                   unsigned int count,
+                                   const USHORT lookahead[],
+                                   match_func_t match_func,
+                                   const void *match_data,
+                                   unsigned int offset)
+{
+  TRACE_APPLY (NULL);
+
+  hb_apply_context_t::skipping_forward_iterator_t skippy_iter (c, c->buffer->idx + offset - 1, count, true);
+  skippy_iter.set_match_func (match_func, match_data, lookahead);
+  if (skippy_iter.has_no_chance ()) return TRACE_RETURN (false);
+
+  for (unsigned int i = 0; i < count; i++)
+    if (!skippy_iter.next ())
+      return TRACE_RETURN (false);
+
+  return TRACE_RETURN (true);
+}
+
+
+
+struct LookupRecord
+{
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this));
+  }
+
+  USHORT       sequenceIndex;          /* Index into current glyph
+                                        * sequence--first glyph = 0 */
+  USHORT       lookupListIndex;        /* Lookup to apply to that
+                                        * position--zero--based */
+  public:
+  DEFINE_SIZE_STATIC (4);
+};
+
+
+template <typename context_t>
+static inline void recurse_lookups (context_t *c,
+                                   unsigned int lookupCount,
+                                   const LookupRecord lookupRecord[] /* Array of LookupRecords--in design order */)
+{
+  for (unsigned int i = 0; i < lookupCount; i++)
+    c->recurse (lookupRecord[i].lookupListIndex);
+}
+
+static inline bool apply_lookup (hb_apply_context_t *c,
+                                unsigned int count, /* Including the first glyph */
+                                unsigned int match_positions[MAX_CONTEXT_LENGTH], /* Including the first glyph */
+                                unsigned int lookupCount,
+                                const LookupRecord lookupRecord[], /* Array of LookupRecords--in design order */
+                                unsigned int match_length)
+{
+  TRACE_APPLY (NULL);
+
+  hb_buffer_t *buffer = c->buffer;
+  unsigned int end;
+
+  /* All positions are distance from beginning of *output* buffer.
+   * Adjust. */
+  {
+    unsigned int bl = buffer->backtrack_len ();
+    end = bl + match_length;
+
+    int delta = bl - buffer->idx;
+    /* Convert positions to new indexing. */
+    for (unsigned int j = 0; j < count; j++)
+      match_positions[j] += delta;
+  }
+
+  for (unsigned int i = 0; i < lookupCount; i++)
+  {
+    unsigned int idx = lookupRecord[i].sequenceIndex;
+    if (idx >= count)
+      continue;
+
+    buffer->move_to (match_positions[idx]);
+
+    unsigned int orig_len = buffer->backtrack_len () + buffer->lookahead_len ();
+    if (!c->recurse (lookupRecord[i].lookupListIndex))
+      continue;
+
+    unsigned int new_len = buffer->backtrack_len () + buffer->lookahead_len ();
+    int delta = new_len - orig_len;
+
+    if (!delta)
+        continue;
+
+    /* Recursed lookup changed buffer len.  Adjust. */
+
+    /* end can't go back past the current match position.
+     * Note: this is only true because we do NOT allow MultipleSubst
+     * with zero sequence len. */
+    end = MAX ((int) match_positions[idx] + 1, int (end) + delta);
+
+    unsigned int next = idx + 1; /* next now is the position after the recursed lookup. */
+
+    if (delta > 0)
+    {
+      if (unlikely (delta + count > MAX_CONTEXT_LENGTH))
+       break;
+    }
+    else
+    {
+      /* NOTE: delta is negative. */
+      delta = MAX (delta, (int) next - (int) count);
+      next -= delta;
+    }
+
+    /* Shift! */
+    memmove (match_positions + next + delta, match_positions + next,
+            (count - next) * sizeof (match_positions[0]));
+    next += delta;
+    count += delta;
+
+    /* Fill in new entries. */
+    for (unsigned int j = idx + 1; j < next; j++)
+      match_positions[j] = match_positions[j - 1] + 1;
+
+    /* And fixup the rest. */
+    for (; next < count; next++)
+      match_positions[next] += delta;
+  }
+
+  buffer->move_to (end);
+
+  return TRACE_RETURN (true);
+}
+
+
+
+/* Contextual lookups */
+
+struct ContextClosureLookupContext
+{
+  ContextClosureFuncs funcs;
+  const void *intersects_data;
+};
+
+struct ContextCollectGlyphsLookupContext
+{
+  ContextCollectGlyphsFuncs funcs;
+  const void *collect_data;
+};
+
+struct ContextApplyLookupContext
+{
+  ContextApplyFuncs funcs;
+  const void *match_data;
+};
+
+static inline void context_closure_lookup (hb_closure_context_t *c,
+                                          unsigned int inputCount, /* Including the first glyph (not matched) */
+                                          const USHORT input[], /* Array of input values--start with second glyph */
+                                          unsigned int lookupCount,
+                                          const LookupRecord lookupRecord[],
+                                          ContextClosureLookupContext &lookup_context)
+{
+  if (intersects_array (c,
+                       inputCount ? inputCount - 1 : 0, input,
+                       lookup_context.funcs.intersects, lookup_context.intersects_data))
+    recurse_lookups (c,
+                    lookupCount, lookupRecord);
+}
+
+static inline void context_collect_glyphs_lookup (hb_collect_glyphs_context_t *c,
+                                                 unsigned int inputCount, /* Including the first glyph (not matched) */
+                                                 const USHORT input[], /* Array of input values--start with second glyph */
+                                                 unsigned int lookupCount,
+                                                 const LookupRecord lookupRecord[],
+                                                 ContextCollectGlyphsLookupContext &lookup_context)
+{
+  collect_array (c, c->input,
+                inputCount ? inputCount - 1 : 0, input,
+                lookup_context.funcs.collect, lookup_context.collect_data);
+  recurse_lookups (c,
+                  lookupCount, lookupRecord);
+}
+
+static inline bool context_would_apply_lookup (hb_would_apply_context_t *c,
+                                              unsigned int inputCount, /* Including the first glyph (not matched) */
+                                              const USHORT input[], /* Array of input values--start with second glyph */
+                                              unsigned int lookupCount HB_UNUSED,
+                                              const LookupRecord lookupRecord[] HB_UNUSED,
+                                              ContextApplyLookupContext &lookup_context)
+{
+  return would_match_input (c,
+                           inputCount, input,
+                           lookup_context.funcs.match, lookup_context.match_data);
+}
+static inline bool context_apply_lookup (hb_apply_context_t *c,
+                                        unsigned int inputCount, /* Including the first glyph (not matched) */
+                                        const USHORT input[], /* Array of input values--start with second glyph */
+                                        unsigned int lookupCount,
+                                        const LookupRecord lookupRecord[],
+                                        ContextApplyLookupContext &lookup_context)
+{
+  unsigned int match_length = 0;
+  unsigned int match_positions[MAX_CONTEXT_LENGTH];
+  return match_input (c,
+                     inputCount, input,
+                     lookup_context.funcs.match, lookup_context.match_data,
+                     &match_length, match_positions)
+      && apply_lookup (c,
+                      inputCount, match_positions,
+                      lookupCount, lookupRecord,
+                      match_length);
+}
+
+struct Rule
+{
+  inline void closure (hb_closure_context_t *c, ContextClosureLookupContext &lookup_context) const
+  {
+    TRACE_CLOSURE (this);
+    const LookupRecord *lookupRecord = &StructAtOffset<LookupRecord> (input, input[0].static_size * (inputCount ? inputCount - 1 : 0));
+    context_closure_lookup (c,
+                           inputCount, input,
+                           lookupCount, lookupRecord,
+                           lookup_context);
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c, ContextCollectGlyphsLookupContext &lookup_context) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    const LookupRecord *lookupRecord = &StructAtOffset<LookupRecord> (input, input[0].static_size * (inputCount ? inputCount - 1 : 0));
+    context_collect_glyphs_lookup (c,
+                                  inputCount, input,
+                                  lookupCount, lookupRecord,
+                                  lookup_context);
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c, ContextApplyLookupContext &lookup_context) const
+  {
+    TRACE_WOULD_APPLY (this);
+    const LookupRecord *lookupRecord = &StructAtOffset<LookupRecord> (input, input[0].static_size * (inputCount ? inputCount - 1 : 0));
+    return TRACE_RETURN (context_would_apply_lookup (c, inputCount, input, lookupCount, lookupRecord, lookup_context));
+  }
+
+  inline bool apply (hb_apply_context_t *c, ContextApplyLookupContext &lookup_context) const
+  {
+    TRACE_APPLY (this);
+    const LookupRecord *lookupRecord = &StructAtOffset<LookupRecord> (input, input[0].static_size * (inputCount ? inputCount - 1 : 0));
+    return TRACE_RETURN (context_apply_lookup (c, inputCount, input, lookupCount, lookupRecord, lookup_context));
+  }
+
+  public:
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return inputCount.sanitize (c)
+       && lookupCount.sanitize (c)
+       && c->check_range (input,
+                          input[0].static_size * inputCount
+                          + lookupRecordX[0].static_size * lookupCount);
+  }
+
+  protected:
+  USHORT       inputCount;             /* Total number of glyphs in input
+                                        * glyph sequence--includes the first
+                                        * glyph */
+  USHORT       lookupCount;            /* Number of LookupRecords */
+  USHORT       input[VAR];             /* Array of match inputs--start with
+                                        * second glyph */
+  LookupRecord lookupRecordX[VAR];     /* Array of LookupRecords--in
+                                        * design order */
+  public:
+  DEFINE_SIZE_ARRAY2 (4, input, lookupRecordX);
+};
+
+struct RuleSet
+{
+  inline void closure (hb_closure_context_t *c, ContextClosureLookupContext &lookup_context) const
+  {
+    TRACE_CLOSURE (this);
+    unsigned int num_rules = rule.len;
+    for (unsigned int i = 0; i < num_rules; i++)
+      (this+rule[i]).closure (c, lookup_context);
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c, ContextCollectGlyphsLookupContext &lookup_context) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    unsigned int num_rules = rule.len;
+    for (unsigned int i = 0; i < num_rules; i++)
+      (this+rule[i]).collect_glyphs (c, lookup_context);
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c, ContextApplyLookupContext &lookup_context) const
+  {
+    TRACE_WOULD_APPLY (this);
+    unsigned int num_rules = rule.len;
+    for (unsigned int i = 0; i < num_rules; i++)
+    {
+      if ((this+rule[i]).would_apply (c, lookup_context))
+        return TRACE_RETURN (true);
+    }
+    return TRACE_RETURN (false);
+  }
+
+  inline bool apply (hb_apply_context_t *c, ContextApplyLookupContext &lookup_context) const
+  {
+    TRACE_APPLY (this);
+    unsigned int num_rules = rule.len;
+    for (unsigned int i = 0; i < num_rules; i++)
+    {
+      if ((this+rule[i]).apply (c, lookup_context))
+        return TRACE_RETURN (true);
+    }
+    return TRACE_RETURN (false);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (rule.sanitize (c, this));
+  }
+
+  protected:
+  OffsetArrayOf<Rule>
+               rule;                   /* Array of Rule tables
+                                        * ordered by preference */
+  public:
+  DEFINE_SIZE_ARRAY (2, rule);
+};
+
+
+struct ContextFormat1
+{
+  inline void closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+
+    const Coverage &cov = (this+coverage);
+
+    struct ContextClosureLookupContext lookup_context = {
+      {intersects_glyph},
+      NULL
+    };
+
+    unsigned int count = ruleSet.len;
+    for (unsigned int i = 0; i < count; i++)
+      if (cov.intersects_coverage (c->glyphs, i)) {
+       const RuleSet &rule_set = this+ruleSet[i];
+       rule_set.closure (c, lookup_context);
+      }
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    (this+coverage).add_coverage (c->input);
+
+    struct ContextCollectGlyphsLookupContext lookup_context = {
+      {collect_glyph},
+      NULL
+    };
+
+    unsigned int count = ruleSet.len;
+    for (unsigned int i = 0; i < count; i++)
+      (this+ruleSet[i]).collect_glyphs (c, lookup_context);
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c) const
+  {
+    TRACE_WOULD_APPLY (this);
+
+    const RuleSet &rule_set = this+ruleSet[(this+coverage).get_coverage (c->glyphs[0])];
+    struct ContextApplyLookupContext lookup_context = {
+      {match_glyph},
+      NULL
+    };
+    return TRACE_RETURN (rule_set.would_apply (c, lookup_context));
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage;
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    unsigned int index = (this+coverage).get_coverage (c->buffer->cur().codepoint);
+    if (likely (index == NOT_COVERED))
+      return TRACE_RETURN (false);
+
+    const RuleSet &rule_set = this+ruleSet[index];
+    struct ContextApplyLookupContext lookup_context = {
+      {match_glyph},
+      NULL
+    };
+    return TRACE_RETURN (rule_set.apply (c, lookup_context));
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (coverage.sanitize (c, this) && ruleSet.sanitize (c, this));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 1 */
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of table */
+  OffsetArrayOf<RuleSet>
+               ruleSet;                /* Array of RuleSet tables
+                                        * ordered by Coverage Index */
+  public:
+  DEFINE_SIZE_ARRAY (6, ruleSet);
+};
+
+
+struct ContextFormat2
+{
+  inline void closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+    if (!(this+coverage).intersects (c->glyphs))
+      return;
+
+    const ClassDef &class_def = this+classDef;
+
+    struct ContextClosureLookupContext lookup_context = {
+      {intersects_class},
+      &class_def
+    };
+
+    unsigned int count = ruleSet.len;
+    for (unsigned int i = 0; i < count; i++)
+      if (class_def.intersects_class (c->glyphs, i)) {
+       const RuleSet &rule_set = this+ruleSet[i];
+       rule_set.closure (c, lookup_context);
+      }
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    (this+coverage).add_coverage (c->input);
+
+    const ClassDef &class_def = this+classDef;
+    struct ContextCollectGlyphsLookupContext lookup_context = {
+      {collect_class},
+      &class_def
+    };
+
+    unsigned int count = ruleSet.len;
+    for (unsigned int i = 0; i < count; i++)
+      (this+ruleSet[i]).collect_glyphs (c, lookup_context);
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c) const
+  {
+    TRACE_WOULD_APPLY (this);
+
+    const ClassDef &class_def = this+classDef;
+    unsigned int index = class_def.get_class (c->glyphs[0]);
+    const RuleSet &rule_set = this+ruleSet[index];
+    struct ContextApplyLookupContext lookup_context = {
+      {match_class},
+      &class_def
+    };
+    return TRACE_RETURN (rule_set.would_apply (c, lookup_context));
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage;
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    unsigned int index = (this+coverage).get_coverage (c->buffer->cur().codepoint);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    const ClassDef &class_def = this+classDef;
+    index = class_def.get_class (c->buffer->cur().codepoint);
+    const RuleSet &rule_set = this+ruleSet[index];
+    struct ContextApplyLookupContext lookup_context = {
+      {match_class},
+      &class_def
+    };
+    return TRACE_RETURN (rule_set.apply (c, lookup_context));
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (coverage.sanitize (c, this) && classDef.sanitize (c, this) && ruleSet.sanitize (c, this));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 2 */
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of table */
+  OffsetTo<ClassDef>
+               classDef;               /* Offset to glyph ClassDef table--from
+                                        * beginning of table */
+  OffsetArrayOf<RuleSet>
+               ruleSet;                /* Array of RuleSet tables
+                                        * ordered by class */
+  public:
+  DEFINE_SIZE_ARRAY (8, ruleSet);
+};
+
+
+struct ContextFormat3
+{
+  inline void closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+    if (!(this+coverage[0]).intersects (c->glyphs))
+      return;
+
+    const LookupRecord *lookupRecord = &StructAtOffset<LookupRecord> (coverage, coverage[0].static_size * glyphCount);
+    struct ContextClosureLookupContext lookup_context = {
+      {intersects_coverage},
+      this
+    };
+    context_closure_lookup (c,
+                           glyphCount, (const USHORT *) (coverage + 1),
+                           lookupCount, lookupRecord,
+                           lookup_context);
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    (this+coverage[0]).add_coverage (c->input);
+
+    const LookupRecord *lookupRecord = &StructAtOffset<LookupRecord> (coverage, coverage[0].static_size * glyphCount);
+    struct ContextCollectGlyphsLookupContext lookup_context = {
+      {collect_coverage},
+      this
+    };
+
+    context_collect_glyphs_lookup (c,
+                                  glyphCount, (const USHORT *) (coverage + 1),
+                                  lookupCount, lookupRecord,
+                                  lookup_context);
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c) const
+  {
+    TRACE_WOULD_APPLY (this);
+
+    const LookupRecord *lookupRecord = &StructAtOffset<LookupRecord> (coverage, coverage[0].static_size * glyphCount);
+    struct ContextApplyLookupContext lookup_context = {
+      {match_coverage},
+      this
+    };
+    return TRACE_RETURN (context_would_apply_lookup (c, glyphCount, (const USHORT *) (coverage + 1), lookupCount, lookupRecord, lookup_context));
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage[0];
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    unsigned int index = (this+coverage[0]).get_coverage (c->buffer->cur().codepoint);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    const LookupRecord *lookupRecord = &StructAtOffset<LookupRecord> (coverage, coverage[0].static_size * glyphCount);
+    struct ContextApplyLookupContext lookup_context = {
+      {match_coverage},
+      this
+    };
+    return TRACE_RETURN (context_apply_lookup (c, glyphCount, (const USHORT *) (coverage + 1), lookupCount, lookupRecord, lookup_context));
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!c->check_struct (this)) return TRACE_RETURN (false);
+    unsigned int count = glyphCount;
+    if (!c->check_array (coverage, coverage[0].static_size, count)) return TRACE_RETURN (false);
+    for (unsigned int i = 0; i < count; i++)
+      if (!coverage[i].sanitize (c, this)) return TRACE_RETURN (false);
+    LookupRecord *lookupRecord = &StructAtOffset<LookupRecord> (coverage, coverage[0].static_size * count);
+    return TRACE_RETURN (c->check_array (lookupRecord, lookupRecord[0].static_size, lookupCount));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 3 */
+  USHORT       glyphCount;             /* Number of glyphs in the input glyph
+                                        * sequence */
+  USHORT       lookupCount;            /* Number of LookupRecords */
+  OffsetTo<Coverage>
+               coverage[VAR];          /* Array of offsets to Coverage
+                                        * table in glyph sequence order */
+  LookupRecord lookupRecordX[VAR];     /* Array of LookupRecords--in
+                                        * design order */
+  public:
+  DEFINE_SIZE_ARRAY2 (6, coverage, lookupRecordX);
+};
+
+struct Context
+{
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    TRACE_DISPATCH (this);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (c->dispatch (u.format1));
+    case 2: return TRACE_RETURN (c->dispatch (u.format2));
+    case 3: return TRACE_RETURN (c->dispatch (u.format3));
+    default:return TRACE_RETURN (c->default_return_value ());
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    case 2: return TRACE_RETURN (u.format2.sanitize (c));
+    case 3: return TRACE_RETURN (u.format3.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  ContextFormat1       format1;
+  ContextFormat2       format2;
+  ContextFormat3       format3;
+  } u;
+};
+
+
+/* Chaining Contextual lookups */
+
+struct ChainContextClosureLookupContext
+{
+  ContextClosureFuncs funcs;
+  const void *intersects_data[3];
+};
+
+struct ChainContextCollectGlyphsLookupContext
+{
+  ContextCollectGlyphsFuncs funcs;
+  const void *collect_data[3];
+};
+
+struct ChainContextApplyLookupContext
+{
+  ContextApplyFuncs funcs;
+  const void *match_data[3];
+};
+
+static inline void chain_context_closure_lookup (hb_closure_context_t *c,
+                                                unsigned int backtrackCount,
+                                                const USHORT backtrack[],
+                                                unsigned int inputCount, /* Including the first glyph (not matched) */
+                                                const USHORT input[], /* Array of input values--start with second glyph */
+                                                unsigned int lookaheadCount,
+                                                const USHORT lookahead[],
+                                                unsigned int lookupCount,
+                                                const LookupRecord lookupRecord[],
+                                                ChainContextClosureLookupContext &lookup_context)
+{
+  if (intersects_array (c,
+                       backtrackCount, backtrack,
+                       lookup_context.funcs.intersects, lookup_context.intersects_data[0])
+   && intersects_array (c,
+                       inputCount ? inputCount - 1 : 0, input,
+                       lookup_context.funcs.intersects, lookup_context.intersects_data[1])
+   && intersects_array (c,
+                      lookaheadCount, lookahead,
+                      lookup_context.funcs.intersects, lookup_context.intersects_data[2]))
+    recurse_lookups (c,
+                    lookupCount, lookupRecord);
+}
+
+static inline void chain_context_collect_glyphs_lookup (hb_collect_glyphs_context_t *c,
+                                                       unsigned int backtrackCount,
+                                                       const USHORT backtrack[],
+                                                       unsigned int inputCount, /* Including the first glyph (not matched) */
+                                                       const USHORT input[], /* Array of input values--start with second glyph */
+                                                       unsigned int lookaheadCount,
+                                                       const USHORT lookahead[],
+                                                       unsigned int lookupCount,
+                                                       const LookupRecord lookupRecord[],
+                                                       ChainContextCollectGlyphsLookupContext &lookup_context)
+{
+  collect_array (c, c->before,
+                backtrackCount, backtrack,
+                lookup_context.funcs.collect, lookup_context.collect_data[0]);
+  collect_array (c, c->input,
+                inputCount ? inputCount - 1 : 0, input,
+                lookup_context.funcs.collect, lookup_context.collect_data[1]);
+  collect_array (c, c->after,
+                lookaheadCount, lookahead,
+                lookup_context.funcs.collect, lookup_context.collect_data[2]);
+  recurse_lookups (c,
+                  lookupCount, lookupRecord);
+}
+
+static inline bool chain_context_would_apply_lookup (hb_would_apply_context_t *c,
+                                                    unsigned int backtrackCount,
+                                                    const USHORT backtrack[] HB_UNUSED,
+                                                    unsigned int inputCount, /* Including the first glyph (not matched) */
+                                                    const USHORT input[], /* Array of input values--start with second glyph */
+                                                    unsigned int lookaheadCount,
+                                                    const USHORT lookahead[] HB_UNUSED,
+                                                    unsigned int lookupCount HB_UNUSED,
+                                                    const LookupRecord lookupRecord[] HB_UNUSED,
+                                                    ChainContextApplyLookupContext &lookup_context)
+{
+  return (c->zero_context ? !backtrackCount && !lookaheadCount : true)
+      && would_match_input (c,
+                           inputCount, input,
+                           lookup_context.funcs.match, lookup_context.match_data[1]);
+}
+
+static inline bool chain_context_apply_lookup (hb_apply_context_t *c,
+                                              unsigned int backtrackCount,
+                                              const USHORT backtrack[],
+                                              unsigned int inputCount, /* Including the first glyph (not matched) */
+                                              const USHORT input[], /* Array of input values--start with second glyph */
+                                              unsigned int lookaheadCount,
+                                              const USHORT lookahead[],
+                                              unsigned int lookupCount,
+                                              const LookupRecord lookupRecord[],
+                                              ChainContextApplyLookupContext &lookup_context)
+{
+  unsigned int match_length = 0;
+  unsigned int match_positions[MAX_CONTEXT_LENGTH];
+  return match_input (c,
+                     inputCount, input,
+                     lookup_context.funcs.match, lookup_context.match_data[1],
+                     &match_length, match_positions)
+      && match_backtrack (c,
+                         backtrackCount, backtrack,
+                         lookup_context.funcs.match, lookup_context.match_data[0])
+      && match_lookahead (c,
+                         lookaheadCount, lookahead,
+                         lookup_context.funcs.match, lookup_context.match_data[2],
+                         match_length)
+      && apply_lookup (c,
+                      inputCount, match_positions,
+                      lookupCount, lookupRecord,
+                      match_length);
+}
+
+struct ChainRule
+{
+  inline void closure (hb_closure_context_t *c, ChainContextClosureLookupContext &lookup_context) const
+  {
+    TRACE_CLOSURE (this);
+    const HeadlessArrayOf<USHORT> &input = StructAfter<HeadlessArrayOf<USHORT> > (backtrack);
+    const ArrayOf<USHORT> &lookahead = StructAfter<ArrayOf<USHORT> > (input);
+    const ArrayOf<LookupRecord> &lookup = StructAfter<ArrayOf<LookupRecord> > (lookahead);
+    chain_context_closure_lookup (c,
+                                 backtrack.len, backtrack.array,
+                                 input.len, input.array,
+                                 lookahead.len, lookahead.array,
+                                 lookup.len, lookup.array,
+                                 lookup_context);
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c, ChainContextCollectGlyphsLookupContext &lookup_context) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    const HeadlessArrayOf<USHORT> &input = StructAfter<HeadlessArrayOf<USHORT> > (backtrack);
+    const ArrayOf<USHORT> &lookahead = StructAfter<ArrayOf<USHORT> > (input);
+    const ArrayOf<LookupRecord> &lookup = StructAfter<ArrayOf<LookupRecord> > (lookahead);
+    chain_context_collect_glyphs_lookup (c,
+                                        backtrack.len, backtrack.array,
+                                        input.len, input.array,
+                                        lookahead.len, lookahead.array,
+                                        lookup.len, lookup.array,
+                                        lookup_context);
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c, ChainContextApplyLookupContext &lookup_context) const
+  {
+    TRACE_WOULD_APPLY (this);
+    const HeadlessArrayOf<USHORT> &input = StructAfter<HeadlessArrayOf<USHORT> > (backtrack);
+    const ArrayOf<USHORT> &lookahead = StructAfter<ArrayOf<USHORT> > (input);
+    const ArrayOf<LookupRecord> &lookup = StructAfter<ArrayOf<LookupRecord> > (lookahead);
+    return TRACE_RETURN (chain_context_would_apply_lookup (c,
+                                                          backtrack.len, backtrack.array,
+                                                          input.len, input.array,
+                                                          lookahead.len, lookahead.array, lookup.len,
+                                                          lookup.array, lookup_context));
+  }
+
+  inline bool apply (hb_apply_context_t *c, ChainContextApplyLookupContext &lookup_context) const
+  {
+    TRACE_APPLY (this);
+    const HeadlessArrayOf<USHORT> &input = StructAfter<HeadlessArrayOf<USHORT> > (backtrack);
+    const ArrayOf<USHORT> &lookahead = StructAfter<ArrayOf<USHORT> > (input);
+    const ArrayOf<LookupRecord> &lookup = StructAfter<ArrayOf<LookupRecord> > (lookahead);
+    return TRACE_RETURN (chain_context_apply_lookup (c,
+                                                    backtrack.len, backtrack.array,
+                                                    input.len, input.array,
+                                                    lookahead.len, lookahead.array, lookup.len,
+                                                    lookup.array, lookup_context));
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!backtrack.sanitize (c)) return TRACE_RETURN (false);
+    HeadlessArrayOf<USHORT> &input = StructAfter<HeadlessArrayOf<USHORT> > (backtrack);
+    if (!input.sanitize (c)) return TRACE_RETURN (false);
+    ArrayOf<USHORT> &lookahead = StructAfter<ArrayOf<USHORT> > (input);
+    if (!lookahead.sanitize (c)) return TRACE_RETURN (false);
+    ArrayOf<LookupRecord> &lookup = StructAfter<ArrayOf<LookupRecord> > (lookahead);
+    return TRACE_RETURN (lookup.sanitize (c));
+  }
+
+  protected:
+  ArrayOf<USHORT>
+               backtrack;              /* Array of backtracking values
+                                        * (to be matched before the input
+                                        * sequence) */
+  HeadlessArrayOf<USHORT>
+               inputX;                 /* Array of input values (start with
+                                        * second glyph) */
+  ArrayOf<USHORT>
+               lookaheadX;             /* Array of lookahead values's (to be
+                                        * matched after the input sequence) */
+  ArrayOf<LookupRecord>
+               lookupX;                /* Array of LookupRecords--in
+                                        * design order) */
+  public:
+  DEFINE_SIZE_MIN (8);
+};
+
+struct ChainRuleSet
+{
+  inline void closure (hb_closure_context_t *c, ChainContextClosureLookupContext &lookup_context) const
+  {
+    TRACE_CLOSURE (this);
+    unsigned int num_rules = rule.len;
+    for (unsigned int i = 0; i < num_rules; i++)
+      (this+rule[i]).closure (c, lookup_context);
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c, ChainContextCollectGlyphsLookupContext &lookup_context) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    unsigned int num_rules = rule.len;
+    for (unsigned int i = 0; i < num_rules; i++)
+      (this+rule[i]).collect_glyphs (c, lookup_context);
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c, ChainContextApplyLookupContext &lookup_context) const
+  {
+    TRACE_WOULD_APPLY (this);
+    unsigned int num_rules = rule.len;
+    for (unsigned int i = 0; i < num_rules; i++)
+      if ((this+rule[i]).would_apply (c, lookup_context))
+        return TRACE_RETURN (true);
+
+    return TRACE_RETURN (false);
+  }
+
+  inline bool apply (hb_apply_context_t *c, ChainContextApplyLookupContext &lookup_context) const
+  {
+    TRACE_APPLY (this);
+    unsigned int num_rules = rule.len;
+    for (unsigned int i = 0; i < num_rules; i++)
+      if ((this+rule[i]).apply (c, lookup_context))
+        return TRACE_RETURN (true);
+
+    return TRACE_RETURN (false);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (rule.sanitize (c, this));
+  }
+
+  protected:
+  OffsetArrayOf<ChainRule>
+               rule;                   /* Array of ChainRule tables
+                                        * ordered by preference */
+  public:
+  DEFINE_SIZE_ARRAY (2, rule);
+};
+
+struct ChainContextFormat1
+{
+  inline void closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+    const Coverage &cov = (this+coverage);
+
+    struct ChainContextClosureLookupContext lookup_context = {
+      {intersects_glyph},
+      {NULL, NULL, NULL}
+    };
+
+    unsigned int count = ruleSet.len;
+    for (unsigned int i = 0; i < count; i++)
+      if (cov.intersects_coverage (c->glyphs, i)) {
+       const ChainRuleSet &rule_set = this+ruleSet[i];
+       rule_set.closure (c, lookup_context);
+      }
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    (this+coverage).add_coverage (c->input);
+
+    struct ChainContextCollectGlyphsLookupContext lookup_context = {
+      {collect_glyph},
+      {NULL, NULL, NULL}
+    };
+
+    unsigned int count = ruleSet.len;
+    for (unsigned int i = 0; i < count; i++)
+      (this+ruleSet[i]).collect_glyphs (c, lookup_context);
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c) const
+  {
+    TRACE_WOULD_APPLY (this);
+
+    const ChainRuleSet &rule_set = this+ruleSet[(this+coverage).get_coverage (c->glyphs[0])];
+    struct ChainContextApplyLookupContext lookup_context = {
+      {match_glyph},
+      {NULL, NULL, NULL}
+    };
+    return TRACE_RETURN (rule_set.would_apply (c, lookup_context));
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage;
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    unsigned int index = (this+coverage).get_coverage (c->buffer->cur().codepoint);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    const ChainRuleSet &rule_set = this+ruleSet[index];
+    struct ChainContextApplyLookupContext lookup_context = {
+      {match_glyph},
+      {NULL, NULL, NULL}
+    };
+    return TRACE_RETURN (rule_set.apply (c, lookup_context));
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (coverage.sanitize (c, this) && ruleSet.sanitize (c, this));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 1 */
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of table */
+  OffsetArrayOf<ChainRuleSet>
+               ruleSet;                /* Array of ChainRuleSet tables
+                                        * ordered by Coverage Index */
+  public:
+  DEFINE_SIZE_ARRAY (6, ruleSet);
+};
+
+struct ChainContextFormat2
+{
+  inline void closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+    if (!(this+coverage).intersects (c->glyphs))
+      return;
+
+    const ClassDef &backtrack_class_def = this+backtrackClassDef;
+    const ClassDef &input_class_def = this+inputClassDef;
+    const ClassDef &lookahead_class_def = this+lookaheadClassDef;
+
+    struct ChainContextClosureLookupContext lookup_context = {
+      {intersects_class},
+      {&backtrack_class_def,
+       &input_class_def,
+       &lookahead_class_def}
+    };
+
+    unsigned int count = ruleSet.len;
+    for (unsigned int i = 0; i < count; i++)
+      if (input_class_def.intersects_class (c->glyphs, i)) {
+       const ChainRuleSet &rule_set = this+ruleSet[i];
+       rule_set.closure (c, lookup_context);
+      }
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    (this+coverage).add_coverage (c->input);
+
+    const ClassDef &backtrack_class_def = this+backtrackClassDef;
+    const ClassDef &input_class_def = this+inputClassDef;
+    const ClassDef &lookahead_class_def = this+lookaheadClassDef;
+
+    struct ChainContextCollectGlyphsLookupContext lookup_context = {
+      {collect_class},
+      {&backtrack_class_def,
+       &input_class_def,
+       &lookahead_class_def}
+    };
+
+    unsigned int count = ruleSet.len;
+    for (unsigned int i = 0; i < count; i++)
+      (this+ruleSet[i]).collect_glyphs (c, lookup_context);
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c) const
+  {
+    TRACE_WOULD_APPLY (this);
+
+    const ClassDef &backtrack_class_def = this+backtrackClassDef;
+    const ClassDef &input_class_def = this+inputClassDef;
+    const ClassDef &lookahead_class_def = this+lookaheadClassDef;
+
+    unsigned int index = input_class_def.get_class (c->glyphs[0]);
+    const ChainRuleSet &rule_set = this+ruleSet[index];
+    struct ChainContextApplyLookupContext lookup_context = {
+      {match_class},
+      {&backtrack_class_def,
+       &input_class_def,
+       &lookahead_class_def}
+    };
+    return TRACE_RETURN (rule_set.would_apply (c, lookup_context));
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    return this+coverage;
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    unsigned int index = (this+coverage).get_coverage (c->buffer->cur().codepoint);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    const ClassDef &backtrack_class_def = this+backtrackClassDef;
+    const ClassDef &input_class_def = this+inputClassDef;
+    const ClassDef &lookahead_class_def = this+lookaheadClassDef;
+
+    index = input_class_def.get_class (c->buffer->cur().codepoint);
+    const ChainRuleSet &rule_set = this+ruleSet[index];
+    struct ChainContextApplyLookupContext lookup_context = {
+      {match_class},
+      {&backtrack_class_def,
+       &input_class_def,
+       &lookahead_class_def}
+    };
+    return TRACE_RETURN (rule_set.apply (c, lookup_context));
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (coverage.sanitize (c, this) && backtrackClassDef.sanitize (c, this) &&
+                        inputClassDef.sanitize (c, this) && lookaheadClassDef.sanitize (c, this) &&
+                        ruleSet.sanitize (c, this));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 2 */
+  OffsetTo<Coverage>
+               coverage;               /* Offset to Coverage table--from
+                                        * beginning of table */
+  OffsetTo<ClassDef>
+               backtrackClassDef;      /* Offset to glyph ClassDef table
+                                        * containing backtrack sequence
+                                        * data--from beginning of table */
+  OffsetTo<ClassDef>
+               inputClassDef;          /* Offset to glyph ClassDef
+                                        * table containing input sequence
+                                        * data--from beginning of table */
+  OffsetTo<ClassDef>
+               lookaheadClassDef;      /* Offset to glyph ClassDef table
+                                        * containing lookahead sequence
+                                        * data--from beginning of table */
+  OffsetArrayOf<ChainRuleSet>
+               ruleSet;                /* Array of ChainRuleSet tables
+                                        * ordered by class */
+  public:
+  DEFINE_SIZE_ARRAY (12, ruleSet);
+};
+
+struct ChainContextFormat3
+{
+  inline void closure (hb_closure_context_t *c) const
+  {
+    TRACE_CLOSURE (this);
+    const OffsetArrayOf<Coverage> &input = StructAfter<OffsetArrayOf<Coverage> > (backtrack);
+
+    if (!(this+input[0]).intersects (c->glyphs))
+      return;
+
+    const OffsetArrayOf<Coverage> &lookahead = StructAfter<OffsetArrayOf<Coverage> > (input);
+    const ArrayOf<LookupRecord> &lookup = StructAfter<ArrayOf<LookupRecord> > (lookahead);
+    struct ChainContextClosureLookupContext lookup_context = {
+      {intersects_coverage},
+      {this, this, this}
+    };
+    chain_context_closure_lookup (c,
+                                 backtrack.len, (const USHORT *) backtrack.array,
+                                 input.len, (const USHORT *) input.array + 1,
+                                 lookahead.len, (const USHORT *) lookahead.array,
+                                 lookup.len, lookup.array,
+                                 lookup_context);
+  }
+
+  inline void collect_glyphs (hb_collect_glyphs_context_t *c) const
+  {
+    TRACE_COLLECT_GLYPHS (this);
+    const OffsetArrayOf<Coverage> &input = StructAfter<OffsetArrayOf<Coverage> > (backtrack);
+
+    (this+input[0]).add_coverage (c->input);
+
+    const OffsetArrayOf<Coverage> &lookahead = StructAfter<OffsetArrayOf<Coverage> > (input);
+    const ArrayOf<LookupRecord> &lookup = StructAfter<ArrayOf<LookupRecord> > (lookahead);
+    struct ChainContextCollectGlyphsLookupContext lookup_context = {
+      {collect_coverage},
+      {this, this, this}
+    };
+    chain_context_collect_glyphs_lookup (c,
+                                        backtrack.len, (const USHORT *) backtrack.array,
+                                        input.len, (const USHORT *) input.array + 1,
+                                        lookahead.len, (const USHORT *) lookahead.array,
+                                        lookup.len, lookup.array,
+                                        lookup_context);
+  }
+
+  inline bool would_apply (hb_would_apply_context_t *c) const
+  {
+    TRACE_WOULD_APPLY (this);
+
+    const OffsetArrayOf<Coverage> &input = StructAfter<OffsetArrayOf<Coverage> > (backtrack);
+    const OffsetArrayOf<Coverage> &lookahead = StructAfter<OffsetArrayOf<Coverage> > (input);
+    const ArrayOf<LookupRecord> &lookup = StructAfter<ArrayOf<LookupRecord> > (lookahead);
+    struct ChainContextApplyLookupContext lookup_context = {
+      {match_coverage},
+      {this, this, this}
+    };
+    return TRACE_RETURN (chain_context_would_apply_lookup (c,
+                                                          backtrack.len, (const USHORT *) backtrack.array,
+                                                          input.len, (const USHORT *) input.array + 1,
+                                                          lookahead.len, (const USHORT *) lookahead.array,
+                                                          lookup.len, lookup.array, lookup_context));
+  }
+
+  inline const Coverage &get_coverage (void) const
+  {
+    const OffsetArrayOf<Coverage> &input = StructAfter<OffsetArrayOf<Coverage> > (backtrack);
+    return this+input[0];
+  }
+
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    const OffsetArrayOf<Coverage> &input = StructAfter<OffsetArrayOf<Coverage> > (backtrack);
+
+    unsigned int index = (this+input[0]).get_coverage (c->buffer->cur().codepoint);
+    if (likely (index == NOT_COVERED)) return TRACE_RETURN (false);
+
+    const OffsetArrayOf<Coverage> &lookahead = StructAfter<OffsetArrayOf<Coverage> > (input);
+    const ArrayOf<LookupRecord> &lookup = StructAfter<ArrayOf<LookupRecord> > (lookahead);
+    struct ChainContextApplyLookupContext lookup_context = {
+      {match_coverage},
+      {this, this, this}
+    };
+    return TRACE_RETURN (chain_context_apply_lookup (c,
+                                                    backtrack.len, (const USHORT *) backtrack.array,
+                                                    input.len, (const USHORT *) input.array + 1,
+                                                    lookahead.len, (const USHORT *) lookahead.array,
+                                                    lookup.len, lookup.array, lookup_context));
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!backtrack.sanitize (c, this)) return TRACE_RETURN (false);
+    OffsetArrayOf<Coverage> &input = StructAfter<OffsetArrayOf<Coverage> > (backtrack);
+    if (!input.sanitize (c, this)) return TRACE_RETURN (false);
+    OffsetArrayOf<Coverage> &lookahead = StructAfter<OffsetArrayOf<Coverage> > (input);
+    if (!lookahead.sanitize (c, this)) return TRACE_RETURN (false);
+    ArrayOf<LookupRecord> &lookup = StructAfter<ArrayOf<LookupRecord> > (lookahead);
+    return TRACE_RETURN (lookup.sanitize (c));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier--format = 3 */
+  OffsetArrayOf<Coverage>
+               backtrack;              /* Array of coverage tables
+                                        * in backtracking sequence, in  glyph
+                                        * sequence order */
+  OffsetArrayOf<Coverage>
+               inputX          ;       /* Array of coverage
+                                        * tables in input sequence, in glyph
+                                        * sequence order */
+  OffsetArrayOf<Coverage>
+               lookaheadX;             /* Array of coverage tables
+                                        * in lookahead sequence, in glyph
+                                        * sequence order */
+  ArrayOf<LookupRecord>
+               lookupX;                /* Array of LookupRecords--in
+                                        * design order) */
+  public:
+  DEFINE_SIZE_MIN (10);
+};
+
+struct ChainContext
+{
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    TRACE_DISPATCH (this);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (c->dispatch (u.format1));
+    case 2: return TRACE_RETURN (c->dispatch (u.format2));
+    case 3: return TRACE_RETURN (c->dispatch (u.format3));
+    default:return TRACE_RETURN (c->default_return_value ());
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    case 2: return TRACE_RETURN (u.format2.sanitize (c));
+    case 3: return TRACE_RETURN (u.format3.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  protected:
+  union {
+  USHORT               format; /* Format identifier */
+  ChainContextFormat1  format1;
+  ChainContextFormat2  format2;
+  ChainContextFormat3  format3;
+  } u;
+};
+
+
+struct ExtensionFormat1
+{
+  inline unsigned int get_type (void) const { return extensionLookupType; }
+  inline unsigned int get_offset (void) const { return extensionOffset; }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this));
+  }
+
+  protected:
+  USHORT       format;                 /* Format identifier. Set to 1. */
+  USHORT       extensionLookupType;    /* Lookup type of subtable referenced
+                                        * by ExtensionOffset (i.e. the
+                                        * extension subtable). */
+  ULONG                extensionOffset;        /* Offset to the extension subtable,
+                                        * of lookup type subtable. */
+  public:
+  DEFINE_SIZE_STATIC (8);
+};
+
+template <typename T>
+struct Extension
+{
+  inline unsigned int get_type (void) const
+  {
+    switch (u.format) {
+    case 1: return u.format1.get_type ();
+    default:return 0;
+    }
+  }
+  inline unsigned int get_offset (void) const
+  {
+    switch (u.format) {
+    case 1: return u.format1.get_offset ();
+    default:return 0;
+    }
+  }
+
+  template <typename X>
+  inline const X& get_subtable (void) const
+  {
+    unsigned int offset = get_offset ();
+    if (unlikely (!offset)) return Null(typename T::LookupSubTable);
+    return StructAtOffset<typename T::LookupSubTable> (this, offset);
+  }
+
+  template <typename context_t>
+  inline typename context_t::return_t dispatch (context_t *c) const
+  {
+    return get_subtable<typename T::LookupSubTable> ().dispatch (c, get_type ());
+  }
+
+  inline bool sanitize_self (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!u.format.sanitize (c)) return TRACE_RETURN (false);
+    switch (u.format) {
+    case 1: return TRACE_RETURN (u.format1.sanitize (c));
+    default:return TRACE_RETURN (true);
+    }
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    if (!sanitize_self (c)) return TRACE_RETURN (false);
+    unsigned int offset = get_offset ();
+    if (unlikely (!offset)) return TRACE_RETURN (true);
+    return TRACE_RETURN (StructAtOffset<typename T::LookupSubTable> (this, offset).sanitize (c, get_type ()));
+  }
+
+  protected:
+  union {
+  USHORT               format;         /* Format identifier */
+  ExtensionFormat1     format1;
+  } u;
+};
+
+
+/*
+ * GSUB/GPOS Common
+ */
+
+struct GSUBGPOS
+{
+  static const hb_tag_t GSUBTag        = HB_OT_TAG_GSUB;
+  static const hb_tag_t GPOSTag        = HB_OT_TAG_GPOS;
+
+  inline unsigned int get_script_count (void) const
+  { return (this+scriptList).len; }
+  inline const Tag& get_script_tag (unsigned int i) const
+  { return (this+scriptList).get_tag (i); }
+  inline unsigned int get_script_tags (unsigned int start_offset,
+                                      unsigned int *script_count /* IN/OUT */,
+                                      hb_tag_t     *script_tags /* OUT */) const
+  { return (this+scriptList).get_tags (start_offset, script_count, script_tags); }
+  inline const Script& get_script (unsigned int i) const
+  { return (this+scriptList)[i]; }
+  inline bool find_script_index (hb_tag_t tag, unsigned int *index) const
+  { return (this+scriptList).find_index (tag, index); }
+
+  inline unsigned int get_feature_count (void) const
+  { return (this+featureList).len; }
+  inline hb_tag_t get_feature_tag (unsigned int i) const
+  { return i == Index::NOT_FOUND_INDEX ? HB_TAG_NONE : (this+featureList).get_tag (i); }
+  inline unsigned int get_feature_tags (unsigned int start_offset,
+                                       unsigned int *feature_count /* IN/OUT */,
+                                       hb_tag_t     *feature_tags /* OUT */) const
+  { return (this+featureList).get_tags (start_offset, feature_count, feature_tags); }
+  inline const Feature& get_feature (unsigned int i) const
+  { return (this+featureList)[i]; }
+  inline bool find_feature_index (hb_tag_t tag, unsigned int *index) const
+  { return (this+featureList).find_index (tag, index); }
+
+  inline unsigned int get_lookup_count (void) const
+  { return (this+lookupList).len; }
+  inline const Lookup& get_lookup (unsigned int i) const
+  { return (this+lookupList)[i]; }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (version.sanitize (c) && likely (version.major == 1) &&
+                        scriptList.sanitize (c, this) &&
+                        featureList.sanitize (c, this) &&
+                        lookupList.sanitize (c, this));
+  }
+
+  protected:
+  FixedVersion version;        /* Version of the GSUB/GPOS table--initially set
+                                * to 0x00010000u */
+  OffsetTo<ScriptList>
+               scriptList;     /* ScriptList table */
+  OffsetTo<FeatureList>
+               featureList;    /* FeatureList table */
+  OffsetTo<LookupList>
+               lookupList;     /* LookupList table */
+  public:
+  DEFINE_SIZE_STATIC (10);
+};
+
+
+} /* namespace OT */
+
+
+#endif /* HB_OT_LAYOUT_GSUBGPOS_PRIVATE_HH */
diff --git a/src/hb-ot-layout-jstf-table.hh b/src/hb-ot-layout-jstf-table.hh
new file mode 100644 (file)
index 0000000..67a6df5
--- /dev/null
@@ -0,0 +1,229 @@
+/*
+ * Copyright © 2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_LAYOUT_JSTF_TABLE_HH
+#define HB_OT_LAYOUT_JSTF_TABLE_HH
+
+#include "hb-open-type-private.hh"
+#include "hb-ot-layout-gpos-table.hh"
+
+
+namespace OT {
+
+
+/*
+ * JstfModList -- Justification Modification List Tables
+ */
+
+typedef IndexArray JstfModList;
+
+
+/*
+ * JstfMax -- Justification Maximum Table
+ */
+
+typedef OffsetListOf<PosLookup> JstfMax;
+
+
+/*
+ * JstfPriority -- Justification Priority Table
+ */
+
+struct JstfPriority
+{
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) &&
+                        shrinkageEnableGSUB.sanitize (c, this) &&
+                        shrinkageDisableGSUB.sanitize (c, this) &&
+                        shrinkageEnableGPOS.sanitize (c, this) &&
+                        shrinkageDisableGPOS.sanitize (c, this) &&
+                        shrinkageJstfMax.sanitize (c, this) &&
+                        extensionEnableGSUB.sanitize (c, this) &&
+                        extensionDisableGSUB.sanitize (c, this) &&
+                        extensionEnableGPOS.sanitize (c, this) &&
+                        extensionDisableGPOS.sanitize (c, this) &&
+                        extensionJstfMax.sanitize (c, this));
+  }
+
+  protected:
+  OffsetTo<JstfModList>
+               shrinkageEnableGSUB;    /* Offset to Shrinkage Enable GSUB
+                                        * JstfModList table--from beginning of
+                                        * JstfPriority table--may be NULL */
+  OffsetTo<JstfModList>
+               shrinkageDisableGSUB;   /* Offset to Shrinkage Disable GSUB
+                                        * JstfModList table--from beginning of
+                                        * JstfPriority table--may be NULL */
+  OffsetTo<JstfModList>
+               shrinkageEnableGPOS;    /* Offset to Shrinkage Enable GPOS
+                                        * JstfModList table--from beginning of
+                                        * JstfPriority table--may be NULL */
+  OffsetTo<JstfModList>
+               shrinkageDisableGPOS;   /* Offset to Shrinkage Disable GPOS
+                                        * JstfModList table--from beginning of
+                                        * JstfPriority table--may be NULL */
+  OffsetTo<JstfMax>
+               shrinkageJstfMax;       /* Offset to Shrinkage JstfMax table--
+                                        * from beginning of JstfPriority table
+                                        * --may be NULL */
+  OffsetTo<JstfModList>
+               extensionEnableGSUB;    /* Offset to Extension Enable GSUB
+                                        * JstfModList table--from beginning of
+                                        * JstfPriority table--may be NULL */
+  OffsetTo<JstfModList>
+               extensionDisableGSUB;   /* Offset to Extension Disable GSUB
+                                        * JstfModList table--from beginning of
+                                        * JstfPriority table--may be NULL */
+  OffsetTo<JstfModList>
+               extensionEnableGPOS;    /* Offset to Extension Enable GPOS
+                                        * JstfModList table--from beginning of
+                                        * JstfPriority table--may be NULL */
+  OffsetTo<JstfModList>
+               extensionDisableGPOS;   /* Offset to Extension Disable GPOS
+                                        * JstfModList table--from beginning of
+                                        * JstfPriority table--may be NULL */
+  OffsetTo<JstfMax>
+               extensionJstfMax;       /* Offset to Extension JstfMax table--
+                                        * from beginning of JstfPriority table
+                                        * --may be NULL */
+
+  public:
+  DEFINE_SIZE_STATIC (20);
+};
+
+
+/*
+ * JstfLangSys -- Justification Language System Table
+ */
+
+struct JstfLangSys : OffsetListOf<JstfPriority>
+{
+  inline bool sanitize (hb_sanitize_context_t *c,
+                       const Record<JstfLangSys>::sanitize_closure_t * = NULL) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (OffsetListOf<JstfPriority>::sanitize (c));
+  }
+};
+
+
+/*
+ * ExtenderGlyphs -- Extender Glyph Table
+ */
+
+typedef SortedArrayOf<GlyphID> ExtenderGlyphs;
+
+
+/*
+ * JstfScript -- The Justification Table
+ */
+
+struct JstfScript
+{
+  inline unsigned int get_lang_sys_count (void) const
+  { return langSys.len; }
+  inline const Tag& get_lang_sys_tag (unsigned int i) const
+  { return langSys.get_tag (i); }
+  inline unsigned int get_lang_sys_tags (unsigned int start_offset,
+                                        unsigned int *lang_sys_count /* IN/OUT */,
+                                        hb_tag_t     *lang_sys_tags /* OUT */) const
+  { return langSys.get_tags (start_offset, lang_sys_count, lang_sys_tags); }
+  inline const JstfLangSys& get_lang_sys (unsigned int i) const
+  {
+    if (i == Index::NOT_FOUND_INDEX) return get_default_lang_sys ();
+    return this+langSys[i].offset;
+  }
+  inline bool find_lang_sys_index (hb_tag_t tag, unsigned int *index) const
+  { return langSys.find_index (tag, index); }
+
+  inline bool has_default_lang_sys (void) const { return defaultLangSys != 0; }
+  inline const JstfLangSys& get_default_lang_sys (void) const { return this+defaultLangSys; }
+
+  inline bool sanitize (hb_sanitize_context_t *c,
+                       const Record<JstfScript>::sanitize_closure_t * = NULL) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (extenderGlyphs.sanitize (c, this) &&
+                        defaultLangSys.sanitize (c, this) &&
+                        langSys.sanitize (c, this));
+  }
+
+  protected:
+  OffsetTo<ExtenderGlyphs>
+               extenderGlyphs; /* Offset to ExtenderGlyph table--from beginning
+                                * of JstfScript table-may be NULL */
+  OffsetTo<JstfLangSys>
+               defaultLangSys; /* Offset to DefaultJstfLangSys table--from
+                                * beginning of JstfScript table--may be Null */
+  RecordArrayOf<JstfLangSys>
+               langSys;        /* Array of JstfLangSysRecords--listed
+                                * alphabetically by LangSysTag */
+  public:
+  DEFINE_SIZE_ARRAY (6, langSys);
+};
+
+
+/*
+ * JSTF -- The Justification Table
+ */
+
+struct JSTF
+{
+  static const hb_tag_t tableTag       = HB_OT_TAG_JSTF;
+
+  inline unsigned int get_script_count (void) const
+  { return scriptList.len; }
+  inline const Tag& get_script_tag (unsigned int i) const
+  { return scriptList.get_tag (i); }
+  inline unsigned int get_script_tags (unsigned int start_offset,
+                                      unsigned int *script_count /* IN/OUT */,
+                                      hb_tag_t     *script_tags /* OUT */) const
+  { return scriptList.get_tags (start_offset, script_count, script_tags); }
+  inline const JstfScript& get_script (unsigned int i) const
+  { return this+scriptList[i].offset; }
+  inline bool find_script_index (hb_tag_t tag, unsigned int *index) const
+  { return scriptList.find_index (tag, index); }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (version.sanitize (c) && likely (version.major == 1) &&
+                        scriptList.sanitize (c, this));
+  }
+
+  protected:
+  FixedVersion version;        /* Version of the JSTF table--initially set
+                                * to 0x00010000u */
+  RecordArrayOf<JstfScript>
+               scriptList;     /* Array of JstfScripts--listed
+                                * alphabetically by ScriptTag */
+  public:
+  DEFINE_SIZE_ARRAY (6, scriptList);
+};
+
+
+} /* namespace OT */
+
+
+#endif /* HB_OT_LAYOUT_JSTF_TABLE_HH */
diff --git a/src/hb-ot-layout-private.hh b/src/hb-ot-layout-private.hh
new file mode 100644 (file)
index 0000000..ae7daa6
--- /dev/null
@@ -0,0 +1,460 @@
+/*
+ * Copyright © 2007,2008,2009  Red Hat, Inc.
+ * Copyright © 2012,2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_LAYOUT_PRIVATE_HH
+#define HB_OT_LAYOUT_PRIVATE_HH
+
+#include "hb-private.hh"
+
+#include "hb-font-private.hh"
+#include "hb-buffer-private.hh"
+#include "hb-set-private.hh"
+
+
+/*
+ * GDEF
+ */
+
+typedef enum
+{
+  /* The following three match LookupFlags::Ignore* numbers. */
+  HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH  = 0x02u,
+  HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE    = 0x04u,
+  HB_OT_LAYOUT_GLYPH_PROPS_MARK                = 0x08u,
+
+  /* The following are used internally; not derived from GDEF. */
+  HB_OT_LAYOUT_GLYPH_PROPS_SUBSTITUTED = 0x10u,
+  HB_OT_LAYOUT_GLYPH_PROPS_LIGATED     = 0x20u,
+  HB_OT_LAYOUT_GLYPH_PROPS_MULTIPLIED  = 0x40u,
+
+  HB_OT_LAYOUT_GLYPH_PROPS_PRESERVE     = HB_OT_LAYOUT_GLYPH_PROPS_SUBSTITUTED |
+                                         HB_OT_LAYOUT_GLYPH_PROPS_LIGATED |
+                                         HB_OT_LAYOUT_GLYPH_PROPS_MULTIPLIED
+} hb_ot_layout_glyph_class_mask_t;
+
+
+/*
+ * GSUB/GPOS
+ */
+
+HB_INTERNAL hb_bool_t
+hb_ot_layout_lookup_would_substitute_fast (hb_face_t            *face,
+                                          unsigned int          lookup_index,
+                                          const hb_codepoint_t *glyphs,
+                                          unsigned int          glyphs_length,
+                                          hb_bool_t             zero_context);
+
+
+/* Should be called before all the substitute_lookup's are done. */
+HB_INTERNAL void
+hb_ot_layout_substitute_start (hb_font_t    *font,
+                              hb_buffer_t  *buffer);
+
+
+struct hb_ot_layout_lookup_accelerator_t;
+
+namespace OT {
+  struct hb_apply_context_t;
+  struct SubstLookup;
+}
+
+HB_INTERNAL void
+hb_ot_layout_substitute_lookup (OT::hb_apply_context_t *c,
+                               const OT::SubstLookup &lookup,
+                               const hb_ot_layout_lookup_accelerator_t &accel);
+
+
+/* Should be called after all the substitute_lookup's are done */
+HB_INTERNAL void
+hb_ot_layout_substitute_finish (hb_font_t    *font,
+                               hb_buffer_t  *buffer);
+
+
+/* Should be called before all the position_lookup's are done.  Resets positions to zero. */
+HB_INTERNAL void
+hb_ot_layout_position_start (hb_font_t    *font,
+                            hb_buffer_t  *buffer);
+
+/* Should be called after all the position_lookup's are done */
+HB_INTERNAL void
+hb_ot_layout_position_finish (hb_font_t    *font,
+                             hb_buffer_t  *buffer);
+
+
+
+/*
+ * hb_ot_layout_t
+ */
+
+namespace OT {
+  struct GDEF;
+  struct GSUB;
+  struct GPOS;
+}
+
+struct hb_ot_layout_lookup_accelerator_t
+{
+  template <typename TLookup>
+  inline void init (const TLookup &lookup)
+  {
+    digest.init ();
+    lookup.add_coverage (&digest);
+  }
+
+  template <typename TLookup>
+  inline void fini (const TLookup &lookup HB_UNUSED)
+  {
+  }
+
+  hb_set_digest_t digest;
+};
+
+struct hb_ot_layout_t
+{
+  hb_blob_t *gdef_blob;
+  hb_blob_t *gsub_blob;
+  hb_blob_t *gpos_blob;
+
+  const struct OT::GDEF *gdef;
+  const struct OT::GSUB *gsub;
+  const struct OT::GPOS *gpos;
+
+  unsigned int gsub_lookup_count;
+  unsigned int gpos_lookup_count;
+
+  hb_ot_layout_lookup_accelerator_t *gsub_accels;
+  hb_ot_layout_lookup_accelerator_t *gpos_accels;
+};
+
+
+HB_INTERNAL hb_ot_layout_t *
+_hb_ot_layout_create (hb_face_t *face);
+
+HB_INTERNAL void
+_hb_ot_layout_destroy (hb_ot_layout_t *layout);
+
+
+#define hb_ot_layout_from_face(face) ((hb_ot_layout_t *) face->shaper_data.ot)
+
+
+/*
+ * Buffer var routines.
+ */
+
+/* buffer var allocations, used during the entire shaping process */
+#define unicode_props0()       var2.u8[0]
+#define unicode_props1()       var2.u8[1]
+
+/* buffer var allocations, used during the GSUB/GPOS processing */
+#define glyph_props()          var1.u16[0] /* GDEF glyph properties */
+#define lig_props()            var1.u8[2] /* GSUB/GPOS ligature tracking */
+#define syllable()             var1.u8[3] /* GSUB/GPOS shaping boundaries */
+
+/* unicode_props */
+
+enum {
+  MASK0_ZWJ       = 0x20u,
+  MASK0_ZWNJ      = 0x40u,
+  MASK0_IGNORABLE = 0x80u,
+  MASK0_GEN_CAT   = 0x1Fu
+};
+
+static inline void
+_hb_glyph_info_set_unicode_props (hb_glyph_info_t *info, hb_unicode_funcs_t *unicode)
+{
+  /* XXX This shouldn't be inlined, or at least not while is_default_ignorable() is inline. */
+  info->unicode_props0() = ((unsigned int) unicode->general_category (info->codepoint)) |
+                          (unicode->is_default_ignorable (info->codepoint) ? MASK0_IGNORABLE : 0) |
+                          (info->codepoint == 0x200Cu ? MASK0_ZWNJ : 0) |
+                          (info->codepoint == 0x200Du ? MASK0_ZWJ : 0);
+  info->unicode_props1() = unicode->modified_combining_class (info->codepoint);
+}
+
+static inline void
+_hb_glyph_info_set_general_category (hb_glyph_info_t *info,
+                                    hb_unicode_general_category_t gen_cat)
+{
+  info->unicode_props0() = (unsigned int) gen_cat | ((info->unicode_props0()) & ~MASK0_GEN_CAT);
+}
+
+static inline hb_unicode_general_category_t
+_hb_glyph_info_get_general_category (const hb_glyph_info_t *info)
+{
+  return (hb_unicode_general_category_t) (info->unicode_props0() & MASK0_GEN_CAT);
+}
+
+static inline void
+_hb_glyph_info_set_modified_combining_class (hb_glyph_info_t *info,
+                                            unsigned int modified_class)
+{
+  info->unicode_props1() = modified_class;
+}
+
+static inline unsigned int
+_hb_glyph_info_get_modified_combining_class (const hb_glyph_info_t *info)
+{
+  return info->unicode_props1();
+}
+
+static inline hb_bool_t
+_hb_glyph_info_is_default_ignorable (const hb_glyph_info_t *info)
+{
+  return !!(info->unicode_props0() & MASK0_IGNORABLE);
+}
+
+static inline hb_bool_t
+_hb_glyph_info_is_zwnj (const hb_glyph_info_t *info)
+{
+  return !!(info->unicode_props0() & MASK0_ZWNJ);
+}
+
+static inline hb_bool_t
+_hb_glyph_info_is_zwj (const hb_glyph_info_t *info)
+{
+  return !!(info->unicode_props0() & MASK0_ZWJ);
+}
+
+static inline void
+_hb_glyph_info_flip_joiners (hb_glyph_info_t *info)
+{
+  info->unicode_props0() ^= MASK0_ZWNJ | MASK0_ZWJ;
+}
+
+/* lig_props: aka lig_id / lig_comp
+ *
+ * When a ligature is formed:
+ *
+ *   - The ligature glyph and any marks in between all the same newly allocated
+ *     lig_id,
+ *   - The ligature glyph will get lig_num_comps set to the number of components
+ *   - The marks get lig_comp > 0, reflecting which component of the ligature
+ *     they were applied to.
+ *   - This is used in GPOS to attach marks to the right component of a ligature
+ *     in MarkLigPos,
+ *   - Note that when marks are ligated together, much of the above is skipped
+ *     and the current lig_id reused.
+ *
+ * When a multiple-substitution is done:
+ *
+ *   - All resulting glyphs will have lig_id = 0,
+ *   - The resulting glyphs will have lig_comp = 0, 1, 2, ... respectively.
+ *   - This is used in GPOS to attach marks to the first component of a
+ *     multiple substitution in MarkBasePos.
+ *
+ * The numbers are also used in GPOS to do mark-to-mark positioning only
+ * to marks that belong to the same component of the same ligature.
+ */
+
+static inline void
+_hb_glyph_info_clear_lig_props (hb_glyph_info_t *info)
+{
+  info->lig_props() = 0;
+}
+
+#define IS_LIG_BASE 0x10
+
+static inline void
+_hb_glyph_info_set_lig_props_for_ligature (hb_glyph_info_t *info,
+                                          unsigned int lig_id,
+                                          unsigned int lig_num_comps)
+{
+  info->lig_props() = (lig_id << 5) | IS_LIG_BASE | (lig_num_comps & 0x0F);
+}
+
+static inline void
+_hb_glyph_info_set_lig_props_for_mark (hb_glyph_info_t *info,
+                                      unsigned int lig_id,
+                                      unsigned int lig_comp)
+{
+  info->lig_props() = (lig_id << 5) | (lig_comp & 0x0F);
+}
+
+static inline void
+_hb_glyph_info_set_lig_props_for_component (hb_glyph_info_t *info, unsigned int comp)
+{
+  _hb_glyph_info_set_lig_props_for_mark (info, 0, comp);
+}
+
+static inline unsigned int
+_hb_glyph_info_get_lig_id (const hb_glyph_info_t *info)
+{
+  return info->lig_props() >> 5;
+}
+
+static inline bool
+_hb_glyph_info_ligated_internal (const hb_glyph_info_t *info)
+{
+  return !!(info->lig_props() & IS_LIG_BASE);
+}
+
+static inline unsigned int
+_hb_glyph_info_get_lig_comp (const hb_glyph_info_t *info)
+{
+  if (_hb_glyph_info_ligated_internal (info))
+    return 0;
+  else
+    return info->lig_props() & 0x0F;
+}
+
+static inline unsigned int
+_hb_glyph_info_get_lig_num_comps (const hb_glyph_info_t *info)
+{
+  if ((info->glyph_props() & HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE) &&
+      _hb_glyph_info_ligated_internal (info))
+    return info->lig_props() & 0x0F;
+  else
+    return 1;
+}
+
+static inline uint8_t
+_hb_allocate_lig_id (hb_buffer_t *buffer) {
+  uint8_t lig_id = buffer->next_serial () & 0x07;
+  if (unlikely (!lig_id))
+    lig_id = _hb_allocate_lig_id (buffer); /* in case of overflow */
+  return lig_id;
+}
+
+/* glyph_props: */
+
+static inline void
+_hb_glyph_info_set_glyph_props (hb_glyph_info_t *info, unsigned int props)
+{
+  info->glyph_props() = props;
+}
+
+static inline unsigned int
+_hb_glyph_info_get_glyph_props (const hb_glyph_info_t *info)
+{
+  return info->glyph_props();
+}
+
+static inline bool
+_hb_glyph_info_is_base_glyph (const hb_glyph_info_t *info)
+{
+  return !!(info->glyph_props() & HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH);
+}
+
+static inline bool
+_hb_glyph_info_is_ligature (const hb_glyph_info_t *info)
+{
+  return !!(info->glyph_props() & HB_OT_LAYOUT_GLYPH_PROPS_LIGATURE);
+}
+
+static inline bool
+_hb_glyph_info_is_mark (const hb_glyph_info_t *info)
+{
+  return !!(info->glyph_props() & HB_OT_LAYOUT_GLYPH_PROPS_MARK);
+}
+
+static inline bool
+_hb_glyph_info_substituted (const hb_glyph_info_t *info)
+{
+  return !!(info->glyph_props() & HB_OT_LAYOUT_GLYPH_PROPS_SUBSTITUTED);
+}
+
+static inline bool
+_hb_glyph_info_ligated (const hb_glyph_info_t *info)
+{
+  return !!(info->glyph_props() & HB_OT_LAYOUT_GLYPH_PROPS_LIGATED);
+}
+
+static inline bool
+_hb_glyph_info_multiplied (const hb_glyph_info_t *info)
+{
+  return !!(info->glyph_props() & HB_OT_LAYOUT_GLYPH_PROPS_MULTIPLIED);
+}
+
+static inline bool
+_hb_glyph_info_ligated_and_didnt_multiply (const hb_glyph_info_t *info)
+{
+  return _hb_glyph_info_ligated (info) && !_hb_glyph_info_multiplied (info);
+}
+
+static inline void
+_hb_glyph_info_clear_ligated_and_multiplied (hb_glyph_info_t *info)
+{
+  info->glyph_props() &= ~(HB_OT_LAYOUT_GLYPH_PROPS_LIGATED |
+                          HB_OT_LAYOUT_GLYPH_PROPS_MULTIPLIED);
+}
+
+
+/* Allocation / deallocation. */
+
+static inline void
+_hb_buffer_allocate_unicode_vars (hb_buffer_t *buffer)
+{
+  HB_BUFFER_ALLOCATE_VAR (buffer, unicode_props0);
+  HB_BUFFER_ALLOCATE_VAR (buffer, unicode_props1);
+}
+
+static inline void
+_hb_buffer_deallocate_unicode_vars (hb_buffer_t *buffer)
+{
+  HB_BUFFER_DEALLOCATE_VAR (buffer, unicode_props0);
+  HB_BUFFER_DEALLOCATE_VAR (buffer, unicode_props1);
+}
+
+static inline void
+_hb_buffer_assert_unicode_vars (hb_buffer_t *buffer)
+{
+  HB_BUFFER_ASSERT_VAR (buffer, unicode_props0);
+  HB_BUFFER_ASSERT_VAR (buffer, unicode_props1);
+}
+
+static inline void
+_hb_buffer_allocate_gsubgpos_vars (hb_buffer_t *buffer)
+{
+  HB_BUFFER_ALLOCATE_VAR (buffer, glyph_props);
+  HB_BUFFER_ALLOCATE_VAR (buffer, lig_props);
+  HB_BUFFER_ALLOCATE_VAR (buffer, syllable);
+}
+
+static inline void
+_hb_buffer_deallocate_gsubgpos_vars (hb_buffer_t *buffer)
+{
+  HB_BUFFER_DEALLOCATE_VAR (buffer, syllable);
+  HB_BUFFER_DEALLOCATE_VAR (buffer, lig_props);
+  HB_BUFFER_DEALLOCATE_VAR (buffer, glyph_props);
+}
+
+static inline void
+_hb_buffer_assert_gsubgpos_vars (hb_buffer_t *buffer)
+{
+  HB_BUFFER_ASSERT_VAR (buffer, glyph_props);
+  HB_BUFFER_ASSERT_VAR (buffer, lig_props);
+  HB_BUFFER_ASSERT_VAR (buffer, syllable);
+}
+
+/* Make sure no one directly touches our props... */
+#undef unicode_props0
+#undef unicode_props1
+#undef lig_props
+#undef glyph_props
+
+
+#endif /* HB_OT_LAYOUT_PRIVATE_HH */
diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc
new file mode 100644 (file)
index 0000000..661d90e
--- /dev/null
@@ -0,0 +1,950 @@
+/*
+ * Copyright © 1998-2004  David Turner and Werner Lemberg
+ * Copyright © 2006  Behdad Esfahbod
+ * Copyright © 2007,2008,2009  Red Hat, Inc.
+ * Copyright © 2012,2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-ot-layout-private.hh"
+
+#include "hb-ot-layout-gdef-table.hh"
+#include "hb-ot-layout-gsub-table.hh"
+#include "hb-ot-layout-gpos-table.hh"
+#include "hb-ot-layout-jstf-table.hh"
+
+#include "hb-ot-map-private.hh"
+
+#include <stdlib.h>
+#include <string.h>
+
+
+HB_SHAPER_DATA_ENSURE_DECLARE(ot, face)
+
+hb_ot_layout_t *
+_hb_ot_layout_create (hb_face_t *face)
+{
+  hb_ot_layout_t *layout = (hb_ot_layout_t *) calloc (1, sizeof (hb_ot_layout_t));
+  if (unlikely (!layout))
+    return NULL;
+
+  layout->gdef_blob = OT::Sanitizer<OT::GDEF>::sanitize (face->reference_table (HB_OT_TAG_GDEF));
+  layout->gdef = OT::Sanitizer<OT::GDEF>::lock_instance (layout->gdef_blob);
+
+  layout->gsub_blob = OT::Sanitizer<OT::GSUB>::sanitize (face->reference_table (HB_OT_TAG_GSUB));
+  layout->gsub = OT::Sanitizer<OT::GSUB>::lock_instance (layout->gsub_blob);
+
+  layout->gpos_blob = OT::Sanitizer<OT::GPOS>::sanitize (face->reference_table (HB_OT_TAG_GPOS));
+  layout->gpos = OT::Sanitizer<OT::GPOS>::lock_instance (layout->gpos_blob);
+
+  layout->gsub_lookup_count = layout->gsub->get_lookup_count ();
+  layout->gpos_lookup_count = layout->gpos->get_lookup_count ();
+
+  layout->gsub_accels = (hb_ot_layout_lookup_accelerator_t *) calloc (layout->gsub->get_lookup_count (), sizeof (hb_ot_layout_lookup_accelerator_t));
+  layout->gpos_accels = (hb_ot_layout_lookup_accelerator_t *) calloc (layout->gpos->get_lookup_count (), sizeof (hb_ot_layout_lookup_accelerator_t));
+
+  if (unlikely ((layout->gsub_lookup_count && !layout->gsub_accels) ||
+               (layout->gpos_lookup_count && !layout->gpos_accels)))
+  {
+    _hb_ot_layout_destroy (layout);
+    return NULL;
+  }
+
+  for (unsigned int i = 0; i < layout->gsub_lookup_count; i++)
+    layout->gsub_accels[i].init (layout->gsub->get_lookup (i));
+  for (unsigned int i = 0; i < layout->gpos_lookup_count; i++)
+    layout->gpos_accels[i].init (layout->gpos->get_lookup (i));
+
+  return layout;
+}
+
+void
+_hb_ot_layout_destroy (hb_ot_layout_t *layout)
+{
+  for (unsigned int i = 0; i < layout->gsub_lookup_count; i++)
+    layout->gsub_accels[i].fini (layout->gsub->get_lookup (i));
+  for (unsigned int i = 0; i < layout->gpos_lookup_count; i++)
+    layout->gpos_accels[i].fini (layout->gpos->get_lookup (i));
+
+  free (layout->gsub_accels);
+  free (layout->gpos_accels);
+
+  hb_blob_destroy (layout->gdef_blob);
+  hb_blob_destroy (layout->gsub_blob);
+  hb_blob_destroy (layout->gpos_blob);
+
+  free (layout);
+}
+
+static inline const OT::GDEF&
+_get_gdef (hb_face_t *face)
+{
+  if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return OT::Null(OT::GDEF);
+  return *hb_ot_layout_from_face (face)->gdef;
+}
+static inline const OT::GSUB&
+_get_gsub (hb_face_t *face)
+{
+  if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return OT::Null(OT::GSUB);
+  return *hb_ot_layout_from_face (face)->gsub;
+}
+static inline const OT::GPOS&
+_get_gpos (hb_face_t *face)
+{
+  if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return OT::Null(OT::GPOS);
+  return *hb_ot_layout_from_face (face)->gpos;
+}
+
+
+/*
+ * GDEF
+ */
+
+hb_bool_t
+hb_ot_layout_has_glyph_classes (hb_face_t *face)
+{
+  return _get_gdef (face).has_glyph_classes ();
+}
+
+hb_ot_layout_glyph_class_t
+hb_ot_layout_get_glyph_class (hb_face_t      *face,
+                             hb_codepoint_t  glyph)
+{
+  return (hb_ot_layout_glyph_class_t) _get_gdef (face).get_glyph_class (glyph);
+}
+
+void
+hb_ot_layout_get_glyphs_in_class (hb_face_t                  *face,
+                                 hb_ot_layout_glyph_class_t  klass,
+                                 hb_set_t                   *glyphs /* OUT */)
+{
+  return _get_gdef (face).get_glyphs_in_class (klass, glyphs);
+}
+
+unsigned int
+hb_ot_layout_get_attach_points (hb_face_t      *face,
+                               hb_codepoint_t  glyph,
+                               unsigned int    start_offset,
+                               unsigned int   *point_count /* IN/OUT */,
+                               unsigned int   *point_array /* OUT */)
+{
+  return _get_gdef (face).get_attach_points (glyph, start_offset, point_count, point_array);
+}
+
+unsigned int
+hb_ot_layout_get_ligature_carets (hb_font_t      *font,
+                                 hb_direction_t  direction,
+                                 hb_codepoint_t  glyph,
+                                 unsigned int    start_offset,
+                                 unsigned int   *caret_count /* IN/OUT */,
+                                 int            *caret_array /* OUT */)
+{
+  return _get_gdef (font->face).get_lig_carets (font, direction, glyph, start_offset, caret_count, caret_array);
+}
+
+
+/*
+ * GSUB/GPOS
+ */
+
+static const OT::GSUBGPOS&
+get_gsubgpos_table (hb_face_t *face,
+                   hb_tag_t   table_tag)
+{
+  switch (table_tag) {
+    case HB_OT_TAG_GSUB: return _get_gsub (face);
+    case HB_OT_TAG_GPOS: return _get_gpos (face);
+    default:             return OT::Null(OT::GSUBGPOS);
+  }
+}
+
+
+unsigned int
+hb_ot_layout_table_get_script_tags (hb_face_t    *face,
+                                   hb_tag_t      table_tag,
+                                   unsigned int  start_offset,
+                                   unsigned int *script_count /* IN/OUT */,
+                                   hb_tag_t     *script_tags /* OUT */)
+{
+  const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag);
+
+  return g.get_script_tags (start_offset, script_count, script_tags);
+}
+
+#define HB_OT_TAG_LATIN_SCRIPT         HB_TAG ('l', 'a', 't', 'n')
+
+hb_bool_t
+hb_ot_layout_table_find_script (hb_face_t    *face,
+                               hb_tag_t      table_tag,
+                               hb_tag_t      script_tag,
+                               unsigned int *script_index)
+{
+  ASSERT_STATIC (OT::Index::NOT_FOUND_INDEX == HB_OT_LAYOUT_NO_SCRIPT_INDEX);
+  const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag);
+
+  if (g.find_script_index (script_tag, script_index))
+    return true;
+
+  /* try finding 'DFLT' */
+  if (g.find_script_index (HB_OT_TAG_DEFAULT_SCRIPT, script_index))
+    return false;
+
+  /* try with 'dflt'; MS site has had typos and many fonts use it now :(.
+   * including many versions of DejaVu Sans Mono! */
+  if (g.find_script_index (HB_OT_TAG_DEFAULT_LANGUAGE, script_index))
+    return false;
+
+  /* try with 'latn'; some old fonts put their features there even though
+     they're really trying to support Thai, for example :( */
+  if (g.find_script_index (HB_OT_TAG_LATIN_SCRIPT, script_index))
+    return false;
+
+  if (script_index) *script_index = HB_OT_LAYOUT_NO_SCRIPT_INDEX;
+  return false;
+}
+
+hb_bool_t
+hb_ot_layout_table_choose_script (hb_face_t      *face,
+                                 hb_tag_t        table_tag,
+                                 const hb_tag_t *script_tags,
+                                 unsigned int   *script_index,
+                                 hb_tag_t       *chosen_script)
+{
+  ASSERT_STATIC (OT::Index::NOT_FOUND_INDEX == HB_OT_LAYOUT_NO_SCRIPT_INDEX);
+  const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag);
+
+  while (*script_tags)
+  {
+    if (g.find_script_index (*script_tags, script_index)) {
+      if (chosen_script)
+        *chosen_script = *script_tags;
+      return true;
+    }
+    script_tags++;
+  }
+
+  /* try finding 'DFLT' */
+  if (g.find_script_index (HB_OT_TAG_DEFAULT_SCRIPT, script_index)) {
+    if (chosen_script)
+      *chosen_script = HB_OT_TAG_DEFAULT_SCRIPT;
+    return false;
+  }
+
+  /* try with 'dflt'; MS site has had typos and many fonts use it now :( */
+  if (g.find_script_index (HB_OT_TAG_DEFAULT_LANGUAGE, script_index)) {
+    if (chosen_script)
+      *chosen_script = HB_OT_TAG_DEFAULT_LANGUAGE;
+    return false;
+  }
+
+  /* try with 'latn'; some old fonts put their features there even though
+     they're really trying to support Thai, for example :( */
+  if (g.find_script_index (HB_OT_TAG_LATIN_SCRIPT, script_index)) {
+    if (chosen_script)
+      *chosen_script = HB_OT_TAG_LATIN_SCRIPT;
+    return false;
+  }
+
+  if (script_index) *script_index = HB_OT_LAYOUT_NO_SCRIPT_INDEX;
+  if (chosen_script)
+    *chosen_script = HB_OT_LAYOUT_NO_SCRIPT_INDEX;
+  return false;
+}
+
+unsigned int
+hb_ot_layout_table_get_feature_tags (hb_face_t    *face,
+                                    hb_tag_t      table_tag,
+                                    unsigned int  start_offset,
+                                    unsigned int *feature_count /* IN/OUT */,
+                                    hb_tag_t     *feature_tags /* OUT */)
+{
+  const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag);
+
+  return g.get_feature_tags (start_offset, feature_count, feature_tags);
+}
+
+
+unsigned int
+hb_ot_layout_script_get_language_tags (hb_face_t    *face,
+                                      hb_tag_t      table_tag,
+                                      unsigned int  script_index,
+                                      unsigned int  start_offset,
+                                      unsigned int *language_count /* IN/OUT */,
+                                      hb_tag_t     *language_tags /* OUT */)
+{
+  const OT::Script &s = get_gsubgpos_table (face, table_tag).get_script (script_index);
+
+  return s.get_lang_sys_tags (start_offset, language_count, language_tags);
+}
+
+hb_bool_t
+hb_ot_layout_script_find_language (hb_face_t    *face,
+                                  hb_tag_t      table_tag,
+                                  unsigned int  script_index,
+                                  hb_tag_t      language_tag,
+                                  unsigned int *language_index)
+{
+  ASSERT_STATIC (OT::Index::NOT_FOUND_INDEX == HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX);
+  const OT::Script &s = get_gsubgpos_table (face, table_tag).get_script (script_index);
+
+  if (s.find_lang_sys_index (language_tag, language_index))
+    return true;
+
+  /* try with 'dflt'; MS site has had typos and many fonts use it now :( */
+  if (s.find_lang_sys_index (HB_OT_TAG_DEFAULT_LANGUAGE, language_index))
+    return false;
+
+  if (language_index) *language_index = HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX;
+  return false;
+}
+
+hb_bool_t
+hb_ot_layout_language_get_required_feature_index (hb_face_t    *face,
+                                                 hb_tag_t      table_tag,
+                                                 unsigned int  script_index,
+                                                 unsigned int  language_index,
+                                                 unsigned int *feature_index)
+{
+  return hb_ot_layout_language_get_required_feature (face,
+                                                    table_tag,
+                                                    script_index,
+                                                    language_index,
+                                                    feature_index,
+                                                    NULL);
+}
+
+hb_bool_t
+hb_ot_layout_language_get_required_feature (hb_face_t    *face,
+                                           hb_tag_t      table_tag,
+                                           unsigned int  script_index,
+                                           unsigned int  language_index,
+                                           unsigned int *feature_index,
+                                           hb_tag_t     *feature_tag)
+{
+  const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag);
+  const OT::LangSys &l = g.get_script (script_index).get_lang_sys (language_index);
+
+  unsigned int index = l.get_required_feature_index ();
+  if (feature_index) *feature_index = index;
+  if (feature_tag) *feature_tag = g.get_feature_tag (index);
+
+  return l.has_required_feature ();
+}
+
+unsigned int
+hb_ot_layout_language_get_feature_indexes (hb_face_t    *face,
+                                          hb_tag_t      table_tag,
+                                          unsigned int  script_index,
+                                          unsigned int  language_index,
+                                          unsigned int  start_offset,
+                                          unsigned int *feature_count /* IN/OUT */,
+                                          unsigned int *feature_indexes /* OUT */)
+{
+  const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag);
+  const OT::LangSys &l = g.get_script (script_index).get_lang_sys (language_index);
+
+  return l.get_feature_indexes (start_offset, feature_count, feature_indexes);
+}
+
+unsigned int
+hb_ot_layout_language_get_feature_tags (hb_face_t    *face,
+                                       hb_tag_t      table_tag,
+                                       unsigned int  script_index,
+                                       unsigned int  language_index,
+                                       unsigned int  start_offset,
+                                       unsigned int *feature_count /* IN/OUT */,
+                                       hb_tag_t     *feature_tags /* OUT */)
+{
+  const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag);
+  const OT::LangSys &l = g.get_script (script_index).get_lang_sys (language_index);
+
+  ASSERT_STATIC (sizeof (unsigned int) == sizeof (hb_tag_t));
+  unsigned int ret = l.get_feature_indexes (start_offset, feature_count, (unsigned int *) feature_tags);
+
+  if (feature_tags) {
+    unsigned int count = *feature_count;
+    for (unsigned int i = 0; i < count; i++)
+      feature_tags[i] = g.get_feature_tag ((unsigned int) feature_tags[i]);
+  }
+
+  return ret;
+}
+
+
+hb_bool_t
+hb_ot_layout_language_find_feature (hb_face_t    *face,
+                                   hb_tag_t      table_tag,
+                                   unsigned int  script_index,
+                                   unsigned int  language_index,
+                                   hb_tag_t      feature_tag,
+                                   unsigned int *feature_index)
+{
+  ASSERT_STATIC (OT::Index::NOT_FOUND_INDEX == HB_OT_LAYOUT_NO_FEATURE_INDEX);
+  const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag);
+  const OT::LangSys &l = g.get_script (script_index).get_lang_sys (language_index);
+
+  unsigned int num_features = l.get_feature_count ();
+  for (unsigned int i = 0; i < num_features; i++) {
+    unsigned int f_index = l.get_feature_index (i);
+
+    if (feature_tag == g.get_feature_tag (f_index)) {
+      if (feature_index) *feature_index = f_index;
+      return true;
+    }
+  }
+
+  if (feature_index) *feature_index = HB_OT_LAYOUT_NO_FEATURE_INDEX;
+  return false;
+}
+
+unsigned int
+hb_ot_layout_feature_get_lookups (hb_face_t    *face,
+                                 hb_tag_t      table_tag,
+                                 unsigned int  feature_index,
+                                 unsigned int  start_offset,
+                                 unsigned int *lookup_count /* IN/OUT */,
+                                 unsigned int *lookup_indexes /* OUT */)
+{
+  const OT::GSUBGPOS &g = get_gsubgpos_table (face, table_tag);
+  const OT::Feature &f = g.get_feature (feature_index);
+
+  return f.get_lookup_indexes (start_offset, lookup_count, lookup_indexes);
+}
+
+unsigned int
+hb_ot_layout_table_get_lookup_count (hb_face_t    *face,
+                                    hb_tag_t      table_tag)
+{
+  switch (table_tag)
+  {
+    case HB_OT_TAG_GSUB:
+    {
+      return hb_ot_layout_from_face (face)->gsub_lookup_count;
+    }
+    case HB_OT_TAG_GPOS:
+    {
+      return hb_ot_layout_from_face (face)->gpos_lookup_count;
+    }
+  }
+  return 0;
+}
+
+static void
+_hb_ot_layout_collect_lookups_lookups (hb_face_t      *face,
+                                      hb_tag_t        table_tag,
+                                      unsigned int    feature_index,
+                                      hb_set_t       *lookup_indexes /* OUT */)
+{
+  unsigned int lookup_indices[32];
+  unsigned int offset, len;
+
+  offset = 0;
+  do {
+    len = ARRAY_LENGTH (lookup_indices);
+    hb_ot_layout_feature_get_lookups (face,
+                                     table_tag,
+                                     feature_index,
+                                     offset, &len,
+                                     lookup_indices);
+
+    for (unsigned int i = 0; i < len; i++)
+      lookup_indexes->add (lookup_indices[i]);
+
+    offset += len;
+  } while (len == ARRAY_LENGTH (lookup_indices));
+}
+
+static void
+_hb_ot_layout_collect_lookups_features (hb_face_t      *face,
+                                       hb_tag_t        table_tag,
+                                       unsigned int    script_index,
+                                       unsigned int    language_index,
+                                       const hb_tag_t *features,
+                                       hb_set_t       *lookup_indexes /* OUT */)
+{
+  if (!features)
+  {
+    unsigned int required_feature_index;
+    if (hb_ot_layout_language_get_required_feature (face,
+                                                   table_tag,
+                                                   script_index,
+                                                   language_index,
+                                                   &required_feature_index,
+                                                   NULL))
+      _hb_ot_layout_collect_lookups_lookups (face,
+                                            table_tag,
+                                            required_feature_index,
+                                            lookup_indexes);
+
+    /* All features */
+    unsigned int feature_indices[32];
+    unsigned int offset, len;
+
+    offset = 0;
+    do {
+      len = ARRAY_LENGTH (feature_indices);
+      hb_ot_layout_language_get_feature_indexes (face,
+                                                table_tag,
+                                                script_index,
+                                                language_index,
+                                                offset, &len,
+                                                feature_indices);
+
+      for (unsigned int i = 0; i < len; i++)
+       _hb_ot_layout_collect_lookups_lookups (face,
+                                              table_tag,
+                                              feature_indices[i],
+                                              lookup_indexes);
+
+      offset += len;
+    } while (len == ARRAY_LENGTH (feature_indices));
+  }
+  else
+  {
+    for (; *features; features++)
+    {
+      unsigned int feature_index;
+      if (hb_ot_layout_language_find_feature (face,
+                                             table_tag,
+                                             script_index,
+                                             language_index,
+                                             *features,
+                                             &feature_index))
+        _hb_ot_layout_collect_lookups_lookups (face,
+                                              table_tag,
+                                              feature_index,
+                                              lookup_indexes);
+    }
+  }
+}
+
+static void
+_hb_ot_layout_collect_lookups_languages (hb_face_t      *face,
+                                        hb_tag_t        table_tag,
+                                        unsigned int    script_index,
+                                        const hb_tag_t *languages,
+                                        const hb_tag_t *features,
+                                        hb_set_t       *lookup_indexes /* OUT */)
+{
+  _hb_ot_layout_collect_lookups_features (face,
+                                         table_tag,
+                                         script_index,
+                                         HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX,
+                                         features,
+                                         lookup_indexes);
+
+  if (!languages)
+  {
+    /* All languages */
+    unsigned int count = hb_ot_layout_script_get_language_tags (face,
+                                                               table_tag,
+                                                               script_index,
+                                                               0, NULL, NULL);
+    for (unsigned int language_index = 0; language_index < count; language_index++)
+      _hb_ot_layout_collect_lookups_features (face,
+                                             table_tag,
+                                             script_index,
+                                             language_index,
+                                             features,
+                                             lookup_indexes);
+  }
+  else
+  {
+    for (; *languages; languages++)
+    {
+      unsigned int language_index;
+      if (hb_ot_layout_script_find_language (face,
+                                            table_tag,
+                                            script_index,
+                                            *languages,
+                                            &language_index))
+        _hb_ot_layout_collect_lookups_features (face,
+                                               table_tag,
+                                               script_index,
+                                               language_index,
+                                               features,
+                                               lookup_indexes);
+    }
+  }
+}
+
+void
+hb_ot_layout_collect_lookups (hb_face_t      *face,
+                             hb_tag_t        table_tag,
+                             const hb_tag_t *scripts,
+                             const hb_tag_t *languages,
+                             const hb_tag_t *features,
+                             hb_set_t       *lookup_indexes /* OUT */)
+{
+  if (!scripts)
+  {
+    /* All scripts */
+    unsigned int count = hb_ot_layout_table_get_script_tags (face,
+                                                            table_tag,
+                                                            0, NULL, NULL);
+    for (unsigned int script_index = 0; script_index < count; script_index++)
+      _hb_ot_layout_collect_lookups_languages (face,
+                                              table_tag,
+                                              script_index,
+                                              languages,
+                                              features,
+                                              lookup_indexes);
+  }
+  else
+  {
+    for (; *scripts; scripts++)
+    {
+      unsigned int script_index;
+      if (hb_ot_layout_table_find_script (face,
+                                         table_tag,
+                                         *scripts,
+                                         &script_index))
+        _hb_ot_layout_collect_lookups_languages (face,
+                                                table_tag,
+                                                script_index,
+                                                languages,
+                                                features,
+                                                lookup_indexes);
+    }
+  }
+}
+
+void
+hb_ot_layout_lookup_collect_glyphs (hb_face_t    *face,
+                                   hb_tag_t      table_tag,
+                                   unsigned int  lookup_index,
+                                   hb_set_t     *glyphs_before, /* OUT. May be NULL */
+                                   hb_set_t     *glyphs_input,  /* OUT. May be NULL */
+                                   hb_set_t     *glyphs_after,  /* OUT. May be NULL */
+                                   hb_set_t     *glyphs_output  /* OUT. May be NULL */)
+{
+  if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return;
+
+  OT::hb_collect_glyphs_context_t c (face,
+                                    glyphs_before,
+                                    glyphs_input,
+                                    glyphs_after,
+                                    glyphs_output);
+
+  switch (table_tag)
+  {
+    case HB_OT_TAG_GSUB:
+    {
+      const OT::SubstLookup& l = hb_ot_layout_from_face (face)->gsub->get_lookup (lookup_index);
+      l.collect_glyphs (&c);
+      return;
+    }
+    case HB_OT_TAG_GPOS:
+    {
+      const OT::PosLookup& l = hb_ot_layout_from_face (face)->gpos->get_lookup (lookup_index);
+      l.collect_glyphs (&c);
+      return;
+    }
+  }
+}
+
+
+/*
+ * OT::GSUB
+ */
+
+hb_bool_t
+hb_ot_layout_has_substitution (hb_face_t *face)
+{
+  return &_get_gsub (face) != &OT::Null(OT::GSUB);
+}
+
+hb_bool_t
+hb_ot_layout_lookup_would_substitute (hb_face_t            *face,
+                                     unsigned int          lookup_index,
+                                     const hb_codepoint_t *glyphs,
+                                     unsigned int          glyphs_length,
+                                     hb_bool_t             zero_context)
+{
+  if (unlikely (!hb_ot_shaper_face_data_ensure (face))) return false;
+  return hb_ot_layout_lookup_would_substitute_fast (face, lookup_index, glyphs, glyphs_length, zero_context);
+}
+
+hb_bool_t
+hb_ot_layout_lookup_would_substitute_fast (hb_face_t            *face,
+                                          unsigned int          lookup_index,
+                                          const hb_codepoint_t *glyphs,
+                                          unsigned int          glyphs_length,
+                                          hb_bool_t             zero_context)
+{
+  if (unlikely (lookup_index >= hb_ot_layout_from_face (face)->gsub_lookup_count)) return false;
+  OT::hb_would_apply_context_t c (face, glyphs, glyphs_length, zero_context);
+
+  const OT::SubstLookup& l = hb_ot_layout_from_face (face)->gsub->get_lookup (lookup_index);
+
+  return l.would_apply (&c, &hb_ot_layout_from_face (face)->gsub_accels[lookup_index].digest);
+}
+
+void
+hb_ot_layout_substitute_start (hb_font_t *font, hb_buffer_t *buffer)
+{
+  OT::GSUB::substitute_start (font, buffer);
+}
+
+void
+hb_ot_layout_substitute_finish (hb_font_t *font, hb_buffer_t *buffer)
+{
+  OT::GSUB::substitute_finish (font, buffer);
+}
+
+void
+hb_ot_layout_lookup_substitute_closure (hb_face_t    *face,
+                                       unsigned int  lookup_index,
+                                       hb_set_t     *glyphs)
+{
+  OT::hb_closure_context_t c (face, glyphs);
+
+  const OT::SubstLookup& l = _get_gsub (face).get_lookup (lookup_index);
+
+  l.closure (&c);
+}
+
+/*
+ * OT::GPOS
+ */
+
+hb_bool_t
+hb_ot_layout_has_positioning (hb_face_t *face)
+{
+  return &_get_gpos (face) != &OT::Null(OT::GPOS);
+}
+
+void
+hb_ot_layout_position_start (hb_font_t *font, hb_buffer_t *buffer)
+{
+  OT::GPOS::position_start (font, buffer);
+}
+
+void
+hb_ot_layout_position_finish (hb_font_t *font, hb_buffer_t *buffer)
+{
+  OT::GPOS::position_finish (font, buffer);
+}
+
+hb_bool_t
+hb_ot_layout_get_size_params (hb_face_t    *face,
+                             unsigned int *design_size,       /* OUT.  May be NULL */
+                             unsigned int *subfamily_id,      /* OUT.  May be NULL */
+                             unsigned int *subfamily_name_id, /* OUT.  May be NULL */
+                             unsigned int *range_start,       /* OUT.  May be NULL */
+                             unsigned int *range_end          /* OUT.  May be NULL */)
+{
+  const OT::GPOS &gpos = _get_gpos (face);
+  const hb_tag_t tag = HB_TAG ('s','i','z','e');
+
+  unsigned int num_features = gpos.get_feature_count ();
+  for (unsigned int i = 0; i < num_features; i++)
+  {
+    if (tag == gpos.get_feature_tag (i))
+    {
+      const OT::Feature &f = gpos.get_feature (i);
+      const OT::FeatureParamsSize &params = f.get_feature_params ().get_size_params (tag);
+
+      if (params.designSize)
+      {
+#define PARAM(a, A) if (a) *a = params.A
+       PARAM (design_size, designSize);
+       PARAM (subfamily_id, subfamilyID);
+       PARAM (subfamily_name_id, subfamilyNameID);
+       PARAM (range_start, rangeStart);
+       PARAM (range_end, rangeEnd);
+#undef PARAM
+
+       return true;
+      }
+    }
+  }
+
+#define PARAM(a, A) if (a) *a = 0
+  PARAM (design_size, designSize);
+  PARAM (subfamily_id, subfamilyID);
+  PARAM (subfamily_name_id, subfamilyNameID);
+  PARAM (range_start, rangeStart);
+  PARAM (range_end, rangeEnd);
+#undef PARAM
+
+  return false;
+}
+
+
+/*
+ * Parts of different types are implemented here such that they have direct
+ * access to GSUB/GPOS lookups.
+ */
+
+
+struct GSUBProxy
+{
+  static const unsigned int table_index = 0;
+  static const bool inplace = false;
+  typedef OT::SubstLookup Lookup;
+
+  GSUBProxy (hb_face_t *face) :
+    table (*hb_ot_layout_from_face (face)->gsub),
+    accels (hb_ot_layout_from_face (face)->gsub_accels) {}
+
+  const OT::GSUB &table;
+  const hb_ot_layout_lookup_accelerator_t *accels;
+};
+
+struct GPOSProxy
+{
+  static const unsigned int table_index = 1;
+  static const bool inplace = true;
+  typedef OT::PosLookup Lookup;
+
+  GPOSProxy (hb_face_t *face) :
+    table (*hb_ot_layout_from_face (face)->gpos),
+    accels (hb_ot_layout_from_face (face)->gpos_accels) {}
+
+  const OT::GPOS &table;
+  const hb_ot_layout_lookup_accelerator_t *accels;
+};
+
+
+template <typename Lookup>
+static inline bool apply_once (OT::hb_apply_context_t *c,
+                              const Lookup &lookup)
+{
+  if (!c->check_glyph_property (&c->buffer->cur(), c->lookup_props))
+    return false;
+  return lookup.dispatch (c);
+}
+
+template <typename Proxy>
+static inline bool
+apply_string (OT::hb_apply_context_t *c,
+             const typename Proxy::Lookup &lookup,
+             const hb_ot_layout_lookup_accelerator_t &accel)
+{
+  bool ret = false;
+  hb_buffer_t *buffer = c->buffer;
+
+  if (unlikely (!buffer->len || !c->lookup_mask))
+    return false;
+
+  c->set_lookup (lookup);
+
+  if (likely (!lookup.is_reverse ()))
+  {
+    /* in/out forward substitution/positioning */
+    if (Proxy::table_index == 0)
+      buffer->clear_output ();
+    buffer->idx = 0;
+
+    while (buffer->idx < buffer->len)
+    {
+      if (accel.digest.may_have (buffer->cur().codepoint) &&
+         (buffer->cur().mask & c->lookup_mask) &&
+         apply_once (c, lookup))
+       ret = true;
+      else
+       buffer->next_glyph ();
+    }
+    if (ret)
+    {
+      if (!Proxy::inplace)
+       buffer->swap_buffers ();
+      else
+        assert (!buffer->has_separate_output ());
+    }
+  }
+  else
+  {
+    /* in-place backward substitution/positioning */
+    if (Proxy::table_index == 0)
+      buffer->remove_output ();
+    buffer->idx = buffer->len - 1;
+    do
+    {
+      if (accel.digest.may_have (buffer->cur().codepoint) &&
+         (buffer->cur().mask & c->lookup_mask) &&
+         apply_once (c, lookup))
+       ret = true;
+      /* The reverse lookup doesn't "advance" cursor (for good reason). */
+      buffer->idx--;
+
+    }
+    while ((int) buffer->idx >= 0);
+  }
+
+  return ret;
+}
+
+template <typename Proxy>
+inline void hb_ot_map_t::apply (const Proxy &proxy,
+                               const hb_ot_shape_plan_t *plan,
+                               hb_font_t *font,
+                               hb_buffer_t *buffer) const
+{
+  const unsigned int table_index = proxy.table_index;
+  unsigned int i = 0;
+  OT::hb_apply_context_t c (table_index, font, buffer);
+  c.set_recurse_func (Proxy::Lookup::apply_recurse_func);
+
+  for (unsigned int stage_index = 0; stage_index < stages[table_index].len; stage_index++) {
+    const stage_map_t *stage = &stages[table_index][stage_index];
+    for (; i < stage->last_lookup; i++)
+    {
+      unsigned int lookup_index = lookups[table_index][i].index;
+      c.set_lookup_mask (lookups[table_index][i].mask);
+      c.set_auto_zwj (lookups[table_index][i].auto_zwj);
+      apply_string<Proxy> (&c,
+                          proxy.table.get_lookup (lookup_index),
+                          proxy.accels[lookup_index]);
+    }
+
+    if (stage->pause_func)
+    {
+      buffer->clear_output ();
+      stage->pause_func (plan, font, buffer);
+    }
+  }
+}
+
+void hb_ot_map_t::substitute (const hb_ot_shape_plan_t *plan, hb_font_t *font, hb_buffer_t *buffer) const
+{
+  GSUBProxy proxy (font->face);
+  apply (proxy, plan, font, buffer);
+}
+
+void hb_ot_map_t::position (const hb_ot_shape_plan_t *plan, hb_font_t *font, hb_buffer_t *buffer) const
+{
+  GPOSProxy proxy (font->face);
+  apply (proxy, plan, font, buffer);
+}
+
+HB_INTERNAL void
+hb_ot_layout_substitute_lookup (OT::hb_apply_context_t *c,
+                               const OT::SubstLookup &lookup,
+                               const hb_ot_layout_lookup_accelerator_t &accel)
+{
+  apply_string<GSUBProxy> (c, lookup, accel);
+}
diff --git a/src/hb-ot-layout.h b/src/hb-ot-layout.h
new file mode 100644 (file)
index 0000000..949678a
--- /dev/null
@@ -0,0 +1,302 @@
+/*
+ * Copyright © 2007,2008,2009  Red Hat, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_H_IN
+#error "Include <hb-ot.h> instead."
+#endif
+
+#ifndef HB_OT_LAYOUT_H
+#define HB_OT_LAYOUT_H
+
+#include "hb.h"
+
+#include "hb-ot-tag.h"
+
+HB_BEGIN_DECLS
+
+
+#define HB_OT_TAG_GDEF HB_TAG('G','D','E','F')
+#define HB_OT_TAG_GSUB HB_TAG('G','S','U','B')
+#define HB_OT_TAG_GPOS HB_TAG('G','P','O','S')
+#define HB_OT_TAG_JSTF HB_TAG('J','S','T','F')
+
+
+/*
+ * GDEF
+ */
+
+hb_bool_t
+hb_ot_layout_has_glyph_classes (hb_face_t *face);
+
+typedef enum {
+  HB_OT_LAYOUT_GLYPH_CLASS_UNCLASSIFIED        = 0,
+  HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH  = 1,
+  HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE    = 2,
+  HB_OT_LAYOUT_GLYPH_CLASS_MARK                = 3,
+  HB_OT_LAYOUT_GLYPH_CLASS_COMPONENT   = 4
+} hb_ot_layout_glyph_class_t;
+
+hb_ot_layout_glyph_class_t
+hb_ot_layout_get_glyph_class (hb_face_t      *face,
+                             hb_codepoint_t  glyph);
+
+void
+hb_ot_layout_get_glyphs_in_class (hb_face_t                  *face,
+                                 hb_ot_layout_glyph_class_t  klass,
+                                 hb_set_t                   *glyphs /* OUT */);
+
+
+/* Not that useful.  Provides list of attach points for a glyph that a
+ * client may want to cache */
+unsigned int
+hb_ot_layout_get_attach_points (hb_face_t      *face,
+                               hb_codepoint_t  glyph,
+                               unsigned int    start_offset,
+                               unsigned int   *point_count /* IN/OUT */,
+                               unsigned int   *point_array /* OUT */);
+
+/* Ligature caret positions */
+unsigned int
+hb_ot_layout_get_ligature_carets (hb_font_t      *font,
+                                 hb_direction_t  direction,
+                                 hb_codepoint_t  glyph,
+                                 unsigned int    start_offset,
+                                 unsigned int   *caret_count /* IN/OUT */,
+                                 hb_position_t  *caret_array /* OUT */);
+
+
+/*
+ * GSUB/GPOS feature query and enumeration interface
+ */
+
+#define HB_OT_LAYOUT_NO_SCRIPT_INDEX           0xFFFFu
+#define HB_OT_LAYOUT_NO_FEATURE_INDEX          0xFFFFu
+#define HB_OT_LAYOUT_DEFAULT_LANGUAGE_INDEX    0xFFFFu
+
+unsigned int
+hb_ot_layout_table_get_script_tags (hb_face_t    *face,
+                                   hb_tag_t      table_tag,
+                                   unsigned int  start_offset,
+                                   unsigned int *script_count /* IN/OUT */,
+                                   hb_tag_t     *script_tags /* OUT */);
+
+hb_bool_t
+hb_ot_layout_table_find_script (hb_face_t    *face,
+                               hb_tag_t      table_tag,
+                               hb_tag_t      script_tag,
+                               unsigned int *script_index);
+
+/* Like find_script, but takes zero-terminated array of scripts to test */
+hb_bool_t
+hb_ot_layout_table_choose_script (hb_face_t      *face,
+                                 hb_tag_t        table_tag,
+                                 const hb_tag_t *script_tags,
+                                 unsigned int   *script_index,
+                                 hb_tag_t       *chosen_script);
+
+unsigned int
+hb_ot_layout_table_get_feature_tags (hb_face_t    *face,
+                                    hb_tag_t      table_tag,
+                                    unsigned int  start_offset,
+                                    unsigned int *feature_count /* IN/OUT */,
+                                    hb_tag_t     *feature_tags /* OUT */);
+
+unsigned int
+hb_ot_layout_script_get_language_tags (hb_face_t    *face,
+                                      hb_tag_t      table_tag,
+                                      unsigned int  script_index,
+                                      unsigned int  start_offset,
+                                      unsigned int *language_count /* IN/OUT */,
+                                      hb_tag_t     *language_tags /* OUT */);
+
+hb_bool_t
+hb_ot_layout_script_find_language (hb_face_t    *face,
+                                  hb_tag_t      table_tag,
+                                  unsigned int  script_index,
+                                  hb_tag_t      language_tag,
+                                  unsigned int *language_index);
+
+hb_bool_t
+hb_ot_layout_language_get_required_feature_index (hb_face_t    *face,
+                                                 hb_tag_t      table_tag,
+                                                 unsigned int  script_index,
+                                                 unsigned int  language_index,
+                                                 unsigned int *feature_index);
+
+hb_bool_t
+hb_ot_layout_language_get_required_feature (hb_face_t    *face,
+                                           hb_tag_t      table_tag,
+                                           unsigned int  script_index,
+                                           unsigned int  language_index,
+                                           unsigned int *feature_index,
+                                           hb_tag_t     *feature_tag);
+
+unsigned int
+hb_ot_layout_language_get_feature_indexes (hb_face_t    *face,
+                                          hb_tag_t      table_tag,
+                                          unsigned int  script_index,
+                                          unsigned int  language_index,
+                                          unsigned int  start_offset,
+                                          unsigned int *feature_count /* IN/OUT */,
+                                          unsigned int *feature_indexes /* OUT */);
+
+unsigned int
+hb_ot_layout_language_get_feature_tags (hb_face_t    *face,
+                                       hb_tag_t      table_tag,
+                                       unsigned int  script_index,
+                                       unsigned int  language_index,
+                                       unsigned int  start_offset,
+                                       unsigned int *feature_count /* IN/OUT */,
+                                       hb_tag_t     *feature_tags /* OUT */);
+
+hb_bool_t
+hb_ot_layout_language_find_feature (hb_face_t    *face,
+                                   hb_tag_t      table_tag,
+                                   unsigned int  script_index,
+                                   unsigned int  language_index,
+                                   hb_tag_t      feature_tag,
+                                   unsigned int *feature_index);
+
+unsigned int
+hb_ot_layout_feature_get_lookups (hb_face_t    *face,
+                                 hb_tag_t      table_tag,
+                                 unsigned int  feature_index,
+                                 unsigned int  start_offset,
+                                 unsigned int *lookup_count /* IN/OUT */,
+                                 unsigned int *lookup_indexes /* OUT */);
+
+unsigned int
+hb_ot_layout_table_get_lookup_count (hb_face_t    *face,
+                                    hb_tag_t      table_tag);
+
+
+void
+hb_ot_layout_collect_lookups (hb_face_t      *face,
+                             hb_tag_t        table_tag,
+                             const hb_tag_t *scripts,
+                             const hb_tag_t *languages,
+                             const hb_tag_t *features,
+                             hb_set_t       *lookup_indexes /* OUT */);
+
+void
+hb_ot_layout_lookup_collect_glyphs (hb_face_t    *face,
+                                   hb_tag_t      table_tag,
+                                   unsigned int  lookup_index,
+                                   hb_set_t     *glyphs_before, /* OUT. May be NULL */
+                                   hb_set_t     *glyphs_input,  /* OUT. May be NULL */
+                                   hb_set_t     *glyphs_after,  /* OUT. May be NULL */
+                                   hb_set_t     *glyphs_output  /* OUT. May be NULL */);
+
+#ifdef HB_NOT_IMPLEMENTED
+typedef struct
+{
+  const hb_codepoint_t *before,
+  unsigned int          before_length,
+  const hb_codepoint_t *input,
+  unsigned int          input_length,
+  const hb_codepoint_t *after,
+  unsigned int          after_length,
+} hb_ot_layout_glyph_sequence_t;
+
+typedef hb_bool_t
+(*hb_ot_layout_glyph_sequence_func_t) (hb_font_t    *font,
+                                      hb_tag_t      table_tag,
+                                      unsigned int  lookup_index,
+                                      const hb_ot_layout_glyph_sequence_t *sequence,
+                                      void         *user_data);
+
+void
+Xhb_ot_layout_lookup_enumerate_sequences (hb_face_t    *face,
+                                        hb_tag_t      table_tag,
+                                        unsigned int  lookup_index,
+                                        hb_ot_layout_glyph_sequence_func_t callback,
+                                        void         *user_data);
+#endif
+
+
+/*
+ * GSUB
+ */
+
+hb_bool_t
+hb_ot_layout_has_substitution (hb_face_t *face);
+
+hb_bool_t
+hb_ot_layout_lookup_would_substitute (hb_face_t            *face,
+                                     unsigned int          lookup_index,
+                                     const hb_codepoint_t *glyphs,
+                                     unsigned int          glyphs_length,
+                                     hb_bool_t             zero_context);
+
+void
+hb_ot_layout_lookup_substitute_closure (hb_face_t    *face,
+                                       unsigned int  lookup_index,
+                                       hb_set_t     *glyphs
+                                       /*TODO , hb_bool_t  inclusive */);
+
+#ifdef HB_NOT_IMPLEMENTED
+/* Note: You better have GDEF when using this API, or marks won't do much. */
+hb_bool_t
+Xhb_ot_layout_lookup_substitute (hb_font_t            *font,
+                               unsigned int          lookup_index,
+                               const hb_ot_layout_glyph_sequence_t *sequence,
+                               unsigned int          out_size,
+                               hb_codepoint_t       *glyphs_out,   /* OUT */
+                               unsigned int         *clusters_out, /* OUT */
+                               unsigned int         *out_length    /* OUT */);
+#endif
+
+
+/*
+ * GPOS
+ */
+
+hb_bool_t
+hb_ot_layout_has_positioning (hb_face_t *face);
+
+#ifdef HB_NOT_IMPLEMENTED
+/* Note: You better have GDEF when using this API, or marks won't do much. */
+hb_bool_t
+Xhb_ot_layout_lookup_position (hb_font_t            *font,
+                             unsigned int          lookup_index,
+                             const hb_ot_layout_glyph_sequence_t *sequence,
+                             hb_glyph_position_t  *positions /* IN / OUT */);
+#endif
+
+/* Optical 'size' feature info.  Returns true if found.
+ * http://www.microsoft.com/typography/otspec/features_pt.htm#size */
+hb_bool_t
+hb_ot_layout_get_size_params (hb_face_t    *face,
+                             unsigned int *design_size,       /* OUT.  May be NULL */
+                             unsigned int *subfamily_id,      /* OUT.  May be NULL */
+                             unsigned int *subfamily_name_id, /* OUT.  May be NULL */
+                             unsigned int *range_start,       /* OUT.  May be NULL */
+                             unsigned int *range_end          /* OUT.  May be NULL */);
+
+
+HB_END_DECLS
+
+#endif /* HB_OT_LAYOUT_H */
diff --git a/src/hb-ot-map-private.hh b/src/hb-ot-map-private.hh
new file mode 100644 (file)
index 0000000..86b7e9f
--- /dev/null
@@ -0,0 +1,247 @@
+/*
+ * Copyright © 2009,2010  Red Hat, Inc.
+ * Copyright © 2010,2011,2012,2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_MAP_PRIVATE_HH
+#define HB_OT_MAP_PRIVATE_HH
+
+#include "hb-buffer-private.hh"
+
+
+struct hb_ot_shape_plan_t;
+
+static const hb_tag_t table_tags[2] = {HB_OT_TAG_GSUB, HB_OT_TAG_GPOS};
+
+struct hb_ot_map_t
+{
+  friend struct hb_ot_map_builder_t;
+
+  public:
+
+  struct feature_map_t {
+    hb_tag_t tag; /* should be first for our bsearch to work */
+    unsigned int index[2]; /* GSUB/GPOS */
+    unsigned int stage[2]; /* GSUB/GPOS */
+    unsigned int shift;
+    hb_mask_t mask;
+    hb_mask_t _1_mask; /* mask for value=1, for quick access */
+    unsigned int needs_fallback : 1;
+    unsigned int auto_zwj : 1;
+
+    static int cmp (const feature_map_t *a, const feature_map_t *b)
+    { return a->tag < b->tag ? -1 : a->tag > b->tag ? 1 : 0; }
+  };
+
+  struct lookup_map_t {
+    unsigned short index;
+    unsigned short auto_zwj : 1;
+    hb_mask_t mask;
+
+    static int cmp (const lookup_map_t *a, const lookup_map_t *b)
+    { return a->index < b->index ? -1 : a->index > b->index ? 1 : 0; }
+  };
+
+  typedef void (*pause_func_t) (const struct hb_ot_shape_plan_t *plan, hb_font_t *font, hb_buffer_t *buffer);
+
+  struct stage_map_t {
+    unsigned int last_lookup; /* Cumulative */
+    pause_func_t pause_func;
+  };
+
+
+  hb_ot_map_t (void) { memset (this, 0, sizeof (*this)); }
+
+  inline hb_mask_t get_global_mask (void) const { return global_mask; }
+
+  inline hb_mask_t get_mask (hb_tag_t feature_tag, unsigned int *shift = NULL) const {
+    const feature_map_t *map = features.bsearch (&feature_tag);
+    if (shift) *shift = map ? map->shift : 0;
+    return map ? map->mask : 0;
+  }
+
+  inline bool needs_fallback (hb_tag_t feature_tag) const {
+    const feature_map_t *map = features.bsearch (&feature_tag);
+    return map ? map->needs_fallback : false;
+  }
+
+  inline hb_mask_t get_1_mask (hb_tag_t feature_tag) const {
+    const feature_map_t *map = features.bsearch (&feature_tag);
+    return map ? map->_1_mask : 0;
+  }
+
+  inline unsigned int get_feature_index (unsigned int table_index, hb_tag_t feature_tag) const {
+    const feature_map_t *map = features.bsearch (&feature_tag);
+    return map ? map->index[table_index] : HB_OT_LAYOUT_NO_FEATURE_INDEX;
+  }
+
+  inline unsigned int get_feature_stage (unsigned int table_index, hb_tag_t feature_tag) const {
+    const feature_map_t *map = features.bsearch (&feature_tag);
+    return map ? map->stage[table_index] : (unsigned int) -1;
+  }
+
+  inline void get_stage_lookups (unsigned int table_index, unsigned int stage,
+                                const struct lookup_map_t **plookups, unsigned int *lookup_count) const {
+    if (unlikely (stage == (unsigned int) -1)) {
+      *plookups = NULL;
+      *lookup_count = 0;
+      return;
+    }
+    assert (stage <= stages[table_index].len);
+    unsigned int start = stage ? stages[table_index][stage - 1].last_lookup : 0;
+    unsigned int end   = stage < stages[table_index].len ? stages[table_index][stage].last_lookup : lookups[table_index].len;
+    *plookups = &lookups[table_index][start];
+    *lookup_count = end - start;
+  }
+
+  HB_INTERNAL void collect_lookups (unsigned int table_index, hb_set_t *lookups) const;
+  template <typename Proxy>
+  HB_INTERNAL inline void apply (const Proxy &proxy,
+                                const struct hb_ot_shape_plan_t *plan, hb_font_t *font, hb_buffer_t *buffer) const;
+  HB_INTERNAL void substitute (const struct hb_ot_shape_plan_t *plan, hb_font_t *font, hb_buffer_t *buffer) const;
+  HB_INTERNAL void position (const struct hb_ot_shape_plan_t *plan, hb_font_t *font, hb_buffer_t *buffer) const;
+
+  inline void finish (void) {
+    features.finish ();
+    for (unsigned int table_index = 0; table_index < 2; table_index++)
+    {
+      lookups[table_index].finish ();
+      stages[table_index].finish ();
+    }
+  }
+
+  public:
+  hb_tag_t chosen_script[2];
+  bool found_script[2];
+
+  private:
+
+  HB_INTERNAL void add_lookups (hb_face_t    *face,
+                               unsigned int  table_index,
+                               unsigned int  feature_index,
+                               hb_mask_t     mask,
+                               bool          auto_zwj);
+
+  hb_mask_t global_mask;
+
+  hb_prealloced_array_t<feature_map_t, 8> features;
+  hb_prealloced_array_t<lookup_map_t, 32> lookups[2]; /* GSUB/GPOS */
+  hb_prealloced_array_t<stage_map_t, 4> stages[2]; /* GSUB/GPOS */
+};
+
+enum hb_ot_map_feature_flags_t {
+  F_NONE               = 0x0000u,
+  F_GLOBAL             = 0x0001u,
+  F_HAS_FALLBACK       = 0x0002u,
+  F_MANUAL_ZWJ         = 0x0004u
+};
+/* Macro version for where const is desired. */
+#define F_COMBINE(l,r) (hb_ot_map_feature_flags_t ((unsigned int) (l) | (unsigned int) (r)))
+static inline hb_ot_map_feature_flags_t
+operator | (hb_ot_map_feature_flags_t l, hb_ot_map_feature_flags_t r)
+{ return hb_ot_map_feature_flags_t ((unsigned int) l | (unsigned int) r); }
+static inline hb_ot_map_feature_flags_t
+operator & (hb_ot_map_feature_flags_t l, hb_ot_map_feature_flags_t r)
+{ return hb_ot_map_feature_flags_t ((unsigned int) l & (unsigned int) r); }
+static inline hb_ot_map_feature_flags_t
+operator ~ (hb_ot_map_feature_flags_t r)
+{ return hb_ot_map_feature_flags_t (~(unsigned int) r); }
+static inline hb_ot_map_feature_flags_t&
+operator |= (hb_ot_map_feature_flags_t &l, hb_ot_map_feature_flags_t r)
+{ l = l | r; return l; }
+static inline hb_ot_map_feature_flags_t&
+operator &= (hb_ot_map_feature_flags_t& l, hb_ot_map_feature_flags_t r)
+{ l = l & r; return l; }
+
+
+struct hb_ot_map_builder_t
+{
+  public:
+
+  HB_INTERNAL hb_ot_map_builder_t (hb_face_t *face_,
+                                  const hb_segment_properties_t *props_);
+
+  HB_INTERNAL void add_feature (hb_tag_t tag, unsigned int value,
+                               hb_ot_map_feature_flags_t flags);
+
+  inline void add_global_bool_feature (hb_tag_t tag)
+  { add_feature (tag, 1, F_GLOBAL); }
+
+  inline void add_gsub_pause (hb_ot_map_t::pause_func_t pause_func)
+  { add_pause (0, pause_func); }
+  inline void add_gpos_pause (hb_ot_map_t::pause_func_t pause_func)
+  { add_pause (1, pause_func); }
+
+  HB_INTERNAL void compile (struct hb_ot_map_t &m);
+
+  inline void finish (void) {
+    feature_infos.finish ();
+    for (unsigned int table_index = 0; table_index < 2; table_index++)
+    {
+      stages[table_index].finish ();
+    }
+  }
+
+  private:
+
+  struct feature_info_t {
+    hb_tag_t tag;
+    unsigned int seq; /* sequence#, used for stable sorting only */
+    unsigned int max_value;
+    hb_ot_map_feature_flags_t flags;
+    unsigned int default_value; /* for non-global features, what should the unset glyphs take */
+    unsigned int stage[2]; /* GSUB/GPOS */
+
+    static int cmp (const feature_info_t *a, const feature_info_t *b)
+    { return (a->tag != b->tag) ?  (a->tag < b->tag ? -1 : 1) : (a->seq < b->seq ? -1 : 1); }
+  };
+
+  struct stage_info_t {
+    unsigned int index;
+    hb_ot_map_t::pause_func_t pause_func;
+  };
+
+  HB_INTERNAL void add_pause (unsigned int table_index, hb_ot_map_t::pause_func_t pause_func);
+
+  public:
+
+  hb_face_t *face;
+  hb_segment_properties_t props;
+
+  hb_tag_t chosen_script[2];
+  bool found_script[2];
+  unsigned int script_index[2], language_index[2];
+
+  private:
+
+  unsigned int current_stage[2]; /* GSUB/GPOS */
+  hb_prealloced_array_t<feature_info_t, 32> feature_infos;
+  hb_prealloced_array_t<stage_info_t, 8> stages[2]; /* GSUB/GPOS */
+};
+
+
+
+#endif /* HB_OT_MAP_PRIVATE_HH */
diff --git a/src/hb-ot-map.cc b/src/hb-ot-map.cc
new file mode 100644 (file)
index 0000000..4985eb2
--- /dev/null
@@ -0,0 +1,305 @@
+/*
+ * Copyright © 2009,2010  Red Hat, Inc.
+ * Copyright © 2010,2011,2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-ot-map-private.hh"
+
+#include "hb-ot-layout-private.hh"
+
+
+void
+hb_ot_map_t::add_lookups (hb_face_t    *face,
+                         unsigned int  table_index,
+                         unsigned int  feature_index,
+                         hb_mask_t     mask,
+                         bool          auto_zwj)
+{
+  unsigned int lookup_indices[32];
+  unsigned int offset, len;
+  unsigned int table_lookup_count;
+
+  table_lookup_count = hb_ot_layout_table_get_lookup_count (face, table_tags[table_index]);
+
+  offset = 0;
+  do {
+    len = ARRAY_LENGTH (lookup_indices);
+    hb_ot_layout_feature_get_lookups (face,
+                                     table_tags[table_index],
+                                     feature_index,
+                                     offset, &len,
+                                     lookup_indices);
+
+    for (unsigned int i = 0; i < len; i++)
+    {
+      if (lookup_indices[i] >= table_lookup_count)
+       continue;
+      hb_ot_map_t::lookup_map_t *lookup = lookups[table_index].push ();
+      if (unlikely (!lookup))
+        return;
+      lookup->mask = mask;
+      lookup->index = lookup_indices[i];
+      lookup->auto_zwj = auto_zwj;
+    }
+
+    offset += len;
+  } while (len == ARRAY_LENGTH (lookup_indices));
+}
+
+hb_ot_map_builder_t::hb_ot_map_builder_t (hb_face_t *face_,
+                                         const hb_segment_properties_t *props_)
+{
+  memset (this, 0, sizeof (*this));
+
+  face = face_;
+  props = *props_;
+
+
+  /* Fetch script/language indices for GSUB/GPOS.  We need these later to skip
+   * features not available in either table and not waste precious bits for them. */
+
+  hb_tag_t script_tags[3] = {HB_TAG_NONE, HB_TAG_NONE, HB_TAG_NONE};
+  hb_tag_t language_tag;
+
+  hb_ot_tags_from_script (props.script, &script_tags[0], &script_tags[1]);
+  language_tag = hb_ot_tag_from_language (props.language);
+
+  for (unsigned int table_index = 0; table_index < 2; table_index++) {
+    hb_tag_t table_tag = table_tags[table_index];
+    found_script[table_index] = hb_ot_layout_table_choose_script (face, table_tag, script_tags, &script_index[table_index], &chosen_script[table_index]);
+    hb_ot_layout_script_find_language (face, table_tag, script_index[table_index], language_tag, &language_index[table_index]);
+  }
+}
+
+void hb_ot_map_builder_t::add_feature (hb_tag_t tag, unsigned int value,
+                                      hb_ot_map_feature_flags_t flags)
+{
+  feature_info_t *info = feature_infos.push();
+  if (unlikely (!info)) return;
+  if (unlikely (!tag)) return;
+  info->tag = tag;
+  info->seq = feature_infos.len;
+  info->max_value = value;
+  info->flags = flags;
+  info->default_value = (flags & F_GLOBAL) ? value : 0;
+  info->stage[0] = current_stage[0];
+  info->stage[1] = current_stage[1];
+}
+
+
+void hb_ot_map_t::collect_lookups (unsigned int table_index, hb_set_t *lookups_out) const
+{
+  for (unsigned int i = 0; i < lookups[table_index].len; i++)
+    hb_set_add (lookups_out, lookups[table_index][i].index);
+}
+
+void hb_ot_map_builder_t::add_pause (unsigned int table_index, hb_ot_map_t::pause_func_t pause_func)
+{
+  stage_info_t *s = stages[table_index].push ();
+  if (likely (s)) {
+    s->index = current_stage[table_index];
+    s->pause_func = pause_func;
+  }
+
+  current_stage[table_index]++;
+}
+
+void
+hb_ot_map_builder_t::compile (hb_ot_map_t &m)
+{
+  m.global_mask = 1;
+
+  unsigned int required_feature_index[2];
+  hb_tag_t required_feature_tag[2];
+  /* We default to applying required feature in stage 0.  If the required
+   * feature has a tag that is known to the shaper, we apply required feature
+   * in the stage for that tag.
+   */
+  unsigned int required_feature_stage[2] = {0, 0};
+
+  for (unsigned int table_index = 0; table_index < 2; table_index++)
+  {
+    m.chosen_script[table_index] = chosen_script[table_index];
+    m.found_script[table_index] = found_script[table_index];
+
+    hb_ot_layout_language_get_required_feature (face,
+                                               table_tags[table_index],
+                                               script_index[table_index],
+                                               language_index[table_index],
+                                               &required_feature_index[table_index],
+                                               &required_feature_tag[table_index]);
+  }
+
+  if (!feature_infos.len)
+    return;
+
+  /* Sort features and merge duplicates */
+  {
+    feature_infos.qsort ();
+    unsigned int j = 0;
+    for (unsigned int i = 1; i < feature_infos.len; i++)
+      if (feature_infos[i].tag != feature_infos[j].tag)
+       feature_infos[++j] = feature_infos[i];
+      else {
+       if (feature_infos[i].flags & F_GLOBAL) {
+         feature_infos[j].flags |= F_GLOBAL;
+         feature_infos[j].max_value = feature_infos[i].max_value;
+         feature_infos[j].default_value = feature_infos[i].default_value;
+       } else {
+         feature_infos[j].flags &= ~F_GLOBAL;
+         feature_infos[j].max_value = MAX (feature_infos[j].max_value, feature_infos[i].max_value);
+         /* Inherit default_value from j */
+       }
+       feature_infos[j].flags |= (feature_infos[i].flags & F_HAS_FALLBACK);
+       feature_infos[j].stage[0] = MIN (feature_infos[j].stage[0], feature_infos[i].stage[0]);
+       feature_infos[j].stage[1] = MIN (feature_infos[j].stage[1], feature_infos[i].stage[1]);
+      }
+    feature_infos.shrink (j + 1);
+  }
+
+
+  /* Allocate bits now */
+  unsigned int next_bit = 1;
+  for (unsigned int i = 0; i < feature_infos.len; i++)
+  {
+    const feature_info_t *info = &feature_infos[i];
+
+    unsigned int bits_needed;
+
+    if ((info->flags & F_GLOBAL) && info->max_value == 1)
+      /* Uses the global bit */
+      bits_needed = 0;
+    else
+      bits_needed = _hb_bit_storage (info->max_value);
+
+    if (!info->max_value || next_bit + bits_needed > 8 * sizeof (hb_mask_t))
+      continue; /* Feature disabled, or not enough bits. */
+
+
+    hb_bool_t found = false;
+    unsigned int feature_index[2];
+    for (unsigned int table_index = 0; table_index < 2; table_index++)
+    {
+      if (required_feature_tag[table_index] == info->tag)
+      {
+       required_feature_stage[table_index] = info->stage[table_index];
+       found = true;
+       continue;
+      }
+      found |= hb_ot_layout_language_find_feature (face,
+                                                  table_tags[table_index],
+                                                  script_index[table_index],
+                                                  language_index[table_index],
+                                                  info->tag,
+                                                  &feature_index[table_index]);
+    }
+    if (!found && !(info->flags & F_HAS_FALLBACK))
+      continue;
+
+
+    hb_ot_map_t::feature_map_t *map = m.features.push ();
+    if (unlikely (!map))
+      break;
+
+    map->tag = info->tag;
+    map->index[0] = feature_index[0];
+    map->index[1] = feature_index[1];
+    map->stage[0] = info->stage[0];
+    map->stage[1] = info->stage[1];
+    map->auto_zwj = !(info->flags & F_MANUAL_ZWJ);
+    if ((info->flags & F_GLOBAL) && info->max_value == 1) {
+      /* Uses the global bit */
+      map->shift = 0;
+      map->mask = 1;
+    } else {
+      map->shift = next_bit;
+      map->mask = (1 << (next_bit + bits_needed)) - (1 << next_bit);
+      next_bit += bits_needed;
+      m.global_mask |= (info->default_value << map->shift) & map->mask;
+    }
+    map->_1_mask = (1 << map->shift) & map->mask;
+    map->needs_fallback = !found;
+
+  }
+  feature_infos.shrink (0); /* Done with these */
+
+
+  add_gsub_pause (NULL);
+  add_gpos_pause (NULL);
+
+  for (unsigned int table_index = 0; table_index < 2; table_index++)
+  {
+    /* Collect lookup indices for features */
+
+    unsigned int stage_index = 0;
+    unsigned int last_num_lookups = 0;
+    for (unsigned stage = 0; stage < current_stage[table_index]; stage++)
+    {
+      if (required_feature_index[table_index] != HB_OT_LAYOUT_NO_FEATURE_INDEX &&
+         required_feature_stage[table_index] == stage)
+       m.add_lookups (face, table_index,
+                      required_feature_index[table_index],
+                      1 /* mask */,
+                      true /* auto_zwj */);
+
+      for (unsigned i = 0; i < m.features.len; i++)
+        if (m.features[i].stage[table_index] == stage)
+         m.add_lookups (face, table_index,
+                        m.features[i].index[table_index],
+                        m.features[i].mask,
+                        m.features[i].auto_zwj);
+
+      /* Sort lookups and merge duplicates */
+      if (last_num_lookups < m.lookups[table_index].len)
+      {
+       m.lookups[table_index].qsort (last_num_lookups, m.lookups[table_index].len);
+
+       unsigned int j = last_num_lookups;
+       for (unsigned int i = j + 1; i < m.lookups[table_index].len; i++)
+         if (m.lookups[table_index][i].index != m.lookups[table_index][j].index)
+           m.lookups[table_index][++j] = m.lookups[table_index][i];
+         else
+         {
+           m.lookups[table_index][j].mask |= m.lookups[table_index][i].mask;
+           m.lookups[table_index][j].auto_zwj &= m.lookups[table_index][i].auto_zwj;
+         }
+       m.lookups[table_index].shrink (j + 1);
+      }
+
+      last_num_lookups = m.lookups[table_index].len;
+
+      if (stage_index < stages[table_index].len && stages[table_index][stage_index].index == stage) {
+       hb_ot_map_t::stage_map_t *stage_map = m.stages[table_index].push ();
+       if (likely (stage_map)) {
+         stage_map->last_lookup = last_num_lookups;
+         stage_map->pause_func = stages[table_index][stage_index].pause_func;
+       }
+
+       stage_index++;
+      }
+    }
+  }
+}
diff --git a/src/hb-ot-maxp-table.hh b/src/hb-ot-maxp-table.hh
new file mode 100644 (file)
index 0000000..b1f8328
--- /dev/null
@@ -0,0 +1,69 @@
+/*
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_MAXP_TABLE_HH
+#define HB_OT_MAXP_TABLE_HH
+
+#include "hb-open-type-private.hh"
+
+
+namespace OT {
+
+
+/*
+ * maxp -- The Maximum Profile Table
+ */
+
+#define HB_OT_TAG_maxp HB_TAG('m','a','x','p')
+
+struct maxp
+{
+  static const hb_tag_t tableTag       = HB_OT_TAG_maxp;
+
+  inline unsigned int get_num_glyphs (void) const {
+    return numGlyphs;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) &&
+                        likely (version.major == 1 || (version.major == 0 && version.minor == 0x5000u)));
+  }
+
+  /* We only implement version 0.5 as none of the extra fields in version 1.0 are useful. */
+  protected:
+  FixedVersion version;                /* Version of the maxp table (0.5 or 1.0),
+                                        * 0x00005000u or 0x00010000u. */
+  USHORT       numGlyphs;              /* The number of glyphs in the font. */
+  public:
+  DEFINE_SIZE_STATIC (6);
+};
+
+
+} /* namespace OT */
+
+
+#endif /* HB_OT_MAXP_TABLE_HH */
diff --git a/src/hb-ot-name-table.hh b/src/hb-ot-name-table.hh
new file mode 100644 (file)
index 0000000..31d9fac
--- /dev/null
@@ -0,0 +1,134 @@
+/*
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_NAME_TABLE_HH
+#define HB_OT_NAME_TABLE_HH
+
+#include "hb-open-type-private.hh"
+
+
+namespace OT {
+
+
+/*
+ * name -- The Naming Table
+ */
+
+#define HB_OT_TAG_name HB_TAG('n','a','m','e')
+
+
+struct NameRecord
+{
+  static int cmp (const NameRecord *a, const NameRecord *b)
+  {
+    int ret;
+    ret = b->platformID.cmp (a->platformID);
+    if (ret) return ret;
+    ret = b->encodingID.cmp (a->encodingID);
+    if (ret) return ret;
+    ret = b->languageID.cmp (a->languageID);
+    if (ret) return ret;
+    ret = b->nameID.cmp (a->nameID);
+    if (ret) return ret;
+    return 0;
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c, void *base) {
+    TRACE_SANITIZE (this);
+    /* We can check from base all the way up to the end of string... */
+    return TRACE_RETURN (c->check_struct (this) && c->check_range ((char *) base, (unsigned int) length + offset));
+  }
+
+  USHORT       platformID;     /* Platform ID. */
+  USHORT       encodingID;     /* Platform-specific encoding ID. */
+  USHORT       languageID;     /* Language ID. */
+  USHORT       nameID;         /* Name ID. */
+  USHORT       length;         /* String length (in bytes). */
+  USHORT       offset;         /* String offset from start of storage area (in bytes). */
+  public:
+  DEFINE_SIZE_STATIC (12);
+};
+
+struct name
+{
+  static const hb_tag_t tableTag       = HB_OT_TAG_name;
+
+  inline unsigned int get_name (unsigned int platform_id,
+                               unsigned int encoding_id,
+                               unsigned int language_id,
+                               unsigned int name_id,
+                               void *buffer,
+                               unsigned int buffer_length) const
+  {
+    NameRecord key;
+    key.platformID.set (platform_id);
+    key.encodingID.set (encoding_id);
+    key.languageID.set (language_id);
+    key.nameID.set (name_id);
+    NameRecord *match = (NameRecord *) bsearch (&key, nameRecord, count, sizeof (nameRecord[0]), (hb_compare_func_t) NameRecord::cmp);
+
+    if (!match)
+      return 0;
+
+    unsigned int length = MIN (buffer_length, (unsigned int) match->length);
+    memcpy (buffer, (char *) this + stringOffset + match->offset, length);
+    return length;
+  }
+
+  inline unsigned int get_size (void) const
+  { return min_size + count * nameRecord[0].min_size; }
+
+  inline bool sanitize_records (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    char *string_pool = (char *) this + stringOffset;
+    unsigned int _count = count;
+    for (unsigned int i = 0; i < _count; i++)
+      if (!nameRecord[i].sanitize (c, string_pool)) return TRACE_RETURN (false);
+    return TRACE_RETURN (true);
+  }
+
+  inline bool sanitize (hb_sanitize_context_t *c) {
+    TRACE_SANITIZE (this);
+    return TRACE_RETURN (c->check_struct (this) &&
+                        likely (format == 0 || format == 1) &&
+                        c->check_array (nameRecord, nameRecord[0].static_size, count) &&
+                        sanitize_records (c));
+  }
+
+  /* We only implement format 0 for now. */
+  USHORT       format;                 /* Format selector (=0/1). */
+  USHORT       count;                  /* Number of name records. */
+  Offset<>     stringOffset;           /* Offset to start of string storage (from start of table). */
+  NameRecord   nameRecord[VAR];        /* The name records where count is the number of records. */
+  public:
+  DEFINE_SIZE_ARRAY (6, nameRecord);
+};
+
+
+} /* namespace OT */
+
+
+#endif /* HB_OT_NAME_TABLE_HH */
diff --git a/src/hb-ot-shape-complex-arabic-fallback.hh b/src/hb-ot-shape-complex-arabic-fallback.hh
new file mode 100644 (file)
index 0000000..e5b7ed4
--- /dev/null
@@ -0,0 +1,354 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_SHAPE_COMPLEX_ARABIC_FALLBACK_HH
+#define HB_OT_SHAPE_COMPLEX_ARABIC_FALLBACK_HH
+
+#include "hb-private.hh"
+
+#include "hb-ot-shape-private.hh"
+#include "hb-ot-layout-gsub-table.hh"
+
+
+/* Features ordered the same as the entries in shaping_table rows,
+ * followed by rlig.  Don't change. */
+static const hb_tag_t arabic_fallback_features[] =
+{
+  HB_TAG('i','n','i','t'),
+  HB_TAG('m','e','d','i'),
+  HB_TAG('f','i','n','a'),
+  HB_TAG('i','s','o','l'),
+  HB_TAG('r','l','i','g'),
+};
+
+static OT::SubstLookup *
+arabic_fallback_synthesize_lookup_single (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                                         hb_font_t *font,
+                                         unsigned int feature_index)
+{
+  OT::GlyphID glyphs[SHAPING_TABLE_LAST - SHAPING_TABLE_FIRST + 1];
+  OT::GlyphID substitutes[SHAPING_TABLE_LAST - SHAPING_TABLE_FIRST + 1];
+  unsigned int num_glyphs = 0;
+
+  /* Populate arrays */
+  for (hb_codepoint_t u = SHAPING_TABLE_FIRST; u < SHAPING_TABLE_LAST + 1; u++)
+  {
+    hb_codepoint_t s = shaping_table[u - SHAPING_TABLE_FIRST][feature_index];
+    hb_codepoint_t u_glyph, s_glyph;
+
+    if (!s ||
+       !hb_font_get_glyph (font, u, 0, &u_glyph) ||
+       !hb_font_get_glyph (font, s, 0, &s_glyph) ||
+       u_glyph == s_glyph ||
+       u_glyph > 0xFFFFu || s_glyph > 0xFFFFu)
+      continue;
+
+    glyphs[num_glyphs].set (u_glyph);
+    substitutes[num_glyphs].set (s_glyph);
+
+    num_glyphs++;
+  }
+
+  if (!num_glyphs)
+    return NULL;
+
+  /* Bubble-sort!
+   * May not be good-enough for presidential candidate interviews, but good-enough for us... */
+  hb_bubble_sort (&glyphs[0], num_glyphs, OT::GlyphID::cmp, &substitutes[0]);
+
+  OT::Supplier<OT::GlyphID> glyphs_supplier      (glyphs, num_glyphs);
+  OT::Supplier<OT::GlyphID> substitutes_supplier (substitutes, num_glyphs);
+
+  /* Each glyph takes four bytes max, and there's some overhead. */
+  char buf[(SHAPING_TABLE_LAST - SHAPING_TABLE_FIRST + 1) * 4 + 128];
+  OT::hb_serialize_context_t c (buf, sizeof (buf));
+  OT::SubstLookup *lookup = c.start_serialize<OT::SubstLookup> ();
+  bool ret = lookup->serialize_single (&c,
+                                      OT::LookupFlag::IgnoreMarks,
+                                      glyphs_supplier,
+                                      substitutes_supplier,
+                                      num_glyphs);
+  c.end_serialize ();
+  /* TODO sanitize the results? */
+
+  return ret ? c.copy<OT::SubstLookup> () : NULL;
+}
+
+static OT::SubstLookup *
+arabic_fallback_synthesize_lookup_ligature (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                                           hb_font_t *font)
+{
+  OT::GlyphID first_glyphs[ARRAY_LENGTH_CONST (ligature_table)];
+  unsigned int first_glyphs_indirection[ARRAY_LENGTH_CONST (ligature_table)];
+  unsigned int ligature_per_first_glyph_count_list[ARRAY_LENGTH_CONST (first_glyphs)];
+  unsigned int num_first_glyphs = 0;
+
+  /* We know that all our ligatures are 2-component */
+  OT::GlyphID ligature_list[ARRAY_LENGTH_CONST (first_glyphs) * ARRAY_LENGTH_CONST(ligature_table[0].ligatures)];
+  unsigned int component_count_list[ARRAY_LENGTH_CONST (ligature_list)];
+  OT::GlyphID component_list[ARRAY_LENGTH_CONST (ligature_list) * 1/* One extra component per ligature */];
+  unsigned int num_ligatures = 0;
+
+  /* Populate arrays */
+
+  /* Sort out the first-glyphs */
+  for (unsigned int first_glyph_idx = 0; first_glyph_idx < ARRAY_LENGTH (first_glyphs); first_glyph_idx++)
+  {
+    hb_codepoint_t first_u = ligature_table[first_glyph_idx].first;
+    hb_codepoint_t first_glyph;
+    if (!hb_font_get_glyph (font, first_u, 0, &first_glyph))
+      continue;
+    first_glyphs[num_first_glyphs].set (first_glyph);
+    ligature_per_first_glyph_count_list[num_first_glyphs] = 0;
+    first_glyphs_indirection[num_first_glyphs] = first_glyph_idx;
+    num_first_glyphs++;
+  }
+  hb_bubble_sort (&first_glyphs[0], num_first_glyphs, OT::GlyphID::cmp, &first_glyphs_indirection[0]);
+
+  /* Now that the first-glyphs are sorted, walk again, populate ligatures. */
+  for (unsigned int i = 0; i < num_first_glyphs; i++)
+  {
+    unsigned int first_glyph_idx = first_glyphs_indirection[i];
+
+    for (unsigned int second_glyph_idx = 0; second_glyph_idx < ARRAY_LENGTH (ligature_table[0].ligatures); second_glyph_idx++)
+    {
+      hb_codepoint_t second_u   = ligature_table[first_glyph_idx].ligatures[second_glyph_idx].second;
+      hb_codepoint_t ligature_u = ligature_table[first_glyph_idx].ligatures[second_glyph_idx].ligature;
+      hb_codepoint_t second_glyph, ligature_glyph;
+      if (!second_u ||
+         !hb_font_get_glyph (font, second_u,   0, &second_glyph) ||
+         !hb_font_get_glyph (font, ligature_u, 0, &ligature_glyph))
+       continue;
+
+      ligature_per_first_glyph_count_list[i]++;
+
+      ligature_list[num_ligatures].set (ligature_glyph);
+      component_count_list[num_ligatures] = 2;
+      component_list[num_ligatures].set (second_glyph);
+      num_ligatures++;
+    }
+  }
+
+  if (!num_ligatures)
+    return NULL;
+
+  OT::Supplier<OT::GlyphID>   first_glyphs_supplier                      (first_glyphs, num_first_glyphs);
+  OT::Supplier<unsigned int > ligature_per_first_glyph_count_supplier    (ligature_per_first_glyph_count_list, num_first_glyphs);
+  OT::Supplier<OT::GlyphID>   ligatures_supplier                         (ligature_list, num_ligatures);
+  OT::Supplier<unsigned int > component_count_supplier                   (component_count_list, num_ligatures);
+  OT::Supplier<OT::GlyphID>   component_supplier                         (component_list, num_ligatures);
+
+  /* 16 bytes per ligature ought to be enough... */
+  char buf[ARRAY_LENGTH_CONST (ligature_list) * 16 + 128];
+  OT::hb_serialize_context_t c (buf, sizeof (buf));
+  OT::SubstLookup *lookup = c.start_serialize<OT::SubstLookup> ();
+  bool ret = lookup->serialize_ligature (&c,
+                                        OT::LookupFlag::IgnoreMarks,
+                                        first_glyphs_supplier,
+                                        ligature_per_first_glyph_count_supplier,
+                                        num_first_glyphs,
+                                        ligatures_supplier,
+                                        component_count_supplier,
+                                        component_supplier);
+
+  c.end_serialize ();
+  /* TODO sanitize the results? */
+
+  return ret ? c.copy<OT::SubstLookup> () : NULL;
+}
+
+static OT::SubstLookup *
+arabic_fallback_synthesize_lookup (const hb_ot_shape_plan_t *plan,
+                                  hb_font_t *font,
+                                  unsigned int feature_index)
+{
+  if (feature_index < 4)
+    return arabic_fallback_synthesize_lookup_single (plan, font, feature_index);
+  else
+    return arabic_fallback_synthesize_lookup_ligature (plan, font);
+}
+
+#define ARABIC_FALLBACK_MAX_LOOKUPS 5
+
+struct arabic_fallback_plan_t
+{
+  ASSERT_POD ();
+
+  unsigned int num_lookups;
+  bool free_lookups;
+
+  hb_mask_t mask_array[ARABIC_FALLBACK_MAX_LOOKUPS];
+  OT::SubstLookup *lookup_array[ARABIC_FALLBACK_MAX_LOOKUPS];
+  hb_ot_layout_lookup_accelerator_t accel_array[ARABIC_FALLBACK_MAX_LOOKUPS];
+};
+
+static const arabic_fallback_plan_t arabic_fallback_plan_nil = {};
+
+#if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(HB_WITH_WIN1256)
+#define HB_WITH_WIN1256
+#endif
+
+#ifdef HB_WITH_WIN1256
+#include "hb-ot-shape-complex-arabic-win1256.hh"
+#endif
+
+struct ManifestLookup {
+  OT::Tag tag;
+  OT::OffsetTo<OT::SubstLookup> lookupOffset;
+};
+typedef OT::ArrayOf<ManifestLookup> Manifest;
+
+static bool
+arabic_fallback_plan_init_win1256 (arabic_fallback_plan_t *fallback_plan,
+                                  const hb_ot_shape_plan_t *plan,
+                                  hb_font_t *font)
+{
+#ifdef HB_WITH_WIN1256
+  /* Does this font look like it's Windows-1256-encoded? */
+  hb_codepoint_t g;
+  if (!(hb_font_get_glyph (font, 0x0627u, 0, &g) && g == 199 /* ALEF */ &&
+       hb_font_get_glyph (font, 0x0644u, 0, &g) && g == 225 /* LAM */ &&
+       hb_font_get_glyph (font, 0x0649u, 0, &g) && g == 236 /* ALEF MAKSURA */ &&
+       hb_font_get_glyph (font, 0x064Au, 0, &g) && g == 237 /* YEH */ &&
+       hb_font_get_glyph (font, 0x0652u, 0, &g) && g == 250 /* SUKUN */))
+    return false;
+
+  const Manifest &manifest = reinterpret_cast<const Manifest&> (arabic_win1256_gsub_lookups.manifest);
+  ASSERT_STATIC (sizeof (arabic_win1256_gsub_lookups.manifestData) / sizeof (ManifestLookup)
+                <= ARABIC_FALLBACK_MAX_LOOKUPS);
+  /* TODO sanitize the table? */
+
+  unsigned j = 0;
+  unsigned int count = manifest.len;
+  for (unsigned int i = 0; i < count; i++)
+  {
+    fallback_plan->mask_array[j] = plan->map.get_1_mask (manifest[i].tag);
+    if (fallback_plan->mask_array[j])
+    {
+      fallback_plan->lookup_array[j] = const_cast<OT::SubstLookup*> (&(&manifest+manifest[i].lookupOffset));
+      if (fallback_plan->lookup_array[j])
+      {
+       fallback_plan->accel_array[j].init (*fallback_plan->lookup_array[j]);
+       j++;
+      }
+    }
+  }
+
+  fallback_plan->num_lookups = j;
+  fallback_plan->free_lookups = false;
+
+  return j > 0;
+#else
+  return false;
+#endif
+}
+
+static bool
+arabic_fallback_plan_init_unicode (arabic_fallback_plan_t *fallback_plan,
+                                  const hb_ot_shape_plan_t *plan,
+                                  hb_font_t *font)
+{
+  ASSERT_STATIC (ARRAY_LENGTH_CONST(arabic_fallback_features) <= ARABIC_FALLBACK_MAX_LOOKUPS);
+  unsigned int j = 0;
+  for (unsigned int i = 0; i < ARRAY_LENGTH(arabic_fallback_features) ; i++)
+  {
+    fallback_plan->mask_array[j] = plan->map.get_1_mask (arabic_fallback_features[i]);
+    if (fallback_plan->mask_array[j])
+    {
+      fallback_plan->lookup_array[j] = arabic_fallback_synthesize_lookup (plan, font, i);
+      if (fallback_plan->lookup_array[j])
+      {
+       fallback_plan->accel_array[j].init (*fallback_plan->lookup_array[j]);
+       j++;
+      }
+    }
+  }
+
+  fallback_plan->num_lookups = j;
+  fallback_plan->free_lookups = true;
+
+  return j > 0;
+}
+
+static arabic_fallback_plan_t *
+arabic_fallback_plan_create (const hb_ot_shape_plan_t *plan,
+                            hb_font_t *font)
+{
+  arabic_fallback_plan_t *fallback_plan = (arabic_fallback_plan_t *) calloc (1, sizeof (arabic_fallback_plan_t));
+  if (unlikely (!fallback_plan))
+    return const_cast<arabic_fallback_plan_t *> (&arabic_fallback_plan_nil);
+
+  fallback_plan->num_lookups = 0;
+  fallback_plan->free_lookups = false;
+
+  /* Try synthesizing GSUB table using Unicode Arabic Presentation Forms,
+   * in case the font has cmap entries for the presentation-forms characters. */
+  if (arabic_fallback_plan_init_unicode (fallback_plan, plan, font))
+    return fallback_plan;
+
+  /* See if this looks like a Windows-1256-encoded font.  If it does, use a
+   * hand-coded GSUB table. */
+  if (arabic_fallback_plan_init_win1256 (fallback_plan, plan, font))
+    return fallback_plan;
+
+  free (fallback_plan);
+  return const_cast<arabic_fallback_plan_t *> (&arabic_fallback_plan_nil);
+}
+
+static void
+arabic_fallback_plan_destroy (arabic_fallback_plan_t *fallback_plan)
+{
+  if (!fallback_plan || fallback_plan == &arabic_fallback_plan_nil)
+    return;
+
+  for (unsigned int i = 0; i < fallback_plan->num_lookups; i++)
+    if (fallback_plan->lookup_array[i])
+    {
+      fallback_plan->accel_array[i].fini (fallback_plan->lookup_array[i]);
+      if (fallback_plan->free_lookups)
+       free (fallback_plan->lookup_array[i]);
+    }
+
+  free (fallback_plan);
+}
+
+static void
+arabic_fallback_plan_shape (arabic_fallback_plan_t *fallback_plan,
+                           hb_font_t *font,
+                           hb_buffer_t *buffer)
+{
+  OT::hb_apply_context_t c (0, font, buffer);
+  for (unsigned int i = 0; i < fallback_plan->num_lookups; i++)
+    if (fallback_plan->lookup_array[i]) {
+      c.set_lookup_mask (fallback_plan->mask_array[i]);
+      hb_ot_layout_substitute_lookup (&c,
+                                     *fallback_plan->lookup_array[i],
+                                     fallback_plan->accel_array[i]);
+    }
+}
+
+
+#endif /* HB_OT_SHAPE_COMPLEX_ARABIC_FALLBACK_HH */
diff --git a/src/hb-ot-shape-complex-arabic-table.hh b/src/hb-ot-shape-complex-arabic-table.hh
new file mode 100644 (file)
index 0000000..1710049
--- /dev/null
@@ -0,0 +1,383 @@
+/* == Start of generated table == */
+/*
+ * The following table is generated by running:
+ *
+ *   ./gen-arabic-table.py ArabicShaping.txt UnicodeData.txt Blocks.txt
+ *
+ * on files with these headers:
+ *
+ * # ArabicShaping-7.0.0.txt
+ * # Date: 2014-02-14, 21:00:00 GMT [RP, KW, LI]
+ * # Blocks-7.0.0.txt
+ * # Date: 2014-04-03, 23:23:00 GMT [RP, KW]
+ * UnicodeData.txt does not have a header.
+ */
+
+#ifndef HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH
+#define HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH
+
+
+#define X      JOINING_TYPE_X
+#define R      JOINING_TYPE_R
+#define U      JOINING_TYPE_U
+#define A      JOINING_GROUP_ALAPH
+#define DR     JOINING_GROUP_DALATH_RISH
+#define L      JOINING_TYPE_L
+#define C      JOINING_TYPE_C
+#define D      JOINING_TYPE_D
+
+static const uint8_t joining_table[] =
+{
+
+#define joining_offset_0x0600u 0
+
+  /* Arabic */
+
+  /* 0600 */ U,U,U,U,U,U,X,X,U,X,X,U,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
+  /* 0620 */ D,U,R,R,R,R,D,R,D,R,D,D,D,D,D,R,R,R,R,D,D,D,D,D,D,D,D,D,D,D,D,D,
+  /* 0640 */ C,D,D,D,D,D,D,D,R,D,D,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
+  /* 0660 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,D,D,X,R,R,R,U,R,R,R,D,D,D,D,D,D,D,D,
+  /* 0680 */ D,D,D,D,D,D,D,D,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,R,D,D,D,D,D,D,
+  /* 06A0 */ D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,
+  /* 06C0 */ R,D,D,R,R,R,R,R,R,R,R,R,D,R,D,R,D,D,R,R,X,R,X,X,X,X,X,X,X,U,X,X,
+  /* 06E0 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,R,R,X,X,X,X,X,X,X,X,X,X,D,D,D,X,X,D,
+
+  /* Syriac */
+
+  /* 0700 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,A,X,D,D,D,DR,DR,R,R,R,D,D,D,D,R,D,
+  /* 0720 */ D,D,D,D,D,D,D,D,R,D,DR,D,R,D,D,DR,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
+  /* 0740 */ X,X,X,X,X,X,X,X,X,X,X,X,X,R,D,D,
+
+  /* Arabic Supplement */
+
+  /* 0740 */                                 D,D,D,D,D,D,D,D,D,R,R,R,D,D,D,D,
+  /* 0760 */ D,D,D,D,D,D,D,D,D,D,D,R,R,D,D,D,D,R,D,R,R,D,D,D,R,R,D,D,D,D,D,D,
+
+  /* FILLER */
+
+  /* 0780 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
+  /* 07A0 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
+
+  /* NKo */
+
+  /* 07C0 */ X,X,X,X,X,X,X,X,X,X,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,
+  /* 07E0 */ D,D,D,D,D,D,D,D,D,D,D,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,C,X,X,X,X,X,
+
+  /* FILLER */
+
+  /* 0800 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
+  /* 0820 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
+
+  /* Mandaic */
+
+  /* 0840 */ R,D,D,D,D,D,R,R,D,R,D,D,D,D,D,D,D,D,D,D,R,D,U,U,U,X,X,X,X,X,X,X,
+  /* 0860 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
+  /* 0880 */ X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
+
+  /* Arabic Extended-A */
+
+  /* 08A0 */ D,D,D,D,D,D,D,D,D,D,R,R,R,U,R,D,D,R,R,
+
+#define joining_offset_0x1806u 691
+
+  /* Mongolian */
+
+  /* 1800 */             U,D,X,X,C,X,X,X,U,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
+  /* 1820 */ D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,
+  /* 1840 */ D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,
+  /* 1860 */ D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,X,X,X,X,X,X,X,X,
+  /* 1880 */ U,U,U,U,U,U,U,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,
+  /* 18A0 */ D,D,D,D,D,D,D,D,D,X,D,
+
+#define joining_offset_0x200cu 856
+
+  /* General Punctuation */
+
+  /* 2000 */                         U,C,
+
+#define joining_offset_0x2066u 858
+
+  /* General Punctuation */
+
+  /* 2060 */             U,U,U,U,
+
+#define joining_offset_0xa840u 862
+
+  /* Phags-pa */
+
+  /* A840 */ D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,
+  /* A860 */ D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,D,L,U,
+
+#define joining_offset_0x10ac0u 914
+
+  /* Manichaean */
+
+  /* 10AC0 */ D,D,D,D,D,R,U,R,U,R,R,U,U,L,R,R,R,R,R,D,D,D,D,L,D,D,D,D,D,R,D,D,
+  /* 10AE0 */ D,R,U,U,R,X,X,X,X,X,X,D,D,D,D,R,
+
+#define joining_offset_0x10b80u 962
+
+  /* Psalter Pahlavi */
+
+  /* 10B80 */ D,R,D,R,R,R,D,D,D,R,D,D,R,D,R,R,D,R,X,X,X,X,X,X,X,X,X,X,X,X,X,X,
+  /* 10BA0 */ X,X,X,X,X,X,X,X,X,R,R,R,R,D,D,U,
+
+}; /* Table items: 1010; occupancy: 57% */
+
+
+static unsigned int
+joining_type (hb_codepoint_t u)
+{
+  switch (u >> 12)
+  {
+    case 0x0u:
+      if (hb_in_range (u, 0x0600u, 0x08B2u)) return joining_table[u - 0x0600u + joining_offset_0x0600u];
+      break;
+
+    case 0x1u:
+      if (hb_in_range (u, 0x1806u, 0x18AAu)) return joining_table[u - 0x1806u + joining_offset_0x1806u];
+      break;
+
+    case 0x2u:
+      if (hb_in_range (u, 0x200Cu, 0x200Du)) return joining_table[u - 0x200Cu + joining_offset_0x200cu];
+      if (hb_in_range (u, 0x2066u, 0x2069u)) return joining_table[u - 0x2066u + joining_offset_0x2066u];
+      break;
+
+    case 0xAu:
+      if (hb_in_range (u, 0xA840u, 0xA873u)) return joining_table[u - 0xA840u + joining_offset_0xa840u];
+      break;
+
+    case 0x10u:
+      if (hb_in_range (u, 0x10AC0u, 0x10AEFu)) return joining_table[u - 0x10AC0u + joining_offset_0x10ac0u];
+      if (hb_in_range (u, 0x10B80u, 0x10BAFu)) return joining_table[u - 0x10B80u + joining_offset_0x10b80u];
+      break;
+
+    default:
+      break;
+  }
+  return X;
+}
+
+#undef X
+#undef R
+#undef U
+#undef A
+#undef DR
+#undef L
+#undef C
+#undef D
+
+
+static const uint16_t shaping_table[][4] =
+{
+  {0x0000u, 0x0000u, 0x0000u, 0xFE80u}, /* U+0621 ARABIC LETTER HAMZA ISOLATED FORM */
+  {0x0000u, 0x0000u, 0xFE82u, 0xFE81u}, /* U+0622 ARABIC LETTER ALEF WITH MADDA ABOVE */
+  {0x0000u, 0x0000u, 0xFE84u, 0xFE83u}, /* U+0623 ARABIC LETTER ALEF WITH HAMZA ABOVE */
+  {0x0000u, 0x0000u, 0xFE86u, 0xFE85u}, /* U+0624 ARABIC LETTER WAW WITH HAMZA ABOVE */
+  {0x0000u, 0x0000u, 0xFE88u, 0xFE87u}, /* U+0625 ARABIC LETTER ALEF WITH HAMZA BELOW */
+  {0xFE8Bu, 0xFE8Cu, 0xFE8Au, 0xFE89u}, /* U+0626 ARABIC LETTER YEH WITH HAMZA ABOVE */
+  {0x0000u, 0x0000u, 0xFE8Eu, 0xFE8Du}, /* U+0627 ARABIC LETTER ALEF */
+  {0xFE91u, 0xFE92u, 0xFE90u, 0xFE8Fu}, /* U+0628 ARABIC LETTER BEH */
+  {0x0000u, 0x0000u, 0xFE94u, 0xFE93u}, /* U+0629 ARABIC LETTER TEH MARBUTA */
+  {0xFE97u, 0xFE98u, 0xFE96u, 0xFE95u}, /* U+062A ARABIC LETTER TEH */
+  {0xFE9Bu, 0xFE9Cu, 0xFE9Au, 0xFE99u}, /* U+062B ARABIC LETTER THEH */
+  {0xFE9Fu, 0xFEA0u, 0xFE9Eu, 0xFE9Du}, /* U+062C ARABIC LETTER JEEM */
+  {0xFEA3u, 0xFEA4u, 0xFEA2u, 0xFEA1u}, /* U+062D ARABIC LETTER HAH */
+  {0xFEA7u, 0xFEA8u, 0xFEA6u, 0xFEA5u}, /* U+062E ARABIC LETTER KHAH */
+  {0x0000u, 0x0000u, 0xFEAAu, 0xFEA9u}, /* U+062F ARABIC LETTER DAL */
+  {0x0000u, 0x0000u, 0xFEACu, 0xFEABu}, /* U+0630 ARABIC LETTER THAL */
+  {0x0000u, 0x0000u, 0xFEAEu, 0xFEADu}, /* U+0631 ARABIC LETTER REH */
+  {0x0000u, 0x0000u, 0xFEB0u, 0xFEAFu}, /* U+0632 ARABIC LETTER ZAIN */
+  {0xFEB3u, 0xFEB4u, 0xFEB2u, 0xFEB1u}, /* U+0633 ARABIC LETTER SEEN */
+  {0xFEB7u, 0xFEB8u, 0xFEB6u, 0xFEB5u}, /* U+0634 ARABIC LETTER SHEEN */
+  {0xFEBBu, 0xFEBCu, 0xFEBAu, 0xFEB9u}, /* U+0635 ARABIC LETTER SAD */
+  {0xFEBFu, 0xFEC0u, 0xFEBEu, 0xFEBDu}, /* U+0636 ARABIC LETTER DAD */
+  {0xFEC3u, 0xFEC4u, 0xFEC2u, 0xFEC1u}, /* U+0637 ARABIC LETTER TAH */
+  {0xFEC7u, 0xFEC8u, 0xFEC6u, 0xFEC5u}, /* U+0638 ARABIC LETTER ZAH */
+  {0xFECBu, 0xFECCu, 0xFECAu, 0xFEC9u}, /* U+0639 ARABIC LETTER AIN */
+  {0xFECFu, 0xFED0u, 0xFECEu, 0xFECDu}, /* U+063A ARABIC LETTER GHAIN */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+063B  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+063C  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+063D  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+063E  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+063F  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0640  */
+  {0xFED3u, 0xFED4u, 0xFED2u, 0xFED1u}, /* U+0641 ARABIC LETTER FEH */
+  {0xFED7u, 0xFED8u, 0xFED6u, 0xFED5u}, /* U+0642 ARABIC LETTER QAF */
+  {0xFEDBu, 0xFEDCu, 0xFEDAu, 0xFED9u}, /* U+0643 ARABIC LETTER KAF */
+  {0xFEDFu, 0xFEE0u, 0xFEDEu, 0xFEDDu}, /* U+0644 ARABIC LETTER LAM */
+  {0xFEE3u, 0xFEE4u, 0xFEE2u, 0xFEE1u}, /* U+0645 ARABIC LETTER MEEM */
+  {0xFEE7u, 0xFEE8u, 0xFEE6u, 0xFEE5u}, /* U+0646 ARABIC LETTER NOON */
+  {0xFEEBu, 0xFEECu, 0xFEEAu, 0xFEE9u}, /* U+0647 ARABIC LETTER HEH */
+  {0x0000u, 0x0000u, 0xFEEEu, 0xFEEDu}, /* U+0648 ARABIC LETTER WAW */
+  {0xFBE8u, 0xFBE9u, 0xFEF0u, 0xFEEFu}, /* U+0649 ARABIC LETTER */
+  {0xFEF3u, 0xFEF4u, 0xFEF2u, 0xFEF1u}, /* U+064A ARABIC LETTER YEH */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+064B  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+064C  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+064D  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+064E  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+064F  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0650  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0651  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0652  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0653  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0654  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0655  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0656  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0657  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0658  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0659  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065A  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065B  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065C  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065D  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065E  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+065F  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0660  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0661  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0662  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0663  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0664  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0665  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0666  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0667  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0668  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0669  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066A  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066B  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066C  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066D  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066E  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+066F  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0670  */
+  {0x0000u, 0x0000u, 0xFB51u, 0xFB50u}, /* U+0671 ARABIC LETTER ALEF WASLA */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0672  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0673  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0674  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0675  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0676  */
+  {0x0000u, 0x0000u, 0x0000u, 0xFBDDu}, /* U+0677 ARABIC LETTER U WITH HAMZA ABOVE ISOLATED FORM */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0678  */
+  {0xFB68u, 0xFB69u, 0xFB67u, 0xFB66u}, /* U+0679 ARABIC LETTER TTEH */
+  {0xFB60u, 0xFB61u, 0xFB5Fu, 0xFB5Eu}, /* U+067A ARABIC LETTER TTEHEH */
+  {0xFB54u, 0xFB55u, 0xFB53u, 0xFB52u}, /* U+067B ARABIC LETTER BEEH */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+067C  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+067D  */
+  {0xFB58u, 0xFB59u, 0xFB57u, 0xFB56u}, /* U+067E ARABIC LETTER PEH */
+  {0xFB64u, 0xFB65u, 0xFB63u, 0xFB62u}, /* U+067F ARABIC LETTER TEHEH */
+  {0xFB5Cu, 0xFB5Du, 0xFB5Bu, 0xFB5Au}, /* U+0680 ARABIC LETTER BEHEH */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0681  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0682  */
+  {0xFB78u, 0xFB79u, 0xFB77u, 0xFB76u}, /* U+0683 ARABIC LETTER NYEH */
+  {0xFB74u, 0xFB75u, 0xFB73u, 0xFB72u}, /* U+0684 ARABIC LETTER DYEH */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0685  */
+  {0xFB7Cu, 0xFB7Du, 0xFB7Bu, 0xFB7Au}, /* U+0686 ARABIC LETTER TCHEH */
+  {0xFB80u, 0xFB81u, 0xFB7Fu, 0xFB7Eu}, /* U+0687 ARABIC LETTER TCHEHEH */
+  {0x0000u, 0x0000u, 0xFB89u, 0xFB88u}, /* U+0688 ARABIC LETTER DDAL */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0689  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+068A  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+068B  */
+  {0x0000u, 0x0000u, 0xFB85u, 0xFB84u}, /* U+068C ARABIC LETTER DAHAL */
+  {0x0000u, 0x0000u, 0xFB83u, 0xFB82u}, /* U+068D ARABIC LETTER DDAHAL */
+  {0x0000u, 0x0000u, 0xFB87u, 0xFB86u}, /* U+068E ARABIC LETTER DUL */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+068F  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0690  */
+  {0x0000u, 0x0000u, 0xFB8Du, 0xFB8Cu}, /* U+0691 ARABIC LETTER RREH */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0692  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0693  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0694  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0695  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0696  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0697  */
+  {0x0000u, 0x0000u, 0xFB8Bu, 0xFB8Au}, /* U+0698 ARABIC LETTER JEH */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+0699  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069A  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069B  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069C  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069D  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069E  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+069F  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A0  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A1  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A2  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A3  */
+  {0xFB6Cu, 0xFB6Du, 0xFB6Bu, 0xFB6Au}, /* U+06A4 ARABIC LETTER VEH */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A5  */
+  {0xFB70u, 0xFB71u, 0xFB6Fu, 0xFB6Eu}, /* U+06A6 ARABIC LETTER PEHEH */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A7  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06A8  */
+  {0xFB90u, 0xFB91u, 0xFB8Fu, 0xFB8Eu}, /* U+06A9 ARABIC LETTER KEHEH */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06AA  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06AB  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06AC  */
+  {0xFBD5u, 0xFBD6u, 0xFBD4u, 0xFBD3u}, /* U+06AD ARABIC LETTER NG */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06AE  */
+  {0xFB94u, 0xFB95u, 0xFB93u, 0xFB92u}, /* U+06AF ARABIC LETTER GAF */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B0  */
+  {0xFB9Cu, 0xFB9Du, 0xFB9Bu, 0xFB9Au}, /* U+06B1 ARABIC LETTER NGOEH */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B2  */
+  {0xFB98u, 0xFB99u, 0xFB97u, 0xFB96u}, /* U+06B3 ARABIC LETTER GUEH */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B4  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B5  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B6  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B7  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B8  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06B9  */
+  {0x0000u, 0x0000u, 0xFB9Fu, 0xFB9Eu}, /* U+06BA ARABIC LETTER NOON GHUNNA */
+  {0xFBA2u, 0xFBA3u, 0xFBA1u, 0xFBA0u}, /* U+06BB ARABIC LETTER RNOON */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06BC  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06BD  */
+  {0xFBACu, 0xFBADu, 0xFBABu, 0xFBAAu}, /* U+06BE ARABIC LETTER HEH DOACHASHMEE */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06BF  */
+  {0x0000u, 0x0000u, 0xFBA5u, 0xFBA4u}, /* U+06C0 ARABIC LETTER HEH WITH YEH ABOVE */
+  {0xFBA8u, 0xFBA9u, 0xFBA7u, 0xFBA6u}, /* U+06C1 ARABIC LETTER HEH GOAL */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06C2  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06C3  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06C4  */
+  {0x0000u, 0x0000u, 0xFBE1u, 0xFBE0u}, /* U+06C5 ARABIC LETTER KIRGHIZ OE */
+  {0x0000u, 0x0000u, 0xFBDAu, 0xFBD9u}, /* U+06C6 ARABIC LETTER OE */
+  {0x0000u, 0x0000u, 0xFBD8u, 0xFBD7u}, /* U+06C7 ARABIC LETTER U */
+  {0x0000u, 0x0000u, 0xFBDCu, 0xFBDBu}, /* U+06C8 ARABIC LETTER YU */
+  {0x0000u, 0x0000u, 0xFBE3u, 0xFBE2u}, /* U+06C9 ARABIC LETTER KIRGHIZ YU */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06CA  */
+  {0x0000u, 0x0000u, 0xFBDFu, 0xFBDEu}, /* U+06CB ARABIC LETTER VE */
+  {0xFBFEu, 0xFBFFu, 0xFBFDu, 0xFBFCu}, /* U+06CC ARABIC LETTER FARSI YEH */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06CD  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06CE  */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06CF  */
+  {0xFBE6u, 0xFBE7u, 0xFBE5u, 0xFBE4u}, /* U+06D0 ARABIC LETTER E */
+  {0x0000u, 0x0000u, 0x0000u, 0x0000u}, /* U+06D1  */
+  {0x0000u, 0x0000u, 0xFBAFu, 0xFBAEu}, /* U+06D2 ARABIC LETTER YEH BARREE */
+  {0x0000u, 0x0000u, 0xFBB1u, 0xFBB0u}, /* U+06D3 ARABIC LETTER YEH BARREE WITH HAMZA ABOVE */
+};
+
+#define SHAPING_TABLE_FIRST    0x0621u
+#define SHAPING_TABLE_LAST     0x06D3u
+
+
+static const struct ligature_set_t {
+ uint16_t first;
+ struct ligature_pairs_t {
+   uint16_t second;
+   uint16_t ligature;
+ } ligatures[4];
+} ligature_table[] =
+{
+  { 0xFEDFu, {
+    { 0xFE88u, 0xFEF9u }, /* ARABIC LIGATURE LAM WITH ALEF WITH HAMZA BELOW ISOLATED FORM */
+    { 0xFE82u, 0xFEF5u }, /* ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE ISOLATED FORM */
+    { 0xFE8Eu, 0xFEFBu }, /* ARABIC LIGATURE LAM WITH ALEF ISOLATED FORM */
+    { 0xFE84u, 0xFEF7u }, /* ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE ISOLATED FORM */
+  }},
+  { 0xFEE0u, {
+    { 0xFE88u, 0xFEFAu }, /* ARABIC LIGATURE LAM WITH ALEF WITH HAMZA BELOW FINAL FORM */
+    { 0xFE82u, 0xFEF6u }, /* ARABIC LIGATURE LAM WITH ALEF WITH MADDA ABOVE FINAL FORM */
+    { 0xFE8Eu, 0xFEFCu }, /* ARABIC LIGATURE LAM WITH ALEF FINAL FORM */
+    { 0xFE84u, 0xFEF8u }, /* ARABIC LIGATURE LAM WITH ALEF WITH HAMZA ABOVE FINAL FORM */
+  }},
+};
+
+
+#endif /* HB_OT_SHAPE_COMPLEX_ARABIC_TABLE_HH */
+
+/* == End of generated table == */
diff --git a/src/hb-ot-shape-complex-arabic-win1256.hh b/src/hb-ot-shape-complex-arabic-win1256.hh
new file mode 100644 (file)
index 0000000..63ed3f8
--- /dev/null
@@ -0,0 +1,321 @@
+/*
+ * Copyright © 2014  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_SHAPE_COMPLEX_ARABIC_WIN1256_HH
+
+
+/*
+ * The macros in the first part of this file are generic macros that can
+ * be used to define the bytes for OpenType table data in code in a
+ * readable manner.  We can move the macros to reside with their respective
+ * struct types, but since we only use these to define one data table, the
+ * Windows-1256 Arabic shaping table in this file, we keep them here.
+ */
+
+
+/* First we measure, then we cut. */
+#ifndef OT_MEASURE
+#define OT_MEASURE
+#define OT_TABLE_START                 static const struct TABLE_NAME {
+#define OT_TABLE_END                   }
+#define OT_LABEL_START(Name)           unsigned char Name[
+#define OT_LABEL_END                   ];
+#define OT_BYTE(u8)                    +1/*byte*/
+#define OT_USHORT(u16)                 +2/*bytes*/
+#else
+#undef  OT_MEASURE
+#define OT_TABLE_START                 TABLE_NAME = {
+#define OT_TABLE_END                   };
+#define OT_LABEL_START(Name)           {
+#define OT_LABEL_END                   },
+#define OT_BYTE(u8)                    (u8),
+#define OT_USHORT(u16)                 (unsigned char)((u16)>>8), (unsigned char)((u16)&0xFFu),
+#define OT_COUNT(Name, ItemSize)       ((unsigned int) sizeof(((struct TABLE_NAME*)0)->Name) \
+                                        / (unsigned int)(ItemSize) \
+                                        /* OT_ASSERT it's divisible (and positive). */)
+#define OT_DISTANCE(From,To)           ((unsigned int) \
+                                        ((char*)(&((struct TABLE_NAME*)0)->To) - \
+                                         (char*)(&((struct TABLE_NAME*)0)->From)) \
+                                        /* OT_ASSERT it's positive. */)
+#endif
+
+
+#define OT_LABEL(Name) \
+       OT_LABEL_END \
+       OT_LABEL_START(Name)
+
+/* Whenever we receive an argument that is a list, it will expand to
+ * contain commas.  That cannot be passed to another macro because the
+ * commas will throw off the preprocessor.  The solution is to wrap
+ * the passed-in argument in OT_LIST() before passing to the next macro.
+ * Unfortunately this trick requires vararg macros. */
+#define OT_LIST(...) __VA_ARGS__
+
+
+/*
+ * Basic Types
+ */
+
+#define OT_TAG(a,b,c,d) \
+       OT_BYTE(a) OT_BYTE(b) OT_BYTE(c) OT_BYTE(d)
+
+#define OT_OFFSET(From, To) /* Offset from From to To in bytes */ \
+       OT_USHORT(OT_DISTANCE(From, To))
+
+#define OT_GLYPHID /* GlyphID */ \
+       OT_USHORT
+
+#define OT_UARRAY(Name, Items) \
+       OT_LABEL_START(Name) \
+       OT_USHORT(OT_COUNT(Name##Data, 2)) \
+       OT_LABEL(Name##Data) \
+       Items \
+       OT_LABEL_END
+
+#define OT_UHEADLESSARRAY(Name, Items) \
+       OT_LABEL_START(Name) \
+       OT_USHORT(OT_COUNT(Name##Data, 2) + 1) \
+       OT_LABEL(Name##Data) \
+       Items \
+       OT_LABEL_END
+
+
+/*
+ * Common Types
+ */
+
+#define OT_LOOKUP_FLAG_IGNORE_MARKS    0x08u
+
+#define OT_LOOKUP(Name, LookupType, LookupFlag, SubLookupOffsets) \
+       OT_LABEL_START(Name) \
+       OT_USHORT(LookupType) \
+       OT_USHORT(LookupFlag) \
+       OT_LABEL_END \
+       OT_UARRAY(Name##SubLookupOffsetsArray, OT_LIST(SubLookupOffsets))
+
+#define OT_SUBLOOKUP(Name, SubFormat, Items) \
+       OT_LABEL_START(Name) \
+       OT_USHORT(SubFormat) \
+       Items
+
+#define OT_COVERAGE1(Name, Items) \
+       OT_LABEL_START(Name) \
+       OT_USHORT(1) \
+       OT_LABEL_END \
+       OT_UARRAY(Name##Glyphs, OT_LIST(Items))
+
+
+/*
+ * GSUB
+ */
+
+#define OT_LOOKUP_TYPE_SUBST_SINGLE    1u
+#define OT_LOOKUP_TYPE_SUBST_MULTIPLE  2u
+#define OT_LOOKUP_TYPE_SUBST_LIGATURE  4u
+
+#define OT_SUBLOOKUP_SINGLE_SUBST_FORMAT2(Name, FromGlyphs, ToGlyphs) \
+       OT_SUBLOOKUP(Name, 2, \
+               OT_OFFSET(Name, Name##Coverage) \
+               OT_LABEL_END \
+               OT_UARRAY(Name##Substitute, OT_LIST(ToGlyphs)) \
+       ) \
+       OT_COVERAGE1(Name##Coverage, OT_LIST(FromGlyphs)) \
+       /* ASSERT_STATIC_EXPR len(FromGlyphs) == len(ToGlyphs) */
+
+#define OT_SUBLOOKUP_LIGATURE_SUBST_FORMAT1(Name, FirstGlyphs, LigatureSetOffsets) \
+       OT_SUBLOOKUP(Name, 1, \
+               OT_OFFSET(Name, Name##Coverage) \
+               OT_LABEL_END \
+               OT_UARRAY(Name##LigatureSetOffsetsArray, OT_LIST(LigatureSetOffsets)) \
+       ) \
+       OT_COVERAGE1(Name##Coverage, OT_LIST(FirstGlyphs)) \
+       /* ASSERT_STATIC_EXPR len(FirstGlyphs) == len(LigatureSetOffsets) */
+
+#define OT_LIGATURE_SET(Name, LigatureSetOffsets) \
+       OT_UARRAY(Name, OT_LIST(LigatureSetOffsets))
+
+#define OT_LIGATURE(Name, Components, LigGlyph) \
+       OT_LABEL_START(Name) \
+       LigGlyph \
+       OT_LABEL_END \
+       OT_UHEADLESSARRAY(Name##ComponentsArray, OT_LIST(Components))
+
+/*
+ *
+ * Start of Windows-1256 shaping table.
+ *
+ */
+
+/* Table name. */
+#define TABLE_NAME arabic_win1256_gsub_lookups
+
+/* Table manifest. */
+#define MANIFEST(Items) \
+       OT_LABEL_START(manifest) \
+       OT_USHORT(OT_COUNT(manifestData, 6)) \
+       OT_LABEL(manifestData) \
+       Items \
+       OT_LABEL_END
+
+#define MANIFEST_LOOKUP(Tag, Name) \
+       Tag \
+       OT_OFFSET(manifest, Name)
+
+/* Shorthand. */
+#define G      OT_GLYPHID
+
+/*
+ * Table Start
+ */
+OT_TABLE_START
+
+
+/*
+ * Manifest
+ */
+MANIFEST(
+       MANIFEST_LOOKUP(OT_TAG('r','l','i','g'), rligLookup)
+       MANIFEST_LOOKUP(OT_TAG('i','n','i','t'), initLookup)
+       MANIFEST_LOOKUP(OT_TAG('m','e','d','i'), mediLookup)
+       MANIFEST_LOOKUP(OT_TAG('f','i','n','a'), finaLookup)
+       MANIFEST_LOOKUP(OT_TAG('r','l','i','g'), rligMarksLookup)
+)
+
+/*
+ * Lookups
+ */
+OT_LOOKUP(initLookup, OT_LOOKUP_TYPE_SUBST_SINGLE, OT_LOOKUP_FLAG_IGNORE_MARKS,
+       OT_OFFSET(initLookup, initmediSubLookup)
+       OT_OFFSET(initLookup, initSubLookup)
+)
+OT_LOOKUP(mediLookup, OT_LOOKUP_TYPE_SUBST_SINGLE, OT_LOOKUP_FLAG_IGNORE_MARKS,
+       OT_OFFSET(mediLookup, initmediSubLookup)
+       OT_OFFSET(mediLookup, mediSubLookup)
+       OT_OFFSET(mediLookup, medifinaLamAlefSubLookup)
+)
+OT_LOOKUP(finaLookup, OT_LOOKUP_TYPE_SUBST_SINGLE, OT_LOOKUP_FLAG_IGNORE_MARKS,
+       OT_OFFSET(finaLookup, finaSubLookup)
+       /* We don't need this one currently as the sequence inherits masks
+        * from the first item.  Just in case we change that in the future
+        * to be smart about Arabic masks when ligating... */
+       OT_OFFSET(finaLookup, medifinaLamAlefSubLookup)
+)
+OT_LOOKUP(rligLookup, OT_LOOKUP_TYPE_SUBST_LIGATURE, OT_LOOKUP_FLAG_IGNORE_MARKS,
+       OT_OFFSET(rligLookup, lamAlefLigaturesSubLookup)
+)
+OT_LOOKUP(rligMarksLookup, OT_LOOKUP_TYPE_SUBST_LIGATURE, 0,
+       OT_OFFSET(rligMarksLookup, shaddaLigaturesSubLookup)
+)
+
+/*
+ * init/medi/fina forms
+ */
+OT_SUBLOOKUP_SINGLE_SUBST_FORMAT2(initmediSubLookup,
+       G(198)  G(200)  G(201)  G(202)  G(203)  G(204)  G(205)  G(206)  G(211)
+       G(212)  G(213)  G(214)  G(223)  G(225)  G(227)  G(228)  G(236)  G(237),
+       G(162)  G(4)    G(5)    G(5)    G(6)    G(7)    G(9)    G(11)   G(13)
+       G(14)   G(15)   G(26)   G(140)  G(141)  G(142)  G(143)  G(154)  G(154)
+)
+OT_SUBLOOKUP_SINGLE_SUBST_FORMAT2(initSubLookup,
+       G(218)  G(219)  G(221)  G(222)  G(229),
+       G(27)   G(30)   G(128)  G(131)  G(144)
+)
+OT_SUBLOOKUP_SINGLE_SUBST_FORMAT2(mediSubLookup,
+       G(218)  G(219)  G(221)  G(222)  G(229),
+       G(28)   G(31)   G(129)  G(138)  G(149)
+)
+OT_SUBLOOKUP_SINGLE_SUBST_FORMAT2(finaSubLookup,
+       G(194)  G(195)  G(197)  G(198)  G(199)  G(201)  G(204)  G(205)  G(206)
+       G(218)  G(219)  G(229)  G(236)  G(237),
+       G(2)    G(1)    G(3)    G(181)  G(0)    G(159)  G(8)    G(10)   G(12)
+       G(29)   G(127)  G(152) G(160)   G(156)
+)
+OT_SUBLOOKUP_SINGLE_SUBST_FORMAT2(medifinaLamAlefSubLookup,
+       G(165)  G(178)  G(180)  G(252),
+       G(170)  G(179)  G(185)  G(255)
+)
+
+/*
+ * Lam+Alef ligatures
+ */
+OT_SUBLOOKUP_LIGATURE_SUBST_FORMAT1(lamAlefLigaturesSubLookup,
+       G(225),
+       OT_OFFSET(lamAlefLigaturesSubLookup, lamLigatureSet)
+)
+OT_LIGATURE_SET(lamLigatureSet,
+       OT_OFFSET(lamLigatureSet, lamInitLigature1)
+       OT_OFFSET(lamLigatureSet, lamInitLigature2)
+       OT_OFFSET(lamLigatureSet, lamInitLigature3)
+       OT_OFFSET(lamLigatureSet, lamInitLigature4)
+)
+OT_LIGATURE(lamInitLigature1, G(199), G(165))
+OT_LIGATURE(lamInitLigature2, G(195), G(178))
+OT_LIGATURE(lamInitLigature3, G(194), G(180))
+OT_LIGATURE(lamInitLigature4, G(197), G(252))
+
+/*
+ * Shadda ligatures
+ */
+OT_SUBLOOKUP_LIGATURE_SUBST_FORMAT1(shaddaLigaturesSubLookup,
+       G(248),
+       OT_OFFSET(shaddaLigaturesSubLookup, shaddaLigatureSet)
+)
+OT_LIGATURE_SET(shaddaLigatureSet,
+       OT_OFFSET(shaddaLigatureSet, shaddaLigature1)
+       OT_OFFSET(shaddaLigatureSet, shaddaLigature2)
+       OT_OFFSET(shaddaLigatureSet, shaddaLigature3)
+)
+OT_LIGATURE(shaddaLigature1, G(243), G(172))
+OT_LIGATURE(shaddaLigature2, G(245), G(173))
+OT_LIGATURE(shaddaLigature3, G(246), G(175))
+
+/*
+ * Table end
+ */
+OT_TABLE_END
+
+
+/*
+ * Clean up
+ */
+#undef OT_TABLE_START
+#undef OT_TABLE_END
+#undef OT_LABEL_START
+#undef OT_LABEL_END
+#undef OT_BYTE
+#undef OT_USHORT
+#undef OT_DISTANCE
+#undef OT_COUNT
+
+/*
+ * Include a second time to get the table data...
+ */
+#ifdef OT_MEASURE
+#include __FILE__
+#endif
+
+#define HB_OT_SHAPE_COMPLEX_ARABIC_WIN1256_HH
+#endif /* HB_OT_SHAPE_COMPLEX_ARABIC_WIN1256_HH */
diff --git a/src/hb-ot-shape-complex-arabic.cc b/src/hb-ot-shape-complex-arabic.cc
new file mode 100644 (file)
index 0000000..ae90864
--- /dev/null
@@ -0,0 +1,382 @@
+/*
+ * Copyright © 2010,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-ot-shape-complex-private.hh"
+#include "hb-ot-shape-private.hh"
+
+
+/* buffer var allocations */
+#define arabic_shaping_action() complex_var_u8_0() /* arabic shaping action */
+
+
+/*
+ * Bits used in the joining tables
+ */
+enum {
+  JOINING_TYPE_U               = 0,
+  JOINING_TYPE_L               = 1,
+  JOINING_TYPE_R               = 2,
+  JOINING_TYPE_D               = 3,
+  JOINING_TYPE_C               = JOINING_TYPE_D,
+  JOINING_GROUP_ALAPH          = 4,
+  JOINING_GROUP_DALATH_RISH    = 5,
+  NUM_STATE_MACHINE_COLS       = 6,
+
+  JOINING_TYPE_T = 7,
+  JOINING_TYPE_X = 8  /* means: use general-category to choose between U or T. */
+};
+
+/*
+ * Joining types:
+ */
+
+#include "hb-ot-shape-complex-arabic-table.hh"
+
+static unsigned int get_joining_type (hb_codepoint_t u, hb_unicode_general_category_t gen_cat)
+{
+  unsigned int j_type = joining_type(u);
+  if (likely (j_type != JOINING_TYPE_X))
+    return j_type;
+
+  return (FLAG(gen_cat) &
+         (FLAG(HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK) |
+          FLAG(HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK) |
+          FLAG(HB_UNICODE_GENERAL_CATEGORY_FORMAT))
+        ) ?  JOINING_TYPE_T : JOINING_TYPE_U;
+}
+
+#define FEATURE_IS_SYRIAC(tag) hb_in_range<unsigned char> ((unsigned char) (tag), '2', '3')
+
+static const hb_tag_t arabic_features[] =
+{
+  HB_TAG('i','s','o','l'),
+  HB_TAG('f','i','n','a'),
+  HB_TAG('f','i','n','2'),
+  HB_TAG('f','i','n','3'),
+  HB_TAG('m','e','d','i'),
+  HB_TAG('m','e','d','2'),
+  HB_TAG('i','n','i','t'),
+  HB_TAG_NONE
+};
+
+
+/* Same order as the feature array */
+enum {
+  ISOL,
+  FINA,
+  FIN2,
+  FIN3,
+  MEDI,
+  MED2,
+  INIT,
+
+  NONE,
+
+  ARABIC_NUM_FEATURES = NONE
+};
+
+static const struct arabic_state_table_entry {
+       uint8_t prev_action;
+       uint8_t curr_action;
+       uint16_t next_state;
+} arabic_state_table[][NUM_STATE_MACHINE_COLS] =
+{
+  /*   jt_U,          jt_L,          jt_R,          jt_D,          jg_ALAPH,      jg_DALATH_RISH */
+
+  /* State 0: prev was U, not willing to join. */
+  { {NONE,NONE,0}, {NONE,ISOL,2}, {NONE,ISOL,1}, {NONE,ISOL,2}, {NONE,ISOL,1}, {NONE,ISOL,6}, },
+
+  /* State 1: prev was R or ISOL/ALAPH, not willing to join. */
+  { {NONE,NONE,0}, {NONE,ISOL,2}, {NONE,ISOL,1}, {NONE,ISOL,2}, {NONE,FIN2,5}, {NONE,ISOL,6}, },
+
+  /* State 2: prev was D/L in ISOL form, willing to join. */
+  { {NONE,NONE,0}, {NONE,ISOL,2}, {INIT,FINA,1}, {INIT,FINA,3}, {INIT,FINA,4}, {INIT,FINA,6}, },
+
+  /* State 3: prev was D in FINA form, willing to join. */
+  { {NONE,NONE,0}, {NONE,ISOL,2}, {MEDI,FINA,1}, {MEDI,FINA,3}, {MEDI,FINA,4}, {MEDI,FINA,6}, },
+
+  /* State 4: prev was FINA ALAPH, not willing to join. */
+  { {NONE,NONE,0}, {NONE,ISOL,2}, {MED2,ISOL,1}, {MED2,ISOL,2}, {MED2,FIN2,5}, {MED2,ISOL,6}, },
+
+  /* State 5: prev was FIN2/FIN3 ALAPH, not willing to join. */
+  { {NONE,NONE,0}, {NONE,ISOL,2}, {ISOL,ISOL,1}, {ISOL,ISOL,2}, {ISOL,FIN2,5}, {ISOL,ISOL,6}, },
+
+  /* State 6: prev was DALATH/RISH, not willing to join. */
+  { {NONE,NONE,0}, {NONE,ISOL,2}, {NONE,ISOL,1}, {NONE,ISOL,2}, {NONE,FIN3,5}, {NONE,ISOL,6}, }
+};
+
+
+static void
+nuke_joiners (const hb_ot_shape_plan_t *plan,
+             hb_font_t *font,
+             hb_buffer_t *buffer);
+
+static void
+arabic_fallback_shape (const hb_ot_shape_plan_t *plan,
+                      hb_font_t *font,
+                      hb_buffer_t *buffer);
+
+static void
+collect_features_arabic (hb_ot_shape_planner_t *plan)
+{
+  hb_ot_map_builder_t *map = &plan->map;
+
+  /* We apply features according to the Arabic spec, with pauses
+   * in between most.
+   *
+   * The pause between init/medi/... and rlig is required.  See eg:
+   * https://bugzilla.mozilla.org/show_bug.cgi?id=644184
+   *
+   * The pauses between init/medi/... themselves are not necessarily
+   * needed as only one of those features is applied to any character.
+   * The only difference it makes is when fonts have contextual
+   * substitutions.  We now follow the order of the spec, which makes
+   * for better experience if that's what Uniscribe is doing.
+   *
+   * At least for Arabic, looks like Uniscribe has a pause between
+   * rlig and calt.  Otherwise the IranNastaliq's ALLAH ligature won't
+   * work.  However, testing shows that rlig and calt are applied
+   * together for Mongolian in Uniscribe.  As such, we only add a
+   * pause for Arabic, not other scripts.
+   */
+
+  map->add_gsub_pause (nuke_joiners);
+
+  map->add_global_bool_feature (HB_TAG('c','c','m','p'));
+  map->add_global_bool_feature (HB_TAG('l','o','c','l'));
+
+  map->add_gsub_pause (NULL);
+
+  for (unsigned int i = 0; i < ARABIC_NUM_FEATURES; i++)
+  {
+    bool has_fallback = plan->props.script == HB_SCRIPT_ARABIC && !FEATURE_IS_SYRIAC (arabic_features[i]);
+    map->add_feature (arabic_features[i], 1, has_fallback ? F_HAS_FALLBACK : F_NONE);
+    map->add_gsub_pause (NULL);
+  }
+
+  map->add_feature (HB_TAG('r','l','i','g'), 1, F_GLOBAL|F_HAS_FALLBACK);
+  if (plan->props.script == HB_SCRIPT_ARABIC)
+    map->add_gsub_pause (arabic_fallback_shape);
+
+  map->add_global_bool_feature (HB_TAG('c','a','l','t'));
+  map->add_gsub_pause (NULL);
+
+  /* The spec includes 'cswh'.  Earlier versions of Windows
+   * used to enable this by default, but testing suggests
+   * that Windows 8 and later do not enable it by default,
+   * and spec now says 'Off by default'.
+   * We disabled this in ae23c24c32.
+   * Note that IranNastaliq uses this feature extensively
+   * to fixup broken glyph sequences.  Oh well...
+   * Test case: U+0643,U+0640,U+0631. */
+  //map->add_global_bool_feature (HB_TAG('c','s','w','h'));
+  map->add_global_bool_feature (HB_TAG('m','s','e','t'));
+}
+
+#include "hb-ot-shape-complex-arabic-fallback.hh"
+
+struct arabic_shape_plan_t
+{
+  ASSERT_POD ();
+
+  /* The "+ 1" in the next array is to accommodate for the "NONE" command,
+   * which is not an OpenType feature, but this simplifies the code by not
+   * having to do a "if (... < NONE) ..." and just rely on the fact that
+   * mask_array[NONE] == 0. */
+  hb_mask_t mask_array[ARABIC_NUM_FEATURES + 1];
+
+  bool do_fallback;
+  arabic_fallback_plan_t *fallback_plan;
+};
+
+static void *
+data_create_arabic (const hb_ot_shape_plan_t *plan)
+{
+  arabic_shape_plan_t *arabic_plan = (arabic_shape_plan_t *) calloc (1, sizeof (arabic_shape_plan_t));
+  if (unlikely (!arabic_plan))
+    return NULL;
+
+  arabic_plan->do_fallback = plan->props.script == HB_SCRIPT_ARABIC;
+  for (unsigned int i = 0; i < ARABIC_NUM_FEATURES; i++) {
+    arabic_plan->mask_array[i] = plan->map.get_1_mask (arabic_features[i]);
+    arabic_plan->do_fallback = arabic_plan->do_fallback &&
+                              (FEATURE_IS_SYRIAC (arabic_features[i]) ||
+                               plan->map.needs_fallback (arabic_features[i]));
+  }
+
+  return arabic_plan;
+}
+
+static void
+data_destroy_arabic (void *data)
+{
+  arabic_shape_plan_t *arabic_plan = (arabic_shape_plan_t *) data;
+
+  arabic_fallback_plan_destroy (arabic_plan->fallback_plan);
+
+  free (data);
+}
+
+static void
+arabic_joining (hb_buffer_t *buffer)
+{
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  unsigned int prev = (unsigned int) -1, state = 0;
+
+  /* Check pre-context */
+  for (unsigned int i = 0; i < buffer->context_len[0]; i++)
+  {
+    unsigned int this_type = get_joining_type (buffer->context[0][i], buffer->unicode->general_category (buffer->context[0][i]));
+
+    if (unlikely (this_type == JOINING_TYPE_T))
+      continue;
+
+    const arabic_state_table_entry *entry = &arabic_state_table[state][this_type];
+    state = entry->next_state;
+    break;
+  }
+
+  for (unsigned int i = 0; i < count; i++)
+  {
+    unsigned int this_type = get_joining_type (info[i].codepoint, _hb_glyph_info_get_general_category (&info[i]));
+
+    if (unlikely (this_type == JOINING_TYPE_T)) {
+      info[i].arabic_shaping_action() = NONE;
+      continue;
+    }
+
+    const arabic_state_table_entry *entry = &arabic_state_table[state][this_type];
+
+    if (entry->prev_action != NONE && prev != (unsigned int) -1)
+      info[prev].arabic_shaping_action() = entry->prev_action;
+
+    info[i].arabic_shaping_action() = entry->curr_action;
+
+    prev = i;
+    state = entry->next_state;
+  }
+
+  for (unsigned int i = 0; i < buffer->context_len[1]; i++)
+  {
+    unsigned int this_type = get_joining_type (buffer->context[1][i], buffer->unicode->general_category (buffer->context[1][i]));
+
+    if (unlikely (this_type == JOINING_TYPE_T))
+      continue;
+
+    const arabic_state_table_entry *entry = &arabic_state_table[state][this_type];
+    if (entry->prev_action != NONE && prev != (unsigned int) -1)
+      info[prev].arabic_shaping_action() = entry->prev_action;
+    break;
+  }
+}
+
+static void
+mongolian_variation_selectors (hb_buffer_t *buffer)
+{
+  /* Copy arabic_shaping_action() from base to Mongolian variation selectors. */
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 1; i < count; i++)
+    if (unlikely (hb_in_range (info[i].codepoint, 0x180Bu, 0x180Du)))
+      info[i].arabic_shaping_action() = info[i - 1].arabic_shaping_action();
+}
+
+static void
+setup_masks_arabic (const hb_ot_shape_plan_t *plan,
+                   hb_buffer_t              *buffer,
+                   hb_font_t                *font HB_UNUSED)
+{
+  HB_BUFFER_ALLOCATE_VAR (buffer, arabic_shaping_action);
+
+  const arabic_shape_plan_t *arabic_plan = (const arabic_shape_plan_t *) plan->data;
+
+  arabic_joining (buffer);
+  if (plan->props.script == HB_SCRIPT_MONGOLIAN)
+    mongolian_variation_selectors (buffer);
+
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+    info[i].mask |= arabic_plan->mask_array[info[i].arabic_shaping_action()];
+
+  HB_BUFFER_DEALLOCATE_VAR (buffer, arabic_shaping_action);
+}
+
+
+static void
+nuke_joiners (const hb_ot_shape_plan_t *plan HB_UNUSED,
+             hb_font_t *font HB_UNUSED,
+             hb_buffer_t *buffer)
+{
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+    if (_hb_glyph_info_is_zwj (&info[i]))
+      _hb_glyph_info_flip_joiners (&info[i]);
+}
+
+static void
+arabic_fallback_shape (const hb_ot_shape_plan_t *plan,
+                      hb_font_t *font,
+                      hb_buffer_t *buffer)
+{
+  const arabic_shape_plan_t *arabic_plan = (const arabic_shape_plan_t *) plan->data;
+
+  if (!arabic_plan->do_fallback)
+    return;
+
+retry:
+  arabic_fallback_plan_t *fallback_plan = (arabic_fallback_plan_t *) hb_atomic_ptr_get (&arabic_plan->fallback_plan);
+  if (unlikely (!fallback_plan))
+  {
+    /* This sucks.  We need a font to build the fallback plan... */
+    fallback_plan = arabic_fallback_plan_create (plan, font);
+    if (unlikely (!hb_atomic_ptr_cmpexch (&(const_cast<arabic_shape_plan_t *> (arabic_plan))->fallback_plan, NULL, fallback_plan))) {
+      arabic_fallback_plan_destroy (fallback_plan);
+      goto retry;
+    }
+  }
+
+  arabic_fallback_plan_shape (fallback_plan, font, buffer);
+}
+
+
+const hb_ot_complex_shaper_t _hb_ot_complex_shaper_arabic =
+{
+  "arabic",
+  collect_features_arabic,
+  NULL, /* override_features */
+  data_create_arabic,
+  data_destroy_arabic,
+  NULL, /* preprocess_text_arabic */
+  HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT,
+  NULL, /* decompose */
+  NULL, /* compose */
+  setup_masks_arabic,
+  HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_LATE,
+  true, /* fallback_position */
+};
diff --git a/src/hb-ot-shape-complex-default.cc b/src/hb-ot-shape-complex-default.cc
new file mode 100644 (file)
index 0000000..f7f097e
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * Copyright © 2010,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-ot-shape-complex-private.hh"
+
+
+const hb_ot_complex_shaper_t _hb_ot_complex_shaper_default =
+{
+  "default",
+  NULL, /* collect_features */
+  NULL, /* override_features */
+  NULL, /* data_create */
+  NULL, /* data_destroy */
+  NULL, /* preprocess_text */
+  HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT,
+  NULL, /* decompose */
+  NULL, /* compose */
+  NULL, /* setup_masks */
+  HB_OT_SHAPE_ZERO_WIDTH_MARKS_DEFAULT,
+  true, /* fallback_position */
+};
diff --git a/src/hb-ot-shape-complex-hangul.cc b/src/hb-ot-shape-complex-hangul.cc
new file mode 100644 (file)
index 0000000..6ac18b0
--- /dev/null
@@ -0,0 +1,426 @@
+/*
+ * Copyright © 2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-ot-shape-complex-private.hh"
+
+
+/* Hangul shaper */
+
+
+/* Same order as the feature array below */
+enum {
+  NONE,
+
+  LJMO,
+  VJMO,
+  TJMO,
+
+  FIRST_HANGUL_FEATURE = LJMO,
+  HANGUL_FEATURE_COUNT = TJMO + 1
+};
+
+static const hb_tag_t hangul_features[HANGUL_FEATURE_COUNT] =
+{
+  HB_TAG_NONE,
+  HB_TAG('l','j','m','o'),
+  HB_TAG('v','j','m','o'),
+  HB_TAG('t','j','m','o')
+};
+
+static void
+collect_features_hangul (hb_ot_shape_planner_t *plan)
+{
+  hb_ot_map_builder_t *map = &plan->map;
+
+  for (unsigned int i = FIRST_HANGUL_FEATURE; i < HANGUL_FEATURE_COUNT; i++)
+    map->add_feature (hangul_features[i], 1, F_NONE);
+}
+
+static void
+override_features_hangul (hb_ot_shape_planner_t *plan)
+{
+  /* Uniscribe does not apply 'calt' for Hangul, and certain fonts
+   * (Noto Sans CJK, Source Sans Han, etc) apply all of jamo lookups
+   * in calt, which is not desirable. */
+  plan->map.add_feature (HB_TAG('c','a','l','t'), 0, F_GLOBAL);
+}
+
+struct hangul_shape_plan_t
+{
+  ASSERT_POD ();
+
+  hb_mask_t mask_array[HANGUL_FEATURE_COUNT];
+};
+
+static void *
+data_create_hangul (const hb_ot_shape_plan_t *plan)
+{
+  hangul_shape_plan_t *hangul_plan = (hangul_shape_plan_t *) calloc (1, sizeof (hangul_shape_plan_t));
+  if (unlikely (!hangul_plan))
+    return NULL;
+
+  for (unsigned int i = 0; i < HANGUL_FEATURE_COUNT; i++)
+    hangul_plan->mask_array[i] = plan->map.get_1_mask (hangul_features[i]);
+
+  return hangul_plan;
+}
+
+static void
+data_destroy_hangul (void *data)
+{
+  free (data);
+}
+
+/* Constants for algorithmic hangul syllable [de]composition. */
+#define LBase 0x1100u
+#define VBase 0x1161u
+#define TBase 0x11A7u
+#define LCount 19u
+#define VCount 21u
+#define TCount 28u
+#define SBase 0xAC00u
+#define NCount (VCount * TCount)
+#define SCount (LCount * NCount)
+
+#define isCombiningL(u) (hb_in_range ((u), LBase, LBase+LCount-1))
+#define isCombiningV(u) (hb_in_range ((u), VBase, VBase+VCount-1))
+#define isCombiningT(u) (hb_in_range ((u), TBase+1, TBase+TCount-1))
+#define isCombinedS(u) (hb_in_range ((u), SBase, SBase+SCount-1))
+
+#define isL(u) (hb_in_ranges ((u), 0x1100u, 0x115Fu, 0xA960u, 0xA97Cu))
+#define isV(u) (hb_in_ranges ((u), 0x1160u, 0x11A7u, 0xD7B0u, 0xD7C6u))
+#define isT(u) (hb_in_ranges ((u), 0x11A8u, 0x11FFu, 0xD7CBu, 0xD7FBu))
+
+#define isHangulTone(u) (hb_in_range ((u), 0x302Eu, 0x302Fu))
+
+/* buffer var allocations */
+#define hangul_shaping_feature() complex_var_u8_0() /* hangul jamo shaping feature */
+
+static bool
+is_zero_width_char (hb_font_t *font,
+                   hb_codepoint_t unicode)
+{
+  hb_codepoint_t glyph;
+  return hb_font_get_glyph (font, unicode, 0, &glyph) && hb_font_get_glyph_h_advance (font, glyph) == 0;
+}
+
+static void
+preprocess_text_hangul (const hb_ot_shape_plan_t *plan,
+                       hb_buffer_t              *buffer,
+                       hb_font_t                *font)
+{
+  HB_BUFFER_ALLOCATE_VAR (buffer, hangul_shaping_feature);
+
+  /* Hangul syllables come in two shapes: LV, and LVT.  Of those:
+   *
+   *   - LV can be precomposed, or decomposed.  Lets call those
+   *     <LV> and <L,V>,
+   *   - LVT can be fully precomposed, partically precomposed, or
+   *     fully decomposed.  Ie. <LVT>, <LV,T>, or <L,V,T>.
+   *
+   * The composition / decomposition is mechanical.  However, not
+   * all <L,V> sequences compose, and not all <LV,T> sequences
+   * compose.
+   *
+   * Here are the specifics:
+   *
+   *   - <L>: U+1100..115F, U+A960..A97F
+   *   - <V>: U+1160..11A7, U+D7B0..D7C7
+   *   - <T>: U+11A8..11FF, U+D7CB..D7FB
+   *
+   *   - Only the <L,V> sequences for the 11xx ranges combine.
+   *   - Only <LV,T> sequences for T in U+11A8..11C3 combine.
+   *
+   * Here is what we want to accomplish in this shaper:
+   *
+   *   - If the whole syllable can be precomposed, do that,
+   *   - Otherwise, fully decompose and apply ljmo/vjmo/tjmo features.
+   *   - If a valid syllable is followed by a Hangul tone mark, reorder the tone
+   *     mark to precede the whole syllable - unless it is a zero-width glyph, in
+   *     which case we leave it untouched, assuming it's designed to overstrike.
+   *
+   * That is, of the different possible syllables:
+   *
+   *   <L>
+   *   <L,V>
+   *   <L,V,T>
+   *   <LV>
+   *   <LVT>
+   *   <LV, T>
+   *
+   * - <L> needs no work.
+   *
+   * - <LV> and <LVT> can stay the way they are if the font supports them, otherwise we
+   *   should fully decompose them if font supports.
+   *
+   * - <L,V> and <L,V,T> we should compose if the whole thing can be composed.
+   *
+   * - <LV,T> we should compose if the whole thing can be composed, otherwise we should
+   *   decompose.
+   */
+
+  buffer->clear_output ();
+  unsigned int start = 0, end = 0; /* Extent of most recently seen syllable;
+                                   * valid only if start < end
+                                   */
+  unsigned int count = buffer->len;
+
+  for (buffer->idx = 0; buffer->idx < count;)
+  {
+    hb_codepoint_t u = buffer->cur().codepoint;
+
+    if (isHangulTone (u))
+    {
+      /*
+       * We could cache the width of the tone marks and the existence of dotted-circle,
+       * but the use of the Hangul tone mark characters seems to be rare enough that
+       * I didn't bother for now.
+       */
+      if (start < end && end == buffer->out_len)
+      {
+       /* Tone mark follows a valid syllable; move it in front, unless it's zero width. */
+       buffer->next_glyph ();
+       if (!is_zero_width_char (font, u))
+       {
+         hb_glyph_info_t *info = buffer->out_info;
+         hb_glyph_info_t tone = info[end];
+         memmove (&info[start + 1], &info[start], (end - start) * sizeof (hb_glyph_info_t));
+         info[start] = tone;
+       }
+       /* Merge clusters across the (possibly reordered) syllable+tone.
+        * We want to merge even in the zero-width tone mark case here,
+        * so that clustering behavior isn't dependent on how the tone mark
+        * is handled by the font.
+        */
+       buffer->merge_out_clusters (start, end + 1);
+      }
+      else
+      {
+       /* No valid syllable as base for tone mark; try to insert dotted circle. */
+       if (font->has_glyph (0x25CCu))
+       {
+         hb_codepoint_t chars[2];
+         if (!is_zero_width_char (font, u)) {
+           chars[0] = u;
+           chars[1] = 0x25CCu;
+         } else {
+           chars[0] = 0x25CCu;
+           chars[1] = u;
+         }
+         buffer->replace_glyphs (1, 2, chars);
+       }
+       else
+       {
+         /* No dotted circle available in the font; just leave tone mark untouched. */
+         buffer->next_glyph ();
+       }
+      }
+      start = end = buffer->out_len;
+      continue;
+    }
+
+    start = buffer->out_len; /* Remember current position as a potential syllable start;
+                             * will only be used if we set end to a later position.
+                             */
+
+    if (isL (u) && buffer->idx + 1 < count)
+    {
+      hb_codepoint_t l = u;
+      hb_codepoint_t v = buffer->cur(+1).codepoint;
+      if (isV (v))
+      {
+       /* Have <L,V> or <L,V,T>. */
+       hb_codepoint_t t = 0;
+       unsigned int tindex = 0;
+       if (buffer->idx + 2 < count)
+       {
+         t = buffer->cur(+2).codepoint;
+         if (isT (t))
+           tindex = t - TBase; /* Only used if isCombiningT (t); otherwise invalid. */
+         else
+           t = 0; /* The next character was not a trailing jamo. */
+       }
+
+       /* We've got a syllable <L,V,T?>; see if it can potentially be composed. */
+       if (isCombiningL (l) && isCombiningV (v) && (t == 0 || isCombiningT (t)))
+       {
+         /* Try to compose; if this succeeds, end is set to start+1. */
+         hb_codepoint_t s = SBase + (l - LBase) * NCount + (v - VBase) * TCount + tindex;
+         if (font->has_glyph (s))
+         {
+           buffer->replace_glyphs (t ? 3 : 2, 1, &s);
+           if (unlikely (buffer->in_error))
+             return;
+           end = start + 1;
+           continue;
+         }
+       }
+
+       /* We didn't compose, either because it's an Old Hangul syllable without a
+        * precomposed character in Unicode, or because the font didn't support the
+        * necessary precomposed glyph.
+        * Set jamo features on the individual glyphs, and advance past them.
+        */
+       buffer->cur().hangul_shaping_feature() = LJMO;
+       buffer->next_glyph ();
+       buffer->cur().hangul_shaping_feature() = VJMO;
+       buffer->next_glyph ();
+       if (t)
+       {
+         buffer->cur().hangul_shaping_feature() = TJMO;
+         buffer->next_glyph ();
+         end = start + 3;
+       }
+       else
+         end = start + 2;
+       buffer->merge_out_clusters (start, end);
+       continue;
+      }
+    }
+
+    else if (isCombinedS (u))
+    {
+      /* Have <LV>, <LVT>, or <LV,T> */
+      hb_codepoint_t s = u;
+      bool has_glyph = font->has_glyph (s);
+      unsigned int lindex = (s - SBase) / NCount;
+      unsigned int nindex = (s - SBase) % NCount;
+      unsigned int vindex = nindex / TCount;
+      unsigned int tindex = nindex % TCount;
+
+      if (!tindex &&
+         buffer->idx + 1 < count &&
+         isCombiningT (buffer->cur(+1).codepoint))
+      {
+       /* <LV,T>, try to combine. */
+       unsigned int new_tindex = buffer->cur(+1).codepoint - TBase;
+       hb_codepoint_t new_s = s + new_tindex;
+       if (font->has_glyph (new_s))
+       {
+         buffer->replace_glyphs (2, 1, &new_s);
+         if (unlikely (buffer->in_error))
+           return;
+         end = start + 1;
+         continue;
+       }
+      }
+
+      /* Otherwise, decompose if font doesn't support <LV> or <LVT>,
+       * or if having non-combining <LV,T>.  Note that we already handled
+       * combining <LV,T> above. */
+      if (!has_glyph ||
+         (!tindex &&
+          buffer->idx + 1 < count &&
+          isT (buffer->cur(+1).codepoint)))
+      {
+       hb_codepoint_t decomposed[3] = {LBase + lindex,
+                                       VBase + vindex,
+                                       TBase + tindex};
+       if (font->has_glyph (decomposed[0]) &&
+           font->has_glyph (decomposed[1]) &&
+           (!tindex || font->has_glyph (decomposed[2])))
+       {
+         unsigned int s_len = tindex ? 3 : 2;
+         buffer->replace_glyphs (1, s_len, decomposed);
+         if (unlikely (buffer->in_error))
+           return;
+
+         /* We decomposed S: apply jamo features to the individual glyphs
+          * that are now in buffer->out_info.
+          */
+         hb_glyph_info_t *info = buffer->out_info;
+
+         /* If we decomposed an LV because of a non-combining T following,
+          * we want to include this T in the syllable.
+          */
+         if (has_glyph && !tindex)
+         {
+            buffer->next_glyph ();
+            s_len++;
+          }
+          end = start + s_len;
+
+         unsigned int i = start;
+         info[i++].hangul_shaping_feature() = LJMO;
+         info[i++].hangul_shaping_feature() = VJMO;
+         if (i < end)
+           info[i++].hangul_shaping_feature() = TJMO;
+         buffer->merge_out_clusters (start, end);
+         continue;
+       }
+      }
+
+      if (has_glyph)
+      {
+        /* We didn't decompose the S, so just advance past it. */
+       end = start + 1;
+       buffer->next_glyph ();
+       continue;
+      }
+    }
+
+    /* Didn't find a recognizable syllable, so we leave end <= start;
+     * this will prevent tone-mark reordering happening.
+     */
+    buffer->next_glyph ();
+  }
+  buffer->swap_buffers ();
+}
+
+static void
+setup_masks_hangul (const hb_ot_shape_plan_t *plan,
+                   hb_buffer_t              *buffer,
+                   hb_font_t                *font HB_UNUSED)
+{
+  const hangul_shape_plan_t *hangul_plan = (const hangul_shape_plan_t *) plan->data;
+
+  if (likely (hangul_plan))
+  {
+    unsigned int count = buffer->len;
+    hb_glyph_info_t *info = buffer->info;
+    for (unsigned int i = 0; i < count; i++, info++)
+      info->mask |= hangul_plan->mask_array[info->hangul_shaping_feature()];
+  }
+
+  HB_BUFFER_DEALLOCATE_VAR (buffer, hangul_shaping_feature);
+}
+
+
+const hb_ot_complex_shaper_t _hb_ot_complex_shaper_hangul =
+{
+  "hangul",
+  collect_features_hangul,
+  override_features_hangul,
+  data_create_hangul, /* data_create */
+  data_destroy_hangul, /* data_destroy */
+  preprocess_text_hangul,
+  HB_OT_SHAPE_NORMALIZATION_MODE_NONE,
+  NULL, /* decompose */
+  NULL, /* compose */
+  setup_masks_hangul, /* setup_masks */
+  HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE,
+  false, /* fallback_position */
+};
diff --git a/src/hb-ot-shape-complex-hebrew.cc b/src/hb-ot-shape-complex-hebrew.cc
new file mode 100644 (file)
index 0000000..c7b7a5e
--- /dev/null
@@ -0,0 +1,172 @@
+/*
+ * Copyright © 2010,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-ot-shape-complex-private.hh"
+
+
+static bool
+compose_hebrew (const hb_ot_shape_normalize_context_t *c,
+               hb_codepoint_t  a,
+               hb_codepoint_t  b,
+               hb_codepoint_t *ab)
+{
+  /* Hebrew presentation-form shaping.
+   * https://bugzilla.mozilla.org/show_bug.cgi?id=728866
+   * Hebrew presentation forms with dagesh, for characters U+05D0..05EA;
+   * Note that some letters do not have a dagesh presForm encoded.
+   */
+  static const hb_codepoint_t sDageshForms[0x05EAu - 0x05D0u + 1] = {
+    0xFB30u, /* ALEF */
+    0xFB31u, /* BET */
+    0xFB32u, /* GIMEL */
+    0xFB33u, /* DALET */
+    0xFB34u, /* HE */
+    0xFB35u, /* VAV */
+    0xFB36u, /* ZAYIN */
+    0x0000u, /* HET */
+    0xFB38u, /* TET */
+    0xFB39u, /* YOD */
+    0xFB3Au, /* FINAL KAF */
+    0xFB3Bu, /* KAF */
+    0xFB3Cu, /* LAMED */
+    0x0000u, /* FINAL MEM */
+    0xFB3Eu, /* MEM */
+    0x0000u, /* FINAL NUN */
+    0xFB40u, /* NUN */
+    0xFB41u, /* SAMEKH */
+    0x0000u, /* AYIN */
+    0xFB43u, /* FINAL PE */
+    0xFB44u, /* PE */
+    0x0000u, /* FINAL TSADI */
+    0xFB46u, /* TSADI */
+    0xFB47u, /* QOF */
+    0xFB48u, /* RESH */
+    0xFB49u, /* SHIN */
+    0xFB4Au /* TAV */
+  };
+
+  bool found = c->unicode->compose (a, b, ab);
+
+  if (!found && !c->plan->has_mark)
+  {
+      /* Special-case Hebrew presentation forms that are excluded from
+       * standard normalization, but wanted for old fonts. */
+      switch (b) {
+      case 0x05B4u: /* HIRIQ */
+         if (a == 0x05D9u) { /* YOD */
+             *ab = 0xFB1Du;
+             found = true;
+         }
+         break;
+      case 0x05B7u: /* patah */
+         if (a == 0x05F2u) { /* YIDDISH YOD YOD */
+             *ab = 0xFB1Fu;
+             found = true;
+         } else if (a == 0x05D0u) { /* ALEF */
+             *ab = 0xFB2Eu;
+             found = true;
+         }
+         break;
+      case 0x05B8u: /* QAMATS */
+         if (a == 0x05D0u) { /* ALEF */
+             *ab = 0xFB2Fu;
+             found = true;
+         }
+         break;
+      case 0x05B9u: /* HOLAM */
+         if (a == 0x05D5u) { /* VAV */
+             *ab = 0xFB4Bu;
+             found = true;
+         }
+         break;
+      case 0x05BCu: /* DAGESH */
+         if (a >= 0x05D0u && a <= 0x05EAu) {
+             *ab = sDageshForms[a - 0x05D0u];
+             found = (*ab != 0);
+         } else if (a == 0xFB2Au) { /* SHIN WITH SHIN DOT */
+             *ab = 0xFB2Cu;
+             found = true;
+         } else if (a == 0xFB2Bu) { /* SHIN WITH SIN DOT */
+             *ab = 0xFB2Du;
+             found = true;
+         }
+         break;
+      case 0x05BFu: /* RAFE */
+         switch (a) {
+         case 0x05D1u: /* BET */
+             *ab = 0xFB4Cu;
+             found = true;
+             break;
+         case 0x05DBu: /* KAF */
+             *ab = 0xFB4Du;
+             found = true;
+             break;
+         case 0x05E4u: /* PE */
+             *ab = 0xFB4Eu;
+             found = true;
+             break;
+         }
+         break;
+      case 0x05C1u: /* SHIN DOT */
+         if (a == 0x05E9u) { /* SHIN */
+             *ab = 0xFB2Au;
+             found = true;
+         } else if (a == 0xFB49u) { /* SHIN WITH DAGESH */
+             *ab = 0xFB2Cu;
+             found = true;
+         }
+         break;
+      case 0x05C2u: /* SIN DOT */
+         if (a == 0x05E9u) { /* SHIN */
+             *ab = 0xFB2Bu;
+             found = true;
+         } else if (a == 0xFB49u) { /* SHIN WITH DAGESH */
+             *ab = 0xFB2Du;
+             found = true;
+         }
+         break;
+      }
+  }
+
+  return found;
+}
+
+
+const hb_ot_complex_shaper_t _hb_ot_complex_shaper_hebrew =
+{
+  "hebrew",
+  NULL, /* collect_features */
+  NULL, /* override_features */
+  NULL, /* data_create */
+  NULL, /* data_destroy */
+  NULL, /* preprocess_text */
+  HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT,
+  NULL, /* decompose */
+  compose_hebrew,
+  NULL, /* setup_masks */
+  HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_LATE,
+  true, /* fallback_position */
+};
diff --git a/src/hb-ot-shape-complex-indic-machine.hh b/src/hb-ot-shape-complex-indic-machine.hh
new file mode 100644 (file)
index 0000000..5fbdcc8
--- /dev/null
@@ -0,0 +1,1732 @@
+
+#line 1 "../../src/hb-ot-shape-complex-indic-machine.rl"
+/*
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_SHAPE_COMPLEX_INDIC_MACHINE_HH
+#define HB_OT_SHAPE_COMPLEX_INDIC_MACHINE_HH
+
+#include "hb-private.hh"
+
+
+#line 36 "../../src/hb-ot-shape-complex-indic-machine.hh.tmp"
+static const unsigned char _indic_syllable_machine_trans_keys[] = {
+       1u, 16u, 13u, 13u, 5u, 7u, 5u, 7u, 7u, 7u, 5u, 7u, 5u, 7u, 7u, 7u, 
+       5u, 7u, 5u, 7u, 7u, 7u, 5u, 7u, 5u, 7u, 7u, 7u, 4u, 4u, 6u, 6u, 
+       16u, 16u, 4u, 7u, 6u, 6u, 16u, 16u, 4u, 7u, 6u, 6u, 16u, 16u, 4u, 7u, 
+       6u, 6u, 16u, 16u, 4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 
+       4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 1u, 16u, 13u, 13u, 5u, 7u, 5u, 7u, 
+       7u, 7u, 5u, 7u, 5u, 7u, 7u, 7u, 5u, 7u, 5u, 7u, 7u, 7u, 5u, 7u, 
+       5u, 7u, 7u, 7u, 4u, 4u, 6u, 6u, 16u, 16u, 4u, 7u, 6u, 6u, 16u, 16u, 
+       4u, 7u, 6u, 6u, 16u, 16u, 4u, 7u, 6u, 6u, 16u, 16u, 4u, 14u, 4u, 14u, 
+       4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 
+       1u, 16u, 13u, 13u, 5u, 7u, 5u, 7u, 7u, 7u, 5u, 7u, 5u, 7u, 7u, 7u, 
+       5u, 7u, 5u, 7u, 7u, 7u, 5u, 7u, 5u, 7u, 7u, 7u, 4u, 4u, 6u, 6u, 
+       16u, 16u, 4u, 7u, 6u, 6u, 16u, 16u, 4u, 7u, 6u, 6u, 16u, 16u, 4u, 7u, 
+       6u, 6u, 16u, 16u, 4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 
+       4u, 14u, 4u, 14u, 4u, 14u, 1u, 16u, 13u, 13u, 5u, 7u, 5u, 7u, 7u, 7u, 
+       5u, 7u, 5u, 7u, 7u, 7u, 5u, 7u, 5u, 7u, 7u, 7u, 5u, 7u, 5u, 7u, 
+       7u, 7u, 4u, 4u, 6u, 6u, 16u, 16u, 4u, 7u, 6u, 6u, 16u, 16u, 4u, 7u, 
+       6u, 6u, 16u, 16u, 4u, 7u, 6u, 6u, 16u, 16u, 4u, 14u, 4u, 14u, 4u, 14u, 
+       4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 4u, 14u, 
+       4u, 14u, 5u, 7u, 5u, 7u, 5u, 7u, 5u, 7u, 7u, 7u, 5u, 7u, 5u, 7u, 
+       7u, 7u, 5u, 7u, 5u, 7u, 7u, 7u, 1u, 16u, 13u, 13u, 4u, 4u, 6u, 6u, 
+       16u, 16u, 4u, 7u, 6u, 6u, 16u, 16u, 4u, 7u, 6u, 6u, 16u, 16u, 4u, 7u, 
+       6u, 6u, 16u, 16u, 1u, 31u, 3u, 31u, 3u, 31u, 4u, 31u, 1u, 16u, 3u, 31u, 
+       3u, 31u, 4u, 31u, 1u, 16u, 3u, 31u, 3u, 31u, 4u, 31u, 1u, 16u, 3u, 31u, 
+       3u, 31u, 4u, 31u, 1u, 16u, 3u, 31u, 3u, 31u, 4u, 31u, 5u, 14u, 8u, 14u, 
+       5u, 10u, 9u, 10u, 9u, 9u, 9u, 10u, 9u, 10u, 9u, 9u, 5u, 10u, 3u, 13u, 
+       3u, 10u, 8u, 10u, 3u, 10u, 3u, 13u, 3u, 14u, 3u, 14u, 4u, 14u, 5u, 14u, 
+       3u, 14u, 4u, 14u, 5u, 14u, 3u, 14u, 4u, 14u, 5u, 14u, 3u, 14u, 4u, 14u, 
+       6u, 14u, 3u, 14u, 1u, 16u, 4u, 31u, 4u, 14u, 3u, 31u, 3u, 31u, 1u, 16u, 
+       1u, 16u, 1u, 16u, 1u, 16u, 1u, 16u, 3u, 31u, 3u, 31u, 1u, 16u, 1u, 16u, 
+       1u, 16u, 1u, 16u, 1u, 16u, 3u, 31u, 3u, 31u, 1u, 16u, 1u, 16u, 1u, 16u, 
+       1u, 16u, 1u, 16u, 3u, 31u, 3u, 31u, 1u, 16u, 1u, 16u, 1u, 16u, 1u, 16u, 
+       1u, 16u, 3u, 31u, 3u, 31u, 3u, 31u, 3u, 31u, 4u, 31u, 1u, 16u, 3u, 31u, 
+       3u, 31u, 4u, 31u, 1u, 16u, 3u, 31u, 3u, 31u, 4u, 31u, 1u, 16u, 3u, 31u, 
+       3u, 31u, 4u, 31u, 1u, 16u, 3u, 31u, 3u, 31u, 4u, 31u, 5u, 14u, 8u, 14u, 
+       5u, 10u, 9u, 10u, 9u, 9u, 9u, 10u, 9u, 10u, 9u, 9u, 5u, 10u, 3u, 13u, 
+       3u, 10u, 8u, 10u, 3u, 10u, 3u, 13u, 3u, 14u, 3u, 14u, 4u, 14u, 5u, 14u, 
+       3u, 14u, 4u, 14u, 5u, 14u, 3u, 14u, 4u, 14u, 5u, 14u, 3u, 14u, 4u, 14u, 
+       6u, 14u, 3u, 14u, 1u, 16u, 4u, 31u, 4u, 14u, 3u, 31u, 3u, 31u, 1u, 16u, 
+       1u, 16u, 1u, 16u, 1u, 16u, 1u, 16u, 3u, 31u, 3u, 31u, 1u, 16u, 1u, 16u, 
+       1u, 16u, 1u, 16u, 1u, 16u, 3u, 31u, 3u, 31u, 1u, 16u, 1u, 16u, 1u, 16u, 
+       1u, 16u, 1u, 16u, 3u, 31u, 3u, 31u, 1u, 16u, 1u, 16u, 1u, 16u, 1u, 16u, 
+       4u, 14u, 1u, 16u, 3u, 31u, 3u, 31u, 4u, 31u, 1u, 16u, 3u, 31u, 3u, 31u, 
+       4u, 31u, 1u, 16u, 3u, 31u, 3u, 31u, 4u, 31u, 1u, 16u, 3u, 31u, 3u, 31u, 
+       4u, 31u, 1u, 16u, 3u, 31u, 3u, 31u, 4u, 31u, 5u, 14u, 8u, 14u, 5u, 10u, 
+       9u, 10u, 9u, 9u, 9u, 10u, 9u, 10u, 9u, 9u, 5u, 10u, 3u, 13u, 3u, 10u, 
+       8u, 10u, 3u, 10u, 3u, 13u, 3u, 14u, 3u, 14u, 4u, 14u, 5u, 14u, 3u, 14u, 
+       4u, 14u, 5u, 14u, 3u, 14u, 4u, 14u, 5u, 14u, 3u, 14u, 4u, 14u, 6u, 14u, 
+       3u, 14u, 1u, 16u, 4u, 31u, 4u, 14u, 3u, 31u, 3u, 31u, 1u, 16u, 1u, 16u, 
+       1u, 16u, 1u, 16u, 1u, 16u, 3u, 31u, 3u, 31u, 1u, 16u, 1u, 16u, 1u, 16u, 
+       1u, 16u, 1u, 16u, 3u, 31u, 3u, 31u, 1u, 16u, 1u, 16u, 1u, 16u, 1u, 16u, 
+       1u, 16u, 3u, 31u, 3u, 31u, 1u, 16u, 1u, 16u, 1u, 16u, 1u, 16u, 1u, 16u, 
+       4u, 14u, 3u, 31u, 4u, 14u, 3u, 31u, 3u, 31u, 4u, 31u, 1u, 16u, 3u, 31u, 
+       3u, 31u, 4u, 31u, 1u, 16u, 3u, 31u, 3u, 31u, 4u, 31u, 1u, 16u, 3u, 31u, 
+       3u, 31u, 4u, 31u, 1u, 16u, 3u, 31u, 3u, 31u, 4u, 31u, 5u, 14u, 8u, 14u, 
+       5u, 10u, 9u, 10u, 9u, 9u, 9u, 10u, 9u, 10u, 9u, 9u, 5u, 10u, 3u, 13u, 
+       3u, 10u, 8u, 10u, 3u, 10u, 3u, 13u, 3u, 14u, 3u, 14u, 4u, 14u, 5u, 14u, 
+       3u, 14u, 4u, 14u, 5u, 14u, 3u, 14u, 4u, 14u, 5u, 14u, 3u, 14u, 4u, 14u, 
+       6u, 14u, 3u, 14u, 1u, 16u, 4u, 31u, 4u, 14u, 3u, 31u, 3u, 31u, 1u, 16u, 
+       1u, 16u, 1u, 16u, 1u, 16u, 1u, 16u, 3u, 31u, 3u, 31u, 1u, 16u, 1u, 16u, 
+       1u, 16u, 1u, 16u, 1u, 16u, 3u, 31u, 3u, 31u, 1u, 16u, 1u, 16u, 1u, 16u, 
+       1u, 16u, 1u, 16u, 3u, 31u, 3u, 31u, 1u, 16u, 1u, 16u, 1u, 16u, 1u, 16u, 
+       1u, 16u, 3u, 31u, 1u, 31u, 3u, 31u, 1u, 31u, 4u, 14u, 1u, 16u, 3u, 31u, 
+       3u, 31u, 4u, 31u, 5u, 10u, 9u, 10u, 9u, 9u, 9u, 10u, 9u, 10u, 9u, 9u, 
+       5u, 10u, 3u, 31u, 3u, 31u, 1u, 16u, 3u, 14u, 4u, 14u, 5u, 14u, 3u, 14u, 
+       4u, 14u, 5u, 14u, 3u, 14u, 4u, 14u, 5u, 14u, 3u, 14u, 4u, 14u, 8u, 14u, 
+       3u, 13u, 3u, 10u, 8u, 10u, 3u, 10u, 3u, 13u, 1u, 16u, 3u, 10u, 8u, 10u, 
+       5u, 10u, 9u, 10u, 9u, 9u, 9u, 10u, 9u, 10u, 9u, 9u, 5u, 10u, 0
+};
+
+static const char _indic_syllable_machine_key_spans[] = {
+       16, 1, 3, 3, 1, 3, 3, 1, 
+       3, 3, 1, 3, 3, 1, 1, 1, 
+       1, 4, 1, 1, 4, 1, 1, 4, 
+       1, 1, 11, 11, 11, 11, 11, 11, 
+       11, 11, 11, 11, 16, 1, 3, 3, 
+       1, 3, 3, 1, 3, 3, 1, 3, 
+       3, 1, 1, 1, 1, 4, 1, 1, 
+       4, 1, 1, 4, 1, 1, 11, 11, 
+       11, 11, 11, 11, 11, 11, 11, 11, 
+       16, 1, 3, 3, 1, 3, 3, 1, 
+       3, 3, 1, 3, 3, 1, 1, 1, 
+       1, 4, 1, 1, 4, 1, 1, 4, 
+       1, 1, 11, 11, 11, 11, 11, 11, 
+       11, 11, 11, 16, 1, 3, 3, 1, 
+       3, 3, 1, 3, 3, 1, 3, 3, 
+       1, 1, 1, 1, 4, 1, 1, 4, 
+       1, 1, 4, 1, 1, 11, 11, 11, 
+       11, 11, 11, 11, 11, 11, 11, 11, 
+       11, 3, 3, 3, 3, 1, 3, 3, 
+       1, 3, 3, 1, 16, 1, 1, 1, 
+       1, 4, 1, 1, 4, 1, 1, 4, 
+       1, 1, 31, 29, 29, 28, 16, 29, 
+       29, 28, 16, 29, 29, 28, 16, 29, 
+       29, 28, 16, 29, 29, 28, 10, 7, 
+       6, 2, 1, 2, 2, 1, 6, 11, 
+       8, 3, 8, 11, 12, 12, 11, 10, 
+       12, 11, 10, 12, 11, 10, 12, 11, 
+       9, 12, 16, 28, 11, 29, 29, 16, 
+       16, 16, 16, 16, 29, 29, 16, 16, 
+       16, 16, 16, 29, 29, 16, 16, 16, 
+       16, 16, 29, 29, 16, 16, 16, 16, 
+       16, 29, 29, 29, 29, 28, 16, 29, 
+       29, 28, 16, 29, 29, 28, 16, 29, 
+       29, 28, 16, 29, 29, 28, 10, 7, 
+       6, 2, 1, 2, 2, 1, 6, 11, 
+       8, 3, 8, 11, 12, 12, 11, 10, 
+       12, 11, 10, 12, 11, 10, 12, 11, 
+       9, 12, 16, 28, 11, 29, 29, 16, 
+       16, 16, 16, 16, 29, 29, 16, 16, 
+       16, 16, 16, 29, 29, 16, 16, 16, 
+       16, 16, 29, 29, 16, 16, 16, 16, 
+       11, 16, 29, 29, 28, 16, 29, 29, 
+       28, 16, 29, 29, 28, 16, 29, 29, 
+       28, 16, 29, 29, 28, 10, 7, 6, 
+       2, 1, 2, 2, 1, 6, 11, 8, 
+       3, 8, 11, 12, 12, 11, 10, 12, 
+       11, 10, 12, 11, 10, 12, 11, 9, 
+       12, 16, 28, 11, 29, 29, 16, 16, 
+       16, 16, 16, 29, 29, 16, 16, 16, 
+       16, 16, 29, 29, 16, 16, 16, 16, 
+       16, 29, 29, 16, 16, 16, 16, 16, 
+       11, 29, 11, 29, 29, 28, 16, 29, 
+       29, 28, 16, 29, 29, 28, 16, 29, 
+       29, 28, 16, 29, 29, 28, 10, 7, 
+       6, 2, 1, 2, 2, 1, 6, 11, 
+       8, 3, 8, 11, 12, 12, 11, 10, 
+       12, 11, 10, 12, 11, 10, 12, 11, 
+       9, 12, 16, 28, 11, 29, 29, 16, 
+       16, 16, 16, 16, 29, 29, 16, 16, 
+       16, 16, 16, 29, 29, 16, 16, 16, 
+       16, 16, 29, 29, 16, 16, 16, 16, 
+       16, 29, 31, 29, 31, 11, 16, 29, 
+       29, 28, 6, 2, 1, 2, 2, 1, 
+       6, 29, 29, 16, 12, 11, 10, 12, 
+       11, 10, 12, 11, 10, 12, 11, 7, 
+       11, 8, 3, 8, 11, 16, 8, 3, 
+       6, 2, 1, 2, 2, 1, 6
+};
+
+static const short _indic_syllable_machine_index_offsets[] = {
+       0, 17, 19, 23, 27, 29, 33, 37, 
+       39, 43, 47, 49, 53, 57, 59, 61, 
+       63, 65, 70, 72, 74, 79, 81, 83, 
+       88, 90, 92, 104, 116, 128, 140, 152, 
+       164, 176, 188, 200, 212, 229, 231, 235, 
+       239, 241, 245, 249, 251, 255, 259, 261, 
+       265, 269, 271, 273, 275, 277, 282, 284, 
+       286, 291, 293, 295, 300, 302, 304, 316, 
+       328, 340, 352, 364, 376, 388, 400, 412, 
+       424, 441, 443, 447, 451, 453, 457, 461, 
+       463, 467, 471, 473, 477, 481, 483, 485, 
+       487, 489, 494, 496, 498, 503, 505, 507, 
+       512, 514, 516, 528, 540, 552, 564, 576, 
+       588, 600, 612, 624, 641, 643, 647, 651, 
+       653, 657, 661, 663, 667, 671, 673, 677, 
+       681, 683, 685, 687, 689, 694, 696, 698, 
+       703, 705, 707, 712, 714, 716, 728, 740, 
+       752, 764, 776, 788, 800, 812, 824, 836, 
+       848, 860, 864, 868, 872, 876, 878, 882, 
+       886, 888, 892, 896, 898, 915, 917, 919, 
+       921, 923, 928, 930, 932, 937, 939, 941, 
+       946, 948, 950, 982, 1012, 1042, 1071, 1088, 
+       1118, 1148, 1177, 1194, 1224, 1254, 1283, 1300, 
+       1330, 1360, 1389, 1406, 1436, 1466, 1495, 1506, 
+       1514, 1521, 1524, 1526, 1529, 1532, 1534, 1541, 
+       1553, 1562, 1566, 1575, 1587, 1600, 1613, 1625, 
+       1636, 1649, 1661, 1672, 1685, 1697, 1708, 1721, 
+       1733, 1743, 1756, 1773, 1802, 1814, 1844, 1874, 
+       1891, 1908, 1925, 1942, 1959, 1989, 2019, 2036, 
+       2053, 2070, 2087, 2104, 2134, 2164, 2181, 2198, 
+       2215, 2232, 2249, 2279, 2309, 2326, 2343, 2360, 
+       2377, 2394, 2424, 2454, 2484, 2514, 2543, 2560, 
+       2590, 2620, 2649, 2666, 2696, 2726, 2755, 2772, 
+       2802, 2832, 2861, 2878, 2908, 2938, 2967, 2978, 
+       2986, 2993, 2996, 2998, 3001, 3004, 3006, 3013, 
+       3025, 3034, 3038, 3047, 3059, 3072, 3085, 3097, 
+       3108, 3121, 3133, 3144, 3157, 3169, 3180, 3193, 
+       3205, 3215, 3228, 3245, 3274, 3286, 3316, 3346, 
+       3363, 3380, 3397, 3414, 3431, 3461, 3491, 3508, 
+       3525, 3542, 3559, 3576, 3606, 3636, 3653, 3670, 
+       3687, 3704, 3721, 3751, 3781, 3798, 3815, 3832, 
+       3849, 3861, 3878, 3908, 3938, 3967, 3984, 4014, 
+       4044, 4073, 4090, 4120, 4150, 4179, 4196, 4226, 
+       4256, 4285, 4302, 4332, 4362, 4391, 4402, 4410, 
+       4417, 4420, 4422, 4425, 4428, 4430, 4437, 4449, 
+       4458, 4462, 4471, 4483, 4496, 4509, 4521, 4532, 
+       4545, 4557, 4568, 4581, 4593, 4604, 4617, 4629, 
+       4639, 4652, 4669, 4698, 4710, 4740, 4770, 4787, 
+       4804, 4821, 4838, 4855, 4885, 4915, 4932, 4949, 
+       4966, 4983, 5000, 5030, 5060, 5077, 5094, 5111, 
+       5128, 5145, 5175, 5205, 5222, 5239, 5256, 5273, 
+       5290, 5302, 5332, 5344, 5374, 5404, 5433, 5450, 
+       5480, 5510, 5539, 5556, 5586, 5616, 5645, 5662, 
+       5692, 5722, 5751, 5768, 5798, 5828, 5857, 5868, 
+       5876, 5883, 5886, 5888, 5891, 5894, 5896, 5903, 
+       5915, 5924, 5928, 5937, 5949, 5962, 5975, 5987, 
+       5998, 6011, 6023, 6034, 6047, 6059, 6070, 6083, 
+       6095, 6105, 6118, 6135, 6164, 6176, 6206, 6236, 
+       6253, 6270, 6287, 6304, 6321, 6351, 6381, 6398, 
+       6415, 6432, 6449, 6466, 6496, 6526, 6543, 6560, 
+       6577, 6594, 6611, 6641, 6671, 6688, 6705, 6722, 
+       6739, 6756, 6786, 6818, 6848, 6880, 6892, 6909, 
+       6939, 6969, 6998, 7005, 7008, 7010, 7013, 7016, 
+       7018, 7025, 7055, 7085, 7102, 7115, 7127, 7138, 
+       7151, 7163, 7174, 7187, 7199, 7210, 7223, 7235, 
+       7243, 7255, 7264, 7268, 7277, 7289, 7306, 7315, 
+       7319, 7326, 7329, 7331, 7334, 7337, 7339
+};
+
+static const short _indic_syllable_machine_indicies[] = {
+       1, 2, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 1, 
+       0, 3, 0, 4, 4, 5, 0, 6, 
+       6, 5, 0, 5, 0, 7, 7, 8, 
+       0, 9, 9, 8, 0, 8, 0, 10, 
+       10, 11, 0, 12, 12, 11, 0, 11, 
+       0, 13, 13, 14, 0, 15, 15, 14, 
+       0, 14, 0, 16, 0, 17, 0, 18, 
+       0, 19, 13, 13, 14, 0, 20, 0, 
+       21, 0, 22, 10, 10, 11, 0, 23, 
+       0, 24, 0, 25, 7, 7, 8, 0, 
+       26, 0, 27, 0, 28, 4, 4, 5, 
+       0, 0, 0, 0, 0, 0, 28, 0, 
+       28, 4, 4, 5, 0, 0, 0, 0, 
+       0, 29, 28, 0, 30, 4, 4, 5, 
+       0, 0, 0, 0, 0, 0, 30, 0, 
+       30, 4, 4, 5, 0, 0, 0, 0, 
+       0, 31, 30, 0, 32, 4, 4, 5, 
+       0, 0, 0, 0, 0, 0, 32, 0, 
+       32, 4, 4, 5, 0, 0, 0, 0, 
+       0, 33, 32, 0, 34, 4, 4, 5, 
+       0, 0, 0, 0, 0, 0, 34, 0, 
+       34, 4, 4, 5, 0, 0, 0, 0, 
+       0, 35, 34, 0, 36, 4, 4, 5, 
+       0, 0, 0, 0, 0, 0, 36, 0, 
+       36, 4, 4, 5, 0, 0, 0, 0, 
+       0, 37, 36, 0, 39, 40, 38, 38, 
+       38, 38, 38, 38, 38, 38, 38, 38, 
+       38, 38, 38, 39, 38, 41, 38, 42, 
+       42, 43, 38, 44, 44, 43, 38, 43, 
+       38, 45, 45, 46, 38, 47, 47, 46, 
+       38, 46, 38, 48, 48, 49, 38, 50, 
+       50, 49, 38, 49, 38, 51, 51, 52, 
+       38, 53, 53, 52, 38, 52, 38, 54, 
+       38, 55, 38, 56, 38, 57, 51, 51, 
+       52, 38, 58, 38, 59, 38, 60, 48, 
+       48, 49, 38, 61, 38, 62, 38, 63, 
+       45, 45, 46, 38, 64, 38, 65, 38, 
+       66, 42, 42, 43, 38, 38, 38, 38, 
+       38, 38, 66, 38, 66, 42, 42, 43, 
+       38, 38, 38, 38, 38, 67, 66, 38, 
+       68, 42, 42, 43, 38, 38, 38, 38, 
+       38, 38, 68, 38, 68, 42, 42, 43, 
+       38, 38, 38, 38, 38, 69, 68, 38, 
+       70, 42, 42, 43, 38, 38, 38, 38, 
+       38, 38, 70, 38, 70, 42, 42, 43, 
+       38, 38, 38, 38, 38, 71, 70, 38, 
+       72, 42, 42, 43, 38, 38, 38, 38, 
+       38, 38, 72, 38, 72, 42, 42, 43, 
+       38, 38, 38, 38, 38, 73, 72, 38, 
+       74, 42, 42, 43, 38, 38, 38, 38, 
+       38, 38, 74, 38, 74, 42, 42, 43, 
+       38, 38, 38, 38, 38, 75, 74, 38, 
+       77, 78, 76, 76, 76, 76, 76, 76, 
+       76, 76, 76, 76, 76, 76, 76, 77, 
+       76, 79, 76, 80, 80, 81, 76, 83, 
+       83, 81, 82, 81, 82, 84, 84, 85, 
+       76, 86, 86, 85, 76, 85, 76, 87, 
+       87, 88, 76, 89, 89, 88, 76, 88, 
+       76, 90, 90, 91, 76, 92, 92, 91, 
+       76, 91, 76, 93, 76, 94, 76, 95, 
+       76, 96, 90, 90, 91, 76, 97, 76, 
+       98, 76, 99, 87, 87, 88, 76, 100, 
+       76, 101, 76, 102, 84, 84, 85, 76, 
+       103, 76, 104, 76, 105, 80, 80, 81, 
+       76, 76, 76, 76, 76, 76, 105, 76, 
+       105, 80, 80, 81, 76, 76, 76, 76, 
+       76, 106, 105, 76, 107, 80, 80, 81, 
+       76, 76, 76, 76, 76, 76, 107, 76, 
+       107, 80, 80, 81, 76, 76, 76, 76, 
+       76, 108, 107, 76, 109, 80, 80, 81, 
+       76, 76, 76, 76, 76, 76, 109, 76, 
+       109, 80, 80, 81, 76, 76, 76, 76, 
+       76, 110, 109, 76, 111, 80, 80, 81, 
+       82, 82, 82, 82, 82, 82, 111, 82, 
+       111, 80, 80, 81, 76, 76, 76, 76, 
+       76, 112, 111, 76, 113, 80, 80, 81, 
+       76, 76, 76, 76, 76, 76, 113, 76, 
+       115, 116, 114, 114, 114, 114, 114, 114, 
+       114, 114, 114, 114, 114, 114, 114, 115, 
+       114, 117, 114, 118, 118, 119, 114, 120, 
+       120, 119, 114, 119, 114, 121, 121, 122, 
+       114, 123, 123, 122, 114, 122, 114, 124, 
+       124, 125, 114, 126, 126, 125, 114, 125, 
+       114, 127, 127, 128, 114, 129, 129, 128, 
+       114, 128, 114, 130, 114, 131, 114, 132, 
+       114, 133, 127, 127, 128, 114, 134, 114, 
+       135, 114, 136, 124, 124, 125, 114, 137, 
+       114, 138, 114, 139, 121, 121, 122, 114, 
+       140, 114, 141, 114, 142, 118, 118, 119, 
+       114, 114, 114, 114, 114, 114, 142, 114, 
+       142, 118, 118, 119, 114, 114, 114, 114, 
+       114, 143, 142, 114, 144, 118, 118, 119, 
+       114, 114, 114, 114, 114, 114, 144, 114, 
+       144, 118, 118, 119, 114, 114, 114, 114, 
+       114, 145, 144, 114, 146, 118, 118, 119, 
+       114, 114, 114, 114, 114, 114, 146, 114, 
+       146, 118, 118, 119, 114, 114, 114, 114, 
+       114, 147, 146, 114, 148, 118, 118, 119, 
+       114, 114, 114, 114, 114, 114, 148, 114, 
+       148, 118, 118, 119, 114, 114, 114, 114, 
+       114, 149, 148, 114, 150, 118, 118, 119, 
+       114, 114, 114, 114, 114, 114, 150, 114, 
+       150, 118, 118, 119, 114, 114, 114, 114, 
+       114, 151, 150, 114, 113, 80, 80, 81, 
+       76, 76, 76, 76, 76, 152, 113, 76, 
+       111, 80, 80, 81, 0, 0, 0, 0, 
+       0, 153, 111, 0, 154, 154, 155, 0, 
+       6, 6, 155, 0, 156, 156, 157, 0, 
+       158, 158, 157, 0, 157, 0, 159, 159, 
+       160, 0, 161, 161, 160, 0, 160, 0, 
+       162, 162, 163, 0, 164, 164, 163, 0, 
+       163, 0, 165, 166, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 165, 0, 167, 0, 168, 0, 169, 
+       0, 170, 0, 171, 162, 162, 163, 0, 
+       172, 0, 173, 0, 174, 159, 159, 160, 
+       0, 175, 0, 176, 0, 177, 156, 156, 
+       157, 0, 178, 0, 179, 0, 181, 182, 
+       183, 184, 185, 186, 81, 187, 188, 189, 
+       190, 190, 152, 191, 192, 193, 194, 195, 
+       180, 180, 180, 180, 180, 180, 180, 180, 
+       180, 180, 180, 180, 196, 180, 198, 199, 
+       200, 201, 5, 202, 203, 204, 197, 197, 
+       37, 205, 197, 197, 206, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 207, 197, 208, 199, 209, 209, 
+       5, 202, 203, 204, 197, 197, 197, 205, 
+       197, 197, 206, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       207, 197, 199, 209, 209, 5, 202, 203, 
+       204, 197, 197, 197, 205, 197, 197, 206, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 207, 197, 210, 
+       197, 197, 197, 18, 211, 197, 202, 203, 
+       204, 197, 197, 197, 212, 197, 210, 197, 
+       213, 214, 215, 216, 5, 202, 203, 204, 
+       197, 197, 35, 217, 197, 197, 206, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 207, 197, 218, 214, 
+       219, 219, 5, 202, 203, 204, 197, 197, 
+       197, 217, 197, 197, 206, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 207, 197, 214, 219, 219, 5, 
+       202, 203, 204, 197, 197, 197, 217, 197, 
+       197, 206, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 207, 
+       197, 220, 197, 197, 197, 18, 221, 197, 
+       202, 203, 204, 197, 197, 197, 212, 197, 
+       220, 197, 222, 223, 224, 225, 5, 202, 
+       203, 204, 197, 197, 33, 226, 197, 197, 
+       206, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 207, 197, 
+       227, 223, 228, 228, 5, 202, 203, 204, 
+       197, 197, 197, 226, 197, 197, 206, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 207, 197, 223, 228, 
+       228, 5, 202, 203, 204, 197, 197, 197, 
+       226, 197, 197, 206, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 207, 197, 229, 197, 197, 197, 18, 
+       230, 197, 202, 203, 204, 197, 197, 197, 
+       212, 197, 229, 197, 231, 232, 233, 234, 
+       5, 202, 203, 204, 197, 197, 31, 235, 
+       197, 197, 206, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       207, 197, 236, 232, 237, 237, 5, 202, 
+       203, 204, 197, 197, 197, 235, 197, 197, 
+       206, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 207, 197, 
+       232, 237, 237, 5, 202, 203, 204, 197, 
+       197, 197, 235, 197, 197, 206, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 207, 197, 238, 197, 197, 
+       197, 18, 239, 197, 202, 203, 204, 197, 
+       197, 197, 212, 197, 238, 197, 240, 241, 
+       242, 243, 5, 202, 203, 204, 197, 197, 
+       29, 244, 197, 197, 206, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 207, 197, 245, 241, 246, 246, 
+       5, 202, 203, 204, 197, 197, 197, 244, 
+       197, 197, 206, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       207, 197, 241, 246, 246, 5, 202, 203, 
+       204, 197, 197, 197, 244, 197, 197, 206, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 207, 197, 18, 
+       247, 197, 202, 203, 204, 197, 197, 197, 
+       212, 197, 202, 203, 204, 197, 197, 197, 
+       212, 197, 248, 197, 197, 249, 203, 204, 
+       197, 203, 204, 197, 250, 197, 203, 251, 
+       197, 203, 252, 197, 203, 197, 248, 197, 
+       197, 197, 203, 204, 197, 253, 197, 254, 
+       255, 197, 202, 203, 204, 197, 197, 3, 
+       197, 2, 197, 197, 197, 197, 202, 203, 
+       204, 197, 202, 203, 204, 197, 253, 197, 
+       197, 197, 197, 202, 203, 204, 197, 253, 
+       197, 254, 197, 197, 202, 203, 204, 197, 
+       197, 3, 197, 18, 197, 256, 256, 5, 
+       202, 203, 204, 197, 197, 197, 212, 197, 
+       257, 27, 258, 259, 8, 202, 203, 204, 
+       197, 197, 197, 212, 197, 27, 258, 259, 
+       8, 202, 203, 204, 197, 197, 197, 212, 
+       197, 258, 258, 8, 202, 203, 204, 197, 
+       197, 197, 212, 197, 260, 24, 261, 262, 
+       11, 202, 203, 204, 197, 197, 197, 212, 
+       197, 24, 261, 262, 11, 202, 203, 204, 
+       197, 197, 197, 212, 197, 261, 261, 11, 
+       202, 203, 204, 197, 197, 197, 212, 197, 
+       263, 21, 264, 265, 14, 202, 203, 204, 
+       197, 197, 197, 212, 197, 21, 264, 265, 
+       14, 202, 203, 204, 197, 197, 197, 212, 
+       197, 264, 264, 14, 202, 203, 204, 197, 
+       197, 197, 212, 197, 266, 18, 197, 267, 
+       197, 202, 203, 204, 197, 197, 197, 212, 
+       197, 18, 197, 267, 197, 202, 203, 204, 
+       197, 197, 197, 212, 197, 268, 197, 202, 
+       203, 204, 197, 197, 197, 212, 197, 18, 
+       197, 197, 197, 197, 202, 203, 204, 197, 
+       197, 197, 212, 197, 1, 2, 197, 197, 
+       18, 247, 197, 202, 203, 204, 197, 197, 
+       197, 212, 197, 1, 197, 241, 246, 246, 
+       5, 202, 203, 204, 197, 197, 197, 244, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       207, 197, 241, 246, 246, 5, 202, 203, 
+       204, 197, 197, 197, 244, 197, 240, 241, 
+       246, 246, 5, 202, 203, 204, 197, 197, 
+       197, 244, 197, 197, 206, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 207, 197, 240, 241, 242, 246, 
+       5, 202, 203, 204, 197, 197, 29, 244, 
+       197, 197, 206, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       207, 197, 238, 197, 269, 197, 256, 256, 
+       5, 202, 203, 204, 197, 197, 197, 212, 
+       197, 238, 197, 238, 197, 197, 197, 197, 
+       197, 197, 202, 203, 204, 197, 197, 197, 
+       212, 197, 238, 197, 238, 197, 197, 197, 
+       197, 270, 197, 202, 203, 204, 197, 197, 
+       197, 212, 197, 238, 197, 238, 197, 269, 
+       197, 197, 197, 197, 202, 203, 204, 197, 
+       197, 197, 212, 197, 238, 197, 238, 2, 
+       197, 197, 18, 239, 197, 202, 203, 204, 
+       197, 197, 197, 212, 197, 238, 197, 231, 
+       232, 237, 237, 5, 202, 203, 204, 197, 
+       197, 197, 235, 197, 197, 206, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 207, 197, 231, 232, 233, 
+       237, 5, 202, 203, 204, 197, 197, 31, 
+       235, 197, 197, 206, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 207, 197, 229, 197, 271, 197, 256, 
+       256, 5, 202, 203, 204, 197, 197, 197, 
+       212, 197, 229, 197, 229, 197, 197, 197, 
+       197, 197, 197, 202, 203, 204, 197, 197, 
+       197, 212, 197, 229, 197, 229, 197, 197, 
+       197, 197, 272, 197, 202, 203, 204, 197, 
+       197, 197, 212, 197, 229, 197, 229, 197, 
+       271, 197, 197, 197, 197, 202, 203, 204, 
+       197, 197, 197, 212, 197, 229, 197, 229, 
+       2, 197, 197, 18, 230, 197, 202, 203, 
+       204, 197, 197, 197, 212, 197, 229, 197, 
+       222, 223, 228, 228, 5, 202, 203, 204, 
+       197, 197, 197, 226, 197, 197, 206, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 207, 197, 222, 223, 
+       224, 228, 5, 202, 203, 204, 197, 197, 
+       33, 226, 197, 197, 206, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 207, 197, 220, 197, 273, 197, 
+       256, 256, 5, 202, 203, 204, 197, 197, 
+       197, 212, 197, 220, 197, 220, 197, 197, 
+       197, 197, 197, 197, 202, 203, 204, 197, 
+       197, 197, 212, 197, 220, 197, 220, 197, 
+       197, 197, 197, 274, 197, 202, 203, 204, 
+       197, 197, 197, 212, 197, 220, 197, 220, 
+       197, 273, 197, 197, 197, 197, 202, 203, 
+       204, 197, 197, 197, 212, 197, 220, 197, 
+       220, 2, 197, 197, 18, 221, 197, 202, 
+       203, 204, 197, 197, 197, 212, 197, 220, 
+       197, 213, 214, 219, 219, 5, 202, 203, 
+       204, 197, 197, 197, 217, 197, 197, 206, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 207, 197, 213, 
+       214, 215, 219, 5, 202, 203, 204, 197, 
+       197, 35, 217, 197, 197, 206, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 207, 197, 210, 197, 275, 
+       197, 256, 256, 5, 202, 203, 204, 197, 
+       197, 197, 212, 197, 210, 197, 210, 197, 
+       197, 197, 197, 197, 197, 202, 203, 204, 
+       197, 197, 197, 212, 197, 210, 197, 210, 
+       197, 197, 197, 197, 276, 197, 202, 203, 
+       204, 197, 197, 197, 212, 197, 210, 197, 
+       210, 197, 275, 197, 197, 197, 197, 202, 
+       203, 204, 197, 197, 197, 212, 197, 210, 
+       197, 210, 2, 197, 197, 18, 211, 197, 
+       202, 203, 204, 197, 197, 197, 212, 197, 
+       210, 197, 198, 199, 209, 209, 5, 202, 
+       203, 204, 197, 197, 197, 205, 197, 197, 
+       206, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 207, 197, 
+       198, 199, 200, 209, 5, 202, 203, 204, 
+       197, 197, 37, 205, 197, 197, 206, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 207, 197, 278, 279, 
+       280, 281, 43, 282, 283, 284, 277, 277, 
+       75, 285, 277, 277, 286, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 287, 277, 288, 279, 289, 281, 
+       43, 282, 283, 284, 277, 277, 277, 285, 
+       277, 277, 286, 277, 277, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       287, 277, 279, 289, 281, 43, 282, 283, 
+       284, 277, 277, 277, 285, 277, 277, 286, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 277, 277, 277, 287, 277, 290, 
+       277, 277, 277, 56, 291, 277, 282, 283, 
+       284, 277, 277, 277, 292, 277, 290, 277, 
+       293, 294, 295, 296, 43, 282, 283, 284, 
+       277, 277, 73, 297, 277, 277, 286, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 277, 277, 287, 277, 298, 294, 
+       299, 299, 43, 282, 283, 284, 277, 277, 
+       277, 297, 277, 277, 286, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 287, 277, 294, 299, 299, 43, 
+       282, 283, 284, 277, 277, 277, 297, 277, 
+       277, 286, 277, 277, 277, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 287, 
+       277, 300, 277, 277, 277, 56, 301, 277, 
+       282, 283, 284, 277, 277, 277, 292, 277, 
+       300, 277, 302, 303, 304, 305, 43, 282, 
+       283, 284, 277, 277, 71, 306, 277, 277, 
+       286, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 287, 277, 
+       307, 303, 308, 308, 43, 282, 283, 284, 
+       277, 277, 277, 306, 277, 277, 286, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 277, 277, 287, 277, 303, 308, 
+       308, 43, 282, 283, 284, 277, 277, 277, 
+       306, 277, 277, 286, 277, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 287, 277, 309, 277, 277, 277, 56, 
+       310, 277, 282, 283, 284, 277, 277, 277, 
+       292, 277, 309, 277, 311, 312, 313, 314, 
+       43, 282, 283, 284, 277, 277, 69, 315, 
+       277, 277, 286, 277, 277, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       287, 277, 316, 312, 317, 317, 43, 282, 
+       283, 284, 277, 277, 277, 315, 277, 277, 
+       286, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 287, 277, 
+       312, 317, 317, 43, 282, 283, 284, 277, 
+       277, 277, 315, 277, 277, 286, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 277, 287, 277, 318, 277, 277, 
+       277, 56, 319, 277, 282, 283, 284, 277, 
+       277, 277, 292, 277, 318, 277, 320, 321, 
+       322, 323, 43, 282, 283, 284, 277, 277, 
+       67, 324, 277, 277, 286, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 287, 277, 325, 321, 326, 326, 
+       43, 282, 283, 284, 277, 277, 277, 324, 
+       277, 277, 286, 277, 277, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       287, 277, 321, 326, 326, 43, 282, 283, 
+       284, 277, 277, 277, 324, 277, 277, 286, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 277, 277, 277, 287, 277, 56, 
+       327, 277, 282, 283, 284, 277, 277, 277, 
+       292, 277, 282, 283, 284, 277, 277, 277, 
+       292, 277, 328, 277, 277, 329, 283, 284, 
+       277, 283, 284, 277, 330, 277, 283, 331, 
+       277, 283, 332, 277, 283, 277, 328, 277, 
+       277, 277, 283, 284, 277, 333, 277, 334, 
+       335, 277, 282, 283, 284, 277, 277, 41, 
+       277, 40, 277, 277, 277, 277, 282, 283, 
+       284, 277, 282, 283, 284, 277, 333, 277, 
+       277, 277, 277, 282, 283, 284, 277, 333, 
+       277, 334, 277, 277, 282, 283, 284, 277, 
+       277, 41, 277, 56, 277, 336, 336, 43, 
+       282, 283, 284, 277, 277, 277, 292, 277, 
+       337, 65, 338, 339, 46, 282, 283, 284, 
+       277, 277, 277, 292, 277, 65, 338, 339, 
+       46, 282, 283, 284, 277, 277, 277, 292, 
+       277, 338, 338, 46, 282, 283, 284, 277, 
+       277, 277, 292, 277, 340, 62, 341, 342, 
+       49, 282, 283, 284, 277, 277, 277, 292, 
+       277, 62, 341, 342, 49, 282, 283, 284, 
+       277, 277, 277, 292, 277, 341, 341, 49, 
+       282, 283, 284, 277, 277, 277, 292, 277, 
+       343, 59, 344, 345, 52, 282, 283, 284, 
+       277, 277, 277, 292, 277, 59, 344, 345, 
+       52, 282, 283, 284, 277, 277, 277, 292, 
+       277, 344, 344, 52, 282, 283, 284, 277, 
+       277, 277, 292, 277, 346, 56, 277, 347, 
+       277, 282, 283, 284, 277, 277, 277, 292, 
+       277, 56, 277, 347, 277, 282, 283, 284, 
+       277, 277, 277, 292, 277, 348, 277, 282, 
+       283, 284, 277, 277, 277, 292, 277, 56, 
+       277, 277, 277, 277, 282, 283, 284, 277, 
+       277, 277, 292, 277, 39, 40, 277, 277, 
+       56, 327, 277, 282, 283, 284, 277, 277, 
+       277, 292, 277, 39, 277, 321, 326, 326, 
+       43, 282, 283, 284, 277, 277, 277, 324, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       287, 277, 321, 326, 326, 43, 282, 283, 
+       284, 277, 277, 277, 324, 277, 320, 321, 
+       326, 326, 43, 282, 283, 284, 277, 277, 
+       277, 324, 277, 277, 286, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 287, 277, 320, 321, 322, 326, 
+       43, 282, 283, 284, 277, 277, 67, 324, 
+       277, 277, 286, 277, 277, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       287, 277, 318, 277, 349, 277, 336, 336, 
+       43, 282, 283, 284, 277, 277, 277, 292, 
+       277, 318, 277, 318, 277, 277, 277, 277, 
+       277, 277, 282, 283, 284, 277, 277, 277, 
+       292, 277, 318, 277, 318, 277, 277, 277, 
+       277, 350, 277, 282, 283, 284, 277, 277, 
+       277, 292, 277, 318, 277, 318, 277, 349, 
+       277, 277, 277, 277, 282, 283, 284, 277, 
+       277, 277, 292, 277, 318, 277, 318, 40, 
+       277, 277, 56, 319, 277, 282, 283, 284, 
+       277, 277, 277, 292, 277, 318, 277, 311, 
+       312, 317, 317, 43, 282, 283, 284, 277, 
+       277, 277, 315, 277, 277, 286, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 277, 287, 277, 311, 312, 313, 
+       317, 43, 282, 283, 284, 277, 277, 69, 
+       315, 277, 277, 286, 277, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 287, 277, 309, 277, 351, 277, 336, 
+       336, 43, 282, 283, 284, 277, 277, 277, 
+       292, 277, 309, 277, 309, 277, 277, 277, 
+       277, 277, 277, 282, 283, 284, 277, 277, 
+       277, 292, 277, 309, 277, 309, 277, 277, 
+       277, 277, 352, 277, 282, 283, 284, 277, 
+       277, 277, 292, 277, 309, 277, 309, 277, 
+       351, 277, 277, 277, 277, 282, 283, 284, 
+       277, 277, 277, 292, 277, 309, 277, 309, 
+       40, 277, 277, 56, 310, 277, 282, 283, 
+       284, 277, 277, 277, 292, 277, 309, 277, 
+       302, 303, 308, 308, 43, 282, 283, 284, 
+       277, 277, 277, 306, 277, 277, 286, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 277, 277, 287, 277, 302, 303, 
+       304, 308, 43, 282, 283, 284, 277, 277, 
+       71, 306, 277, 277, 286, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 287, 277, 300, 277, 353, 277, 
+       336, 336, 43, 282, 283, 284, 277, 277, 
+       277, 292, 277, 300, 277, 300, 277, 277, 
+       277, 277, 277, 277, 282, 283, 284, 277, 
+       277, 277, 292, 277, 300, 277, 300, 277, 
+       277, 277, 277, 354, 277, 282, 283, 284, 
+       277, 277, 277, 292, 277, 300, 277, 300, 
+       277, 353, 277, 277, 277, 277, 282, 283, 
+       284, 277, 277, 277, 292, 277, 300, 277, 
+       300, 40, 277, 277, 56, 301, 277, 282, 
+       283, 284, 277, 277, 277, 292, 277, 300, 
+       277, 293, 294, 299, 299, 43, 282, 283, 
+       284, 277, 277, 277, 297, 277, 277, 286, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 277, 277, 277, 287, 277, 293, 
+       294, 295, 299, 43, 282, 283, 284, 277, 
+       277, 73, 297, 277, 277, 286, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 277, 287, 277, 290, 277, 355, 
+       277, 336, 336, 43, 282, 283, 284, 277, 
+       277, 277, 292, 277, 290, 277, 290, 277, 
+       277, 277, 277, 277, 277, 282, 283, 284, 
+       277, 277, 277, 292, 277, 290, 277, 290, 
+       277, 277, 277, 277, 356, 277, 282, 283, 
+       284, 277, 277, 277, 292, 277, 290, 277, 
+       290, 277, 355, 277, 277, 277, 277, 282, 
+       283, 284, 277, 277, 277, 292, 277, 290, 
+       277, 74, 42, 42, 43, 277, 277, 277, 
+       277, 277, 277, 74, 277, 290, 40, 277, 
+       277, 56, 291, 277, 282, 283, 284, 277, 
+       277, 277, 292, 277, 290, 277, 278, 279, 
+       289, 281, 43, 282, 283, 284, 277, 277, 
+       277, 285, 277, 277, 286, 277, 277, 277, 
+       277, 277, 277, 277, 277, 277, 277, 277, 
+       277, 277, 287, 277, 358, 184, 359, 359, 
+       81, 187, 188, 189, 357, 357, 357, 191, 
+       357, 357, 194, 357, 357, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       196, 357, 184, 359, 359, 81, 187, 188, 
+       189, 357, 357, 357, 191, 357, 357, 194, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 357, 357, 357, 196, 357, 360, 
+       357, 357, 357, 95, 361, 357, 187, 188, 
+       189, 357, 357, 357, 362, 357, 360, 357, 
+       363, 364, 365, 366, 81, 187, 188, 189, 
+       357, 357, 112, 367, 357, 357, 194, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 357, 357, 196, 357, 368, 364, 
+       369, 369, 81, 187, 188, 189, 357, 357, 
+       357, 367, 357, 357, 194, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 196, 357, 364, 369, 369, 81, 
+       187, 188, 189, 357, 357, 357, 367, 357, 
+       357, 194, 357, 357, 357, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 196, 
+       357, 370, 357, 357, 357, 95, 371, 357, 
+       187, 188, 189, 357, 357, 357, 362, 357, 
+       370, 357, 372, 373, 374, 375, 81, 187, 
+       188, 189, 357, 357, 110, 376, 357, 357, 
+       194, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 196, 357, 
+       377, 373, 378, 378, 81, 187, 188, 189, 
+       357, 357, 357, 376, 357, 357, 194, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 357, 357, 196, 357, 373, 378, 
+       378, 81, 187, 188, 189, 357, 357, 357, 
+       376, 357, 357, 194, 357, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 196, 357, 379, 357, 357, 357, 95, 
+       380, 357, 187, 188, 189, 357, 357, 357, 
+       362, 357, 379, 357, 381, 382, 383, 384, 
+       81, 187, 188, 189, 357, 357, 108, 385, 
+       357, 357, 194, 357, 357, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       196, 357, 386, 382, 387, 387, 81, 187, 
+       188, 189, 357, 357, 357, 385, 357, 357, 
+       194, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 196, 357, 
+       382, 387, 387, 81, 187, 188, 189, 357, 
+       357, 357, 385, 357, 357, 194, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 357, 196, 357, 388, 357, 357, 
+       357, 95, 389, 357, 187, 188, 189, 357, 
+       357, 357, 362, 357, 388, 357, 390, 391, 
+       392, 393, 81, 187, 188, 189, 357, 357, 
+       106, 394, 357, 357, 194, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 196, 357, 395, 391, 396, 396, 
+       81, 187, 188, 189, 357, 357, 357, 394, 
+       357, 357, 194, 357, 357, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       196, 357, 391, 396, 396, 81, 187, 188, 
+       189, 357, 357, 357, 394, 357, 357, 194, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 357, 357, 357, 196, 357, 95, 
+       397, 357, 187, 188, 189, 357, 357, 357, 
+       362, 357, 187, 188, 189, 357, 357, 357, 
+       362, 357, 398, 357, 357, 399, 188, 189, 
+       357, 188, 189, 357, 400, 357, 188, 401, 
+       357, 188, 402, 357, 188, 357, 398, 357, 
+       357, 357, 188, 189, 357, 403, 357, 404, 
+       405, 357, 187, 188, 189, 357, 357, 79, 
+       357, 78, 357, 357, 357, 357, 187, 188, 
+       189, 357, 187, 188, 189, 357, 403, 357, 
+       357, 357, 357, 187, 188, 189, 357, 403, 
+       357, 404, 357, 357, 187, 188, 189, 357, 
+       357, 79, 357, 95, 357, 406, 406, 81, 
+       187, 188, 189, 357, 357, 357, 362, 357, 
+       407, 104, 408, 409, 85, 187, 188, 189, 
+       357, 357, 357, 362, 357, 104, 408, 409, 
+       85, 187, 188, 189, 357, 357, 357, 362, 
+       357, 408, 408, 85, 187, 188, 189, 357, 
+       357, 357, 362, 357, 410, 101, 411, 412, 
+       88, 187, 188, 189, 357, 357, 357, 362, 
+       357, 101, 411, 412, 88, 187, 188, 189, 
+       357, 357, 357, 362, 357, 411, 411, 88, 
+       187, 188, 189, 357, 357, 357, 362, 357, 
+       413, 98, 414, 415, 91, 187, 188, 189, 
+       357, 357, 357, 362, 357, 98, 414, 415, 
+       91, 187, 188, 189, 357, 357, 357, 362, 
+       357, 414, 414, 91, 187, 188, 189, 357, 
+       357, 357, 362, 357, 416, 95, 357, 417, 
+       357, 187, 188, 189, 357, 357, 357, 362, 
+       357, 95, 357, 417, 357, 187, 188, 189, 
+       357, 357, 357, 362, 357, 418, 357, 187, 
+       188, 189, 357, 357, 357, 362, 357, 95, 
+       357, 357, 357, 357, 187, 188, 189, 357, 
+       357, 357, 362, 357, 77, 78, 357, 357, 
+       95, 397, 357, 187, 188, 189, 357, 357, 
+       357, 362, 357, 77, 357, 391, 396, 396, 
+       81, 187, 188, 189, 357, 357, 357, 394, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       196, 357, 391, 396, 396, 81, 187, 188, 
+       189, 357, 357, 357, 394, 357, 390, 391, 
+       396, 396, 81, 187, 188, 189, 357, 357, 
+       357, 394, 357, 357, 194, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 196, 357, 390, 391, 392, 396, 
+       81, 187, 188, 189, 357, 357, 106, 394, 
+       357, 357, 194, 357, 357, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       196, 357, 388, 357, 419, 357, 406, 406, 
+       81, 187, 188, 189, 357, 357, 357, 362, 
+       357, 388, 357, 388, 357, 357, 357, 357, 
+       357, 357, 187, 188, 189, 357, 357, 357, 
+       362, 357, 388, 357, 388, 357, 357, 357, 
+       357, 420, 357, 187, 188, 189, 357, 357, 
+       357, 362, 357, 388, 357, 388, 357, 419, 
+       357, 357, 357, 357, 187, 188, 189, 357, 
+       357, 357, 362, 357, 388, 357, 388, 78, 
+       357, 357, 95, 389, 357, 187, 188, 189, 
+       357, 357, 357, 362, 357, 388, 357, 381, 
+       382, 387, 387, 81, 187, 188, 189, 357, 
+       357, 357, 385, 357, 357, 194, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 357, 196, 357, 381, 382, 383, 
+       387, 81, 187, 188, 189, 357, 357, 108, 
+       385, 357, 357, 194, 357, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 196, 357, 379, 357, 421, 357, 406, 
+       406, 81, 187, 188, 189, 357, 357, 357, 
+       362, 357, 379, 357, 379, 357, 357, 357, 
+       357, 357, 357, 187, 188, 189, 357, 357, 
+       357, 362, 357, 379, 357, 379, 357, 357, 
+       357, 357, 422, 357, 187, 188, 189, 357, 
+       357, 357, 362, 357, 379, 357, 379, 357, 
+       421, 357, 357, 357, 357, 187, 188, 189, 
+       357, 357, 357, 362, 357, 379, 357, 379, 
+       78, 357, 357, 95, 380, 357, 187, 188, 
+       189, 357, 357, 357, 362, 357, 379, 357, 
+       372, 373, 378, 378, 81, 187, 188, 189, 
+       357, 357, 357, 376, 357, 357, 194, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 357, 357, 196, 357, 372, 373, 
+       374, 378, 81, 187, 188, 189, 357, 357, 
+       110, 376, 357, 357, 194, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 196, 357, 370, 357, 423, 357, 
+       406, 406, 81, 187, 188, 189, 357, 357, 
+       357, 362, 357, 370, 357, 370, 357, 357, 
+       357, 357, 357, 357, 187, 188, 189, 357, 
+       357, 357, 362, 357, 370, 357, 370, 357, 
+       357, 357, 357, 424, 357, 187, 188, 189, 
+       357, 357, 357, 362, 357, 370, 357, 370, 
+       357, 423, 357, 357, 357, 357, 187, 188, 
+       189, 357, 357, 357, 362, 357, 370, 357, 
+       370, 78, 357, 357, 95, 371, 357, 187, 
+       188, 189, 357, 357, 357, 362, 357, 370, 
+       357, 363, 364, 369, 369, 81, 187, 188, 
+       189, 357, 357, 357, 367, 357, 357, 194, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 357, 357, 357, 196, 357, 363, 
+       364, 365, 369, 81, 187, 188, 189, 357, 
+       357, 112, 367, 357, 357, 194, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 357, 196, 357, 360, 357, 425, 
+       357, 406, 406, 81, 187, 188, 189, 357, 
+       357, 357, 362, 357, 360, 357, 360, 357, 
+       357, 357, 357, 357, 357, 187, 188, 189, 
+       357, 357, 357, 362, 357, 360, 357, 360, 
+       357, 357, 357, 357, 426, 357, 187, 188, 
+       189, 357, 357, 357, 362, 357, 360, 357, 
+       360, 357, 425, 357, 357, 357, 357, 187, 
+       188, 189, 357, 357, 357, 362, 357, 360, 
+       357, 360, 78, 357, 357, 95, 361, 357, 
+       187, 188, 189, 357, 357, 357, 362, 357, 
+       360, 357, 113, 80, 80, 81, 427, 427, 
+       427, 427, 427, 152, 113, 427, 183, 184, 
+       359, 359, 81, 187, 188, 189, 357, 357, 
+       357, 191, 357, 357, 194, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       357, 357, 196, 357, 113, 80, 80, 81, 
+       427, 427, 427, 427, 427, 427, 113, 427, 
+       429, 430, 431, 432, 119, 433, 434, 435, 
+       428, 428, 151, 436, 428, 428, 437, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 438, 428, 439, 430, 
+       432, 432, 119, 433, 434, 435, 428, 428, 
+       428, 436, 428, 428, 437, 428, 428, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 438, 428, 430, 432, 432, 119, 
+       433, 434, 435, 428, 428, 428, 436, 428, 
+       428, 437, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 428, 428, 428, 438, 
+       428, 440, 428, 428, 428, 132, 441, 428, 
+       433, 434, 435, 428, 428, 428, 442, 428, 
+       440, 428, 443, 444, 445, 446, 119, 433, 
+       434, 435, 428, 428, 149, 447, 428, 428, 
+       437, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 428, 428, 438, 428, 
+       448, 444, 449, 449, 119, 433, 434, 435, 
+       428, 428, 428, 447, 428, 428, 437, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 438, 428, 444, 449, 
+       449, 119, 433, 434, 435, 428, 428, 428, 
+       447, 428, 428, 437, 428, 428, 428, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 438, 428, 450, 428, 428, 428, 132, 
+       451, 428, 433, 434, 435, 428, 428, 428, 
+       442, 428, 450, 428, 452, 453, 454, 455, 
+       119, 433, 434, 435, 428, 428, 147, 456, 
+       428, 428, 437, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       438, 428, 457, 453, 458, 458, 119, 433, 
+       434, 435, 428, 428, 428, 456, 428, 428, 
+       437, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 428, 428, 438, 428, 
+       453, 458, 458, 119, 433, 434, 435, 428, 
+       428, 428, 456, 428, 428, 437, 428, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 438, 428, 459, 428, 428, 
+       428, 132, 460, 428, 433, 434, 435, 428, 
+       428, 428, 442, 428, 459, 428, 461, 462, 
+       463, 464, 119, 433, 434, 435, 428, 428, 
+       145, 465, 428, 428, 437, 428, 428, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 438, 428, 466, 462, 467, 467, 
+       119, 433, 434, 435, 428, 428, 428, 465, 
+       428, 428, 437, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       438, 428, 462, 467, 467, 119, 433, 434, 
+       435, 428, 428, 428, 465, 428, 428, 437, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 428, 438, 428, 468, 
+       428, 428, 428, 132, 469, 428, 433, 434, 
+       435, 428, 428, 428, 442, 428, 468, 428, 
+       470, 471, 472, 473, 119, 433, 434, 435, 
+       428, 428, 143, 474, 428, 428, 437, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 438, 428, 475, 471, 
+       476, 476, 119, 433, 434, 435, 428, 428, 
+       428, 474, 428, 428, 437, 428, 428, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 438, 428, 471, 476, 476, 119, 
+       433, 434, 435, 428, 428, 428, 474, 428, 
+       428, 437, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 428, 428, 428, 438, 
+       428, 132, 477, 428, 433, 434, 435, 428, 
+       428, 428, 442, 428, 433, 434, 435, 428, 
+       428, 428, 442, 428, 478, 428, 428, 479, 
+       434, 435, 428, 434, 435, 428, 480, 428, 
+       434, 481, 428, 434, 482, 428, 434, 428, 
+       478, 428, 428, 428, 434, 435, 428, 483, 
+       428, 484, 485, 428, 433, 434, 435, 428, 
+       428, 117, 428, 116, 428, 428, 428, 428, 
+       433, 434, 435, 428, 433, 434, 435, 428, 
+       483, 428, 428, 428, 428, 433, 434, 435, 
+       428, 483, 428, 484, 428, 428, 433, 434, 
+       435, 428, 428, 117, 428, 132, 428, 486, 
+       486, 119, 433, 434, 435, 428, 428, 428, 
+       442, 428, 487, 141, 488, 489, 122, 433, 
+       434, 435, 428, 428, 428, 442, 428, 141, 
+       488, 489, 122, 433, 434, 435, 428, 428, 
+       428, 442, 428, 488, 488, 122, 433, 434, 
+       435, 428, 428, 428, 442, 428, 490, 138, 
+       491, 492, 125, 433, 434, 435, 428, 428, 
+       428, 442, 428, 138, 491, 492, 125, 433, 
+       434, 435, 428, 428, 428, 442, 428, 491, 
+       491, 125, 433, 434, 435, 428, 428, 428, 
+       442, 428, 493, 135, 494, 495, 128, 433, 
+       434, 435, 428, 428, 428, 442, 428, 135, 
+       494, 495, 128, 433, 434, 435, 428, 428, 
+       428, 442, 428, 494, 494, 128, 433, 434, 
+       435, 428, 428, 428, 442, 428, 496, 132, 
+       428, 497, 428, 433, 434, 435, 428, 428, 
+       428, 442, 428, 132, 428, 497, 428, 433, 
+       434, 435, 428, 428, 428, 442, 428, 498, 
+       428, 433, 434, 435, 428, 428, 428, 442, 
+       428, 132, 428, 428, 428, 428, 433, 434, 
+       435, 428, 428, 428, 442, 428, 115, 116, 
+       428, 428, 132, 477, 428, 433, 434, 435, 
+       428, 428, 428, 442, 428, 115, 428, 471, 
+       476, 476, 119, 433, 434, 435, 428, 428, 
+       428, 474, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 438, 428, 471, 476, 476, 119, 
+       433, 434, 435, 428, 428, 428, 474, 428, 
+       470, 471, 476, 476, 119, 433, 434, 435, 
+       428, 428, 428, 474, 428, 428, 437, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 438, 428, 470, 471, 
+       472, 476, 119, 433, 434, 435, 428, 428, 
+       143, 474, 428, 428, 437, 428, 428, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 438, 428, 468, 428, 499, 428, 
+       486, 486, 119, 433, 434, 435, 428, 428, 
+       428, 442, 428, 468, 428, 468, 428, 428, 
+       428, 428, 428, 428, 433, 434, 435, 428, 
+       428, 428, 442, 428, 468, 428, 468, 428, 
+       428, 428, 428, 500, 428, 433, 434, 435, 
+       428, 428, 428, 442, 428, 468, 428, 468, 
+       428, 499, 428, 428, 428, 428, 433, 434, 
+       435, 428, 428, 428, 442, 428, 468, 428, 
+       468, 116, 428, 428, 132, 469, 428, 433, 
+       434, 435, 428, 428, 428, 442, 428, 468, 
+       428, 461, 462, 467, 467, 119, 433, 434, 
+       435, 428, 428, 428, 465, 428, 428, 437, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 428, 438, 428, 461, 
+       462, 463, 467, 119, 433, 434, 435, 428, 
+       428, 145, 465, 428, 428, 437, 428, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 438, 428, 459, 428, 501, 
+       428, 486, 486, 119, 433, 434, 435, 428, 
+       428, 428, 442, 428, 459, 428, 459, 428, 
+       428, 428, 428, 428, 428, 433, 434, 435, 
+       428, 428, 428, 442, 428, 459, 428, 459, 
+       428, 428, 428, 428, 502, 428, 433, 434, 
+       435, 428, 428, 428, 442, 428, 459, 428, 
+       459, 428, 501, 428, 428, 428, 428, 433, 
+       434, 435, 428, 428, 428, 442, 428, 459, 
+       428, 459, 116, 428, 428, 132, 460, 428, 
+       433, 434, 435, 428, 428, 428, 442, 428, 
+       459, 428, 452, 453, 458, 458, 119, 433, 
+       434, 435, 428, 428, 428, 456, 428, 428, 
+       437, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 428, 428, 438, 428, 
+       452, 453, 454, 458, 119, 433, 434, 435, 
+       428, 428, 147, 456, 428, 428, 437, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 438, 428, 450, 428, 
+       503, 428, 486, 486, 119, 433, 434, 435, 
+       428, 428, 428, 442, 428, 450, 428, 450, 
+       428, 428, 428, 428, 428, 428, 433, 434, 
+       435, 428, 428, 428, 442, 428, 450, 428, 
+       450, 428, 428, 428, 428, 504, 428, 433, 
+       434, 435, 428, 428, 428, 442, 428, 450, 
+       428, 450, 428, 503, 428, 428, 428, 428, 
+       433, 434, 435, 428, 428, 428, 442, 428, 
+       450, 428, 450, 116, 428, 428, 132, 451, 
+       428, 433, 434, 435, 428, 428, 428, 442, 
+       428, 450, 428, 443, 444, 449, 449, 119, 
+       433, 434, 435, 428, 428, 428, 447, 428, 
+       428, 437, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 428, 428, 428, 438, 
+       428, 443, 444, 445, 449, 119, 433, 434, 
+       435, 428, 428, 149, 447, 428, 428, 437, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 428, 438, 428, 440, 
+       428, 505, 428, 486, 486, 119, 433, 434, 
+       435, 428, 428, 428, 442, 428, 440, 428, 
+       440, 428, 428, 428, 428, 428, 428, 433, 
+       434, 435, 428, 428, 428, 442, 428, 440, 
+       428, 440, 428, 428, 428, 428, 506, 428, 
+       433, 434, 435, 428, 428, 428, 442, 428, 
+       440, 428, 440, 428, 505, 428, 428, 428, 
+       428, 433, 434, 435, 428, 428, 428, 442, 
+       428, 440, 428, 440, 116, 428, 428, 132, 
+       441, 428, 433, 434, 435, 428, 428, 428, 
+       442, 428, 440, 428, 429, 430, 432, 432, 
+       119, 433, 434, 435, 428, 428, 428, 436, 
+       428, 428, 437, 428, 428, 428, 428, 428, 
+       428, 428, 428, 428, 428, 428, 428, 428, 
+       438, 428, 181, 182, 183, 184, 507, 359, 
+       81, 187, 188, 189, 190, 190, 152, 191, 
+       357, 181, 194, 357, 357, 357, 357, 357, 
+       357, 357, 357, 357, 357, 357, 357, 357, 
+       196, 357, 198, 508, 200, 201, 5, 202, 
+       203, 204, 197, 197, 37, 205, 197, 197, 
+       206, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 207, 197, 
+       210, 182, 183, 184, 509, 510, 81, 511, 
+       512, 513, 197, 190, 152, 514, 197, 210, 
+       194, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 196, 197, 
+       113, 80, 80, 81, 202, 203, 204, 197, 
+       197, 152, 515, 197, 516, 2, 357, 357, 
+       357, 426, 357, 187, 188, 189, 357, 357, 
+       357, 362, 357, 516, 357, 517, 364, 518, 
+       519, 81, 511, 512, 513, 197, 197, 153, 
+       367, 197, 197, 194, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 196, 197, 520, 364, 369, 369, 81, 
+       511, 512, 513, 197, 197, 197, 367, 197, 
+       197, 194, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 196, 
+       197, 364, 369, 369, 81, 511, 512, 513, 
+       197, 197, 197, 367, 197, 197, 194, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 196, 197, 521, 197, 
+       197, 522, 512, 513, 197, 512, 513, 197, 
+       250, 197, 512, 523, 197, 512, 524, 197, 
+       512, 197, 521, 197, 197, 197, 512, 513, 
+       197, 517, 364, 369, 369, 81, 511, 512, 
+       513, 197, 197, 197, 367, 197, 197, 194, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 197, 197, 196, 197, 517, 
+       364, 518, 369, 81, 511, 512, 513, 197, 
+       197, 153, 367, 197, 197, 194, 197, 197, 
+       197, 197, 197, 197, 197, 197, 197, 197, 
+       197, 197, 197, 196, 197, 210, 197, 275, 
+       113, 525, 525, 155, 202, 203, 204, 197, 
+       197, 197, 515, 197, 210, 197, 526, 179, 
+       527, 528, 157, 511, 512, 513, 197, 197, 
+       197, 529, 197, 179, 527, 528, 157, 511, 
+       512, 513, 197, 197, 197, 529, 197, 527, 
+       527, 157, 511, 512, 513, 197, 197, 197, 
+       529, 197, 530, 176, 531, 532, 160, 511, 
+       512, 513, 197, 197, 197, 529, 197, 176, 
+       531, 532, 160, 511, 512, 513, 197, 197, 
+       197, 529, 197, 531, 531, 160, 511, 512, 
+       513, 197, 197, 197, 529, 197, 533, 173, 
+       534, 535, 163, 511, 512, 513, 197, 197, 
+       197, 529, 197, 173, 534, 535, 163, 511, 
+       512, 513, 197, 197, 197, 529, 197, 534, 
+       534, 163, 511, 512, 513, 197, 197, 197, 
+       529, 197, 536, 170, 197, 537, 197, 511, 
+       512, 513, 197, 197, 197, 529, 197, 170, 
+       197, 537, 197, 511, 512, 513, 197, 197, 
+       197, 529, 197, 511, 512, 513, 197, 197, 
+       197, 529, 197, 538, 197, 539, 540, 197, 
+       511, 512, 513, 197, 197, 167, 197, 166, 
+       197, 197, 197, 197, 511, 512, 513, 197, 
+       511, 512, 513, 197, 538, 197, 197, 197, 
+       197, 511, 512, 513, 197, 538, 197, 539, 
+       197, 197, 511, 512, 513, 197, 197, 167, 
+       197, 516, 166, 357, 357, 95, 361, 357, 
+       187, 188, 189, 357, 357, 357, 362, 357, 
+       516, 357, 542, 541, 541, 541, 541, 543, 
+       544, 545, 541, 543, 544, 545, 541, 546, 
+       541, 541, 547, 544, 545, 541, 544, 545, 
+       541, 548, 541, 544, 549, 541, 544, 550, 
+       541, 544, 541, 546, 541, 541, 541, 544, 
+       545, 541, 0
+};
+
+static const short _indic_syllable_machine_trans_targs[] = {
+       170, 199, 201, 202, 3, 205, 4, 6, 
+       208, 7, 9, 211, 10, 12, 214, 13, 
+       15, 16, 191, 18, 19, 213, 21, 22, 
+       210, 24, 25, 207, 216, 221, 225, 228, 
+       232, 235, 239, 242, 246, 249, 170, 279, 
+       281, 282, 39, 285, 40, 42, 288, 43, 
+       45, 291, 46, 48, 294, 49, 51, 52, 
+       271, 54, 55, 293, 57, 58, 290, 60, 
+       61, 287, 296, 301, 305, 308, 312, 315, 
+       319, 322, 326, 330, 170, 358, 360, 361, 
+       75, 364, 170, 76, 78, 367, 79, 81, 
+       370, 82, 84, 373, 85, 87, 88, 350, 
+       90, 91, 372, 93, 94, 369, 96, 97, 
+       366, 375, 380, 384, 387, 391, 394, 398, 
+       401, 405, 170, 439, 441, 442, 110, 445, 
+       111, 113, 448, 114, 116, 451, 117, 119, 
+       454, 120, 122, 123, 431, 125, 126, 453, 
+       128, 129, 450, 131, 132, 447, 456, 461, 
+       465, 468, 472, 475, 479, 482, 486, 489, 
+       409, 505, 146, 508, 148, 511, 149, 151, 
+       514, 152, 154, 517, 155, 520, 522, 523, 
+       159, 160, 519, 162, 163, 516, 165, 166, 
+       513, 168, 169, 510, 170, 171, 251, 331, 
+       333, 408, 410, 351, 353, 354, 411, 407, 
+       490, 491, 378, 526, 379, 170, 172, 174, 
+       35, 250, 192, 194, 195, 248, 219, 220, 
+       173, 34, 175, 244, 0, 176, 178, 33, 
+       243, 241, 177, 32, 179, 237, 180, 182, 
+       31, 236, 234, 181, 30, 183, 230, 184, 
+       186, 29, 229, 227, 185, 28, 187, 223, 
+       188, 190, 27, 222, 218, 189, 26, 204, 
+       193, 198, 170, 196, 197, 200, 1, 203, 
+       2, 206, 5, 23, 209, 8, 20, 212, 
+       11, 17, 215, 14, 217, 224, 226, 231, 
+       233, 238, 240, 245, 247, 170, 252, 254, 
+       71, 328, 272, 274, 275, 329, 299, 300, 
+       253, 70, 255, 324, 36, 256, 258, 69, 
+       323, 321, 257, 68, 259, 317, 260, 262, 
+       67, 316, 314, 261, 66, 263, 310, 264, 
+       266, 65, 309, 307, 265, 64, 267, 303, 
+       268, 270, 63, 302, 298, 269, 62, 284, 
+       273, 278, 170, 276, 277, 280, 37, 283, 
+       38, 286, 41, 59, 289, 44, 56, 292, 
+       47, 53, 295, 50, 297, 304, 306, 311, 
+       313, 318, 320, 325, 327, 170, 332, 106, 
+       334, 403, 72, 335, 337, 105, 402, 400, 
+       336, 104, 338, 396, 339, 341, 103, 395, 
+       393, 340, 102, 342, 389, 343, 345, 101, 
+       388, 386, 344, 100, 346, 382, 347, 349, 
+       99, 381, 377, 348, 98, 363, 352, 357, 
+       170, 355, 356, 359, 73, 362, 74, 365, 
+       77, 95, 368, 80, 92, 371, 83, 89, 
+       374, 86, 376, 383, 385, 390, 392, 397, 
+       399, 404, 406, 170, 170, 412, 414, 142, 
+       141, 432, 434, 435, 488, 459, 460, 413, 
+       415, 484, 107, 416, 418, 140, 483, 481, 
+       417, 139, 419, 477, 420, 422, 138, 476, 
+       474, 421, 137, 423, 470, 424, 426, 136, 
+       469, 467, 425, 135, 427, 463, 428, 430, 
+       134, 462, 458, 429, 133, 444, 433, 438, 
+       170, 436, 437, 440, 108, 443, 109, 446, 
+       112, 130, 449, 115, 127, 452, 118, 124, 
+       455, 121, 457, 464, 466, 471, 473, 478, 
+       480, 485, 487, 143, 492, 493, 507, 498, 
+       500, 501, 525, 494, 495, 496, 144, 506, 
+       497, 499, 504, 502, 503, 145, 509, 147, 
+       167, 156, 512, 150, 164, 515, 153, 161, 
+       518, 158, 521, 157, 524, 170, 527, 528, 
+       530, 531, 529, 534, 170, 532, 533
+};
+
+static const char _indic_syllable_machine_trans_actions[] = {
+       1, 2, 0, 0, 0, 2, 0, 0, 
+       2, 0, 0, 2, 0, 0, 2, 0, 
+       0, 0, 2, 0, 0, 2, 0, 0, 
+       2, 0, 0, 2, 2, 2, 2, 2, 
+       2, 2, 2, 2, 2, 2, 3, 2, 
+       0, 0, 0, 2, 0, 0, 2, 0, 
+       0, 2, 0, 0, 2, 0, 0, 0, 
+       2, 0, 0, 2, 0, 0, 2, 0, 
+       0, 2, 2, 2, 2, 2, 2, 2, 
+       2, 2, 2, 2, 4, 2, 0, 0, 
+       0, 2, 5, 0, 0, 2, 0, 0, 
+       2, 0, 0, 2, 0, 0, 0, 2, 
+       0, 0, 2, 0, 0, 2, 0, 0, 
+       2, 2, 6, 2, 6, 2, 6, 2, 
+       6, 2, 7, 2, 0, 0, 0, 2, 
+       0, 0, 2, 0, 0, 2, 0, 0, 
+       2, 0, 0, 0, 2, 0, 0, 2, 
+       0, 0, 2, 0, 0, 2, 2, 2, 
+       2, 2, 2, 2, 2, 2, 2, 2, 
+       6, 8, 0, 2, 0, 2, 0, 0, 
+       2, 0, 0, 2, 0, 2, 0, 0, 
+       0, 0, 2, 0, 0, 2, 0, 0, 
+       2, 0, 0, 2, 11, 2, 2, 6, 
+       2, 12, 12, 0, 0, 0, 2, 2, 
+       6, 2, 6, 0, 6, 13, 2, 2, 
+       0, 2, 0, 0, 0, 2, 2, 2, 
+       2, 0, 2, 2, 0, 2, 2, 0, 
+       2, 2, 2, 0, 2, 2, 2, 2, 
+       0, 2, 2, 2, 0, 2, 2, 2, 
+       2, 0, 2, 2, 2, 0, 2, 2, 
+       2, 2, 0, 2, 2, 2, 0, 2, 
+       0, 0, 14, 0, 0, 0, 0, 2, 
+       0, 2, 0, 0, 2, 0, 0, 2, 
+       0, 0, 2, 0, 2, 2, 2, 2, 
+       2, 2, 2, 2, 2, 15, 2, 2, 
+       0, 2, 0, 0, 0, 2, 2, 2, 
+       2, 0, 2, 2, 0, 2, 2, 0, 
+       2, 2, 2, 0, 2, 2, 2, 2, 
+       0, 2, 2, 2, 0, 2, 2, 2, 
+       2, 0, 2, 2, 2, 0, 2, 2, 
+       2, 2, 0, 2, 2, 2, 0, 2, 
+       0, 0, 16, 0, 0, 0, 0, 2, 
+       0, 2, 0, 0, 2, 0, 0, 2, 
+       0, 0, 2, 0, 2, 2, 2, 2, 
+       2, 2, 2, 2, 2, 17, 6, 0, 
+       6, 6, 0, 6, 2, 0, 6, 2, 
+       6, 0, 6, 6, 6, 2, 0, 6, 
+       2, 6, 0, 6, 6, 6, 2, 0, 
+       6, 2, 6, 0, 6, 6, 6, 2, 
+       0, 6, 2, 6, 0, 6, 0, 0, 
+       18, 0, 0, 0, 0, 2, 0, 2, 
+       0, 0, 2, 0, 0, 2, 0, 0, 
+       2, 0, 2, 2, 2, 2, 2, 2, 
+       2, 2, 2, 19, 20, 2, 2, 0, 
+       0, 0, 0, 0, 2, 2, 2, 2, 
+       2, 2, 0, 2, 2, 0, 2, 2, 
+       2, 0, 2, 2, 2, 2, 0, 2, 
+       2, 2, 0, 2, 2, 2, 2, 0, 
+       2, 2, 2, 0, 2, 2, 2, 2, 
+       0, 2, 2, 2, 0, 2, 0, 0, 
+       21, 0, 0, 0, 0, 2, 0, 2, 
+       0, 0, 2, 0, 0, 2, 0, 0, 
+       2, 0, 2, 2, 2, 2, 2, 2, 
+       2, 2, 2, 0, 0, 8, 2, 0, 
+       0, 0, 2, 2, 8, 8, 0, 8, 
+       8, 0, 0, 0, 0, 0, 2, 0, 
+       0, 0, 2, 0, 0, 2, 0, 0, 
+       2, 0, 0, 0, 2, 22, 0, 0, 
+       0, 0, 0, 0, 23, 0, 0
+};
+
+static const char _indic_syllable_machine_to_state_actions[] = {
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 9, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0
+};
+
+static const char _indic_syllable_machine_from_state_actions[] = {
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 10, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0
+};
+
+static const short _indic_syllable_machine_eof_trans[] = {
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 39, 39, 39, 39, 
+       39, 39, 39, 39, 39, 39, 39, 39, 
+       39, 39, 39, 39, 39, 39, 39, 39, 
+       39, 39, 39, 39, 39, 39, 39, 39, 
+       39, 39, 39, 39, 39, 39, 39, 39, 
+       77, 77, 77, 83, 83, 77, 77, 77, 
+       77, 77, 77, 77, 77, 77, 77, 77, 
+       77, 77, 77, 77, 77, 77, 77, 77, 
+       77, 77, 77, 77, 77, 77, 77, 77, 
+       83, 77, 77, 115, 115, 115, 115, 115, 
+       115, 115, 115, 115, 115, 115, 115, 115, 
+       115, 115, 115, 115, 115, 115, 115, 115, 
+       115, 115, 115, 115, 115, 115, 115, 115, 
+       115, 115, 115, 115, 115, 115, 115, 77, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 1, 1, 1, 1, 1, 1, 
+       1, 1, 0, 198, 198, 198, 198, 198, 
+       198, 198, 198, 198, 198, 198, 198, 198, 
+       198, 198, 198, 198, 198, 198, 198, 198, 
+       198, 198, 198, 198, 198, 198, 198, 198, 
+       198, 198, 198, 198, 198, 198, 198, 198, 
+       198, 198, 198, 198, 198, 198, 198, 198, 
+       198, 198, 198, 198, 198, 198, 198, 198, 
+       198, 198, 198, 198, 198, 198, 198, 198, 
+       198, 198, 198, 198, 198, 198, 198, 198, 
+       198, 198, 198, 198, 198, 198, 198, 198, 
+       198, 198, 198, 278, 278, 278, 278, 278, 
+       278, 278, 278, 278, 278, 278, 278, 278, 
+       278, 278, 278, 278, 278, 278, 278, 278, 
+       278, 278, 278, 278, 278, 278, 278, 278, 
+       278, 278, 278, 278, 278, 278, 278, 278, 
+       278, 278, 278, 278, 278, 278, 278, 278, 
+       278, 278, 278, 278, 278, 278, 278, 278, 
+       278, 278, 278, 278, 278, 278, 278, 278, 
+       278, 278, 278, 278, 278, 278, 278, 278, 
+       278, 278, 278, 278, 278, 278, 278, 278, 
+       278, 278, 278, 358, 358, 358, 358, 358, 
+       358, 358, 358, 358, 358, 358, 358, 358, 
+       358, 358, 358, 358, 358, 358, 358, 358, 
+       358, 358, 358, 358, 358, 358, 358, 358, 
+       358, 358, 358, 358, 358, 358, 358, 358, 
+       358, 358, 358, 358, 358, 358, 358, 358, 
+       358, 358, 358, 358, 358, 358, 358, 358, 
+       358, 358, 358, 358, 358, 358, 358, 358, 
+       358, 358, 358, 358, 358, 358, 358, 358, 
+       358, 358, 358, 358, 358, 358, 358, 358, 
+       428, 358, 428, 429, 429, 429, 429, 429, 
+       429, 429, 429, 429, 429, 429, 429, 429, 
+       429, 429, 429, 429, 429, 429, 429, 429, 
+       429, 429, 429, 429, 429, 429, 429, 429, 
+       429, 429, 429, 429, 429, 429, 429, 429, 
+       429, 429, 429, 429, 429, 429, 429, 429, 
+       429, 429, 429, 429, 429, 429, 429, 429, 
+       429, 429, 429, 429, 429, 429, 429, 429, 
+       429, 429, 429, 429, 429, 429, 429, 429, 
+       429, 429, 429, 429, 429, 429, 429, 429, 
+       429, 429, 358, 198, 198, 198, 358, 198, 
+       198, 198, 198, 198, 198, 198, 198, 198, 
+       198, 198, 198, 198, 198, 198, 198, 198, 
+       198, 198, 198, 198, 198, 198, 198, 198, 
+       198, 198, 198, 198, 198, 358, 542, 542, 
+       542, 542, 542, 542, 542, 542, 542
+};
+
+static const int indic_syllable_machine_start = 170;
+static const int indic_syllable_machine_first_final = 170;
+static const int indic_syllable_machine_error = -1;
+
+static const int indic_syllable_machine_en_main = 170;
+
+
+#line 36 "../../src/hb-ot-shape-complex-indic-machine.rl"
+
+
+
+#line 97 "../../src/hb-ot-shape-complex-indic-machine.rl"
+
+
+#define found_syllable(syllable_type) \
+  HB_STMT_START { \
+    if (0) fprintf (stderr, "syllable %d..%d %s\n", last, p+1, #syllable_type); \
+    for (unsigned int i = last; i < p+1; i++) \
+      info[i].syllable() = (syllable_serial << 4) | syllable_type; \
+    last = p+1; \
+    syllable_serial++; \
+    if (unlikely (syllable_serial == 16)) syllable_serial = 1; \
+  } HB_STMT_END
+
+static void
+find_syllables (hb_buffer_t *buffer)
+{
+  unsigned int p, pe, eof, ts HB_UNUSED, te HB_UNUSED, act HB_UNUSED;
+  int cs;
+  hb_glyph_info_t *info = buffer->info;
+  
+#line 1554 "../../src/hb-ot-shape-complex-indic-machine.hh.tmp"
+       {
+       cs = indic_syllable_machine_start;
+       ts = 0;
+       te = 0;
+       act = 0;
+       }
+
+#line 118 "../../src/hb-ot-shape-complex-indic-machine.rl"
+
+
+  p = 0;
+  pe = eof = buffer->len;
+
+  unsigned int last = 0;
+  unsigned int syllable_serial = 1;
+  
+#line 1571 "../../src/hb-ot-shape-complex-indic-machine.hh.tmp"
+       {
+       int _slen;
+       int _trans;
+       const unsigned char *_keys;
+       const short *_inds;
+       if ( p == pe )
+               goto _test_eof;
+_resume:
+       switch ( _indic_syllable_machine_from_state_actions[cs] ) {
+       case 10:
+#line 1 "NONE"
+       {ts = p;}
+       break;
+#line 1585 "../../src/hb-ot-shape-complex-indic-machine.hh.tmp"
+       }
+
+       _keys = _indic_syllable_machine_trans_keys + (cs<<1);
+       _inds = _indic_syllable_machine_indicies + _indic_syllable_machine_index_offsets[cs];
+
+       _slen = _indic_syllable_machine_key_spans[cs];
+       _trans = _inds[ _slen > 0 && _keys[0] <=( info[p].indic_category()) &&
+               ( info[p].indic_category()) <= _keys[1] ?
+               ( info[p].indic_category()) - _keys[0] : _slen ];
+
+_eof_trans:
+       cs = _indic_syllable_machine_trans_targs[_trans];
+
+       if ( _indic_syllable_machine_trans_actions[_trans] == 0 )
+               goto _again;
+
+       switch ( _indic_syllable_machine_trans_actions[_trans] ) {
+       case 2:
+#line 1 "NONE"
+       {te = p+1;}
+       break;
+       case 14:
+#line 88 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {te = p+1;{ found_syllable (consonant_syllable); }}
+       break;
+       case 16:
+#line 89 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {te = p+1;{ found_syllable (vowel_syllable); }}
+       break;
+       case 21:
+#line 90 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {te = p+1;{ found_syllable (standalone_cluster); }}
+       break;
+       case 23:
+#line 91 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {te = p+1;{ found_syllable (symbol_cluster); }}
+       break;
+       case 18:
+#line 92 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {te = p+1;{ found_syllable (broken_cluster); }}
+       break;
+       case 11:
+#line 93 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {te = p+1;{ found_syllable (non_indic_cluster); }}
+       break;
+       case 13:
+#line 88 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {te = p;p--;{ found_syllable (consonant_syllable); }}
+       break;
+       case 15:
+#line 89 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {te = p;p--;{ found_syllable (vowel_syllable); }}
+       break;
+       case 20:
+#line 90 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {te = p;p--;{ found_syllable (standalone_cluster); }}
+       break;
+       case 22:
+#line 91 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {te = p;p--;{ found_syllable (symbol_cluster); }}
+       break;
+       case 17:
+#line 92 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {te = p;p--;{ found_syllable (broken_cluster); }}
+       break;
+       case 19:
+#line 93 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {te = p;p--;{ found_syllable (non_indic_cluster); }}
+       break;
+       case 1:
+#line 88 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {{p = ((te))-1;}{ found_syllable (consonant_syllable); }}
+       break;
+       case 3:
+#line 89 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {{p = ((te))-1;}{ found_syllable (vowel_syllable); }}
+       break;
+       case 7:
+#line 90 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {{p = ((te))-1;}{ found_syllable (standalone_cluster); }}
+       break;
+       case 4:
+#line 92 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {{p = ((te))-1;}{ found_syllable (broken_cluster); }}
+       break;
+       case 5:
+#line 1 "NONE"
+       {       switch( act ) {
+       case 1:
+       {{p = ((te))-1;} found_syllable (consonant_syllable); }
+       break;
+       case 5:
+       {{p = ((te))-1;} found_syllable (broken_cluster); }
+       break;
+       case 6:
+       {{p = ((te))-1;} found_syllable (non_indic_cluster); }
+       break;
+       }
+       }
+       break;
+       case 8:
+#line 1 "NONE"
+       {te = p+1;}
+#line 88 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {act = 1;}
+       break;
+       case 6:
+#line 1 "NONE"
+       {te = p+1;}
+#line 92 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {act = 5;}
+       break;
+       case 12:
+#line 1 "NONE"
+       {te = p+1;}
+#line 93 "../../src/hb-ot-shape-complex-indic-machine.rl"
+       {act = 6;}
+       break;
+#line 1704 "../../src/hb-ot-shape-complex-indic-machine.hh.tmp"
+       }
+
+_again:
+       switch ( _indic_syllable_machine_to_state_actions[cs] ) {
+       case 9:
+#line 1 "NONE"
+       {ts = 0;}
+       break;
+#line 1713 "../../src/hb-ot-shape-complex-indic-machine.hh.tmp"
+       }
+
+       if ( ++p != pe )
+               goto _resume;
+       _test_eof: {}
+       if ( p == eof )
+       {
+       if ( _indic_syllable_machine_eof_trans[cs] > 0 ) {
+               _trans = _indic_syllable_machine_eof_trans[cs] - 1;
+               goto _eof_trans;
+       }
+       }
+
+       }
+
+#line 127 "../../src/hb-ot-shape-complex-indic-machine.rl"
+
+}
+
+#endif /* HB_OT_SHAPE_COMPLEX_INDIC_MACHINE_HH */
diff --git a/src/hb-ot-shape-complex-indic-machine.rl b/src/hb-ot-shape-complex-indic-machine.rl
new file mode 100644 (file)
index 0000000..f6768a5
--- /dev/null
@@ -0,0 +1,130 @@
+/*
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_SHAPE_COMPLEX_INDIC_MACHINE_HH
+#define HB_OT_SHAPE_COMPLEX_INDIC_MACHINE_HH
+
+#include "hb-private.hh"
+
+%%{
+  machine indic_syllable_machine;
+  alphtype unsigned char;
+  write data;
+}%%
+
+%%{
+
+# Same order as enum indic_category_t.  Not sure how to avoid duplication.
+X    = 0;
+C    = 1;
+V    = 2;
+N    = 3;
+H    = 4;
+ZWNJ = 5;
+ZWJ  = 6;
+M    = 7;
+SM   = 8;
+VD   = 9;
+A    = 10;
+PLACEHOLDER = 11;
+DOTTEDCIRCLE = 12;
+RS    = 13;
+Coeng = 14;
+Repha = 15;
+Ra    = 16;
+CM    = 17;
+Symbol= 18;
+CM2   = 31;
+
+c = (C | Ra);                  # is_consonant
+n = ((ZWNJ?.RS)? (N.N?)?);     # is_consonant_modifier
+z = ZWJ|ZWNJ;                  # is_joiner
+h = H | Coeng;                 # is_halant_or_coeng
+reph = (Ra H | Repha);         # possible reph
+
+cn = c.ZWJ?.n?;
+forced_rakar = ZWJ H ZWJ Ra;
+symbol = Symbol.N?;
+matra_group = z{0,3}.M.N?.(H | forced_rakar)?;
+syllable_tail = (SM.SM?.ZWNJ?)? A{0,3}? VD{0,2};
+place_holder = PLACEHOLDER | DOTTEDCIRCLE;
+halant_group = (z?.h.(ZWJ.N?)?);
+final_halant_group = halant_group | h.ZWNJ;
+medial_group = CM?.CM2?;
+halant_or_matra_group = (final_halant_group | (h.ZWJ)? matra_group{0,4}) (Coeng (cn|V))?;
+
+
+consonant_syllable =   Repha? (cn.halant_group){0,4} cn medial_group halant_or_matra_group syllable_tail;
+vowel_syllable =       reph? V.n? (ZWJ | (halant_group.cn){0,4} medial_group halant_or_matra_group syllable_tail);
+standalone_cluster =   (Repha? PLACEHOLDER | reph? DOTTEDCIRCLE).n? (halant_group.cn){0,4} medial_group halant_or_matra_group syllable_tail;
+symbol_cluster =       symbol syllable_tail;
+broken_cluster =       reph? n? (halant_group.cn){0,4} medial_group halant_or_matra_group syllable_tail;
+other =                        any;
+
+main := |*
+       consonant_syllable      => { found_syllable (consonant_syllable); };
+       vowel_syllable          => { found_syllable (vowel_syllable); };
+       standalone_cluster      => { found_syllable (standalone_cluster); };
+       symbol_cluster          => { found_syllable (symbol_cluster); };
+       broken_cluster          => { found_syllable (broken_cluster); };
+       other                   => { found_syllable (non_indic_cluster); };
+*|;
+
+
+}%%
+
+#define found_syllable(syllable_type) \
+  HB_STMT_START { \
+    if (0) fprintf (stderr, "syllable %d..%d %s\n", last, p+1, #syllable_type); \
+    for (unsigned int i = last; i < p+1; i++) \
+      info[i].syllable() = (syllable_serial << 4) | syllable_type; \
+    last = p+1; \
+    syllable_serial++; \
+    if (unlikely (syllable_serial == 16)) syllable_serial = 1; \
+  } HB_STMT_END
+
+static void
+find_syllables (hb_buffer_t *buffer)
+{
+  unsigned int p, pe, eof, ts HB_UNUSED, te HB_UNUSED, act HB_UNUSED;
+  int cs;
+  hb_glyph_info_t *info = buffer->info;
+  %%{
+    write init;
+    getkey info[p].indic_category();
+  }%%
+
+  p = 0;
+  pe = eof = buffer->len;
+
+  unsigned int last = 0;
+  unsigned int syllable_serial = 1;
+  %%{
+    write exec;
+  }%%
+}
+
+#endif /* HB_OT_SHAPE_COMPLEX_INDIC_MACHINE_HH */
diff --git a/src/hb-ot-shape-complex-indic-private.hh b/src/hb-ot-shape-complex-indic-private.hh
new file mode 100644 (file)
index 0000000..d8dfc65
--- /dev/null
@@ -0,0 +1,182 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_SHAPE_COMPLEX_INDIC_PRIVATE_HH
+#define HB_OT_SHAPE_COMPLEX_INDIC_PRIVATE_HH
+
+#include "hb-private.hh"
+
+
+#include "hb-ot-shape-complex-private.hh"
+#include "hb-ot-shape-private.hh" /* XXX Remove */
+
+
+#define INDIC_TABLE_ELEMENT_TYPE uint16_t
+
+/* Cateories used in the OpenType spec:
+ * https://www.microsoft.com/typography/otfntdev/devanot/shaping.aspx
+ */
+/* Note: This enum is duplicated in the -machine.rl source file.
+ * Not sure how to avoid duplication. */
+enum indic_category_t {
+  OT_X = 0,
+  OT_C = 1,
+  OT_V = 2,
+  OT_N = 3,
+  OT_H = 4,
+  OT_ZWNJ = 5,
+  OT_ZWJ = 6,
+  OT_M = 7,
+  OT_SM = 8,
+  OT_VD = 9,
+  OT_A = 10,
+  OT_PLACEHOLDER = 11,
+  OT_DOTTEDCIRCLE = 12,
+  OT_RS = 13, /* Register Shifter, used in Khmer OT spec. */
+  OT_Coeng = 14, /* Khmer-style Virama. */
+  OT_Repha = 15, /* Atomically-encoded logical or visual repha. */
+  OT_Ra = 16,
+  OT_CM = 17,  /* Consonant-Medial. */
+  OT_Symbol = 18, /* Avagraha, etc that take marks (SM,A,VD). */
+  OT_CM2 = 31 /* Consonant-Medial, second slot. */
+};
+
+#define MEDIAL_FLAGS (FLAG (OT_CM) | FLAG (OT_CM2))
+
+/* Note:
+ *
+ * We treat Vowels and placeholders as if they were consonants.  This is safe because Vowels
+ * cannot happen in a consonant syllable.  The plus side however is, we can call the
+ * consonant syllable logic from the vowel syllable function and get it all right! */
+#define CONSONANT_FLAGS (FLAG (OT_C) | FLAG (OT_Ra) | MEDIAL_FLAGS | FLAG (OT_V) | FLAG (OT_PLACEHOLDER) | FLAG (OT_DOTTEDCIRCLE))
+#define JOINER_FLAGS (FLAG (OT_ZWJ) | FLAG (OT_ZWNJ))
+#define HALANT_OR_COENG_FLAGS (FLAG (OT_H) | FLAG (OT_Coeng))
+
+
+/* Visual positions in a syllable from left to right. */
+enum indic_position_t {
+  POS_START,
+
+  POS_RA_TO_BECOME_REPH,
+  POS_PRE_M,
+  POS_PRE_C,
+
+  POS_BASE_C,
+  POS_AFTER_MAIN,
+
+  POS_ABOVE_C,
+
+  POS_BEFORE_SUB,
+  POS_BELOW_C,
+  POS_AFTER_SUB,
+
+  POS_BEFORE_POST,
+  POS_POST_C,
+  POS_AFTER_POST,
+
+  POS_FINAL_C,
+  POS_SMVD,
+
+  POS_END
+};
+
+/* Categories used in IndicSyllabicCategory.txt from UCD. */
+enum indic_syllabic_category_t {
+  INDIC_SYLLABIC_CATEGORY_OTHER                                = OT_X,
+
+  INDIC_SYLLABIC_CATEGORY_AVAGRAHA                     = OT_Symbol,
+  INDIC_SYLLABIC_CATEGORY_BINDU                                = OT_SM,
+  INDIC_SYLLABIC_CATEGORY_BRAHMI_JOINING_NUMBER                = OT_PLACEHOLDER, /* TODO */
+  INDIC_SYLLABIC_CATEGORY_CANTILLATION_MARK            = OT_A,
+  INDIC_SYLLABIC_CATEGORY_CONSONANT                    = OT_C,
+  INDIC_SYLLABIC_CATEGORY_CONSONANT_DEAD               = OT_C,
+  INDIC_SYLLABIC_CATEGORY_CONSONANT_FINAL              = OT_CM,
+  INDIC_SYLLABIC_CATEGORY_CONSONANT_HEAD_LETTER                = OT_C,
+  INDIC_SYLLABIC_CATEGORY_CONSONANT_MEDIAL             = OT_CM,
+  INDIC_SYLLABIC_CATEGORY_CONSONANT_PLACEHOLDER                = OT_PLACEHOLDER,
+  INDIC_SYLLABIC_CATEGORY_CONSONANT_PRECEDING_REPHA    = OT_Repha,
+  INDIC_SYLLABIC_CATEGORY_CONSONANT_SUBJOINED          = OT_CM,
+  INDIC_SYLLABIC_CATEGORY_CONSONANT_SUCCEEDING_REPHA   = OT_N,
+  INDIC_SYLLABIC_CATEGORY_GEMINATION_MARK              = OT_SM,
+  INDIC_SYLLABIC_CATEGORY_INVISIBLE_STACKER            = OT_H, /* TODO */
+  INDIC_SYLLABIC_CATEGORY_JOINER                       = OT_ZWJ,
+  INDIC_SYLLABIC_CATEGORY_MODIFYING_LETTER             = OT_X,
+  INDIC_SYLLABIC_CATEGORY_NON_JOINER                   = OT_ZWNJ,
+  INDIC_SYLLABIC_CATEGORY_NUKTA                                = OT_N,
+  INDIC_SYLLABIC_CATEGORY_NUMBER                       = OT_PLACEHOLDER,
+  INDIC_SYLLABIC_CATEGORY_NUMBER_JOINER                        = OT_PLACEHOLDER, /* TODO */
+  INDIC_SYLLABIC_CATEGORY_PURE_KILLER                  = OT_H, /* TODO */
+  INDIC_SYLLABIC_CATEGORY_REGISTER_SHIFTER             = OT_RS,
+  INDIC_SYLLABIC_CATEGORY_TONE_LETTER                  = OT_X,
+  INDIC_SYLLABIC_CATEGORY_TONE_MARK                    = OT_N,
+  INDIC_SYLLABIC_CATEGORY_VIRAMA                       = OT_H,
+  INDIC_SYLLABIC_CATEGORY_VISARGA                      = OT_SM,
+  INDIC_SYLLABIC_CATEGORY_VOWEL                                = OT_V,
+  INDIC_SYLLABIC_CATEGORY_VOWEL_DEPENDENT              = OT_M,
+  INDIC_SYLLABIC_CATEGORY_VOWEL_INDEPENDENT            = OT_V
+};
+
+/* Categories used in IndicSMatraCategory.txt from UCD */
+enum indic_matra_category_t {
+  INDIC_MATRA_CATEGORY_NOT_APPLICABLE                  = POS_END,
+
+  INDIC_MATRA_CATEGORY_LEFT                            = POS_PRE_C,
+  INDIC_MATRA_CATEGORY_TOP                             = POS_ABOVE_C,
+  INDIC_MATRA_CATEGORY_BOTTOM                          = POS_BELOW_C,
+  INDIC_MATRA_CATEGORY_RIGHT                           = POS_POST_C,
+
+  /* These should resolve to the position of the last part of the split sequence. */
+  INDIC_MATRA_CATEGORY_BOTTOM_AND_RIGHT                        = INDIC_MATRA_CATEGORY_RIGHT,
+  INDIC_MATRA_CATEGORY_LEFT_AND_RIGHT                  = INDIC_MATRA_CATEGORY_RIGHT,
+  INDIC_MATRA_CATEGORY_TOP_AND_BOTTOM                  = INDIC_MATRA_CATEGORY_BOTTOM,
+  INDIC_MATRA_CATEGORY_TOP_AND_BOTTOM_AND_RIGHT                = INDIC_MATRA_CATEGORY_RIGHT,
+  INDIC_MATRA_CATEGORY_TOP_AND_LEFT                    = INDIC_MATRA_CATEGORY_TOP,
+  INDIC_MATRA_CATEGORY_TOP_AND_LEFT_AND_RIGHT          = INDIC_MATRA_CATEGORY_RIGHT,
+  INDIC_MATRA_CATEGORY_TOP_AND_RIGHT                   = INDIC_MATRA_CATEGORY_RIGHT,
+
+  INDIC_MATRA_CATEGORY_OVERSTRUCK                      = POS_AFTER_MAIN,
+  INDIC_MATRA_CATEGORY_VISUAL_ORDER_LEFT               = POS_PRE_M
+};
+
+/* Note: We use ASSERT_STATIC_EXPR_ZERO() instead of ASSERT_STATIC_EXPR() and the comma operation
+ * because gcc fails to optimize the latter and fills the table in at runtime. */
+#define INDIC_COMBINE_CATEGORIES(S,M) \
+  (ASSERT_STATIC_EXPR_ZERO (M == INDIC_MATRA_CATEGORY_NOT_APPLICABLE || \
+                           ( \
+                            S == INDIC_SYLLABIC_CATEGORY_CONSONANT_MEDIAL || \
+                            S == INDIC_SYLLABIC_CATEGORY_GEMINATION_MARK || \
+                            S == INDIC_SYLLABIC_CATEGORY_REGISTER_SHIFTER || \
+                            S == INDIC_SYLLABIC_CATEGORY_CONSONANT_SUCCEEDING_REPHA || \
+                            S == INDIC_SYLLABIC_CATEGORY_VIRAMA || \
+                            S == INDIC_SYLLABIC_CATEGORY_VOWEL_DEPENDENT || \
+                            false)) + \
+   ASSERT_STATIC_EXPR_ZERO (S < 255 && M < 255) + \
+   ((M << 8) | S))
+
+HB_INTERNAL INDIC_TABLE_ELEMENT_TYPE
+hb_indic_get_categories (hb_codepoint_t u);
+
+#endif /* HB_OT_SHAPE_COMPLEX_INDIC_PRIVATE_HH */
diff --git a/src/hb-ot-shape-complex-indic-table.cc b/src/hb-ot-shape-complex-indic-table.cc
new file mode 100644 (file)
index 0000000..f58380e
--- /dev/null
@@ -0,0 +1,956 @@
+/* == Start of generated table == */
+/*
+ * The following table is generated by running:
+ *
+ *   ./gen-indic-table.py IndicSyllabicCategory.txt IndicMatraCategory.txt Blocks.txt
+ *
+ * on files with these headers:
+ *
+ * # IndicSyllabicCategory-7.0.0.txt
+ * # Date: 2014-06-03, 07:00:00 GMT [KW, LI, AG, RP]
+ * # IndicMatraCategory-7.0.0.txt
+ * # Date: 2014-06-03, 07:00:00 GMT [KW, LI, AG, RP]
+ * # Blocks-7.0.0.txt
+ * # Date: 2014-04-03, 23:23:00 GMT [RP, KW]
+ */
+
+#include "hb-ot-shape-complex-indic-private.hh"
+
+
+#define ISC_A  INDIC_SYLLABIC_CATEGORY_AVAGRAHA                /*  13 chars; Avagraha */
+#define ISC_Bi INDIC_SYLLABIC_CATEGORY_BINDU                   /*  59 chars; Bindu */
+#define ISC_BJN        INDIC_SYLLABIC_CATEGORY_BRAHMI_JOINING_NUMBER   /*  20 chars; Brahmi_Joining_Number */
+#define ISC_Ca INDIC_SYLLABIC_CATEGORY_CANTILLATION_MARK       /*  30 chars; Cantillation_Mark */
+#define ISC_C  INDIC_SYLLABIC_CATEGORY_CONSONANT               /* 1744 chars; Consonant */
+#define ISC_CD INDIC_SYLLABIC_CATEGORY_CONSONANT_DEAD          /*   7 chars; Consonant_Dead */
+#define ISC_CF INDIC_SYLLABIC_CATEGORY_CONSONANT_FINAL         /*  61 chars; Consonant_Final */
+#define ISC_CHL        INDIC_SYLLABIC_CATEGORY_CONSONANT_HEAD_LETTER   /*   5 chars; Consonant_Head_Letter */
+#define ISC_CM INDIC_SYLLABIC_CATEGORY_CONSONANT_MEDIAL        /*  19 chars; Consonant_Medial */
+#define ISC_CP INDIC_SYLLABIC_CATEGORY_CONSONANT_PLACEHOLDER   /*  11 chars; Consonant_Placeholder */
+#define ISC_CPR        INDIC_SYLLABIC_CATEGORY_CONSONANT_PRECEDING_REPHA       /*   1 chars; Consonant_Preceding_Repha */
+#define ISC_CS INDIC_SYLLABIC_CATEGORY_CONSONANT_SUBJOINED     /*  61 chars; Consonant_Subjoined */
+#define ISC_CSR        INDIC_SYLLABIC_CATEGORY_CONSONANT_SUCCEEDING_REPHA      /*   4 chars; Consonant_Succeeding_Repha */
+#define ISC_GM INDIC_SYLLABIC_CATEGORY_GEMINATION_MARK         /*   2 chars; Gemination_Mark */
+#define ISC_IS INDIC_SYLLABIC_CATEGORY_INVISIBLE_STACKER       /*   7 chars; Invisible_Stacker */
+#define ISC_ZWJ        INDIC_SYLLABIC_CATEGORY_JOINER                  /*   1 chars; Joiner */
+#define ISC_ML INDIC_SYLLABIC_CATEGORY_MODIFYING_LETTER        /*   1 chars; Modifying_Letter */
+#define ISC_ZWNJ       INDIC_SYLLABIC_CATEGORY_NON_JOINER              /*   1 chars; Non_Joiner */
+#define ISC_N  INDIC_SYLLABIC_CATEGORY_NUKTA                   /*  18 chars; Nukta */
+#define ISC_Nd INDIC_SYLLABIC_CATEGORY_NUMBER                  /* 408 chars; Number */
+#define ISC_NJ INDIC_SYLLABIC_CATEGORY_NUMBER_JOINER           /*   1 chars; Number_Joiner */
+#define ISC_x  INDIC_SYLLABIC_CATEGORY_OTHER                   /*   1 chars; Other */
+#define ISC_PK INDIC_SYLLABIC_CATEGORY_PURE_KILLER             /*  15 chars; Pure_Killer */
+#define ISC_RS INDIC_SYLLABIC_CATEGORY_REGISTER_SHIFTER        /*   3 chars; Register_Shifter */
+#define ISC_TL INDIC_SYLLABIC_CATEGORY_TONE_LETTER             /*   7 chars; Tone_Letter */
+#define ISC_TM INDIC_SYLLABIC_CATEGORY_TONE_MARK               /*  62 chars; Tone_Mark */
+#define ISC_V  INDIC_SYLLABIC_CATEGORY_VIRAMA                  /*  22 chars; Virama */
+#define ISC_Vs INDIC_SYLLABIC_CATEGORY_VISARGA                 /*  29 chars; Visarga */
+#define ISC_Vo INDIC_SYLLABIC_CATEGORY_VOWEL                   /*  30 chars; Vowel */
+#define ISC_M  INDIC_SYLLABIC_CATEGORY_VOWEL_DEPENDENT         /* 553 chars; Vowel_Dependent */
+#define ISC_VI INDIC_SYLLABIC_CATEGORY_VOWEL_INDEPENDENT       /* 395 chars; Vowel_Independent */
+
+#define IMC_B  INDIC_MATRA_CATEGORY_BOTTOM                     /* 142 chars; Bottom */
+#define IMC_BR INDIC_MATRA_CATEGORY_BOTTOM_AND_RIGHT           /*   2 chars; Bottom_And_Right */
+#define IMC_L  INDIC_MATRA_CATEGORY_LEFT                       /*  57 chars; Left */
+#define IMC_LR INDIC_MATRA_CATEGORY_LEFT_AND_RIGHT             /*  21 chars; Left_And_Right */
+#define IMC_x  INDIC_MATRA_CATEGORY_NOT_APPLICABLE             /*   1 chars; Not_Applicable */
+#define IMC_O  INDIC_MATRA_CATEGORY_OVERSTRUCK                 /*   2 chars; Overstruck */
+#define IMC_R  INDIC_MATRA_CATEGORY_RIGHT                      /* 163 chars; Right */
+#define IMC_T  INDIC_MATRA_CATEGORY_TOP                        /* 169 chars; Top */
+#define IMC_TB INDIC_MATRA_CATEGORY_TOP_AND_BOTTOM             /*  10 chars; Top_And_Bottom */
+#define IMC_TBR        INDIC_MATRA_CATEGORY_TOP_AND_BOTTOM_AND_RIGHT   /*   1 chars; Top_And_Bottom_And_Right */
+#define IMC_TL INDIC_MATRA_CATEGORY_TOP_AND_LEFT               /*   6 chars; Top_And_Left */
+#define IMC_TLR        INDIC_MATRA_CATEGORY_TOP_AND_LEFT_AND_RIGHT     /*   4 chars; Top_And_Left_And_Right */
+#define IMC_TR INDIC_MATRA_CATEGORY_TOP_AND_RIGHT              /*  13 chars; Top_And_Right */
+#define IMC_VOL        INDIC_MATRA_CATEGORY_VISUAL_ORDER_LEFT          /*  15 chars; Visual_Order_Left */
+
+#define _(S,M) INDIC_COMBINE_CATEGORIES (ISC_##S, IMC_##M)
+
+
+static const INDIC_TABLE_ELEMENT_TYPE indic_table[] = {
+
+
+#define indic_offset_0x0028u 0
+
+
+  /* Basic Latin */
+
+  /* 0028 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x), _(CP,x),  _(x,x),  _(x,x),
+  /* 0030 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 0038 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+#define indic_offset_0x00d0u 24
+
+
+  /* Latin-1 Supplement */
+
+  /* 00D0 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x), _(CP,x),
+
+#define indic_offset_0x0900u 32
+
+
+  /* Devanagari */
+
+  /* 0900 */ _(Bi,x), _(Bi,x), _(Bi,x), _(Vs,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 0908 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 0910 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0918 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0920 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0928 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0930 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0938 */  _(C,x),  _(C,x),  _(M,T),  _(M,R),  _(N,x),  _(A,x),  _(M,R),  _(M,L),
+  /* 0940 */  _(M,R),  _(M,B),  _(M,B),  _(M,B),  _(M,B),  _(M,T),  _(M,T),  _(M,T),
+  /* 0948 */  _(M,T),  _(M,R),  _(M,R),  _(M,R),  _(M,R),  _(V,B),  _(M,L),  _(M,R),
+  /* 0950 */  _(x,x), _(TM,x), _(TM,x),  _(x,x),  _(x,x),  _(M,T),  _(M,B),  _(M,B),
+  /* 0958 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0960 */ _(VI,x), _(VI,x),  _(M,B),  _(M,B),  _(x,x),  _(x,x), _(Nd,x), _(Nd,x),
+  /* 0968 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 0970 */  _(x,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 0978 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+
+  /* Bengali */
+
+  /* 0980 */  _(x,x), _(Bi,x), _(Bi,x), _(Vs,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 0988 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(x,x),  _(x,x), _(VI,x),
+  /* 0990 */ _(VI,x),  _(x,x),  _(x,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0998 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 09A0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 09A8 */  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 09B0 */  _(C,x),  _(x,x),  _(C,x),  _(x,x),  _(x,x),  _(x,x),  _(C,x),  _(C,x),
+  /* 09B8 */  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(N,x),  _(A,x),  _(M,R),  _(M,L),
+  /* 09C0 */  _(M,R),  _(M,B),  _(M,B),  _(M,B),  _(M,B),  _(x,x),  _(x,x),  _(M,L),
+  /* 09C8 */  _(M,L),  _(x,x),  _(x,x), _(M,LR), _(M,LR),  _(V,B), _(CD,x),  _(x,x),
+  /* 09D0 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(M,R),
+  /* 09D8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(C,x),  _(C,x),  _(x,x),  _(C,x),
+  /* 09E0 */ _(VI,x), _(VI,x),  _(M,B),  _(M,B),  _(x,x),  _(x,x), _(Nd,x), _(Nd,x),
+  /* 09E8 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 09F0 */  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 09F8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Gurmukhi */
+
+  /* 0A00 */  _(x,x), _(Bi,x), _(Bi,x), _(Vs,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 0A08 */ _(VI,x), _(VI,x), _(VI,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x), _(VI,x),
+  /* 0A10 */ _(VI,x),  _(x,x),  _(x,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0A18 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0A20 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0A28 */  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0A30 */  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(x,x),
+  /* 0A38 */  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(N,x),  _(x,x),  _(M,R),  _(M,L),
+  /* 0A40 */  _(M,R),  _(M,B),  _(M,B),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(M,T),
+  /* 0A48 */  _(M,T),  _(x,x),  _(x,x),  _(M,T),  _(M,T),  _(V,B),  _(x,x),  _(x,x),
+  /* 0A50 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 0A58 */  _(x,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(x,x),  _(C,x),  _(x,x),
+  /* 0A60 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x), _(Nd,x), _(Nd,x),
+  /* 0A68 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 0A70 */ _(Bi,x), _(GM,T), _(CP,x), _(CP,x),  _(x,x), _(CM,x),  _(x,x),  _(x,x),
+  /* 0A78 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Gujarati */
+
+  /* 0A80 */  _(x,x), _(Bi,x), _(Bi,x), _(Vs,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 0A88 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(x,x), _(VI,x),
+  /* 0A90 */ _(VI,x), _(VI,x),  _(x,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0A98 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0AA0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0AA8 */  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0AB0 */  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0AB8 */  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(N,x),  _(A,x),  _(M,R),  _(M,L),
+  /* 0AC0 */  _(M,R),  _(M,B),  _(M,B),  _(M,B),  _(M,B),  _(M,T),  _(x,x),  _(M,T),
+  /* 0AC8 */  _(M,T), _(M,TR),  _(x,x),  _(M,R),  _(M,R),  _(V,B),  _(x,x),  _(x,x),
+  /* 0AD0 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 0AD8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 0AE0 */ _(VI,x), _(VI,x),  _(M,B),  _(M,B),  _(x,x),  _(x,x), _(Nd,x), _(Nd,x),
+  /* 0AE8 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 0AF0 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 0AF8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Oriya */
+
+  /* 0B00 */  _(x,x), _(Bi,x), _(Bi,x), _(Vs,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 0B08 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(x,x),  _(x,x), _(VI,x),
+  /* 0B10 */ _(VI,x),  _(x,x),  _(x,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0B18 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0B20 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0B28 */  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0B30 */  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0B38 */  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(N,x),  _(A,x),  _(M,R),  _(M,T),
+  /* 0B40 */  _(M,R),  _(M,B),  _(M,B),  _(M,B),  _(M,B),  _(x,x),  _(x,x),  _(M,L),
+  /* 0B48 */ _(M,TL),  _(x,x),  _(x,x), _(M,LR),_(M,TLR),  _(V,B),  _(x,x),  _(x,x),
+  /* 0B50 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(M,T), _(M,TR),
+  /* 0B58 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(C,x),  _(C,x),  _(x,x),  _(C,x),
+  /* 0B60 */ _(VI,x), _(VI,x),  _(M,B),  _(M,B),  _(x,x),  _(x,x), _(Nd,x), _(Nd,x),
+  /* 0B68 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 0B70 */  _(x,x),  _(C,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 0B78 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Tamil */
+
+  /* 0B80 */  _(x,x),  _(x,x), _(Bi,x), _(ML,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 0B88 */ _(VI,x), _(VI,x), _(VI,x),  _(x,x),  _(x,x),  _(x,x), _(VI,x), _(VI,x),
+  /* 0B90 */ _(VI,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(x,x),  _(x,x),
+  /* 0B98 */  _(x,x),  _(C,x),  _(C,x),  _(x,x),  _(C,x),  _(x,x),  _(C,x),  _(C,x),
+  /* 0BA0 */  _(x,x),  _(x,x),  _(x,x),  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 0BA8 */  _(C,x),  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(x,x),  _(C,x),  _(C,x),
+  /* 0BB0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0BB8 */  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(M,R),  _(M,R),
+  /* 0BC0 */  _(M,T),  _(M,B),  _(M,B),  _(x,x),  _(x,x),  _(x,x),  _(M,L),  _(M,L),
+  /* 0BC8 */  _(M,L),  _(x,x), _(M,LR), _(M,LR), _(M,LR),  _(V,T),  _(x,x),  _(x,x),
+  /* 0BD0 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(M,R),
+  /* 0BD8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 0BE0 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x), _(Nd,x), _(Nd,x),
+  /* 0BE8 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 0BF0 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 0BF8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Telugu */
+
+  /* 0C00 */ _(Bi,x), _(Bi,x), _(Bi,x), _(Vs,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 0C08 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(x,x), _(VI,x), _(VI,x),
+  /* 0C10 */ _(VI,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0C18 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0C20 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0C28 */  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0C30 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0C38 */  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(x,x),  _(A,x),  _(M,T),  _(M,T),
+  /* 0C40 */  _(M,T),  _(M,R),  _(M,R),  _(M,R),  _(M,R),  _(x,x),  _(M,T),  _(M,T),
+  /* 0C48 */ _(M,TB),  _(x,x),  _(M,T),  _(M,T),  _(M,T),  _(V,T),  _(x,x),  _(x,x),
+  /* 0C50 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(M,T),  _(M,B),  _(x,x),
+  /* 0C58 */  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 0C60 */ _(VI,x), _(VI,x),  _(M,B),  _(M,B),  _(x,x),  _(x,x), _(Nd,x), _(Nd,x),
+  /* 0C68 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 0C70 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 0C78 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Kannada */
+
+  /* 0C80 */  _(x,x), _(Bi,x), _(Bi,x), _(Vs,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 0C88 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(x,x), _(VI,x), _(VI,x),
+  /* 0C90 */ _(VI,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0C98 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0CA0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0CA8 */  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0CB0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0CB8 */  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(N,x),  _(A,x),  _(M,R),  _(M,T),
+  /* 0CC0 */ _(M,TR),  _(M,R),  _(M,R),  _(M,R),  _(M,R),  _(x,x),  _(M,T), _(M,TR),
+  /* 0CC8 */ _(M,TR),  _(x,x), _(M,TR), _(M,TR),  _(M,T),  _(V,T),  _(x,x),  _(x,x),
+  /* 0CD0 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(M,R),  _(M,R),  _(x,x),
+  /* 0CD8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(C,x),  _(x,x),
+  /* 0CE0 */ _(VI,x), _(VI,x),  _(M,B),  _(M,B),  _(x,x),  _(x,x), _(Nd,x), _(Nd,x),
+  /* 0CE8 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 0CF0 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 0CF8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Malayalam */
+
+  /* 0D00 */  _(x,x), _(Bi,x), _(Bi,x), _(Vs,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 0D08 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(x,x), _(VI,x), _(VI,x),
+  /* 0D10 */ _(VI,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0D18 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0D20 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0D28 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0D30 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0D38 */  _(C,x),  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(A,x),  _(M,R),  _(M,R),
+  /* 0D40 */  _(M,R),  _(M,R),  _(M,R),  _(M,B),  _(M,B),  _(x,x),  _(M,L),  _(M,L),
+  /* 0D48 */  _(M,L),  _(x,x), _(M,LR), _(M,LR), _(M,LR),  _(V,T),_(CPR,x),  _(x,x),
+  /* 0D50 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(M,R),
+  /* 0D58 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 0D60 */ _(VI,x), _(VI,x),  _(M,B),  _(M,B),  _(x,x),  _(x,x), _(Nd,x), _(Nd,x),
+  /* 0D68 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 0D70 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 0D78 */  _(x,x),  _(x,x), _(CD,x), _(CD,x), _(CD,x), _(CD,x), _(CD,x), _(CD,x),
+
+  /* Sinhala */
+
+  /* 0D80 */  _(x,x),  _(x,x), _(Bi,x), _(Vs,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 0D88 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 0D90 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(x,x),
+  /* 0D98 */  _(x,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0DA0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0DA8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0DB0 */  _(C,x),  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 0DB8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(x,x),  _(C,x),  _(x,x),  _(x,x),
+  /* 0DC0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(x,x),
+  /* 0DC8 */  _(x,x),  _(x,x),  _(V,T),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(M,R),
+  /* 0DD0 */  _(M,R),  _(M,R),  _(M,T),  _(M,T),  _(M,B),  _(x,x),  _(M,B),  _(x,x),
+  /* 0DD8 */  _(M,R),  _(M,L), _(M,TL),  _(M,L), _(M,LR),_(M,TLR), _(M,LR),  _(M,R),
+  /* 0DE0 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x), _(Nd,x), _(Nd,x),
+  /* 0DE8 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 0DF0 */  _(x,x),  _(x,x),  _(M,R),  _(M,R),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+#define indic_offset_0x1000u 1304
+
+
+  /* Myanmar */
+
+  /* 1000 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1008 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1010 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1018 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1020 */  _(C,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 1028 */ _(VI,x), _(VI,x), _(VI,x),  _(M,R),  _(M,R),  _(M,T),  _(M,T),  _(M,B),
+  /* 1030 */  _(M,B),  _(M,L),  _(M,T),  _(M,T),  _(M,T),  _(M,T), _(Bi,x), _(TM,x),
+  /* 1038 */ _(Vs,x), _(IS,x), _(PK,T), _(CM,x), _(CM,x), _(CM,x), _(CM,x),  _(C,x),
+  /* 1040 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 1048 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x), _(CP,x),  _(x,x),
+  /* 1050 */  _(C,x),  _(C,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(M,R),  _(M,R),
+  /* 1058 */  _(M,B),  _(M,B),  _(C,x),  _(C,x),  _(C,x),  _(C,x), _(CM,x), _(CM,x),
+  /* 1060 */ _(CM,x),  _(C,x),  _(M,R), _(TM,x), _(TM,x),  _(C,x),  _(C,x),  _(M,R),
+  /* 1068 */  _(M,R), _(TM,x), _(TM,x), _(TM,x), _(TM,x), _(TM,x),  _(C,x),  _(C,x),
+  /* 1070 */  _(C,x),  _(M,T),  _(M,T),  _(M,T),  _(M,T),  _(C,x),  _(C,x),  _(C,x),
+  /* 1078 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1080 */  _(C,x),  _(C,x), _(CM,x),  _(M,R),  _(M,L),  _(M,T),  _(M,T), _(TM,x),
+  /* 1088 */ _(TM,x), _(TM,x), _(TM,x), _(TM,x), _(TM,x), _(TM,x),  _(C,x), _(TM,x),
+  /* 1090 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 1098 */ _(Nd,x), _(Nd,x), _(TM,x), _(TM,x),  _(M,R),  _(M,T),  _(x,x),  _(x,x),
+
+#define indic_offset_0x1700u 1464
+
+
+  /* Tagalog */
+
+  /* 1700 */ _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1708 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(x,x),  _(C,x),  _(C,x),
+  /* 1710 */  _(C,x),  _(C,x),  _(M,T),  _(M,B), _(PK,B),  _(x,x),  _(x,x),  _(x,x),
+  /* 1718 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Hanunoo */
+
+  /* 1720 */ _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1728 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1730 */  _(C,x),  _(C,x),  _(M,T),  _(M,B), _(PK,B),  _(x,x),  _(x,x),  _(x,x),
+  /* 1738 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Buhid */
+
+  /* 1740 */ _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1748 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1750 */  _(C,x),  _(C,x),  _(M,T),  _(M,B),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1758 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Tagbanwa */
+
+  /* 1760 */ _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1768 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(x,x),  _(C,x),  _(C,x),
+  /* 1770 */  _(C,x),  _(x,x),  _(M,T),  _(M,B),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1778 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Khmer */
+
+  /* 1780 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1788 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1790 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1798 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 17A0 */  _(C,x),  _(C,x),  _(C,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 17A8 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 17B0 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(x,x),  _(x,x),  _(M,R),  _(M,T),
+  /* 17B8 */  _(M,T),  _(M,T),  _(M,T),  _(M,B),  _(M,B),  _(M,B), _(M,TL),_(M,TLR),
+  /* 17C0 */ _(M,LR),  _(M,L),  _(M,L),  _(M,L), _(M,LR), _(M,LR), _(Bi,x), _(Vs,x),
+  /* 17C8 */  _(M,R), _(RS,T), _(RS,T), _(RS,T),_(CSR,T),  _(M,T),  _(M,T),  _(M,T),
+  /* 17D0 */  _(M,T), _(PK,T), _(IS,x),  _(M,T),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 17D8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(A,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 17E0 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 17E8 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+#define indic_offset_0x1900u 1704
+
+
+  /* Limbu */
+
+  /* 1900 */ _(CP,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1908 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1910 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1918 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(x,x),
+  /* 1920 */  _(M,T),  _(M,T),  _(M,B),  _(M,R),  _(M,R), _(M,TR), _(M,TR),  _(M,T),
+  /* 1928 */  _(M,T), _(CS,x), _(CS,x), _(CS,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1930 */ _(CF,x), _(CF,x), _(Bi,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x),
+  /* 1938 */ _(CF,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1940 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x), _(Nd,x), _(Nd,x),
+  /* 1948 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+
+  /* Tai Le */
+
+  /* 1950 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1958 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1960 */  _(C,x),  _(C,x),  _(C,x), _(Vo,x), _(Vo,x), _(Vo,x), _(Vo,x), _(Vo,x),
+  /* 1968 */ _(Vo,x), _(Vo,x), _(Vo,x), _(Vo,x), _(Vo,x), _(Vo,x),  _(x,x),  _(x,x),
+  /* 1970 */ _(TL,x), _(TL,x), _(TL,x), _(TL,x), _(TL,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1978 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* New Tai Lue */
+
+  /* 1980 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1988 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1990 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1998 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 19A0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 19A8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 19B0 */  _(M,R),  _(M,R),  _(M,R),  _(M,R),  _(M,R),  _(M,L),  _(M,L),  _(M,L),
+  /* 19B8 */  _(M,R),  _(M,R),  _(M,L),  _(M,R),  _(M,R),  _(M,R),  _(M,R),  _(M,R),
+  /* 19C0 */  _(M,R), _(CF,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x),
+  /* 19C8 */ _(TM,x), _(TM,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 19D0 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 19D8 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 19E0 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 19E8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 19F0 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 19F8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Buginese */
+
+  /* 1A00 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1A08 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1A10 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(M,T),
+  /* 1A18 */  _(M,B),  _(M,L),  _(M,R),  _(M,T),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Tai Tham */
+
+  /* 1A20 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1A28 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1A30 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1A38 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1A40 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1A48 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 1A50 */ _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x), _(CM,L), _(CM,x), _(CF,x),
+  /* 1A58 */ _(CF,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x),  _(x,x),
+  /* 1A60 */ _(IS,x),  _(M,R),  _(M,T),  _(M,R),  _(M,R),  _(M,T),  _(M,T),  _(M,T),
+  /* 1A68 */  _(M,T),  _(M,B),  _(M,B),  _(M,T),  _(M,B),  _(M,R),  _(M,L),  _(M,L),
+  /* 1A70 */  _(M,L),  _(M,L),  _(M,L),  _(M,T),  _(M,T), _(TM,x), _(TM,x), _(TM,x),
+  /* 1A78 */ _(TM,x), _(TM,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1A80 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 1A88 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1A90 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 1A98 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+#define indic_offset_0x1b00u 2120
+
+
+  /* Balinese */
+
+  /* 1B00 */ _(Bi,x), _(Bi,x), _(Bi,x),_(CSR,x), _(Vs,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 1B08 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 1B10 */ _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1B18 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1B20 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1B28 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1B30 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(N,x),  _(M,R),  _(M,T),  _(M,T),
+  /* 1B38 */  _(M,B),  _(M,B),  _(M,B), _(M,BR), _(M,TB),_(M,TBR),  _(M,L),  _(M,L),
+  /* 1B40 */ _(M,LR), _(M,LR),  _(M,T), _(M,TR),  _(V,R),  _(C,x),  _(C,x),  _(C,x),
+  /* 1B48 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1B50 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 1B58 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1B60 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1B68 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1B70 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1B78 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Sundanese */
+
+  /* 1B80 */ _(Bi,x),_(CSR,x), _(Vs,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 1B88 */ _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1B90 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1B98 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1BA0 */  _(C,x), _(CS,x), _(CS,x), _(CS,x),  _(M,T),  _(M,B),  _(M,L),  _(M,R),
+  /* 1BA8 */  _(M,T),  _(M,T), _(PK,R), _(IS,x), _(CS,x), _(CS,x),  _(C,x),  _(C,x),
+  /* 1BB0 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 1BB8 */ _(Nd,x), _(Nd,x),  _(A,x),  _(C,x),  _(C,x),  _(C,x), _(CF,x), _(CF,x),
+
+  /* Batak */
+
+  /* 1BC0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1BC8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1BD0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1BD8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1BE0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x), _(VI,x), _(VI,x),  _(N,x),  _(M,R),
+  /* 1BE8 */  _(M,T),  _(M,T),  _(M,R),  _(M,R),  _(M,R),  _(M,T),  _(M,R),  _(M,T),
+  /* 1BF0 */ _(CF,x), _(CF,x), _(PK,R), _(PK,R),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1BF8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Lepcha */
+
+  /* 1C00 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1C08 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1C10 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1C18 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 1C20 */  _(C,x),  _(C,x),  _(C,x),  _(C,x), _(CS,x), _(CS,x),  _(M,R),  _(M,L),
+  /* 1C28 */  _(M,L), _(M,TL),  _(M,R),  _(M,R),  _(M,B), _(CF,x), _(CF,x), _(CF,x),
+  /* 1C30 */ _(CF,x), _(CF,x), _(CF,x), _(CF,x), _(Bi,L), _(Bi,L),  _(x,x),  _(N,x),
+  /* 1C38 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1C40 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 1C48 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),
+
+#define indic_offset_0x1cd0u 2456
+
+
+  /* Vedic Extensions */
+
+  /* 1CD0 */ _(TM,x), _(TM,x), _(TM,x),  _(x,x), _(TM,x), _(TM,x), _(TM,x), _(TM,x),
+  /* 1CD8 */ _(TM,x), _(TM,x), _(TM,x), _(TM,x), _(TM,x), _(TM,x), _(TM,x), _(TM,x),
+  /* 1CE0 */ _(TM,x), _(TM,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1CE8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 1CF0 */  _(x,x),  _(x,x), _(Vs,x), _(Vs,x), _(TM,x),  _(x,x),  _(x,x),  _(x,x),
+
+#define indic_offset_0x2008u 2496
+
+
+  /* General Punctuation */
+
+  /* 2008 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),_(ZWNJ,x),_(ZWJ,x),  _(x,x),  _(x,x),
+  /* 2010 */  _(x,x),  _(x,x), _(CP,x), _(CP,x), _(CP,x),  _(x,x),  _(x,x),  _(x,x),
+
+#define indic_offset_0xa800u 2512
+
+
+  /* Syloti Nagri */
+
+  /* A800 */ _(VI,x), _(VI,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x), _(PK,T),  _(C,x),
+  /* A808 */  _(C,x),  _(C,x),  _(C,x), _(Bi,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A810 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A818 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A820 */  _(C,x),  _(C,x),  _(C,x),  _(M,R),  _(M,R),  _(M,B),  _(M,T),  _(M,R),
+  /* A828 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* A830 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* A838 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Phags-pa */
+
+  /* A840 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A848 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A850 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A858 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x), _(Vo,x), _(Vo,x),
+  /* A860 */ _(Vo,x), _(Vo,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x), _(Vo,x), _(CS,x),
+  /* A868 */ _(CS,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A870 */  _(C,x), _(CS,x),  _(C,x), _(Bi,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* A878 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Saurashtra */
+
+  /* A880 */ _(Bi,x), _(Vs,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* A888 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* A890 */ _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A898 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A8A0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A8A8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A8B0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x), _(CF,x),  _(M,R),  _(M,R),  _(M,R),
+  /* A8B8 */  _(M,R),  _(M,R),  _(M,R),  _(M,R),  _(M,R),  _(M,R),  _(M,R),  _(M,R),
+  /* A8C0 */  _(M,R),  _(M,R),  _(M,R),  _(M,R),  _(V,B),  _(x,x),  _(x,x),  _(x,x),
+  /* A8C8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* A8D0 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* A8D8 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Devanagari Extended */
+
+  /* A8E0 */ _(Ca,x), _(Ca,x), _(Ca,x), _(Ca,x), _(Ca,x), _(Ca,x), _(Ca,x), _(Ca,x),
+  /* A8E8 */ _(Ca,x), _(Ca,x), _(Ca,x), _(Ca,x), _(Ca,x), _(Ca,x), _(Ca,x), _(Ca,x),
+  /* A8F0 */ _(Ca,x), _(Ca,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* A8F8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Kayah Li */
+
+  /* A900 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* A908 */ _(Nd,x), _(Nd,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A910 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A918 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A920 */  _(C,x),  _(C,x), _(Vo,x), _(Vo,x), _(Vo,x), _(Vo,x), _(Vo,x), _(Vo,x),
+  /* A928 */ _(Vo,x), _(Vo,x), _(Vo,x), _(TM,x), _(TM,x), _(TM,x),  _(x,x),  _(x,x),
+
+  /* Rejang */
+
+  /* A930 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A938 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A940 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(M,B),
+  /* A948 */  _(M,B),  _(M,B),  _(M,T),  _(M,B),  _(M,B),  _(M,B),  _(M,B), _(CF,x),
+  /* A950 */ _(CF,x), _(CF,x), _(CF,x), _(PK,R),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* A958 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* A960 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* A968 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* A970 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* A978 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Javanese */
+
+  /* A980 */ _(Bi,x), _(Bi,x),_(CSR,x), _(Vs,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* A988 */ _(VI,x),  _(C,x),  _(C,x),  _(C,x), _(VI,x), _(VI,x), _(VI,x),  _(C,x),
+  /* A990 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A998 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A9A0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A9A8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A9B0 */  _(C,x),  _(C,x),  _(C,x),  _(N,x),  _(M,R),  _(M,R),  _(M,T),  _(M,T),
+  /* A9B8 */  _(M,B),  _(M,B),  _(M,L),  _(M,L),  _(M,T), _(CS,x), _(CM,x), _(CM,x),
+  /* A9C0 */ _(V,BR),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* A9C8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* A9D0 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* A9D8 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Myanmar Extended-B */
+
+  /* A9E0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(C,x),
+  /* A9E8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* A9F0 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* A9F8 */ _(Nd,x), _(Nd,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(x,x),
+
+  /* Cham */
+
+  /* AA00 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),
+  /* AA08 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* AA10 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* AA18 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* AA20 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* AA28 */  _(C,x),  _(M,T),  _(M,T),  _(M,T),  _(M,T),  _(M,B),  _(M,T),  _(M,L),
+  /* AA30 */  _(M,L),  _(M,T),  _(M,B), _(CM,x), _(CM,L), _(CM,x), _(CM,x),  _(x,x),
+  /* AA38 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* AA40 */ _(CF,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x),
+  /* AA48 */ _(CF,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x),  _(x,x),  _(x,x),
+  /* AA50 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* AA58 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Myanmar Extended-A */
+
+  /* AA60 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* AA68 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* AA70 */  _(x,x),  _(C,x),  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* AA78 */  _(x,x),  _(x,x),  _(C,x), _(TM,x), _(TM,x), _(TM,x),  _(C,x),  _(C,x),
+
+  /* Tai Viet */
+
+  /* AA80 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* AA88 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* AA90 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* AA98 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* AAA0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* AAA8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* AAB0 */  _(M,T),  _(M,R),  _(M,T),  _(M,T),  _(M,B),_(M,VOL),_(M,VOL),  _(M,T),
+  /* AAB8 */  _(M,T),_(M,VOL),  _(M,R),_(M,VOL),_(M,VOL),  _(M,R),  _(M,T), _(TM,x),
+  /* AAC0 */ _(TL,x), _(TM,x), _(TL,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* AAC8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* AAD0 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* AAD8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Meetei Mayek Extensions */
+
+  /* AAE0 */ _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* AAE8 */  _(C,x),  _(C,x),  _(C,x),  _(M,L),  _(M,B),  _(M,T),  _(M,L),  _(M,R),
+  /* AAF0 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x), _(Vs,x), _(IS,x),  _(x,x),
+
+#define indic_offset_0xabc0u 3272
+
+
+  /* Meetei Mayek */
+
+  /* ABC0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* ABC8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x), _(VI,x), _(VI,x),
+  /* ABD0 */  _(C,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* ABD8 */  _(C,x),  _(C,x),  _(C,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x), _(CF,x),
+  /* ABE0 */ _(CF,x), _(CF,x), _(CF,x),  _(M,R),  _(M,R),  _(M,T),  _(M,R),  _(M,R),
+  /* ABE8 */  _(M,B),  _(M,R),  _(M,R),  _(x,x), _(TM,x), _(PK,B),  _(x,x),  _(x,x),
+  /* ABF0 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* ABF8 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+#define indic_offset_0x10a00u 3336
+
+
+  /* Kharoshthi */
+
+  /* 10A00 */  _(C,x),  _(M,O),  _(M,B),  _(M,B),  _(x,x),  _(M,T),  _(M,O),  _(x,x),
+  /* 10A08 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(M,B),  _(x,x), _(Bi,x), _(Vs,x),
+  /* 10A10 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 10A18 */  _(x,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 10A20 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 10A28 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 10A30 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 10A38 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x), _(IS,x),
+  /* 10A40 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+
+#define indic_offset_0x11000u 3408
+
+
+  /* Brahmi */
+
+  /* 11000 */ _(Bi,x), _(Bi,x), _(Vs,x),  _(x,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 11008 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 11010 */ _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11018 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11020 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11028 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11030 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11038 */  _(M,T),  _(M,T),  _(M,T),  _(M,T),  _(M,B),  _(M,B),  _(M,B),  _(M,B),
+  /* 11040 */  _(M,B),  _(M,B),  _(M,T),  _(M,T),  _(M,T),  _(M,T),  _(V,T),  _(x,x),
+  /* 11048 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 11050 */  _(x,x),  _(x,x),_(BJN,x),_(BJN,x),_(BJN,x),_(BJN,x),_(BJN,x),_(BJN,x),
+  /* 11058 */_(BJN,x),_(BJN,x),_(BJN,x),_(BJN,x),_(BJN,x),_(BJN,x),_(BJN,x),_(BJN,x),
+  /* 11060 */_(BJN,x),_(BJN,x),_(BJN,x),_(BJN,x),_(BJN,x),_(BJN,x), _(Nd,x), _(Nd,x),
+  /* 11068 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 11070 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 11078 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x), _(NJ,x),
+
+  /* Kaithi */
+
+  /* 11080 */ _(Bi,x), _(Bi,x), _(Vs,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 11088 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11090 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11098 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 110A0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 110A8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 110B0 */  _(M,R),  _(M,L),  _(M,R),  _(M,B),  _(M,B),  _(M,T),  _(M,T),  _(M,R),
+  /* 110B8 */  _(M,R),  _(V,B),  _(N,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+#define indic_offset_0x11100u 3600
+
+
+  /* Chakma */
+
+  /* 11100 */ _(Bi,x), _(Bi,x), _(Vs,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(C,x),
+  /* 11108 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11110 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11118 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11120 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(M,T),
+  /* 11128 */  _(M,T),  _(M,T),  _(M,B),  _(M,B),  _(M,L),  _(M,T), _(M,TB), _(M,TB),
+  /* 11130 */  _(M,T),  _(M,B),  _(M,B), _(IS,x), _(PK,T),  _(x,x), _(Nd,x), _(Nd,x),
+  /* 11138 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 11140 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 11148 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Mahajani */
+
+  /* 11150 */ _(Vo,x), _(Vo,x), _(Vo,x), _(Vo,x), _(Vo,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11158 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11160 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11168 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11170 */  _(C,x),  _(C,x),  _(C,x),  _(N,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 11178 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Sharada */
+
+  /* 11180 */ _(Bi,x), _(Bi,x), _(Vs,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 11188 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 11190 */ _(VI,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11198 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 111A0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 111A8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 111B0 */  _(C,x),  _(C,x),  _(C,x),  _(M,R),  _(M,L),  _(M,R),  _(M,B),  _(M,B),
+  /* 111B8 */  _(M,B),  _(M,B),  _(M,B),  _(M,B),  _(M,T),  _(M,T),  _(M,T), _(M,TR),
+  /* 111C0 */  _(V,R),  _(A,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 111C8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 111D0 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 111D8 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Sinhala Archaic Numbers */
+
+  /* 111E0 */  _(x,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 111E8 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 111F0 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 111F8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Khojki */
+
+  /* 11200 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 11208 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11210 */  _(C,x),  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11218 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11220 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11228 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(M,R),  _(M,R),  _(M,R),  _(M,B),
+  /* 11230 */  _(M,T),  _(M,T), _(M,TR), _(M,TR), _(Bi,x),  _(V,R),  _(N,x), _(GM,T),
+
+#define indic_offset_0x112b0u 3912
+
+
+  /* Khudawadi */
+
+  /* 112B0 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 112B8 */ _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 112C0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 112C8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 112D0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 112D8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x), _(Bi,x),
+  /* 112E0 */  _(M,R),  _(M,L),  _(M,R),  _(M,B),  _(M,B),  _(M,T),  _(M,T),  _(M,T),
+  /* 112E8 */  _(M,T),  _(N,x), _(PK,B),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 112F0 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 112F8 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Grantha */
+
+  /* 11300 */  _(x,x), _(Bi,x), _(Bi,x), _(Vs,x),  _(x,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 11308 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(x,x),  _(x,x), _(VI,x),
+  /* 11310 */ _(VI,x),  _(x,x),  _(x,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11318 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11320 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11328 */  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11330 */  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(x,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11338 */  _(C,x),  _(C,x),  _(x,x),  _(x,x),  _(N,x),  _(A,x),  _(M,R),  _(M,R),
+  /* 11340 */  _(M,T),  _(M,R),  _(M,R),  _(M,R),  _(M,R),  _(x,x),  _(x,x),  _(M,L),
+  /* 11348 */  _(M,L),  _(x,x),  _(x,x), _(M,LR), _(M,LR),  _(V,R),  _(x,x),  _(x,x),
+  /* 11350 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(M,R),
+  /* 11358 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 11360 */ _(VI,x), _(VI,x),  _(M,R),  _(M,R),  _(x,x),  _(x,x), _(Ca,x), _(Ca,x),
+  /* 11368 */ _(Ca,x), _(Ca,x), _(Ca,x), _(Ca,x), _(Ca,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 11370 */ _(Ca,x), _(Ca,x), _(Ca,x), _(Ca,x), _(Ca,x),  _(x,x),  _(x,x),  _(x,x),
+
+#define indic_offset_0x11480u 4112
+
+
+  /* Tirhuta */
+
+  /* 11480 */  _(x,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 11488 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(C,x),
+  /* 11490 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11498 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 114A0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 114A8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 114B0 */  _(M,R),  _(M,L),  _(M,R),  _(M,B),  _(M,B),  _(M,B),  _(M,B),  _(M,B),
+  /* 114B8 */  _(M,B),  _(M,L),  _(M,T), _(M,TL), _(M,LR),  _(M,R), _(M,LR), _(Bi,x),
+  /* 114C0 */ _(Bi,x), _(Vs,x),  _(V,B),  _(N,x),  _(A,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 114C8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 114D0 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 114D8 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+#define indic_offset_0x11580u 4208
+
+
+  /* Siddham */
+
+  /* 11580 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 11588 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),
+  /* 11590 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11598 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 115A0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 115A8 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(M,R),
+  /* 115B0 */  _(M,L),  _(M,R),  _(M,B),  _(M,B),  _(M,B),  _(M,B),  _(x,x),  _(x,x),
+  /* 115B8 */  _(M,L), _(M,TL), _(M,LR),_(M,TLR), _(Bi,x), _(Bi,x), _(Vs,x),  _(V,B),
+  /* 115C0 */  _(N,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+#define indic_offset_0x11600u 4280
+
+
+  /* Modi */
+
+  /* 11600 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 11608 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),  _(C,x),  _(C,x),
+  /* 11610 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11618 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11620 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11628 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11630 */  _(M,R),  _(M,R),  _(M,R),  _(M,B),  _(M,B),  _(M,B),  _(M,B),  _(M,B),
+  /* 11638 */  _(M,B),  _(M,T),  _(M,T),  _(M,R),  _(M,R), _(Bi,x), _(Vs,x),  _(V,B),
+  /* 11640 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 11648 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 11650 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 11658 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 11660 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 11668 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 11670 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 11678 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+  /* Takri */
+
+  /* 11680 */ _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x), _(VI,x),
+  /* 11688 */ _(VI,x), _(VI,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11690 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 11698 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 116A0 */  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),  _(C,x),
+  /* 116A8 */  _(C,x),  _(C,x),  _(C,x), _(Bi,x), _(Vs,x),  _(M,T),  _(M,L),  _(M,R),
+  /* 116B0 */  _(M,B),  _(M,B),  _(M,T),  _(M,T),  _(M,T),  _(M,T),  _(V,T),  _(N,x),
+  /* 116B8 */  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+  /* 116C0 */ _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x), _(Nd,x),
+  /* 116C8 */ _(Nd,x), _(Nd,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),  _(x,x),
+
+}; /* Table items: 4488; occupancy: 73% */
+
+INDIC_TABLE_ELEMENT_TYPE
+hb_indic_get_categories (hb_codepoint_t u)
+{
+  switch (u >> 12)
+  {
+    case 0x0u:
+      if (hb_in_range (u, 0x0028u, 0x0040u)) return indic_table[u - 0x0028u + indic_offset_0x0028u];
+      if (hb_in_range (u, 0x00D0u, 0x00D8u)) return indic_table[u - 0x00D0u + indic_offset_0x00d0u];
+      if (hb_in_range (u, 0x0900u, 0x0DF8u)) return indic_table[u - 0x0900u + indic_offset_0x0900u];
+      if (unlikely (u == 0x00A0u)) return _(CP,x);
+      break;
+
+    case 0x1u:
+      if (hb_in_range (u, 0x1000u, 0x10A0u)) return indic_table[u - 0x1000u + indic_offset_0x1000u];
+      if (hb_in_range (u, 0x1700u, 0x17F0u)) return indic_table[u - 0x1700u + indic_offset_0x1700u];
+      if (hb_in_range (u, 0x1900u, 0x1AA0u)) return indic_table[u - 0x1900u + indic_offset_0x1900u];
+      if (hb_in_range (u, 0x1B00u, 0x1C50u)) return indic_table[u - 0x1B00u + indic_offset_0x1b00u];
+      if (hb_in_range (u, 0x1CD0u, 0x1CF8u)) return indic_table[u - 0x1CD0u + indic_offset_0x1cd0u];
+      break;
+
+    case 0x2u:
+      if (hb_in_range (u, 0x2008u, 0x2018u)) return indic_table[u - 0x2008u + indic_offset_0x2008u];
+      if (unlikely (u == 0x25CCu)) return _(CP,x);
+      break;
+
+    case 0xAu:
+      if (hb_in_range (u, 0xA800u, 0xAAF8u)) return indic_table[u - 0xA800u + indic_offset_0xa800u];
+      if (hb_in_range (u, 0xABC0u, 0xAC00u)) return indic_table[u - 0xABC0u + indic_offset_0xabc0u];
+      break;
+
+    case 0x10u:
+      if (hb_in_range (u, 0x10A00u, 0x10A48u)) return indic_table[u - 0x10A00u + indic_offset_0x10a00u];
+      break;
+
+    case 0x11u:
+      if (hb_in_range (u, 0x11000u, 0x110C0u)) return indic_table[u - 0x11000u + indic_offset_0x11000u];
+      if (hb_in_range (u, 0x11100u, 0x11238u)) return indic_table[u - 0x11100u + indic_offset_0x11100u];
+      if (hb_in_range (u, 0x112B0u, 0x11378u)) return indic_table[u - 0x112B0u + indic_offset_0x112b0u];
+      if (hb_in_range (u, 0x11480u, 0x114E0u)) return indic_table[u - 0x11480u + indic_offset_0x11480u];
+      if (hb_in_range (u, 0x11580u, 0x115C8u)) return indic_table[u - 0x11580u + indic_offset_0x11580u];
+      if (hb_in_range (u, 0x11600u, 0x116D0u)) return indic_table[u - 0x11600u + indic_offset_0x11600u];
+      break;
+
+    default:
+      break;
+  }
+  return _(x,x);
+}
+
+#undef _
+
+#undef ISC_A
+#undef ISC_Bi
+#undef ISC_BJN
+#undef ISC_Ca
+#undef ISC_C
+#undef ISC_CD
+#undef ISC_CF
+#undef ISC_CHL
+#undef ISC_CM
+#undef ISC_CP
+#undef ISC_CPR
+#undef ISC_CS
+#undef ISC_CSR
+#undef ISC_GM
+#undef ISC_IS
+#undef ISC_ZWJ
+#undef ISC_ML
+#undef ISC_ZWNJ
+#undef ISC_N
+#undef ISC_Nd
+#undef ISC_NJ
+#undef ISC_x
+#undef ISC_PK
+#undef ISC_RS
+#undef ISC_TL
+#undef ISC_TM
+#undef ISC_V
+#undef ISC_Vs
+#undef ISC_Vo
+#undef ISC_M
+#undef ISC_VI
+
+#undef IMC_B
+#undef IMC_BR
+#undef IMC_L
+#undef IMC_LR
+#undef IMC_x
+#undef IMC_O
+#undef IMC_R
+#undef IMC_T
+#undef IMC_TB
+#undef IMC_TBR
+#undef IMC_TL
+#undef IMC_TLR
+#undef IMC_TR
+#undef IMC_VOL
+
+/* == End of generated table == */
diff --git a/src/hb-ot-shape-complex-indic.cc b/src/hb-ot-shape-complex-indic.cc
new file mode 100644 (file)
index 0000000..7723600
--- /dev/null
@@ -0,0 +1,1884 @@
+/*
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-ot-shape-complex-indic-private.hh"
+#include "hb-ot-layout-private.hh"
+
+/* buffer var allocations */
+#define indic_category() complex_var_u8_0() /* indic_category_t */
+#define indic_position() complex_var_u8_1() /* indic_position_t */
+
+
+/*
+ * Indic shaper.
+ */
+
+
+#define IN_HALF_BLOCK(u, Base) (((u) & ~0x7Fu) == (Base))
+
+#define IS_DEVA(u) (IN_HALF_BLOCK (u, 0x0900u))
+#define IS_BENG(u) (IN_HALF_BLOCK (u, 0x0980u))
+#define IS_GURU(u) (IN_HALF_BLOCK (u, 0x0A00u))
+#define IS_GUJR(u) (IN_HALF_BLOCK (u, 0x0A80u))
+#define IS_ORYA(u) (IN_HALF_BLOCK (u, 0x0B00u))
+#define IS_TAML(u) (IN_HALF_BLOCK (u, 0x0B80u))
+#define IS_TELU(u) (IN_HALF_BLOCK (u, 0x0C00u))
+#define IS_KNDA(u) (IN_HALF_BLOCK (u, 0x0C80u))
+#define IS_MLYM(u) (IN_HALF_BLOCK (u, 0x0D00u))
+#define IS_SINH(u) (IN_HALF_BLOCK (u, 0x0D80u))
+#define IS_KHMR(u) (IN_HALF_BLOCK (u, 0x1780u))
+
+
+#define MATRA_POS_LEFT(u)      POS_PRE_M
+#define MATRA_POS_RIGHT(u)     ( \
+                                 IS_DEVA(u) ? POS_AFTER_SUB  : \
+                                 IS_BENG(u) ? POS_AFTER_POST : \
+                                 IS_GURU(u) ? POS_AFTER_POST : \
+                                 IS_GUJR(u) ? POS_AFTER_POST : \
+                                 IS_ORYA(u) ? POS_AFTER_POST : \
+                                 IS_TAML(u) ? POS_AFTER_POST : \
+                                 IS_TELU(u) ? (u <= 0x0C42u ? POS_BEFORE_SUB : POS_AFTER_SUB) : \
+                                 IS_KNDA(u) ? (u < 0x0CC3u || u > 0xCD6u ? POS_BEFORE_SUB : POS_AFTER_SUB) : \
+                                 IS_MLYM(u) ? POS_AFTER_POST : \
+                                 IS_SINH(u) ? POS_AFTER_SUB  : \
+                                 IS_KHMR(u) ? POS_AFTER_POST : \
+                                 /*default*/  POS_AFTER_SUB    \
+                               )
+#define MATRA_POS_TOP(u)       ( /* BENG and MLYM don't have top matras. */ \
+                                 IS_DEVA(u) ? POS_AFTER_SUB  : \
+                                 IS_GURU(u) ? POS_AFTER_POST : /* Deviate from spec */ \
+                                 IS_GUJR(u) ? POS_AFTER_SUB  : \
+                                 IS_ORYA(u) ? POS_AFTER_MAIN : \
+                                 IS_TAML(u) ? POS_AFTER_SUB  : \
+                                 IS_TELU(u) ? POS_BEFORE_SUB : \
+                                 IS_KNDA(u) ? POS_BEFORE_SUB : \
+                                 IS_SINH(u) ? POS_AFTER_SUB  : \
+                                 IS_KHMR(u) ? POS_AFTER_POST : \
+                                 /*default*/  POS_AFTER_SUB    \
+                               )
+#define MATRA_POS_BOTTOM(u)    ( \
+                                 IS_DEVA(u) ? POS_AFTER_SUB  : \
+                                 IS_BENG(u) ? POS_AFTER_SUB  : \
+                                 IS_GURU(u) ? POS_AFTER_POST : \
+                                 IS_GUJR(u) ? POS_AFTER_POST : \
+                                 IS_ORYA(u) ? POS_AFTER_SUB  : \
+                                 IS_TAML(u) ? POS_AFTER_POST : \
+                                 IS_TELU(u) ? POS_BEFORE_SUB : \
+                                 IS_KNDA(u) ? POS_BEFORE_SUB : \
+                                 IS_MLYM(u) ? POS_AFTER_POST : \
+                                 IS_SINH(u) ? POS_AFTER_SUB  : \
+                                 IS_KHMR(u) ? POS_AFTER_POST : \
+                                 /*default*/  POS_AFTER_SUB    \
+                               )
+
+static inline indic_position_t
+matra_position (hb_codepoint_t u, indic_position_t side)
+{
+  switch ((int) side)
+  {
+    case POS_PRE_C:    return MATRA_POS_LEFT (u);
+    case POS_POST_C:   return MATRA_POS_RIGHT (u);
+    case POS_ABOVE_C:  return MATRA_POS_TOP (u);
+    case POS_BELOW_C:  return MATRA_POS_BOTTOM (u);
+  };
+  return side;
+}
+
+/* XXX
+ * This is a hack for now.  We should move this data into the main Indic table.
+ * Or completely remove it and just check in the tables.
+ */
+static const hb_codepoint_t ra_chars[] = {
+  0x0930u, /* Devanagari */
+  0x09B0u, /* Bengali */
+  0x09F0u, /* Bengali */
+  0x0A30u, /* Gurmukhi */      /* No Reph */
+  0x0AB0u, /* Gujarati */
+  0x0B30u, /* Oriya */
+  0x0BB0u, /* Tamil */         /* No Reph */
+  0x0C30u, /* Telugu */                /* Reph formed only with ZWJ */
+  0x0CB0u, /* Kannada */
+  0x0D30u, /* Malayalam */     /* No Reph, Logical Repha */
+
+  0x0DBBu, /* Sinhala */               /* Reph formed only with ZWJ */
+
+  0x179Au, /* Khmer */         /* No Reph, Visual Repha */
+};
+
+static inline bool
+is_ra (hb_codepoint_t u)
+{
+  for (unsigned int i = 0; i < ARRAY_LENGTH (ra_chars); i++)
+    if (u == ra_chars[i])
+      return true;
+  return false;
+}
+
+static inline bool
+is_one_of (const hb_glyph_info_t &info, unsigned int flags)
+{
+  /* If it ligated, all bets are off. */
+  if (_hb_glyph_info_ligated (&info)) return false;
+  return !!(FLAG (info.indic_category()) & flags);
+}
+
+static inline bool
+is_joiner (const hb_glyph_info_t &info)
+{
+  return is_one_of (info, JOINER_FLAGS);
+}
+
+static inline bool
+is_consonant (const hb_glyph_info_t &info)
+{
+  return is_one_of (info, CONSONANT_FLAGS);
+}
+
+static inline bool
+is_halant_or_coeng (const hb_glyph_info_t &info)
+{
+  return is_one_of (info, HALANT_OR_COENG_FLAGS);
+}
+
+static inline void
+set_indic_properties (hb_glyph_info_t &info)
+{
+  hb_codepoint_t u = info.codepoint;
+  unsigned int type = hb_indic_get_categories (u);
+  indic_category_t cat = (indic_category_t) (type & 0x7Fu);
+  indic_position_t pos = (indic_position_t) (type >> 8);
+
+
+  /*
+   * Re-assign category
+   */
+
+
+  /* The spec says U+0952 is OT_A.  However, testing shows that Uniscribe
+   * treats a whole bunch of characters similarly.
+   * TESTS: For example, for U+0951:
+   * U+092E,U+0947,U+0952
+   * U+092E,U+0952,U+0947
+   * U+092E,U+0947,U+0951
+   * U+092E,U+0951,U+0947
+   * U+092E,U+0951,U+0952
+   * U+092E,U+0952,U+0951
+   */
+  if (unlikely (hb_in_ranges (u, 0x0951u, 0x0952u,
+                                0x1CD0u, 0x1CD2u,
+                                0x1CD4u, 0x1CE1u) ||
+                           u == 0x1CF4u))
+    cat = OT_A;
+  /* The following act more like the Bindus. */
+  else if (unlikely (hb_in_range (u, 0x0953u, 0x0954u)))
+    cat = OT_SM;
+  /* The following act like consonants. */
+  else if (unlikely (hb_in_ranges (u, 0x0A72u, 0x0A73u,
+                                     0x1CF5u, 0x1CF6u)))
+    cat = OT_C;
+  /* TODO: The following should only be allowed after a Visarga.
+   * For now, just treat them like regular tone marks. */
+  else if (unlikely (hb_in_range (u, 0x1CE2u, 0x1CE8u)))
+    cat = OT_A;
+  /* TODO: The following should only be allowed after some of
+   * the nasalization marks, maybe only for U+1CE9..U+1CF1.
+   * For now, just treat them like tone marks. */
+  else if (unlikely (u == 0x1CEDu))
+    cat = OT_A;
+  /* The following take marks in standalone clusters, similar to Avagraha. */
+  else if (unlikely (hb_in_ranges (u, 0xA8F2u, 0xA8F7u,
+                                     0x1CE9u, 0x1CECu,
+                                     0x1CEEu, 0x1CF1u)))
+  {
+    cat = OT_Symbol;
+    ASSERT_STATIC ((int) INDIC_SYLLABIC_CATEGORY_AVAGRAHA == OT_Symbol);
+  }
+  else if (unlikely (hb_in_range (u, 0x17CDu, 0x17D1u) ||
+                    u == 0x17CBu || u == 0x17D3u || u == 0x17DDu)) /* Khmer Various signs */
+  {
+    /* These are like Top Matras. */
+    cat = OT_M;
+    pos = POS_ABOVE_C;
+  }
+  else if (unlikely (u == 0x17C6u)) cat = OT_N; /* Khmer Bindu doesn't like to be repositioned. */
+  else if (unlikely (u == 0x17D2u)) cat = OT_Coeng; /* Khmer coeng */
+  else if (unlikely (hb_in_range (u, 0x2010u, 0x2011u)))
+                                   cat = OT_PLACEHOLDER;
+  else if (unlikely (u == 0x25CCu)) cat = OT_DOTTEDCIRCLE;
+  else if (unlikely (u == 0xA982u)) cat = OT_SM; /* Javanese repha. */
+  else if (unlikely (u == 0xA9BEu)) cat = OT_CM2; /* Javanese medial ya. */
+  else if (unlikely (u == 0xA9BDu)) { cat = OT_M; pos = POS_POST_C; } /* Javanese vocalic r. */
+
+
+  /*
+   * Re-assign position.
+   */
+
+  if ((FLAG (cat) & CONSONANT_FLAGS))
+  {
+    pos = POS_BASE_C;
+    if (is_ra (u))
+      cat = OT_Ra;
+  }
+  else if (cat == OT_M)
+  {
+    pos = matra_position (u, pos);
+  }
+  else if ((FLAG (cat) & (FLAG (OT_SM) | FLAG (OT_VD) | FLAG (OT_A) | FLAG (OT_Symbol))))
+  {
+    pos = POS_SMVD;
+  }
+
+  if (unlikely (u == 0x0B01u)) pos = POS_BEFORE_SUB; /* Oriya Bindu is BeforeSub in the spec. */
+
+
+
+  info.indic_category() = cat;
+  info.indic_position() = pos;
+}
+
+/*
+ * Things above this line should ideally be moved to the Indic table itself.
+ */
+
+
+/*
+ * Indic configurations.  Note that we do not want to keep every single script-specific
+ * behavior in these tables necessarily.  This should mainly be used for per-script
+ * properties that are cheaper keeping here, than in the code.  Ie. if, say, one and
+ * only one script has an exception, that one script can be if'ed directly in the code,
+ * instead of adding a new flag in these structs.
+ */
+
+enum base_position_t {
+  BASE_POS_FIRST,
+  BASE_POS_LAST_SINHALA,
+  BASE_POS_LAST
+};
+enum reph_position_t {
+  REPH_POS_AFTER_MAIN  = POS_AFTER_MAIN,
+  REPH_POS_BEFORE_SUB  = POS_BEFORE_SUB,
+  REPH_POS_AFTER_SUB   = POS_AFTER_SUB,
+  REPH_POS_BEFORE_POST = POS_BEFORE_POST,
+  REPH_POS_AFTER_POST  = POS_AFTER_POST,
+  REPH_POS_DONT_CARE   = POS_RA_TO_BECOME_REPH
+};
+enum reph_mode_t {
+  REPH_MODE_IMPLICIT,  /* Reph formed out of initial Ra,H sequence. */
+  REPH_MODE_EXPLICIT,  /* Reph formed out of initial Ra,H,ZWJ sequence. */
+  REPH_MODE_VIS_REPHA, /* Encoded Repha character, no reordering needed. */
+  REPH_MODE_LOG_REPHA  /* Encoded Repha character, needs reordering. */
+};
+enum blwf_mode_t {
+  BLWF_MODE_PRE_AND_POST, /* Below-forms feature applied to pre-base and post-base. */
+  BLWF_MODE_POST_ONLY     /* Below-forms feature applied to post-base only. */
+};
+enum pref_len_t {
+  PREF_LEN_1 = 1,
+  PREF_LEN_2 = 2,
+  PREF_LEN_DONT_CARE = PREF_LEN_2
+};
+struct indic_config_t
+{
+  hb_script_t     script;
+  bool            has_old_spec;
+  hb_codepoint_t  virama;
+  base_position_t base_pos;
+  reph_position_t reph_pos;
+  reph_mode_t     reph_mode;
+  blwf_mode_t     blwf_mode;
+  pref_len_t      pref_len;
+};
+
+static const indic_config_t indic_configs[] =
+{
+  /* Default.  Should be first. */
+  {HB_SCRIPT_INVALID,  false,      0,BASE_POS_LAST, REPH_POS_BEFORE_POST,REPH_MODE_IMPLICIT, BLWF_MODE_PRE_AND_POST, PREF_LEN_1},
+  {HB_SCRIPT_DEVANAGARI,true, 0x094Du,BASE_POS_LAST, REPH_POS_BEFORE_POST,REPH_MODE_IMPLICIT, BLWF_MODE_PRE_AND_POST, PREF_LEN_DONT_CARE},
+  {HB_SCRIPT_BENGALI,  true, 0x09CDu,BASE_POS_LAST, REPH_POS_AFTER_SUB,  REPH_MODE_IMPLICIT, BLWF_MODE_PRE_AND_POST, PREF_LEN_DONT_CARE},
+  {HB_SCRIPT_GURMUKHI, true, 0x0A4Du,BASE_POS_LAST, REPH_POS_BEFORE_SUB, REPH_MODE_IMPLICIT, BLWF_MODE_PRE_AND_POST, PREF_LEN_DONT_CARE},
+  {HB_SCRIPT_GUJARATI, true, 0x0ACDu,BASE_POS_LAST, REPH_POS_BEFORE_POST,REPH_MODE_IMPLICIT, BLWF_MODE_PRE_AND_POST, PREF_LEN_DONT_CARE},
+  {HB_SCRIPT_ORIYA,    true, 0x0B4Du,BASE_POS_LAST, REPH_POS_AFTER_MAIN, REPH_MODE_IMPLICIT, BLWF_MODE_PRE_AND_POST, PREF_LEN_DONT_CARE},
+  {HB_SCRIPT_TAMIL,    true, 0x0BCDu,BASE_POS_LAST, REPH_POS_AFTER_POST, REPH_MODE_IMPLICIT, BLWF_MODE_PRE_AND_POST, PREF_LEN_2},
+  {HB_SCRIPT_TELUGU,   true, 0x0C4Du,BASE_POS_LAST, REPH_POS_AFTER_POST, REPH_MODE_EXPLICIT, BLWF_MODE_POST_ONLY,    PREF_LEN_2},
+  {HB_SCRIPT_KANNADA,  true, 0x0CCDu,BASE_POS_LAST, REPH_POS_AFTER_POST, REPH_MODE_IMPLICIT, BLWF_MODE_POST_ONLY,    PREF_LEN_2},
+  {HB_SCRIPT_MALAYALAM,        true, 0x0D4Du,BASE_POS_LAST, REPH_POS_AFTER_MAIN, REPH_MODE_LOG_REPHA,BLWF_MODE_PRE_AND_POST, PREF_LEN_2},
+  {HB_SCRIPT_SINHALA,  false,0x0DCAu,BASE_POS_LAST_SINHALA,
+                                                    REPH_POS_AFTER_MAIN, REPH_MODE_EXPLICIT, BLWF_MODE_PRE_AND_POST, PREF_LEN_DONT_CARE},
+  {HB_SCRIPT_KHMER,    false,0x17D2u,BASE_POS_FIRST,REPH_POS_DONT_CARE,  REPH_MODE_VIS_REPHA,BLWF_MODE_PRE_AND_POST, PREF_LEN_2},
+  {HB_SCRIPT_JAVANESE, false,0xA9C0u,BASE_POS_FIRST,REPH_POS_DONT_CARE,  REPH_MODE_VIS_REPHA,BLWF_MODE_PRE_AND_POST, PREF_LEN_1},
+};
+
+
+
+/*
+ * Indic shaper.
+ */
+
+struct feature_list_t {
+  hb_tag_t tag;
+  hb_ot_map_feature_flags_t flags;
+};
+
+static const feature_list_t
+indic_features[] =
+{
+  /*
+   * Basic features.
+   * These features are applied in order, one at a time, after initial_reordering.
+   */
+  {HB_TAG('n','u','k','t'), F_GLOBAL},
+  {HB_TAG('a','k','h','n'), F_GLOBAL},
+  {HB_TAG('r','p','h','f'), F_NONE},
+  {HB_TAG('r','k','r','f'), F_GLOBAL},
+  {HB_TAG('p','r','e','f'), F_NONE},
+  {HB_TAG('b','l','w','f'), F_NONE},
+  {HB_TAG('a','b','v','f'), F_NONE},
+  {HB_TAG('h','a','l','f'), F_NONE},
+  {HB_TAG('p','s','t','f'), F_NONE},
+  {HB_TAG('v','a','t','u'), F_GLOBAL},
+  {HB_TAG('c','j','c','t'), F_GLOBAL},
+  {HB_TAG('c','f','a','r'), F_NONE},
+  /*
+   * Other features.
+   * These features are applied all at once, after final_reordering.
+   * Default Bengali font in Windows for example has intermixed
+   * lookups for init,pres,abvs,blws features.
+   */
+  {HB_TAG('i','n','i','t'), F_NONE},
+  {HB_TAG('p','r','e','s'), F_GLOBAL},
+  {HB_TAG('a','b','v','s'), F_GLOBAL},
+  {HB_TAG('b','l','w','s'), F_GLOBAL},
+  {HB_TAG('p','s','t','s'), F_GLOBAL},
+  {HB_TAG('h','a','l','n'), F_GLOBAL},
+  /* Positioning features, though we don't care about the types. */
+  {HB_TAG('d','i','s','t'), F_GLOBAL},
+  {HB_TAG('a','b','v','m'), F_GLOBAL},
+  {HB_TAG('b','l','w','m'), F_GLOBAL},
+};
+
+/*
+ * Must be in the same order as the indic_features array.
+ */
+enum {
+  _NUKT,
+  _AKHN,
+  RPHF,
+  _RKRF,
+  PREF,
+  BLWF,
+  ABVF,
+  HALF,
+  PSTF,
+  _VATU,
+  _CJCT,
+  CFAR,
+
+  INIT,
+  _PRES,
+  _ABVS,
+  _BLWS,
+  _PSTS,
+  _HALN,
+  _DIST,
+  _ABVM,
+  _BLWM,
+
+  INDIC_NUM_FEATURES,
+  INDIC_BASIC_FEATURES = INIT /* Don't forget to update this! */
+};
+
+static void
+setup_syllables (const hb_ot_shape_plan_t *plan,
+                hb_font_t *font,
+                hb_buffer_t *buffer);
+static void
+initial_reordering (const hb_ot_shape_plan_t *plan,
+                   hb_font_t *font,
+                   hb_buffer_t *buffer);
+static void
+final_reordering (const hb_ot_shape_plan_t *plan,
+                 hb_font_t *font,
+                 hb_buffer_t *buffer);
+static void
+clear_syllables (const hb_ot_shape_plan_t *plan,
+                hb_font_t *font,
+                hb_buffer_t *buffer);
+
+static void
+collect_features_indic (hb_ot_shape_planner_t *plan)
+{
+  hb_ot_map_builder_t *map = &plan->map;
+
+  /* Do this before any lookups have been applied. */
+  map->add_gsub_pause (setup_syllables);
+
+  map->add_global_bool_feature (HB_TAG('l','o','c','l'));
+  /* The Indic specs do not require ccmp, but we apply it here since if
+   * there is a use of it, it's typically at the beginning. */
+  map->add_global_bool_feature (HB_TAG('c','c','m','p'));
+
+
+  unsigned int i = 0;
+  map->add_gsub_pause (initial_reordering);
+  for (; i < INDIC_BASIC_FEATURES; i++) {
+    map->add_feature (indic_features[i].tag, 1, indic_features[i].flags | F_MANUAL_ZWJ);
+    map->add_gsub_pause (NULL);
+  }
+  map->add_gsub_pause (final_reordering);
+  for (; i < INDIC_NUM_FEATURES; i++) {
+    map->add_feature (indic_features[i].tag, 1, indic_features[i].flags | F_MANUAL_ZWJ);
+  }
+
+  map->add_global_bool_feature (HB_TAG('c','a','l','t'));
+  map->add_global_bool_feature (HB_TAG('c','l','i','g'));
+
+  map->add_gsub_pause (clear_syllables);
+}
+
+static void
+override_features_indic (hb_ot_shape_planner_t *plan)
+{
+  /* Uniscribe does not apply 'kern' in Khmer. */
+  if (hb_options ().uniscribe_bug_compatible)
+  {
+    switch ((hb_tag_t) plan->props.script)
+    {
+      case HB_SCRIPT_KHMER:
+       plan->map.add_feature (HB_TAG('k','e','r','n'), 0, F_GLOBAL);
+       break;
+    }
+  }
+
+  plan->map.add_feature (HB_TAG('l','i','g','a'), 0, F_GLOBAL);
+}
+
+
+struct would_substitute_feature_t
+{
+  inline void init (const hb_ot_map_t *map, hb_tag_t feature_tag, bool zero_context_)
+  {
+    zero_context = zero_context_;
+    map->get_stage_lookups (0/*GSUB*/,
+                           map->get_feature_stage (0/*GSUB*/, feature_tag),
+                           &lookups, &count);
+  }
+
+  inline bool would_substitute (const hb_codepoint_t *glyphs,
+                               unsigned int          glyphs_count,
+                               hb_face_t            *face) const
+  {
+    for (unsigned int i = 0; i < count; i++)
+      if (hb_ot_layout_lookup_would_substitute_fast (face, lookups[i].index, glyphs, glyphs_count, zero_context))
+       return true;
+    return false;
+  }
+
+  private:
+  const hb_ot_map_t::lookup_map_t *lookups;
+  unsigned int count;
+  bool zero_context;
+};
+
+struct indic_shape_plan_t
+{
+  ASSERT_POD ();
+
+  inline bool get_virama_glyph (hb_font_t *font, hb_codepoint_t *pglyph) const
+  {
+    hb_codepoint_t glyph = virama_glyph;
+    if (unlikely (virama_glyph == (hb_codepoint_t) -1))
+    {
+      if (!config->virama || !font->get_glyph (config->virama, 0, &glyph))
+       glyph = 0;
+      /* Technically speaking, the spec says we should apply 'locl' to virama too.
+       * Maybe one day... */
+
+      /* Our get_glyph() function needs a font, so we can't get the virama glyph
+       * during shape planning...  Instead, overwrite it here.  It's safe.  Don't worry! */
+      (const_cast<indic_shape_plan_t *> (this))->virama_glyph = glyph;
+    }
+
+    *pglyph = glyph;
+    return glyph != 0;
+  }
+
+  const indic_config_t *config;
+
+  bool is_old_spec;
+  hb_codepoint_t virama_glyph;
+
+  would_substitute_feature_t rphf;
+  would_substitute_feature_t pref;
+  would_substitute_feature_t blwf;
+  would_substitute_feature_t pstf;
+
+  hb_mask_t mask_array[INDIC_NUM_FEATURES];
+};
+
+static void *
+data_create_indic (const hb_ot_shape_plan_t *plan)
+{
+  indic_shape_plan_t *indic_plan = (indic_shape_plan_t *) calloc (1, sizeof (indic_shape_plan_t));
+  if (unlikely (!indic_plan))
+    return NULL;
+
+  indic_plan->config = &indic_configs[0];
+  for (unsigned int i = 1; i < ARRAY_LENGTH (indic_configs); i++)
+    if (plan->props.script == indic_configs[i].script) {
+      indic_plan->config = &indic_configs[i];
+      break;
+    }
+
+  indic_plan->is_old_spec = indic_plan->config->has_old_spec && ((plan->map.chosen_script[0] & 0x000000FFu) != '2');
+  indic_plan->virama_glyph = (hb_codepoint_t) -1;
+
+  /* Use zero-context would_substitute() matching for new-spec of the main
+   * Indic scripts, and scripts with one spec only, but not for old-specs. */
+  bool zero_context = !indic_plan->is_old_spec;
+  indic_plan->rphf.init (&plan->map, HB_TAG('r','p','h','f'), zero_context);
+  indic_plan->pref.init (&plan->map, HB_TAG('p','r','e','f'), zero_context);
+  indic_plan->blwf.init (&plan->map, HB_TAG('b','l','w','f'), zero_context);
+  indic_plan->pstf.init (&plan->map, HB_TAG('p','s','t','f'), zero_context);
+
+  for (unsigned int i = 0; i < ARRAY_LENGTH (indic_plan->mask_array); i++)
+    indic_plan->mask_array[i] = (indic_features[i].flags & F_GLOBAL) ?
+                                0 : plan->map.get_1_mask (indic_features[i].tag);
+
+  return indic_plan;
+}
+
+static void
+data_destroy_indic (void *data)
+{
+  free (data);
+}
+
+static indic_position_t
+consonant_position_from_face (const indic_shape_plan_t *indic_plan,
+                             const hb_codepoint_t consonant,
+                             const hb_codepoint_t virama,
+                             hb_face_t *face)
+{
+  /* For old-spec, the order of glyphs is Consonant,Virama,
+   * whereas for new-spec, it's Virama,Consonant.  However,
+   * some broken fonts (like Free Sans) simply copied lookups
+   * from old-spec to new-spec without modification.
+   * And oddly enough, Uniscribe seems to respect those lookups.
+   * Eg. in the sequence U+0924,U+094D,U+0930, Uniscribe finds
+   * base at 0.  The font however, only has lookups matching
+   * 930,94D in 'blwf', not the expected 94D,930 (with new-spec
+   * table).  As such, we simply match both sequences.  Seems
+   * to work. */
+  hb_codepoint_t glyphs[3] = {virama, consonant, virama};
+  if (indic_plan->blwf.would_substitute (glyphs  , 2, face) ||
+      indic_plan->blwf.would_substitute (glyphs+1, 2, face))
+    return POS_BELOW_C;
+  if (indic_plan->pstf.would_substitute (glyphs  , 2, face) ||
+      indic_plan->pstf.would_substitute (glyphs+1, 2, face))
+    return POS_POST_C;
+  unsigned int pref_len = indic_plan->config->pref_len;
+  if ((pref_len == PREF_LEN_2 &&
+       (indic_plan->pref.would_substitute (glyphs  , 2, face) ||
+        indic_plan->pref.would_substitute (glyphs+1, 2, face)))
+   || (pref_len == PREF_LEN_1 &&
+       indic_plan->pref.would_substitute (glyphs+1, 1, face)))
+    return POS_POST_C;
+  return POS_BASE_C;
+}
+
+
+enum syllable_type_t {
+  consonant_syllable,
+  vowel_syllable,
+  standalone_cluster,
+  symbol_cluster,
+  broken_cluster,
+  non_indic_cluster,
+};
+
+#include "hb-ot-shape-complex-indic-machine.hh"
+
+
+static void
+setup_masks_indic (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                  hb_buffer_t              *buffer,
+                  hb_font_t                *font HB_UNUSED)
+{
+  HB_BUFFER_ALLOCATE_VAR (buffer, indic_category);
+  HB_BUFFER_ALLOCATE_VAR (buffer, indic_position);
+
+  /* We cannot setup masks here.  We save information about characters
+   * and setup masks later on in a pause-callback. */
+
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+    set_indic_properties (info[i]);
+}
+
+static void
+setup_syllables (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                hb_font_t *font HB_UNUSED,
+                hb_buffer_t *buffer)
+{
+  find_syllables (buffer);
+}
+
+static int
+compare_indic_order (const hb_glyph_info_t *pa, const hb_glyph_info_t *pb)
+{
+  int a = pa->indic_position();
+  int b = pb->indic_position();
+
+  return a < b ? -1 : a == b ? 0 : +1;
+}
+
+
+
+static void
+update_consonant_positions (const hb_ot_shape_plan_t *plan,
+                           hb_font_t         *font,
+                           hb_buffer_t       *buffer)
+{
+  const indic_shape_plan_t *indic_plan = (const indic_shape_plan_t *) plan->data;
+
+  if (indic_plan->config->base_pos != BASE_POS_LAST)
+    return;
+
+  hb_codepoint_t virama;
+  if (indic_plan->get_virama_glyph (font, &virama))
+  {
+    hb_face_t *face = font->face;
+    unsigned int count = buffer->len;
+    hb_glyph_info_t *info = buffer->info;
+    for (unsigned int i = 0; i < count; i++)
+      if (info[i].indic_position() == POS_BASE_C)
+      {
+       hb_codepoint_t consonant = info[i].codepoint;
+       info[i].indic_position() = consonant_position_from_face (indic_plan, consonant, virama, face);
+      }
+  }
+}
+
+
+/* Rules from:
+ * https://www.microsoft.com/typography/otfntdev/devanot/shaping.aspx */
+
+static void
+initial_reordering_consonant_syllable (const hb_ot_shape_plan_t *plan,
+                                      hb_face_t *face,
+                                      hb_buffer_t *buffer,
+                                      unsigned int start, unsigned int end)
+{
+  const indic_shape_plan_t *indic_plan = (const indic_shape_plan_t *) plan->data;
+  hb_glyph_info_t *info = buffer->info;
+
+
+  /* 1. Find base consonant:
+   *
+   * The shaping engine finds the base consonant of the syllable, using the
+   * following algorithm: starting from the end of the syllable, move backwards
+   * until a consonant is found that does not have a below-base or post-base
+   * form (post-base forms have to follow below-base forms), or that is not a
+   * pre-base reordering Ra, or arrive at the first consonant. The consonant
+   * stopped at will be the base.
+   *
+   *   o If the syllable starts with Ra + Halant (in a script that has Reph)
+   *     and has more than one consonant, Ra is excluded from candidates for
+   *     base consonants.
+   */
+
+  unsigned int base = end;
+  bool has_reph = false;
+
+  {
+    /* -> If the syllable starts with Ra + Halant (in a script that has Reph)
+     *    and has more than one consonant, Ra is excluded from candidates for
+     *    base consonants. */
+    unsigned int limit = start;
+    if (indic_plan->config->reph_pos != REPH_POS_DONT_CARE &&
+       indic_plan->mask_array[RPHF] &&
+       start + 3 <= end &&
+       (
+        (indic_plan->config->reph_mode == REPH_MODE_IMPLICIT && !is_joiner (info[start + 2])) ||
+        (indic_plan->config->reph_mode == REPH_MODE_EXPLICIT && info[start + 2].indic_category() == OT_ZWJ)
+       ))
+    {
+      /* See if it matches the 'rphf' feature. */
+      hb_codepoint_t glyphs[3] = {info[start].codepoint,
+                                 info[start + 1].codepoint,
+                                 indic_plan->config->reph_mode == REPH_MODE_EXPLICIT ?
+                                   info[start + 2].codepoint : 0};
+      if (indic_plan->rphf.would_substitute (glyphs, 2, face) ||
+         (indic_plan->config->reph_mode == REPH_MODE_EXPLICIT &&
+          indic_plan->rphf.would_substitute (glyphs, 3, face)))
+      {
+       limit += 2;
+       while (limit < end && is_joiner (info[limit]))
+         limit++;
+       base = start;
+       has_reph = true;
+      }
+    } else if (indic_plan->config->reph_mode == REPH_MODE_LOG_REPHA && info[start].indic_category() == OT_Repha)
+    {
+       limit += 1;
+       while (limit < end && is_joiner (info[limit]))
+         limit++;
+       base = start;
+       has_reph = true;
+    }
+
+    switch (indic_plan->config->base_pos)
+    {
+      default:
+        assert (false);
+       /* fallthrough */
+
+      case BASE_POS_LAST:
+      {
+       /* -> starting from the end of the syllable, move backwards */
+       unsigned int i = end;
+       bool seen_below = false;
+       do {
+         i--;
+         /* -> until a consonant is found */
+         if (is_consonant (info[i]))
+         {
+           /* -> that does not have a below-base or post-base form
+            * (post-base forms have to follow below-base forms), */
+           if (info[i].indic_position() != POS_BELOW_C &&
+               (info[i].indic_position() != POS_POST_C || seen_below))
+           {
+             base = i;
+             break;
+           }
+           if (info[i].indic_position() == POS_BELOW_C)
+             seen_below = true;
+
+           /* -> or that is not a pre-base reordering Ra,
+            *
+            * IMPLEMENTATION NOTES:
+            *
+            * Our pre-base reordering Ra's are marked POS_POST_C, so will be skipped
+            * by the logic above already.
+            */
+
+           /* -> or arrive at the first consonant. The consonant stopped at will
+            * be the base. */
+           base = i;
+         }
+         else
+         {
+           /* A ZWJ after a Halant stops the base search, and requests an explicit
+            * half form.
+            * A ZWJ before a Halant, requests a subjoined form instead, and hence
+            * search continues.  This is particularly important for Bengali
+            * sequence Ra,H,Ya that should form Ya-Phalaa by subjoining Ya. */
+           if (start < i &&
+               info[i].indic_category() == OT_ZWJ &&
+               info[i - 1].indic_category() == OT_H)
+             break;
+         }
+       } while (i > limit);
+      }
+      break;
+
+      case BASE_POS_LAST_SINHALA:
+      {
+        /* Sinhala base positioning is slightly different from main Indic, in that:
+        * 1. Its ZWJ behavior is different,
+        * 2. We don't need to look into the font for consonant positions.
+        */
+
+       if (!has_reph)
+         base = limit;
+
+       /* Find the last base consonant that is not blocked by ZWJ.  If there is
+        * a ZWJ right before a base consonant, that would request a subjoined form. */
+       for (unsigned int i = limit; i < end; i++)
+         if (is_consonant (info[i]))
+         {
+           if (limit < i && info[i - 1].indic_category() == OT_ZWJ)
+             break;
+           else
+             base = i;
+         }
+
+       /* Mark all subsequent consonants as below. */
+       for (unsigned int i = base + 1; i < end; i++)
+         if (is_consonant (info[i]))
+           info[i].indic_position() = POS_BELOW_C;
+      }
+      break;
+
+      case BASE_POS_FIRST:
+      {
+       /* The first consonant is always the base. */
+
+       assert (indic_plan->config->reph_mode == REPH_MODE_VIS_REPHA);
+       assert (!has_reph);
+
+       base = start;
+
+       /* Mark all subsequent consonants as below. */
+       for (unsigned int i = base + 1; i < end; i++)
+         if (is_consonant (info[i]))
+           info[i].indic_position() = POS_BELOW_C;
+      }
+      break;
+    }
+
+    /* -> If the syllable starts with Ra + Halant (in a script that has Reph)
+     *    and has more than one consonant, Ra is excluded from candidates for
+     *    base consonants.
+     *
+     *  Only do this for unforced Reph. (ie. not for Ra,H,ZWJ. */
+    if (has_reph && base == start && limit - base <= 2) {
+      /* Have no other consonant, so Reph is not formed and Ra becomes base. */
+      has_reph = false;
+    }
+  }
+
+
+  /* 2. Decompose and reorder Matras:
+   *
+   * Each matra and any syllable modifier sign in the cluster are moved to the
+   * appropriate position relative to the consonant(s) in the cluster. The
+   * shaping engine decomposes two- or three-part matras into their constituent
+   * parts before any repositioning. Matra characters are classified by which
+   * consonant in a conjunct they have affinity for and are reordered to the
+   * following positions:
+   *
+   *   o Before first half form in the syllable
+   *   o After subjoined consonants
+   *   o After post-form consonant
+   *   o After main consonant (for above marks)
+   *
+   * IMPLEMENTATION NOTES:
+   *
+   * The normalize() routine has already decomposed matras for us, so we don't
+   * need to worry about that.
+   */
+
+
+  /* 3.  Reorder marks to canonical order:
+   *
+   * Adjacent nukta and halant or nukta and vedic sign are always repositioned
+   * if necessary, so that the nukta is first.
+   *
+   * IMPLEMENTATION NOTES:
+   *
+   * We don't need to do this: the normalize() routine already did this for us.
+   */
+
+
+  /* Reorder characters */
+
+  for (unsigned int i = start; i < base; i++)
+    info[i].indic_position() = MIN (POS_PRE_C, (indic_position_t) info[i].indic_position());
+
+  if (base < end)
+    info[base].indic_position() = POS_BASE_C;
+
+  /* Mark final consonants.  A final consonant is one appearing after a matra,
+   * like in Khmer. */
+  for (unsigned int i = base + 1; i < end; i++)
+    if (info[i].indic_category() == OT_M) {
+      for (unsigned int j = i + 1; j < end; j++)
+        if (is_consonant (info[j])) {
+         info[j].indic_position() = POS_FINAL_C;
+         break;
+       }
+      break;
+    }
+
+  /* Handle beginning Ra */
+  if (has_reph)
+    info[start].indic_position() = POS_RA_TO_BECOME_REPH;
+
+  /* For old-style Indic script tags, move the first post-base Halant after
+   * last consonant.
+   *
+   * Reports suggest that in some scripts Uniscribe does this only if there
+   * is *not* a Halant after last consonant already (eg. Kannada), while it
+   * does it unconditionally in other scripts (eg. Malayalam).  We don't
+   * currently know about other scripts, so we single out Malayalam for now.
+   *
+   * Kannada test case:
+   * U+0C9A,U+0CCD,U+0C9A,U+0CCD
+   * With some versions of Lohit Kannada.
+   * https://bugs.freedesktop.org/show_bug.cgi?id=59118
+   *
+   * Malayalam test case:
+   * U+0D38,U+0D4D,U+0D31,U+0D4D,U+0D31,U+0D4D
+   * With lohit-ttf-20121122/Lohit-Malayalam.ttf
+   */
+  if (indic_plan->is_old_spec)
+  {
+    bool disallow_double_halants = buffer->props.script != HB_SCRIPT_MALAYALAM;
+    for (unsigned int i = base + 1; i < end; i++)
+      if (info[i].indic_category() == OT_H)
+      {
+        unsigned int j;
+        for (j = end - 1; j > i; j--)
+         if (is_consonant (info[j]) ||
+             (disallow_double_halants && info[j].indic_category() == OT_H))
+           break;
+       if (info[j].indic_category() != OT_H && j > i) {
+         /* Move Halant to after last consonant. */
+         hb_glyph_info_t t = info[i];
+         memmove (&info[i], &info[i + 1], (j - i) * sizeof (info[0]));
+         info[j] = t;
+       }
+        break;
+      }
+  }
+
+  /* Attach misc marks to previous char to move with them. */
+  {
+    indic_position_t last_pos = POS_START;
+    for (unsigned int i = start; i < end; i++)
+    {
+      if ((FLAG (info[i].indic_category()) & (JOINER_FLAGS | FLAG (OT_N) | FLAG (OT_RS) | MEDIAL_FLAGS | HALANT_OR_COENG_FLAGS)))
+      {
+       info[i].indic_position() = last_pos;
+       if (unlikely (info[i].indic_category() == OT_H &&
+                     info[i].indic_position() == POS_PRE_M))
+       {
+         /*
+          * Uniscribe doesn't move the Halant with Left Matra.
+          * TEST: U+092B,U+093F,U+094DE
+          * We follow.  This is important for the Sinhala
+          * U+0DDA split matra since it decomposes to U+0DD9,U+0DCA
+          * where U+0DD9 is a left matra and U+0DCA is the virama.
+          * We don't want to move the virama with the left matra.
+          * TEST: U+0D9A,U+0DDA
+          */
+         for (unsigned int j = i; j > start; j--)
+           if (info[j - 1].indic_position() != POS_PRE_M) {
+             info[i].indic_position() = info[j - 1].indic_position();
+             break;
+           }
+       }
+      } else if (info[i].indic_position() != POS_SMVD) {
+        last_pos = (indic_position_t) info[i].indic_position();
+      }
+    }
+  }
+  /* For post-base consonants let them own anything before them
+   * since the last consonant or matra. */
+  {
+    unsigned int last = base;
+    for (unsigned int i = base + 1; i < end; i++)
+      if (is_consonant (info[i]))
+      {
+       for (unsigned int j = last + 1; j < i; j++)
+         if (info[j].indic_position() < POS_SMVD)
+           info[j].indic_position() = info[i].indic_position();
+       last = i;
+      } else if (info[i].indic_category() == OT_M)
+        last = i;
+  }
+
+
+  {
+    /* Use syllable() for sort accounting temporarily. */
+    unsigned int syllable = info[start].syllable();
+    for (unsigned int i = start; i < end; i++)
+      info[i].syllable() = i - start;
+
+    /* Sit tight, rock 'n roll! */
+    hb_bubble_sort (info + start, end - start, compare_indic_order);
+    /* Find base again */
+    base = end;
+    for (unsigned int i = start; i < end; i++)
+      if (info[i].indic_position() == POS_BASE_C)
+      {
+       base = i;
+       break;
+      }
+    /* Things are out-of-control for post base positions, they may shuffle
+     * around like crazy.  In old-spec mode, we move halants around, so in
+     * that case merge all clusters after base.  Otherwise, check the sort
+     * order and merge as needed.
+     * For pre-base stuff, we handle cluster issues in final reordering. */
+    if (indic_plan->is_old_spec || end - base > 127)
+      buffer->merge_clusters (base, end);
+    else
+    {
+      /* Note!  syllable() is a one-byte field. */
+      for (unsigned int i = base; i < end; i++)
+        if (info[i].syllable() != 255)
+       {
+         unsigned int max = i;
+         unsigned int j = start + info[i].syllable();
+         while (j != i)
+         {
+           max = MAX (max, j);
+           unsigned int next = start + info[j].syllable();
+           info[j].syllable() = 255; /* So we don't process j later again. */
+           j = next;
+         }
+         if (i != max)
+           buffer->merge_clusters (i, max + 1);
+       }
+    }
+
+    /* Put syllable back in. */
+    for (unsigned int i = start; i < end; i++)
+      info[i].syllable() = syllable;
+  }
+
+  /* Setup masks now */
+
+  {
+    hb_mask_t mask;
+
+    /* Reph */
+    for (unsigned int i = start; i < end && info[i].indic_position() == POS_RA_TO_BECOME_REPH; i++)
+      info[i].mask |= indic_plan->mask_array[RPHF];
+
+    /* Pre-base */
+    mask = indic_plan->mask_array[HALF];
+    if (!indic_plan->is_old_spec &&
+       indic_plan->config->blwf_mode == BLWF_MODE_PRE_AND_POST)
+      mask |= indic_plan->mask_array[BLWF];
+    for (unsigned int i = start; i < base; i++)
+      info[i].mask  |= mask;
+    /* Base */
+    mask = 0;
+    if (base < end)
+      info[base].mask |= mask;
+    /* Post-base */
+    mask = indic_plan->mask_array[BLWF] | indic_plan->mask_array[ABVF] | indic_plan->mask_array[PSTF];
+    for (unsigned int i = base + 1; i < end; i++)
+      info[i].mask  |= mask;
+  }
+
+  if (indic_plan->is_old_spec &&
+      buffer->props.script == HB_SCRIPT_DEVANAGARI)
+  {
+    /* Old-spec eye-lash Ra needs special handling.  From the
+     * spec:
+     *
+     * "The feature 'below-base form' is applied to consonants
+     * having below-base forms and following the base consonant.
+     * The exception is vattu, which may appear below half forms
+     * as well as below the base glyph. The feature 'below-base
+     * form' will be applied to all such occurrences of Ra as well."
+     *
+     * Test case: U+0924,U+094D,U+0930,U+094d,U+0915
+     * with Sanskrit 2003 font.
+     *
+     * However, note that Ra,Halant,ZWJ is the correct way to
+     * request eyelash form of Ra, so we wouldbn't inhibit it
+     * in that sequence.
+     *
+     * Test case: U+0924,U+094D,U+0930,U+094d,U+200D,U+0915
+     */
+    for (unsigned int i = start; i + 1 < base; i++)
+      if (info[i  ].indic_category() == OT_Ra &&
+         info[i+1].indic_category() == OT_H  &&
+         (i + 2 == base ||
+          info[i+2].indic_category() != OT_ZWJ))
+      {
+       info[i  ].mask |= indic_plan->mask_array[BLWF];
+       info[i+1].mask |= indic_plan->mask_array[BLWF];
+      }
+  }
+
+  unsigned int pref_len = indic_plan->config->pref_len;
+  if (indic_plan->mask_array[PREF] && base + pref_len < end)
+  {
+    assert (1 <= pref_len && pref_len <= 2);
+    /* Find a Halant,Ra sequence and mark it for pre-base reordering processing. */
+    for (unsigned int i = base + 1; i + pref_len - 1 < end; i++) {
+      hb_codepoint_t glyphs[2];
+      for (unsigned int j = 0; j < pref_len; j++)
+        glyphs[j] = info[i + j].codepoint;
+      if (indic_plan->pref.would_substitute (glyphs, pref_len, face))
+      {
+       for (unsigned int j = 0; j < pref_len; j++)
+         info[i++].mask |= indic_plan->mask_array[PREF];
+
+       /* Mark the subsequent stuff with 'cfar'.  Used in Khmer.
+        * Read the feature spec.
+        * This allows distinguishing the following cases with MS Khmer fonts:
+        * U+1784,U+17D2,U+179A,U+17D2,U+1782
+        * U+1784,U+17D2,U+1782,U+17D2,U+179A
+        */
+       if (indic_plan->mask_array[CFAR])
+         for (; i < end; i++)
+           info[i].mask |= indic_plan->mask_array[CFAR];
+
+       break;
+      }
+    }
+  }
+
+  /* Apply ZWJ/ZWNJ effects */
+  for (unsigned int i = start + 1; i < end; i++)
+    if (is_joiner (info[i])) {
+      bool non_joiner = info[i].indic_category() == OT_ZWNJ;
+      unsigned int j = i;
+
+      do {
+       j--;
+
+       /* ZWJ/ZWNJ should disable CJCT.  They do that by simply
+        * being there, since we don't skip them for the CJCT
+        * feature (ie. F_MANUAL_ZWJ) */
+
+       /* A ZWNJ disables HALF. */
+       if (non_joiner)
+         info[j].mask &= ~indic_plan->mask_array[HALF];
+
+      } while (j > start && !is_consonant (info[j]));
+    }
+}
+
+
+static void
+initial_reordering_vowel_syllable (const hb_ot_shape_plan_t *plan,
+                                  hb_face_t *face,
+                                  hb_buffer_t *buffer,
+                                  unsigned int start, unsigned int end)
+{
+  /* We made the vowels look like consonants.  So let's call the consonant logic! */
+  initial_reordering_consonant_syllable (plan, face, buffer, start, end);
+}
+
+static void
+initial_reordering_standalone_cluster (const hb_ot_shape_plan_t *plan,
+                                      hb_face_t *face,
+                                      hb_buffer_t *buffer,
+                                      unsigned int start, unsigned int end)
+{
+  /* We treat placeholder/dotted-circle as if they are consonants, so we
+   * should just chain.  Only if not in compatibility mode that is... */
+
+  if (hb_options ().uniscribe_bug_compatible)
+  {
+    /* For dotted-circle, this is what Uniscribe does:
+     * If dotted-circle is the last glyph, it just does nothing.
+     * Ie. It doesn't form Reph. */
+    if (buffer->info[end - 1].indic_category() == OT_DOTTEDCIRCLE)
+      return;
+  }
+
+  initial_reordering_consonant_syllable (plan, face, buffer, start, end);
+}
+
+static void
+initial_reordering_broken_cluster (const hb_ot_shape_plan_t *plan,
+                                  hb_face_t *face,
+                                  hb_buffer_t *buffer,
+                                  unsigned int start, unsigned int end)
+{
+  /* We already inserted dotted-circles, so just call the standalone_cluster. */
+  initial_reordering_standalone_cluster (plan, face, buffer, start, end);
+}
+
+static void
+initial_reordering_symbol_cluster (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                                  hb_face_t *face HB_UNUSED,
+                                  hb_buffer_t *buffer HB_UNUSED,
+                                  unsigned int start HB_UNUSED, unsigned int end HB_UNUSED)
+{
+  /* Nothing to do right now.  If we ever switch to using the output
+   * buffer in the reordering process, we'd need to next_glyph() here. */
+}
+
+static void
+initial_reordering_non_indic_cluster (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                                     hb_face_t *face HB_UNUSED,
+                                     hb_buffer_t *buffer HB_UNUSED,
+                                     unsigned int start HB_UNUSED, unsigned int end HB_UNUSED)
+{
+  /* Nothing to do right now.  If we ever switch to using the output
+   * buffer in the reordering process, we'd need to next_glyph() here. */
+}
+
+
+static void
+initial_reordering_syllable (const hb_ot_shape_plan_t *plan,
+                            hb_face_t *face,
+                            hb_buffer_t *buffer,
+                            unsigned int start, unsigned int end)
+{
+  syllable_type_t syllable_type = (syllable_type_t) (buffer->info[start].syllable() & 0x0F);
+  switch (syllable_type) {
+  case consonant_syllable:     initial_reordering_consonant_syllable (plan, face, buffer, start, end); return;
+  case vowel_syllable:         initial_reordering_vowel_syllable     (plan, face, buffer, start, end); return;
+  case standalone_cluster:     initial_reordering_standalone_cluster (plan, face, buffer, start, end); return;
+  case symbol_cluster:         initial_reordering_symbol_cluster     (plan, face, buffer, start, end); return;
+  case broken_cluster:         initial_reordering_broken_cluster     (plan, face, buffer, start, end); return;
+  case non_indic_cluster:      initial_reordering_non_indic_cluster  (plan, face, buffer, start, end); return;
+  }
+}
+
+static inline void
+insert_dotted_circles (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                      hb_font_t *font,
+                      hb_buffer_t *buffer)
+{
+  /* Note: This loop is extra overhead, but should not be measurable. */
+  bool has_broken_syllables = false;
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+    if ((info[i].syllable() & 0x0F) == broken_cluster)
+    {
+      has_broken_syllables = true;
+      break;
+    }
+  if (likely (!has_broken_syllables))
+    return;
+
+
+  hb_codepoint_t dottedcircle_glyph;
+  if (!font->get_glyph (0x25CCu, 0, &dottedcircle_glyph))
+    return;
+
+  hb_glyph_info_t dottedcircle = {0};
+  dottedcircle.codepoint = 0x25CCu;
+  set_indic_properties (dottedcircle);
+  dottedcircle.codepoint = dottedcircle_glyph;
+
+  buffer->clear_output ();
+
+  buffer->idx = 0;
+  unsigned int last_syllable = 0;
+  while (buffer->idx < buffer->len)
+  {
+    unsigned int syllable = buffer->cur().syllable();
+    syllable_type_t syllable_type = (syllable_type_t) (syllable & 0x0F);
+    if (unlikely (last_syllable != syllable && syllable_type == broken_cluster))
+    {
+      last_syllable = syllable;
+
+      hb_glyph_info_t info = dottedcircle;
+      info.cluster = buffer->cur().cluster;
+      info.mask = buffer->cur().mask;
+      info.syllable() = buffer->cur().syllable();
+      /* TODO Set glyph_props? */
+
+      /* Insert dottedcircle after possible Repha. */
+      while (buffer->idx < buffer->len &&
+            last_syllable == buffer->cur().syllable() &&
+            buffer->cur().indic_category() == OT_Repha)
+        buffer->next_glyph ();
+
+      buffer->output_info (info);
+    }
+    else
+      buffer->next_glyph ();
+  }
+
+  buffer->swap_buffers ();
+}
+
+static void
+initial_reordering (const hb_ot_shape_plan_t *plan,
+                   hb_font_t *font,
+                   hb_buffer_t *buffer)
+{
+  update_consonant_positions (plan, font, buffer);
+  insert_dotted_circles (plan, font, buffer);
+
+  hb_glyph_info_t *info = buffer->info;
+  unsigned int count = buffer->len;
+  if (unlikely (!count)) return;
+  unsigned int last = 0;
+  unsigned int last_syllable = info[0].syllable();
+  for (unsigned int i = 1; i < count; i++)
+    if (last_syllable != info[i].syllable()) {
+      initial_reordering_syllable (plan, font->face, buffer, last, i);
+      last = i;
+      last_syllable = info[last].syllable();
+    }
+  initial_reordering_syllable (plan, font->face, buffer, last, count);
+}
+
+static void
+final_reordering_syllable (const hb_ot_shape_plan_t *plan,
+                          hb_buffer_t *buffer,
+                          unsigned int start, unsigned int end)
+{
+  const indic_shape_plan_t *indic_plan = (const indic_shape_plan_t *) plan->data;
+  hb_glyph_info_t *info = buffer->info;
+
+
+  /* This function relies heavily on halant glyphs.  Lots of ligation
+   * and possibly multiplication substitutions happened prior to this
+   * phase, and that might have messed up our properties.  Recover
+   * from a particular case of that where we're fairly sure that a
+   * class of OT_H is desired but has been lost. */
+  if (indic_plan->virama_glyph)
+  {
+    unsigned int virama_glyph = indic_plan->virama_glyph;
+    for (unsigned int i = start; i < end; i++)
+      if (info[i].codepoint == virama_glyph &&
+         _hb_glyph_info_ligated (&info[i]) &&
+         _hb_glyph_info_multiplied (&info[i]))
+      {
+        /* This will make sure that this glyph passes is_halant_or_coeng() test. */
+       info[i].indic_category() = OT_H;
+       _hb_glyph_info_clear_ligated_and_multiplied (&info[i]);
+      }
+  }
+
+
+  /* 4. Final reordering:
+   *
+   * After the localized forms and basic shaping forms GSUB features have been
+   * applied (see below), the shaping engine performs some final glyph
+   * reordering before applying all the remaining font features to the entire
+   * cluster.
+   */
+
+  bool try_pref = !!indic_plan->mask_array[PREF];
+
+  /* Find base again */
+  unsigned int base;
+  for (base = start; base < end; base++)
+    if (info[base].indic_position() >= POS_BASE_C)
+    {
+      if (try_pref && base + 1 < end && indic_plan->config->pref_len == 2)
+      {
+       for (unsigned int i = base + 1; i < end; i++)
+         if ((info[i].mask & indic_plan->mask_array[PREF]) != 0)
+         {
+           if (!(_hb_glyph_info_substituted (&info[i]) &&
+                 _hb_glyph_info_ligated_and_didnt_multiply (&info[i])))
+           {
+             /* Ok, this was a 'pref' candidate but didn't form any.
+              * Base is around here... */
+             base = i;
+             while (base < end && is_halant_or_coeng (info[base]))
+               base++;
+             info[base].indic_position() = POS_BASE_C;
+
+             try_pref = false;
+           }
+           break;
+         }
+      }
+
+      if (start < base && info[base].indic_position() > POS_BASE_C)
+        base--;
+      break;
+    }
+  if (base == end && start < base &&
+      is_one_of (info[base - 1], FLAG (OT_ZWJ)))
+    base--;
+  if (base < end)
+    while (start < base &&
+          is_one_of (info[base], (FLAG (OT_N) | HALANT_OR_COENG_FLAGS)))
+      base--;
+
+
+  /*   o Reorder matras:
+   *
+   *     If a pre-base matra character had been reordered before applying basic
+   *     features, the glyph can be moved closer to the main consonant based on
+   *     whether half-forms had been formed. Actual position for the matra is
+   *     defined as “after last standalone halant glyph, after initial matra
+   *     position and before the main consonant”. If ZWJ or ZWNJ follow this
+   *     halant, position is moved after it.
+   */
+
+  if (start + 1 < end && start < base) /* Otherwise there can't be any pre-base matra characters. */
+  {
+    /* If we lost track of base, alas, position before last thingy. */
+    unsigned int new_pos = base == end ? base - 2 : base - 1;
+
+    /* Malayalam / Tamil do not have "half" forms or explicit virama forms.
+     * The glyphs formed by 'half' are Chillus or ligated explicit viramas.
+     * We want to position matra after them.
+     */
+    if (buffer->props.script != HB_SCRIPT_MALAYALAM && buffer->props.script != HB_SCRIPT_TAMIL)
+    {
+      while (new_pos > start &&
+            !(is_one_of (info[new_pos], (FLAG (OT_M) | HALANT_OR_COENG_FLAGS))))
+       new_pos--;
+
+      /* If we found no Halant we are done.
+       * Otherwise only proceed if the Halant does
+       * not belong to the Matra itself! */
+      if (is_halant_or_coeng (info[new_pos]) &&
+         info[new_pos].indic_position() != POS_PRE_M)
+      {
+       /* -> If ZWJ or ZWNJ follow this halant, position is moved after it. */
+       if (new_pos + 1 < end && is_joiner (info[new_pos + 1]))
+         new_pos++;
+      }
+      else
+        new_pos = start; /* No move. */
+    }
+
+    if (start < new_pos && info[new_pos].indic_position () != POS_PRE_M)
+    {
+      /* Now go see if there's actually any matras... */
+      for (unsigned int i = new_pos; i > start; i--)
+       if (info[i - 1].indic_position () == POS_PRE_M)
+       {
+         unsigned int old_pos = i - 1;
+         hb_glyph_info_t tmp = info[old_pos];
+         memmove (&info[old_pos], &info[old_pos + 1], (new_pos - old_pos) * sizeof (info[0]));
+         info[new_pos] = tmp;
+         if (old_pos < base && base <= new_pos) /* Shouldn't actually happen. */
+           base--;
+         buffer->merge_clusters (new_pos, MIN (end, base + 1));
+         new_pos--;
+       }
+    } else {
+      for (unsigned int i = start; i < base; i++)
+       if (info[i].indic_position () == POS_PRE_M) {
+         buffer->merge_clusters (i, MIN (end, base + 1));
+         break;
+       }
+    }
+  }
+
+
+  /*   o Reorder reph:
+   *
+   *     Reph’s original position is always at the beginning of the syllable,
+   *     (i.e. it is not reordered at the character reordering stage). However,
+   *     it will be reordered according to the basic-forms shaping results.
+   *     Possible positions for reph, depending on the script, are; after main,
+   *     before post-base consonant forms, and after post-base consonant forms.
+   */
+
+  /* Two cases:
+   *
+   * - If repha is encoded as a sequence of characters (Ra,H or Ra,H,ZWJ), then
+   *   we should only move it if the sequence ligated to the repha form.
+   *
+   * - If repha is encoded separately and in the logical position, we should only
+   *   move it if it did NOT ligate.  If it ligated, it's probably the font trying
+   *   to make it work without the reordering.
+   */
+  if (start + 1 < end &&
+      info[start].indic_position() == POS_RA_TO_BECOME_REPH &&
+      ((info[start].indic_category() == OT_Repha) ^
+       _hb_glyph_info_ligated_and_didnt_multiply (&info[start])))
+  {
+    unsigned int new_reph_pos;
+    reph_position_t reph_pos = indic_plan->config->reph_pos;
+
+    assert (reph_pos != REPH_POS_DONT_CARE);
+
+    /*       1. If reph should be positioned after post-base consonant forms,
+     *          proceed to step 5.
+     */
+    if (reph_pos == REPH_POS_AFTER_POST)
+    {
+      goto reph_step_5;
+    }
+
+    /*       2. If the reph repositioning class is not after post-base: target
+     *          position is after the first explicit halant glyph between the
+     *          first post-reph consonant and last main consonant. If ZWJ or ZWNJ
+     *          are following this halant, position is moved after it. If such
+     *          position is found, this is the target position. Otherwise,
+     *          proceed to the next step.
+     *
+     *          Note: in old-implementation fonts, where classifications were
+     *          fixed in shaping engine, there was no case where reph position
+     *          will be found on this step.
+     */
+    {
+      new_reph_pos = start + 1;
+      while (new_reph_pos < base && !is_halant_or_coeng (info[new_reph_pos]))
+       new_reph_pos++;
+
+      if (new_reph_pos < base && is_halant_or_coeng (info[new_reph_pos]))
+      {
+       /* ->If ZWJ or ZWNJ are following this halant, position is moved after it. */
+       if (new_reph_pos + 1 < base && is_joiner (info[new_reph_pos + 1]))
+         new_reph_pos++;
+       goto reph_move;
+      }
+    }
+
+    /*       3. If reph should be repositioned after the main consonant: find the
+     *          first consonant not ligated with main, or find the first
+     *          consonant that is not a potential pre-base reordering Ra.
+     */
+    if (reph_pos == REPH_POS_AFTER_MAIN)
+    {
+      new_reph_pos = base;
+      while (new_reph_pos + 1 < end && info[new_reph_pos + 1].indic_position() <= POS_AFTER_MAIN)
+       new_reph_pos++;
+      if (new_reph_pos < end)
+        goto reph_move;
+    }
+
+    /*       4. If reph should be positioned before post-base consonant, find
+     *          first post-base classified consonant not ligated with main. If no
+     *          consonant is found, the target position should be before the
+     *          first matra, syllable modifier sign or vedic sign.
+     */
+    /* This is our take on what step 4 is trying to say (and failing, BADLY). */
+    if (reph_pos == REPH_POS_AFTER_SUB)
+    {
+      new_reph_pos = base;
+      while (new_reph_pos < end &&
+            !( FLAG (info[new_reph_pos + 1].indic_position()) & (FLAG (POS_POST_C) | FLAG (POS_AFTER_POST) | FLAG (POS_SMVD))))
+       new_reph_pos++;
+      if (new_reph_pos < end)
+        goto reph_move;
+    }
+
+    /*       5. If no consonant is found in steps 3 or 4, move reph to a position
+     *          immediately before the first post-base matra, syllable modifier
+     *          sign or vedic sign that has a reordering class after the intended
+     *          reph position. For example, if the reordering position for reph
+     *          is post-main, it will skip above-base matras that also have a
+     *          post-main position.
+     */
+    reph_step_5:
+    {
+      /* Copied from step 2. */
+      new_reph_pos = start + 1;
+      while (new_reph_pos < base && !is_halant_or_coeng (info[new_reph_pos]))
+       new_reph_pos++;
+
+      if (new_reph_pos < base && is_halant_or_coeng (info[new_reph_pos]))
+      {
+       /* ->If ZWJ or ZWNJ are following this halant, position is moved after it. */
+       if (new_reph_pos + 1 < base && is_joiner (info[new_reph_pos + 1]))
+         new_reph_pos++;
+       goto reph_move;
+      }
+    }
+
+    /*       6. Otherwise, reorder reph to the end of the syllable.
+     */
+    {
+      new_reph_pos = end - 1;
+      while (new_reph_pos > start && info[new_reph_pos].indic_position() == POS_SMVD)
+       new_reph_pos--;
+
+      /*
+       * If the Reph is to be ending up after a Matra,Halant sequence,
+       * position it before that Halant so it can interact with the Matra.
+       * However, if it's a plain Consonant,Halant we shouldn't do that.
+       * Uniscribe doesn't do this.
+       * TEST: U+0930,U+094D,U+0915,U+094B,U+094D
+       */
+      if (!hb_options ().uniscribe_bug_compatible &&
+         unlikely (is_halant_or_coeng (info[new_reph_pos]))) {
+       for (unsigned int i = base + 1; i < new_reph_pos; i++)
+         if (info[i].indic_category() == OT_M) {
+           /* Ok, got it. */
+           new_reph_pos--;
+         }
+      }
+      goto reph_move;
+    }
+
+    reph_move:
+    {
+      buffer->merge_clusters (start, new_reph_pos + 1);
+
+      /* Move */
+      hb_glyph_info_t reph = info[start];
+      memmove (&info[start], &info[start + 1], (new_reph_pos - start) * sizeof (info[0]));
+      info[new_reph_pos] = reph;
+      if (start < base && base <= new_reph_pos)
+       base--;
+    }
+  }
+
+
+  /*   o Reorder pre-base reordering consonants:
+   *
+   *     If a pre-base reordering consonant is found, reorder it according to
+   *     the following rules:
+   */
+
+  if (try_pref && base + 1 < end) /* Otherwise there can't be any pre-base reordering Ra. */
+  {
+    unsigned int pref_len = indic_plan->config->pref_len;
+    for (unsigned int i = base + 1; i < end; i++)
+      if ((info[i].mask & indic_plan->mask_array[PREF]) != 0)
+      {
+       /*       1. Only reorder a glyph produced by substitution during application
+        *          of the <pref> feature. (Note that a font may shape a Ra consonant with
+        *          the feature generally but block it in certain contexts.)
+        */
+        /* Note: We just check that something got substituted.  We don't check that
+        * the <pref> feature actually did it...
+        *
+        * If pref len is longer than one, then only reorder if it ligated.  If
+        * pref len is one, only reorder if it didn't ligate with other things. */
+       if (_hb_glyph_info_substituted (&info[i]) &&
+           ((pref_len == 1) ^ _hb_glyph_info_ligated_and_didnt_multiply (&info[i])))
+       {
+         /*
+          *       2. Try to find a target position the same way as for pre-base matra.
+          *          If it is found, reorder pre-base consonant glyph.
+          *
+          *       3. If position is not found, reorder immediately before main
+          *          consonant.
+          */
+
+         unsigned int new_pos = base;
+         /* Malayalam / Tamil do not have "half" forms or explicit virama forms.
+          * The glyphs formed by 'half' are Chillus or ligated explicit viramas.
+          * We want to position matra after them.
+          */
+         if (buffer->props.script != HB_SCRIPT_MALAYALAM && buffer->props.script != HB_SCRIPT_TAMIL)
+         {
+           while (new_pos > start &&
+                  !(is_one_of (info[new_pos - 1], FLAG(OT_M) | HALANT_OR_COENG_FLAGS)))
+             new_pos--;
+
+           /* In Khmer coeng model, a H,Ra can go *after* matras.  If it goes after a
+            * split matra, it should be reordered to *before* the left part of such matra. */
+           if (new_pos > start && info[new_pos - 1].indic_category() == OT_M)
+           {
+             unsigned int old_pos = i;
+             for (unsigned int i = base + 1; i < old_pos; i++)
+               if (info[i].indic_category() == OT_M)
+               {
+                 new_pos--;
+                 break;
+               }
+           }
+         }
+
+         if (new_pos > start && is_halant_or_coeng (info[new_pos - 1]))
+         {
+           /* -> If ZWJ or ZWNJ follow this halant, position is moved after it. */
+           if (new_pos < end && is_joiner (info[new_pos]))
+             new_pos++;
+         }
+
+         {
+           unsigned int old_pos = i;
+           buffer->merge_clusters (new_pos, old_pos + 1);
+           hb_glyph_info_t tmp = info[old_pos];
+           memmove (&info[new_pos + 1], &info[new_pos], (old_pos - new_pos) * sizeof (info[0]));
+           info[new_pos] = tmp;
+           if (new_pos <= base && base < old_pos)
+             base++;
+         }
+       }
+
+        break;
+      }
+  }
+
+
+  /* Apply 'init' to the Left Matra if it's a word start. */
+  if (info[start].indic_position () == POS_PRE_M &&
+      (!start ||
+       !(FLAG (_hb_glyph_info_get_general_category (&info[start - 1])) &
+        FLAG_RANGE (HB_UNICODE_GENERAL_CATEGORY_FORMAT, HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK))))
+    info[start].mask |= indic_plan->mask_array[INIT];
+
+
+  /*
+   * Finish off the clusters and go home!
+   */
+  if (hb_options ().uniscribe_bug_compatible)
+  {
+    switch ((hb_tag_t) plan->props.script)
+    {
+      case HB_SCRIPT_TAMIL:
+      case HB_SCRIPT_SINHALA:
+        break;
+
+      default:
+       /* Uniscribe merges the entire cluster... Except for Tamil & Sinhala.
+        * This means, half forms are submerged into the main consonants cluster.
+        * This is unnecessary, and makes cursor positioning harder, but that's what
+        * Uniscribe does. */
+       buffer->merge_clusters (start, end);
+       break;
+    }
+  }
+}
+
+
+static void
+final_reordering (const hb_ot_shape_plan_t *plan,
+                 hb_font_t *font HB_UNUSED,
+                 hb_buffer_t *buffer)
+{
+  unsigned int count = buffer->len;
+  if (unlikely (!count)) return;
+
+  hb_glyph_info_t *info = buffer->info;
+  unsigned int last = 0;
+  unsigned int last_syllable = info[0].syllable();
+  for (unsigned int i = 1; i < count; i++)
+    if (last_syllable != info[i].syllable()) {
+      final_reordering_syllable (plan, buffer, last, i);
+      last = i;
+      last_syllable = info[last].syllable();
+    }
+  final_reordering_syllable (plan, buffer, last, count);
+
+  HB_BUFFER_DEALLOCATE_VAR (buffer, indic_category);
+  HB_BUFFER_DEALLOCATE_VAR (buffer, indic_position);
+}
+
+
+static void
+clear_syllables (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                hb_font_t *font HB_UNUSED,
+                hb_buffer_t *buffer)
+{
+  hb_glyph_info_t *info = buffer->info;
+  unsigned int count = buffer->len;
+  for (unsigned int i = 0; i < count; i++)
+    info[i].syllable() = 0;
+}
+
+
+static bool
+decompose_indic (const hb_ot_shape_normalize_context_t *c,
+                hb_codepoint_t  ab,
+                hb_codepoint_t *a,
+                hb_codepoint_t *b)
+{
+  switch (ab)
+  {
+    /* Don't decompose these. */
+    case 0x0931u  : return false;
+    case 0x0B94u  : return false;
+
+
+    /*
+     * Decompose split matras that don't have Unicode decompositions.
+     */
+
+    case 0x0F77u  : *a = 0x0FB2u; *b= 0x0F81u; return true;
+    case 0x0F79u  : *a = 0x0FB3u; *b= 0x0F81u; return true;
+    case 0x17BEu  : *a = 0x17C1u; *b= 0x17BEu; return true;
+    case 0x17BFu  : *a = 0x17C1u; *b= 0x17BFu; return true;
+    case 0x17C0u  : *a = 0x17C1u; *b= 0x17C0u; return true;
+    case 0x17C4u  : *a = 0x17C1u; *b= 0x17C4u; return true;
+    case 0x17C5u  : *a = 0x17C1u; *b= 0x17C5u; return true;
+    case 0x1925u  : *a = 0x1920u; *b= 0x1923u; return true;
+    case 0x1926u  : *a = 0x1920u; *b= 0x1924u; return true;
+    case 0x1B3Cu  : *a = 0x1B42u; *b= 0x1B3Cu; return true;
+    case 0x1112Eu  : *a = 0x11127u; *b= 0x11131u; return true;
+    case 0x1112Fu  : *a = 0x11127u; *b= 0x11132u; return true;
+#if 0
+    /* This one has no decomposition in Unicode, but needs no decomposition either. */
+    /* case 0x0AC9u  : return false; */
+    case 0x0B57u  : *a = no decomp, -> RIGHT; return true;
+    case 0x1C29u  : *a = no decomp, -> LEFT; return true;
+    case 0xA9C0u  : *a = no decomp, -> RIGHT; return true;
+    case 0x111BuF  : *a = no decomp, -> ABOVE; return true;
+#endif
+  }
+
+  if ((ab == 0x0DDAu || hb_in_range (ab, 0x0DDCu, 0x0DDEu)))
+  {
+    /*
+     * Sinhala split matras...  Let the fun begin.
+     *
+     * These four characters have Unicode decompositions.  However, Uniscribe
+     * decomposes them "Khmer-style", that is, it uses the character itself to
+     * get the second half.  The first half of all four decompositions is always
+     * U+0DD9.
+     *
+     * Now, there are buggy fonts, namely, the widely used lklug.ttf, that are
+     * broken with Uniscribe.  But we need to support them.  As such, we only
+     * do the Uniscribe-style decomposition if the character is transformed into
+     * its "sec.half" form by the 'pstf' feature.  Otherwise, we fall back to
+     * Unicode decomposition.
+     *
+     * Note that we can't unconditionally use Unicode decomposition.  That would
+     * break some other fonts, that are designed to work with Uniscribe, and
+     * don't have positioning features for the Unicode-style decomposition.
+     *
+     * Argh...
+     *
+     * The Uniscribe behavior is now documented in the newly published Sinhala
+     * spec in 2012:
+     *
+     *   http://www.microsoft.com/typography/OpenTypeDev/sinhala/intro.htm#shaping
+     */
+
+    const indic_shape_plan_t *indic_plan = (const indic_shape_plan_t *) c->plan->data;
+
+    hb_codepoint_t glyph;
+
+    if (hb_options ().uniscribe_bug_compatible ||
+       (c->font->get_glyph (ab, 0, &glyph) &&
+        indic_plan->pstf.would_substitute (&glyph, 1, c->font->face)))
+    {
+      /* Ok, safe to use Uniscribe-style decomposition. */
+      *a = 0x0DD9u;
+      *b = ab;
+      return true;
+    }
+  }
+
+  return c->unicode->decompose (ab, a, b);
+}
+
+static bool
+compose_indic (const hb_ot_shape_normalize_context_t *c,
+              hb_codepoint_t  a,
+              hb_codepoint_t  b,
+              hb_codepoint_t *ab)
+{
+  /* Avoid recomposing split matras. */
+  if (HB_UNICODE_GENERAL_CATEGORY_IS_MARK (c->unicode->general_category (a)))
+    return false;
+
+  /* Composition-exclusion exceptions that we want to recompose. */
+  if (a == 0x09AFu && b == 0x09BCu) { *ab = 0x09DFu; return true; }
+
+  return c->unicode->compose (a, b, ab);
+}
+
+
+const hb_ot_complex_shaper_t _hb_ot_complex_shaper_indic =
+{
+  "indic",
+  collect_features_indic,
+  override_features_indic,
+  data_create_indic,
+  data_destroy_indic,
+  NULL, /* preprocess_text */
+  HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT,
+  decompose_indic,
+  compose_indic,
+  setup_masks_indic,
+  HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE,
+  false, /* fallback_position */
+};
diff --git a/src/hb-ot-shape-complex-myanmar-machine.hh b/src/hb-ot-shape-complex-myanmar-machine.hh
new file mode 100644 (file)
index 0000000..bb80d7a
--- /dev/null
@@ -0,0 +1,400 @@
+
+#line 1 "../../src/hb-ot-shape-complex-myanmar-machine.rl"
+/*
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_SHAPE_COMPLEX_MYANMAR_MACHINE_HH
+#define HB_OT_SHAPE_COMPLEX_MYANMAR_MACHINE_HH
+
+#include "hb-private.hh"
+
+
+#line 36 "hb-ot-shape-complex-myanmar-machine.hh.tmp"
+static const unsigned char _myanmar_syllable_machine_trans_keys[] = {
+       1u, 31u, 3u, 30u, 5u, 29u, 5u, 8u, 5u, 29u, 3u, 25u, 5u, 25u, 5u, 25u, 
+       3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 1u, 16u, 3u, 29u, 3u, 29u, 3u, 29u, 
+       3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 5u, 29u, 5u, 8u, 
+       5u, 29u, 3u, 25u, 5u, 25u, 5u, 25u, 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 
+       3u, 30u, 3u, 29u, 1u, 30u, 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 
+       3u, 29u, 3u, 29u, 3u, 29u, 3u, 29u, 8u, 8u, 0
+};
+
+static const char _myanmar_syllable_machine_key_spans[] = {
+       31, 28, 25, 4, 25, 23, 21, 21, 
+       27, 27, 27, 27, 16, 27, 27, 27, 
+       27, 27, 27, 27, 27, 27, 25, 4, 
+       25, 23, 21, 21, 27, 27, 27, 27, 
+       28, 27, 30, 27, 27, 27, 27, 27, 
+       27, 27, 27, 27, 1
+};
+
+static const short _myanmar_syllable_machine_index_offsets[] = {
+       0, 32, 61, 87, 92, 118, 142, 164, 
+       186, 214, 242, 270, 298, 315, 343, 371, 
+       399, 427, 455, 483, 511, 539, 567, 593, 
+       598, 624, 648, 670, 692, 720, 748, 776, 
+       804, 833, 861, 892, 920, 948, 976, 1004, 
+       1032, 1060, 1088, 1116, 1144
+};
+
+static const char _myanmar_syllable_machine_indicies[] = {
+       1, 1, 2, 3, 4, 4, 0, 5, 
+       0, 6, 1, 0, 0, 0, 0, 7, 
+       0, 8, 1, 0, 9, 10, 11, 12, 
+       13, 14, 15, 16, 17, 18, 19, 0, 
+       21, 22, 23, 23, 20, 24, 20, 25, 
+       20, 20, 20, 20, 20, 20, 20, 26, 
+       20, 20, 27, 28, 29, 30, 31, 32, 
+       33, 34, 35, 36, 20, 23, 23, 20, 
+       24, 20, 20, 20, 20, 20, 20, 20, 
+       20, 20, 37, 20, 20, 20, 20, 20, 
+       20, 31, 20, 20, 20, 35, 20, 23, 
+       23, 20, 24, 20, 23, 23, 20, 24, 
+       20, 20, 20, 20, 20, 20, 20, 20, 
+       20, 20, 20, 20, 20, 20, 20, 20, 
+       31, 20, 20, 20, 35, 20, 38, 20, 
+       23, 23, 20, 24, 20, 31, 20, 20, 
+       20, 20, 20, 20, 20, 39, 20, 20, 
+       20, 20, 20, 20, 31, 20, 23, 23, 
+       20, 24, 20, 20, 20, 20, 20, 20, 
+       20, 20, 20, 39, 20, 20, 20, 20, 
+       20, 20, 31, 20, 23, 23, 20, 24, 
+       20, 20, 20, 20, 20, 20, 20, 20, 
+       20, 20, 20, 20, 20, 20, 20, 20, 
+       31, 20, 21, 20, 23, 23, 20, 24, 
+       20, 25, 20, 20, 20, 20, 20, 20, 
+       20, 40, 20, 20, 40, 20, 20, 20, 
+       31, 41, 20, 20, 35, 20, 21, 20, 
+       23, 23, 20, 24, 20, 25, 20, 20, 
+       20, 20, 20, 20, 20, 20, 20, 20, 
+       20, 20, 20, 20, 31, 20, 20, 20, 
+       35, 20, 21, 20, 23, 23, 20, 24, 
+       20, 25, 20, 20, 20, 20, 20, 20, 
+       20, 40, 20, 20, 20, 20, 20, 20, 
+       31, 41, 20, 20, 35, 20, 21, 20, 
+       23, 23, 20, 24, 20, 25, 20, 20, 
+       20, 20, 20, 20, 20, 20, 20, 20, 
+       20, 20, 20, 20, 31, 41, 20, 20, 
+       35, 20, 1, 1, 20, 20, 20, 20, 
+       20, 20, 20, 20, 20, 20, 20, 20, 
+       20, 1, 20, 21, 20, 23, 23, 20, 
+       24, 20, 25, 20, 20, 20, 20, 20, 
+       20, 20, 26, 20, 20, 27, 28, 29, 
+       30, 31, 32, 33, 34, 35, 20, 21, 
+       20, 23, 23, 20, 24, 20, 25, 20, 
+       20, 20, 20, 20, 20, 20, 34, 20, 
+       20, 20, 20, 20, 20, 31, 32, 33, 
+       34, 35, 20, 21, 20, 23, 23, 20, 
+       24, 20, 25, 20, 20, 20, 20, 20, 
+       20, 20, 20, 20, 20, 20, 20, 20, 
+       20, 31, 32, 33, 34, 35, 20, 21, 
+       20, 23, 23, 20, 24, 20, 25, 20, 
+       20, 20, 20, 20, 20, 20, 20, 20, 
+       20, 20, 20, 20, 20, 31, 32, 33, 
+       20, 35, 20, 21, 20, 23, 23, 20, 
+       24, 20, 25, 20, 20, 20, 20, 20, 
+       20, 20, 20, 20, 20, 20, 20, 20, 
+       20, 31, 20, 33, 20, 35, 20, 21, 
+       20, 23, 23, 20, 24, 20, 25, 20, 
+       20, 20, 20, 20, 20, 20, 34, 20, 
+       20, 27, 20, 29, 20, 31, 32, 33, 
+       34, 35, 20, 21, 20, 23, 23, 20, 
+       24, 20, 25, 20, 20, 20, 20, 20, 
+       20, 20, 34, 20, 20, 27, 20, 20, 
+       20, 31, 32, 33, 34, 35, 20, 21, 
+       20, 23, 23, 20, 24, 20, 25, 20, 
+       20, 20, 20, 20, 20, 20, 34, 20, 
+       20, 27, 28, 29, 20, 31, 32, 33, 
+       34, 35, 20, 21, 22, 23, 23, 20, 
+       24, 20, 25, 20, 20, 20, 20, 20, 
+       20, 20, 26, 20, 20, 27, 28, 29, 
+       30, 31, 32, 33, 34, 35, 20, 3, 
+       3, 42, 5, 42, 42, 42, 42, 42, 
+       42, 42, 42, 42, 43, 42, 42, 42, 
+       42, 42, 42, 13, 42, 42, 42, 17, 
+       42, 3, 3, 42, 5, 42, 3, 3, 
+       42, 5, 42, 42, 42, 42, 42, 42, 
+       42, 42, 42, 42, 42, 42, 42, 42, 
+       42, 42, 13, 42, 42, 42, 17, 42, 
+       44, 42, 3, 3, 42, 5, 42, 13, 
+       42, 42, 42, 42, 42, 42, 42, 45, 
+       42, 42, 42, 42, 42, 42, 13, 42, 
+       3, 3, 42, 5, 42, 42, 42, 42, 
+       42, 42, 42, 42, 42, 45, 42, 42, 
+       42, 42, 42, 42, 13, 42, 3, 3, 
+       42, 5, 42, 42, 42, 42, 42, 42, 
+       42, 42, 42, 42, 42, 42, 42, 42, 
+       42, 42, 13, 42, 2, 42, 3, 3, 
+       42, 5, 42, 6, 42, 42, 42, 42, 
+       42, 42, 42, 46, 42, 42, 46, 42, 
+       42, 42, 13, 47, 42, 42, 17, 42, 
+       2, 42, 3, 3, 42, 5, 42, 6, 
+       42, 42, 42, 42, 42, 42, 42, 42, 
+       42, 42, 42, 42, 42, 42, 13, 42, 
+       42, 42, 17, 42, 2, 42, 3, 3, 
+       42, 5, 42, 6, 42, 42, 42, 42, 
+       42, 42, 42, 46, 42, 42, 42, 42, 
+       42, 42, 13, 47, 42, 42, 17, 42, 
+       2, 42, 3, 3, 42, 5, 42, 6, 
+       42, 42, 42, 42, 42, 42, 42, 42, 
+       42, 42, 42, 42, 42, 42, 13, 47, 
+       42, 42, 17, 42, 21, 22, 23, 23, 
+       20, 24, 20, 25, 20, 20, 20, 20, 
+       20, 20, 20, 48, 20, 20, 27, 28, 
+       29, 30, 31, 32, 33, 34, 35, 36, 
+       20, 21, 49, 23, 23, 20, 24, 20, 
+       25, 20, 20, 20, 20, 20, 20, 20, 
+       26, 20, 20, 27, 28, 29, 30, 31, 
+       32, 33, 34, 35, 20, 1, 1, 2, 
+       3, 3, 3, 42, 5, 42, 6, 1, 
+       42, 42, 42, 42, 1, 42, 8, 1, 
+       42, 9, 10, 11, 12, 13, 14, 15, 
+       16, 17, 18, 42, 2, 42, 3, 3, 
+       42, 5, 42, 6, 42, 42, 42, 42, 
+       42, 42, 42, 8, 42, 42, 9, 10, 
+       11, 12, 13, 14, 15, 16, 17, 42, 
+       2, 42, 3, 3, 42, 5, 42, 6, 
+       42, 42, 42, 42, 42, 42, 42, 16, 
+       42, 42, 42, 42, 42, 42, 13, 14, 
+       15, 16, 17, 42, 2, 42, 3, 3, 
+       42, 5, 42, 6, 42, 42, 42, 42, 
+       42, 42, 42, 42, 42, 42, 42, 42, 
+       42, 42, 13, 14, 15, 16, 17, 42, 
+       2, 42, 3, 3, 42, 5, 42, 6, 
+       42, 42, 42, 42, 42, 42, 42, 42, 
+       42, 42, 42, 42, 42, 42, 13, 14, 
+       15, 42, 17, 42, 2, 42, 3, 3, 
+       42, 5, 42, 6, 42, 42, 42, 42, 
+       42, 42, 42, 42, 42, 42, 42, 42, 
+       42, 42, 13, 42, 15, 42, 17, 42, 
+       2, 42, 3, 3, 42, 5, 42, 6, 
+       42, 42, 42, 42, 42, 42, 42, 16, 
+       42, 42, 9, 42, 11, 42, 13, 14, 
+       15, 16, 17, 42, 2, 42, 3, 3, 
+       42, 5, 42, 6, 42, 42, 42, 42, 
+       42, 42, 42, 16, 42, 42, 9, 42, 
+       42, 42, 13, 14, 15, 16, 17, 42, 
+       2, 42, 3, 3, 42, 5, 42, 6, 
+       42, 42, 42, 42, 42, 42, 42, 16, 
+       42, 42, 9, 10, 11, 42, 13, 14, 
+       15, 16, 17, 42, 2, 3, 3, 3, 
+       42, 5, 42, 6, 42, 42, 42, 42, 
+       42, 42, 42, 8, 42, 42, 9, 10, 
+       11, 12, 13, 14, 15, 16, 17, 42, 
+       51, 50, 0
+};
+
+static const char _myanmar_syllable_machine_trans_targs[] = {
+       0, 1, 22, 0, 0, 23, 29, 32, 
+       35, 36, 40, 41, 42, 25, 38, 39, 
+       37, 28, 43, 44, 0, 2, 12, 0, 
+       3, 9, 13, 14, 18, 19, 20, 5, 
+       16, 17, 15, 8, 21, 4, 6, 7, 
+       10, 11, 0, 24, 26, 27, 30, 31, 
+       33, 34, 0, 0
+};
+
+static const char _myanmar_syllable_machine_trans_actions[] = {
+       3, 0, 0, 4, 5, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 6, 0, 0, 7, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 8, 0, 0, 0, 0, 0, 
+       0, 0, 9, 10
+};
+
+static const char _myanmar_syllable_machine_to_state_actions[] = {
+       1, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0
+};
+
+static const char _myanmar_syllable_machine_from_state_actions[] = {
+       2, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0, 0, 0, 0, 
+       0, 0, 0, 0, 0
+};
+
+static const short _myanmar_syllable_machine_eof_trans[] = {
+       0, 21, 21, 21, 21, 21, 21, 21, 
+       21, 21, 21, 21, 21, 21, 21, 21, 
+       21, 21, 21, 21, 21, 21, 43, 43, 
+       43, 43, 43, 43, 43, 43, 43, 43, 
+       21, 21, 43, 43, 43, 43, 43, 43, 
+       43, 43, 43, 43, 51
+};
+
+static const int myanmar_syllable_machine_start = 0;
+static const int myanmar_syllable_machine_first_final = 0;
+static const int myanmar_syllable_machine_error = -1;
+
+static const int myanmar_syllable_machine_en_main = 0;
+
+
+#line 36 "../../src/hb-ot-shape-complex-myanmar-machine.rl"
+
+
+
+#line 93 "../../src/hb-ot-shape-complex-myanmar-machine.rl"
+
+
+#define found_syllable(syllable_type) \
+  HB_STMT_START { \
+    if (0) fprintf (stderr, "syllable %d..%d %s\n", last, p+1, #syllable_type); \
+    for (unsigned int i = last; i < p+1; i++) \
+      info[i].syllable() = (syllable_serial << 4) | syllable_type; \
+    last = p+1; \
+    syllable_serial++; \
+    if (unlikely (syllable_serial == 16)) syllable_serial = 1; \
+  } HB_STMT_END
+
+static void
+find_syllables (hb_buffer_t *buffer)
+{
+  unsigned int p, pe, eof, ts HB_UNUSED, te HB_UNUSED, act HB_UNUSED;
+  int cs;
+  hb_glyph_info_t *info = buffer->info;
+  
+#line 289 "hb-ot-shape-complex-myanmar-machine.hh.tmp"
+       {
+       cs = myanmar_syllable_machine_start;
+       ts = 0;
+       te = 0;
+       act = 0;
+       }
+
+#line 114 "../../src/hb-ot-shape-complex-myanmar-machine.rl"
+
+
+  p = 0;
+  pe = eof = buffer->len;
+
+  unsigned int last = 0;
+  unsigned int syllable_serial = 1;
+  
+#line 306 "hb-ot-shape-complex-myanmar-machine.hh.tmp"
+       {
+       int _slen;
+       int _trans;
+       const unsigned char *_keys;
+       const char *_inds;
+       if ( p == pe )
+               goto _test_eof;
+_resume:
+       switch ( _myanmar_syllable_machine_from_state_actions[cs] ) {
+       case 2:
+#line 1 "NONE"
+       {ts = p;}
+       break;
+#line 320 "hb-ot-shape-complex-myanmar-machine.hh.tmp"
+       }
+
+       _keys = _myanmar_syllable_machine_trans_keys + (cs<<1);
+       _inds = _myanmar_syllable_machine_indicies + _myanmar_syllable_machine_index_offsets[cs];
+
+       _slen = _myanmar_syllable_machine_key_spans[cs];
+       _trans = _inds[ _slen > 0 && _keys[0] <=( info[p].myanmar_category()) &&
+               ( info[p].myanmar_category()) <= _keys[1] ?
+               ( info[p].myanmar_category()) - _keys[0] : _slen ];
+
+_eof_trans:
+       cs = _myanmar_syllable_machine_trans_targs[_trans];
+
+       if ( _myanmar_syllable_machine_trans_actions[_trans] == 0 )
+               goto _again;
+
+       switch ( _myanmar_syllable_machine_trans_actions[_trans] ) {
+       case 7:
+#line 85 "../../src/hb-ot-shape-complex-myanmar-machine.rl"
+       {te = p+1;{ found_syllable (consonant_syllable); }}
+       break;
+       case 5:
+#line 86 "../../src/hb-ot-shape-complex-myanmar-machine.rl"
+       {te = p+1;{ found_syllable (non_myanmar_cluster); }}
+       break;
+       case 10:
+#line 87 "../../src/hb-ot-shape-complex-myanmar-machine.rl"
+       {te = p+1;{ found_syllable (punctuation_cluster); }}
+       break;
+       case 4:
+#line 88 "../../src/hb-ot-shape-complex-myanmar-machine.rl"
+       {te = p+1;{ found_syllable (broken_cluster); }}
+       break;
+       case 3:
+#line 89 "../../src/hb-ot-shape-complex-myanmar-machine.rl"
+       {te = p+1;{ found_syllable (non_myanmar_cluster); }}
+       break;
+       case 6:
+#line 85 "../../src/hb-ot-shape-complex-myanmar-machine.rl"
+       {te = p;p--;{ found_syllable (consonant_syllable); }}
+       break;
+       case 8:
+#line 88 "../../src/hb-ot-shape-complex-myanmar-machine.rl"
+       {te = p;p--;{ found_syllable (broken_cluster); }}
+       break;
+       case 9:
+#line 89 "../../src/hb-ot-shape-complex-myanmar-machine.rl"
+       {te = p;p--;{ found_syllable (non_myanmar_cluster); }}
+       break;
+#line 370 "hb-ot-shape-complex-myanmar-machine.hh.tmp"
+       }
+
+_again:
+       switch ( _myanmar_syllable_machine_to_state_actions[cs] ) {
+       case 1:
+#line 1 "NONE"
+       {ts = 0;}
+       break;
+#line 379 "hb-ot-shape-complex-myanmar-machine.hh.tmp"
+       }
+
+       if ( ++p != pe )
+               goto _resume;
+       _test_eof: {}
+       if ( p == eof )
+       {
+       if ( _myanmar_syllable_machine_eof_trans[cs] > 0 ) {
+               _trans = _myanmar_syllable_machine_eof_trans[cs] - 1;
+               goto _eof_trans;
+       }
+       }
+
+       }
+
+#line 123 "../../src/hb-ot-shape-complex-myanmar-machine.rl"
+
+}
+
+#undef found_syllable
+
+#endif /* HB_OT_SHAPE_COMPLEX_MYANMAR_MACHINE_HH */
diff --git a/src/hb-ot-shape-complex-myanmar-machine.rl b/src/hb-ot-shape-complex-myanmar-machine.rl
new file mode 100644 (file)
index 0000000..9649a91
--- /dev/null
@@ -0,0 +1,128 @@
+/*
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_SHAPE_COMPLEX_MYANMAR_MACHINE_HH
+#define HB_OT_SHAPE_COMPLEX_MYANMAR_MACHINE_HH
+
+#include "hb-private.hh"
+
+%%{
+  machine myanmar_syllable_machine;
+  alphtype unsigned char;
+  write data;
+}%%
+
+%%{
+
+# Same order as enum myanmar_category_t.  Not sure how to avoid duplication.
+A    = 10;
+As   = 18;
+C    = 1;
+D    = 19;
+D0   = 20;
+DB   = 3;
+GB   = 11;
+H    = 4;
+IV   = 2;
+MH   = 21;
+MR   = 22;
+MW   = 23;
+MY   = 24;
+PT   = 25;
+V    = 8;
+VAbv = 26;
+VBlw = 27;
+VPre = 28;
+VPst = 29;
+VS   = 30;
+ZWJ  = 6;
+ZWNJ = 5;
+Ra   = 16;
+P    = 31;
+
+j = ZWJ|ZWNJ;                  # Joiners
+k = (Ra As H);                 # Kinzi
+
+c = C|Ra;                      # is_consonant
+
+medial_group = MY? MR? MW? MH? As?;
+main_vowel_group = VPre* VAbv* VBlw* A* (DB As?)?;
+post_vowel_group = VPst MH? As* VAbv* A* (DB As?)?;
+pwo_tone_group = PT A* DB? As?;
+
+complex_syllable_tail = As* medial_group main_vowel_group post_vowel_group* pwo_tone_group* V* j?;
+syllable_tail = (H | complex_syllable_tail);
+
+consonant_syllable =   k? (c|IV|D|GB).VS? (H (c|IV).VS?)* syllable_tail;
+punctuation_cluster =  P V;
+broken_cluster =       k? VS? syllable_tail;
+other =                        any;
+
+main := |*
+       consonant_syllable      => { found_syllable (consonant_syllable); };
+       j                       => { found_syllable (non_myanmar_cluster); };
+       punctuation_cluster     => { found_syllable (punctuation_cluster); };
+       broken_cluster          => { found_syllable (broken_cluster); };
+       other                   => { found_syllable (non_myanmar_cluster); };
+*|;
+
+
+}%%
+
+#define found_syllable(syllable_type) \
+  HB_STMT_START { \
+    if (0) fprintf (stderr, "syllable %d..%d %s\n", last, p+1, #syllable_type); \
+    for (unsigned int i = last; i < p+1; i++) \
+      info[i].syllable() = (syllable_serial << 4) | syllable_type; \
+    last = p+1; \
+    syllable_serial++; \
+    if (unlikely (syllable_serial == 16)) syllable_serial = 1; \
+  } HB_STMT_END
+
+static void
+find_syllables (hb_buffer_t *buffer)
+{
+  unsigned int p, pe, eof, ts HB_UNUSED, te HB_UNUSED, act HB_UNUSED;
+  int cs;
+  hb_glyph_info_t *info = buffer->info;
+  %%{
+    write init;
+    getkey info[p].myanmar_category();
+  }%%
+
+  p = 0;
+  pe = eof = buffer->len;
+
+  unsigned int last = 0;
+  unsigned int syllable_serial = 1;
+  %%{
+    write exec;
+  }%%
+}
+
+#undef found_syllable
+
+#endif /* HB_OT_SHAPE_COMPLEX_MYANMAR_MACHINE_HH */
diff --git a/src/hb-ot-shape-complex-myanmar.cc b/src/hb-ot-shape-complex-myanmar.cc
new file mode 100644 (file)
index 0000000..d016380
--- /dev/null
@@ -0,0 +1,571 @@
+/*
+ * Copyright © 2011,2012,2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-ot-shape-complex-indic-private.hh"
+
+/* buffer var allocations */
+#define myanmar_category() complex_var_u8_0() /* myanmar_category_t */
+#define myanmar_position() complex_var_u8_1() /* myanmar_position_t */
+
+
+/*
+ * Myanmar shaper.
+ */
+
+static const hb_tag_t
+basic_features[] =
+{
+  /*
+   * Basic features.
+   * These features are applied in order, one at a time, after initial_reordering.
+   */
+  HB_TAG('r','p','h','f'),
+  HB_TAG('p','r','e','f'),
+  HB_TAG('b','l','w','f'),
+  HB_TAG('p','s','t','f'),
+};
+static const hb_tag_t
+other_features[] =
+{
+  /*
+   * Other features.
+   * These features are applied all at once, after final_reordering.
+   */
+  HB_TAG('p','r','e','s'),
+  HB_TAG('a','b','v','s'),
+  HB_TAG('b','l','w','s'),
+  HB_TAG('p','s','t','s'),
+  /* Positioning features, though we don't care about the types. */
+  HB_TAG('d','i','s','t'),
+  /* Pre-release version of Windows 8 Myanmar font had abvm,blwm
+   * features.  The released Windows 8 version of the font (as well
+   * as the released spec) used 'mark' instead.  The Windows 8
+   * shaper however didn't apply 'mark' but did apply 'mkmk'.
+   * Perhaps it applied abvm/blwm.  This was fixed in a Windows 8
+   * update, so now it applies mark/mkmk.  We are guessing that
+   * it still applies abvm/blwm too.
+   */
+  HB_TAG('a','b','v','m'),
+  HB_TAG('b','l','w','m'),
+};
+
+static void
+setup_syllables (const hb_ot_shape_plan_t *plan,
+                hb_font_t *font,
+                hb_buffer_t *buffer);
+static void
+initial_reordering (const hb_ot_shape_plan_t *plan,
+                   hb_font_t *font,
+                   hb_buffer_t *buffer);
+static void
+final_reordering (const hb_ot_shape_plan_t *plan,
+                 hb_font_t *font,
+                 hb_buffer_t *buffer);
+
+static void
+collect_features_myanmar (hb_ot_shape_planner_t *plan)
+{
+  hb_ot_map_builder_t *map = &plan->map;
+
+  /* Do this before any lookups have been applied. */
+  map->add_gsub_pause (setup_syllables);
+
+  map->add_global_bool_feature (HB_TAG('l','o','c','l'));
+  /* The Indic specs do not require ccmp, but we apply it here since if
+   * there is a use of it, it's typically at the beginning. */
+  map->add_global_bool_feature (HB_TAG('c','c','m','p'));
+
+
+  map->add_gsub_pause (initial_reordering);
+  for (unsigned int i = 0; i < ARRAY_LENGTH (basic_features); i++)
+  {
+    map->add_feature (basic_features[i], 1, F_GLOBAL | F_MANUAL_ZWJ);
+    map->add_gsub_pause (NULL);
+  }
+  map->add_gsub_pause (final_reordering);
+  for (unsigned int i = 0; i < ARRAY_LENGTH (other_features); i++)
+    map->add_feature (other_features[i], 1, F_GLOBAL | F_MANUAL_ZWJ);
+}
+
+static void
+override_features_myanmar (hb_ot_shape_planner_t *plan)
+{
+  plan->map.add_feature (HB_TAG('l','i','g','a'), 0, F_GLOBAL);
+}
+
+
+enum syllable_type_t {
+  consonant_syllable,
+  punctuation_cluster,
+  broken_cluster,
+  non_myanmar_cluster,
+};
+
+#include "hb-ot-shape-complex-myanmar-machine.hh"
+
+
+/* Note: This enum is duplicated in the -machine.rl source file.
+ * Not sure how to avoid duplication. */
+enum myanmar_category_t {
+  OT_As  = 18, /* Asat */
+  OT_D   = 19, /* Digits except zero */
+  OT_D0  = 20, /* Digit zero */
+  OT_DB  = OT_N, /* Dot below */
+  OT_GB  = OT_PLACEHOLDER,
+  OT_MH  = 21, /* Various consonant medial types */
+  OT_MR  = 22, /* Various consonant medial types */
+  OT_MW  = 23, /* Various consonant medial types */
+  OT_MY  = 24, /* Various consonant medial types */
+  OT_PT  = 25, /* Pwo and other tones */
+  OT_VAbv = 26,
+  OT_VBlw = 27,
+  OT_VPre = 28,
+  OT_VPst = 29,
+  OT_VS   = 30, /* Variation selectors */
+  OT_P    = 31  /* Punctuation */
+};
+
+
+static inline bool
+is_one_of (const hb_glyph_info_t &info, unsigned int flags)
+{
+  /* If it ligated, all bets are off. */
+  if (_hb_glyph_info_ligated (&info)) return false;
+  return !!(FLAG (info.myanmar_category()) & flags);
+}
+
+static inline bool
+is_consonant (const hb_glyph_info_t &info)
+{
+  return is_one_of (info, CONSONANT_FLAGS);
+}
+
+
+static inline void
+set_myanmar_properties (hb_glyph_info_t &info)
+{
+  hb_codepoint_t u = info.codepoint;
+  unsigned int type = hb_indic_get_categories (u);
+  indic_category_t cat = (indic_category_t) (type & 0x7Fu);
+  indic_position_t pos = (indic_position_t) (type >> 8);
+
+  /* Myanmar
+   * http://www.microsoft.com/typography/OpenTypeDev/myanmar/intro.htm#analyze
+   */
+  if (unlikely (hb_in_range (u, 0xFE00u, 0xFE0Fu)))
+    cat = (indic_category_t) OT_VS;
+
+  switch (u)
+  {
+    case 0x104Eu:
+      cat = (indic_category_t) OT_C; /* The spec says C, IndicSyllableCategory doesn't have. */
+      break;
+
+    case 0x002Du: case 0x00A0u: case 0x00D7u: case 0x2012u:
+    case 0x2013u: case 0x2014u: case 0x2015u: case 0x2022u:
+    case 0x25CCu: case 0x25FBu: case 0x25FCu: case 0x25FDu:
+    case 0x25FEu:
+      cat = (indic_category_t) OT_GB;
+      break;
+
+    case 0x1004u: case 0x101Bu: case 0x105Au:
+      cat = (indic_category_t) OT_Ra;
+      break;
+
+    case 0x1032u: case 0x1036u:
+      cat = (indic_category_t) OT_A;
+      break;
+
+    case 0x103Au:
+      cat = (indic_category_t) OT_As;
+      break;
+
+    case 0x1041u: case 0x1042u: case 0x1043u: case 0x1044u:
+    case 0x1045u: case 0x1046u: case 0x1047u: case 0x1048u:
+    case 0x1049u: case 0x1090u: case 0x1091u: case 0x1092u:
+    case 0x1093u: case 0x1094u: case 0x1095u: case 0x1096u:
+    case 0x1097u: case 0x1098u: case 0x1099u:
+      cat = (indic_category_t) OT_D;
+      break;
+
+    case 0x1040u:
+      cat = (indic_category_t) OT_D; /* XXX The spec says D0, but Uniscribe doesn't seem to do. */
+      break;
+
+    case 0x103Eu: case 0x1060u:
+      cat = (indic_category_t) OT_MH;
+      break;
+
+    case 0x103Cu:
+      cat = (indic_category_t) OT_MR;
+      break;
+
+    case 0x103Du: case 0x1082u:
+      cat = (indic_category_t) OT_MW;
+      break;
+
+    case 0x103Bu: case 0x105Eu: case 0x105Fu:
+      cat = (indic_category_t) OT_MY;
+      break;
+
+    case 0x1063u: case 0x1064u: case 0x1069u: case 0x106Au:
+    case 0x106Bu: case 0x106Cu: case 0x106Du: case 0xAA7Bu:
+      cat = (indic_category_t) OT_PT;
+      break;
+
+    case 0x1038u: case 0x1087u: case 0x1088u: case 0x1089u:
+    case 0x108Au: case 0x108Bu: case 0x108Cu: case 0x108Du:
+    case 0x108Fu: case 0x109Au: case 0x109Bu: case 0x109Cu:
+      cat = (indic_category_t) OT_SM;
+      break;
+
+    case 0x104Au: case 0x104Bu:
+      cat = (indic_category_t) OT_P;
+      break;
+  }
+
+  if (cat == OT_M)
+  {
+    switch ((int) pos)
+    {
+      case POS_PRE_C:  cat = (indic_category_t) OT_VPre;
+                       pos = POS_PRE_M;                  break;
+      case POS_ABOVE_C:        cat = (indic_category_t) OT_VAbv; break;
+      case POS_BELOW_C:        cat = (indic_category_t) OT_VBlw; break;
+      case POS_POST_C: cat = (indic_category_t) OT_VPst; break;
+    }
+  }
+
+  info.myanmar_category() = (myanmar_category_t) cat;
+  info.myanmar_position() = pos;
+}
+
+
+
+static void
+setup_masks_myanmar (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                  hb_buffer_t              *buffer,
+                  hb_font_t                *font HB_UNUSED)
+{
+  HB_BUFFER_ALLOCATE_VAR (buffer, myanmar_category);
+  HB_BUFFER_ALLOCATE_VAR (buffer, myanmar_position);
+
+  /* We cannot setup masks here.  We save information about characters
+   * and setup masks later on in a pause-callback. */
+
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+    set_myanmar_properties (info[i]);
+}
+
+static void
+setup_syllables (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                hb_font_t *font HB_UNUSED,
+                hb_buffer_t *buffer)
+{
+  find_syllables (buffer);
+}
+
+static int
+compare_myanmar_order (const hb_glyph_info_t *pa, const hb_glyph_info_t *pb)
+{
+  int a = pa->myanmar_position();
+  int b = pb->myanmar_position();
+
+  return a < b ? -1 : a == b ? 0 : +1;
+}
+
+
+/* Rules from:
+ * http://www.microsoft.com/typography/OpenTypeDev/myanmar/intro.htm */
+
+static void
+initial_reordering_consonant_syllable (const hb_ot_shape_plan_t *plan,
+                                      hb_face_t *face,
+                                      hb_buffer_t *buffer,
+                                      unsigned int start, unsigned int end)
+{
+  hb_glyph_info_t *info = buffer->info;
+
+  unsigned int base = end;
+  bool has_reph = false;
+
+  {
+    unsigned int limit = start;
+    if (start + 3 <= end &&
+       info[start  ].myanmar_category() == OT_Ra &&
+       info[start+1].myanmar_category() == OT_As &&
+       info[start+2].myanmar_category() == OT_H)
+    {
+      limit += 3;
+      base = start;
+      has_reph = true;
+    }
+
+    {
+      if (!has_reph)
+       base = limit;
+
+      for (unsigned int i = limit; i < end; i++)
+       if (is_consonant (info[i]))
+       {
+         base = i;
+         break;
+       }
+    }
+  }
+
+  /* Reorder! */
+  {
+    unsigned int i = start;
+    for (; i < start + (has_reph ? 3 : 0); i++)
+      info[i].myanmar_position() = POS_AFTER_MAIN;
+    for (; i < base; i++)
+      info[i].myanmar_position() = POS_PRE_C;
+    if (i < end)
+    {
+      info[i].myanmar_position() = POS_BASE_C;
+      i++;
+    }
+    indic_position_t pos = POS_AFTER_MAIN;
+    /* The following loop may be ugly, but it implements all of
+     * Myanmar reordering! */
+    for (; i < end; i++)
+    {
+      if (info[i].myanmar_category() == OT_MR) /* Pre-base reordering */
+      {
+       info[i].myanmar_position() = POS_PRE_C;
+       continue;
+      }
+      if (info[i].myanmar_position() < POS_BASE_C) /* Left matra */
+      {
+       continue;
+      }
+
+      if (pos == POS_AFTER_MAIN && info[i].myanmar_category() == OT_VBlw)
+      {
+       pos = POS_BELOW_C;
+       info[i].myanmar_position() = pos;
+       continue;
+      }
+
+      if (pos == POS_BELOW_C && info[i].myanmar_category() == OT_A)
+      {
+       info[i].myanmar_position() = POS_BEFORE_SUB;
+       continue;
+      }
+      if (pos == POS_BELOW_C && info[i].myanmar_category() == OT_VBlw)
+      {
+       info[i].myanmar_position() = pos;
+       continue;
+      }
+      if (pos == POS_BELOW_C && info[i].myanmar_category() != OT_A)
+      {
+        pos = POS_AFTER_SUB;
+       info[i].myanmar_position() = pos;
+       continue;
+      }
+      info[i].myanmar_position() = pos;
+    }
+  }
+
+  buffer->merge_clusters (start, end);
+  /* Sit tight, rock 'n roll! */
+  hb_bubble_sort (info + start, end - start, compare_myanmar_order);
+}
+
+static void
+initial_reordering_broken_cluster (const hb_ot_shape_plan_t *plan,
+                                  hb_face_t *face,
+                                  hb_buffer_t *buffer,
+                                  unsigned int start, unsigned int end)
+{
+  /* We already inserted dotted-circles, so just call the consonant_syllable. */
+  initial_reordering_consonant_syllable (plan, face, buffer, start, end);
+}
+
+static void
+initial_reordering_punctuation_cluster (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                                       hb_face_t *face HB_UNUSED,
+                                       hb_buffer_t *buffer HB_UNUSED,
+                                       unsigned int start HB_UNUSED, unsigned int end HB_UNUSED)
+{
+  /* Nothing to do right now.  If we ever switch to using the output
+   * buffer in the reordering process, we'd need to next_glyph() here. */
+}
+
+static void
+initial_reordering_non_myanmar_cluster (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                                       hb_face_t *face HB_UNUSED,
+                                       hb_buffer_t *buffer HB_UNUSED,
+                                       unsigned int start HB_UNUSED, unsigned int end HB_UNUSED)
+{
+  /* Nothing to do right now.  If we ever switch to using the output
+   * buffer in the reordering process, we'd need to next_glyph() here. */
+}
+
+
+static void
+initial_reordering_syllable (const hb_ot_shape_plan_t *plan,
+                            hb_face_t *face,
+                            hb_buffer_t *buffer,
+                            unsigned int start, unsigned int end)
+{
+  syllable_type_t syllable_type = (syllable_type_t) (buffer->info[start].syllable() & 0x0F);
+  switch (syllable_type) {
+  case consonant_syllable:     initial_reordering_consonant_syllable  (plan, face, buffer, start, end); return;
+  case punctuation_cluster:    initial_reordering_punctuation_cluster (plan, face, buffer, start, end); return;
+  case broken_cluster:         initial_reordering_broken_cluster      (plan, face, buffer, start, end); return;
+  case non_myanmar_cluster:    initial_reordering_non_myanmar_cluster (plan, face, buffer, start, end); return;
+  }
+}
+
+static inline void
+insert_dotted_circles (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                      hb_font_t *font,
+                      hb_buffer_t *buffer)
+{
+  /* Note: This loop is extra overhead, but should not be measurable. */
+  bool has_broken_syllables = false;
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+    if ((info[i].syllable() & 0x0F) == broken_cluster)
+    {
+      has_broken_syllables = true;
+      break;
+    }
+  if (likely (!has_broken_syllables))
+    return;
+
+
+  hb_codepoint_t dottedcircle_glyph;
+  if (!font->get_glyph (0x25CCu, 0, &dottedcircle_glyph))
+    return;
+
+  hb_glyph_info_t dottedcircle = {0};
+  dottedcircle.codepoint = 0x25CCu;
+  set_myanmar_properties (dottedcircle);
+  dottedcircle.codepoint = dottedcircle_glyph;
+
+  buffer->clear_output ();
+
+  buffer->idx = 0;
+  unsigned int last_syllable = 0;
+  while (buffer->idx < buffer->len)
+  {
+    unsigned int syllable = buffer->cur().syllable();
+    syllable_type_t syllable_type = (syllable_type_t) (syllable & 0x0F);
+    if (unlikely (last_syllable != syllable && syllable_type == broken_cluster))
+    {
+      last_syllable = syllable;
+
+      hb_glyph_info_t info = dottedcircle;
+      info.cluster = buffer->cur().cluster;
+      info.mask = buffer->cur().mask;
+      info.syllable() = buffer->cur().syllable();
+
+      buffer->output_info (info);
+    }
+    else
+      buffer->next_glyph ();
+  }
+
+  buffer->swap_buffers ();
+}
+
+static void
+initial_reordering (const hb_ot_shape_plan_t *plan,
+                   hb_font_t *font,
+                   hb_buffer_t *buffer)
+{
+  insert_dotted_circles (plan, font, buffer);
+
+  hb_glyph_info_t *info = buffer->info;
+  unsigned int count = buffer->len;
+  if (unlikely (!count)) return;
+  unsigned int last = 0;
+  unsigned int last_syllable = info[0].syllable();
+  for (unsigned int i = 1; i < count; i++)
+    if (last_syllable != info[i].syllable()) {
+      initial_reordering_syllable (plan, font->face, buffer, last, i);
+      last = i;
+      last_syllable = info[last].syllable();
+    }
+  initial_reordering_syllable (plan, font->face, buffer, last, count);
+}
+
+static void
+final_reordering (const hb_ot_shape_plan_t *plan,
+                 hb_font_t *font HB_UNUSED,
+                 hb_buffer_t *buffer)
+{
+  hb_glyph_info_t *info = buffer->info;
+  unsigned int count = buffer->len;
+
+  /* Zero syllables now... */
+  for (unsigned int i = 0; i < count; i++)
+    info[i].syllable() = 0;
+
+  HB_BUFFER_DEALLOCATE_VAR (buffer, myanmar_category);
+  HB_BUFFER_DEALLOCATE_VAR (buffer, myanmar_position);
+}
+
+
+/* Uniscribe seems to have a shaper for 'mymr' that is like the
+ * generic shaper, except that it zeros mark advances GDEF_LATE. */
+const hb_ot_complex_shaper_t _hb_ot_complex_shaper_myanmar_old =
+{
+  "default",
+  NULL, /* collect_features */
+  NULL, /* override_features */
+  NULL, /* data_create */
+  NULL, /* data_destroy */
+  NULL, /* preprocess_text */
+  HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT,
+  NULL, /* decompose */
+  NULL, /* compose */
+  NULL, /* setup_masks */
+  HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_LATE,
+  true, /* fallback_position */
+};
+
+const hb_ot_complex_shaper_t _hb_ot_complex_shaper_myanmar =
+{
+  "myanmar",
+  collect_features_myanmar,
+  override_features_myanmar,
+  NULL, /* data_create */
+  NULL, /* data_destroy */
+  NULL, /* preprocess_text */
+  HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT,
+  NULL, /* decompose */
+  NULL, /* compose */
+  setup_masks_myanmar,
+  HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_EARLY,
+  false, /* fallback_position */
+};
diff --git a/src/hb-ot-shape-complex-private.hh b/src/hb-ot-shape-complex-private.hh
new file mode 100644 (file)
index 0000000..9a7afcb
--- /dev/null
@@ -0,0 +1,362 @@
+/*
+ * Copyright © 2010,2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_SHAPE_COMPLEX_PRIVATE_HH
+#define HB_OT_SHAPE_COMPLEX_PRIVATE_HH
+
+#include "hb-private.hh"
+
+#include "hb-ot-shape-private.hh"
+#include "hb-ot-shape-normalize-private.hh"
+
+
+
+/* buffer var allocations, used by complex shapers */
+#define complex_var_u8_0()     var2.u8[2]
+#define complex_var_u8_1()     var2.u8[3]
+
+
+enum hb_ot_shape_zero_width_marks_type_t {
+  HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE,
+//  HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_UNICODE_EARLY,
+  HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_UNICODE_LATE,
+  HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_EARLY,
+  HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_LATE,
+
+  HB_OT_SHAPE_ZERO_WIDTH_MARKS_DEFAULT = HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_UNICODE_LATE
+};
+
+
+/* Master OT shaper list */
+#define HB_COMPLEX_SHAPERS_IMPLEMENT_SHAPERS \
+  HB_COMPLEX_SHAPER_IMPLEMENT (default) /* should be first */ \
+  HB_COMPLEX_SHAPER_IMPLEMENT (arabic) \
+  HB_COMPLEX_SHAPER_IMPLEMENT (hangul) \
+  HB_COMPLEX_SHAPER_IMPLEMENT (hebrew) \
+  HB_COMPLEX_SHAPER_IMPLEMENT (myanmar_old) \
+  HB_COMPLEX_SHAPER_IMPLEMENT (indic) \
+  HB_COMPLEX_SHAPER_IMPLEMENT (myanmar) \
+  HB_COMPLEX_SHAPER_IMPLEMENT (sea) \
+  HB_COMPLEX_SHAPER_IMPLEMENT (thai) \
+  HB_COMPLEX_SHAPER_IMPLEMENT (tibetan) \
+  /* ^--- Add new shapers here */
+
+
+struct hb_ot_complex_shaper_t
+{
+  char name[8];
+
+  /* collect_features()
+   * Called during shape_plan().
+   * Shapers should use plan->map to add their features and callbacks.
+   * May be NULL.
+   */
+  void (*collect_features) (hb_ot_shape_planner_t *plan);
+
+  /* override_features()
+   * Called during shape_plan().
+   * Shapers should use plan->map to override features and add callbacks after
+   * common features are added.
+   * May be NULL.
+   */
+  void (*override_features) (hb_ot_shape_planner_t *plan);
+
+
+  /* data_create()
+   * Called at the end of shape_plan().
+   * Whatever shapers return will be accessible through plan->data later.
+   * If NULL is returned, means a plan failure.
+   */
+  void *(*data_create) (const hb_ot_shape_plan_t *plan);
+
+  /* data_destroy()
+   * Called when the shape_plan is being destroyed.
+   * plan->data is passed here for destruction.
+   * If NULL is returned, means a plan failure.
+   * May be NULL.
+   */
+  void (*data_destroy) (void *data);
+
+
+  /* preprocess_text()
+   * Called during shape().
+   * Shapers can use to modify text before shaping starts.
+   * May be NULL.
+   */
+  void (*preprocess_text) (const hb_ot_shape_plan_t *plan,
+                          hb_buffer_t              *buffer,
+                          hb_font_t                *font);
+
+
+  hb_ot_shape_normalization_mode_t normalization_preference;
+
+  /* decompose()
+   * Called during shape()'s normalization.
+   * May be NULL.
+   */
+  bool (*decompose) (const hb_ot_shape_normalize_context_t *c,
+                    hb_codepoint_t  ab,
+                    hb_codepoint_t *a,
+                    hb_codepoint_t *b);
+
+  /* compose()
+   * Called during shape()'s normalization.
+   * May be NULL.
+   */
+  bool (*compose) (const hb_ot_shape_normalize_context_t *c,
+                  hb_codepoint_t  a,
+                  hb_codepoint_t  b,
+                  hb_codepoint_t *ab);
+
+  /* setup_masks()
+   * Called during shape().
+   * Shapers should use map to get feature masks and set on buffer.
+   * Shapers may NOT modify characters.
+   * May be NULL.
+   */
+  void (*setup_masks) (const hb_ot_shape_plan_t *plan,
+                      hb_buffer_t              *buffer,
+                      hb_font_t                *font);
+
+  hb_ot_shape_zero_width_marks_type_t zero_width_marks;
+
+  bool fallback_position;
+};
+
+#define HB_COMPLEX_SHAPER_IMPLEMENT(name) extern HB_INTERNAL const hb_ot_complex_shaper_t _hb_ot_complex_shaper_##name;
+HB_COMPLEX_SHAPERS_IMPLEMENT_SHAPERS
+#undef HB_COMPLEX_SHAPER_IMPLEMENT
+
+
+static inline const hb_ot_complex_shaper_t *
+hb_ot_shape_complex_categorize (const hb_ot_shape_planner_t *planner)
+{
+  switch ((hb_tag_t) planner->props.script)
+  {
+    default:
+      return &_hb_ot_complex_shaper_default;
+
+
+    /* Unicode-1.1 additions */
+    case HB_SCRIPT_ARABIC:
+
+    /* Unicode-3.0 additions */
+    case HB_SCRIPT_MONGOLIAN:
+    case HB_SCRIPT_SYRIAC:
+
+    /* Unicode-5.0 additions */
+    case HB_SCRIPT_NKO:
+    case HB_SCRIPT_PHAGS_PA:
+
+    /* Unicode-6.0 additions */
+    case HB_SCRIPT_MANDAIC:
+
+    /* Unicode-7.0 additions */
+    case HB_SCRIPT_MANICHAEAN:
+    case HB_SCRIPT_PSALTER_PAHLAVI:
+
+      /* For Arabic script, use the Arabic shaper even if no OT script tag was found.
+       * This is because we do fallback shaping for Arabic script (and not others). */
+      if (planner->map.chosen_script[0] != HB_OT_TAG_DEFAULT_SCRIPT ||
+         planner->props.script == HB_SCRIPT_ARABIC)
+       return &_hb_ot_complex_shaper_arabic;
+      else
+       return &_hb_ot_complex_shaper_default;
+
+
+    /* Unicode-1.1 additions */
+    case HB_SCRIPT_THAI:
+    case HB_SCRIPT_LAO:
+
+      return &_hb_ot_complex_shaper_thai;
+
+
+    /* Unicode-1.1 additions */
+    case HB_SCRIPT_HANGUL:
+
+      return &_hb_ot_complex_shaper_hangul;
+
+
+    /* Unicode-2.0 additions */
+    case HB_SCRIPT_TIBETAN:
+
+      return &_hb_ot_complex_shaper_tibetan;
+
+
+    /* Unicode-1.1 additions */
+    case HB_SCRIPT_HEBREW:
+
+      return &_hb_ot_complex_shaper_hebrew;
+
+
+    /* ^--- Add new shapers here */
+
+
+#if 0
+    /* Note:
+     *
+     * These disabled scripts are listed in ucd/IndicSyllabicCategory.txt, but according
+     * to Martin Hosken and Jonathan Kew do not require complex shaping.
+     *
+     * TODO We should automate figuring out which scripts do not need complex shaping
+     *
+     * TODO We currently keep data for these scripts in our indic table.  Need to fix the
+     * generator to not do that.
+     */
+
+
+    /* Simple? */
+
+    /* Unicode-3.2 additions */
+    case HB_SCRIPT_BUHID:
+    case HB_SCRIPT_HANUNOO:
+
+    /* Unicode-5.1 additions */
+    case HB_SCRIPT_SAURASHTRA:
+
+    /* Unicode-6.0 additions */
+    case HB_SCRIPT_BATAK:
+    case HB_SCRIPT_BRAHMI:
+
+
+    /* Simple */
+
+    /* Unicode-1.1 additions */
+    /* These have their own shaper now. */
+    case HB_SCRIPT_LAO:
+    case HB_SCRIPT_THAI:
+
+    /* Unicode-3.2 additions */
+    case HB_SCRIPT_TAGALOG:
+    case HB_SCRIPT_TAGBANWA:
+
+    /* Unicode-4.0 additions */
+    case HB_SCRIPT_LIMBU:
+    case HB_SCRIPT_TAI_LE:
+
+    /* Unicode-4.1 additions */
+    case HB_SCRIPT_KHAROSHTHI:
+    case HB_SCRIPT_SYLOTI_NAGRI:
+
+    /* Unicode-5.1 additions */
+    case HB_SCRIPT_KAYAH_LI:
+
+    /* Unicode-5.2 additions */
+    case HB_SCRIPT_TAI_VIET:
+
+
+#endif
+
+    /* Unicode-1.1 additions */
+    case HB_SCRIPT_BENGALI:
+    case HB_SCRIPT_DEVANAGARI:
+    case HB_SCRIPT_GUJARATI:
+    case HB_SCRIPT_GURMUKHI:
+    case HB_SCRIPT_KANNADA:
+    case HB_SCRIPT_MALAYALAM:
+    case HB_SCRIPT_ORIYA:
+    case HB_SCRIPT_TAMIL:
+    case HB_SCRIPT_TELUGU:
+
+    /* Unicode-3.0 additions */
+    case HB_SCRIPT_SINHALA:
+
+    /* Unicode-5.0 additions */
+    case HB_SCRIPT_BALINESE:
+
+    /* Unicode-5.1 additions */
+    case HB_SCRIPT_LEPCHA:
+    case HB_SCRIPT_REJANG:
+    case HB_SCRIPT_SUNDANESE:
+
+    /* Unicode-5.2 additions */
+    case HB_SCRIPT_JAVANESE:
+    case HB_SCRIPT_KAITHI:
+    case HB_SCRIPT_MEETEI_MAYEK:
+
+    /* Unicode-6.0 additions */
+
+    /* Unicode-6.1 additions */
+    case HB_SCRIPT_CHAKMA:
+    case HB_SCRIPT_SHARADA:
+    case HB_SCRIPT_TAKRI:
+
+      /* If the designer designed the font for the 'DFLT' script,
+       * use the default shaper.  Otherwise, use the Indic shaper.
+       * Note that for some simple scripts, there may not be *any*
+       * GSUB/GPOS needed, so there may be no scripts found! */
+      if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T'))
+       return &_hb_ot_complex_shaper_default;
+      else
+       return &_hb_ot_complex_shaper_indic;
+
+    case HB_SCRIPT_KHMER:
+      /* A number of Khmer fonts in the wild don't have a 'pref' feature,
+       * and as such won't shape properly via the Indic shaper;
+       * however, they typically have 'liga' / 'clig' features that implement
+       * the necessary "reordering" by means of ligature substitutions.
+       * So we send such pref-less fonts through the generic shaper instead. */
+      if (planner->map.found_script[0] &&
+         hb_ot_layout_language_find_feature (planner->face, HB_OT_TAG_GSUB,
+                                             planner->map.script_index[0],
+                                             planner->map.language_index[0],
+                                             HB_TAG ('p','r','e','f'),
+                                             NULL))
+       return &_hb_ot_complex_shaper_indic;
+      else
+       return &_hb_ot_complex_shaper_default;
+
+    case HB_SCRIPT_MYANMAR:
+      if (planner->map.chosen_script[0] == HB_TAG ('m','y','m','2'))
+       return &_hb_ot_complex_shaper_myanmar;
+      else if (planner->map.chosen_script[0] == HB_TAG ('m','y','m','r'))
+       return &_hb_ot_complex_shaper_myanmar_old;
+      else
+       return &_hb_ot_complex_shaper_default;
+
+    /* Unicode-4.1 additions */
+    case HB_SCRIPT_BUGINESE:
+    case HB_SCRIPT_NEW_TAI_LUE:
+
+    /* Unicode-5.1 additions */
+    case HB_SCRIPT_CHAM:
+
+    /* Unicode-5.2 additions */
+    case HB_SCRIPT_TAI_THAM:
+
+      /* If the designer designed the font for the 'DFLT' script,
+       * use the default shaper.  Otherwise, use the Indic shaper.
+       * Note that for some simple scripts, there may not be *any*
+       * GSUB/GPOS needed, so there may be no scripts found! */
+      if (planner->map.chosen_script[0] == HB_TAG ('D','F','L','T'))
+       return &_hb_ot_complex_shaper_default;
+      else
+       return &_hb_ot_complex_shaper_sea;
+  }
+}
+
+
+#endif /* HB_OT_SHAPE_COMPLEX_PRIVATE_HH */
diff --git a/src/hb-ot-shape-complex-sea-machine.hh b/src/hb-ot-shape-complex-sea-machine.hh
new file mode 100644 (file)
index 0000000..86b7ae7
--- /dev/null
@@ -0,0 +1,224 @@
+
+#line 1 "../../src/hb-ot-shape-complex-sea-machine.rl"
+/*
+ * Copyright © 2011,2012,2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_SHAPE_COMPLEX_SEA_MACHINE_HH
+#define HB_OT_SHAPE_COMPLEX_SEA_MACHINE_HH
+
+#include "hb-private.hh"
+
+
+#line 36 "hb-ot-shape-complex-sea-machine.hh.tmp"
+static const unsigned char _sea_syllable_machine_trans_keys[] = {
+       1u, 1u, 1u, 1u, 1u, 29u, 3u, 29u, 3u, 29u, 1u, 1u, 0
+};
+
+static const char _sea_syllable_machine_key_spans[] = {
+       1, 1, 29, 27, 27, 1
+};
+
+static const char _sea_syllable_machine_index_offsets[] = {
+       0, 2, 4, 34, 62, 90
+};
+
+static const char _sea_syllable_machine_indicies[] = {
+       1, 0, 3, 2, 1, 1, 3, 5, 
+       4, 4, 4, 4, 4, 3, 4, 1, 
+       4, 4, 4, 4, 3, 4, 4, 4, 
+       4, 3, 4, 4, 4, 3, 3, 3, 
+       3, 4, 1, 7, 6, 6, 6, 6, 
+       6, 1, 6, 6, 6, 6, 6, 6, 
+       1, 6, 6, 6, 6, 1, 6, 6, 
+       6, 1, 1, 1, 1, 6, 3, 9, 
+       8, 8, 8, 8, 8, 3, 8, 8, 
+       8, 8, 8, 8, 3, 8, 8, 8, 
+       8, 3, 8, 8, 8, 3, 3, 3, 
+       3, 8, 3, 10, 0
+};
+
+static const char _sea_syllable_machine_trans_targs[] = {
+       2, 3, 2, 4, 2, 5, 2, 0, 
+       2, 1, 2
+};
+
+static const char _sea_syllable_machine_trans_actions[] = {
+       1, 2, 3, 2, 6, 0, 7, 0, 
+       8, 0, 9
+};
+
+static const char _sea_syllable_machine_to_state_actions[] = {
+       0, 0, 4, 0, 0, 0
+};
+
+static const char _sea_syllable_machine_from_state_actions[] = {
+       0, 0, 5, 0, 0, 0
+};
+
+static const char _sea_syllable_machine_eof_trans[] = {
+       1, 3, 0, 7, 9, 11
+};
+
+static const int sea_syllable_machine_start = 2;
+static const int sea_syllable_machine_first_final = 2;
+static const int sea_syllable_machine_error = -1;
+
+static const int sea_syllable_machine_en_main = 2;
+
+
+#line 36 "../../src/hb-ot-shape-complex-sea-machine.rl"
+
+
+
+#line 67 "../../src/hb-ot-shape-complex-sea-machine.rl"
+
+
+#define found_syllable(syllable_type) \
+  HB_STMT_START { \
+    if (0) fprintf (stderr, "syllable %d..%d %s\n", last, p+1, #syllable_type); \
+    for (unsigned int i = last; i < p+1; i++) \
+      info[i].syllable() = (syllable_serial << 4) | syllable_type; \
+    last = p+1; \
+    syllable_serial++; \
+    if (unlikely (syllable_serial == 16)) syllable_serial = 1; \
+  } HB_STMT_END
+
+static void
+find_syllables (hb_buffer_t *buffer)
+{
+  unsigned int p, pe, eof, ts HB_UNUSED, te HB_UNUSED, act HB_UNUSED;
+  int cs;
+  hb_glyph_info_t *info = buffer->info;
+  
+#line 117 "hb-ot-shape-complex-sea-machine.hh.tmp"
+       {
+       cs = sea_syllable_machine_start;
+       ts = 0;
+       te = 0;
+       act = 0;
+       }
+
+#line 88 "../../src/hb-ot-shape-complex-sea-machine.rl"
+
+
+  p = 0;
+  pe = eof = buffer->len;
+
+  unsigned int last = 0;
+  unsigned int syllable_serial = 1;
+  
+#line 134 "hb-ot-shape-complex-sea-machine.hh.tmp"
+       {
+       int _slen;
+       int _trans;
+       const unsigned char *_keys;
+       const char *_inds;
+       if ( p == pe )
+               goto _test_eof;
+_resume:
+       switch ( _sea_syllable_machine_from_state_actions[cs] ) {
+       case 5:
+#line 1 "NONE"
+       {ts = p;}
+       break;
+#line 148 "hb-ot-shape-complex-sea-machine.hh.tmp"
+       }
+
+       _keys = _sea_syllable_machine_trans_keys + (cs<<1);
+       _inds = _sea_syllable_machine_indicies + _sea_syllable_machine_index_offsets[cs];
+
+       _slen = _sea_syllable_machine_key_spans[cs];
+       _trans = _inds[ _slen > 0 && _keys[0] <=( info[p].sea_category()) &&
+               ( info[p].sea_category()) <= _keys[1] ?
+               ( info[p].sea_category()) - _keys[0] : _slen ];
+
+_eof_trans:
+       cs = _sea_syllable_machine_trans_targs[_trans];
+
+       if ( _sea_syllable_machine_trans_actions[_trans] == 0 )
+               goto _again;
+
+       switch ( _sea_syllable_machine_trans_actions[_trans] ) {
+       case 2:
+#line 1 "NONE"
+       {te = p+1;}
+       break;
+       case 6:
+#line 63 "../../src/hb-ot-shape-complex-sea-machine.rl"
+       {te = p+1;{ found_syllable (non_sea_cluster); }}
+       break;
+       case 7:
+#line 61 "../../src/hb-ot-shape-complex-sea-machine.rl"
+       {te = p;p--;{ found_syllable (consonant_syllable); }}
+       break;
+       case 8:
+#line 62 "../../src/hb-ot-shape-complex-sea-machine.rl"
+       {te = p;p--;{ found_syllable (broken_cluster); }}
+       break;
+       case 9:
+#line 63 "../../src/hb-ot-shape-complex-sea-machine.rl"
+       {te = p;p--;{ found_syllable (non_sea_cluster); }}
+       break;
+       case 1:
+#line 61 "../../src/hb-ot-shape-complex-sea-machine.rl"
+       {{p = ((te))-1;}{ found_syllable (consonant_syllable); }}
+       break;
+       case 3:
+#line 62 "../../src/hb-ot-shape-complex-sea-machine.rl"
+       {{p = ((te))-1;}{ found_syllable (broken_cluster); }}
+       break;
+#line 194 "hb-ot-shape-complex-sea-machine.hh.tmp"
+       }
+
+_again:
+       switch ( _sea_syllable_machine_to_state_actions[cs] ) {
+       case 4:
+#line 1 "NONE"
+       {ts = 0;}
+       break;
+#line 203 "hb-ot-shape-complex-sea-machine.hh.tmp"
+       }
+
+       if ( ++p != pe )
+               goto _resume;
+       _test_eof: {}
+       if ( p == eof )
+       {
+       if ( _sea_syllable_machine_eof_trans[cs] > 0 ) {
+               _trans = _sea_syllable_machine_eof_trans[cs] - 1;
+               goto _eof_trans;
+       }
+       }
+
+       }
+
+#line 97 "../../src/hb-ot-shape-complex-sea-machine.rl"
+
+}
+
+#undef found_syllable
+
+#endif /* HB_OT_SHAPE_COMPLEX_SEA_MACHINE_HH */
diff --git a/src/hb-ot-shape-complex-sea-machine.rl b/src/hb-ot-shape-complex-sea-machine.rl
new file mode 100644 (file)
index 0000000..46140fc
--- /dev/null
@@ -0,0 +1,102 @@
+/*
+ * Copyright © 2011,2012,2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_SHAPE_COMPLEX_SEA_MACHINE_HH
+#define HB_OT_SHAPE_COMPLEX_SEA_MACHINE_HH
+
+#include "hb-private.hh"
+
+%%{
+  machine sea_syllable_machine;
+  alphtype unsigned char;
+  write data;
+}%%
+
+%%{
+
+# Same order as enum sea_category_t.  Not sure how to avoid duplication.
+C    = 1;
+GB   = 12; # Generic Base
+H    = 4;  # Halant
+IV   = 2;  # Independent Vowel
+MR   = 22; # Medial Ra
+CM   = 17; # Consonant Medial
+VAbv = 26;
+VBlw = 27;
+VPre = 28;
+VPst = 29;
+T    = 3;  # Tone Marks
+A    = 10; # Anusvara
+
+syllable_tail = (VPre|VAbv|VBlw|VPst|H.C|CM|MR|T|A)*;
+
+consonant_syllable =   (C|IV|GB) syllable_tail;
+broken_cluster =       syllable_tail;
+other =                        any;
+
+main := |*
+       consonant_syllable      => { found_syllable (consonant_syllable); };
+       broken_cluster          => { found_syllable (broken_cluster); };
+       other                   => { found_syllable (non_sea_cluster); };
+*|;
+
+
+}%%
+
+#define found_syllable(syllable_type) \
+  HB_STMT_START { \
+    if (0) fprintf (stderr, "syllable %d..%d %s\n", last, p+1, #syllable_type); \
+    for (unsigned int i = last; i < p+1; i++) \
+      info[i].syllable() = (syllable_serial << 4) | syllable_type; \
+    last = p+1; \
+    syllable_serial++; \
+    if (unlikely (syllable_serial == 16)) syllable_serial = 1; \
+  } HB_STMT_END
+
+static void
+find_syllables (hb_buffer_t *buffer)
+{
+  unsigned int p, pe, eof, ts HB_UNUSED, te HB_UNUSED, act HB_UNUSED;
+  int cs;
+  hb_glyph_info_t *info = buffer->info;
+  %%{
+    write init;
+    getkey info[p].sea_category();
+  }%%
+
+  p = 0;
+  pe = eof = buffer->len;
+
+  unsigned int last = 0;
+  unsigned int syllable_serial = 1;
+  %%{
+    write exec;
+  }%%
+}
+
+#undef found_syllable
+
+#endif /* HB_OT_SHAPE_COMPLEX_SEA_MACHINE_HH */
diff --git a/src/hb-ot-shape-complex-sea.cc b/src/hb-ot-shape-complex-sea.cc
new file mode 100644 (file)
index 0000000..f08b7cc
--- /dev/null
@@ -0,0 +1,380 @@
+/*
+ * Copyright © 2011,2012,2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-ot-shape-complex-indic-private.hh"
+
+/* buffer var allocations */
+#define sea_category() complex_var_u8_0() /* indic_category_t */
+#define sea_position() complex_var_u8_1() /* indic_position_t */
+
+
+/*
+ * South-East Asian shaper.
+ * Loosely based on the Myanmar spec / shaper.
+ * There is no OpenType spec for this.
+ */
+
+static const hb_tag_t
+basic_features[] =
+{
+  /*
+   * Basic features.
+   * These features are applied in order, one at a time, after initial_reordering.
+   */
+  HB_TAG('p','r','e','f'),
+  HB_TAG('a','b','v','f'),
+  HB_TAG('b','l','w','f'),
+  HB_TAG('p','s','t','f'),
+};
+static const hb_tag_t
+other_features[] =
+{
+  /*
+   * Other features.
+   * These features are applied all at once, after final_reordering.
+   */
+  HB_TAG('p','r','e','s'),
+  HB_TAG('a','b','v','s'),
+  HB_TAG('b','l','w','s'),
+  HB_TAG('p','s','t','s'),
+  /* Positioning features, though we don't care about the types. */
+  HB_TAG('d','i','s','t'),
+};
+
+static void
+setup_syllables (const hb_ot_shape_plan_t *plan,
+                hb_font_t *font,
+                hb_buffer_t *buffer);
+static void
+initial_reordering (const hb_ot_shape_plan_t *plan,
+                   hb_font_t *font,
+                   hb_buffer_t *buffer);
+static void
+final_reordering (const hb_ot_shape_plan_t *plan,
+                 hb_font_t *font,
+                 hb_buffer_t *buffer);
+
+static void
+collect_features_sea (hb_ot_shape_planner_t *plan)
+{
+  hb_ot_map_builder_t *map = &plan->map;
+
+  /* Do this before any lookups have been applied. */
+  map->add_gsub_pause (setup_syllables);
+
+  map->add_global_bool_feature (HB_TAG('l','o','c','l'));
+  /* The Indic specs do not require ccmp, but we apply it here since if
+   * there is a use of it, it's typically at the beginning. */
+  map->add_global_bool_feature (HB_TAG('c','c','m','p'));
+
+  map->add_gsub_pause (initial_reordering);
+  for (unsigned int i = 0; i < ARRAY_LENGTH (basic_features); i++)
+  {
+    map->add_feature (basic_features[i], 1, F_GLOBAL | F_MANUAL_ZWJ);
+    map->add_gsub_pause (NULL);
+  }
+  map->add_gsub_pause (final_reordering);
+  for (unsigned int i = 0; i < ARRAY_LENGTH (other_features); i++)
+    map->add_feature (other_features[i], 1, F_GLOBAL | F_MANUAL_ZWJ);
+}
+
+static void
+override_features_sea (hb_ot_shape_planner_t *plan)
+{
+  plan->map.add_feature (HB_TAG('l','i','g','a'), 0, F_GLOBAL);
+}
+
+
+enum syllable_type_t {
+  consonant_syllable,
+  broken_cluster,
+  non_sea_cluster,
+};
+
+#include "hb-ot-shape-complex-sea-machine.hh"
+
+
+/* Note: This enum is duplicated in the -machine.rl source file.
+ * Not sure how to avoid duplication. */
+enum sea_category_t {
+//  OT_C    = 1,
+  OT_GB   = 12, /* Generic Base XXX DOTTED CIRCLE only for now */
+//  OT_H    = 4,  /* Halant */
+  OT_IV   = 2,  /* Independent Vowel */
+  OT_MR   = 22, /* Medial Ra */
+//  OT_CM   = 17, /* Consonant Medial */
+  OT_VAbv = 26,
+  OT_VBlw = 27,
+  OT_VPre = 28,
+  OT_VPst = 29,
+  OT_T    = 3,  /* Tone Marks */
+//  OT_A    = 10, /* Anusvara */
+};
+
+static inline void
+set_sea_properties (hb_glyph_info_t &info)
+{
+  hb_codepoint_t u = info.codepoint;
+  unsigned int type = hb_indic_get_categories (u);
+  indic_category_t cat = (indic_category_t) (type & 0x7Fu);
+  indic_position_t pos = (indic_position_t) (type >> 8);
+
+  /* Medial Ra */
+  if (u == 0x1A55u || u == 0xAA34u)
+    cat = (indic_category_t) OT_MR;
+
+  if (cat == OT_M)
+  {
+    switch ((int) pos)
+    {
+      case POS_PRE_C:  cat = (indic_category_t) OT_VPre; break;
+      case POS_ABOVE_C:        cat = (indic_category_t) OT_VAbv; break;
+      case POS_BELOW_C:        cat = (indic_category_t) OT_VBlw; break;
+      case POS_POST_C: cat = (indic_category_t) OT_VPst; break;
+    }
+  }
+
+  info.sea_category() = (sea_category_t) cat;
+  info.sea_position() = pos;
+}
+
+
+static void
+setup_masks_sea (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                hb_buffer_t              *buffer,
+                hb_font_t                *font HB_UNUSED)
+{
+  HB_BUFFER_ALLOCATE_VAR (buffer, sea_category);
+  HB_BUFFER_ALLOCATE_VAR (buffer, sea_position);
+
+  /* We cannot setup masks here.  We save information about characters
+   * and setup masks later on in a pause-callback. */
+
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+    set_sea_properties (info[i]);
+}
+
+static void
+setup_syllables (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                hb_font_t *font HB_UNUSED,
+                hb_buffer_t *buffer)
+{
+  find_syllables (buffer);
+}
+
+static int
+compare_sea_order (const hb_glyph_info_t *pa, const hb_glyph_info_t *pb)
+{
+  int a = pa->sea_position();
+  int b = pb->sea_position();
+
+  return a < b ? -1 : a == b ? 0 : +1;
+}
+
+
+static void
+initial_reordering_consonant_syllable (const hb_ot_shape_plan_t *plan,
+                                      hb_face_t *face,
+                                      hb_buffer_t *buffer,
+                                      unsigned int start, unsigned int end)
+{
+  hb_glyph_info_t *info = buffer->info;
+  unsigned int base = start;
+
+  /* Reorder! */
+  unsigned int i = start;
+  for (; i < base; i++)
+    info[i].sea_position() = POS_PRE_C;
+  if (i < end)
+  {
+    info[i].sea_position() = POS_BASE_C;
+    i++;
+  }
+  for (; i < end; i++)
+  {
+    if (info[i].sea_category() == OT_MR) /* Pre-base reordering */
+    {
+      info[i].sea_position() = POS_PRE_C;
+      continue;
+    }
+    if (info[i].sea_category() == OT_VPre) /* Left matra */
+    {
+      info[i].sea_position() = POS_PRE_M;
+      continue;
+    }
+
+    info[i].sea_position() = POS_AFTER_MAIN;
+  }
+
+  buffer->merge_clusters (start, end);
+  /* Sit tight, rock 'n roll! */
+  hb_bubble_sort (info + start, end - start, compare_sea_order);
+}
+
+static void
+initial_reordering_broken_cluster (const hb_ot_shape_plan_t *plan,
+                                  hb_face_t *face,
+                                  hb_buffer_t *buffer,
+                                  unsigned int start, unsigned int end)
+{
+  /* We already inserted dotted-circles, so just call the consonant_syllable. */
+  initial_reordering_consonant_syllable (plan, face, buffer, start, end);
+}
+
+static void
+initial_reordering_non_sea_cluster (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                                   hb_face_t *face HB_UNUSED,
+                                   hb_buffer_t *buffer HB_UNUSED,
+                                   unsigned int start HB_UNUSED, unsigned int end HB_UNUSED)
+{
+  /* Nothing to do right now.  If we ever switch to using the output
+   * buffer in the reordering process, we'd need to next_glyph() here. */
+}
+
+
+static void
+initial_reordering_syllable (const hb_ot_shape_plan_t *plan,
+                            hb_face_t *face,
+                            hb_buffer_t *buffer,
+                            unsigned int start, unsigned int end)
+{
+  syllable_type_t syllable_type = (syllable_type_t) (buffer->info[start].syllable() & 0x0F);
+  switch (syllable_type) {
+  case consonant_syllable:     initial_reordering_consonant_syllable  (plan, face, buffer, start, end); return;
+  case broken_cluster:         initial_reordering_broken_cluster      (plan, face, buffer, start, end); return;
+  case non_sea_cluster:                initial_reordering_non_sea_cluster     (plan, face, buffer, start, end); return;
+  }
+}
+
+static inline void
+insert_dotted_circles (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                      hb_font_t *font,
+                      hb_buffer_t *buffer)
+{
+  /* Note: This loop is extra overhead, but should not be measurable. */
+  bool has_broken_syllables = false;
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+    if ((info[i].syllable() & 0x0F) == broken_cluster)
+    {
+      has_broken_syllables = true;
+      break;
+    }
+  if (likely (!has_broken_syllables))
+    return;
+
+
+  hb_codepoint_t dottedcircle_glyph;
+  if (!font->get_glyph (0x25CCu, 0, &dottedcircle_glyph))
+    return;
+
+  hb_glyph_info_t dottedcircle = {0};
+  dottedcircle.codepoint = 0x25CCu;
+  set_sea_properties (dottedcircle);
+  dottedcircle.codepoint = dottedcircle_glyph;
+
+  buffer->clear_output ();
+
+  buffer->idx = 0;
+  unsigned int last_syllable = 0;
+  while (buffer->idx < buffer->len)
+  {
+    unsigned int syllable = buffer->cur().syllable();
+    syllable_type_t syllable_type = (syllable_type_t) (syllable & 0x0F);
+    if (unlikely (last_syllable != syllable && syllable_type == broken_cluster))
+    {
+      last_syllable = syllable;
+
+      hb_glyph_info_t info = dottedcircle;
+      info.cluster = buffer->cur().cluster;
+      info.mask = buffer->cur().mask;
+      info.syllable() = buffer->cur().syllable();
+
+      buffer->output_info (info);
+    }
+    else
+      buffer->next_glyph ();
+  }
+
+  buffer->swap_buffers ();
+}
+
+static void
+initial_reordering (const hb_ot_shape_plan_t *plan,
+                   hb_font_t *font,
+                   hb_buffer_t *buffer)
+{
+  insert_dotted_circles (plan, font, buffer);
+
+  hb_glyph_info_t *info = buffer->info;
+  unsigned int count = buffer->len;
+  if (unlikely (!count)) return;
+  unsigned int last = 0;
+  unsigned int last_syllable = info[0].syllable();
+  for (unsigned int i = 1; i < count; i++)
+    if (last_syllable != info[i].syllable()) {
+      initial_reordering_syllable (plan, font->face, buffer, last, i);
+      last = i;
+      last_syllable = info[last].syllable();
+    }
+  initial_reordering_syllable (plan, font->face, buffer, last, count);
+}
+
+static void
+final_reordering (const hb_ot_shape_plan_t *plan,
+                 hb_font_t *font HB_UNUSED,
+                 hb_buffer_t *buffer)
+{
+  hb_glyph_info_t *info = buffer->info;
+  unsigned int count = buffer->len;
+
+  /* Zero syllables now... */
+  for (unsigned int i = 0; i < count; i++)
+    info[i].syllable() = 0;
+
+  HB_BUFFER_DEALLOCATE_VAR (buffer, sea_category);
+  HB_BUFFER_DEALLOCATE_VAR (buffer, sea_position);
+}
+
+
+const hb_ot_complex_shaper_t _hb_ot_complex_shaper_sea =
+{
+  "sea",
+  collect_features_sea,
+  override_features_sea,
+  NULL, /* data_create */
+  NULL, /* data_destroy */
+  NULL, /* preprocess_text */
+  HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT,
+  NULL, /* decompose */
+  NULL, /* compose */
+  setup_masks_sea,
+  HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE,
+  false, /* fallback_position */
+};
diff --git a/src/hb-ot-shape-complex-thai.cc b/src/hb-ot-shape-complex-thai.cc
new file mode 100644 (file)
index 0000000..feb7fc7
--- /dev/null
@@ -0,0 +1,381 @@
+/*
+ * Copyright © 2010,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-ot-shape-complex-private.hh"
+
+
+/* Thai / Lao shaper */
+
+
+/* PUA shaping */
+
+
+enum thai_consonant_type_t
+{
+  NC,
+  AC,
+  RC,
+  DC,
+  NOT_CONSONANT,
+  NUM_CONSONANT_TYPES = NOT_CONSONANT
+};
+
+static thai_consonant_type_t
+get_consonant_type (hb_codepoint_t u)
+{
+  if (u == 0x0E1Bu || u == 0x0E1Du || u == 0x0E1Fu/* || u == 0x0E2Cu*/)
+    return AC;
+  if (u == 0x0E0Du || u == 0x0E10u)
+    return RC;
+  if (u == 0x0E0Eu || u == 0x0E0Fu)
+    return DC;
+  if (hb_in_range (u, 0x0E01u, 0x0E2Eu))
+    return NC;
+  return NOT_CONSONANT;
+}
+
+
+enum thai_mark_type_t
+{
+  AV,
+  BV,
+  T,
+  NOT_MARK,
+  NUM_MARK_TYPES = NOT_MARK
+};
+
+static thai_mark_type_t
+get_mark_type (hb_codepoint_t u)
+{
+  if (u == 0x0E31u || hb_in_range (u, 0x0E34u, 0x0E37u) ||
+      u == 0x0E47u || hb_in_range (u, 0x0E4Du, 0x0E4Eu))
+    return AV;
+  if (hb_in_range (u, 0x0E38u, 0x0E3Au))
+    return BV;
+  if (hb_in_range (u, 0x0E48u, 0x0E4Cu))
+    return T;
+  return NOT_MARK;
+}
+
+
+enum thai_action_t
+{
+  NOP,
+  SD,  /* Shift combining-mark down */
+  SL,  /* Shift combining-mark left */
+  SDL, /* Shift combining-mark down-left */
+  RD   /* Remove descender from base */
+};
+
+static hb_codepoint_t
+thai_pua_shape (hb_codepoint_t u, thai_action_t action, hb_font_t *font)
+{
+  struct thai_pua_mapping_t {
+    hb_codepoint_t u;
+    hb_codepoint_t win_pua;
+    hb_codepoint_t mac_pua;
+  } const *pua_mappings = NULL;
+  static const thai_pua_mapping_t SD_mappings[] = {
+    {0x0E48u, 0xF70Au, 0xF88Bu}, /* MAI EK */
+    {0x0E49u, 0xF70Bu, 0xF88Eu}, /* MAI THO */
+    {0x0E4Au, 0xF70Cu, 0xF891u}, /* MAI TRI */
+    {0x0E4Bu, 0xF70Du, 0xF894u}, /* MAI CHATTAWA */
+    {0x0E4Cu, 0xF70Eu, 0xF897u}, /* THANTHAKHAT */
+    {0x0E38u, 0xF718u, 0xF89Bu}, /* SARA U */
+    {0x0E39u, 0xF719u, 0xF89Cu}, /* SARA UU */
+    {0x0E3Au, 0xF71Au, 0xF89Du}, /* PHINTHU */
+    {0x0000u, 0x0000u, 0x0000u}
+  };
+  static const thai_pua_mapping_t SDL_mappings[] = {
+    {0x0E48u, 0xF705u, 0xF88Cu}, /* MAI EK */
+    {0x0E49u, 0xF706u, 0xF88Fu}, /* MAI THO */
+    {0x0E4Au, 0xF707u, 0xF892u}, /* MAI TRI */
+    {0x0E4Bu, 0xF708u, 0xF895u}, /* MAI CHATTAWA */
+    {0x0E4Cu, 0xF709u, 0xF898u}, /* THANTHAKHAT */
+    {0x0000u, 0x0000u, 0x0000u}
+  };
+  static const thai_pua_mapping_t SL_mappings[] = {
+    {0x0E48u, 0xF713u, 0xF88Au}, /* MAI EK */
+    {0x0E49u, 0xF714u, 0xF88Du}, /* MAI THO */
+    {0x0E4Au, 0xF715u, 0xF890u}, /* MAI TRI */
+    {0x0E4Bu, 0xF716u, 0xF893u}, /* MAI CHATTAWA */
+    {0x0E4Cu, 0xF717u, 0xF896u}, /* THANTHAKHAT */
+    {0x0E31u, 0xF710u, 0xF884u}, /* MAI HAN-AKAT */
+    {0x0E34u, 0xF701u, 0xF885u}, /* SARA I */
+    {0x0E35u, 0xF702u, 0xF886u}, /* SARA II */
+    {0x0E36u, 0xF703u, 0xF887u}, /* SARA UE */
+    {0x0E37u, 0xF704u, 0xF888u}, /* SARA UEE */
+    {0x0E47u, 0xF712u, 0xF889u}, /* MAITAIKHU */
+    {0x0E4Du, 0xF711u, 0xF899u}, /* NIKHAHIT */
+    {0x0000u, 0x0000u, 0x0000u}
+  };
+  static const thai_pua_mapping_t RD_mappings[] = {
+    {0x0E0Du, 0xF70Fu, 0xF89Au}, /* YO YING */
+    {0x0E10u, 0xF700u, 0xF89Eu}, /* THO THAN */
+    {0x0000u, 0x0000u, 0x0000u}
+  };
+
+  switch (action) {
+    default: assert (false); /* Fallthrough */
+    case NOP: return u;
+    case SD:  pua_mappings = SD_mappings; break;
+    case SDL: pua_mappings = SDL_mappings; break;
+    case SL:  pua_mappings = SL_mappings; break;
+    case RD:  pua_mappings = RD_mappings; break;
+  }
+  for (; pua_mappings->u; pua_mappings++)
+    if (pua_mappings->u == u)
+    {
+      hb_codepoint_t glyph;
+      if (hb_font_get_glyph (font, pua_mappings->win_pua, 0, &glyph))
+       return pua_mappings->win_pua;
+      if (hb_font_get_glyph (font, pua_mappings->mac_pua, 0, &glyph))
+       return pua_mappings->mac_pua;
+      break;
+    }
+  return u;
+}
+
+
+static enum thai_above_state_t
+{     /* Cluster above looks like: */
+  T0, /*  ⣤                      */
+  T1, /*     ⣼                   */
+  T2, /*        ⣾                */
+  T3, /*           ⣿             */
+  NUM_ABOVE_STATES
+} thai_above_start_state[NUM_CONSONANT_TYPES + 1/* For NOT_CONSONANT */] =
+{
+  T0, /* NC */
+  T1, /* AC */
+  T0, /* RC */
+  T0, /* DC */
+  T3, /* NOT_CONSONANT */
+};
+
+static const struct thai_above_state_machine_edge_t {
+  thai_action_t action;
+  thai_above_state_t next_state;
+} thai_above_state_machine[NUM_ABOVE_STATES][NUM_MARK_TYPES] =
+{        /*AV*/    /*BV*/    /*T*/
+/*T0*/ {{NOP,T3}, {NOP,T0}, {SD, T3}},
+/*T1*/ {{SL, T2}, {NOP,T1}, {SDL,T2}},
+/*T2*/ {{NOP,T3}, {NOP,T2}, {SL, T3}},
+/*T3*/ {{NOP,T3}, {NOP,T3}, {NOP,T3}},
+};
+
+
+static enum thai_below_state_t
+{
+  B0, /* No descender */
+  B1, /* Removable descender */
+  B2, /* Strict descender */
+  NUM_BELOW_STATES
+} thai_below_start_state[NUM_CONSONANT_TYPES + 1/* For NOT_CONSONANT */] =
+{
+  B0, /* NC */
+  B0, /* AC */
+  B1, /* RC */
+  B2, /* DC */
+  B2, /* NOT_CONSONANT */
+};
+
+static const struct thai_below_state_machine_edge_t {
+  thai_action_t action;
+  thai_below_state_t next_state;
+} thai_below_state_machine[NUM_BELOW_STATES][NUM_MARK_TYPES] =
+{        /*AV*/    /*BV*/    /*T*/
+/*B0*/ {{NOP,B0}, {NOP,B2}, {NOP, B0}},
+/*B1*/ {{NOP,B1}, {RD, B2}, {NOP, B1}},
+/*B2*/ {{NOP,B2}, {SD, B2}, {NOP, B2}},
+};
+
+
+static void
+do_thai_pua_shaping (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                    hb_buffer_t              *buffer,
+                    hb_font_t                *font)
+{
+  thai_above_state_t above_state = thai_above_start_state[NOT_CONSONANT];
+  thai_below_state_t below_state = thai_below_start_state[NOT_CONSONANT];
+  unsigned int base = 0;
+
+  hb_glyph_info_t *info = buffer->info;
+  unsigned int count = buffer->len;
+  for (unsigned int i = 0; i < count; i++)
+  {
+    thai_mark_type_t mt = get_mark_type (info[i].codepoint);
+
+    if (mt == NOT_MARK) {
+      thai_consonant_type_t ct = get_consonant_type (info[i].codepoint);
+      above_state = thai_above_start_state[ct];
+      below_state = thai_below_start_state[ct];
+      base = i;
+      continue;
+    }
+
+    const thai_above_state_machine_edge_t &above_edge = thai_above_state_machine[above_state][mt];
+    const thai_below_state_machine_edge_t &below_edge = thai_below_state_machine[below_state][mt];
+    above_state = above_edge.next_state;
+    below_state = below_edge.next_state;
+
+    /* At least one of the above/below actions is NOP. */
+    thai_action_t action = above_edge.action != NOP ? above_edge.action : below_edge.action;
+
+    if (action == RD)
+      info[base].codepoint = thai_pua_shape (info[base].codepoint, action, font);
+    else
+      info[i].codepoint = thai_pua_shape (info[i].codepoint, action, font);
+  }
+}
+
+
+static void
+preprocess_text_thai (const hb_ot_shape_plan_t *plan,
+                     hb_buffer_t              *buffer,
+                     hb_font_t                *font)
+{
+  /* This function implements the shaping logic documented here:
+   *
+   *   http://linux.thai.net/~thep/th-otf/shaping.html
+   *
+   * The first shaping rule listed there is needed even if the font has Thai
+   * OpenType tables.  The rest do fallback positioning based on PUA codepoints.
+   * We implement that only if there exist no Thai GSUB in the font.
+   */
+
+  /* The following is NOT specified in the MS OT Thai spec, however, it seems
+   * to be what Uniscribe and other engines implement.  According to Eric Muller:
+   *
+   * When you have a SARA AM, decompose it in NIKHAHIT + SARA AA, *and* move the
+   * NIKHAHIT backwards over any tone mark (0E48-0E4B).
+   *
+   * <0E14, 0E4B, 0E33> -> <0E14, 0E4D, 0E4B, 0E32>
+   *
+   * This reordering is legit only when the NIKHAHIT comes from a SARA AM, not
+   * when it's there to start with. The string <0E14, 0E4B, 0E4D> is probably
+   * not what a user wanted, but the rendering is nevertheless nikhahit above
+   * chattawa.
+   *
+   * Same for Lao.
+   *
+   * Note:
+   *
+   * Uniscribe also does some below-marks reordering.  Namely, it positions U+0E3A
+   * after U+0E38 and U+0E39.  We do that by modifying the ccc for U+0E3A.
+   * See unicode->modified_combining_class ().  Lao does NOT have a U+0E3A
+   * equivalent.
+   */
+
+
+  /*
+   * Here are the characters of significance:
+   *
+   *                   Thai    Lao
+   * SARA AM:          U+0E33  U+0EB3
+   * SARA AA:          U+0E32  U+0EB2
+   * Nikhahit:         U+0E4D  U+0ECD
+   *
+   * Testing shows that Uniscribe reorder the following marks:
+   * Thai:     <0E31,0E34..0E37,0E47..0E4E>
+   * Lao:      <0EB1,0EB4..0EB7,0EC7..0ECE>
+   *
+   * Note how the Lao versions are the same as Thai + 0x80.
+   */
+
+  /* We only get one script at a time, so a script-agnostic implementation
+   * is adequate here. */
+#define IS_SARA_AM(x) (((x) & ~0x0080u) == 0x0E33u)
+#define NIKHAHIT_FROM_SARA_AM(x) ((x) - 0x0E33u + 0x0E4Du)
+#define SARA_AA_FROM_SARA_AM(x) ((x) - 1)
+#define IS_TONE_MARK(x) (hb_in_ranges ((x) & ~0x0080u, 0x0E34u, 0x0E37u, 0x0E47u, 0x0E4Eu, 0x0E31u, 0x0E31u))
+
+  buffer->clear_output ();
+  unsigned int count = buffer->len;
+  for (buffer->idx = 0; buffer->idx < count;)
+  {
+    hb_codepoint_t u = buffer->cur().codepoint;
+    if (likely (!IS_SARA_AM (u))) {
+      buffer->next_glyph ();
+      continue;
+    }
+
+    /* Is SARA AM. Decompose and reorder. */
+    hb_codepoint_t decomposed[2] = {hb_codepoint_t (NIKHAHIT_FROM_SARA_AM (u)),
+                                   hb_codepoint_t (SARA_AA_FROM_SARA_AM (u))};
+    buffer->replace_glyphs (1, 2, decomposed);
+    if (unlikely (buffer->in_error))
+      return;
+
+    /* Make Nikhahit be recognized as a mark when zeroing widths. */
+    unsigned int end = buffer->out_len;
+    _hb_glyph_info_set_general_category (&buffer->out_info[end - 2], HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK);
+
+    /* Ok, let's see... */
+    unsigned int start = end - 2;
+    while (start > 0 && IS_TONE_MARK (buffer->out_info[start - 1].codepoint))
+      start--;
+
+    if (start + 2 < end)
+    {
+      /* Move Nikhahit (end-2) to the beginning */
+      buffer->merge_out_clusters (start, end);
+      hb_glyph_info_t t = buffer->out_info[end - 2];
+      memmove (buffer->out_info + start + 1,
+              buffer->out_info + start,
+              sizeof (buffer->out_info[0]) * (end - start - 2));
+      buffer->out_info[start] = t;
+    }
+    else
+    {
+      /* Since we decomposed, and NIKHAHIT is combining, merge clusters with the
+       * previous cluster. */
+      if (start)
+       buffer->merge_out_clusters (start - 1, end);
+    }
+  }
+  buffer->swap_buffers ();
+
+  /* If font has Thai GSUB, we are done. */
+  if (plan->props.script == HB_SCRIPT_THAI && !plan->map.found_script[0])
+    do_thai_pua_shaping (plan, buffer, font);
+}
+
+const hb_ot_complex_shaper_t _hb_ot_complex_shaper_thai =
+{
+  "thai",
+  NULL, /* collect_features */
+  NULL, /* override_features */
+  NULL, /* data_create */
+  NULL, /* data_destroy */
+  preprocess_text_thai,
+  HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT,
+  NULL, /* decompose */
+  NULL, /* compose */
+  NULL, /* setup_masks */
+  HB_OT_SHAPE_ZERO_WIDTH_MARKS_DEFAULT,
+  false,/* fallback_position */
+};
diff --git a/src/hb-ot-shape-complex-tibetan.cc b/src/hb-ot-shape-complex-tibetan.cc
new file mode 100644 (file)
index 0000000..01465a4
--- /dev/null
@@ -0,0 +1,61 @@
+/*
+ * Copyright © 2010,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-ot-shape-complex-private.hh"
+
+
+static const hb_tag_t tibetan_features[] =
+{
+  HB_TAG('a','b','v','s'),
+  HB_TAG('b','l','w','s'),
+  HB_TAG('a','b','v','m'),
+  HB_TAG('b','l','w','m'),
+  HB_TAG_NONE
+};
+
+static void
+collect_features_tibetan (hb_ot_shape_planner_t *plan)
+{
+  for (const hb_tag_t *script_features = tibetan_features; script_features && *script_features; script_features++)
+    plan->map.add_global_bool_feature (*script_features);
+}
+
+
+const hb_ot_complex_shaper_t _hb_ot_complex_shaper_tibetan =
+{
+  "default",
+  collect_features_tibetan,
+  NULL, /* override_features */
+  NULL, /* data_create */
+  NULL, /* data_destroy */
+  NULL, /* preprocess_text */
+  HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT,
+  NULL, /* decompose */
+  NULL, /* compose */
+  NULL, /* setup_masks */
+  HB_OT_SHAPE_ZERO_WIDTH_MARKS_DEFAULT,
+  true, /* fallback_position */
+};
diff --git a/src/hb-ot-shape-fallback-private.hh b/src/hb-ot-shape-fallback-private.hh
new file mode 100644 (file)
index 0000000..ec65351
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_SHAPE_FALLBACK_PRIVATE_HH
+#define HB_OT_SHAPE_FALLBACK_PRIVATE_HH
+
+#include "hb-private.hh"
+
+#include "hb-ot-shape-private.hh"
+
+
+HB_INTERNAL void _hb_ot_shape_fallback_position (const hb_ot_shape_plan_t *plan,
+                                                hb_font_t *font,
+                                                hb_buffer_t  *buffer);
+
+HB_INTERNAL void _hb_ot_shape_fallback_position_recategorize_marks (const hb_ot_shape_plan_t *plan,
+                                                                   hb_font_t *font,
+                                                                   hb_buffer_t  *buffer);
+
+
+HB_INTERNAL void _hb_ot_shape_fallback_kern (const hb_ot_shape_plan_t *plan,
+                                            hb_font_t *font,
+                                            hb_buffer_t  *buffer);
+
+
+#endif /* HB_OT_SHAPE_FALLBACK_PRIVATE_HH */
diff --git a/src/hb-ot-shape-fallback.cc b/src/hb-ot-shape-fallback.cc
new file mode 100644 (file)
index 0000000..80d7da8
--- /dev/null
@@ -0,0 +1,483 @@
+/*
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-ot-shape-fallback-private.hh"
+#include "hb-ot-layout-gsubgpos-private.hh"
+
+static unsigned int
+recategorize_combining_class (hb_codepoint_t u,
+                             unsigned int klass)
+{
+  if (klass >= 200)
+    return klass;
+
+  /* Thai / Lao need some per-character work. */
+  if ((u & ~0xFF) == 0x0E00u)
+  {
+    if (unlikely (klass == 0))
+    {
+      switch (u)
+      {
+        case 0x0E31u:
+        case 0x0E34u:
+        case 0x0E35u:
+        case 0x0E36u:
+        case 0x0E37u:
+        case 0x0E47u:
+        case 0x0E4Cu:
+        case 0x0E4Du:
+        case 0x0E4Eu:
+         klass = HB_UNICODE_COMBINING_CLASS_ABOVE_RIGHT;
+         break;
+
+        case 0x0EB1u:
+        case 0x0EB4u:
+        case 0x0EB5u:
+        case 0x0EB6u:
+        case 0x0EB7u:
+        case 0x0EBBu:
+        case 0x0ECCu:
+        case 0x0ECDu:
+         klass = HB_UNICODE_COMBINING_CLASS_ABOVE;
+         break;
+
+        case 0x0EBCu:
+         klass = HB_UNICODE_COMBINING_CLASS_BELOW;
+         break;
+      }
+    } else {
+      /* Thai virama is below-right */
+      if (u == 0x0E3Au)
+       klass = HB_UNICODE_COMBINING_CLASS_BELOW_RIGHT;
+    }
+  }
+
+  switch (klass)
+  {
+
+    /* Hebrew */
+
+    case HB_MODIFIED_COMBINING_CLASS_CCC10: /* sheva */
+    case HB_MODIFIED_COMBINING_CLASS_CCC11: /* hataf segol */
+    case HB_MODIFIED_COMBINING_CLASS_CCC12: /* hataf patah */
+    case HB_MODIFIED_COMBINING_CLASS_CCC13: /* hataf qamats */
+    case HB_MODIFIED_COMBINING_CLASS_CCC14: /* hiriq */
+    case HB_MODIFIED_COMBINING_CLASS_CCC15: /* tsere */
+    case HB_MODIFIED_COMBINING_CLASS_CCC16: /* segol */
+    case HB_MODIFIED_COMBINING_CLASS_CCC17: /* patah */
+    case HB_MODIFIED_COMBINING_CLASS_CCC18: /* qamats */
+    case HB_MODIFIED_COMBINING_CLASS_CCC20: /* qubuts */
+    case HB_MODIFIED_COMBINING_CLASS_CCC22: /* meteg */
+      return HB_UNICODE_COMBINING_CLASS_BELOW;
+
+    case HB_MODIFIED_COMBINING_CLASS_CCC23: /* rafe */
+      return HB_UNICODE_COMBINING_CLASS_ATTACHED_ABOVE;
+
+    case HB_MODIFIED_COMBINING_CLASS_CCC24: /* shin dot */
+      return HB_UNICODE_COMBINING_CLASS_ABOVE_RIGHT;
+
+    case HB_MODIFIED_COMBINING_CLASS_CCC25: /* sin dot */
+    case HB_MODIFIED_COMBINING_CLASS_CCC19: /* holam */
+      return HB_UNICODE_COMBINING_CLASS_ABOVE_LEFT;
+
+    case HB_MODIFIED_COMBINING_CLASS_CCC26: /* point varika */
+      return HB_UNICODE_COMBINING_CLASS_ABOVE;
+
+    case HB_MODIFIED_COMBINING_CLASS_CCC21: /* dagesh */
+      break;
+
+
+    /* Arabic and Syriac */
+
+    case HB_MODIFIED_COMBINING_CLASS_CCC27: /* fathatan */
+    case HB_MODIFIED_COMBINING_CLASS_CCC28: /* dammatan */
+    case HB_MODIFIED_COMBINING_CLASS_CCC30: /* fatha */
+    case HB_MODIFIED_COMBINING_CLASS_CCC31: /* damma */
+    case HB_MODIFIED_COMBINING_CLASS_CCC33: /* shadda */
+    case HB_MODIFIED_COMBINING_CLASS_CCC34: /* sukun */
+    case HB_MODIFIED_COMBINING_CLASS_CCC35: /* superscript alef */
+    case HB_MODIFIED_COMBINING_CLASS_CCC36: /* superscript alaph */
+      return HB_UNICODE_COMBINING_CLASS_ABOVE;
+
+    case HB_MODIFIED_COMBINING_CLASS_CCC29: /* kasratan */
+    case HB_MODIFIED_COMBINING_CLASS_CCC32: /* kasra */
+      return HB_UNICODE_COMBINING_CLASS_BELOW;
+
+
+    /* Thai */
+
+    case HB_MODIFIED_COMBINING_CLASS_CCC103: /* sara u / sara uu */
+      return HB_UNICODE_COMBINING_CLASS_BELOW_RIGHT;
+
+    case HB_MODIFIED_COMBINING_CLASS_CCC107: /* mai */
+      return HB_UNICODE_COMBINING_CLASS_ABOVE_RIGHT;
+
+
+    /* Lao */
+
+    case HB_MODIFIED_COMBINING_CLASS_CCC118: /* sign u / sign uu */
+      return HB_UNICODE_COMBINING_CLASS_BELOW;
+
+    case HB_MODIFIED_COMBINING_CLASS_CCC122: /* mai */
+      return HB_UNICODE_COMBINING_CLASS_ABOVE;
+
+
+    /* Tibetan */
+
+    case HB_MODIFIED_COMBINING_CLASS_CCC129: /* sign aa */
+      return HB_UNICODE_COMBINING_CLASS_BELOW;
+
+    case HB_MODIFIED_COMBINING_CLASS_CCC130: /* sign i*/
+      return HB_UNICODE_COMBINING_CLASS_ABOVE;
+
+    case HB_MODIFIED_COMBINING_CLASS_CCC132: /* sign u */
+      return HB_UNICODE_COMBINING_CLASS_BELOW;
+
+  }
+
+  return klass;
+}
+
+void
+_hb_ot_shape_fallback_position_recategorize_marks (const hb_ot_shape_plan_t *plan HB_UNUSED,
+                                                  hb_font_t *font HB_UNUSED,
+                                                  hb_buffer_t  *buffer)
+{
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+    if (_hb_glyph_info_get_general_category (&info[i]) == HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK) {
+      unsigned int combining_class = _hb_glyph_info_get_modified_combining_class (&info[i]);
+      combining_class = recategorize_combining_class (info[i].codepoint, combining_class);
+      _hb_glyph_info_set_modified_combining_class (&info[i], combining_class);
+    }
+}
+
+
+static void
+zero_mark_advances (hb_buffer_t *buffer,
+                   unsigned int start,
+                   unsigned int end)
+{
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = start; i < end; i++)
+    if (_hb_glyph_info_get_general_category (&info[i]) == HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK)
+    {
+      buffer->pos[i].x_advance = 0;
+      buffer->pos[i].y_advance = 0;
+    }
+}
+
+static inline void
+position_mark (const hb_ot_shape_plan_t *plan,
+              hb_font_t *font,
+              hb_buffer_t  *buffer,
+              hb_glyph_extents_t &base_extents,
+              unsigned int i,
+              unsigned int combining_class)
+{
+  hb_glyph_extents_t mark_extents;
+  if (!font->get_glyph_extents (buffer->info[i].codepoint,
+                               &mark_extents))
+    return;
+
+  hb_position_t y_gap = font->y_scale / 16;
+
+  hb_glyph_position_t &pos = buffer->pos[i];
+  pos.x_offset = pos.y_offset = 0;
+
+
+  /* We dont position LEFT and RIGHT marks. */
+
+  /* X positioning */
+  switch (combining_class)
+  {
+    case HB_UNICODE_COMBINING_CLASS_DOUBLE_BELOW:
+    case HB_UNICODE_COMBINING_CLASS_DOUBLE_ABOVE:
+      if (buffer->props.direction == HB_DIRECTION_LTR) {
+       pos.x_offset += base_extents.x_bearing - mark_extents.width / 2 - mark_extents.x_bearing;
+        break;
+      } else if (buffer->props.direction == HB_DIRECTION_RTL) {
+       pos.x_offset += base_extents.x_bearing + base_extents.width - mark_extents.width / 2 - mark_extents.x_bearing;
+        break;
+      }
+      /* Fall through */
+
+    default:
+    case HB_UNICODE_COMBINING_CLASS_ATTACHED_BELOW:
+    case HB_UNICODE_COMBINING_CLASS_ATTACHED_ABOVE:
+    case HB_UNICODE_COMBINING_CLASS_BELOW:
+    case HB_UNICODE_COMBINING_CLASS_ABOVE:
+      /* Center align. */
+      pos.x_offset += base_extents.x_bearing + (base_extents.width - mark_extents.width) / 2 - mark_extents.x_bearing;
+      break;
+
+    case HB_UNICODE_COMBINING_CLASS_ATTACHED_BELOW_LEFT:
+    case HB_UNICODE_COMBINING_CLASS_BELOW_LEFT:
+    case HB_UNICODE_COMBINING_CLASS_ABOVE_LEFT:
+      /* Left align. */
+      pos.x_offset += base_extents.x_bearing - mark_extents.x_bearing;
+      break;
+
+    case HB_UNICODE_COMBINING_CLASS_ATTACHED_ABOVE_RIGHT:
+    case HB_UNICODE_COMBINING_CLASS_BELOW_RIGHT:
+    case HB_UNICODE_COMBINING_CLASS_ABOVE_RIGHT:
+      /* Right align. */
+      pos.x_offset += base_extents.x_bearing + base_extents.width - mark_extents.width - mark_extents.x_bearing;
+      break;
+  }
+
+  /* Y positioning */
+  switch (combining_class)
+  {
+    case HB_UNICODE_COMBINING_CLASS_DOUBLE_BELOW:
+    case HB_UNICODE_COMBINING_CLASS_BELOW_LEFT:
+    case HB_UNICODE_COMBINING_CLASS_BELOW:
+    case HB_UNICODE_COMBINING_CLASS_BELOW_RIGHT:
+      /* Add gap, fall-through. */
+      base_extents.height -= y_gap;
+
+    case HB_UNICODE_COMBINING_CLASS_ATTACHED_BELOW_LEFT:
+    case HB_UNICODE_COMBINING_CLASS_ATTACHED_BELOW:
+      pos.y_offset = base_extents.y_bearing + base_extents.height - mark_extents.y_bearing;
+      /* Never shift up "below" marks. */
+      if ((y_gap > 0) == (pos.y_offset > 0))
+      {
+       base_extents.height -= pos.y_offset;
+       pos.y_offset = 0;
+      }
+      base_extents.height += mark_extents.height;
+      break;
+
+    case HB_UNICODE_COMBINING_CLASS_DOUBLE_ABOVE:
+    case HB_UNICODE_COMBINING_CLASS_ABOVE_LEFT:
+    case HB_UNICODE_COMBINING_CLASS_ABOVE:
+    case HB_UNICODE_COMBINING_CLASS_ABOVE_RIGHT:
+      /* Add gap, fall-through. */
+      base_extents.y_bearing += y_gap;
+      base_extents.height -= y_gap;
+
+    case HB_UNICODE_COMBINING_CLASS_ATTACHED_ABOVE:
+    case HB_UNICODE_COMBINING_CLASS_ATTACHED_ABOVE_RIGHT:
+      pos.y_offset = base_extents.y_bearing - (mark_extents.y_bearing + mark_extents.height);
+      /* Don't shift down "above" marks too much. */
+      if ((y_gap > 0) != (pos.y_offset > 0))
+      {
+       unsigned int correction = -pos.y_offset / 2;
+       base_extents.y_bearing += correction;
+       base_extents.height -= correction;
+       pos.y_offset += correction;
+      }
+      base_extents.y_bearing -= mark_extents.height;
+      base_extents.height += mark_extents.height;
+      break;
+  }
+}
+
+static inline void
+position_around_base (const hb_ot_shape_plan_t *plan,
+                     hb_font_t *font,
+                     hb_buffer_t  *buffer,
+                     unsigned int base,
+                     unsigned int end)
+{
+  hb_direction_t horiz_dir = HB_DIRECTION_INVALID;
+  hb_glyph_extents_t base_extents;
+  if (!font->get_glyph_extents (buffer->info[base].codepoint,
+                               &base_extents))
+  {
+    /* If extents don't work, zero marks and go home. */
+    zero_mark_advances (buffer, base + 1, end);
+    return;
+  }
+  base_extents.x_bearing += buffer->pos[base].x_offset;
+  base_extents.y_bearing += buffer->pos[base].y_offset;
+
+  unsigned int lig_id = _hb_glyph_info_get_lig_id (&buffer->info[base]);
+  unsigned int num_lig_components = _hb_glyph_info_get_lig_num_comps (&buffer->info[base]);
+
+  hb_position_t x_offset = 0, y_offset = 0;
+  if (HB_DIRECTION_IS_FORWARD (buffer->props.direction)) {
+    x_offset -= buffer->pos[base].x_advance;
+    y_offset -= buffer->pos[base].y_advance;
+  }
+
+  hb_glyph_extents_t component_extents = base_extents;
+  unsigned int last_lig_component = (unsigned int) -1;
+  unsigned int last_combining_class = 255;
+  hb_glyph_extents_t cluster_extents = base_extents; /* Initialization is just to shut gcc up. */
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = base + 1; i < end; i++)
+    if (_hb_glyph_info_get_modified_combining_class (&info[i]))
+    {
+      if (num_lig_components > 1) {
+       unsigned int this_lig_id = _hb_glyph_info_get_lig_id (&info[i]);
+       unsigned int this_lig_component = _hb_glyph_info_get_lig_comp (&info[i]) - 1;
+       /* Conditions for attaching to the last component. */
+       if (!lig_id || lig_id != this_lig_id || this_lig_component >= num_lig_components)
+         this_lig_component = num_lig_components - 1;
+       if (last_lig_component != this_lig_component)
+       {
+         last_lig_component = this_lig_component;
+         last_combining_class = 255;
+         component_extents = base_extents;
+         if (unlikely (horiz_dir == HB_DIRECTION_INVALID)) {
+           if (HB_DIRECTION_IS_HORIZONTAL (plan->props.direction))
+             horiz_dir = plan->props.direction;
+           else
+             horiz_dir = hb_script_get_horizontal_direction (plan->props.script);
+         }
+         if (horiz_dir == HB_DIRECTION_LTR)
+           component_extents.x_bearing += (this_lig_component * component_extents.width) / num_lig_components;
+         else
+           component_extents.x_bearing += ((num_lig_components - 1 - this_lig_component) * component_extents.width) / num_lig_components;
+         component_extents.width /= num_lig_components;
+       }
+      }
+
+      unsigned int this_combining_class = _hb_glyph_info_get_modified_combining_class (&info[i]);
+      if (last_combining_class != this_combining_class)
+      {
+       last_combining_class = this_combining_class;
+        cluster_extents = component_extents;
+      }
+
+      position_mark (plan, font, buffer, cluster_extents, i, this_combining_class);
+
+      buffer->pos[i].x_advance = 0;
+      buffer->pos[i].y_advance = 0;
+      buffer->pos[i].x_offset += x_offset;
+      buffer->pos[i].y_offset += y_offset;
+
+    } else {
+      if (HB_DIRECTION_IS_FORWARD (buffer->props.direction)) {
+       x_offset -= buffer->pos[i].x_advance;
+       y_offset -= buffer->pos[i].y_advance;
+      } else {
+       x_offset += buffer->pos[i].x_advance;
+       y_offset += buffer->pos[i].y_advance;
+      }
+    }
+}
+
+static inline void
+position_cluster (const hb_ot_shape_plan_t *plan,
+                 hb_font_t *font,
+                 hb_buffer_t  *buffer,
+                 unsigned int start,
+                 unsigned int end)
+{
+  if (end - start < 2)
+    return;
+
+  /* Find the base glyph */
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = start; i < end; i++)
+    if (!HB_UNICODE_GENERAL_CATEGORY_IS_MARK (_hb_glyph_info_get_general_category (&info[i])))
+    {
+      /* Find mark glyphs */
+      unsigned int j;
+      for (j = i + 1; j < end; j++)
+       if (!HB_UNICODE_GENERAL_CATEGORY_IS_MARK (_hb_glyph_info_get_general_category (&info[j])))
+         break;
+
+      position_around_base (plan, font, buffer, i, j);
+
+      i = j - 1;
+    }
+}
+
+void
+_hb_ot_shape_fallback_position (const hb_ot_shape_plan_t *plan,
+                               hb_font_t *font,
+                               hb_buffer_t  *buffer)
+{
+  _hb_buffer_assert_gsubgpos_vars (buffer);
+
+  unsigned int start = 0;
+  unsigned int last_cluster = buffer->info[0].cluster;
+  unsigned int count = buffer->len;
+  for (unsigned int i = 1; i < count; i++)
+    if (buffer->info[i].cluster != last_cluster) {
+      position_cluster (plan, font, buffer, start, i);
+      start = i;
+      last_cluster = buffer->info[i].cluster;
+    }
+  position_cluster (plan, font, buffer, start, count);
+}
+
+
+/* Performs old-style TrueType kerning. */
+void
+_hb_ot_shape_fallback_kern (const hb_ot_shape_plan_t *plan,
+                           hb_font_t *font,
+                           hb_buffer_t  *buffer)
+{
+  if (!plan->has_kern) return;
+
+  OT::hb_apply_context_t c (1, font, buffer);
+  c.set_lookup_mask (plan->kern_mask);
+  c.set_lookup_props (OT::LookupFlag::IgnoreMarks);
+
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  hb_glyph_position_t *pos = buffer->pos;
+  for (unsigned int idx = 0; idx < count;)
+  {
+    OT::hb_apply_context_t::skipping_forward_iterator_t skippy_iter (&c, idx, 1);
+    if (!skippy_iter.next ())
+    {
+      idx++;
+      continue;
+    }
+
+    hb_position_t x_kern, y_kern;
+    font->get_glyph_kerning_for_direction (info[idx].codepoint,
+                                          info[skippy_iter.idx].codepoint,
+                                          buffer->props.direction,
+                                          &x_kern, &y_kern);
+
+    if (x_kern)
+    {
+      hb_position_t kern1 = x_kern >> 1;
+      hb_position_t kern2 = x_kern - kern1;
+      pos[idx].x_advance += kern1;
+      pos[skippy_iter.idx].x_advance += kern2;
+      pos[skippy_iter.idx].x_offset += kern2;
+    }
+
+    if (y_kern)
+    {
+      hb_position_t kern1 = y_kern >> 1;
+      hb_position_t kern2 = y_kern - kern1;
+      pos[idx].y_advance += kern1;
+      pos[skippy_iter.idx].y_advance += kern2;
+      pos[skippy_iter.idx].y_offset += kern2;
+    }
+
+    idx = skippy_iter.idx;
+  }
+}
diff --git a/src/hb-ot-shape-normalize-private.hh b/src/hb-ot-shape-normalize-private.hh
new file mode 100644 (file)
index 0000000..c744e26
--- /dev/null
@@ -0,0 +1,69 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_SHAPE_NORMALIZE_PRIVATE_HH
+#define HB_OT_SHAPE_NORMALIZE_PRIVATE_HH
+
+#include "hb-private.hh"
+
+
+/* buffer var allocations, used during the normalization process */
+#define glyph_index()  var1.u32
+
+struct hb_ot_shape_plan_t;
+
+enum hb_ot_shape_normalization_mode_t {
+  HB_OT_SHAPE_NORMALIZATION_MODE_NONE,
+  HB_OT_SHAPE_NORMALIZATION_MODE_DECOMPOSED,
+  HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS, /* never composes base-to-base */
+  HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT, /* always fully decomposes and then recompose back */
+
+  HB_OT_SHAPE_NORMALIZATION_MODE_DEFAULT = HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS
+};
+
+HB_INTERNAL void _hb_ot_shape_normalize (const hb_ot_shape_plan_t *shaper,
+                                        hb_buffer_t *buffer,
+                                        hb_font_t *font);
+
+
+struct hb_ot_shape_normalize_context_t
+{
+  const hb_ot_shape_plan_t *plan;
+  hb_buffer_t *buffer;
+  hb_font_t *font;
+  hb_unicode_funcs_t *unicode;
+  bool (*decompose) (const hb_ot_shape_normalize_context_t *c,
+                    hb_codepoint_t  ab,
+                    hb_codepoint_t *a,
+                    hb_codepoint_t *b);
+  bool (*compose) (const hb_ot_shape_normalize_context_t *c,
+                  hb_codepoint_t  a,
+                  hb_codepoint_t  b,
+                  hb_codepoint_t *ab);
+};
+
+
+#endif /* HB_OT_SHAPE_NORMALIZE_PRIVATE_HH */
diff --git a/src/hb-ot-shape-normalize.cc b/src/hb-ot-shape-normalize.cc
new file mode 100644 (file)
index 0000000..4287253
--- /dev/null
@@ -0,0 +1,415 @@
+/*
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-ot-shape-normalize-private.hh"
+#include "hb-ot-shape-complex-private.hh"
+#include "hb-ot-shape-private.hh"
+
+
+/*
+ * HIGHLEVEL DESIGN:
+ *
+ * This file exports one main function: _hb_ot_shape_normalize().
+ *
+ * This function closely reflects the Unicode Normalization Algorithm,
+ * yet it's different.
+ *
+ * Each shaper specifies whether it prefers decomposed (NFD) or composed (NFC).
+ * The logic however tries to use whatever the font can support.
+ *
+ * In general what happens is that: each grapheme is decomposed in a chain
+ * of 1:2 decompositions, marks reordered, and then recomposed if desired,
+ * so far it's like Unicode Normalization.  However, the decomposition and
+ * recomposition only happens if the font supports the resulting characters.
+ *
+ * The goals are:
+ *
+ *   - Try to render all canonically equivalent strings similarly.  To really
+ *     achieve this we have to always do the full decomposition and then
+ *     selectively recompose from there.  It's kinda too expensive though, so
+ *     we skip some cases.  For example, if composed is desired, we simply
+ *     don't touch 1-character clusters that are supported by the font, even
+ *     though their NFC may be different.
+ *
+ *   - When a font has a precomposed character for a sequence but the 'ccmp'
+ *     feature in the font is not adequate, use the precomposed character
+ *     which typically has better mark positioning.
+ *
+ *   - When a font does not support a combining mark, but supports it precomposed
+ *     with previous base, use that.  This needs the itemizer to have this
+ *     knowledge too.  We need to provide assistance to the itemizer.
+ *
+ *   - When a font does not support a character but supports its decomposition,
+ *     well, use the decomposition (preferring the canonical decomposition, but
+ *     falling back to the compatibility decomposition if necessary).  The
+ *     compatibility decomposition is really nice to have, for characters like
+ *     ellipsis, or various-sized space characters.
+ *
+ *   - The complex shapers can customize the compose and decompose functions to
+ *     offload some of their requirements to the normalizer.  For example, the
+ *     Indic shaper may want to disallow recomposing of two matras.
+ *
+ *   - We try compatibility decomposition if decomposing through canonical
+ *     decomposition alone failed to find a sequence that the font supports.
+ *     We don't try compatibility decomposition recursively during the canonical
+ *     decomposition phase.  This has minimal impact.  There are only a handful
+ *     of Greek letter that have canonical decompositions that include characters
+ *     with compatibility decomposition.  Those can be found using this command:
+ *
+ *     egrep  "`echo -n ';('; grep ';<' UnicodeData.txt | cut -d';' -f1 | tr '\n' '|'; echo ') '`" UnicodeData.txt
+ */
+
+static bool
+decompose_unicode (const hb_ot_shape_normalize_context_t *c,
+                  hb_codepoint_t  ab,
+                  hb_codepoint_t *a,
+                  hb_codepoint_t *b)
+{
+  return c->unicode->decompose (ab, a, b);
+}
+
+static bool
+compose_unicode (const hb_ot_shape_normalize_context_t *c,
+                hb_codepoint_t  a,
+                hb_codepoint_t  b,
+                hb_codepoint_t *ab)
+{
+  return c->unicode->compose (a, b, ab);
+}
+
+static inline void
+set_glyph (hb_glyph_info_t &info, hb_font_t *font)
+{
+  font->get_glyph (info.codepoint, 0, &info.glyph_index());
+}
+
+static inline void
+output_char (hb_buffer_t *buffer, hb_codepoint_t unichar, hb_codepoint_t glyph)
+{
+  buffer->cur().glyph_index() = glyph;
+  buffer->output_glyph (unichar);
+  _hb_glyph_info_set_unicode_props (&buffer->prev(), buffer->unicode);
+}
+
+static inline void
+next_char (hb_buffer_t *buffer, hb_codepoint_t glyph)
+{
+  buffer->cur().glyph_index() = glyph;
+  buffer->next_glyph ();
+}
+
+static inline void
+skip_char (hb_buffer_t *buffer)
+{
+  buffer->skip_glyph ();
+}
+
+/* Returns 0 if didn't decompose, number of resulting characters otherwise. */
+static inline unsigned int
+decompose (const hb_ot_shape_normalize_context_t *c, bool shortest, hb_codepoint_t ab)
+{
+  hb_codepoint_t a, b, a_glyph, b_glyph;
+  hb_buffer_t * const buffer = c->buffer;
+  hb_font_t * const font = c->font;
+
+  if (!c->decompose (c, ab, &a, &b) ||
+      (b && !font->get_glyph (b, 0, &b_glyph)))
+    return 0;
+
+  bool has_a = font->get_glyph (a, 0, &a_glyph);
+  if (shortest && has_a) {
+    /* Output a and b */
+    output_char (buffer, a, a_glyph);
+    if (likely (b)) {
+      output_char (buffer, b, b_glyph);
+      return 2;
+    }
+    return 1;
+  }
+
+  unsigned int ret;
+  if ((ret = decompose (c, shortest, a))) {
+    if (b) {
+      output_char (buffer, b, b_glyph);
+      return ret + 1;
+    }
+    return ret;
+  }
+
+  if (has_a) {
+    output_char (buffer, a, a_glyph);
+    if (likely (b)) {
+      output_char (buffer, b, b_glyph);
+      return 2;
+    }
+    return 1;
+  }
+
+  return 0;
+}
+
+/* Returns 0 if didn't decompose, number of resulting characters otherwise. */
+static inline unsigned int
+decompose_compatibility (const hb_ot_shape_normalize_context_t *c, hb_codepoint_t u)
+{
+  unsigned int len, i;
+  hb_codepoint_t decomposed[HB_UNICODE_MAX_DECOMPOSITION_LEN];
+  hb_codepoint_t glyphs[HB_UNICODE_MAX_DECOMPOSITION_LEN];
+
+  len = c->buffer->unicode->decompose_compatibility (u, decomposed);
+  if (!len)
+    return 0;
+
+  for (i = 0; i < len; i++)
+    if (!c->font->get_glyph (decomposed[i], 0, &glyphs[i]))
+      return 0;
+
+  for (i = 0; i < len; i++)
+    output_char (c->buffer, decomposed[i], glyphs[i]);
+
+  return len;
+}
+
+static inline void
+decompose_current_character (const hb_ot_shape_normalize_context_t *c, bool shortest)
+{
+  hb_buffer_t * const buffer = c->buffer;
+  hb_codepoint_t glyph;
+
+  /* Kind of a cute waterfall here... */
+  if (shortest && c->font->get_glyph (buffer->cur().codepoint, 0, &glyph))
+    next_char (buffer, glyph);
+  else if (decompose (c, shortest, buffer->cur().codepoint))
+    skip_char (buffer);
+  else if (!shortest && c->font->get_glyph (buffer->cur().codepoint, 0, &glyph))
+    next_char (buffer, glyph);
+  else if (decompose_compatibility (c, buffer->cur().codepoint))
+    skip_char (buffer);
+  else
+    next_char (buffer, glyph); /* glyph is initialized in earlier branches. */
+}
+
+static inline void
+handle_variation_selector_cluster (const hb_ot_shape_normalize_context_t *c, unsigned int end, bool short_circuit)
+{
+  /* TODO Currently if there's a variation-selector we give-up, it's just too hard. */
+  hb_buffer_t * const buffer = c->buffer;
+  hb_font_t * const font = c->font;
+  for (; buffer->idx < end - 1;) {
+    if (unlikely (buffer->unicode->is_variation_selector (buffer->cur(+1).codepoint))) {
+      /* The next two lines are some ugly lines... But work. */
+      if (font->get_glyph (buffer->cur().codepoint, buffer->cur(+1).codepoint, &buffer->cur().glyph_index()))
+      {
+       buffer->replace_glyphs (2, 1, &buffer->cur().codepoint);
+      }
+      else
+      {
+        /* Just pass on the two characters separately, let GSUB do its magic. */
+       set_glyph (buffer->cur(), font);
+       buffer->next_glyph ();
+       set_glyph (buffer->cur(), font);
+       buffer->next_glyph ();
+      }
+      /* Skip any further variation selectors. */
+      while (buffer->idx < end && unlikely (buffer->unicode->is_variation_selector (buffer->cur().codepoint)))
+      {
+       set_glyph (buffer->cur(), font);
+       buffer->next_glyph ();
+      }
+    } else {
+      set_glyph (buffer->cur(), font);
+      buffer->next_glyph ();
+    }
+  }
+  if (likely (buffer->idx < end)) {
+    set_glyph (buffer->cur(), font);
+    buffer->next_glyph ();
+  }
+}
+
+static inline void
+decompose_multi_char_cluster (const hb_ot_shape_normalize_context_t *c, unsigned int end, bool short_circuit)
+{
+  hb_buffer_t * const buffer = c->buffer;
+  for (unsigned int i = buffer->idx; i < end; i++)
+    if (unlikely (buffer->unicode->is_variation_selector (buffer->info[i].codepoint))) {
+      handle_variation_selector_cluster (c, end, short_circuit);
+      return;
+    }
+
+  while (buffer->idx < end)
+    decompose_current_character (c, short_circuit);
+}
+
+static inline void
+decompose_cluster (const hb_ot_shape_normalize_context_t *c, unsigned int end, bool might_short_circuit, bool always_short_circuit)
+{
+  if (likely (c->buffer->idx + 1 == end))
+    decompose_current_character (c, might_short_circuit);
+  else
+    decompose_multi_char_cluster (c, end, always_short_circuit);
+}
+
+
+static int
+compare_combining_class (const hb_glyph_info_t *pa, const hb_glyph_info_t *pb)
+{
+  unsigned int a = _hb_glyph_info_get_modified_combining_class (pa);
+  unsigned int b = _hb_glyph_info_get_modified_combining_class (pb);
+
+  return a < b ? -1 : a == b ? 0 : +1;
+}
+
+
+void
+_hb_ot_shape_normalize (const hb_ot_shape_plan_t *plan,
+                       hb_buffer_t *buffer,
+                       hb_font_t *font)
+{
+  _hb_buffer_assert_unicode_vars (buffer);
+
+  hb_ot_shape_normalization_mode_t mode = plan->shaper->normalization_preference;
+  const hb_ot_shape_normalize_context_t c = {
+    plan,
+    buffer,
+    font,
+    buffer->unicode,
+    plan->shaper->decompose ? plan->shaper->decompose : decompose_unicode,
+    plan->shaper->compose   ? plan->shaper->compose   : compose_unicode
+  };
+
+  bool always_short_circuit = mode == HB_OT_SHAPE_NORMALIZATION_MODE_NONE;
+  bool might_short_circuit = always_short_circuit ||
+                            (mode != HB_OT_SHAPE_NORMALIZATION_MODE_DECOMPOSED &&
+                             mode != HB_OT_SHAPE_NORMALIZATION_MODE_COMPOSED_DIACRITICS_NO_SHORT_CIRCUIT);
+  unsigned int count;
+
+  /* We do a fairly straightforward yet custom normalization process in three
+   * separate rounds: decompose, reorder, recompose (if desired).  Currently
+   * this makes two buffer swaps.  We can make it faster by moving the last
+   * two rounds into the inner loop for the first round, but it's more readable
+   * this way. */
+
+
+  /* First round, decompose */
+
+  buffer->clear_output ();
+  count = buffer->len;
+  for (buffer->idx = 0; buffer->idx < count;)
+  {
+    unsigned int end;
+    for (end = buffer->idx + 1; end < count; end++)
+      if (buffer->cur().cluster != buffer->info[end].cluster)
+        break;
+
+    decompose_cluster (&c, end, might_short_circuit, always_short_circuit);
+  }
+  buffer->swap_buffers ();
+
+
+  /* Second round, reorder (inplace) */
+
+  count = buffer->len;
+  for (unsigned int i = 0; i < count; i++)
+  {
+    if (_hb_glyph_info_get_modified_combining_class (&buffer->info[i]) == 0)
+      continue;
+
+    unsigned int end;
+    for (end = i + 1; end < count; end++)
+      if (_hb_glyph_info_get_modified_combining_class (&buffer->info[end]) == 0)
+        break;
+
+    /* We are going to do a bubble-sort.  Only do this if the
+     * sequence is short.  Doing it on long sequences can result
+     * in an O(n^2) DoS. */
+    if (end - i > 10) {
+      i = end;
+      continue;
+    }
+
+    hb_bubble_sort (buffer->info + i, end - i, compare_combining_class);
+
+    i = end;
+  }
+
+
+  if (mode == HB_OT_SHAPE_NORMALIZATION_MODE_NONE ||
+      mode == HB_OT_SHAPE_NORMALIZATION_MODE_DECOMPOSED)
+    return;
+
+  /* Third round, recompose */
+
+  /* As noted in the comment earlier, we don't try to combine
+   * ccc=0 chars with their previous Starter. */
+
+  buffer->clear_output ();
+  count = buffer->len;
+  unsigned int starter = 0;
+  buffer->next_glyph ();
+  while (buffer->idx < count)
+  {
+    hb_codepoint_t composed, glyph;
+    if (/* We don't try to compose a non-mark character with it's preceding starter.
+        * This is both an optimization to avoid trying to compose every two neighboring
+        * glyphs in most scripts AND a desired feature for Hangul.  Apparently Hangul
+        * fonts are not designed to mix-and-match pre-composed syllables and Jamo. */
+       HB_UNICODE_GENERAL_CATEGORY_IS_MARK (_hb_glyph_info_get_general_category (&buffer->cur())) &&
+       /* If there's anything between the starter and this char, they should have CCC
+        * smaller than this character's. */
+       (starter == buffer->out_len - 1 ||
+        _hb_glyph_info_get_modified_combining_class (&buffer->prev()) < _hb_glyph_info_get_modified_combining_class (&buffer->cur())) &&
+       /* And compose. */
+       c.compose (&c,
+                  buffer->out_info[starter].codepoint,
+                  buffer->cur().codepoint,
+                  &composed) &&
+       /* And the font has glyph for the composite. */
+       font->get_glyph (composed, 0, &glyph))
+    {
+      /* Composes. */
+      buffer->next_glyph (); /* Copy to out-buffer. */
+      if (unlikely (buffer->in_error))
+        return;
+      buffer->merge_out_clusters (starter, buffer->out_len);
+      buffer->out_len--; /* Remove the second composable. */
+      /* Modify starter and carry on. */
+      buffer->out_info[starter].codepoint = composed;
+      buffer->out_info[starter].glyph_index() = glyph;
+      _hb_glyph_info_set_unicode_props (&buffer->out_info[starter], buffer->unicode);
+
+      continue;
+    }
+
+    /* Blocked, or doesn't compose. */
+    buffer->next_glyph ();
+
+    if (_hb_glyph_info_get_modified_combining_class (&buffer->prev()) == 0)
+      starter = buffer->out_len - 1;
+  }
+  buffer->swap_buffers ();
+
+}
diff --git a/src/hb-ot-shape-private.hh b/src/hb-ot-shape-private.hh
new file mode 100644 (file)
index 0000000..54ac2c3
--- /dev/null
@@ -0,0 +1,104 @@
+/*
+ * Copyright © 2010  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_SHAPE_PRIVATE_HH
+#define HB_OT_SHAPE_PRIVATE_HH
+
+#include "hb-private.hh"
+
+#include "hb-ot-map-private.hh"
+#include "hb-ot-layout-private.hh"
+
+
+
+struct hb_ot_shape_plan_t
+{
+  hb_segment_properties_t props;
+  const struct hb_ot_complex_shaper_t *shaper;
+  hb_ot_map_t map;
+  const void *data;
+  hb_mask_t rtlm_mask, frac_mask, numr_mask, dnom_mask;
+  hb_mask_t kern_mask;
+  unsigned int has_frac : 1;
+  unsigned int has_kern : 1;
+  unsigned int has_mark : 1;
+
+  inline void collect_lookups (hb_tag_t table_tag, hb_set_t *lookups) const
+  {
+    unsigned int table_index;
+    switch (table_tag) {
+      case HB_OT_TAG_GSUB: table_index = 0; break;
+      case HB_OT_TAG_GPOS: table_index = 1; break;
+      default: return;
+    }
+    map.collect_lookups (table_index, lookups);
+  }
+  inline void substitute (hb_font_t *font, hb_buffer_t *buffer) const { map.substitute (this, font, buffer); }
+  inline void position (hb_font_t *font, hb_buffer_t *buffer) const { map.position (this, font, buffer); }
+
+  void finish (void) { map.finish (); }
+};
+
+struct hb_ot_shape_planner_t
+{
+  /* In the order that they are filled in. */
+  hb_face_t *face;
+  hb_segment_properties_t props;
+  const struct hb_ot_complex_shaper_t *shaper;
+  hb_ot_map_builder_t map;
+
+  hb_ot_shape_planner_t (const hb_shape_plan_t *master_plan) :
+                        face (master_plan->face_unsafe),
+                        props (master_plan->props),
+                        shaper (NULL),
+                        map (face, &props) {}
+  ~hb_ot_shape_planner_t (void) { map.finish (); }
+
+  inline void compile (hb_ot_shape_plan_t &plan)
+  {
+    plan.props = props;
+    plan.shaper = shaper;
+    map.compile (plan.map);
+
+    plan.rtlm_mask = plan.map.get_1_mask (HB_TAG ('r','t','l','m'));
+    plan.frac_mask = plan.map.get_1_mask (HB_TAG ('f','r','a','c'));
+    plan.numr_mask = plan.map.get_1_mask (HB_TAG ('n','u','m','r'));
+    plan.dnom_mask = plan.map.get_1_mask (HB_TAG ('d','n','o','m'));
+
+    plan.kern_mask = plan.map.get_mask (HB_DIRECTION_IS_HORIZONTAL (plan.props.direction) ?
+                                       HB_TAG ('k','e','r','n') : HB_TAG ('v','k','r','n'));
+
+    plan.has_frac = plan.frac_mask || (plan.numr_mask && plan.dnom_mask);
+    plan.has_kern = !!plan.kern_mask;
+    plan.has_mark = !!plan.map.get_1_mask (HB_TAG ('m','a','r','k'));
+  }
+
+  private:
+  NO_COPY (hb_ot_shape_planner_t);
+};
+
+
+#endif /* HB_OT_SHAPE_PRIVATE_HH */
diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc
new file mode 100644 (file)
index 0000000..a0b503a
--- /dev/null
@@ -0,0 +1,803 @@
+/*
+ * Copyright © 2009,2010  Red Hat, Inc.
+ * Copyright © 2010,2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#define HB_SHAPER ot
+#define hb_ot_shaper_face_data_t hb_ot_layout_t
+#define hb_ot_shaper_shape_plan_data_t hb_ot_shape_plan_t
+#include "hb-shaper-impl-private.hh"
+
+#include "hb-ot-shape-private.hh"
+#include "hb-ot-shape-complex-private.hh"
+#include "hb-ot-shape-fallback-private.hh"
+#include "hb-ot-shape-normalize-private.hh"
+
+#include "hb-ot-layout-private.hh"
+#include "hb-unicode-private.hh"
+#include "hb-set-private.hh"
+
+
+static hb_tag_t common_features[] = {
+  HB_TAG('c','c','m','p'),
+  HB_TAG('l','o','c','l'),
+  HB_TAG('m','a','r','k'),
+  HB_TAG('m','k','m','k'),
+  HB_TAG('r','l','i','g'),
+};
+
+
+static hb_tag_t horizontal_features[] = {
+  HB_TAG('c','a','l','t'),
+  HB_TAG('c','l','i','g'),
+  HB_TAG('c','u','r','s'),
+  HB_TAG('k','e','r','n'),
+  HB_TAG('l','i','g','a'),
+  HB_TAG('r','c','l','t'),
+};
+
+static hb_tag_t vertical_features[] = {
+  HB_TAG('v','e','r','t'),
+};
+
+
+
+static void
+hb_ot_shape_collect_features (hb_ot_shape_planner_t          *planner,
+                             const hb_segment_properties_t  *props,
+                             const hb_feature_t             *user_features,
+                             unsigned int                    num_user_features)
+{
+  hb_ot_map_builder_t *map = &planner->map;
+
+  switch (props->direction) {
+    case HB_DIRECTION_LTR:
+      map->add_global_bool_feature (HB_TAG ('l','t','r','a'));
+      map->add_global_bool_feature (HB_TAG ('l','t','r','m'));
+      break;
+    case HB_DIRECTION_RTL:
+      map->add_global_bool_feature (HB_TAG ('r','t','l','a'));
+      map->add_feature (HB_TAG ('r','t','l','m'), 1, F_NONE);
+      break;
+    case HB_DIRECTION_TTB:
+    case HB_DIRECTION_BTT:
+    case HB_DIRECTION_INVALID:
+    default:
+      break;
+  }
+
+  map->add_feature (HB_TAG ('f','r','a','c'), 1, F_NONE);
+  map->add_feature (HB_TAG ('n','u','m','r'), 1, F_NONE);
+  map->add_feature (HB_TAG ('d','n','o','m'), 1, F_NONE);
+
+  if (planner->shaper->collect_features)
+    planner->shaper->collect_features (planner);
+
+  for (unsigned int i = 0; i < ARRAY_LENGTH (common_features); i++)
+    map->add_global_bool_feature (common_features[i]);
+
+  if (HB_DIRECTION_IS_HORIZONTAL (props->direction))
+    for (unsigned int i = 0; i < ARRAY_LENGTH (horizontal_features); i++)
+      map->add_feature (horizontal_features[i], 1, F_GLOBAL |
+                       (horizontal_features[i] == HB_TAG('k','e','r','n') ?
+                        F_HAS_FALLBACK : F_NONE));
+  else
+    for (unsigned int i = 0; i < ARRAY_LENGTH (vertical_features); i++)
+      map->add_feature (vertical_features[i], 1, F_GLOBAL |
+                       (vertical_features[i] == HB_TAG('v','k','r','n') ?
+                        F_HAS_FALLBACK : F_NONE));
+
+  if (planner->shaper->override_features)
+    planner->shaper->override_features (planner);
+
+  for (unsigned int i = 0; i < num_user_features; i++) {
+    const hb_feature_t *feature = &user_features[i];
+    map->add_feature (feature->tag, feature->value,
+                     (feature->start == 0 && feature->end == (unsigned int) -1) ?
+                      F_GLOBAL : F_NONE);
+  }
+}
+
+
+/*
+ * shaper face data
+ */
+
+hb_ot_shaper_face_data_t *
+_hb_ot_shaper_face_data_create (hb_face_t *face)
+{
+  return _hb_ot_layout_create (face);
+}
+
+void
+_hb_ot_shaper_face_data_destroy (hb_ot_shaper_face_data_t *data)
+{
+  _hb_ot_layout_destroy (data);
+}
+
+
+/*
+ * shaper font data
+ */
+
+struct hb_ot_shaper_font_data_t {};
+
+hb_ot_shaper_font_data_t *
+_hb_ot_shaper_font_data_create (hb_font_t *font)
+{
+  return (hb_ot_shaper_font_data_t *) HB_SHAPER_DATA_SUCCEEDED;
+}
+
+void
+_hb_ot_shaper_font_data_destroy (hb_ot_shaper_font_data_t *data)
+{
+}
+
+
+/*
+ * shaper shape_plan data
+ */
+
+hb_ot_shaper_shape_plan_data_t *
+_hb_ot_shaper_shape_plan_data_create (hb_shape_plan_t    *shape_plan,
+                                     const hb_feature_t *user_features,
+                                     unsigned int        num_user_features)
+{
+  hb_ot_shape_plan_t *plan = (hb_ot_shape_plan_t *) calloc (1, sizeof (hb_ot_shape_plan_t));
+  if (unlikely (!plan))
+    return NULL;
+
+  hb_ot_shape_planner_t planner (shape_plan);
+
+  planner.shaper = hb_ot_shape_complex_categorize (&planner);
+
+  hb_ot_shape_collect_features (&planner, &shape_plan->props, user_features, num_user_features);
+
+  planner.compile (*plan);
+
+  if (plan->shaper->data_create) {
+    plan->data = plan->shaper->data_create (plan);
+    if (unlikely (!plan->data))
+      return NULL;
+  }
+
+  return plan;
+}
+
+void
+_hb_ot_shaper_shape_plan_data_destroy (hb_ot_shaper_shape_plan_data_t *plan)
+{
+  if (plan->shaper->data_destroy)
+    plan->shaper->data_destroy (const_cast<void *> (plan->data));
+
+  plan->finish ();
+
+  free (plan);
+}
+
+
+/*
+ * shaper
+ */
+
+struct hb_ot_shape_context_t
+{
+  hb_ot_shape_plan_t *plan;
+  hb_font_t *font;
+  hb_face_t *face;
+  hb_buffer_t  *buffer;
+  const hb_feature_t *user_features;
+  unsigned int        num_user_features;
+
+  /* Transient stuff */
+  hb_direction_t target_direction;
+};
+
+
+
+/* Main shaper */
+
+
+/* Prepare */
+
+static void
+hb_set_unicode_props (hb_buffer_t *buffer)
+{
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+    _hb_glyph_info_set_unicode_props (&info[i], buffer->unicode);
+}
+
+static void
+hb_insert_dotted_circle (hb_buffer_t *buffer, hb_font_t *font)
+{
+  if (!(buffer->flags & HB_BUFFER_FLAG_BOT) ||
+      buffer->context_len[0] ||
+      _hb_glyph_info_get_general_category (&buffer->info[0]) !=
+      HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK)
+    return;
+
+  if (!font->has_glyph (0x25CCu))
+    return;
+
+  hb_glyph_info_t dottedcircle = {0};
+  dottedcircle.codepoint = 0x25CCu;
+  _hb_glyph_info_set_unicode_props (&dottedcircle, buffer->unicode);
+
+  buffer->clear_output ();
+
+  buffer->idx = 0;
+  hb_glyph_info_t info = dottedcircle;
+  info.cluster = buffer->cur().cluster;
+  info.mask = buffer->cur().mask;
+  buffer->output_info (info);
+  while (buffer->idx < buffer->len)
+    buffer->next_glyph ();
+
+  buffer->swap_buffers ();
+}
+
+static void
+hb_form_clusters (hb_buffer_t *buffer)
+{
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 1; i < count; i++)
+    if (HB_UNICODE_GENERAL_CATEGORY_IS_MARK (_hb_glyph_info_get_general_category (&info[i])))
+      buffer->merge_clusters (i - 1, i + 1);
+}
+
+static void
+hb_ensure_native_direction (hb_buffer_t *buffer)
+{
+  hb_direction_t direction = buffer->props.direction;
+
+  /* TODO vertical:
+   * The only BTT vertical script is Ogham, but it's not clear to me whether OpenType
+   * Ogham fonts are supposed to be implemented BTT or not.  Need to research that
+   * first. */
+  if ((HB_DIRECTION_IS_HORIZONTAL (direction) && direction != hb_script_get_horizontal_direction (buffer->props.script)) ||
+      (HB_DIRECTION_IS_VERTICAL   (direction) && direction != HB_DIRECTION_TTB))
+  {
+    hb_buffer_reverse_clusters (buffer);
+    buffer->props.direction = HB_DIRECTION_REVERSE (buffer->props.direction);
+  }
+}
+
+
+/* Substitute */
+
+static inline void
+hb_ot_mirror_chars (hb_ot_shape_context_t *c)
+{
+  if (HB_DIRECTION_IS_FORWARD (c->target_direction))
+    return;
+
+  hb_buffer_t *buffer = c->buffer;
+  hb_unicode_funcs_t *unicode = buffer->unicode;
+  hb_mask_t rtlm_mask = c->plan->rtlm_mask;
+
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++) {
+    hb_codepoint_t codepoint = unicode->mirroring (info[i].codepoint);
+    if (likely (codepoint == info[i].codepoint))
+      info[i].mask |= rtlm_mask;
+    else
+      info[i].codepoint = codepoint;
+  }
+}
+
+static inline void
+hb_ot_shape_setup_masks_fraction (hb_ot_shape_context_t *c)
+{
+  if (!c->plan->has_frac)
+    return;
+
+  hb_buffer_t *buffer = c->buffer;
+
+  /* TODO look in pre/post context text also. */
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+  {
+    if (info[i].codepoint == 0x2044u) /* FRACTION SLASH */
+    {
+      unsigned int start = i, end = i + 1;
+      while (start &&
+            _hb_glyph_info_get_general_category (&info[start - 1]) ==
+            HB_UNICODE_GENERAL_CATEGORY_DECIMAL_NUMBER)
+        start--;
+      while (end < count &&
+            _hb_glyph_info_get_general_category (&info[end]) ==
+            HB_UNICODE_GENERAL_CATEGORY_DECIMAL_NUMBER)
+        end++;
+
+      for (unsigned int j = start; j < i; j++)
+        info[j].mask |= c->plan->numr_mask | c->plan->frac_mask;
+      info[i].mask |= c->plan->frac_mask;
+      for (unsigned int j = i + 1; j < end; j++)
+        info[j].mask |= c->plan->frac_mask | c->plan->dnom_mask;
+
+      i = end - 1;
+    }
+  }
+}
+
+static inline void
+hb_ot_shape_initialize_masks (hb_ot_shape_context_t *c)
+{
+  hb_ot_map_t *map = &c->plan->map;
+  hb_buffer_t *buffer = c->buffer;
+
+  hb_mask_t global_mask = map->get_global_mask ();
+  buffer->reset_masks (global_mask);
+}
+
+static inline void
+hb_ot_shape_setup_masks (hb_ot_shape_context_t *c)
+{
+  hb_ot_map_t *map = &c->plan->map;
+  hb_buffer_t *buffer = c->buffer;
+
+  hb_ot_shape_setup_masks_fraction (c);
+
+  if (c->plan->shaper->setup_masks)
+    c->plan->shaper->setup_masks (c->plan, buffer, c->font);
+
+  for (unsigned int i = 0; i < c->num_user_features; i++)
+  {
+    const hb_feature_t *feature = &c->user_features[i];
+    if (!(feature->start == 0 && feature->end == (unsigned int)-1)) {
+      unsigned int shift;
+      hb_mask_t mask = map->get_mask (feature->tag, &shift);
+      buffer->set_masks (feature->value << shift, mask, feature->start, feature->end);
+    }
+  }
+}
+
+static inline void
+hb_ot_map_glyphs_fast (hb_buffer_t  *buffer)
+{
+  /* Normalization process sets up glyph_index(), we just copy it. */
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+    info[i].codepoint = info[i].glyph_index();
+}
+
+static inline void
+hb_synthesize_glyph_classes (hb_ot_shape_context_t *c)
+{
+  unsigned int count = c->buffer->len;
+  hb_glyph_info_t *info = c->buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+  {
+    hb_ot_layout_glyph_class_mask_t klass;
+
+    /* Never mark default-ignorables as marks.
+     * They won't get in the way of lookups anyway,
+     * but having them as mark will cause them to be skipped
+     * over if the lookup-flag says so, but at least for the
+     * Mongolian variation selectors, looks like Uniscribe
+     * marks them as non-mark.  Some Mongolian fonts without
+     * GDEF rely on this.  Another notable character that
+     * this applies to is COMBINING GRAPHEME JOINER. */
+    klass = (_hb_glyph_info_get_general_category (&info[i]) !=
+            HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK ||
+            _hb_glyph_info_is_default_ignorable (&info[i])) ?
+           HB_OT_LAYOUT_GLYPH_PROPS_BASE_GLYPH :
+           HB_OT_LAYOUT_GLYPH_PROPS_MARK;
+    _hb_glyph_info_set_glyph_props (&info[i], klass);
+  }
+}
+
+static inline void
+hb_ot_substitute_default (hb_ot_shape_context_t *c)
+{
+  hb_buffer_t *buffer = c->buffer;
+
+  if (c->plan->shaper->preprocess_text)
+    c->plan->shaper->preprocess_text (c->plan, buffer, c->font);
+
+  hb_ot_shape_initialize_masks (c);
+
+  hb_ot_mirror_chars (c);
+
+  HB_BUFFER_ALLOCATE_VAR (buffer, glyph_index);
+
+  _hb_ot_shape_normalize (c->plan, buffer, c->font);
+
+  hb_ot_shape_setup_masks (c);
+
+  /* This is unfortunate to go here, but necessary... */
+  if (!hb_ot_layout_has_positioning (c->face))
+    _hb_ot_shape_fallback_position_recategorize_marks (c->plan, c->font, buffer);
+
+  hb_ot_map_glyphs_fast (buffer);
+
+  HB_BUFFER_DEALLOCATE_VAR (buffer, glyph_index);
+}
+
+static inline void
+hb_ot_substitute_complex (hb_ot_shape_context_t *c)
+{
+  hb_buffer_t *buffer = c->buffer;
+
+  _hb_buffer_allocate_gsubgpos_vars (buffer);
+  hb_ot_layout_substitute_start (c->font, buffer);
+
+  if (!hb_ot_layout_has_glyph_classes (c->face))
+    hb_synthesize_glyph_classes (c);
+
+  c->plan->substitute (c->font, buffer);
+
+  hb_ot_layout_substitute_finish (c->font, buffer);
+
+  return;
+}
+
+static inline void
+hb_ot_substitute (hb_ot_shape_context_t *c)
+{
+  hb_ot_substitute_default (c);
+  hb_ot_substitute_complex (c);
+}
+
+/* Position */
+
+static inline void
+adjust_mark_offsets (hb_glyph_position_t *pos)
+{
+  pos->x_offset -= pos->x_advance;
+  pos->y_offset -= pos->y_advance;
+}
+
+static inline void
+zero_mark_width (hb_glyph_position_t *pos)
+{
+  pos->x_advance = 0;
+  pos->y_advance = 0;
+}
+
+static inline void
+zero_mark_widths_by_unicode (hb_buffer_t *buffer, bool adjust_offsets)
+{
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+    if (_hb_glyph_info_get_general_category (&info[i]) == HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK)
+    {
+      if (adjust_offsets)
+        adjust_mark_offsets (&buffer->pos[i]);
+      zero_mark_width (&buffer->pos[i]);
+    }
+}
+
+static inline void
+zero_mark_widths_by_gdef (hb_buffer_t *buffer, bool adjust_offsets)
+{
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+    if (_hb_glyph_info_is_mark (&info[i]))
+    {
+      if (adjust_offsets)
+        adjust_mark_offsets (&buffer->pos[i]);
+      zero_mark_width (&buffer->pos[i]);
+    }
+}
+
+static inline void
+hb_ot_position_default (hb_ot_shape_context_t *c)
+{
+  hb_direction_t direction = c->buffer->props.direction;
+  unsigned int count = c->buffer->len;
+  hb_glyph_info_t *info = c->buffer->info;
+  hb_glyph_position_t *pos = c->buffer->pos;
+  for (unsigned int i = 0; i < count; i++)
+  {
+    c->font->get_glyph_advance_for_direction (info[i].codepoint,
+                                             direction,
+                                             &pos[i].x_advance,
+                                             &pos[i].y_advance);
+    c->font->subtract_glyph_origin_for_direction (info[i].codepoint,
+                                                 direction,
+                                                 &pos[i].x_offset,
+                                                 &pos[i].y_offset);
+
+  }
+}
+
+static inline bool
+hb_ot_position_complex (hb_ot_shape_context_t *c)
+{
+  bool ret = false;
+  unsigned int count = c->buffer->len;
+  bool has_positioning = hb_ot_layout_has_positioning (c->face);
+  /* If the font has no GPOS, AND, no fallback positioning will
+   * happen, AND, direction is forward, then when zeroing mark
+   * widths, we shift the mark with it, such that the mark
+   * is positioned hanging over the previous glyph.  When
+   * direction is backward we don't shift and it will end up
+   * hanging over the next glyph after the final reordering.
+   * If fallback positinoing happens or GPOS is present, we don't
+   * care.
+   */
+  bool adjust_offsets_when_zeroing = !(has_positioning || c->plan->shaper->fallback_position ||
+                                       HB_DIRECTION_IS_BACKWARD (c->buffer->props.direction));
+
+  switch (c->plan->shaper->zero_width_marks)
+  {
+    case HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_EARLY:
+      zero_mark_widths_by_gdef (c->buffer, adjust_offsets_when_zeroing);
+      break;
+
+    /* Not currently used for any shaper:
+    case HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_UNICODE_EARLY:
+      zero_mark_widths_by_unicode (c->buffer, adjust_offsets_when_zeroing);
+      break;
+    */
+
+    default:
+    case HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE:
+    case HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_UNICODE_LATE:
+    case HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_LATE:
+      break;
+  }
+
+  if (has_positioning)
+  {
+    hb_glyph_info_t *info = c->buffer->info;
+    hb_glyph_position_t *pos = c->buffer->pos;
+
+    /* Change glyph origin to what GPOS expects, apply GPOS, change it back. */
+
+    for (unsigned int i = 0; i < count; i++) {
+      c->font->add_glyph_origin_for_direction (info[i].codepoint,
+                                              HB_DIRECTION_LTR,
+                                              &pos[i].x_offset,
+                                              &pos[i].y_offset);
+    }
+
+    c->plan->position (c->font, c->buffer);
+
+    for (unsigned int i = 0; i < count; i++) {
+      c->font->subtract_glyph_origin_for_direction (info[i].codepoint,
+                                                   HB_DIRECTION_LTR,
+                                                   &pos[i].x_offset,
+                                                   &pos[i].y_offset);
+    }
+
+    ret = true;
+  }
+
+  switch (c->plan->shaper->zero_width_marks)
+  {
+    case HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_UNICODE_LATE:
+      zero_mark_widths_by_unicode (c->buffer, adjust_offsets_when_zeroing);
+      break;
+
+    case HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_LATE:
+      zero_mark_widths_by_gdef (c->buffer, adjust_offsets_when_zeroing);
+      break;
+
+    default:
+    case HB_OT_SHAPE_ZERO_WIDTH_MARKS_NONE:
+    //case HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_UNICODE_EARLY:
+    case HB_OT_SHAPE_ZERO_WIDTH_MARKS_BY_GDEF_EARLY:
+      break;
+  }
+
+  return ret;
+}
+
+static inline void
+hb_ot_position (hb_ot_shape_context_t *c)
+{
+  hb_ot_layout_position_start (c->font, c->buffer);
+
+  hb_ot_position_default (c);
+
+  hb_bool_t fallback = !hb_ot_position_complex (c);
+
+  hb_ot_layout_position_finish (c->font, c->buffer);
+
+  if (fallback && c->plan->shaper->fallback_position)
+    _hb_ot_shape_fallback_position (c->plan, c->font, c->buffer);
+
+  if (HB_DIRECTION_IS_BACKWARD (c->buffer->props.direction))
+    hb_buffer_reverse (c->buffer);
+
+  /* Visual fallback goes here. */
+
+  if (fallback)
+    _hb_ot_shape_fallback_kern (c->plan, c->font, c->buffer);
+
+  _hb_buffer_deallocate_gsubgpos_vars (c->buffer);
+}
+
+
+/* Post-process */
+
+static void
+hb_ot_hide_default_ignorables (hb_ot_shape_context_t *c)
+{
+  if (c->buffer->flags & HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES)
+    return;
+
+  hb_codepoint_t space;
+  enum {
+    SPACE_DONT_KNOW,
+    SPACE_AVAILABLE,
+    SPACE_UNAVAILABLE
+  } space_status = SPACE_DONT_KNOW;
+
+  unsigned int count = c->buffer->len;
+  hb_glyph_info_t *info = c->buffer->info;
+  hb_glyph_position_t *pos = c->buffer->pos;
+  unsigned int j = 0;
+  for (unsigned int i = 0; i < count; i++)
+  {
+    if (unlikely (!_hb_glyph_info_ligated (&info[i]) &&
+                 _hb_glyph_info_is_default_ignorable (&info[i])))
+    {
+      if (space_status == SPACE_DONT_KNOW)
+       space_status = c->font->get_glyph (' ', 0, &space) ? SPACE_AVAILABLE : SPACE_UNAVAILABLE;
+
+      if (space_status == SPACE_AVAILABLE)
+      {
+       info[i].codepoint = space;
+       pos[i].x_advance = 0;
+       pos[i].y_advance = 0;
+      }
+      else
+       continue; /* Delete it. */
+    }
+    if (j != i)
+    {
+      info[j] = info[i];
+      pos[j] = pos[i];
+    }
+    j++;
+  }
+  c->buffer->len = j;
+}
+
+
+/* Pull it all together! */
+
+static void
+hb_ot_shape_internal (hb_ot_shape_context_t *c)
+{
+  c->buffer->deallocate_var_all ();
+
+  /* Save the original direction, we use it later. */
+  c->target_direction = c->buffer->props.direction;
+
+  _hb_buffer_allocate_unicode_vars (c->buffer);
+
+  c->buffer->clear_output ();
+
+  hb_set_unicode_props (c->buffer);
+  hb_insert_dotted_circle (c->buffer, c->font);
+  hb_form_clusters (c->buffer);
+
+  hb_ensure_native_direction (c->buffer);
+
+  hb_ot_substitute (c);
+  hb_ot_position (c);
+
+  hb_ot_hide_default_ignorables (c);
+
+  _hb_buffer_deallocate_unicode_vars (c->buffer);
+
+  c->buffer->props.direction = c->target_direction;
+
+  c->buffer->deallocate_var_all ();
+}
+
+
+hb_bool_t
+_hb_ot_shape (hb_shape_plan_t    *shape_plan,
+             hb_font_t          *font,
+             hb_buffer_t        *buffer,
+             const hb_feature_t *features,
+             unsigned int        num_features)
+{
+  hb_ot_shape_context_t c = {HB_SHAPER_DATA_GET (shape_plan), font, font->face, buffer, features, num_features};
+  hb_ot_shape_internal (&c);
+
+  return true;
+}
+
+
+void
+hb_ot_shape_plan_collect_lookups (hb_shape_plan_t *shape_plan,
+                                 hb_tag_t         table_tag,
+                                 hb_set_t        *lookup_indexes /* OUT */)
+{
+  /* XXX Does the first part always succeed? */
+  HB_SHAPER_DATA_GET (shape_plan)->collect_lookups (table_tag, lookup_indexes);
+}
+
+
+/* TODO Move this to hb-ot-shape-normalize, make it do decompose, and make it public. */
+static void
+add_char (hb_font_t          *font,
+         hb_unicode_funcs_t *unicode,
+         hb_bool_t           mirror,
+         hb_codepoint_t      u,
+         hb_set_t           *glyphs)
+{
+  hb_codepoint_t glyph;
+  if (font->get_glyph (u, 0, &glyph))
+    glyphs->add (glyph);
+  if (mirror)
+  {
+    hb_codepoint_t m = unicode->mirroring (u);
+    if (m != u && font->get_glyph (m, 0, &glyph))
+      glyphs->add (glyph);
+  }
+}
+
+
+void
+hb_ot_shape_glyphs_closure (hb_font_t          *font,
+                           hb_buffer_t        *buffer,
+                           const hb_feature_t *features,
+                           unsigned int        num_features,
+                           hb_set_t           *glyphs)
+{
+  hb_ot_shape_plan_t plan;
+
+  const char *shapers[] = {"ot", NULL};
+  hb_shape_plan_t *shape_plan = hb_shape_plan_create_cached (font->face, &buffer->props,
+                                                            features, num_features, shapers);
+
+  bool mirror = hb_script_get_horizontal_direction (buffer->props.script) == HB_DIRECTION_RTL;
+
+  unsigned int count = buffer->len;
+  hb_glyph_info_t *info = buffer->info;
+  for (unsigned int i = 0; i < count; i++)
+    add_char (font, buffer->unicode, mirror, info[i].codepoint, glyphs);
+
+  hb_set_t lookups;
+  lookups.init ();
+  hb_ot_shape_plan_collect_lookups (shape_plan, HB_OT_TAG_GSUB, &lookups);
+
+  /* And find transitive closure. */
+  hb_set_t copy;
+  copy.init ();
+  do {
+    copy.set (glyphs);
+    for (hb_codepoint_t lookup_index = -1; hb_set_next (&lookups, &lookup_index);)
+      hb_ot_layout_lookup_substitute_closure (font->face, lookup_index, glyphs);
+  } while (!copy.is_equal (glyphs));
+
+  hb_shape_plan_destroy (shape_plan);
+}
diff --git a/src/hb-ot-shape.h b/src/hb-ot-shape.h
new file mode 100644 (file)
index 0000000..1402f54
--- /dev/null
@@ -0,0 +1,53 @@
+/*
+ * Copyright © 2013  Red Hat, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_H_IN
+#error "Include <hb-ot.h> instead."
+#endif
+
+#ifndef HB_OT_SHAPE_H
+#define HB_OT_SHAPE_H
+
+#include "hb.h"
+
+HB_BEGIN_DECLS
+
+/* TODO port to shape-plan / set. */
+void
+hb_ot_shape_glyphs_closure (hb_font_t          *font,
+                           hb_buffer_t        *buffer,
+                           const hb_feature_t *features,
+                           unsigned int        num_features,
+                           hb_set_t           *glyphs);
+
+void
+hb_ot_shape_plan_collect_lookups (hb_shape_plan_t *shape_plan,
+                                 hb_tag_t         table_tag,
+                                 hb_set_t        *lookup_indexes /* OUT */);
+
+HB_END_DECLS
+
+#endif /* HB_OT_SHAPE_H */
diff --git a/src/hb-ot-tag.cc b/src/hb-ot-tag.cc
new file mode 100644 (file)
index 0000000..878dd79
--- /dev/null
@@ -0,0 +1,903 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod, Roozbeh Pournader
+ */
+
+#include "hb-private.hh"
+
+#include <string.h>
+
+
+
+/* hb_script_t */
+
+static hb_tag_t
+hb_ot_old_tag_from_script (hb_script_t script)
+{
+  /* This seems to be accurate as of end of 2012. */
+
+  switch ((hb_tag_t) script) {
+    case HB_SCRIPT_INVALID:            return HB_OT_TAG_DEFAULT_SCRIPT;
+
+    /* KATAKANA and HIRAGANA both map to 'kana' */
+    case HB_SCRIPT_HIRAGANA:           return HB_TAG('k','a','n','a');
+
+    /* Spaces at the end are preserved, unlike ISO 15924 */
+    case HB_SCRIPT_LAO:                        return HB_TAG('l','a','o',' ');
+    case HB_SCRIPT_YI:                 return HB_TAG('y','i',' ',' ');
+    /* Unicode-5.0 additions */
+    case HB_SCRIPT_NKO:                        return HB_TAG('n','k','o',' ');
+    /* Unicode-5.1 additions */
+    case HB_SCRIPT_VAI:                        return HB_TAG('v','a','i',' ');
+    /* Unicode-5.2 additions */
+    /* Unicode-6.0 additions */
+  }
+
+  /* Else, just change first char to lowercase and return */
+  return ((hb_tag_t) script) | 0x20000000u;
+}
+
+static hb_script_t
+hb_ot_old_tag_to_script (hb_tag_t tag)
+{
+  if (unlikely (tag == HB_OT_TAG_DEFAULT_SCRIPT))
+    return HB_SCRIPT_INVALID;
+
+  /* This side of the conversion is fully algorithmic. */
+
+  /* Any spaces at the end of the tag are replaced by repeating the last
+   * letter.  Eg 'nko ' -> 'Nkoo' */
+  if (unlikely ((tag & 0x0000FF00u) == 0x00002000u))
+    tag |= (tag >> 8) & 0x0000FF00u; /* Copy second letter to third */
+  if (unlikely ((tag & 0x000000FFu) == 0x00000020u))
+    tag |= (tag >> 8) & 0x000000FFu; /* Copy third letter to fourth */
+
+  /* Change first char to uppercase and return */
+  return (hb_script_t) (tag & ~0x20000000u);
+}
+
+static hb_tag_t
+hb_ot_new_tag_from_script (hb_script_t script)
+{
+  switch ((hb_tag_t) script) {
+    case HB_SCRIPT_BENGALI:            return HB_TAG('b','n','g','2');
+    case HB_SCRIPT_DEVANAGARI:         return HB_TAG('d','e','v','2');
+    case HB_SCRIPT_GUJARATI:           return HB_TAG('g','j','r','2');
+    case HB_SCRIPT_GURMUKHI:           return HB_TAG('g','u','r','2');
+    case HB_SCRIPT_KANNADA:            return HB_TAG('k','n','d','2');
+    case HB_SCRIPT_MALAYALAM:          return HB_TAG('m','l','m','2');
+    case HB_SCRIPT_ORIYA:              return HB_TAG('o','r','y','2');
+    case HB_SCRIPT_TAMIL:              return HB_TAG('t','m','l','2');
+    case HB_SCRIPT_TELUGU:             return HB_TAG('t','e','l','2');
+    case HB_SCRIPT_MYANMAR:            return HB_TAG('m','y','m','2');
+  }
+
+  return HB_OT_TAG_DEFAULT_SCRIPT;
+}
+
+static hb_script_t
+hb_ot_new_tag_to_script (hb_tag_t tag)
+{
+  switch (tag) {
+    case HB_TAG('b','n','g','2'):      return HB_SCRIPT_BENGALI;
+    case HB_TAG('d','e','v','2'):      return HB_SCRIPT_DEVANAGARI;
+    case HB_TAG('g','j','r','2'):      return HB_SCRIPT_GUJARATI;
+    case HB_TAG('g','u','r','2'):      return HB_SCRIPT_GURMUKHI;
+    case HB_TAG('k','n','d','2'):      return HB_SCRIPT_KANNADA;
+    case HB_TAG('m','l','m','2'):      return HB_SCRIPT_MALAYALAM;
+    case HB_TAG('o','r','y','2'):      return HB_SCRIPT_ORIYA;
+    case HB_TAG('t','m','l','2'):      return HB_SCRIPT_TAMIL;
+    case HB_TAG('t','e','l','2'):      return HB_SCRIPT_TELUGU;
+    case HB_TAG('m','y','m','2'):      return HB_SCRIPT_MYANMAR;
+  }
+
+  return HB_SCRIPT_UNKNOWN;
+}
+
+/*
+ * Complete list at:
+ * https://www.microsoft.com/typography/otspec/scripttags.htm
+ * https://www.microsoft.com/typography/otspec160/scripttagsProposed.htm
+ *
+ * Most of the script tags are the same as the ISO 15924 tag but lowercased.
+ * So we just do that, and handle the exceptional cases in a switch.
+ */
+
+void
+hb_ot_tags_from_script (hb_script_t  script,
+                       hb_tag_t    *script_tag_1,
+                       hb_tag_t    *script_tag_2)
+{
+  hb_tag_t new_tag;
+
+  *script_tag_2 = HB_OT_TAG_DEFAULT_SCRIPT;
+  *script_tag_1 = hb_ot_old_tag_from_script (script);
+
+  new_tag = hb_ot_new_tag_from_script (script);
+  if (unlikely (new_tag != HB_OT_TAG_DEFAULT_SCRIPT)) {
+    *script_tag_2 = *script_tag_1;
+    *script_tag_1 = new_tag;
+  }
+}
+
+hb_script_t
+hb_ot_tag_to_script (hb_tag_t tag)
+{
+  if (unlikely ((tag & 0x000000FFu) == '2'))
+    return hb_ot_new_tag_to_script (tag);
+
+  return hb_ot_old_tag_to_script (tag);
+}
+
+
+/* hb_language_t */
+
+typedef struct {
+  char language[4];
+  hb_tag_t tag;
+} LangTag;
+
+/*
+ * Complete list at:
+ * http://www.microsoft.com/typography/otspec/languagetags.htm
+ *
+ * Generated by intersecting the OpenType language tag list from
+ * Draft OpenType 1.5 spec, with with the ISO 639-3 codes from
+ * 2008-08-04, matching on name, and finally adjusted manually.
+ *
+ * Updated on 2012-12-07 with more research into remaining codes.
+ *
+ * Updated on 2013-11-23 based on usage in SIL and Microsoft fonts,
+ * the new proposal from Microsoft, and latest ISO 639-3 names.
+ *
+ * Some items still missing.  Those are commented out at the end.
+ * Keep sorted for bsearch.
+ */
+
+static const LangTag ot_languages[] = {
+  {"aa",       HB_TAG('A','F','R',' ')},       /* Afar */
+  {"ab",       HB_TAG('A','B','K',' ')},       /* Abkhazian */
+  {"abq",      HB_TAG('A','B','A',' ')},       /* Abaza */
+  {"ach",      HB_TAG('A','C','H',' ')},       /* Acoli */
+  {"ada",      HB_TAG('D','N','G',' ')},       /* Dangme */
+  {"ady",      HB_TAG('A','D','Y',' ')},       /* Adyghe */
+  {"af",       HB_TAG('A','F','K',' ')},       /* Afrikaans */
+  {"aii",      HB_TAG('S','W','A',' ')},       /* Swadaya Aramaic */
+  {"aio",      HB_TAG('A','I','O',' ')},       /* Aiton */
+  {"aiw",      HB_TAG('A','R','I',' ')},       /* Aari */
+  {"ak",       HB_TAG('T','W','I',' ')},       /* Akan [macrolanguage] */
+  {"alt",      HB_TAG('A','L','T',' ')},       /* [Southern] Altai */
+  {"am",       HB_TAG('A','M','H',' ')},       /* Amharic */
+  {"amf",      HB_TAG('H','B','N',' ')},       /* Hammer-Banna */
+  {"an",       HB_TAG('A','R','G',' ')},       /* Aragonese */
+  {"ang",      HB_TAG('A','N','G',' ')},       /* Old English (ca. 450-1100) */
+  {"ar",       HB_TAG('A','R','A',' ')},       /* Arabic [macrolanguage] */
+  {"arb",      HB_TAG('A','R','A',' ')},       /* Standard Arabic */
+  {"arn",      HB_TAG('M','A','P',' ')},       /* Mapudungun */
+  {"ary",      HB_TAG('M','O','R',' ')},       /* Moroccan Arabic */
+  {"as",       HB_TAG('A','S','M',' ')},       /* Assamese */
+  {"ast",      HB_TAG('A','S','T',' ')},       /* Asturian/Asturleonese/Bable/Leonese */
+  {"ath",      HB_TAG('A','T','H',' ')},       /* Athapaskan [family] */
+  {"atv",      HB_TAG('A','L','T',' ')},       /* [Northern] Altai */
+  {"av",       HB_TAG('A','V','R',' ')},       /* Avaric */
+  {"awa",      HB_TAG('A','W','A',' ')},       /* Awadhi */
+  {"ay",       HB_TAG('A','Y','M',' ')},       /* Aymara [macrolanguage] */
+  {"az",       HB_TAG('A','Z','E',' ')},       /* Azerbaijani [macrolanguage] */
+  {"azb",      HB_TAG('A','Z','B',' ')},       /* South Azerbaijani */
+  {"azj",      HB_TAG('A','Z','E',' ')},       /* North Azerbaijani */
+  {"ba",       HB_TAG('B','S','H',' ')},       /* Bashkir */
+  {"bai",      HB_TAG('B','M','L',' ')},       /* Bamileke [family] */
+  {"bal",      HB_TAG('B','L','I',' ')},       /* Baluchi [macrolangauge] */
+  {"ban",      HB_TAG('B','A','N',' ')},       /* Balinese */
+  {"bar",      HB_TAG('B','A','R',' ')},       /* Bavarian */
+  {"bbc",      HB_TAG('B','B','C',' ')},       /* Batak Toba */
+  {"bci",      HB_TAG('B','A','U',' ')},       /* Baoulé */
+  {"bcl",      HB_TAG('B','I','K',' ')},       /* Central Bikol */
+  {"bcq",      HB_TAG('B','C','H',' ')},       /* Bench */
+  {"be",       HB_TAG('B','E','L',' ')},       /* Belarusian */
+  {"bem",      HB_TAG('B','E','M',' ')},       /* Bemba (Zambia) */
+  {"ber",      HB_TAG('B','E','R',' ')},       /* Berber [family] */
+  {"bfq",      HB_TAG('B','A','D',' ')},       /* Badaga */
+  {"bft",      HB_TAG('B','L','T',' ')},       /* Balti */
+  {"bfy",      HB_TAG('B','A','G',' ')},       /* Baghelkhandi */
+  {"bg",       HB_TAG('B','G','R',' ')},       /* Bulgarian */
+  {"bgc",      HB_TAG('B','G','C',' ')},       /* Haryanvi */
+  {"bgq",      HB_TAG('B','G','Q',' ')},       /* Bagri */
+  {"bhb",      HB_TAG('B','H','I',' ')},       /* Bhili */
+  {"bhk",      HB_TAG('B','I','K',' ')},       /* Albay Bicolano (retired code) */
+  {"bho",      HB_TAG('B','H','O',' ')},       /* Bhojpuri */
+  {"bi",       HB_TAG('B','I','S',' ')},       /* Bislama */
+  {"bik",      HB_TAG('B','I','K',' ')},       /* Bikol [macrolanguage] */
+  {"bin",      HB_TAG('E','D','O',' ')},       /* Bini */
+  {"bjj",      HB_TAG('B','J','J',' ')},       /* Kanauji */
+  {"bjt",      HB_TAG('B','L','N',' ')},       /* Balanta-Ganja */
+  {"bla",      HB_TAG('B','K','F',' ')},       /* Blackfoot */
+  {"ble",      HB_TAG('B','L','N',' ')},       /* Balanta-Kentohe */
+  {"blk",      HB_TAG('B','L','K',' ')},       /* Pa'O/Pa'o Karen */
+  {"bln",      HB_TAG('B','I','K',' ')},       /* Southern Catanduanes Bikol */
+  {"bm",       HB_TAG('B','M','B',' ')},       /* Bambara */
+  {"bn",       HB_TAG('B','E','N',' ')},       /* Bengali */
+  {"bo",       HB_TAG('T','I','B',' ')},       /* Tibetan */
+  {"bpy",      HB_TAG('B','P','Y',' ')},       /* Bishnupriya */
+  {"bqi",      HB_TAG('L','R','C',' ')},       /* Bakhtiari */
+  {"br",       HB_TAG('B','R','E',' ')},       /* Breton */
+  {"bra",      HB_TAG('B','R','I',' ')},       /* Braj Bhasha */
+  {"brh",      HB_TAG('B','R','H',' ')},       /* Brahui */
+  {"brx",      HB_TAG('B','R','X',' ')},       /* Bodo (India) */
+  {"bs",       HB_TAG('B','O','S',' ')},       /* Bosnian */
+  {"btb",      HB_TAG('B','T','I',' ')},       /* Beti (Cameroon) */
+  {"bto",      HB_TAG('B','I','K',' ')},       /* Rinconada Bikol */
+  {"bts",      HB_TAG('B','T','S',' ')},       /* Batak Simalungun */
+  {"bug",      HB_TAG('B','U','G',' ')},       /* Buginese */
+  {"bxr",      HB_TAG('R','B','U',' ')},       /* Russian Buriat */
+  {"byn",      HB_TAG('B','I','L',' ')},       /* Bilen */
+  {"ca",       HB_TAG('C','A','T',' ')},       /* Catalan */
+  {"cbk",      HB_TAG('C','B','K',' ')},       /* Chavacano */
+  {"ce",       HB_TAG('C','H','E',' ')},       /* Chechen */
+  {"ceb",      HB_TAG('C','E','B',' ')},       /* Cebuano */
+  {"cgg",      HB_TAG('C','G','G',' ')},       /* Chiga */
+  {"ch",       HB_TAG('C','H','A',' ')},       /* Chamorro */
+  {"cho",      HB_TAG('C','H','O',' ')},       /* Choctaw */
+  {"chp",      HB_TAG('C','H','P',' ')},       /* Chipewyan */
+  {"chr",      HB_TAG('C','H','R',' ')},       /* Cherokee */
+  {"chy",      HB_TAG('C','H','Y',' ')},       /* Cheyenne */
+  {"ckb",      HB_TAG('K','U','R',' ')},       /* Central Kurdish (Sorani) */
+  {"ckt",      HB_TAG('C','H','K',' ')},       /* Chukchi */
+  {"cop",      HB_TAG('C','O','P',' ')},       /* Coptic */
+  {"cr",       HB_TAG('C','R','E',' ')},       /* Cree */
+  {"crh",      HB_TAG('C','R','T',' ')},       /* Crimean Tatar */
+  {"crj",      HB_TAG('E','C','R',' ')},       /* [Southern] East Cree */
+  {"crl",      HB_TAG('E','C','R',' ')},       /* [Northern] East Cree */
+  {"crm",      HB_TAG('M','C','R',' ')},       /* Moose Cree */
+  {"crx",      HB_TAG('C','R','R',' ')},       /* Carrier */
+  {"cs",       HB_TAG('C','S','Y',' ')},       /* Czech */
+  {"csb",      HB_TAG('C','S','B',' ')},       /* Kashubian */
+  {"ctg",      HB_TAG('C','T','G',' ')},       /* Chittagonian */
+  {"cts",      HB_TAG('B','I','K',' ')},       /* Northern Catanduanes Bikol */
+  {"cu",       HB_TAG('C','S','L',' ')},       /* Church Slavic */
+  {"cv",       HB_TAG('C','H','U',' ')},       /* Chuvash */
+  {"cwd",      HB_TAG('D','C','R',' ')},       /* Woods Cree */
+  {"cy",       HB_TAG('W','E','L',' ')},       /* Welsh */
+  {"da",       HB_TAG('D','A','N',' ')},       /* Danish */
+  {"dap",      HB_TAG('N','I','S',' ')},       /* Nisi (India) */
+  {"dar",      HB_TAG('D','A','R',' ')},       /* Dargwa */
+  {"de",       HB_TAG('D','E','U',' ')},       /* German */
+  {"dgo",      HB_TAG('D','G','O',' ')},       /* Dogri */
+  {"dhd",      HB_TAG('M','A','W',' ')},       /* Dhundari */
+  {"din",      HB_TAG('D','N','K',' ')},       /* Dinka [macrolanguage] */
+  {"diq",      HB_TAG('D','I','Q',' ')},       /* Dimli */
+  {"dje",      HB_TAG('D','J','R',' ')},       /* Zarma */
+  {"dng",      HB_TAG('D','U','N',' ')},       /* Dungan */
+  {"doi",      HB_TAG('D','G','R',' ')},       /* Dogri [macrolanguage] */
+  {"dsb",      HB_TAG('L','S','B',' ')},       /* Lower Sorbian */
+  {"dv",       HB_TAG('D','I','V',' ')},       /* Dhivehi/Divehi/Maldivian */
+  {"dyu",      HB_TAG('J','U','L',' ')},       /* Jula */
+  {"dz",       HB_TAG('D','Z','N',' ')},       /* Dzongkha */
+  {"ee",       HB_TAG('E','W','E',' ')},       /* Ewe */
+  {"efi",      HB_TAG('E','F','I',' ')},       /* Efik */
+  {"ekk",      HB_TAG('E','T','I',' ')},       /* Standard Estonian */
+  {"el",       HB_TAG('E','L','L',' ')},       /* Modern Greek (1453-) */
+  {"emk",      HB_TAG('M','N','K',' ')},       /* Eastern Maninkakan */
+  {"en",       HB_TAG('E','N','G',' ')},       /* English */
+  {"eo",       HB_TAG('N','T','O',' ')},       /* Esperanto */
+  {"eot",      HB_TAG('B','T','I',' ')},       /* Beti (Côte d'Ivoire) */
+  {"es",       HB_TAG('E','S','P',' ')},       /* Spanish */
+  {"et",       HB_TAG('E','T','I',' ')},       /* Estonian [macrolanguage] */
+  {"eu",       HB_TAG('E','U','Q',' ')},       /* Basque */
+  {"eve",      HB_TAG('E','V','N',' ')},       /* Even */
+  {"evn",      HB_TAG('E','V','K',' ')},       /* Evenki */
+  {"fa",       HB_TAG('F','A','R',' ')},       /* Persian [macrolanguage] */
+  {"ff",       HB_TAG('F','U','L',' ')},       /* Fulah [macrolanguage] */
+  {"fi",       HB_TAG('F','I','N',' ')},       /* Finnish */
+  {"fil",      HB_TAG('P','I','L',' ')},       /* Filipino */
+  {"fj",       HB_TAG('F','J','I',' ')},       /* Fijian */
+  {"fo",       HB_TAG('F','O','S',' ')},       /* Faroese */
+  {"fon",      HB_TAG('F','O','N',' ')},       /* Fon */
+  {"fr",       HB_TAG('F','R','A',' ')},       /* French */
+  {"frc",      HB_TAG('F','R','C',' ')},       /* Cajun French */
+  {"frp",      HB_TAG('F','R','P',' ')},       /* Arpitan/Francoprovençal */
+  {"fur",      HB_TAG('F','R','L',' ')},       /* Friulian */
+  {"fuv",      HB_TAG('F','U','V',' ')},       /* Nigerian Fulfulde */
+  {"fy",       HB_TAG('F','R','I',' ')},       /* Western Frisian */
+  {"ga",       HB_TAG('I','R','I',' ')},       /* Irish */
+  {"gaa",      HB_TAG('G','A','D',' ')},       /* Ga */
+  {"gag",      HB_TAG('G','A','G',' ')},       /* Gagauz */
+  {"gbm",      HB_TAG('G','A','W',' ')},       /* Garhwali */
+  {"gd",       HB_TAG('G','A','E',' ')},       /* Scottish Gaelic */
+  {"gez",      HB_TAG('G','E','Z',' ')},       /* Ge'ez */
+  {"ggo",      HB_TAG('G','O','N',' ')},       /* Southern Gondi */
+  {"gl",       HB_TAG('G','A','L',' ')},       /* Galician */
+  {"gld",      HB_TAG('N','A','N',' ')},       /* Nanai */
+  {"glk",      HB_TAG('G','L','K',' ')},       /* Gilaki */
+  {"gn",       HB_TAG('G','U','A',' ')},       /* Guarani [macrolanguage] */
+  {"gno",      HB_TAG('G','O','N',' ')},       /* Northern Gondi */
+  {"gog",      HB_TAG('G','O','G',' ')},       /* Gogo */
+  {"gon",      HB_TAG('G','O','N',' ')},       /* Gondi [macrolanguage] */
+  {"grt",      HB_TAG('G','R','O',' ')},       /* Garo */
+  {"gru",      HB_TAG('S','O','G',' ')},       /* Sodo Gurage */
+  {"gu",       HB_TAG('G','U','J',' ')},       /* Gujarati */
+  {"guc",      HB_TAG('G','U','C',' ')},       /* Wayuu */
+  {"guk",      HB_TAG('G','M','Z',' ')},       /* Gumuz */
+/*{"guk",      HB_TAG('G','U','K',' ')},*/     /* Gumuz (in SIL fonts) */
+  {"guz",      HB_TAG('G','U','Z',' ')},       /* Ekegusii/Gusii */
+  {"gv",       HB_TAG('M','N','X',' ')},       /* Manx */
+  {"ha",       HB_TAG('H','A','U',' ')},       /* Hausa */
+  {"har",      HB_TAG('H','R','I',' ')},       /* Harari */
+  {"haw",      HB_TAG('H','A','W',' ')},       /* Hawaiian */
+  {"hay",      HB_TAG('H','A','Y',' ')},       /* Haya */
+  {"haz",      HB_TAG('H','A','Z',' ')},       /* Hazaragi */
+  {"he",       HB_TAG('I','W','R',' ')},       /* Hebrew */
+  {"hz",       HB_TAG('H','E','R',' ')},       /* Herero */
+  {"hi",       HB_TAG('H','I','N',' ')},       /* Hindi */
+  {"hil",      HB_TAG('H','I','L',' ')},       /* Hiligaynon */
+  {"hnd",      HB_TAG('H','N','D',' ')},       /* [Southern] Hindko */
+  {"hne",      HB_TAG('C','H','H',' ')},       /* Chattisgarhi */
+  {"hno",      HB_TAG('H','N','D',' ')},       /* [Northern] Hindko */
+  {"ho",       HB_TAG('H','M','O',' ')},       /* Hiri Motu */
+  {"hoc",      HB_TAG('H','O',' ',' ')},       /* Ho */
+  {"hoj",      HB_TAG('H','A','R',' ')},       /* Harauti */
+  {"hr",       HB_TAG('H','R','V',' ')},       /* Croatian */
+  {"hsb",      HB_TAG('U','S','B',' ')},       /* Upper Sorbian */
+  {"ht",       HB_TAG('H','A','I',' ')},       /* Haitian/Haitian Creole */
+  {"hu",       HB_TAG('H','U','N',' ')},       /* Hungarian */
+  {"hy",       HB_TAG('H','Y','E',' ')},       /* Armenian */
+  {"hz",       HB_TAG('H','E','R',' ')},       /* Herero */
+  {"ia",       HB_TAG('I','N','A',' ')},       /* Interlingua (International Auxiliary Language Association) */
+  {"ibb",      HB_TAG('I','B','B',' ')},       /* Ibibio */
+  {"id",       HB_TAG('I','N','D',' ')},       /* Indonesian */
+  {"ie",       HB_TAG('I','L','E',' ')},       /* Interlingue/Occidental */
+  {"ig",       HB_TAG('I','B','O',' ')},       /* Igbo */
+  {"igb",      HB_TAG('E','B','I',' ')},       /* Ebira */
+  {"ijc",      HB_TAG('I','J','O',' ')},       /* Izon */
+  {"ijo",      HB_TAG('I','J','O',' ')},       /* Ijo [family] */
+  {"ik",       HB_TAG('I','P','K',' ')},       /* Inupiaq [macrolanguage] */
+  {"ilo",      HB_TAG('I','L','O',' ')},       /* Ilokano */
+  {"inh",      HB_TAG('I','N','G',' ')},       /* Ingush */
+  {"io",       HB_TAG('I','D','O',' ')},       /* Ido */
+  {"is",       HB_TAG('I','S','L',' ')},       /* Icelandic */
+  {"it",       HB_TAG('I','T','A',' ')},       /* Italian */
+  {"iu",       HB_TAG('I','N','U',' ')},       /* Inuktitut [macrolanguage] */
+  {"ja",       HB_TAG('J','A','N',' ')},       /* Japanese */
+  {"jam",      HB_TAG('J','A','M',' ')},       /* Jamaican Creole English */
+  {"jbo",      HB_TAG('J','B','O',' ')},       /* Lojban */
+  {"jv",       HB_TAG('J','A','V',' ')},       /* Javanese */
+  {"ka",       HB_TAG('K','A','T',' ')},       /* Georgian */
+  {"kaa",      HB_TAG('K','R','K',' ')},       /* Karakalpak */
+  {"kab",      HB_TAG('K','A','B',' ')},       /* Kabyle */
+  {"kam",      HB_TAG('K','M','B',' ')},       /* Kamba (Kenya) */
+  {"kar",      HB_TAG('K','R','N',' ')},       /* Karen [family] */
+  {"kbd",      HB_TAG('K','A','B',' ')},       /* Kabardian */
+  {"kde",      HB_TAG('K','D','E',' ')},       /* Makonde */
+  {"kdr",      HB_TAG('K','R','M',' ')},       /* Karaim */
+  {"kdt",      HB_TAG('K','U','Y',' ')},       /* Kuy */
+  {"kex",      HB_TAG('K','K','N',' ')},       /* Kokni */
+  {"kfr",      HB_TAG('K','A','C',' ')},       /* Kachchi */
+  {"kfy",      HB_TAG('K','M','N',' ')},       /* Kumaoni */
+  {"kg",       HB_TAG('K','O','N',' ')},       /* Kongo [macrolanguage] */
+  {"kha",      HB_TAG('K','S','I',' ')},       /* Khasi */
+  {"khb",      HB_TAG('X','B','D',' ')},       /* Lü */
+  {"kht",      HB_TAG('K','H','N',' ')},       /* Khamti (Microsoft fonts) */
+/*{"kht",      HB_TAG('K','H','T',' ')},*/     /* Khamti (OpenType spec and SIL fonts) */
+  {"khw",      HB_TAG('K','H','W',' ')},       /* Khowar */
+  {"ki",       HB_TAG('K','I','K',' ')},       /* Gikuyu/Kikuyu */
+  {"kj",       HB_TAG('K','U','A',' ')},       /* Kuanyama/Kwanyama */
+  {"kjh",      HB_TAG('K','H','A',' ')},       /* Khakass */
+  {"kjp",      HB_TAG('K','J','P',' ')},       /* Pwo Eastern Karen */
+  {"kk",       HB_TAG('K','A','Z',' ')},       /* Kazakh */
+  {"kl",       HB_TAG('G','R','N',' ')},       /* Kalaallisut */
+  {"kln",      HB_TAG('K','A','L',' ')},       /* Kalenjin */
+  {"km",       HB_TAG('K','H','M',' ')},       /* Central Khmer */
+  {"kmb",      HB_TAG('M','B','N',' ')},       /* Kimbundu */
+  {"kmw",      HB_TAG('K','M','O',' ')},       /* Komo (Democratic Republic of Congo) */
+  {"kn",       HB_TAG('K','A','N',' ')},       /* Kannada */
+  {"knn",      HB_TAG('K','O','K',' ')},       /* Konkani */
+  {"ko",       HB_TAG('K','O','R',' ')},       /* Korean */
+  {"koi",      HB_TAG('K','O','P',' ')},       /* Komi-Permyak */
+  {"kok",      HB_TAG('K','O','K',' ')},       /* Konkani [macrolanguage] */
+  {"kpe",      HB_TAG('K','P','L',' ')},       /* Kpelle [macrolanguage] */
+  {"kpv",      HB_TAG('K','O','Z',' ')},       /* Komi-Zyrian */
+  {"kpy",      HB_TAG('K','Y','K',' ')},       /* Koryak */
+  {"kqy",      HB_TAG('K','R','T',' ')},       /* Koorete */
+  {"kr",       HB_TAG('K','N','R',' ')},       /* Kanuri [macrolanguage] */
+  {"kri",      HB_TAG('K','R','I',' ')},       /* Krio */
+  {"krl",      HB_TAG('K','R','L',' ')},       /* Karelian */
+  {"kru",      HB_TAG('K','U','U',' ')},       /* Kurukh */
+  {"ks",       HB_TAG('K','S','H',' ')},       /* Kashmiri */
+  {"ksh",      HB_TAG('K','S','H',' ')},       /* Kölsch */
+/*{"ksw",      HB_TAG('K','R','N',' ')},*/     /* S'gaw Karen (Microsoft fonts?) */
+  {"ksw",      HB_TAG('K','S','W',' ')},       /* S'gaw Karen (OpenType spec and SIL fonts) */
+  {"ku",       HB_TAG('K','U','R',' ')},       /* Kurdish [macrolanguage] */
+  {"kum",      HB_TAG('K','U','M',' ')},       /* Kumyk */
+  {"kv",       HB_TAG('K','O','M',' ')},       /* Komi [macrolanguage] */
+  {"kvd",      HB_TAG('K','U','I',' ')},       /* Kui (Indonesia) */
+  {"kw",       HB_TAG('C','O','R',' ')},       /* Cornish */
+  {"kxc",      HB_TAG('K','M','S',' ')},       /* Komso */
+  {"kxu",      HB_TAG('K','U','I',' ')},       /* Kui (India) */
+  {"ky",       HB_TAG('K','I','R',' ')},       /* Kirghiz/Kyrgyz */
+  {"kyu",      HB_TAG('K','Y','U',' ')},       /* Western Kayah */
+  {"la",       HB_TAG('L','A','T',' ')},       /* Latin */
+  {"lad",      HB_TAG('J','U','D',' ')},       /* Ladino */
+  {"lb",       HB_TAG('L','T','Z',' ')},       /* Luxembourgish */
+  {"lbe",      HB_TAG('L','A','K',' ')},       /* Lak */
+  {"lbj",      HB_TAG('L','D','K',' ')},       /* Ladakhi */
+  {"lez",      HB_TAG('L','E','Z',' ')},       /* Lezgi */
+  {"lg",       HB_TAG('L','U','G',' ')},       /* Ganda */
+  {"li",       HB_TAG('L','I','M',' ')},       /* Limburgan/Limburger/Limburgish */
+  {"lif",      HB_TAG('L','M','B',' ')},       /* Limbu */
+  {"lij",      HB_TAG('L','I','J',' ')},       /* Ligurian */
+  {"lis",      HB_TAG('L','I','S',' ')},       /* Lisu */
+  {"ljp",      HB_TAG('L','J','P',' ')},       /* Lampung Api */
+  {"lki",      HB_TAG('L','K','I',' ')},       /* Laki */
+  {"lld",      HB_TAG('L','A','D',' ')},       /* Ladin */
+  {"lmn",      HB_TAG('L','A','M',' ')},       /* Lambani */
+  {"lmo",      HB_TAG('L','M','O',' ')},       /* Lombard */
+  {"ln",       HB_TAG('L','I','N',' ')},       /* Lingala */
+  {"lo",       HB_TAG('L','A','O',' ')},       /* Lao */
+  {"lrc",      HB_TAG('L','R','C',' ')},       /* Northern Luri */
+  {"lt",       HB_TAG('L','T','H',' ')},       /* Lithuanian */
+  {"lu",       HB_TAG('L','U','B',' ')},       /* Luba-Katanga */
+  {"lua",      HB_TAG('L','U','B',' ')},       /* Luba-Kasai */
+  {"luo",      HB_TAG('L','U','O',' ')},       /* Luo (Kenya and Tanzania) */
+  {"lus",      HB_TAG('M','I','Z',' ')},       /* Mizo */
+  {"luy",      HB_TAG('L','U','H',' ')},       /* Luyia/Oluluyia [macrolanguage] */
+  {"luz",      HB_TAG('L','R','C',' ')},       /* Southern Luri */
+  {"lv",       HB_TAG('L','V','I',' ')},       /* Latvian */
+  {"lzz",      HB_TAG('L','A','Z',' ')},       /* Laz */
+  {"mad",      HB_TAG('M','A','D',' ')},       /* Madurese */
+  {"mag",      HB_TAG('M','A','G',' ')},       /* Magahi */
+  {"mai",      HB_TAG('M','T','H',' ')},       /* Maithili */
+  {"mak",      HB_TAG('M','K','R',' ')},       /* Makasar */
+  {"man",      HB_TAG('M','N','K',' ')},       /* Manding/Mandingo [macrolanguage] */
+  {"mdc",      HB_TAG('M','L','E',' ')},       /* Male (Papua New Guinea) */
+  {"mdf",      HB_TAG('M','O','K',' ')},       /* Moksha */
+  {"mdr",      HB_TAG('M','D','R',' ')},       /* Mandar */
+  {"mdy",      HB_TAG('M','L','E',' ')},       /* Male (Ethiopia) */
+  {"men",      HB_TAG('M','D','E',' ')},       /* Mende (Sierra Leone) */
+  {"mer",      HB_TAG('M','E','R',' ')},       /* Meru */
+  {"mfe",      HB_TAG('M','F','E',' ')},       /* Morisyen */
+  {"mg",       HB_TAG('M','L','G',' ')},       /* Malagasy [macrolanguage] */
+  {"mh",       HB_TAG('M','A','H',' ')},       /* Marshallese */
+  {"mhr",      HB_TAG('L','M','A',' ')},       /* Low Mari */
+  {"mi",       HB_TAG('M','R','I',' ')},       /* Maori */
+  {"min",      HB_TAG('M','I','N',' ')},       /* Minangkabau */
+  {"mk",       HB_TAG('M','K','D',' ')},       /* Macedonian */
+  {"mku",      HB_TAG('M','N','K',' ')},       /* Konyanka Maninka */
+  {"mkw",      HB_TAG('M','K','W',' ')},       /* Kituba (Congo) */
+  {"ml",       HB_TAG('M','L','R',' ')},       /* Malayalam */
+  {"mlq",      HB_TAG('M','N','K',' ')},       /* Western Maninkakan */
+  {"mn",       HB_TAG('M','N','G',' ')},       /* Mongolian [macrolanguage] */
+  {"mnc",      HB_TAG('M','C','H',' ')},       /* Manchu */
+  {"mni",      HB_TAG('M','N','I',' ')},       /* Manipuri */
+  {"mnk",      HB_TAG('M','N','D',' ')},       /* Mandinka */
+  {"mns",      HB_TAG('M','A','N',' ')},       /* Mansi */
+  {"mnw",      HB_TAG('M','O','N',' ')},       /* Mon */
+  {"mo",       HB_TAG('M','O','L',' ')},       /* Moldavian */
+  {"moh",      HB_TAG('M','O','H',' ')},       /* Mohawk */
+  {"mos",      HB_TAG('M','O','S',' ')},       /* Mossi */
+  {"mpe",      HB_TAG('M','A','J',' ')},       /* Majang */
+  {"mr",       HB_TAG('M','A','R',' ')},       /* Marathi */
+  {"mrj",      HB_TAG('H','M','A',' ')},       /* High Mari */
+  {"ms",       HB_TAG('M','L','Y',' ')},       /* Malay [macrolanguage] */
+  {"msc",      HB_TAG('M','N','K',' ')},       /* Sankaran Maninka */
+  {"mt",       HB_TAG('M','T','S',' ')},       /* Maltese */
+  {"mtr",      HB_TAG('M','A','W',' ')},       /* Mewari */
+  {"mus",      HB_TAG('M','U','S',' ')},       /* Creek */
+  {"mve",      HB_TAG('M','A','W',' ')},       /* Marwari (Pakistan) */
+  {"mwk",      HB_TAG('M','N','K',' ')},       /* Kita Maninkakan */
+  {"mwl",      HB_TAG('M','W','L',' ')},       /* Mirandese */
+  {"mwr",      HB_TAG('M','A','W',' ')},       /* Marwari [macrolanguage] */
+  {"mww",      HB_TAG('M','W','W',' ')},       /* Hmong Daw */
+  {"my",       HB_TAG('B','R','M',' ')},       /* Burmese */
+  {"mym",      HB_TAG('M','E','N',' ')},       /* Me'en */
+  {"myq",      HB_TAG('M','N','K',' ')},       /* Forest Maninka (retired code) */
+  {"myv",      HB_TAG('E','R','Z',' ')},       /* Erzya */
+  {"mzn",      HB_TAG('M','Z','N',' ')},       /* Mazanderani */
+  {"na",       HB_TAG('N','A','U',' ')},       /* Nauru */
+  {"nag",      HB_TAG('N','A','G',' ')},       /* Naga-Assamese */
+  {"nah",      HB_TAG('N','A','H',' ')},       /* Nahuatl [family] */
+  {"nap",      HB_TAG('N','A','P',' ')},       /* Neapolitan */
+  {"nb",       HB_TAG('N','O','R',' ')},       /* Norwegian Bokmål */
+  {"nco",      HB_TAG('S','I','B',' ')},       /* Sibe */
+  {"nd",       HB_TAG('N','D','B',' ')},       /* [North] Ndebele */
+  {"ndc",      HB_TAG('N','D','C',' ')},       /* Ndau */
+  {"nds",      HB_TAG('N','D','S',' ')},       /* Low German/Low Saxon */
+  {"ne",       HB_TAG('N','E','P',' ')},       /* Nepali */
+  {"new",      HB_TAG('N','E','W',' ')},       /* Newari */
+  {"ng",       HB_TAG('N','D','G',' ')},       /* Ndonga */
+  {"nga",      HB_TAG('N','G','A',' ')},       /* Ngabaka */
+  {"ngl",      HB_TAG('L','M','W',' ')},       /* Lomwe */
+  {"niu",      HB_TAG('N','I','U',' ')},       /* Niuean */
+  {"niv",      HB_TAG('G','I','L',' ')},       /* Gilyak */
+  {"nl",       HB_TAG('N','L','D',' ')},       /* Dutch */
+  {"nn",       HB_TAG('N','Y','N',' ')},       /* Norwegian Nynorsk */
+  {"no",       HB_TAG('N','O','R',' ')},       /* Norwegian [macrolanguage] */
+  {"nod",      HB_TAG('N','T','A',' ')},       /* Northern Thai */
+  {"noe",      HB_TAG('N','O','E',' ')},       /* Nimadi */
+  {"nog",      HB_TAG('N','O','G',' ')},       /* Nogai */
+  {"nov",      HB_TAG('N','O','V',' ')},       /* Novial */
+  {"nqo",      HB_TAG('N','K','O',' ')},       /* N'Ko */
+  {"nr",       HB_TAG('N','D','B',' ')},       /* [South] Ndebele */
+  {"nsk",      HB_TAG('N','A','S',' ')},       /* Naskapi */
+  {"nso",      HB_TAG('S','O','T',' ')},       /* [Northern] Sotho */
+  {"ny",       HB_TAG('C','H','I',' ')},       /* Chewa/Chichwa/Nyanja */
+  {"nym",      HB_TAG('N','Y','M',' ')},       /* Nyamwezi */
+  {"nyn",      HB_TAG('N','K','L',' ')},       /* Nyankole */
+  {"oc",       HB_TAG('O','C','I',' ')},       /* Occitan (post 1500) */
+  {"oj",       HB_TAG('O','J','B',' ')},       /* Ojibwa [macrolanguage] */
+  {"ojs",      HB_TAG('O','C','R',' ')},       /* Oji-Cree */
+  {"om",       HB_TAG('O','R','O',' ')},       /* Oromo [macrolanguage] */
+  {"or",       HB_TAG('O','R','I',' ')},       /* Oriya */
+  {"os",       HB_TAG('O','S','S',' ')},       /* Ossetian */
+  {"pa",       HB_TAG('P','A','N',' ')},       /* Panjabi */
+  {"pag",      HB_TAG('P','A','G',' ')},       /* Pangasinan */
+  {"pam",      HB_TAG('P','A','M',' ')},       /* Kapampangan/Pampanga */
+  {"pap",      HB_TAG('P','A','P',' ')},       /* Papiamento */
+  {"pcc",      HB_TAG('P','C','C',' ')},       /* Bouyei */
+  {"pcd",      HB_TAG('P','C','D',' ')},       /* Picard */
+  {"pce",      HB_TAG('P','L','G',' ')},       /* [Ruching] Palaung */
+  {"pdc",      HB_TAG('P','D','C',' ')},       /* Pennsylvania German */
+  {"pes",      HB_TAG('F','A','R',' ')},       /* Iranian Persian */
+  {"phk",      HB_TAG('P','H','K',' ')},       /* Phake */
+  {"pi",       HB_TAG('P','A','L',' ')},       /* Pali */
+  {"pih",      HB_TAG('P','I','H',' ')},       /* Pitcairn-Norfolk */
+  {"pl",       HB_TAG('P','L','K',' ')},       /* Polish */
+  {"pll",      HB_TAG('P','L','G',' ')},       /* [Shwe] Palaung */
+  {"plp",      HB_TAG('P','A','P',' ')},       /* Palpa */
+  {"pms",      HB_TAG('P','M','S',' ')},       /* Piemontese */
+  {"pnb",      HB_TAG('P','N','B',' ')},       /* Western Panjabi */
+  {"prs",      HB_TAG('D','R','I',' ')},       /* Afghan Persian/Dari */
+  {"ps",       HB_TAG('P','A','S',' ')},       /* Pashto/Pushto [macrolanguage] */
+  {"pt",       HB_TAG('P','T','G',' ')},       /* Portuguese */
+  {"pwo",      HB_TAG('P','W','O',' ')},       /* Pwo Western Karen */
+  {"qu",       HB_TAG('Q','U','Z',' ')},       /* Quechua [macrolanguage] */
+  {"quc",      HB_TAG('Q','U','C',' ')},       /* K'iche'/Quiché */
+  {"quz",      HB_TAG('Q','U','Z',' ')},       /* Cusco Quechua */
+  {"raj",      HB_TAG('R','A','J',' ')},       /* Rajasthani [macrolanguage] */
+  {"rbb",      HB_TAG('P','L','G',' ')},       /* Rumai Palaung */
+  {"rej",      HB_TAG('R','E','J',' ')},       /* Rejang */
+  {"ria",      HB_TAG('R','I','A',' ')},       /* Riang (India) */
+  {"ril",      HB_TAG('R','I','A',' ')},       /* Riang (Myanmar) */
+  {"rki",      HB_TAG('A','R','K',' ')},       /* Rakhine */
+  {"rm",       HB_TAG('R','M','S',' ')},       /* Romansh */
+  {"rmy",      HB_TAG('R','M','Y',' ')},       /* Vlax Romani */
+  {"rn",       HB_TAG('R','U','N',' ')},       /* Rundi */
+  {"ro",       HB_TAG('R','O','M',' ')},       /* Romanian */
+  {"rom",      HB_TAG('R','O','Y',' ')},       /* Romany [macrolanguage] */
+  {"ru",       HB_TAG('R','U','S',' ')},       /* Russian */
+  {"rue",      HB_TAG('R','S','Y',' ')},       /* Rusyn */
+  {"rup",      HB_TAG('R','U','P',' ')},       /* Aromanian/Arumanian/Macedo-Romanian */
+  {"rw",       HB_TAG('R','U','A',' ')},       /* Kinyarwanda */
+  {"rwr",      HB_TAG('M','A','W',' ')},       /* Marwari (India) */
+  {"sa",       HB_TAG('S','A','N',' ')},       /* Sanskrit */
+  {"sah",      HB_TAG('Y','A','K',' ')},       /* Yakut */
+  {"sas",      HB_TAG('S','A','S',' ')},       /* Sasak */
+  {"sat",      HB_TAG('S','A','T',' ')},       /* Santali */
+  {"sck",      HB_TAG('S','A','D',' ')},       /* Sadri */
+  {"sc",       HB_TAG('S','R','D',' ')},       /* Sardinian [macrolanguage] */
+  {"scn",      HB_TAG('S','C','N',' ')},       /* Sicilian */
+  {"sco",      HB_TAG('S','C','O',' ')},       /* Scots */
+  {"scs",      HB_TAG('S','L','A',' ')},       /* [North] Slavey */
+  {"sd",       HB_TAG('S','N','D',' ')},       /* Sindhi */
+  {"se",       HB_TAG('N','S','M',' ')},       /* Northern Sami */
+  {"seh",      HB_TAG('S','N','A',' ')},       /* Sena */
+  {"sel",      HB_TAG('S','E','L',' ')},       /* Selkup */
+  {"sg",       HB_TAG('S','G','O',' ')},       /* Sango */
+  {"sga",      HB_TAG('S','G','A',' ')},       /* Old Irish (to 900) */
+  {"sgs",      HB_TAG('S','G','S',' ')},       /* Samogitian */
+  {"sgw",      HB_TAG('C','H','G',' ')},       /* Sebat Bet Gurage */
+/*{"sgw",      HB_TAG('S','G','W',' ')},*/     /* Sebat Bet Gurage (in SIL fonts) */
+  {"shn",      HB_TAG('S','H','N',' ')},       /* Shan */
+  {"si",       HB_TAG('S','N','H',' ')},       /* Sinhala */
+  {"sid",      HB_TAG('S','I','D',' ')},       /* Sidamo */
+  {"sjd",      HB_TAG('K','S','M',' ')},       /* Kildin Sami */
+  {"sk",       HB_TAG('S','K','Y',' ')},       /* Slovak */
+  {"skr",      HB_TAG('S','R','K',' ')},       /* Seraiki */
+  {"sl",       HB_TAG('S','L','V',' ')},       /* Slovenian */
+  {"sm",       HB_TAG('S','M','O',' ')},       /* Samoan */
+  {"sma",      HB_TAG('S','S','M',' ')},       /* Southern Sami */
+  {"smj",      HB_TAG('L','S','M',' ')},       /* Lule Sami */
+  {"smn",      HB_TAG('I','S','M',' ')},       /* Inari Sami */
+  {"sms",      HB_TAG('S','K','S',' ')},       /* Skolt Sami */
+  {"sn",       HB_TAG('S','N','A',' ')},       /* Shona */
+  {"snk",      HB_TAG('S','N','K',' ')},       /* Soninke */
+  {"so",       HB_TAG('S','M','L',' ')},       /* Somali */
+  {"sop",      HB_TAG('S','O','P',' ')},       /* Songe */
+  {"sq",       HB_TAG('S','Q','I',' ')},       /* Albanian [macrolanguage] */
+  {"sr",       HB_TAG('S','R','B',' ')},       /* Serbian */
+  {"srr",      HB_TAG('S','R','R',' ')},       /* Serer */
+  {"ss",       HB_TAG('S','W','Z',' ')},       /* Swati */
+  {"st",       HB_TAG('S','O','T',' ')},       /* [Southern] Sotho */
+  {"stq",      HB_TAG('S','T','Q',' ')},       /* Saterfriesisch */
+  {"stv",      HB_TAG('S','I','G',' ')},       /* Silt'e */
+  {"su",       HB_TAG('S','U','N',' ')},       /* Sundanese */
+  {"suk",      HB_TAG('S','U','K',' ')},       /* Sukama */
+  {"suq",      HB_TAG('S','U','R',' ')},       /* Suri */
+  {"sv",       HB_TAG('S','V','E',' ')},       /* Swedish */
+  {"sva",      HB_TAG('S','V','A',' ')},       /* Svan */
+  {"sw",       HB_TAG('S','W','K',' ')},       /* Swahili [macrolanguage] */
+  {"swb",      HB_TAG('C','M','R',' ')},       /* Comorian */
+  {"swh",      HB_TAG('S','W','K',' ')},       /* Kiswahili/Swahili */
+  {"swv",      HB_TAG('M','A','W',' ')},       /* Shekhawati */
+  {"sxu",      HB_TAG('S','X','U',' ')},       /* Upper Saxon */
+  {"syl",      HB_TAG('S','Y','L',' ')},       /* Sylheti */
+  {"syr",      HB_TAG('S','Y','R',' ')},       /* Syriac [macrolanguage] */
+  {"szl",      HB_TAG('S','Z','L',' ')},       /* Silesian */
+  {"ta",       HB_TAG('T','A','M',' ')},       /* Tamil */
+  {"tab",      HB_TAG('T','A','B',' ')},       /* Tabasaran */
+  {"tcy",      HB_TAG('T','U','L',' ')},       /* Tulu */
+  {"tdd",      HB_TAG('T','D','D',' ')},       /* Tai Nüa */
+  {"te",       HB_TAG('T','E','L',' ')},       /* Telugu */
+  {"tem",      HB_TAG('T','M','N',' ')},       /* Temne */
+  {"tet",      HB_TAG('T','E','T',' ')},       /* Tetum */
+  {"tg",       HB_TAG('T','A','J',' ')},       /* Tajik */
+  {"th",       HB_TAG('T','H','A',' ')},       /* Thai */
+  {"ti",       HB_TAG('T','G','Y',' ')},       /* Tigrinya */
+  {"tig",      HB_TAG('T','G','R',' ')},       /* Tigre */
+  {"tiv",      HB_TAG('T','I','V',' ')},       /* Tiv */
+  {"tk",       HB_TAG('T','K','M',' ')},       /* Turkmen */
+  {"tl",       HB_TAG('T','G','L',' ')},       /* Tagalog */
+  {"tmh",      HB_TAG('t','m','h',' ')},       /* Tamashek [macrolanguage] */
+  {"tn",       HB_TAG('T','N','A',' ')},       /* Tswana */
+  {"to",       HB_TAG('T','G','N',' ')},       /* Tonga (Tonga Islands) */
+  {"tpi",      HB_TAG('T','P','I',' ')},       /* Tok Pisin */
+  {"tr",       HB_TAG('T','R','K',' ')},       /* Turkish */
+  {"tru",      HB_TAG('T','U','A',' ')},       /* Turoyo Aramaic */
+  {"ts",       HB_TAG('T','S','G',' ')},       /* Tsonga */
+  {"tt",       HB_TAG('T','A','T',' ')},       /* Tatar */
+  {"tum",      HB_TAG('T','U','M',' ')},       /* Tumbuka */
+  {"tw",       HB_TAG('T','W','I',' ')},       /* Twi */
+  {"ty",       HB_TAG('T','H','T',' ')},       /* Tahitian */
+  {"tyv",      HB_TAG('T','U','V',' ')},       /* Tuvin */
+  {"tyz",      HB_TAG('T','Y','Z',' ')},       /* Tày */
+  {"tzm",      HB_TAG('T','Z','M',' ')},       /* Central Atlas Tamazight */
+  {"udm",      HB_TAG('U','D','M',' ')},       /* Udmurt */
+  {"ug",       HB_TAG('U','Y','G',' ')},       /* Uighur */
+  {"uk",       HB_TAG('U','K','R',' ')},       /* Ukrainian */
+  {"umb",      HB_TAG('U','M','B',' ')},       /* Umbundu */
+  {"unr",      HB_TAG('M','U','N',' ')},       /* Mundari */
+  {"ur",       HB_TAG('U','R','D',' ')},       /* Urdu */
+  {"uz",       HB_TAG('U','Z','B',' ')},       /* Uzbek [macrolanguage] */
+  {"uzn",      HB_TAG('U','Z','B',' ')},       /* Northern Uzbek */
+  {"uzs",      HB_TAG('U','Z','B',' ')},       /* Southern Uzbek */
+  {"ve",       HB_TAG('V','E','N',' ')},       /* Venda */
+  {"vec",      HB_TAG('V','E','C',' ')},       /* Venetian */
+  {"vls",      HB_TAG('F','L','E',' ')},       /* Vlaams */
+  {"vi",       HB_TAG('V','I','T',' ')},       /* Vietnamese */
+  {"vmw",      HB_TAG('M','A','K',' ')},       /* Makhuwa */
+  {"vo",       HB_TAG('V','O','L',' ')},       /* Volapük */
+  {"vro",      HB_TAG('V','R','O',' ')},       /* Võro */
+  {"wa",       HB_TAG('W','L','N',' ')},       /* Walloon */
+  {"war",      HB_TAG('W','A','R',' ')},       /* Waray (Philippines) */
+  {"wbm",      HB_TAG('W','A',' ',' ')},       /* Wa */
+  {"wbr",      HB_TAG('W','A','G',' ')},       /* Wagdi */
+  {"wle",      HB_TAG('S','I','G',' ')},       /* Wolane */
+  {"wry",      HB_TAG('M','A','W',' ')},       /* Merwari */
+  {"wtm",      HB_TAG('W','T','M',' ')},       /* Mewati */
+  {"wo",       HB_TAG('W','L','F',' ')},       /* Wolof */
+  {"xal",      HB_TAG('K','L','M',' ')},       /* Kalmyk */
+  {"xh",       HB_TAG('X','H','S',' ')},       /* Xhosa */
+  {"xog",      HB_TAG('X','O','G',' ')},       /* Soga */
+  {"xom",      HB_TAG('K','M','O',' ')},       /* Komo (Sudan) */
+  {"xsl",      HB_TAG('S','S','L',' ')},       /* South Slavey */
+  {"xst",      HB_TAG('S','I','G',' ')},       /* Silt'e (retired code) */
+  {"xwo",      HB_TAG('T','O','D',' ')},       /* Written Oirat (Todo) */
+  {"yao",      HB_TAG('Y','A','O',' ')},       /* Yao */
+  {"yi",       HB_TAG('J','I','I',' ')},       /* Yiddish [macrolanguage] */
+  {"yo",       HB_TAG('Y','B','A',' ')},       /* Yoruba */
+  {"yso",      HB_TAG('N','I','S',' ')},       /* Nisi (China) */
+  {"za",       HB_TAG('Z','H','A',' ')},       /* Chuang/Zhuang [macrolanguage] */
+  {"zea",      HB_TAG('Z','E','A',' ')},       /* Zeeuws */
+  {"zne",      HB_TAG('Z','N','D',' ')},       /* Zande */
+  {"zu",       HB_TAG('Z','U','L',' ')},       /* Zulu */
+  {"zum",      HB_TAG('L','R','C',' ')}        /* Kumzari */
+
+  /* The corresponding languages IDs for the following IDs are unclear,
+   * overlap, or are architecturally weird. Needs more research. */
+
+/*{"ahg/awn/xan?",     HB_TAG('A','G','W',' ')},*/     /* Agaw */
+/*{"gsw?/gsw-FR?",     HB_TAG('A','L','S',' ')},*/     /* Alsatian */
+/*{"krc",      HB_TAG('B','A','L',' ')},*/     /* Balkar */
+/*{"??",       HB_TAG('B','C','R',' ')},*/     /* Bible Cree */
+/*{"zh?",      HB_TAG('C','H','N',' ')},*/     /* Chinese (seen in Microsoft fonts) */
+/*{"acf/gcf?", HB_TAG('F','A','N',' ')},*/     /* French Antillean */
+/*{"enf?/yrk?",        HB_TAG('F','N','E',' ')},*/     /* Forest Nenets */
+/*{"fuf?",     HB_TAG('F','T','A',' ')},*/     /* Futa */
+/*{"ar-Syrc?", HB_TAG('G','A','R',' ')},*/     /* Garshuni */
+/*{"cfm/rnl?", HB_TAG('H','A','L',' ')},*/     /* Halam */
+/*{"fonipa",   HB_TAG('I','P','P','H')},*/     /* Phonetic transcription—IPA conventions */
+/*{"ga-Latg?/Latg?",   HB_TAG('I','R','T',' ')},*/     /* Irish Traditional */
+/*{"krc",      HB_TAG('K','A','R',' ')},*/     /* Karachay */
+/*{"alw?/ktb?",        HB_TAG('K','E','B',' ')},*/     /* Kebena */
+/*{"Geok",     HB_TAG('K','G','E',' ')},*/     /* Khutsuri Georgian */
+/*{"kca",      HB_TAG('K','H','K',' ')},*/     /* Khanty-Kazim */
+/*{"kca",      HB_TAG('K','H','S',' ')},*/     /* Khanty-Shurishkar */
+/*{"kca",      HB_TAG('K','H','V',' ')},*/     /* Khanty-Vakhi */
+/*{"guz?/kqs?/kss?",   HB_TAG('K','I','S',' ')},*/     /* Kisii */
+/*{"kfa/kfi?/kpb?/xua?/xuj?",  HB_TAG('K','O','D',' ')},*/     /* Kodagu */
+/*{"okm?/oko?",        HB_TAG('K','O','H',' ')},*/     /* Korean Old Hangul */
+/*{"kon?/ktu?/...",    HB_TAG('K','O','N',' ')},*/     /* Kikongo */
+/*{"kfx?",     HB_TAG('K','U','L',' ')},*/     /* Kulvi */
+/*{"??",       HB_TAG('L','A','H',' ')},*/     /* Lahuli */
+/*{"??",       HB_TAG('L','C','R',' ')},*/     /* L-Cree */
+/*{"??",       HB_TAG('M','A','L',' ')},*/     /* Malayalam Traditional */
+/*{"mnk?/mlq?/...",    HB_TAG('M','L','N',' ')},*/     /* Malinke */
+/*{"??",       HB_TAG('N','C','R',' ')},*/     /* N-Cree */
+/*{"??",       HB_TAG('N','H','C',' ')},*/     /* Norway House Cree */
+/*{"jpa?/sam?",        HB_TAG('P','A','A',' ')},*/     /* Palestinian Aramaic */
+/*{"polyton",  HB_TAG('P','G','R',' ')},*/     /* Polytonic Greek */
+/*{"??",       HB_TAG('Q','I','N',' ')},*/     /* Asho Chin */
+/*{"??",       HB_TAG('R','C','R',' ')},*/     /* R-Cree */
+/*{"chp?",     HB_TAG('S','A','Y',' ')},*/     /* Sayisi */
+/*{"xan?",     HB_TAG('S','E','K',' ')},*/     /* Sekota */
+/*{"ngo?",     HB_TAG('S','X','T',' ')},*/     /* Sutu */
+/*{"??",       HB_TAG('T','C','R',' ')},*/     /* TH-Cree */
+/*{"tnz?/tog?/toi?",   HB_TAG('T','N','G',' ')},*/     /* Tonga */
+/*{"enh?/yrk?",        HB_TAG('T','N','E',' ')},*/     /* Tundra Nenets */
+/*{"??",       HB_TAG('W','C','R',' ')},*/     /* West-Cree */
+/*{"cre?",     HB_TAG('Y','C','R',' ')},*/     /* Y-Cree */
+/*{"??",       HB_TAG('Y','I','C',' ')},*/     /* Yi Classic */
+/*{"ii?/Yiii?",        HB_TAG('Y','I','M',' ')},*/     /* Yi Modern */
+/*{"??",       HB_TAG('Z','H','P',' ')},*/     /* Chinese Phonetic */
+};
+
+typedef struct {
+  char language[8];
+  hb_tag_t tag;
+} LangTagLong;
+static const LangTagLong ot_languages_zh[] = {
+  {"zh-cn",    HB_TAG('Z','H','S',' ')},       /* Chinese (China) */
+  {"zh-hk",    HB_TAG('Z','H','H',' ')},       /* Chinese (Hong Kong) */
+  {"zh-mo",    HB_TAG('Z','H','T',' ')},       /* Chinese (Macao) */
+  {"zh-sg",    HB_TAG('Z','H','S',' ')},       /* Chinese (Singapore) */
+  {"zh-tw",    HB_TAG('Z','H','T',' ')},       /* Chinese (Taiwan) */
+  {"zh-hans",  HB_TAG('Z','H','S',' ')},       /* Chinese (Simplified) */
+  {"zh-hant",  HB_TAG('Z','H','T',' ')},       /* Chinese (Traditional) */
+};
+
+static int
+lang_compare_first_component (const char *a,
+                             const char *b)
+{
+  unsigned int da, db;
+  const char *p;
+
+  p = strchr (a, '-');
+  da = p ? (unsigned int) (p - a) : strlen (a);
+
+  p = strchr (b, '-');
+  db = p ? (unsigned int) (p - b) : strlen (b);
+
+  return strncmp (a, b, MAX (da, db));
+}
+
+static hb_bool_t
+lang_matches (const char *lang_str, const char *spec)
+{
+  unsigned int len = strlen (spec);
+
+  return strncmp (lang_str, spec, len) == 0 &&
+        (lang_str[len] == '\0' || lang_str[len] == '-');
+}
+
+hb_tag_t
+hb_ot_tag_from_language (hb_language_t language)
+{
+  const char *lang_str, *s;
+
+  if (language == HB_LANGUAGE_INVALID)
+    return HB_OT_TAG_DEFAULT_LANGUAGE;
+
+  lang_str = hb_language_to_string (language);
+
+  s = strstr (lang_str, "x-hbot");
+  if (s) {
+    char tag[4];
+    int i;
+    s += 6;
+    for (i = 0; i < 4 && ISALPHA (s[i]); i++)
+      tag[i] = TOUPPER (s[i]);
+    if (i) {
+      for (; i < 4; i++)
+       tag[i] = ' ';
+      return HB_TAG_CHAR4 (tag);
+    }
+  }
+
+  /* Find a language matching in the first component */
+  {
+    const LangTag *lang_tag;
+    lang_tag = (LangTag *) bsearch (lang_str, ot_languages,
+                                   ARRAY_LENGTH (ot_languages), sizeof (LangTag),
+                                   (hb_compare_func_t) lang_compare_first_component);
+    if (lang_tag)
+      return lang_tag->tag;
+  }
+
+  /* Otherwise, check the Chinese ones */
+  if (0 == lang_compare_first_component (lang_str, "zh"))
+  {
+    unsigned int i;
+
+    for (i = 0; i < ARRAY_LENGTH (ot_languages_zh); i++)
+    {
+      const LangTagLong *lang_tag;
+      lang_tag = &ot_languages_zh[i];
+      if (lang_matches (lang_str, lang_tag->language))
+       return lang_tag->tag;
+    }
+
+    /* Otherwise just return 'ZHS ' */
+    return HB_TAG('Z','H','S',' ');
+  }
+
+  s = strchr (lang_str, '-');
+  if (!s)
+    s = lang_str + strlen (lang_str);
+  if (s - lang_str == 3) {
+    /* Assume it's ISO-639-3 and upper-case and use it. */
+    return hb_tag_from_string (lang_str, s - lang_str) & ~0x20202000u;
+  }
+
+  return HB_OT_TAG_DEFAULT_LANGUAGE;
+}
+
+hb_language_t
+hb_ot_tag_to_language (hb_tag_t tag)
+{
+  unsigned int i;
+
+  if (tag == HB_OT_TAG_DEFAULT_LANGUAGE)
+    return NULL;
+
+  for (i = 0; i < ARRAY_LENGTH (ot_languages); i++)
+    if (ot_languages[i].tag == tag)
+      return hb_language_from_string (ot_languages[i].language, -1);
+
+  /* If tag starts with ZH, it's Chinese */
+  if ((tag & 0xFFFF0000u)  == 0x5A480000u) {
+    switch (tag) {
+      case HB_TAG('Z','H','H',' '): return hb_language_from_string ("zh-hk", -1); /* Hong Kong */
+      case HB_TAG('Z','H','S',' '): return hb_language_from_string ("zh-Hans", -1); /* Simplified */
+      case HB_TAG('Z','H','T',' '): return hb_language_from_string ("zh-Hant", -1); /* Traditional */
+      default: break; /* Fall through */
+    }
+  }
+
+  /* Else return a custom language in the form of "x-hbotABCD" */
+  {
+    unsigned char buf[11] = "x-hbot";
+    buf[6] = tag >> 24;
+    buf[7] = (tag >> 16) & 0xFF;
+    buf[8] = (tag >> 8) & 0xFF;
+    buf[9] = tag & 0xFF;
+    if (buf[9] == 0x20)
+      buf[9] = '\0';
+    buf[10] = '\0';
+    return hb_language_from_string ((char *) buf, -1);
+  }
+}
+
+
diff --git a/src/hb-ot-tag.h b/src/hb-ot-tag.h
new file mode 100644 (file)
index 0000000..1bf12ab
--- /dev/null
@@ -0,0 +1,59 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_H_IN
+#error "Include <hb-ot.h> instead."
+#endif
+
+#ifndef HB_OT_TAG_H
+#define HB_OT_TAG_H
+
+#include "hb.h"
+
+HB_BEGIN_DECLS
+
+
+#define HB_OT_TAG_DEFAULT_SCRIPT       HB_TAG ('D', 'F', 'L', 'T')
+#define HB_OT_TAG_DEFAULT_LANGUAGE     HB_TAG ('d', 'f', 'l', 't')
+
+void
+hb_ot_tags_from_script (hb_script_t  script,
+                       hb_tag_t    *script_tag_1,
+                       hb_tag_t    *script_tag_2);
+
+hb_script_t
+hb_ot_tag_to_script (hb_tag_t tag);
+
+hb_tag_t
+hb_ot_tag_from_language (hb_language_t language);
+
+hb_language_t
+hb_ot_tag_to_language (hb_tag_t tag);
+
+
+HB_END_DECLS
+
+#endif /* HB_OT_TAG_H */
diff --git a/src/hb-ot.h b/src/hb-ot.h
new file mode 100644 (file)
index 0000000..47c92a5
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_OT_H
+#define HB_OT_H
+#define HB_OT_H_IN
+
+#include "hb.h"
+
+#include "hb-ot-font.h"
+#include "hb-ot-layout.h"
+#include "hb-ot-tag.h"
+#include "hb-ot-shape.h"
+
+HB_BEGIN_DECLS
+
+HB_END_DECLS
+
+#undef HB_OT_H_IN
+#endif /* HB_OT_H */
diff --git a/src/hb-private.hh b/src/hb-private.hh
new file mode 100644 (file)
index 0000000..80fd6c4
--- /dev/null
@@ -0,0 +1,975 @@
+/*
+ * Copyright © 2007,2008,2009  Red Hat, Inc.
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_PRIVATE_HH
+#define HB_PRIVATE_HH
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "hb.h"
+#define HB_H_IN
+#ifdef HAVE_OT
+#include "hb-ot.h"
+#define HB_OT_H_IN
+#endif
+
+#include <stdlib.h>
+#include <stddef.h>
+#include <string.h>
+#include <assert.h>
+
+/* We only use these two for debug output.  However, the debug code is
+ * always seen by the compiler (and optimized out in non-debug builds.
+ * If including these becomes a problem, we can start thinking about
+ * someway around that. */
+#include <stdio.h>
+#include <errno.h>
+#include <stdarg.h>
+
+
+/* Compiler attributes */
+
+
+#if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__)
+#define _HB_BOOLEAN_EXPR(expr) ((expr) ? 1 : 0)
+#define likely(expr) (__builtin_expect (_HB_BOOLEAN_EXPR(expr), 1))
+#define unlikely(expr) (__builtin_expect (_HB_BOOLEAN_EXPR(expr), 0))
+#else
+#define likely(expr) (expr)
+#define unlikely(expr) (expr)
+#endif
+
+#ifndef __GNUC__
+#undef __attribute__
+#define __attribute__(x)
+#endif
+
+#if __GNUC__ >= 3
+#define HB_PURE_FUNC   __attribute__((pure))
+#define HB_CONST_FUNC  __attribute__((const))
+#define HB_PRINTF_FUNC(format_idx, arg_idx) __attribute__((__format__ (__printf__, format_idx, arg_idx)))
+#else
+#define HB_PURE_FUNC
+#define HB_CONST_FUNC
+#define HB_PRINTF_FUNC(format_idx, arg_idx)
+#endif
+#if __GNUC__ >= 4
+#define HB_UNUSED      __attribute__((unused))
+#else
+#define HB_UNUSED
+#endif
+
+#ifndef HB_INTERNAL
+# if !defined(__MINGW32__) && !defined(__CYGWIN__)
+#  define HB_INTERNAL __attribute__((__visibility__("hidden")))
+# else
+#  define HB_INTERNAL
+# endif
+#endif
+
+#if (defined(__WIN32__) && !defined(__WINE__)) || defined(_MSC_VER)
+#define snprintf _snprintf
+/* Windows CE only has _strdup, while rest of Windows has both. */
+#define strdup _strdup
+#endif
+
+#ifdef _MSC_VER
+#undef inline
+#define inline __inline
+#endif
+
+#ifdef __STRICT_ANSI__
+#undef inline
+#define inline __inline__
+#endif
+
+#if __GNUC__ >= 3
+#define HB_FUNC __PRETTY_FUNCTION__
+#elif defined(_MSC_VER)
+#define HB_FUNC __FUNCSIG__
+#else
+#define HB_FUNC __func__
+#endif
+
+#if defined(_WIN32) || defined(__CYGWIN__)
+   /* We need Windows Vista for both Uniscribe backend and for
+    * MemoryBarrier.  We don't support compiling on Windows XP,
+    * though we run on it fine. */
+#  if defined(_WIN32_WINNT) && _WIN32_WINNT < 0x0600
+#    undef _WIN32_WINNT
+#  endif
+#  ifndef _WIN32_WINNT
+#    define _WIN32_WINNT 0x0600
+#  endif
+#  define WIN32_LEAN_AND_MEAN
+#  define STRICT
+#endif
+
+#ifdef _WIN32_WCE
+/* Some things not defined on Windows CE. */
+#define MemoryBarrier()
+#define getenv(Name) NULL
+#define setlocale(Category, Locale) "C"
+static int errno = 0; /* Use something better? */
+#endif
+
+#if HAVE_ATEXIT
+/* atexit() is only safe to be called from shared libraries on certain
+ * platforms.  Whitelist.
+ * https://bugs.freedesktop.org/show_bug.cgi?id=82246 */
+#  if defined(__linux) && defined(__GLIBC_PREREQ)
+#    if __GLIBC_PREREQ(2,3)
+/* From atexit() manpage, it's safe with glibc 2.2.3 on Linux. */
+#      define HB_USE_ATEXIT 1
+#    endif
+#  elif defined(_MSC_VER) || defined(__MINGW32__)
+/* For MSVC:
+ * http://msdn.microsoft.com/en-ca/library/tze57ck3.aspx
+ * http://msdn.microsoft.com/en-ca/library/zk17ww08.aspx
+ * mingw32 headers say atexit is safe to use in shared libraries.
+ */
+#    define HB_USE_ATEXIT 1
+#  elif defined(__ANDROID__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
+/* This was fixed in Android NKD r8 or r8b:
+ * https://code.google.com/p/android/issues/detail?id=6455
+ * which introduced GCC 4.6:
+ * https://developer.android.com/tools/sdk/ndk/index.html
+ */
+#    define HB_USE_ATEXIT 1
+#  endif
+#endif
+
+/* Basics */
+
+
+#ifndef NULL
+# define NULL ((void *) 0)
+#endif
+
+#undef MIN
+template <typename Type>
+static inline Type MIN (const Type &a, const Type &b) { return a < b ? a : b; }
+
+#undef MAX
+template <typename Type>
+static inline Type MAX (const Type &a, const Type &b) { return a > b ? a : b; }
+
+static inline unsigned int DIV_CEIL (const unsigned int a, unsigned int b)
+{ return (a + (b - 1)) / b; }
+
+
+#undef  ARRAY_LENGTH
+template <typename Type, unsigned int n>
+static inline unsigned int ARRAY_LENGTH (const Type (&)[n]) { return n; }
+/* A const version, but does not detect erratically being called on pointers. */
+#define ARRAY_LENGTH_CONST(__array) ((signed int) (sizeof (__array) / sizeof (__array[0])))
+
+#define HB_STMT_START do
+#define HB_STMT_END   while (0)
+
+#define _ASSERT_STATIC1(_line, _cond)  HB_UNUSED typedef int _static_assert_on_line_##_line##_failed[(_cond)?1:-1]
+#define _ASSERT_STATIC0(_line, _cond)  _ASSERT_STATIC1 (_line, (_cond))
+#define ASSERT_STATIC(_cond)           _ASSERT_STATIC0 (__LINE__, (_cond))
+
+#define ASSERT_STATIC_EXPR(_cond)((void) sizeof (char[(_cond) ? 1 : -1]))
+#define ASSERT_STATIC_EXPR_ZERO(_cond) (0 * sizeof (char[(_cond) ? 1 : -1]))
+
+#define _PASTE1(a,b) a##b
+#define PASTE(a,b) _PASTE1(a,b)
+
+/* Lets assert int types.  Saves trouble down the road. */
+
+ASSERT_STATIC (sizeof (int8_t) == 1);
+ASSERT_STATIC (sizeof (uint8_t) == 1);
+ASSERT_STATIC (sizeof (int16_t) == 2);
+ASSERT_STATIC (sizeof (uint16_t) == 2);
+ASSERT_STATIC (sizeof (int32_t) == 4);
+ASSERT_STATIC (sizeof (uint32_t) == 4);
+ASSERT_STATIC (sizeof (int64_t) == 8);
+ASSERT_STATIC (sizeof (uint64_t) == 8);
+
+ASSERT_STATIC (sizeof (hb_codepoint_t) == 4);
+ASSERT_STATIC (sizeof (hb_position_t) == 4);
+ASSERT_STATIC (sizeof (hb_mask_t) == 4);
+ASSERT_STATIC (sizeof (hb_var_int_t) == 4);
+
+
+/* We like our types POD */
+
+#define _ASSERT_TYPE_POD1(_line, _type)        union _type_##_type##_on_line_##_line##_is_not_POD { _type instance; }
+#define _ASSERT_TYPE_POD0(_line, _type)        _ASSERT_TYPE_POD1 (_line, _type)
+#define ASSERT_TYPE_POD(_type)         _ASSERT_TYPE_POD0 (__LINE__, _type)
+
+#ifdef __GNUC__
+# define _ASSERT_INSTANCE_POD1(_line, _instance) \
+       HB_STMT_START { \
+               typedef __typeof__(_instance) _type_##_line; \
+               _ASSERT_TYPE_POD1 (_line, _type_##_line); \
+       } HB_STMT_END
+#else
+# define _ASSERT_INSTANCE_POD1(_line, _instance)       typedef int _assertion_on_line_##_line##_not_tested
+#endif
+# define _ASSERT_INSTANCE_POD0(_line, _instance)       _ASSERT_INSTANCE_POD1 (_line, _instance)
+# define ASSERT_INSTANCE_POD(_instance)                        _ASSERT_INSTANCE_POD0 (__LINE__, _instance)
+
+/* Check _assertion in a method environment */
+#define _ASSERT_POD1(_line) \
+       HB_UNUSED inline void _static_assertion_on_line_##_line (void) const \
+       { _ASSERT_INSTANCE_POD1 (_line, *this); /* Make sure it's POD. */ }
+# define _ASSERT_POD0(_line)   _ASSERT_POD1 (_line)
+# define ASSERT_POD()          _ASSERT_POD0 (__LINE__)
+
+
+
+/* Misc */
+
+/* Void! */
+struct _hb_void_t {};
+typedef const _hb_void_t &hb_void_t;
+#define HB_VOID (* (const _hb_void_t *) NULL)
+
+/* Return the number of 1 bits in mask. */
+static inline HB_CONST_FUNC unsigned int
+_hb_popcount32 (uint32_t mask)
+{
+#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
+  return __builtin_popcount (mask);
+#else
+  /* "HACKMEM 169" */
+  uint32_t y;
+  y = (mask >> 1) &033333333333;
+  y = mask - y - ((y >>1) & 033333333333);
+  return (((y + (y >> 3)) & 030707070707) % 077);
+#endif
+}
+
+/* Returns the number of bits needed to store number */
+static inline HB_CONST_FUNC unsigned int
+_hb_bit_storage (unsigned int number)
+{
+#if defined(__GNUC__) && (__GNUC__ >= 4) && defined(__OPTIMIZE__)
+  return likely (number) ? (sizeof (unsigned int) * 8 - __builtin_clz (number)) : 0;
+#else
+  unsigned int n_bits = 0;
+  while (number) {
+    n_bits++;
+    number >>= 1;
+  }
+  return n_bits;
+#endif
+}
+
+/* Returns the number of zero bits in the least significant side of number */
+static inline HB_CONST_FUNC unsigned int
+_hb_ctz (unsigned int number)
+{
+#if defined(__GNUC__) && (__GNUC__ >= 4) && defined(__OPTIMIZE__)
+  return likely (number) ? __builtin_ctz (number) : 0;
+#else
+  unsigned int n_bits = 0;
+  if (unlikely (!number)) return 0;
+  while (!(number & 1)) {
+    n_bits++;
+    number >>= 1;
+  }
+  return n_bits;
+#endif
+}
+
+static inline bool
+_hb_unsigned_int_mul_overflows (unsigned int count, unsigned int size)
+{
+  return (size > 0) && (count >= ((unsigned int) -1) / size);
+}
+
+
+/* Type of bsearch() / qsort() compare function */
+typedef int (*hb_compare_func_t) (const void *, const void *);
+
+
+
+
+/* arrays and maps */
+
+
+#define HB_PREALLOCED_ARRAY_INIT {0, 0, NULL}
+template <typename Type, unsigned int StaticSize=16>
+struct hb_prealloced_array_t
+{
+  unsigned int len;
+  unsigned int allocated;
+  Type *array;
+  Type static_array[StaticSize];
+
+  void init (void) { memset (this, 0, sizeof (*this)); }
+
+  inline Type& operator [] (unsigned int i) { return array[i]; }
+  inline const Type& operator [] (unsigned int i) const { return array[i]; }
+
+  inline Type *push (void)
+  {
+    if (!array) {
+      array = static_array;
+      allocated = ARRAY_LENGTH (static_array);
+    }
+    if (likely (len < allocated))
+      return &array[len++];
+
+    /* Need to reallocate */
+    unsigned int new_allocated = allocated + (allocated >> 1) + 8;
+    Type *new_array = NULL;
+
+    if (array == static_array) {
+      new_array = (Type *) calloc (new_allocated, sizeof (Type));
+      if (new_array)
+        memcpy (new_array, array, len * sizeof (Type));
+    } else {
+      bool overflows = (new_allocated < allocated) || _hb_unsigned_int_mul_overflows (new_allocated, sizeof (Type));
+      if (likely (!overflows)) {
+       new_array = (Type *) realloc (array, new_allocated * sizeof (Type));
+      }
+    }
+
+    if (unlikely (!new_array))
+      return NULL;
+
+    array = new_array;
+    allocated = new_allocated;
+    return &array[len++];
+  }
+
+  inline void pop (void)
+  {
+    len--;
+  }
+
+  inline void remove (unsigned int i)
+  {
+     if (unlikely (i >= len))
+       return;
+     memmove (static_cast<void *> (&array[i]),
+             static_cast<void *> (&array[i + 1]),
+             (len - i - 1) * sizeof (Type));
+     len--;
+  }
+
+  inline void shrink (unsigned int l)
+  {
+     if (l < len)
+       len = l;
+  }
+
+  template <typename T>
+  inline Type *find (T v) {
+    for (unsigned int i = 0; i < len; i++)
+      if (array[i] == v)
+       return &array[i];
+    return NULL;
+  }
+  template <typename T>
+  inline const Type *find (T v) const {
+    for (unsigned int i = 0; i < len; i++)
+      if (array[i] == v)
+       return &array[i];
+    return NULL;
+  }
+
+  inline void qsort (void)
+  {
+    ::qsort (array, len, sizeof (Type), (hb_compare_func_t) Type::cmp);
+  }
+
+  inline void qsort (unsigned int start, unsigned int end)
+  {
+    ::qsort (array + start, end - start, sizeof (Type), (hb_compare_func_t) Type::cmp);
+  }
+
+  template <typename T>
+  inline Type *bsearch (T *key)
+  {
+    return (Type *) ::bsearch (key, array, len, sizeof (Type), (hb_compare_func_t) Type::cmp);
+  }
+  template <typename T>
+  inline const Type *bsearch (T *key) const
+  {
+    return (const Type *) ::bsearch (key, array, len, sizeof (Type), (hb_compare_func_t) Type::cmp);
+  }
+
+  inline void finish (void)
+  {
+    if (array != static_array)
+      free (array);
+    array = NULL;
+    allocated = len = 0;
+  }
+};
+
+template <typename Type>
+struct hb_auto_array_t : hb_prealloced_array_t <Type>
+{
+  hb_auto_array_t (void) { hb_prealloced_array_t<Type>::init (); }
+  ~hb_auto_array_t (void) { hb_prealloced_array_t<Type>::finish (); }
+};
+
+
+#define HB_LOCKABLE_SET_INIT {HB_PREALLOCED_ARRAY_INIT}
+template <typename item_t, typename lock_t>
+struct hb_lockable_set_t
+{
+  hb_prealloced_array_t <item_t, 2> items;
+
+  inline void init (void) { items.init (); }
+
+  template <typename T>
+  inline item_t *replace_or_insert (T v, lock_t &l, bool replace)
+  {
+    l.lock ();
+    item_t *item = items.find (v);
+    if (item) {
+      if (replace) {
+       item_t old = *item;
+       *item = v;
+       l.unlock ();
+       old.finish ();
+      }
+      else {
+        item = NULL;
+       l.unlock ();
+      }
+    } else {
+      item = items.push ();
+      if (likely (item))
+       *item = v;
+      l.unlock ();
+    }
+    return item;
+  }
+
+  template <typename T>
+  inline void remove (T v, lock_t &l)
+  {
+    l.lock ();
+    item_t *item = items.find (v);
+    if (item) {
+      item_t old = *item;
+      *item = items[items.len - 1];
+      items.pop ();
+      l.unlock ();
+      old.finish ();
+    } else {
+      l.unlock ();
+    }
+  }
+
+  template <typename T>
+  inline bool find (T v, item_t *i, lock_t &l)
+  {
+    l.lock ();
+    item_t *item = items.find (v);
+    if (item)
+      *i = *item;
+    l.unlock ();
+    return !!item;
+  }
+
+  template <typename T>
+  inline item_t *find_or_insert (T v, lock_t &l)
+  {
+    l.lock ();
+    item_t *item = items.find (v);
+    if (!item) {
+      item = items.push ();
+      if (likely (item))
+        *item = v;
+    }
+    l.unlock ();
+    return item;
+  }
+
+  inline void finish (lock_t &l)
+  {
+    if (!items.len) {
+      /* No need for locking. */
+      items.finish ();
+      return;
+    }
+    l.lock ();
+    while (items.len) {
+      item_t old = items[items.len - 1];
+       items.pop ();
+       l.unlock ();
+       old.finish ();
+       l.lock ();
+    }
+    items.finish ();
+    l.unlock ();
+  }
+
+};
+
+
+
+
+/* Big-endian handling */
+
+static inline uint16_t hb_be_uint16 (const uint16_t v)
+{
+  const uint8_t *V = (const uint8_t *) &v;
+  return (V[0] << 8) | V[1];
+}
+
+static inline uint16_t hb_uint16_swap (const uint16_t v)
+{
+  return (v >> 8) | (v << 8);
+}
+
+static inline uint32_t hb_uint32_swap (const uint32_t v)
+{
+  return (hb_uint16_swap (v) << 16) | hb_uint16_swap (v >> 16);
+}
+
+/* Note, of the following macros, uint16_get is the one called many many times.
+ * If there is any optimizations to be done, it's in that macro.  However, I
+ * already confirmed that on my T400 ThinkPad at least, using bswap_16(), which
+ * results in a single ror instruction, does NOT speed this up.  In fact, it
+ * resulted in a minor slowdown.  At any rate, note that v may not be correctly
+ * aligned, so I think the current implementation is optimal.
+ */
+
+#define hb_be_uint16_put(v,V)  HB_STMT_START { v[0] = (V>>8); v[1] = (V); } HB_STMT_END
+#define hb_be_uint16_get(v)    (uint16_t) ((v[0] << 8) + v[1])
+#define hb_be_uint16_eq(a,b)   (a[0] == b[0] && a[1] == b[1])
+
+#define hb_be_uint32_put(v,V)  HB_STMT_START { v[0] = (V>>24); v[1] = (V>>16); v[2] = (V>>8); v[3] = (V); } HB_STMT_END
+#define hb_be_uint32_get(v)    (uint32_t) ((v[0] << 24) + (v[1] << 16) + (v[2] << 8) + v[3])
+#define hb_be_uint32_eq(a,b)   (a[0] == b[0] && a[1] == b[1] && a[2] == b[2] && a[3] == b[3])
+
+#define hb_be_uint24_put(v,V)  HB_STMT_START { v[0] = (V>>16); v[1] = (V>>8); v[2] = (V); } HB_STMT_END
+#define hb_be_uint24_get(v)    (uint32_t) ((v[0] << 16) + (v[1] << 8) + v[2])
+#define hb_be_uint24_eq(a,b)   (a[0] == b[0] && a[1] == b[1] && a[2] == b[2])
+
+
+/* ASCII tag/character handling */
+
+static inline bool ISALPHA (unsigned char c)
+{ return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'); }
+static inline bool ISALNUM (unsigned char c)
+{ return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9'); }
+static inline bool ISSPACE (unsigned char c)
+{ return c == ' ' || c =='\f'|| c =='\n'|| c =='\r'|| c =='\t'|| c =='\v'; }
+static inline unsigned char TOUPPER (unsigned char c)
+{ return (c >= 'a' && c <= 'z') ? c - 'a' + 'A' : c; }
+static inline unsigned char TOLOWER (unsigned char c)
+{ return (c >= 'A' && c <= 'Z') ? c - 'A' + 'a' : c; }
+
+#define HB_TAG_CHAR4(s)   (HB_TAG(((const char *) s)[0], \
+                                 ((const char *) s)[1], \
+                                 ((const char *) s)[2], \
+                                 ((const char *) s)[3]))
+
+
+/* C++ helpers */
+
+/* Makes class uncopyable.  Use in private: section. */
+#define NO_COPY(T) \
+  T (const T &o); \
+  T &operator = (const T &o)
+
+
+/* Debug */
+
+
+#ifndef HB_DEBUG
+#define HB_DEBUG 0
+#endif
+
+static inline bool
+_hb_debug (unsigned int level,
+          unsigned int max_level)
+{
+  return level < max_level;
+}
+
+#define DEBUG_LEVEL_ENABLED(WHAT, LEVEL) (_hb_debug ((LEVEL), HB_DEBUG_##WHAT))
+#define DEBUG_ENABLED(WHAT) (DEBUG_LEVEL_ENABLED (WHAT, 0))
+
+template <int max_level> static inline void
+_hb_debug_msg_va (const char *what,
+                 const void *obj,
+                 const char *func,
+                 bool indented,
+                 unsigned int level,
+                 int level_dir,
+                 const char *message,
+                 va_list ap) HB_PRINTF_FUNC(7, 0);
+template <int max_level> static inline void
+_hb_debug_msg_va (const char *what,
+                 const void *obj,
+                 const char *func,
+                 bool indented,
+                 unsigned int level,
+                 int level_dir,
+                 const char *message,
+                 va_list ap)
+{
+  if (!_hb_debug (level, max_level))
+    return;
+
+  fprintf (stderr, "%-10s", what ? what : "");
+
+  if (obj)
+    fprintf (stderr, "(%0*lx) ", (unsigned int) (2 * sizeof (void *)), (unsigned long) obj);
+  else
+    fprintf (stderr, " %*s  ", (unsigned int) (2 * sizeof (void *)), "");
+
+  if (indented) {
+/* One may want to add ASCII version of these.  See:
+ * https://bugs.freedesktop.org/show_bug.cgi?id=50970 */
+#define VBAR   "\342\224\202"  /* U+2502 BOX DRAWINGS LIGHT VERTICAL */
+#define VRBAR  "\342\224\234"  /* U+251C BOX DRAWINGS LIGHT VERTICAL AND RIGHT */
+#define DLBAR  "\342\225\256"  /* U+256E BOX DRAWINGS LIGHT ARC DOWN AND LEFT */
+#define ULBAR  "\342\225\257"  /* U+256F BOX DRAWINGS LIGHT ARC UP AND LEFT */
+#define LBAR   "\342\225\264"  /* U+2574 BOX DRAWINGS LIGHT LEFT */
+    static const char bars[] = VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR VBAR;
+    fprintf (stderr, "%2u %s" VRBAR "%s",
+            level,
+            bars + sizeof (bars) - 1 - MIN ((unsigned int) sizeof (bars), (unsigned int) (sizeof (VBAR) - 1) * level),
+            level_dir ? (level_dir > 0 ? DLBAR : ULBAR) : LBAR);
+  } else
+    fprintf (stderr, "   " VRBAR LBAR);
+
+  if (func)
+  {
+    unsigned int func_len = strlen (func);
+#ifndef HB_DEBUG_VERBOSE
+    /* Skip "typename" */
+    if (0 == strncmp (func, "typename ", 9))
+      func += 9;
+    /* Skip return type */
+    const char *space = strchr (func, ' ');
+    if (space)
+      func = space + 1;
+    /* Skip parameter list */
+    const char *paren = strchr (func, '(');
+    if (paren)
+      func_len = paren - func;
+#endif
+    fprintf (stderr, "%.*s: ", func_len, func);
+  }
+
+  if (message)
+    vfprintf (stderr, message, ap);
+
+  fprintf (stderr, "\n");
+}
+template <> inline void
+_hb_debug_msg_va<0> (const char *what HB_UNUSED,
+                    const void *obj HB_UNUSED,
+                    const char *func HB_UNUSED,
+                    bool indented HB_UNUSED,
+                    unsigned int level HB_UNUSED,
+                    int level_dir HB_UNUSED,
+                    const char *message HB_UNUSED,
+                    va_list ap HB_UNUSED) {}
+
+template <int max_level> static inline void
+_hb_debug_msg (const char *what,
+              const void *obj,
+              const char *func,
+              bool indented,
+              unsigned int level,
+              int level_dir,
+              const char *message,
+              ...) HB_PRINTF_FUNC(7, 8);
+template <int max_level> static inline void
+_hb_debug_msg (const char *what,
+              const void *obj,
+              const char *func,
+              bool indented,
+              unsigned int level,
+              int level_dir,
+              const char *message,
+              ...)
+{
+  va_list ap;
+  va_start (ap, message);
+  _hb_debug_msg_va<max_level> (what, obj, func, indented, level, level_dir, message, ap);
+  va_end (ap);
+}
+template <> inline void
+_hb_debug_msg<0> (const char *what HB_UNUSED,
+                 const void *obj HB_UNUSED,
+                 const char *func HB_UNUSED,
+                 bool indented HB_UNUSED,
+                 unsigned int level HB_UNUSED,
+                 int level_dir HB_UNUSED,
+                 const char *message HB_UNUSED,
+                 ...) HB_PRINTF_FUNC(7, 8);
+template <> inline void
+_hb_debug_msg<0> (const char *what HB_UNUSED,
+                 const void *obj HB_UNUSED,
+                 const char *func HB_UNUSED,
+                 bool indented HB_UNUSED,
+                 unsigned int level HB_UNUSED,
+                 int level_dir HB_UNUSED,
+                 const char *message HB_UNUSED,
+                 ...) {}
+
+#define DEBUG_MSG_LEVEL(WHAT, OBJ, LEVEL, LEVEL_DIR, ...)      _hb_debug_msg<HB_DEBUG_##WHAT> (#WHAT, (OBJ), NULL,    true, (LEVEL), (LEVEL_DIR), __VA_ARGS__)
+#define DEBUG_MSG(WHAT, OBJ, ...)                              _hb_debug_msg<HB_DEBUG_##WHAT> (#WHAT, (OBJ), NULL,    false, 0, 0, __VA_ARGS__)
+#define DEBUG_MSG_FUNC(WHAT, OBJ, ...)                         _hb_debug_msg<HB_DEBUG_##WHAT> (#WHAT, (OBJ), HB_FUNC, false, 0, 0, __VA_ARGS__)
+
+
+/*
+ * Printer
+ */
+
+template <typename T>
+struct hb_printer_t {};
+
+template <>
+struct hb_printer_t<bool> {
+  const char *print (bool v) { return v ? "true" : "false"; }
+};
+
+template <>
+struct hb_printer_t<hb_void_t> {
+  const char *print (hb_void_t) { return ""; }
+};
+
+
+/*
+ * Trace
+ */
+
+template <typename T>
+static inline void _hb_warn_no_return (bool returned)
+{
+  if (unlikely (!returned)) {
+    fprintf (stderr, "OUCH, returned with no call to TRACE_RETURN.  This is a bug, please report.\n");
+  }
+}
+template <>
+/*static*/ inline void _hb_warn_no_return<hb_void_t> (bool returned HB_UNUSED)
+{}
+
+template <int max_level, typename ret_t>
+struct hb_auto_trace_t {
+  explicit inline hb_auto_trace_t (unsigned int *plevel_,
+                                  const char *what_,
+                                  const void *obj_,
+                                  const char *func,
+                                  const char *message,
+                                  ...) : plevel (plevel_), what (what_), obj (obj_), returned (false)
+  {
+    if (plevel) ++*plevel;
+
+    va_list ap;
+    va_start (ap, message);
+    _hb_debug_msg_va<max_level> (what, obj, func, true, plevel ? *plevel : 0, +1, message, ap);
+    va_end (ap);
+  }
+  inline ~hb_auto_trace_t (void)
+  {
+    _hb_warn_no_return<ret_t> (returned);
+    if (!returned) {
+      _hb_debug_msg<max_level> (what, obj, NULL, true, plevel ? *plevel : 1, -1, " ");
+    }
+    if (plevel) --*plevel;
+  }
+
+  inline ret_t ret (ret_t v, unsigned int line = 0)
+  {
+    if (unlikely (returned)) {
+      fprintf (stderr, "OUCH, double calls to TRACE_RETURN.  This is a bug, please report.\n");
+      return v;
+    }
+
+    _hb_debug_msg<max_level> (what, obj, NULL, true, plevel ? *plevel : 1, -1,
+                             "return %s (line %d)",
+                             hb_printer_t<ret_t>().print (v), line);
+    if (plevel) --*plevel;
+    plevel = NULL;
+    returned = true;
+    return v;
+  }
+
+  private:
+  unsigned int *plevel;
+  const char *what;
+  const void *obj;
+  bool returned;
+};
+template <typename ret_t> /* Optimize when tracing is disabled */
+struct hb_auto_trace_t<0, ret_t> {
+  explicit inline hb_auto_trace_t (unsigned int *plevel_ HB_UNUSED,
+                                  const char *what HB_UNUSED,
+                                  const void *obj HB_UNUSED,
+                                  const char *func HB_UNUSED,
+                                  const char *message HB_UNUSED,
+                                  ...) {}
+
+  inline ret_t ret (ret_t v, unsigned int line HB_UNUSED = 0) { return v; }
+};
+
+#define TRACE_RETURN(RET) trace.ret (RET, __LINE__)
+
+/* Misc */
+
+template <typename T> class hb_assert_unsigned_t;
+template <> class hb_assert_unsigned_t<unsigned char> {};
+template <> class hb_assert_unsigned_t<unsigned short> {};
+template <> class hb_assert_unsigned_t<unsigned int> {};
+template <> class hb_assert_unsigned_t<unsigned long> {};
+
+template <typename T> static inline bool
+hb_in_range (T u, T lo, T hi)
+{
+  /* The sizeof() is here to force template instantiation.
+   * I'm sure there are better ways to do this but can't think of
+   * one right now.  Declaring a variable won't work as HB_UNUSED
+   * is unsable on some platforms and unused types are less likely
+   * to generate a warning than unused variables. */
+  ASSERT_STATIC (sizeof (hb_assert_unsigned_t<T>) >= 0);
+
+  /* The casts below are important as if T is smaller than int,
+   * the subtract results will become a signed int! */
+  return (T)(u - lo) <= (T)(hi - lo);
+}
+
+template <typename T> static inline bool
+hb_in_ranges (T u, T lo1, T hi1, T lo2, T hi2)
+{
+  return hb_in_range (u, lo1, hi1) || hb_in_range (u, lo2, hi2);
+}
+
+template <typename T> static inline bool
+hb_in_ranges (T u, T lo1, T hi1, T lo2, T hi2, T lo3, T hi3)
+{
+  return hb_in_range (u, lo1, hi1) || hb_in_range (u, lo2, hi2) || hb_in_range (u, lo3, hi3);
+}
+
+
+/* Useful for set-operations on small enums.
+ * For example, for testing "x ∈ {x1, x2, x3}" use:
+ * (FLAG(x) & (FLAG(x1) | FLAG(x2) | FLAG(x3)))
+ */
+#define FLAG(x) (1<<(x))
+#define FLAG_RANGE(x,y) (ASSERT_STATIC_EXPR_ZERO ((x) < (y)) + FLAG(y+1) - FLAG(x))
+
+
+template <typename T, typename T2> inline void
+hb_bubble_sort (T *array, unsigned int len, int(*compar)(const T *, const T *), T2 *array2)
+{
+  if (unlikely (!len))
+    return;
+
+  unsigned int k = len - 1;
+  do {
+    unsigned int new_k = 0;
+
+    for (unsigned int j = 0; j < k; j++)
+      if (compar (&array[j], &array[j+1]) > 0)
+      {
+        {
+         T t;
+         t = array[j];
+         array[j] = array[j + 1];
+         array[j + 1] = t;
+       }
+        if (array2)
+        {
+         T2 t;
+         t = array2[j];
+         array2[j] = array2[j + 1];
+         array2[j + 1] = t;
+       }
+
+       new_k = j;
+      }
+    k = new_k;
+  } while (k);
+}
+
+template <typename T> inline void
+hb_bubble_sort (T *array, unsigned int len, int(*compar)(const T *, const T *))
+{
+  hb_bubble_sort (array, len, compar, (int *) NULL);
+}
+
+static inline hb_bool_t
+hb_codepoint_parse (const char *s, unsigned int len, int base, hb_codepoint_t *out)
+{
+  /* Pain because we don't know whether s is nul-terminated. */
+  char buf[64];
+  len = MIN (ARRAY_LENGTH (buf) - 1, len);
+  strncpy (buf, s, len);
+  buf[len] = '\0';
+
+  char *end;
+  errno = 0;
+  unsigned long v = strtoul (buf, &end, base);
+  if (errno) return false;
+  if (*end) return false;
+  *out = v;
+  return true;
+}
+
+
+/* Global runtime options. */
+
+struct hb_options_t
+{
+  int initialized : 1;
+  int uniscribe_bug_compatible : 1;
+};
+
+union hb_options_union_t {
+  int i;
+  hb_options_t opts;
+};
+ASSERT_STATIC (sizeof (int) == sizeof (hb_options_union_t));
+
+HB_INTERNAL void
+_hb_options_init (void);
+
+extern HB_INTERNAL hb_options_union_t _hb_options;
+
+static inline hb_options_t
+hb_options (void)
+{
+  if (unlikely (!_hb_options.i))
+    _hb_options_init ();
+
+  return _hb_options.opts;
+}
+
+
+#endif /* HB_PRIVATE_HH */
diff --git a/src/hb-set-private.hh b/src/hb-set-private.hh
new file mode 100644 (file)
index 0000000..705f554
--- /dev/null
@@ -0,0 +1,340 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_SET_PRIVATE_HH
+#define HB_SET_PRIVATE_HH
+
+#include "hb-private.hh"
+#include "hb-object-private.hh"
+
+
+/*
+ * The set digests here implement various "filters" that support
+ * "approximate member query".  Conceptually these are like Bloom
+ * Filter and Quotient Filter, however, much smaller, faster, and
+ * designed to fit the requirements of our uses for glyph coverage
+ * queries.  As a result, our filters have much higher.
+ */
+
+template <typename mask_t, unsigned int shift>
+struct hb_set_digest_lowest_bits_t
+{
+  ASSERT_POD ();
+
+  static const unsigned int mask_bytes = sizeof (mask_t);
+  static const unsigned int mask_bits = sizeof (mask_t) * 8;
+  static const unsigned int num_bits = 0
+                                    + (mask_bytes >= 1 ? 3 : 0)
+                                    + (mask_bytes >= 2 ? 1 : 0)
+                                    + (mask_bytes >= 4 ? 1 : 0)
+                                    + (mask_bytes >= 8 ? 1 : 0)
+                                    + (mask_bytes >= 16? 1 : 0)
+                                    + 0;
+
+  ASSERT_STATIC (shift < sizeof (hb_codepoint_t) * 8);
+  ASSERT_STATIC (shift + num_bits <= sizeof (hb_codepoint_t) * 8);
+
+  inline void init (void) {
+    mask = 0;
+  }
+
+  inline void add (hb_codepoint_t g) {
+    mask |= mask_for (g);
+  }
+
+  inline void add_range (hb_codepoint_t a, hb_codepoint_t b) {
+    if ((b >> shift) - (a >> shift) >= mask_bits - 1)
+      mask = (mask_t) -1;
+    else {
+      mask_t ma = mask_for (a);
+      mask_t mb = mask_for (b);
+      mask |= mb + (mb - ma) - (mb < ma);
+    }
+  }
+
+  inline bool may_have (hb_codepoint_t g) const {
+    return !!(mask & mask_for (g));
+  }
+
+  private:
+
+  static inline mask_t mask_for (hb_codepoint_t g) {
+    return ((mask_t) 1) << ((g >> shift) & (mask_bits - 1));
+  }
+  mask_t mask;
+};
+
+template <typename head_t, typename tail_t>
+struct hb_set_digest_combiner_t
+{
+  ASSERT_POD ();
+
+  inline void init (void) {
+    head.init ();
+    tail.init ();
+  }
+
+  inline void add (hb_codepoint_t g) {
+    head.add (g);
+    tail.add (g);
+  }
+
+  inline void add_range (hb_codepoint_t a, hb_codepoint_t b) {
+    head.add_range (a, b);
+    tail.add_range (a, b);
+  }
+
+  inline bool may_have (hb_codepoint_t g) const {
+    return head.may_have (g) && tail.may_have (g);
+  }
+
+  private:
+  head_t head;
+  tail_t tail;
+};
+
+
+/*
+ * hb_set_digest_t
+ *
+ * This is a combination of digests that performs "best".
+ * There is not much science to this: it's a result of intuition
+ * and testing.
+ */
+typedef hb_set_digest_combiner_t
+<
+  hb_set_digest_lowest_bits_t<unsigned long, 4>,
+  hb_set_digest_combiner_t
+  <
+    hb_set_digest_lowest_bits_t<unsigned long, 0>,
+    hb_set_digest_lowest_bits_t<unsigned long, 9>
+  >
+> hb_set_digest_t;
+
+
+
+/*
+ * hb_set_t
+ */
+
+
+/* TODO Make this faster and memmory efficient. */
+
+struct hb_set_t
+{
+  hb_object_header_t header;
+  ASSERT_POD ();
+  bool in_error;
+
+  inline void init (void) {
+    header.init ();
+    clear ();
+  }
+  inline void fini (void) {
+  }
+  inline void clear (void) {
+    if (unlikely (hb_object_is_inert (this)))
+      return;
+    in_error = false;
+    memset (elts, 0, sizeof elts);
+  }
+  inline bool is_empty (void) const {
+    for (unsigned int i = 0; i < ARRAY_LENGTH (elts); i++)
+      if (elts[i])
+        return false;
+    return true;
+  }
+  inline void add (hb_codepoint_t g)
+  {
+    if (unlikely (in_error)) return;
+    if (unlikely (g == INVALID)) return;
+    if (unlikely (g > MAX_G)) return;
+    elt (g) |= mask (g);
+  }
+  inline void add_range (hb_codepoint_t a, hb_codepoint_t b)
+  {
+    if (unlikely (in_error)) return;
+    /* TODO Speedup */
+    for (unsigned int i = a; i < b + 1; i++)
+      add (i);
+  }
+  inline void del (hb_codepoint_t g)
+  {
+    if (unlikely (in_error)) return;
+    if (unlikely (g > MAX_G)) return;
+    elt (g) &= ~mask (g);
+  }
+  inline void del_range (hb_codepoint_t a, hb_codepoint_t b)
+  {
+    if (unlikely (in_error)) return;
+    /* TODO Speedup */
+    for (unsigned int i = a; i < b + 1; i++)
+      del (i);
+  }
+  inline bool has (hb_codepoint_t g) const
+  {
+    if (unlikely (g > MAX_G)) return false;
+    return !!(elt (g) & mask (g));
+  }
+  inline bool intersects (hb_codepoint_t first,
+                         hb_codepoint_t last) const
+  {
+    if (unlikely (first > MAX_G)) return false;
+    if (unlikely (last  > MAX_G)) last = MAX_G;
+    unsigned int end = last + 1;
+    for (hb_codepoint_t i = first; i < end; i++)
+      if (has (i))
+        return true;
+    return false;
+  }
+  inline bool is_equal (const hb_set_t *other) const
+  {
+    for (unsigned int i = 0; i < ELTS; i++)
+      if (elts[i] != other->elts[i])
+        return false;
+    return true;
+  }
+  inline void set (const hb_set_t *other)
+  {
+    if (unlikely (in_error)) return;
+    for (unsigned int i = 0; i < ELTS; i++)
+      elts[i] = other->elts[i];
+  }
+  inline void union_ (const hb_set_t *other)
+  {
+    if (unlikely (in_error)) return;
+    for (unsigned int i = 0; i < ELTS; i++)
+      elts[i] |= other->elts[i];
+  }
+  inline void intersect (const hb_set_t *other)
+  {
+    if (unlikely (in_error)) return;
+    for (unsigned int i = 0; i < ELTS; i++)
+      elts[i] &= other->elts[i];
+  }
+  inline void subtract (const hb_set_t *other)
+  {
+    if (unlikely (in_error)) return;
+    for (unsigned int i = 0; i < ELTS; i++)
+      elts[i] &= ~other->elts[i];
+  }
+  inline void symmetric_difference (const hb_set_t *other)
+  {
+    if (unlikely (in_error)) return;
+    for (unsigned int i = 0; i < ELTS; i++)
+      elts[i] ^= other->elts[i];
+  }
+  inline void invert (void)
+  {
+    if (unlikely (in_error)) return;
+    for (unsigned int i = 0; i < ELTS; i++)
+      elts[i] = ~elts[i];
+  }
+  inline bool next (hb_codepoint_t *codepoint) const
+  {
+    if (unlikely (*codepoint == INVALID)) {
+      hb_codepoint_t i = get_min ();
+      if (i != INVALID) {
+        *codepoint = i;
+       return true;
+      } else {
+       *codepoint = INVALID;
+        return false;
+      }
+    }
+    for (hb_codepoint_t i = *codepoint + 1; i < MAX_G + 1; i++)
+      if (has (i)) {
+        *codepoint = i;
+       return true;
+      }
+    *codepoint = INVALID;
+    return false;
+  }
+  inline bool next_range (hb_codepoint_t *first, hb_codepoint_t *last) const
+  {
+    hb_codepoint_t i;
+
+    i = *last;
+    if (!next (&i))
+    {
+      *last = *first = INVALID;
+      return false;
+    }
+
+    *last = *first = i;
+    while (next (&i) && i == *last + 1)
+      (*last)++;
+
+    return true;
+  }
+
+  inline unsigned int get_population (void) const
+  {
+    unsigned int count = 0;
+    for (unsigned int i = 0; i < ELTS; i++)
+      count += _hb_popcount32 (elts[i]);
+    return count;
+  }
+  inline hb_codepoint_t get_min (void) const
+  {
+    for (unsigned int i = 0; i < ELTS; i++)
+      if (elts[i])
+       for (unsigned int j = 0; j < BITS; j++)
+         if (elts[i] & (1 << j))
+           return i * BITS + j;
+    return INVALID;
+  }
+  inline hb_codepoint_t get_max (void) const
+  {
+    for (unsigned int i = ELTS; i; i--)
+      if (elts[i - 1])
+       for (unsigned int j = BITS; j; j--)
+         if (elts[i - 1] & (1 << (j - 1)))
+           return (i - 1) * BITS + (j - 1);
+    return INVALID;
+  }
+
+  typedef uint32_t elt_t;
+  static const unsigned int MAX_G = 65536 - 1; /* XXX Fix this... */
+  static const unsigned int SHIFT = 5;
+  static const unsigned int BITS = (1 << SHIFT);
+  static const unsigned int MASK = BITS - 1;
+  static const unsigned int ELTS = (MAX_G + 1 + (BITS - 1)) / BITS;
+  static  const hb_codepoint_t INVALID = HB_SET_VALUE_INVALID;
+
+  elt_t &elt (hb_codepoint_t g) { return elts[g >> SHIFT]; }
+  elt_t elt (hb_codepoint_t g) const { return elts[g >> SHIFT]; }
+  elt_t mask (hb_codepoint_t g) const { return elt_t (1) << (g & MASK); }
+
+  elt_t elts[ELTS]; /* XXX 8kb */
+
+  ASSERT_STATIC (sizeof (elt_t) * 8 == BITS);
+  ASSERT_STATIC (sizeof (elt_t) * 8 * ELTS > MAX_G);
+};
+
+
+
+#endif /* HB_SET_PRIVATE_HH */
diff --git a/src/hb-set.cc b/src/hb-set.cc
new file mode 100644 (file)
index 0000000..59a0af4
--- /dev/null
@@ -0,0 +1,471 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-set-private.hh"
+
+
+/* Public API */
+
+
+/**
+ * hb_set_create: (Xconstructor)
+ *
+ * Return value: (transfer full):
+ *
+ * Since: 1.0
+ **/
+hb_set_t *
+hb_set_create (void)
+{
+  hb_set_t *set;
+
+  if (!(set = hb_object_create<hb_set_t> ()))
+    return hb_set_get_empty ();
+
+  set->clear ();
+
+  return set;
+}
+
+/**
+ * hb_set_get_empty:
+ *
+ * Return value: (transfer full):
+ *
+ * Since: 1.0
+ **/
+hb_set_t *
+hb_set_get_empty (void)
+{
+  static const hb_set_t _hb_set_nil = {
+    HB_OBJECT_HEADER_STATIC,
+    true, /* in_error */
+
+    {0} /* elts */
+  };
+
+  return const_cast<hb_set_t *> (&_hb_set_nil);
+}
+
+/**
+ * hb_set_reference: (skip)
+ * @set: a set.
+ *
+ * Return value: (transfer full):
+ *
+ * Since: 1.0
+ **/
+hb_set_t *
+hb_set_reference (hb_set_t *set)
+{
+  return hb_object_reference (set);
+}
+
+/**
+ * hb_set_destroy: (skip)
+ * @set: a set.
+ *
+ * Since: 1.0
+ **/
+void
+hb_set_destroy (hb_set_t *set)
+{
+  if (!hb_object_destroy (set)) return;
+
+  set->fini ();
+
+  free (set);
+}
+
+/**
+ * hb_set_set_user_data: (skip)
+ * @set: a set.
+ * @key:
+ * @data:
+ * @destroy (closure data):
+ * @replace:
+ *
+ * Return value:
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_set_set_user_data (hb_set_t           *set,
+                     hb_user_data_key_t *key,
+                     void *              data,
+                     hb_destroy_func_t   destroy,
+                     hb_bool_t           replace)
+{
+  return hb_object_set_user_data (set, key, data, destroy, replace);
+}
+
+/**
+ * hb_set_get_user_data: (skip)
+ * @set: a set.
+ * @key:
+ *
+ * Return value: (transfer none):
+ *
+ * Since: 1.0
+ **/
+void *
+hb_set_get_user_data (hb_set_t           *set,
+                     hb_user_data_key_t *key)
+{
+  return hb_object_get_user_data (set, key);
+}
+
+
+/**
+ * hb_set_allocation_successful:
+ * @set: a set.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_set_allocation_successful (const hb_set_t  *set HB_UNUSED)
+{
+  return !set->in_error;
+}
+
+/**
+ * hb_set_clear:
+ * @set: a set.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_set_clear (hb_set_t *set)
+{
+  set->clear ();
+}
+
+/**
+ * hb_set_is_empty:
+ * @set: a set.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_set_is_empty (const hb_set_t *set)
+{
+  return set->is_empty ();
+}
+
+/**
+ * hb_set_has:
+ * @set: a set.
+ * @codepoint: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_set_has (const hb_set_t *set,
+           hb_codepoint_t  codepoint)
+{
+  return set->has (codepoint);
+}
+
+/**
+ * hb_set_add:
+ * @set: a set.
+ * @codepoint: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_set_add (hb_set_t       *set,
+           hb_codepoint_t  codepoint)
+{
+  set->add (codepoint);
+}
+
+/**
+ * hb_set_add_range:
+ * @set: a set.
+ * @first: 
+ * @last: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_set_add_range (hb_set_t       *set,
+                 hb_codepoint_t  first,
+                 hb_codepoint_t  last)
+{
+  set->add_range (first, last);
+}
+
+/**
+ * hb_set_del:
+ * @set: a set.
+ * @codepoint: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_set_del (hb_set_t       *set,
+           hb_codepoint_t  codepoint)
+{
+  set->del (codepoint);
+}
+
+/**
+ * hb_set_del_range:
+ * @set: a set.
+ * @first: 
+ * @last: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_set_del_range (hb_set_t       *set,
+                 hb_codepoint_t  first,
+                 hb_codepoint_t  last)
+{
+  set->del_range (first, last);
+}
+
+/**
+ * hb_set_is_equal:
+ * @set: a set.
+ * @other: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_set_is_equal (const hb_set_t *set,
+                const hb_set_t *other)
+{
+  return set->is_equal (other);
+}
+
+/**
+ * hb_set_set:
+ * @set: a set.
+ * @other: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_set_set (hb_set_t       *set,
+           const hb_set_t *other)
+{
+  set->set (other);
+}
+
+/**
+ * hb_set_union:
+ * @set: a set.
+ * @other: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_set_union (hb_set_t       *set,
+             const hb_set_t *other)
+{
+  set->union_ (other);
+}
+
+/**
+ * hb_set_intersect:
+ * @set: a set.
+ * @other: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_set_intersect (hb_set_t       *set,
+                 const hb_set_t *other)
+{
+  set->intersect (other);
+}
+
+/**
+ * hb_set_subtract:
+ * @set: a set.
+ * @other: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_set_subtract (hb_set_t       *set,
+                const hb_set_t *other)
+{
+  set->subtract (other);
+}
+
+/**
+ * hb_set_symmetric_difference:
+ * @set: a set.
+ * @other: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_set_symmetric_difference (hb_set_t       *set,
+                            const hb_set_t *other)
+{
+  set->symmetric_difference (other);
+}
+
+/**
+ * hb_set_invert:
+ * @set: a set.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_set_invert (hb_set_t *set)
+{
+  set->invert ();
+}
+
+/**
+ * hb_set_get_population:
+ * @set: a set.
+ *
+ * Returns the number of numbers in the set.
+ *
+ * Return value: set population.
+ *
+ * Since: 1.0
+ **/
+unsigned int
+hb_set_get_population (const hb_set_t *set)
+{
+  return set->get_population ();
+}
+
+/**
+ * hb_set_get_min:
+ * @set: a set.
+ *
+ * Finds the minimum number in the set.
+ *
+ * Return value: minimum of the set, or %HB_SET_VALUE_INVALID if set is empty.
+ *
+ * Since: 1.0
+ **/
+hb_codepoint_t
+hb_set_get_min (const hb_set_t *set)
+{
+  return set->get_min ();
+}
+
+/**
+ * hb_set_get_max:
+ * @set: a set.
+ *
+ * Finds the maximum number in the set.
+ *
+ * Return value: minimum of the set, or %HB_SET_VALUE_INVALID if set is empty.
+ *
+ * Since: 1.0
+ **/
+hb_codepoint_t
+hb_set_get_max (const hb_set_t *set)
+{
+  return set->get_max ();
+}
+
+/**
+ * hb_set_next:
+ * @set: a set.
+ * @codepoint: (inout):
+ *
+ * 
+ *
+ * Return value: whether there was a next value.
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_set_next (const hb_set_t *set,
+            hb_codepoint_t *codepoint)
+{
+  return set->next (codepoint);
+}
+
+/**
+ * hb_set_next_range:
+ * @set: a set.
+ * @first: (out): output first codepoint in the range.
+ * @last: (inout): input current last and output last codepoint in the range.
+ *
+ * Gets the next consecutive range of numbers in @set that
+ * are greater than current value of @last.
+ *
+ * Return value: whether there was a next range.
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_set_next_range (const hb_set_t *set,
+                  hb_codepoint_t *first,
+                  hb_codepoint_t *last)
+{
+  return set->next_range (first, last);
+}
diff --git a/src/hb-set.h b/src/hb-set.h
new file mode 100644 (file)
index 0000000..bafdae9
--- /dev/null
@@ -0,0 +1,154 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_H_IN
+#error "Include <hb.h> instead."
+#endif
+
+#ifndef HB_SET_H
+#define HB_SET_H
+
+#include "hb-common.h"
+
+HB_BEGIN_DECLS
+
+
+#define HB_SET_VALUE_INVALID ((hb_codepoint_t) -1)
+
+typedef struct hb_set_t hb_set_t;
+
+
+hb_set_t *
+hb_set_create (void);
+
+hb_set_t *
+hb_set_get_empty (void);
+
+hb_set_t *
+hb_set_reference (hb_set_t *set);
+
+void
+hb_set_destroy (hb_set_t *set);
+
+hb_bool_t
+hb_set_set_user_data (hb_set_t           *set,
+                     hb_user_data_key_t *key,
+                     void *              data,
+                     hb_destroy_func_t   destroy,
+                     hb_bool_t           replace);
+
+void *
+hb_set_get_user_data (hb_set_t           *set,
+                     hb_user_data_key_t *key);
+
+
+/* Returns false if allocation has failed before */
+hb_bool_t
+hb_set_allocation_successful (const hb_set_t *set);
+
+void
+hb_set_clear (hb_set_t *set);
+
+hb_bool_t
+hb_set_is_empty (const hb_set_t *set);
+
+hb_bool_t
+hb_set_has (const hb_set_t *set,
+           hb_codepoint_t  codepoint);
+
+/* Right now limited to 16-bit integers.  Eventually will do full codepoint range, sans -1
+ * which we will use as a sentinel. */
+void
+hb_set_add (hb_set_t       *set,
+           hb_codepoint_t  codepoint);
+
+void
+hb_set_add_range (hb_set_t       *set,
+                 hb_codepoint_t  first,
+                 hb_codepoint_t  last);
+
+void
+hb_set_del (hb_set_t       *set,
+           hb_codepoint_t  codepoint);
+
+void
+hb_set_del_range (hb_set_t       *set,
+                 hb_codepoint_t  first,
+                 hb_codepoint_t  last);
+
+hb_bool_t
+hb_set_is_equal (const hb_set_t *set,
+                const hb_set_t *other);
+
+void
+hb_set_set (hb_set_t       *set,
+           const hb_set_t *other);
+
+void
+hb_set_union (hb_set_t       *set,
+             const hb_set_t *other);
+
+void
+hb_set_intersect (hb_set_t       *set,
+                 const hb_set_t *other);
+
+void
+hb_set_subtract (hb_set_t       *set,
+                const hb_set_t *other);
+
+void
+hb_set_symmetric_difference (hb_set_t       *set,
+                            const hb_set_t *other);
+
+void
+hb_set_invert (hb_set_t *set);
+
+unsigned int
+hb_set_get_population (const hb_set_t *set);
+
+/* Returns -1 if set empty. */
+hb_codepoint_t
+hb_set_get_min (const hb_set_t *set);
+
+/* Returns -1 if set empty. */
+hb_codepoint_t
+hb_set_get_max (const hb_set_t *set);
+
+/* Pass -1 in to get started. */
+hb_bool_t
+hb_set_next (const hb_set_t *set,
+            hb_codepoint_t *codepoint);
+
+/* Pass -1 for first and last to get started. */
+hb_bool_t
+hb_set_next_range (const hb_set_t *set,
+                  hb_codepoint_t *first,
+                  hb_codepoint_t *last);
+
+
+HB_END_DECLS
+
+#endif /* HB_SET_H */
diff --git a/src/hb-shape-plan-private.hh b/src/hb-shape-plan-private.hh
new file mode 100644 (file)
index 0000000..607da5e
--- /dev/null
@@ -0,0 +1,62 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_SHAPE_PLAN_PRIVATE_HH
+#define HB_SHAPE_PLAN_PRIVATE_HH
+
+#include "hb-private.hh"
+#include "hb-object-private.hh"
+#include "hb-shaper-private.hh"
+
+
+struct hb_shape_plan_t
+{
+  hb_object_header_t header;
+  ASSERT_POD ();
+
+  hb_bool_t default_shaper_list;
+  hb_face_t *face_unsafe; /* We don't carry a reference to face. */
+  hb_segment_properties_t props;
+
+  hb_shape_func_t *shaper_func;
+  const char *shaper_name;
+
+  hb_feature_t *user_features;
+  unsigned int num_user_features;
+
+  struct hb_shaper_data_t shaper_data;
+};
+
+#define HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS \
+       , const hb_feature_t            *user_features \
+       , unsigned int                   num_user_features
+#define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_PROTOTYPE(shaper, shape_plan);
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+#undef HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS
+
+
+#endif /* HB_SHAPE_PLAN_PRIVATE_HH */
diff --git a/src/hb-shape-plan.cc b/src/hb-shape-plan.cc
new file mode 100644 (file)
index 0000000..2166173
--- /dev/null
@@ -0,0 +1,492 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-shape-plan-private.hh"
+#include "hb-shaper-private.hh"
+#include "hb-font-private.hh"
+#include "hb-buffer-private.hh"
+
+
+#ifndef HB_DEBUG_SHAPE_PLAN
+#define HB_DEBUG_SHAPE_PLAN (HB_DEBUG+0)
+#endif
+
+
+#define HB_SHAPER_IMPLEMENT(shaper) \
+       HB_SHAPER_DATA_ENSURE_DECLARE(shaper, face) \
+       HB_SHAPER_DATA_ENSURE_DECLARE(shaper, font)
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+
+
+static void
+hb_shape_plan_plan (hb_shape_plan_t    *shape_plan,
+                   const hb_feature_t *user_features,
+                   unsigned int        num_user_features,
+                   const char * const *shaper_list)
+{
+  DEBUG_MSG_FUNC (SHAPE_PLAN, shape_plan,
+                 "num_features=%d shaper_list=%p",
+                 num_user_features,
+                 shaper_list);
+
+  const hb_shaper_pair_t *shapers = _hb_shapers_get ();
+
+#define HB_SHAPER_PLAN(shaper) \
+       HB_STMT_START { \
+         if (hb_##shaper##_shaper_face_data_ensure (shape_plan->face_unsafe)) { \
+           HB_SHAPER_DATA (shaper, shape_plan) = \
+             HB_SHAPER_DATA_CREATE_FUNC (shaper, shape_plan) (shape_plan, user_features, num_user_features); \
+           shape_plan->shaper_func = _hb_##shaper##_shape; \
+           shape_plan->shaper_name = #shaper; \
+           return; \
+         } \
+       } HB_STMT_END
+
+  if (likely (!shaper_list)) {
+    for (unsigned int i = 0; i < HB_SHAPERS_COUNT; i++)
+      if (0)
+       ;
+#define HB_SHAPER_IMPLEMENT(shaper) \
+      else if (shapers[i].func == _hb_##shaper##_shape) \
+       HB_SHAPER_PLAN (shaper);
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+  } else {
+    for (; *shaper_list; shaper_list++)
+      if (0)
+       ;
+#define HB_SHAPER_IMPLEMENT(shaper) \
+      else if (0 == strcmp (*shaper_list, #shaper)) \
+       HB_SHAPER_PLAN (shaper);
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+  }
+
+#undef HB_SHAPER_PLAN
+}
+
+
+/*
+ * hb_shape_plan_t
+ */
+
+/**
+ * hb_shape_plan_create: (Xconstructor)
+ * @face: 
+ * @props: 
+ * @user_features: (array length=num_user_features):
+ * @num_user_features: 
+ * @shaper_list: (array zero-terminated=1):
+ *
+ * 
+ *
+ * Return value: (transfer full):
+ *
+ * Since: 1.0
+ **/
+hb_shape_plan_t *
+hb_shape_plan_create (hb_face_t                     *face,
+                     const hb_segment_properties_t *props,
+                     const hb_feature_t            *user_features,
+                     unsigned int                   num_user_features,
+                     const char * const            *shaper_list)
+{
+  DEBUG_MSG_FUNC (SHAPE_PLAN, NULL,
+                 "face=%p num_features=%d shaper_list=%p",
+                 face,
+                 num_user_features,
+                 shaper_list);
+
+  hb_shape_plan_t *shape_plan;
+  hb_feature_t *features = NULL;
+
+  if (unlikely (!face))
+    face = hb_face_get_empty ();
+  if (unlikely (!props || hb_object_is_inert (face)))
+    return hb_shape_plan_get_empty ();
+  if (num_user_features && !(features = (hb_feature_t *) malloc (num_user_features * sizeof (hb_feature_t))))
+    return hb_shape_plan_get_empty ();
+  if (!(shape_plan = hb_object_create<hb_shape_plan_t> ())) {
+    free (features);
+    return hb_shape_plan_get_empty ();
+  }
+
+  assert (props->direction != HB_DIRECTION_INVALID);
+
+  hb_face_make_immutable (face);
+  shape_plan->default_shaper_list = shaper_list == NULL;
+  shape_plan->face_unsafe = face;
+  shape_plan->props = *props;
+  shape_plan->num_user_features = num_user_features;
+  shape_plan->user_features = features;
+  if (num_user_features)
+    memcpy (features, user_features, num_user_features * sizeof (hb_feature_t));
+
+  hb_shape_plan_plan (shape_plan, user_features, num_user_features, shaper_list);
+
+  return shape_plan;
+}
+
+/**
+ * hb_shape_plan_get_empty:
+ *
+ * 
+ *
+ * Return value: (transfer full):
+ *
+ * Since: 1.0
+ **/
+hb_shape_plan_t *
+hb_shape_plan_get_empty (void)
+{
+  static const hb_shape_plan_t _hb_shape_plan_nil = {
+    HB_OBJECT_HEADER_STATIC,
+
+    true, /* default_shaper_list */
+    NULL, /* face */
+    HB_SEGMENT_PROPERTIES_DEFAULT, /* props */
+
+    NULL, /* shaper_func */
+    NULL, /* shaper_name */
+
+    NULL, /* user_features */
+    0,    /* num_user_featurs */
+
+    {
+#define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_INVALID,
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+    }
+  };
+
+  return const_cast<hb_shape_plan_t *> (&_hb_shape_plan_nil);
+}
+
+/**
+ * hb_shape_plan_reference: (skip)
+ * @shape_plan: a shape plan.
+ *
+ * 
+ *
+ * Return value: (transfer full):
+ *
+ * Since: 1.0
+ **/
+hb_shape_plan_t *
+hb_shape_plan_reference (hb_shape_plan_t *shape_plan)
+{
+  return hb_object_reference (shape_plan);
+}
+
+/**
+ * hb_shape_plan_destroy: (skip)
+ * @shape_plan: a shape plan.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_shape_plan_destroy (hb_shape_plan_t *shape_plan)
+{
+  if (!hb_object_destroy (shape_plan)) return;
+
+#define HB_SHAPER_IMPLEMENT(shaper) HB_SHAPER_DATA_DESTROY(shaper, shape_plan);
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+
+  free (shape_plan->user_features);
+
+  free (shape_plan);
+}
+
+/**
+ * hb_shape_plan_set_user_data: (skip)
+ * @shape_plan: a shape plan.
+ * @key: 
+ * @data: 
+ * @destroy: 
+ * @replace: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_shape_plan_set_user_data (hb_shape_plan_t    *shape_plan,
+                            hb_user_data_key_t *key,
+                            void *              data,
+                            hb_destroy_func_t   destroy,
+                            hb_bool_t           replace)
+{
+  return hb_object_set_user_data (shape_plan, key, data, destroy, replace);
+}
+
+/**
+ * hb_shape_plan_get_user_data: (skip)
+ * @shape_plan: a shape plan.
+ * @key: 
+ *
+ * 
+ *
+ * Return value: (transfer none):
+ *
+ * Since: 1.0
+ **/
+void *
+hb_shape_plan_get_user_data (hb_shape_plan_t    *shape_plan,
+                            hb_user_data_key_t *key)
+{
+  return hb_object_get_user_data (shape_plan, key);
+}
+
+
+/**
+ * hb_shape_plan_execute:
+ * @shape_plan: a shape plan.
+ * @font: a font.
+ * @buffer: a buffer.
+ * @features: (array length=num_features):
+ * @num_features: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_shape_plan_execute (hb_shape_plan_t    *shape_plan,
+                      hb_font_t          *font,
+                      hb_buffer_t        *buffer,
+                      const hb_feature_t *features,
+                      unsigned int        num_features)
+{
+  DEBUG_MSG_FUNC (SHAPE_PLAN, shape_plan,
+                 "num_features=%d shaper_func=%p",
+                 num_features,
+                 shape_plan->shaper_func);
+
+  if (unlikely (hb_object_is_inert (shape_plan) ||
+               hb_object_is_inert (font) ||
+               hb_object_is_inert (buffer)))
+    return false;
+
+  assert (shape_plan->face_unsafe == font->face);
+  assert (hb_segment_properties_equal (&shape_plan->props, &buffer->props));
+
+#define HB_SHAPER_EXECUTE(shaper) \
+       HB_STMT_START { \
+         return HB_SHAPER_DATA (shaper, shape_plan) && \
+                hb_##shaper##_shaper_font_data_ensure (font) && \
+                _hb_##shaper##_shape (shape_plan, font, buffer, features, num_features); \
+       } HB_STMT_END
+
+  if (0)
+    ;
+#define HB_SHAPER_IMPLEMENT(shaper) \
+  else if (shape_plan->shaper_func == _hb_##shaper##_shape) \
+    HB_SHAPER_EXECUTE (shaper);
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+
+#undef HB_SHAPER_EXECUTE
+
+  return false;
+}
+
+
+/*
+ * caching
+ */
+
+#if 0
+static unsigned int
+hb_shape_plan_hash (const hb_shape_plan_t *shape_plan)
+{
+  return hb_segment_properties_hash (&shape_plan->props) +
+        shape_plan->default_shaper_list ? 0 : (intptr_t) shape_plan->shaper_func;
+}
+#endif
+
+/* User-feature caching is currently somewhat dumb:
+ * it only finds matches where the feature array is identical,
+ * not cases where the feature lists would be compatible for plan purposes
+ * but have different ranges, for example.
+ */
+struct hb_shape_plan_proposal_t
+{
+  const hb_segment_properties_t  props;
+  const char * const            *shaper_list;
+  const hb_feature_t            *user_features;
+  unsigned int                   num_user_features;
+  hb_shape_func_t               *shaper_func;
+};
+
+static inline hb_bool_t
+hb_shape_plan_user_features_match (const hb_shape_plan_t          *shape_plan,
+                                  const hb_shape_plan_proposal_t *proposal)
+{
+  if (proposal->num_user_features != shape_plan->num_user_features) return false;
+  for (unsigned int i = 0, n = proposal->num_user_features; i < n; i++)
+    if (proposal->user_features[i].tag   != shape_plan->user_features[i].tag   ||
+        proposal->user_features[i].value != shape_plan->user_features[i].value ||
+        proposal->user_features[i].start != shape_plan->user_features[i].start ||
+        proposal->user_features[i].end   != shape_plan->user_features[i].end) return false;
+  return true;
+}
+
+static hb_bool_t
+hb_shape_plan_matches (const hb_shape_plan_t          *shape_plan,
+                      const hb_shape_plan_proposal_t *proposal)
+{
+  return hb_segment_properties_equal (&shape_plan->props, &proposal->props) &&
+        hb_shape_plan_user_features_match (shape_plan, proposal) &&
+        ((shape_plan->default_shaper_list && proposal->shaper_list == NULL) ||
+         (shape_plan->shaper_func == proposal->shaper_func));
+}
+
+static inline hb_bool_t
+hb_non_global_user_features_present (const hb_feature_t *user_features,
+                                    unsigned int        num_user_features)
+{
+  while (num_user_features)
+    if (user_features->start != 0 || user_features->end != (unsigned int) -1)
+      return true;
+    else
+      num_user_features--, user_features++;
+  return false;
+}
+
+/**
+ * hb_shape_plan_create_cached:
+ * @face: 
+ * @props: 
+ * @user_features: (array length=num_user_features):
+ * @num_user_features: 
+ * @shaper_list: (array zero-terminated=1):
+ *
+ * 
+ *
+ * Return value: (transfer full):
+ *
+ * Since: 1.0
+ **/
+hb_shape_plan_t *
+hb_shape_plan_create_cached (hb_face_t                     *face,
+                            const hb_segment_properties_t *props,
+                            const hb_feature_t            *user_features,
+                            unsigned int                   num_user_features,
+                            const char * const            *shaper_list)
+{
+  DEBUG_MSG_FUNC (SHAPE_PLAN, NULL,
+                 "face=%p num_features=%d shaper_list=%p",
+                 face,
+                 num_user_features,
+                 shaper_list);
+
+  hb_shape_plan_proposal_t proposal = {
+    *props,
+    shaper_list,
+    user_features,
+    num_user_features,
+    NULL
+  };
+
+  if (shaper_list) {
+    /* Choose shaper.  Adapted from hb_shape_plan_plan().
+     * Must choose shaper exactly the same way as that function. */
+    for (const char * const *shaper_item = shaper_list; *shaper_item; shaper_item++)
+      if (0)
+       ;
+#define HB_SHAPER_IMPLEMENT(shaper) \
+      else if (0 == strcmp (*shaper_item, #shaper) && \
+              hb_##shaper##_shaper_face_data_ensure (face)) \
+      { \
+       proposal.shaper_func = _hb_##shaper##_shape; \
+       break; \
+      }
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+
+    if (unlikely (!proposal.shaper_func))
+      return hb_shape_plan_get_empty ();
+  }
+
+
+retry:
+  hb_face_t::plan_node_t *cached_plan_nodes = (hb_face_t::plan_node_t *) hb_atomic_ptr_get (&face->shape_plans);
+  for (hb_face_t::plan_node_t *node = cached_plan_nodes; node; node = node->next)
+    if (hb_shape_plan_matches (node->shape_plan, &proposal))
+    {
+      DEBUG_MSG_FUNC (SHAPE_PLAN, node->shape_plan, "fulfilled from cache");
+      return hb_shape_plan_reference (node->shape_plan);
+    }
+
+  /* Not found. */
+
+  hb_shape_plan_t *shape_plan = hb_shape_plan_create (face, props, user_features, num_user_features, shaper_list);
+
+  /* Don't add the plan to the cache if there were user features with non-global ranges */
+
+  if (hb_non_global_user_features_present (user_features, num_user_features))
+    return shape_plan;
+
+  hb_face_t::plan_node_t *node = (hb_face_t::plan_node_t *) calloc (1, sizeof (hb_face_t::plan_node_t));
+  if (unlikely (!node))
+    return shape_plan;
+
+  node->shape_plan = shape_plan;
+  node->next = cached_plan_nodes;
+
+  if (!hb_atomic_ptr_cmpexch (&face->shape_plans, cached_plan_nodes, node)) {
+    hb_shape_plan_destroy (shape_plan);
+    free (node);
+    goto retry;
+  }
+  DEBUG_MSG_FUNC (SHAPE_PLAN, shape_plan, "inserted into cache");
+
+  return hb_shape_plan_reference (shape_plan);
+}
+
+/**
+ * hb_shape_plan_get_shaper:
+ * @shape_plan: a shape plan.
+ *
+ * 
+ *
+ * Return value: (transfer none):
+ *
+ * Since: 1.0
+ **/
+const char *
+hb_shape_plan_get_shaper (hb_shape_plan_t *shape_plan)
+{
+  return shape_plan->shaper_name;
+}
diff --git a/src/hb-shape-plan.h b/src/hb-shape-plan.h
new file mode 100644 (file)
index 0000000..8f54552
--- /dev/null
@@ -0,0 +1,89 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_H_IN
+#error "Include <hb.h> instead."
+#endif
+
+#ifndef HB_SHAPE_PLAN_H
+#define HB_SHAPE_PLAN_H
+
+#include "hb-common.h"
+#include "hb-font.h"
+
+HB_BEGIN_DECLS
+
+typedef struct hb_shape_plan_t hb_shape_plan_t;
+
+hb_shape_plan_t *
+hb_shape_plan_create (hb_face_t                     *face,
+                     const hb_segment_properties_t *props,
+                     const hb_feature_t            *user_features,
+                     unsigned int                   num_user_features,
+                     const char * const            *shaper_list);
+
+hb_shape_plan_t *
+hb_shape_plan_create_cached (hb_face_t                     *face,
+                            const hb_segment_properties_t *props,
+                            const hb_feature_t            *user_features,
+                            unsigned int                   num_user_features,
+                            const char * const            *shaper_list);
+
+hb_shape_plan_t *
+hb_shape_plan_get_empty (void);
+
+hb_shape_plan_t *
+hb_shape_plan_reference (hb_shape_plan_t *shape_plan);
+
+void
+hb_shape_plan_destroy (hb_shape_plan_t *shape_plan);
+
+hb_bool_t
+hb_shape_plan_set_user_data (hb_shape_plan_t    *shape_plan,
+                            hb_user_data_key_t *key,
+                            void *              data,
+                            hb_destroy_func_t   destroy,
+                            hb_bool_t           replace);
+
+void *
+hb_shape_plan_get_user_data (hb_shape_plan_t    *shape_plan,
+                            hb_user_data_key_t *key);
+
+
+hb_bool_t
+hb_shape_plan_execute (hb_shape_plan_t    *shape_plan,
+                      hb_font_t          *font,
+                      hb_buffer_t        *buffer,
+                      const hb_feature_t *features,
+                      unsigned int        num_features);
+
+const char *
+hb_shape_plan_get_shaper (hb_shape_plan_t *shape_plan);
+
+
+HB_END_DECLS
+
+#endif /* HB_SHAPE_PLAN_H */
diff --git a/src/hb-shape.cc b/src/hb-shape.cc
new file mode 100644 (file)
index 0000000..74747f8
--- /dev/null
@@ -0,0 +1,385 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-private.hh"
+
+#include "hb-shaper-private.hh"
+#include "hb-shape-plan-private.hh"
+#include "hb-buffer-private.hh"
+#include "hb-font-private.hh"
+
+
+static bool
+parse_space (const char **pp, const char *end)
+{
+  while (*pp < end && ISSPACE (**pp))
+    (*pp)++;
+  return true;
+}
+
+static bool
+parse_char (const char **pp, const char *end, char c)
+{
+  parse_space (pp, end);
+
+  if (*pp == end || **pp != c)
+    return false;
+
+  (*pp)++;
+  return true;
+}
+
+static bool
+parse_uint (const char **pp, const char *end, unsigned int *pv)
+{
+  char buf[32];
+  unsigned int len = MIN (ARRAY_LENGTH (buf) - 1, (unsigned int) (end - *pp));
+  strncpy (buf, *pp, len);
+  buf[len] = '\0';
+
+  char *p = buf;
+  char *pend = p;
+  unsigned int v;
+
+  /* Intentionally use strtol instead of strtoul, such that
+   * -1 turns into "big number"... */
+  errno = 0;
+  v = strtol (p, &pend, 0);
+  if (errno || p == pend)
+    return false;
+
+  *pv = v;
+  *pp += pend - p;
+  return true;
+}
+
+static bool
+parse_bool (const char **pp, const char *end, unsigned int *pv)
+{
+  parse_space (pp, end);
+
+  const char *p = *pp;
+  while (*pp < end && ISALPHA(**pp))
+    (*pp)++;
+
+  /* CSS allows on/off as aliases 1/0. */
+  if (*pp - p == 2 || 0 == strncmp (p, "on", 2))
+    *pv = 1;
+  else if (*pp - p == 3 || 0 == strncmp (p, "off", 2))
+    *pv = 0;
+  else
+    return false;
+
+  return true;
+}
+
+static bool
+parse_feature_value_prefix (const char **pp, const char *end, hb_feature_t *feature)
+{
+  if (parse_char (pp, end, '-'))
+    feature->value = 0;
+  else {
+    parse_char (pp, end, '+');
+    feature->value = 1;
+  }
+
+  return true;
+}
+
+static bool
+parse_feature_tag (const char **pp, const char *end, hb_feature_t *feature)
+{
+  parse_space (pp, end);
+
+  char quote = 0;
+
+  if (*pp < end && (**pp == '\'' || **pp == '"'))
+  {
+    quote = **pp;
+    (*pp)++;
+  }
+
+  const char *p = *pp;
+  while (*pp < end && ISALNUM(**pp))
+    (*pp)++;
+
+  if (p == *pp || *pp - p > 4)
+    return false;
+
+  feature->tag = hb_tag_from_string (p, *pp - p);
+
+  if (quote)
+  {
+    /* CSS expects exactly four bytes.  And we only allow quotations for
+     * CSS compatibility.  So, enforce the length. */
+     if (*pp - p != 4)
+       return false;
+    if (*pp == end || **pp != quote)
+      return false;
+    (*pp)++;
+  }
+
+  return true;
+}
+
+static bool
+parse_feature_indices (const char **pp, const char *end, hb_feature_t *feature)
+{
+  parse_space (pp, end);
+
+  bool has_start;
+
+  feature->start = 0;
+  feature->end = (unsigned int) -1;
+
+  if (!parse_char (pp, end, '['))
+    return true;
+
+  has_start = parse_uint (pp, end, &feature->start);
+
+  if (parse_char (pp, end, ':')) {
+    parse_uint (pp, end, &feature->end);
+  } else {
+    if (has_start)
+      feature->end = feature->start + 1;
+  }
+
+  return parse_char (pp, end, ']');
+}
+
+static bool
+parse_feature_value_postfix (const char **pp, const char *end, hb_feature_t *feature)
+{
+  bool had_equal = parse_char (pp, end, '=');
+  bool had_value = parse_uint (pp, end, &feature->value) ||
+                   parse_bool (pp, end, &feature->value);
+  /* CSS doesn't use equal-sign between tag and value.
+   * If there was an equal-sign, then there *must* be a value.
+   * A value without an eqaul-sign is ok, but not required. */
+  return !had_equal || had_value;
+}
+
+
+static bool
+parse_one_feature (const char **pp, const char *end, hb_feature_t *feature)
+{
+  return parse_feature_value_prefix (pp, end, feature) &&
+        parse_feature_tag (pp, end, feature) &&
+        parse_feature_indices (pp, end, feature) &&
+        parse_feature_value_postfix (pp, end, feature) &&
+        parse_space (pp, end) &&
+        *pp == end;
+}
+
+/**
+ * hb_feature_from_string:
+ * @str: (array length=len):
+ * @len: 
+ * @feature: (out) (allow-none):
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_feature_from_string (const char *str, int len,
+                       hb_feature_t *feature)
+{
+  hb_feature_t feat;
+
+  if (len < 0)
+    len = strlen (str);
+
+  if (likely (parse_one_feature (&str, str + len, &feat)))
+  {
+    if (feature)
+      *feature = feat;
+    return true;
+  }
+
+  if (feature)
+    memset (feature, 0, sizeof (*feature));
+  return false;
+}
+
+/**
+ * hb_feature_to_string:
+ * @feature: 
+ * @buf: (array length=size):
+ * @size: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_feature_to_string (hb_feature_t *feature,
+                     char *buf, unsigned int size)
+{
+  if (unlikely (!size)) return;
+
+  char s[128];
+  unsigned int len = 0;
+  if (feature->value == 0)
+    s[len++] = '-';
+  hb_tag_to_string (feature->tag, s + len);
+  len += 4;
+  while (len && s[len - 1] == ' ')
+    len--;
+  if (feature->start != 0 || feature->end != (unsigned int) -1)
+  {
+    s[len++] = '[';
+    if (feature->start)
+      len += MAX (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->start));
+    if (feature->end != feature->start + 1) {
+      s[len++] = ':';
+      if (feature->end != (unsigned int) -1)
+       len += MAX (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->end));
+    }
+    s[len++] = ']';
+  }
+  if (feature->value > 1)
+  {
+    s[len++] = '=';
+    len += MAX (0, snprintf (s + len, ARRAY_LENGTH (s) - len, "%u", feature->value));
+  }
+  assert (len < ARRAY_LENGTH (s));
+  len = MIN (len, size - 1);
+  memcpy (buf, s, len);
+  buf[len] = '\0';
+}
+
+
+static const char **static_shaper_list;
+
+static inline
+void free_static_shaper_list (void)
+{
+  free (static_shaper_list);
+}
+
+/**
+ * hb_shape_list_shapers:
+ *
+ * 
+ *
+ * Return value: (transfer none):
+ *
+ * Since: 1.0
+ **/
+const char **
+hb_shape_list_shapers (void)
+{
+retry:
+  const char **shaper_list = (const char **) hb_atomic_ptr_get (&static_shaper_list);
+
+  if (unlikely (!shaper_list))
+  {
+    /* Not found; allocate one. */
+    shaper_list = (const char **) calloc (1 + HB_SHAPERS_COUNT, sizeof (const char *));
+    if (unlikely (!shaper_list)) {
+      static const char *nil_shaper_list[] = {NULL};
+      return nil_shaper_list;
+    }
+
+    const hb_shaper_pair_t *shapers = _hb_shapers_get ();
+    unsigned int i;
+    for (i = 0; i < HB_SHAPERS_COUNT; i++)
+      shaper_list[i] = shapers[i].name;
+    shaper_list[i] = NULL;
+
+    if (!hb_atomic_ptr_cmpexch (&static_shaper_list, NULL, shaper_list)) {
+      free (shaper_list);
+      goto retry;
+    }
+
+#ifdef HB_USE_ATEXIT
+    atexit (free_static_shaper_list); /* First person registers atexit() callback. */
+#endif
+  }
+
+  return shaper_list;
+}
+
+
+/**
+ * hb_shape_full:
+ * @font: a font.
+ * @buffer: a buffer.
+ * @features: (array length=num_features):
+ * @num_features: 
+ * @shaper_list: (array zero-terminated=1):
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_shape_full (hb_font_t          *font,
+              hb_buffer_t        *buffer,
+              const hb_feature_t *features,
+              unsigned int        num_features,
+              const char * const *shaper_list)
+{
+  if (unlikely (!buffer->len))
+    return true;
+
+  assert (buffer->content_type == HB_BUFFER_CONTENT_TYPE_UNICODE);
+
+  hb_shape_plan_t *shape_plan = hb_shape_plan_create_cached (font->face, &buffer->props, features, num_features, shaper_list);
+  hb_bool_t res = hb_shape_plan_execute (shape_plan, font, buffer, features, num_features);
+  hb_shape_plan_destroy (shape_plan);
+
+  if (res)
+    buffer->content_type = HB_BUFFER_CONTENT_TYPE_GLYPHS;
+  return res;
+}
+
+/**
+ * hb_shape:
+ * @font: a font.
+ * @buffer: a buffer.
+ * @features: (array length=num_features):
+ * @num_features: 
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_shape (hb_font_t           *font,
+         hb_buffer_t         *buffer,
+         const hb_feature_t  *features,
+         unsigned int         num_features)
+{
+  hb_shape_full (font, buffer, features, num_features, NULL);
+}
diff --git a/src/hb-shape.h b/src/hb-shape.h
new file mode 100644 (file)
index 0000000..10a35cb
--- /dev/null
@@ -0,0 +1,81 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_H_IN
+#error "Include <hb.h> instead."
+#endif
+
+#ifndef HB_SHAPE_H
+#define HB_SHAPE_H
+
+#include "hb-common.h"
+#include "hb-buffer.h"
+#include "hb-font.h"
+
+HB_BEGIN_DECLS
+
+
+typedef struct hb_feature_t {
+  hb_tag_t      tag;
+  uint32_t      value;
+  unsigned int  start;
+  unsigned int  end;
+} hb_feature_t;
+
+/* len=-1 means str is NUL-terminated */
+hb_bool_t
+hb_feature_from_string (const char *str, int len,
+                       hb_feature_t *feature);
+
+/* Something like 128 bytes is more than enough.
+ * nul-terminates. */
+void
+hb_feature_to_string (hb_feature_t *feature,
+                     char *buf, unsigned int size);
+
+
+void
+hb_shape (hb_font_t           *font,
+         hb_buffer_t         *buffer,
+         const hb_feature_t  *features,
+         unsigned int         num_features);
+
+hb_bool_t
+hb_shape_full (hb_font_t          *font,
+              hb_buffer_t        *buffer,
+              const hb_feature_t *features,
+              unsigned int        num_features,
+              const char * const *shaper_list);
+
+const char **
+hb_shape_list_shapers (void);
+
+
+HB_END_DECLS
+
+#endif /* HB_SHAPE_H */
diff --git a/src/hb-shaper-impl-private.hh b/src/hb-shaper-impl-private.hh
new file mode 100644 (file)
index 0000000..7844081
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_SHAPER_IMPL_PRIVATE_HH
+#define HB_SHAPER_IMPL_PRIVATE_HH
+
+#include "hb-private.hh"
+
+#include "hb-shaper-private.hh"
+#include "hb-shape-plan-private.hh"
+#include "hb-font-private.hh"
+#include "hb-buffer-private.hh"
+
+
+#ifdef HB_SHAPER
+#define HB_SHAPER_DATA_GET(object) HB_SHAPER_DATA (HB_SHAPER, object)
+#endif
+
+
+#endif /* HB_SHAPER_IMPL_PRIVATE_HH */
diff --git a/src/hb-shaper-list.hh b/src/hb-shaper-list.hh
new file mode 100644 (file)
index 0000000..6c537d4
--- /dev/null
@@ -0,0 +1,55 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_SHAPER_LIST_HH
+#define HB_SHAPER_LIST_HH
+#endif /* HB_SHAPER_LIST_HH */ /* Dummy header guards */
+
+/* v--- Add new shapers in the right place here. */
+
+#ifdef HAVE_GRAPHITE2
+/* Only picks up fonts that have a "Silf" table. */
+HB_SHAPER_IMPLEMENT (graphite2)
+#endif
+#ifdef HAVE_CORETEXT
+/* Only picks up fonts that have a "mort" or "morx" table. */
+HB_SHAPER_IMPLEMENT (coretext_aat)
+#endif
+
+#ifdef HAVE_OT
+HB_SHAPER_IMPLEMENT (ot) /* <--- This is our main OpenType shaper. */
+#endif
+
+#ifdef HAVE_UNISCRIBE
+HB_SHAPER_IMPLEMENT (uniscribe)
+#endif
+#ifdef HAVE_CORETEXT
+HB_SHAPER_IMPLEMENT (coretext)
+#endif
+
+#ifdef HAVE_FALLBACK
+HB_SHAPER_IMPLEMENT (fallback) /* <--- This should be last. */
+#endif
diff --git a/src/hb-shaper-private.hh b/src/hb-shaper-private.hh
new file mode 100644 (file)
index 0000000..29c4493
--- /dev/null
@@ -0,0 +1,109 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_SHAPER_PRIVATE_HH
+#define HB_SHAPER_PRIVATE_HH
+
+#include "hb-private.hh"
+
+typedef hb_bool_t hb_shape_func_t (hb_shape_plan_t    *shape_plan,
+                                  hb_font_t          *font,
+                                  hb_buffer_t        *buffer,
+                                  const hb_feature_t *features,
+                                  unsigned int        num_features);
+
+#define HB_SHAPER_IMPLEMENT(name) \
+       extern "C" HB_INTERNAL hb_shape_func_t _hb_##name##_shape;
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+
+struct hb_shaper_pair_t {
+  char name[16];
+  hb_shape_func_t *func;
+};
+
+HB_INTERNAL const hb_shaper_pair_t *
+_hb_shapers_get (void);
+
+
+/* For embedding in face / font / ... */
+struct hb_shaper_data_t {
+#define HB_SHAPER_IMPLEMENT(shaper) void *shaper;
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+};
+
+#define HB_SHAPERS_COUNT (sizeof (hb_shaper_data_t) / sizeof (void *))
+
+/* Means: succeeded, but don't need to keep any data. */
+#define HB_SHAPER_DATA_SUCCEEDED ((void *) +1)
+
+/* Means: tried but failed to create. */
+#define HB_SHAPER_DATA_INVALID ((void *) -1)
+#define HB_SHAPER_DATA_IS_INVALID(data) ((void *) (data) == HB_SHAPER_DATA_INVALID)
+
+#define HB_SHAPER_DATA_TYPE(shaper, object)            struct hb_##shaper##_shaper_##object##_data_t
+#define HB_SHAPER_DATA_INSTANCE(shaper, object, instance)      (* (HB_SHAPER_DATA_TYPE(shaper, object) **) &(instance)->shaper_data.shaper)
+#define HB_SHAPER_DATA(shaper, object)                 HB_SHAPER_DATA_INSTANCE (shaper, object, object)
+#define HB_SHAPER_DATA_CREATE_FUNC(shaper, object)     _hb_##shaper##_shaper_##object##_data_create
+#define HB_SHAPER_DATA_DESTROY_FUNC(shaper, object)    _hb_##shaper##_shaper_##object##_data_destroy
+
+#define HB_SHAPER_DATA_PROTOTYPE(shaper, object) \
+       HB_SHAPER_DATA_TYPE (shaper, object); /* Type forward declaration. */ \
+       extern "C" HB_INTERNAL HB_SHAPER_DATA_TYPE (shaper, object) * \
+       HB_SHAPER_DATA_CREATE_FUNC (shaper, object) (hb_##object##_t *object HB_SHAPER_DATA_CREATE_FUNC_EXTRA_ARGS); \
+       extern "C" HB_INTERNAL void \
+       HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (HB_SHAPER_DATA_TYPE (shaper, object) *data)
+
+#define HB_SHAPER_DATA_DESTROY(shaper, object) \
+       if (object->shaper_data.shaper && \
+           object->shaper_data.shaper != HB_SHAPER_DATA_INVALID && \
+           object->shaper_data.shaper != HB_SHAPER_DATA_SUCCEEDED) \
+         HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (HB_SHAPER_DATA (shaper, object));
+
+#define HB_SHAPER_DATA_ENSURE_DECLARE(shaper, object) \
+static inline bool \
+hb_##shaper##_shaper_##object##_data_ensure (hb_##object##_t *object) \
+{\
+  retry: \
+  HB_SHAPER_DATA_TYPE (shaper, object) *data = (HB_SHAPER_DATA_TYPE (shaper, object) *) hb_atomic_ptr_get (&HB_SHAPER_DATA (shaper, object)); \
+  if (unlikely (!data)) { \
+    data = HB_SHAPER_DATA_CREATE_FUNC (shaper, object) (object); \
+    if (unlikely (!data)) \
+      data = (HB_SHAPER_DATA_TYPE (shaper, object) *) HB_SHAPER_DATA_INVALID; \
+    if (!hb_atomic_ptr_cmpexch (&HB_SHAPER_DATA (shaper, object), NULL, data)) { \
+      if (data && \
+         data != HB_SHAPER_DATA_INVALID && \
+         data != HB_SHAPER_DATA_SUCCEEDED) \
+       HB_SHAPER_DATA_DESTROY_FUNC (shaper, object) (data); \
+      goto retry; \
+    } \
+  } \
+  return data != NULL && !HB_SHAPER_DATA_IS_INVALID (data); \
+}
+
+
+#endif /* HB_SHAPER_PRIVATE_HH */
diff --git a/src/hb-shaper.cc b/src/hb-shaper.cc
new file mode 100644 (file)
index 0000000..6ae2601
--- /dev/null
@@ -0,0 +1,109 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-private.hh"
+#include "hb-shaper-private.hh"
+#include "hb-atomic-private.hh"
+
+
+static const hb_shaper_pair_t all_shapers[] = {
+#define HB_SHAPER_IMPLEMENT(name) {#name, _hb_##name##_shape},
+#include "hb-shaper-list.hh"
+#undef HB_SHAPER_IMPLEMENT
+};
+
+
+/* Thread-safe, lock-free, shapers */
+
+static const hb_shaper_pair_t *static_shapers;
+
+static inline
+void free_static_shapers (void)
+{
+  if (unlikely (static_shapers != all_shapers))
+    free ((void *) static_shapers);
+}
+
+const hb_shaper_pair_t *
+_hb_shapers_get (void)
+{
+retry:
+  hb_shaper_pair_t *shapers = (hb_shaper_pair_t *) hb_atomic_ptr_get (&static_shapers);
+
+  if (unlikely (!shapers))
+  {
+    char *env = getenv ("HB_SHAPER_LIST");
+    if (!env || !*env) {
+      (void) hb_atomic_ptr_cmpexch (&static_shapers, NULL, &all_shapers[0]);
+      return (const hb_shaper_pair_t *) all_shapers;
+    }
+
+    /* Not found; allocate one. */
+    shapers = (hb_shaper_pair_t *) malloc (sizeof (all_shapers));
+    if (unlikely (!shapers)) {
+      (void) hb_atomic_ptr_cmpexch (&static_shapers, NULL, &all_shapers[0]);
+      return (const hb_shaper_pair_t *) all_shapers;
+    }
+
+    memcpy (shapers, all_shapers, sizeof (all_shapers));
+
+     /* Reorder shaper list to prefer requested shapers. */
+    unsigned int i = 0;
+    char *end, *p = env;
+    for (;;) {
+      end = strchr (p, ',');
+      if (!end)
+       end = p + strlen (p);
+
+      for (unsigned int j = i; j < ARRAY_LENGTH (all_shapers); j++)
+       if (end - p == (int) strlen (shapers[j].name) &&
+           0 == strncmp (shapers[j].name, p, end - p))
+       {
+         /* Reorder this shaper to position i */
+        struct hb_shaper_pair_t t = shapers[j];
+        memmove (&shapers[i + 1], &shapers[i], sizeof (shapers[i]) * (j - i));
+        shapers[i] = t;
+        i++;
+       }
+
+      if (!*end)
+       break;
+      else
+       p = end + 1;
+    }
+
+    if (!hb_atomic_ptr_cmpexch (&static_shapers, NULL, shapers)) {
+      free (shapers);
+      goto retry;
+    }
+
+#ifdef HB_USE_ATEXIT
+    atexit (free_static_shapers); /* First person registers atexit() callback. */
+#endif
+  }
+
+  return shapers;
+}
diff --git a/src/hb-ucdn.cc b/src/hb-ucdn.cc
new file mode 100644 (file)
index 0000000..5b53821
--- /dev/null
@@ -0,0 +1,231 @@
+/*
+ * Copyright (C) 2012 Grigori Goronzy <greg@kinoho.net>
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#include "hb-private.hh"
+
+#include "hb-unicode-private.hh"
+
+#include "ucdn.h"
+
+static const hb_script_t ucdn_script_translate[] =
+{
+    HB_SCRIPT_COMMON,
+    HB_SCRIPT_LATIN,
+    HB_SCRIPT_GREEK,
+    HB_SCRIPT_CYRILLIC,
+    HB_SCRIPT_ARMENIAN,
+    HB_SCRIPT_HEBREW,
+    HB_SCRIPT_ARABIC,
+    HB_SCRIPT_SYRIAC,
+    HB_SCRIPT_THAANA,
+    HB_SCRIPT_DEVANAGARI,
+    HB_SCRIPT_BENGALI,
+    HB_SCRIPT_GURMUKHI,
+    HB_SCRIPT_GUJARATI,
+    HB_SCRIPT_ORIYA,
+    HB_SCRIPT_TAMIL,
+    HB_SCRIPT_TELUGU,
+    HB_SCRIPT_KANNADA,
+    HB_SCRIPT_MALAYALAM,
+    HB_SCRIPT_SINHALA,
+    HB_SCRIPT_THAI,
+    HB_SCRIPT_LAO,
+    HB_SCRIPT_TIBETAN,
+    HB_SCRIPT_MYANMAR,
+    HB_SCRIPT_GEORGIAN,
+    HB_SCRIPT_HANGUL,
+    HB_SCRIPT_ETHIOPIC,
+    HB_SCRIPT_CHEROKEE,
+    HB_SCRIPT_CANADIAN_SYLLABICS,
+    HB_SCRIPT_OGHAM,
+    HB_SCRIPT_RUNIC,
+    HB_SCRIPT_KHMER,
+    HB_SCRIPT_MONGOLIAN,
+    HB_SCRIPT_HIRAGANA,
+    HB_SCRIPT_KATAKANA,
+    HB_SCRIPT_BOPOMOFO,
+    HB_SCRIPT_HAN,
+    HB_SCRIPT_YI,
+    HB_SCRIPT_OLD_ITALIC,
+    HB_SCRIPT_GOTHIC,
+    HB_SCRIPT_DESERET,
+    HB_SCRIPT_INHERITED,
+    HB_SCRIPT_TAGALOG,
+    HB_SCRIPT_HANUNOO,
+    HB_SCRIPT_BUHID,
+    HB_SCRIPT_TAGBANWA,
+    HB_SCRIPT_LIMBU,
+    HB_SCRIPT_TAI_LE,
+    HB_SCRIPT_LINEAR_B,
+    HB_SCRIPT_UGARITIC,
+    HB_SCRIPT_SHAVIAN,
+    HB_SCRIPT_OSMANYA,
+    HB_SCRIPT_CYPRIOT,
+    HB_SCRIPT_BRAILLE,
+    HB_SCRIPT_BUGINESE,
+    HB_SCRIPT_COPTIC,
+    HB_SCRIPT_NEW_TAI_LUE,
+    HB_SCRIPT_GLAGOLITIC,
+    HB_SCRIPT_TIFINAGH,
+    HB_SCRIPT_SYLOTI_NAGRI,
+    HB_SCRIPT_OLD_PERSIAN,
+    HB_SCRIPT_KHAROSHTHI,
+    HB_SCRIPT_BALINESE,
+    HB_SCRIPT_CUNEIFORM,
+    HB_SCRIPT_PHOENICIAN,
+    HB_SCRIPT_PHAGS_PA,
+    HB_SCRIPT_NKO,
+    HB_SCRIPT_SUNDANESE,
+    HB_SCRIPT_LEPCHA,
+    HB_SCRIPT_OL_CHIKI,
+    HB_SCRIPT_VAI,
+    HB_SCRIPT_SAURASHTRA,
+    HB_SCRIPT_KAYAH_LI,
+    HB_SCRIPT_REJANG,
+    HB_SCRIPT_LYCIAN,
+    HB_SCRIPT_CARIAN,
+    HB_SCRIPT_LYDIAN,
+    HB_SCRIPT_CHAM,
+    HB_SCRIPT_TAI_THAM,
+    HB_SCRIPT_TAI_VIET,
+    HB_SCRIPT_AVESTAN,
+    HB_SCRIPT_EGYPTIAN_HIEROGLYPHS,
+    HB_SCRIPT_SAMARITAN,
+    HB_SCRIPT_LISU,
+    HB_SCRIPT_BAMUM,
+    HB_SCRIPT_JAVANESE,
+    HB_SCRIPT_MEETEI_MAYEK,
+    HB_SCRIPT_IMPERIAL_ARAMAIC,
+    HB_SCRIPT_OLD_SOUTH_ARABIAN,
+    HB_SCRIPT_INSCRIPTIONAL_PARTHIAN,
+    HB_SCRIPT_INSCRIPTIONAL_PAHLAVI,
+    HB_SCRIPT_OLD_TURKIC,
+    HB_SCRIPT_KAITHI,
+    HB_SCRIPT_BATAK,
+    HB_SCRIPT_BRAHMI,
+    HB_SCRIPT_MANDAIC,
+    HB_SCRIPT_CHAKMA,
+    HB_SCRIPT_MEROITIC_CURSIVE,
+    HB_SCRIPT_MEROITIC_HIEROGLYPHS,
+    HB_SCRIPT_MIAO,
+    HB_SCRIPT_SHARADA,
+    HB_SCRIPT_SORA_SOMPENG,
+    HB_SCRIPT_TAKRI,
+    HB_SCRIPT_UNKNOWN,
+    HB_SCRIPT_BASSA_VAH,
+    HB_SCRIPT_CAUCASIAN_ALBANIAN,
+    HB_SCRIPT_DUPLOYAN,
+    HB_SCRIPT_ELBASAN,
+    HB_SCRIPT_GRANTHA,
+    HB_SCRIPT_KHOJKI,
+    HB_SCRIPT_KHUDAWADI,
+    HB_SCRIPT_LINEAR_A,
+    HB_SCRIPT_MAHAJANI,
+    HB_SCRIPT_MANICHAEAN,
+    HB_SCRIPT_MENDE_KIKAKUI,
+    HB_SCRIPT_MODI,
+    HB_SCRIPT_MRO,
+    HB_SCRIPT_NABATAEAN,
+    HB_SCRIPT_OLD_NORTH_ARABIAN,
+    HB_SCRIPT_OLD_PERMIC,
+    HB_SCRIPT_PAHAWH_HMONG,
+    HB_SCRIPT_PALMYRENE,
+    HB_SCRIPT_PAU_CIN_HAU,
+    HB_SCRIPT_PSALTER_PAHLAVI,
+    HB_SCRIPT_SIDDHAM,
+    HB_SCRIPT_TIRHUTA,
+    HB_SCRIPT_WARANG_CITI,
+};
+
+static hb_unicode_combining_class_t
+hb_ucdn_combining_class(hb_unicode_funcs_t *ufuncs, hb_codepoint_t unicode,
+                       void *user_data HB_UNUSED)
+{
+    return (hb_unicode_combining_class_t) ucdn_get_combining_class(unicode);
+}
+
+static unsigned int
+hb_ucdn_eastasian_width(hb_unicode_funcs_t *ufuncs, hb_codepoint_t unicode,
+                       void *user_data HB_UNUSED)
+{
+    int w = ucdn_get_east_asian_width(unicode);
+    return (w == UCDN_EAST_ASIAN_F || w == UCDN_EAST_ASIAN_W) ? 2 : 1;
+}
+
+static hb_unicode_general_category_t
+hb_ucdn_general_category(hb_unicode_funcs_t *ufuncs, hb_codepoint_t unicode,
+                        void *user_data HB_UNUSED)
+{
+    return (hb_unicode_general_category_t)ucdn_get_general_category(unicode);
+}
+
+static hb_codepoint_t
+hb_ucdn_mirroring(hb_unicode_funcs_t *ufuncs, hb_codepoint_t unicode,
+                 void *user_data HB_UNUSED)
+{
+    return ucdn_mirror(unicode);
+}
+
+static hb_script_t
+hb_ucdn_script(hb_unicode_funcs_t *ufuncs, hb_codepoint_t unicode,
+              void *user_data HB_UNUSED)
+{
+    return ucdn_script_translate[ucdn_get_script(unicode)];
+}
+
+static hb_bool_t
+hb_ucdn_compose(hb_unicode_funcs_t *ufuncs,
+               hb_codepoint_t a, hb_codepoint_t b, hb_codepoint_t *ab,
+               void *user_data HB_UNUSED)
+{
+    return ucdn_compose(ab, a, b);
+}
+
+static hb_bool_t
+hb_ucdn_decompose(hb_unicode_funcs_t *ufuncs,
+                 hb_codepoint_t ab, hb_codepoint_t *a, hb_codepoint_t *b,
+                 void *user_data HB_UNUSED)
+{
+    return ucdn_decompose(ab, a, b);
+}
+
+static unsigned int
+hb_ucdn_decompose_compatibility(hb_unicode_funcs_t *ufuncs,
+                               hb_codepoint_t u, hb_codepoint_t *decomposed,
+                               void *user_data HB_UNUSED)
+{
+    return ucdn_compat_decompose(u, decomposed);
+}
+
+extern "C" HB_INTERNAL
+hb_unicode_funcs_t *
+hb_ucdn_get_unicode_funcs (void)
+{
+  static const hb_unicode_funcs_t _hb_ucdn_unicode_funcs = {
+    HB_OBJECT_HEADER_STATIC,
+
+    NULL, /* parent */
+    true, /* immutable */
+    {
+#define HB_UNICODE_FUNC_IMPLEMENT(name) hb_ucdn_##name,
+      HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_UNICODE_FUNC_IMPLEMENT
+    }
+  };
+
+  return const_cast<hb_unicode_funcs_t *> (&_hb_ucdn_unicode_funcs);
+}
+
diff --git a/src/hb-ucdn/COPYING b/src/hb-ucdn/COPYING
new file mode 100644 (file)
index 0000000..be5205c
--- /dev/null
@@ -0,0 +1,13 @@
+The contents of this directory are licensed under the following terms:
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/src/hb-ucdn/Makefile.am b/src/hb-ucdn/Makefile.am
new file mode 100644 (file)
index 0000000..0670b5c
--- /dev/null
@@ -0,0 +1,18 @@
+## Process this file with automake to produce Makefile.in
+
+noinst_LTLIBRARIES = libhb-ucdn.la
+
+
+libhb_ucdn_la_SOURCES = \
+       ucdn.h \
+       ucdn.c \
+       unicodedata_db.h
+libhb_ucdn_la_CPPFLAGS = \
+       -I$(top_srcdir) \
+       -I$(top_srcdir)/src \
+       -I$(top_builddir)/src
+libhb_ucdn_la_LIBADD =
+
+EXTRA_DIST = README COPYING
+
+-include $(top_srcdir)/git.mk
diff --git a/src/hb-ucdn/Makefile.in b/src/hb-ucdn/Makefile.in
new file mode 100644 (file)
index 0000000..95f8ac6
--- /dev/null
@@ -0,0 +1,643 @@
+# Makefile.in generated by automake 1.14 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \  ]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs  ]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/hb-ucdn
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
+       $(top_srcdir)/depcomp COPYING README
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ax_pthread.m4 \
+       $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
+       $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+       $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+       $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+       $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+LTLIBRARIES = $(noinst_LTLIBRARIES)
+libhb_ucdn_la_DEPENDENCIES =
+am_libhb_ucdn_la_OBJECTS = libhb_ucdn_la-ucdn.lo
+libhb_ucdn_la_OBJECTS = $(am_libhb_ucdn_la_OBJECTS)
+AM_V_lt = $(am__v_lt_@AM_V@)
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+am__v_lt_0 = --silent
+am__v_lt_1 = 
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+       $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+       $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+       $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_@AM_V@)
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
+am__v_CC_0 = @echo "  CC      " $@;
+am__v_CC_1 = 
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_@AM_V@)
+am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
+am__v_CCLD_0 = @echo "  CCLD    " $@;
+am__v_CCLD_1 = 
+SOURCES = $(libhb_ucdn_la_SOURCES)
+DIST_SOURCES = $(libhb_ucdn_la_SOURCES)
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates.  Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+  BEGIN { nonempty = 0; } \
+  { items[$$0] = 1; nonempty = 1; } \
+  END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique.  This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+  list='$(am__tagged_files)'; \
+  unique=`for i in $$list; do \
+    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+  done | $(am__uniquify_input)`
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_FT_CFLAGS = @CAIRO_FT_CFLAGS@
+CAIRO_FT_LIBS = @CAIRO_FT_LIBS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CORETEXT_CFLAGS = @CORETEXT_CFLAGS@
+CORETEXT_LIBS = @CORETEXT_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
+FREETYPE_LIBS = @FREETYPE_LIBS@
+GIT = @GIT@
+GLIB_CFLAGS = @GLIB_CFLAGS@
+GLIB_LIBS = @GLIB_LIBS@
+GLIB_MKENUMS = @GLIB_MKENUMS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GRAPHITE2_CFLAGS = @GRAPHITE2_CFLAGS@
+GRAPHITE2_LIBS = @GRAPHITE2_LIBS@
+GREP = @GREP@
+GTKDOC_CHECK = @GTKDOC_CHECK@
+GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
+GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
+GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
+GTKDOC_MKPDF = @GTKDOC_MKPDF@
+GTKDOC_REBASE = @GTKDOC_REBASE@
+HB_LIBTOOL_VERSION_INFO = @HB_LIBTOOL_VERSION_INFO@
+HB_VERSION = @HB_VERSION@
+HB_VERSION_MAJOR = @HB_VERSION_MAJOR@
+HB_VERSION_MICRO = @HB_VERSION_MICRO@
+HB_VERSION_MINOR = @HB_VERSION_MINOR@
+HTML_DIR = @HTML_DIR@
+ICU_CFLAGS = @ICU_CFLAGS@
+ICU_CONFIG = @ICU_CONFIG@
+ICU_LIBS = @ICU_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@
+INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@
+INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@
+INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@
+INTROSPECTION_LIBS = @INTROSPECTION_LIBS@
+INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@
+INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@
+INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PTHREAD_CC = @PTHREAD_CC@
+PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
+PTHREAD_LIBS = @PTHREAD_LIBS@
+RAGEL = @RAGEL@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UNISCRIBE_CFLAGS = @UNISCRIBE_CFLAGS@
+UNISCRIBE_LIBS = @UNISCRIBE_LIBS@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+ax_pthread_config = @ax_pthread_config@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+noinst_LTLIBRARIES = libhb-ucdn.la
+libhb_ucdn_la_SOURCES = \
+       ucdn.h \
+       ucdn.c \
+       unicodedata_db.h
+
+libhb_ucdn_la_CPPFLAGS = \
+       -I$(top_srcdir) \
+       -I$(top_srcdir)/src \
+       -I$(top_builddir)/src
+
+libhb_ucdn_la_LIBADD = 
+EXTRA_DIST = README COPYING
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+       @for dep in $?; do \
+         case '$(am__configure_deps)' in \
+           *$$dep*) \
+             ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+               && { if test -f $@; then exit 0; else break; fi; }; \
+             exit 1;; \
+         esac; \
+       done; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits src/hb-ucdn/Makefile'; \
+       $(am__cd) $(top_srcdir) && \
+         $(AUTOMAKE) --gnits src/hb-ucdn/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+       @case '$?' in \
+         *config.status*) \
+           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+         *) \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+       esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+clean-noinstLTLIBRARIES:
+       -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
+       @list='$(noinst_LTLIBRARIES)'; \
+       locs=`for p in $$list; do echo $$p; done | \
+             sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
+             sort -u`; \
+       test -z "$$locs" || { \
+         echo rm -f $${locs}; \
+         rm -f $${locs}; \
+       }
+
+libhb-ucdn.la: $(libhb_ucdn_la_OBJECTS) $(libhb_ucdn_la_DEPENDENCIES) $(EXTRA_libhb_ucdn_la_DEPENDENCIES) 
+       $(AM_V_CCLD)$(LINK)  $(libhb_ucdn_la_OBJECTS) $(libhb_ucdn_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+       -rm -f *.$(OBJEXT)
+
+distclean-compile:
+       -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libhb_ucdn_la-ucdn.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
+
+.c.obj:
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
+
+libhb_ucdn_la-ucdn.lo: ucdn.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libhb_ucdn_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT libhb_ucdn_la-ucdn.lo -MD -MP -MF $(DEPDIR)/libhb_ucdn_la-ucdn.Tpo -c -o libhb_ucdn_la-ucdn.lo `test -f 'ucdn.c' || echo '$(srcdir)/'`ucdn.c
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/libhb_ucdn_la-ucdn.Tpo $(DEPDIR)/libhb_ucdn_la-ucdn.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='ucdn.c' object='libhb_ucdn_la-ucdn.lo' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libhb_ucdn_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o libhb_ucdn_la-ucdn.lo `test -f 'ucdn.c' || echo '$(srcdir)/'`ucdn.c
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+
+ID: $(am__tagged_files)
+       $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-am
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       set x; \
+       here=`pwd`; \
+       $(am__define_uniq_tagged_files); \
+       shift; \
+       if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+         test -n "$$unique" || unique=$$empty_fix; \
+         if test $$# -gt 0; then \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             "$$@" $$unique; \
+         else \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             $$unique; \
+         fi; \
+       fi
+ctags: ctags-am
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       $(am__define_uniq_tagged_files); \
+       test -z "$(CTAGS_ARGS)$$unique" \
+         || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+            $$unique
+
+GTAGS:
+       here=`$(am__cd) $(top_builddir) && pwd` \
+         && $(am__cd) $(top_srcdir) \
+         && gtags -i $(GTAGS_ARGS) "$$here"
+cscopelist: cscopelist-am
+
+cscopelist-am: $(am__tagged_files)
+       list='$(am__tagged_files)'; \
+       case "$(srcdir)" in \
+         [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+         *) sdir=$(subdir)/$(srcdir) ;; \
+       esac; \
+       for i in $$list; do \
+         if test -f "$$i"; then \
+           echo "$(subdir)/$$i"; \
+         else \
+           echo "$$sdir/$$i"; \
+         fi; \
+       done >> $(top_builddir)/cscope.files
+
+distclean-tags:
+       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+       @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       list='$(DISTFILES)'; \
+         dist_files=`for file in $$list; do echo $$file; done | \
+         sed -e "s|^$$srcdirstrip/||;t" \
+             -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+       case $$dist_files in \
+         */*) $(MKDIR_P) `echo "$$dist_files" | \
+                          sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+                          sort -u` ;; \
+       esac; \
+       for file in $$dist_files; do \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         if test -d $$d/$$file; then \
+           dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+           if test -d "$(distdir)/$$file"; then \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+         else \
+           test -f "$(distdir)/$$file" \
+           || cp -p $$d/$$file "$(distdir)/$$file" \
+           || exit 1; \
+         fi; \
+       done
+check-am: all-am
+check: check-am
+all-am: Makefile $(LTLIBRARIES)
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+       if test -z '$(STRIP)'; then \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+             install; \
+       else \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+           "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+       fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+       -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
+       mostlyclean-am
+
+distclean: distclean-am
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+       distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+       mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
+       clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
+       ctags-am distclean distclean-compile distclean-generic \
+       distclean-libtool distclean-tags distdir dvi dvi-am html \
+       html-am info info-am install install-am install-data \
+       install-data-am install-dvi install-dvi-am install-exec \
+       install-exec-am install-html install-html-am install-info \
+       install-info-am install-man install-pdf install-pdf-am \
+       install-ps install-ps-am install-strip installcheck \
+       installcheck-am installdirs maintainer-clean \
+       maintainer-clean-generic mostlyclean mostlyclean-compile \
+       mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+       tags tags-am uninstall uninstall-am
+
+
+-include $(top_srcdir)/git.mk
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/hb-ucdn/README b/src/hb-ucdn/README
new file mode 100644 (file)
index 0000000..2f3c552
--- /dev/null
@@ -0,0 +1,41 @@
+Contents of this directory are derived from UCDN:
+
+  https://github.com/grigorig/ucdn
+  https://github.com/behdad/ucdn
+
+The original README follows:
+
+
+UCDN - Unicode Database and Normalization
+
+UCDN is a Unicode support library. Currently, it provides access
+to basic character properties contained in the Unicode Character
+Database and low-level normalization functions (pairwise canonical
+composition/decomposition and compatibility decomposition). More
+functionality might be provided in the future, such as additional
+properties, string normalization and encoding conversion.
+
+UCDN uses standard C89 with no particular dependencies or requirements
+except for stdint.h, and can be easily integrated into existing
+projects. However, it can also be used as a standalone library,
+and a CMake build script is provided for this. The first motivation
+behind UCDN development was to provide a standalone set of Unicode
+functions for the HarfBuzz OpenType shaping library. For this purpose,
+a HarfBuzz-specific wrapper is shipped along with it (hb-ucdn.h).
+
+UCDN is published under the ISC license, please see the license header
+in the C source code for more information. The makeunicodata.py script
+required for parsing Unicode database files is licensed under the
+PSF license, please see PYTHON-LICENSE for more information.
+
+UCDN was written by Grigori Goronzy <greg@kinoho.net>.
+
+How to Use
+
+Include ucdn.c, ucdn.h and unicodedata_db.h in your project. Now,
+just use the functions as documented in ucdn.h.
+
+In some cases, it might be necessary to regenerate the Unicode
+database file. The script makeunicodedata.py (Python 3.x required)
+fetches the appropriate files and dumps the compressed database into
+unicodedata_db.h.
diff --git a/src/hb-ucdn/ucdn.c b/src/hb-ucdn/ucdn.c
new file mode 100644 (file)
index 0000000..d1a4195
--- /dev/null
@@ -0,0 +1,281 @@
+/*
+ * Copyright (C) 2012 Grigori Goronzy <greg@kinoho.net>
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+#include "ucdn.h"
+
+typedef struct {
+    unsigned char category;
+    unsigned char combining;
+    unsigned char bidi_class;
+    unsigned char mirrored;
+    unsigned char east_asian_width;
+    unsigned char normalization_check;
+    unsigned char script;
+} UCDRecord;
+
+typedef struct {
+    unsigned short from, to;
+} MirrorPair;
+
+typedef struct {
+    unsigned int start;
+    short count, index;
+} Reindex;
+
+#include "unicodedata_db.h"
+
+/* constants required for Hangul (de)composition */
+#define SBASE 0xAC00
+#define LBASE 0x1100
+#define VBASE 0x1161
+#define TBASE 0x11A7
+#define SCOUNT 11172
+#define LCOUNT 19
+#define VCOUNT 21
+#define TCOUNT 28
+#define NCOUNT (VCOUNT * TCOUNT)
+
+static const UCDRecord *get_ucd_record(uint32_t code)
+{
+    int index, offset;
+
+    if (code >= 0x110000)
+        index = 0;
+    else {
+        index  = index0[code >> (SHIFT1+SHIFT2)] << SHIFT1;
+        offset = (code >> SHIFT2) & ((1<<SHIFT1) - 1);
+        index  = index1[index + offset] << SHIFT2;
+        offset = code & ((1<<SHIFT2) - 1);
+        index  = index2[index + offset];
+    }
+
+    return &ucd_records[index];
+}
+
+static const unsigned short *get_decomp_record(uint32_t code)
+{
+    int index, offset;
+
+    if (code >= 0x110000)
+        index = 0;
+    else {
+        index  = decomp_index0[code >> (DECOMP_SHIFT1+DECOMP_SHIFT2)]
+            << DECOMP_SHIFT1;
+        offset = (code >> DECOMP_SHIFT2) & ((1<<DECOMP_SHIFT1) - 1);
+        index  = decomp_index1[index + offset] << DECOMP_SHIFT2;
+        offset = code & ((1<<DECOMP_SHIFT2) - 1);
+        index  = decomp_index2[index + offset];
+    }
+
+    return &decomp_data[index];
+}
+
+static int get_comp_index(uint32_t code, const Reindex *idx)
+{
+    int i;
+
+    for (i = 0; idx[i].start; i++) {
+        const Reindex *cur = &idx[i];
+        if (code < cur->start)
+            return -1;
+        if (code <= cur->start + cur->count) {
+            return cur->index + (code - cur->start);
+        }
+    }
+
+    return -1;
+}
+
+static int compare_mp(const void *a, const void *b)
+{
+    MirrorPair *mpa = (MirrorPair *)a;
+    MirrorPair *mpb = (MirrorPair *)b;
+    return mpa->from - mpb->from;
+}
+
+static int hangul_pair_decompose(uint32_t code, uint32_t *a, uint32_t *b)
+{
+    int si = code - SBASE;
+
+    if (si < 0 || si >= SCOUNT)
+        return 0;
+
+    if (si % TCOUNT) {
+        /* LV,T */
+        *a = SBASE + (si / TCOUNT) * TCOUNT;
+        *b = TBASE + (si % TCOUNT);
+        return 3;
+    } else {
+        /* L,V */
+        *a = LBASE + (si / NCOUNT);
+        *b = VBASE + (si % NCOUNT) / TCOUNT;
+        return 2;
+    }
+}
+
+static int hangul_pair_compose(uint32_t *code, uint32_t a, uint32_t b)
+{
+    if (b < VBASE || b >= (TBASE + TCOUNT))
+        return 0;
+
+    if ((a < LBASE || a >= (LBASE + LCOUNT))
+            && (a < SBASE || a >= (SBASE + SCOUNT)))
+        return 0;
+
+    if (a >= SBASE) {
+        /* LV,T */
+        *code = a + (b - TBASE);
+        return 3;
+    } else {
+        /* L,V */
+        int li = a - LBASE;
+        int vi = b - VBASE;
+        *code = SBASE + li * NCOUNT + vi * TCOUNT;
+        return 2;
+    }
+}
+
+static uint32_t decode_utf16(const unsigned short **code_ptr)
+{
+    const unsigned short *code = *code_ptr;
+
+    if ((code[0] & 0xd800) != 0xd800) {
+        *code_ptr += 1;
+        return (uint32_t)code[0];
+    } else {
+        *code_ptr += 2;
+        return 0x10000 + ((uint32_t)code[1] - 0xdc00) +
+            (((uint32_t)code[0] - 0xd800) << 10);
+    }
+}
+
+const char *ucdn_get_unicode_version(void)
+{
+    return UNIDATA_VERSION;
+}
+
+int ucdn_get_combining_class(uint32_t code)
+{
+    return get_ucd_record(code)->combining;
+}
+
+int ucdn_get_east_asian_width(uint32_t code)
+{
+    return get_ucd_record(code)->east_asian_width;
+}
+
+int ucdn_get_general_category(uint32_t code)
+{
+    return get_ucd_record(code)->category;
+}
+
+int ucdn_get_bidi_class(uint32_t code)
+{
+    return get_ucd_record(code)->bidi_class;
+}
+
+int ucdn_get_mirrored(uint32_t code)
+{
+    return get_ucd_record(code)->mirrored;
+}
+
+int ucdn_get_script(uint32_t code)
+{
+    return get_ucd_record(code)->script;
+}
+
+uint32_t ucdn_mirror(uint32_t code)
+{
+    MirrorPair mp = {0};
+    MirrorPair *res;
+
+    if (get_ucd_record(code)->mirrored == 0)
+        return code;
+
+    mp.from = code;
+    res = bsearch(&mp, mirror_pairs, BIDI_MIRROR_LEN, sizeof(MirrorPair),
+            compare_mp);
+
+    if (res == NULL)
+        return code;
+    else
+        return res->to;
+}
+
+int ucdn_decompose(uint32_t code, uint32_t *a, uint32_t *b)
+{
+    const unsigned short *rec;
+    int len;
+
+    if (hangul_pair_decompose(code, a, b))
+        return 1;
+
+    rec = get_decomp_record(code);
+    len = rec[0] >> 8;
+
+    if ((rec[0] & 0xff) != 0 || len == 0)
+        return 0;
+
+    rec++;
+    *a = decode_utf16(&rec);
+    if (len > 1)
+        *b = decode_utf16(&rec);
+    else
+        *b = 0;
+
+    return 1;
+}
+
+int ucdn_compose(uint32_t *code, uint32_t a, uint32_t b)
+{
+    int l, r, index, indexi, offset;
+
+    if (hangul_pair_compose(code, a, b))
+        return 1;
+
+    l = get_comp_index(a, nfc_first);
+    r = get_comp_index(b, nfc_last);
+
+    if (l < 0 || r < 0)
+        return 0;
+
+    indexi = l * TOTAL_LAST + r;
+    index  = comp_index0[indexi >> (COMP_SHIFT1+COMP_SHIFT2)] << COMP_SHIFT1;
+    offset = (indexi >> COMP_SHIFT2) & ((1<<COMP_SHIFT1) - 1);
+    index  = comp_index1[index + offset] << COMP_SHIFT2;
+    offset = indexi & ((1<<COMP_SHIFT2) - 1);
+    *code  = comp_data[index + offset];
+
+    return *code != 0;
+}
+
+int ucdn_compat_decompose(uint32_t code, uint32_t *decomposed)
+{
+    int i, len;
+    const unsigned short *rec = get_decomp_record(code);
+    len = rec[0] >> 8;
+
+    if (len == 0)
+        return 0;
+
+    rec++;
+    for (i = 0; i < len; i++)
+        decomposed[i] = decode_utf16(&rec);
+
+    return len;
+}
diff --git a/src/hb-ucdn/ucdn.h b/src/hb-ucdn/ucdn.h
new file mode 100644 (file)
index 0000000..ec8085b
--- /dev/null
@@ -0,0 +1,358 @@
+/*
+ * Copyright (C) 2012 Grigori Goronzy <greg@kinoho.net>
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef UCDN_H
+#define UCDN_H
+
+#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__)
+# define HB_BEGIN_VISIBILITY _Pragma ("GCC visibility push(hidden)")
+# define HB_END_VISIBILITY _Pragma ("GCC visibility pop")
+#else
+# define HB_BEGIN_VISIBILITY
+# define HB_END_VISIBILITY
+#endif
+#ifdef __cplusplus
+# define HB_BEGIN_HEADER  extern "C" { HB_BEGIN_VISIBILITY
+# define HB_END_HEADER  HB_END_VISIBILITY }
+#else
+# define HB_BEGIN_HEADER  HB_BEGIN_VISIBILITY
+# define HB_END_HEADER  HB_END_VISIBILITY
+#endif
+
+HB_BEGIN_HEADER
+
+#if !defined (HB_DONT_DEFINE_STDINT)
+
+#if defined (_SVR4) || defined (SVR4) || defined (__OpenBSD__) || \
+    defined (_sgi) || defined (__sun) || defined (sun) || \
+    defined (__digital__) || defined (__HP_cc)
+#  include <inttypes.h>
+#elif defined (_AIX)
+#  include <sys/inttypes.h>
+/* VS 2010 (_MSC_VER 1600) has stdint.h */
+#elif defined (_MSC_VER) && _MSC_VER < 1600
+typedef __int8 int8_t;
+typedef unsigned __int8 uint8_t;
+typedef __int16 int16_t;
+typedef unsigned __int16 uint16_t;
+typedef __int32 int32_t;
+typedef unsigned __int32 uint32_t;
+typedef __int64 int64_t;
+typedef unsigned __int64 uint64_t;
+#else
+#  include <stdint.h>
+#endif
+
+#endif
+
+#define UCDN_EAST_ASIAN_F 0
+#define UCDN_EAST_ASIAN_H 1
+#define UCDN_EAST_ASIAN_W 2
+#define UCDN_EAST_ASIAN_NA 3
+#define UCDN_EAST_ASIAN_A 4
+#define UCDN_EAST_ASIAN_N 5
+
+#define UCDN_SCRIPT_COMMON 0
+#define UCDN_SCRIPT_LATIN 1
+#define UCDN_SCRIPT_GREEK 2
+#define UCDN_SCRIPT_CYRILLIC 3
+#define UCDN_SCRIPT_ARMENIAN 4
+#define UCDN_SCRIPT_HEBREW 5
+#define UCDN_SCRIPT_ARABIC 6
+#define UCDN_SCRIPT_SYRIAC 7
+#define UCDN_SCRIPT_THAANA 8
+#define UCDN_SCRIPT_DEVANAGARI 9
+#define UCDN_SCRIPT_BENGALI 10
+#define UCDN_SCRIPT_GURMUKHI 11
+#define UCDN_SCRIPT_GUJARATI 12
+#define UCDN_SCRIPT_ORIYA 13
+#define UCDN_SCRIPT_TAMIL 14
+#define UCDN_SCRIPT_TELUGU 15
+#define UCDN_SCRIPT_KANNADA 16
+#define UCDN_SCRIPT_MALAYALAM 17
+#define UCDN_SCRIPT_SINHALA 18
+#define UCDN_SCRIPT_THAI 19
+#define UCDN_SCRIPT_LAO 20
+#define UCDN_SCRIPT_TIBETAN 21
+#define UCDN_SCRIPT_MYANMAR 22
+#define UCDN_SCRIPT_GEORGIAN 23
+#define UCDN_SCRIPT_HANGUL 24
+#define UCDN_SCRIPT_ETHIOPIC 25
+#define UCDN_SCRIPT_CHEROKEE 26
+#define UCDN_SCRIPT_CANADIAN_ABORIGINAL 27
+#define UCDN_SCRIPT_OGHAM 28
+#define UCDN_SCRIPT_RUNIC 29
+#define UCDN_SCRIPT_KHMER 30
+#define UCDN_SCRIPT_MONGOLIAN 31
+#define UCDN_SCRIPT_HIRAGANA 32
+#define UCDN_SCRIPT_KATAKANA 33
+#define UCDN_SCRIPT_BOPOMOFO 34
+#define UCDN_SCRIPT_HAN 35
+#define UCDN_SCRIPT_YI 36
+#define UCDN_SCRIPT_OLD_ITALIC 37
+#define UCDN_SCRIPT_GOTHIC 38
+#define UCDN_SCRIPT_DESERET 39
+#define UCDN_SCRIPT_INHERITED 40
+#define UCDN_SCRIPT_TAGALOG 41
+#define UCDN_SCRIPT_HANUNOO 42
+#define UCDN_SCRIPT_BUHID 43
+#define UCDN_SCRIPT_TAGBANWA 44
+#define UCDN_SCRIPT_LIMBU 45
+#define UCDN_SCRIPT_TAI_LE 46
+#define UCDN_SCRIPT_LINEAR_B 47
+#define UCDN_SCRIPT_UGARITIC 48
+#define UCDN_SCRIPT_SHAVIAN 49
+#define UCDN_SCRIPT_OSMANYA 50
+#define UCDN_SCRIPT_CYPRIOT 51
+#define UCDN_SCRIPT_BRAILLE 52
+#define UCDN_SCRIPT_BUGINESE 53
+#define UCDN_SCRIPT_COPTIC 54
+#define UCDN_SCRIPT_NEW_TAI_LUE 55
+#define UCDN_SCRIPT_GLAGOLITIC 56
+#define UCDN_SCRIPT_TIFINAGH 57
+#define UCDN_SCRIPT_SYLOTI_NAGRI 58
+#define UCDN_SCRIPT_OLD_PERSIAN 59
+#define UCDN_SCRIPT_KHAROSHTHI 60
+#define UCDN_SCRIPT_BALINESE 61
+#define UCDN_SCRIPT_CUNEIFORM 62
+#define UCDN_SCRIPT_PHOENICIAN 63
+#define UCDN_SCRIPT_PHAGS_PA 64
+#define UCDN_SCRIPT_NKO 65
+#define UCDN_SCRIPT_SUNDANESE 66
+#define UCDN_SCRIPT_LEPCHA 67
+#define UCDN_SCRIPT_OL_CHIKI 68
+#define UCDN_SCRIPT_VAI 69
+#define UCDN_SCRIPT_SAURASHTRA 70
+#define UCDN_SCRIPT_KAYAH_LI 71
+#define UCDN_SCRIPT_REJANG 72
+#define UCDN_SCRIPT_LYCIAN 73
+#define UCDN_SCRIPT_CARIAN 74
+#define UCDN_SCRIPT_LYDIAN 75
+#define UCDN_SCRIPT_CHAM 76
+#define UCDN_SCRIPT_TAI_THAM 77
+#define UCDN_SCRIPT_TAI_VIET 78
+#define UCDN_SCRIPT_AVESTAN 79
+#define UCDN_SCRIPT_EGYPTIAN_HIEROGLYPHS 80
+#define UCDN_SCRIPT_SAMARITAN 81
+#define UCDN_SCRIPT_LISU 82
+#define UCDN_SCRIPT_BAMUM 83
+#define UCDN_SCRIPT_JAVANESE 84
+#define UCDN_SCRIPT_MEETEI_MAYEK 85
+#define UCDN_SCRIPT_IMPERIAL_ARAMAIC 86
+#define UCDN_SCRIPT_OLD_SOUTH_ARABIAN 87
+#define UCDN_SCRIPT_INSCRIPTIONAL_PARTHIAN 88
+#define UCDN_SCRIPT_INSCRIPTIONAL_PAHLAVI 89
+#define UCDN_SCRIPT_OLD_TURKIC 90
+#define UCDN_SCRIPT_KAITHI 91
+#define UCDN_SCRIPT_BATAK 92
+#define UCDN_SCRIPT_BRAHMI 93
+#define UCDN_SCRIPT_MANDAIC 94
+#define UCDN_SCRIPT_CHAKMA 95
+#define UCDN_SCRIPT_MEROITIC_CURSIVE 96
+#define UCDN_SCRIPT_MEROITIC_HIEROGLYPHS 97
+#define UCDN_SCRIPT_MIAO 98
+#define UCDN_SCRIPT_SHARADA 99
+#define UCDN_SCRIPT_SORA_SOMPENG 100
+#define UCDN_SCRIPT_TAKRI 101
+#define UCDN_SCRIPT_UNKNOWN 102
+#define UCDN_SCRIPT_BASSA_VAH 103
+#define UCDN_SCRIPT_CAUCASIAN_ALBANIAN 104
+#define UCDN_SCRIPT_DUPLOYAN 105
+#define UCDN_SCRIPT_ELBASAN 106
+#define UCDN_SCRIPT_GRANTHA 107
+#define UCDN_SCRIPT_KHOJKI 108
+#define UCDN_SCRIPT_KHUDAWADI 109
+#define UCDN_SCRIPT_LINEAR_A 110
+#define UCDN_SCRIPT_MAHAJANI 111
+#define UCDN_SCRIPT_MANICHAEAN 112
+#define UCDN_SCRIPT_MENDE_KIKAKUI 113
+#define UCDN_SCRIPT_MODI 114
+#define UCDN_SCRIPT_MRO 115
+#define UCDN_SCRIPT_NABATAEAN 116
+#define UCDN_SCRIPT_OLD_NORTH_ARABIAN 117
+#define UCDN_SCRIPT_OLD_PERMIC 118
+#define UCDN_SCRIPT_PAHAWH_HMONG 119
+#define UCDN_SCRIPT_PALMYRENE 120
+#define UCDN_SCRIPT_PAU_CIN_HAU 121
+#define UCDN_SCRIPT_PSALTER_PAHLAVI 122
+#define UCDN_SCRIPT_SIDDHAM 123
+#define UCDN_SCRIPT_TIRHUTA 124
+#define UCDN_SCRIPT_WARANG_CITI 125
+
+#define UCDN_GENERAL_CATEGORY_CC 0
+#define UCDN_GENERAL_CATEGORY_CF 1
+#define UCDN_GENERAL_CATEGORY_CN 2
+#define UCDN_GENERAL_CATEGORY_CO 3
+#define UCDN_GENERAL_CATEGORY_CS 4
+#define UCDN_GENERAL_CATEGORY_LL 5
+#define UCDN_GENERAL_CATEGORY_LM 6
+#define UCDN_GENERAL_CATEGORY_LO 7
+#define UCDN_GENERAL_CATEGORY_LT 8
+#define UCDN_GENERAL_CATEGORY_LU 9
+#define UCDN_GENERAL_CATEGORY_MC 10
+#define UCDN_GENERAL_CATEGORY_ME 11
+#define UCDN_GENERAL_CATEGORY_MN 12
+#define UCDN_GENERAL_CATEGORY_ND 13
+#define UCDN_GENERAL_CATEGORY_NL 14
+#define UCDN_GENERAL_CATEGORY_NO 15
+#define UCDN_GENERAL_CATEGORY_PC 16
+#define UCDN_GENERAL_CATEGORY_PD 17
+#define UCDN_GENERAL_CATEGORY_PE 18
+#define UCDN_GENERAL_CATEGORY_PF 19
+#define UCDN_GENERAL_CATEGORY_PI 20
+#define UCDN_GENERAL_CATEGORY_PO 21
+#define UCDN_GENERAL_CATEGORY_PS 22
+#define UCDN_GENERAL_CATEGORY_SC 23
+#define UCDN_GENERAL_CATEGORY_SK 24
+#define UCDN_GENERAL_CATEGORY_SM 25
+#define UCDN_GENERAL_CATEGORY_SO 26
+#define UCDN_GENERAL_CATEGORY_ZL 27
+#define UCDN_GENERAL_CATEGORY_ZP 28
+#define UCDN_GENERAL_CATEGORY_ZS 29
+
+#define UCDN_BIDI_CLASS_L 0
+#define UCDN_BIDI_CLASS_LRE 1
+#define UCDN_BIDI_CLASS_LRO 2
+#define UCDN_BIDI_CLASS_R 3
+#define UCDN_BIDI_CLASS_AL 4
+#define UCDN_BIDI_CLASS_RLE 5
+#define UCDN_BIDI_CLASS_RLO 6
+#define UCDN_BIDI_CLASS_PDF 7
+#define UCDN_BIDI_CLASS_EN 8
+#define UCDN_BIDI_CLASS_ES 9
+#define UCDN_BIDI_CLASS_ET 10
+#define UCDN_BIDI_CLASS_AN 11
+#define UCDN_BIDI_CLASS_CS 12
+#define UCDN_BIDI_CLASS_NSM 13
+#define UCDN_BIDI_CLASS_BN 14
+#define UCDN_BIDI_CLASS_B 15
+#define UCDN_BIDI_CLASS_S 16
+#define UCDN_BIDI_CLASS_WS 17
+#define UCDN_BIDI_CLASS_ON 18
+#define UCDN_BIDI_CLASS_LRI 19
+#define UCDN_BIDI_CLASS_RLI 20
+#define UCDN_BIDI_CLASS_FSI 21
+#define UCDN_BIDI_CLASS_PDI 22
+
+/**
+ * Return version of the Unicode database.
+ *
+ * @return Unicode database version
+ */
+const char *ucdn_get_unicode_version(void);
+
+/**
+ * Get combining class of a codepoint.
+ *
+ * @param code Unicode codepoint
+ * @return combining class value, as defined in UAX#44
+ */
+int ucdn_get_combining_class(uint32_t code);
+
+/**
+ * Get east-asian width of a codepoint.
+ *
+ * @param code Unicode codepoint
+ * @return value according to UCDN_EAST_ASIAN_* and as defined in UAX#11.
+ */
+int ucdn_get_east_asian_width(uint32_t code);
+
+/**
+ * Get general category of a codepoint.
+ *
+ * @param code Unicode codepoint
+ * @return value according to UCDN_GENERAL_CATEGORY_* and as defined in
+ * UAX#44.
+ */
+int ucdn_get_general_category(uint32_t code);
+
+/**
+ * Get bidirectional class of a codepoint.
+ *
+ * @param code Unicode codepoint
+ * @return value according to UCDN_BIDI_CLASS_* and as defined in UAX#44.
+ */
+int ucdn_get_bidi_class(uint32_t code);
+
+/**
+ * Get script of a codepoint.
+ *
+ * @param code Unicode codepoint
+ * @return value according to UCDN_SCRIPT_* and as defined in UAX#24.
+ */
+int ucdn_get_script(uint32_t code);
+
+/**
+ * Check if codepoint can be mirrored.
+ *
+ * @param code Unicode codepoint
+ * @return 1 if mirrored character exists, otherwise 0
+ */
+int ucdn_get_mirrored(uint32_t code);
+
+/**
+ * Mirror a codepoint.
+ *
+ * @param code Unicode codepoint
+ * @return mirrored codepoint or the original codepoint if no
+ * mirrored character exists
+ */
+uint32_t ucdn_mirror(uint32_t code);
+
+/**
+ * Pairwise canonical decomposition of a codepoint. This includes
+ * Hangul Jamo decomposition (see chapter 3.12 of the Unicode core
+ * specification).
+ *
+ * Hangul is decomposed into L and V jamos for LV forms, and an
+ * LV precomposed syllable and a T jamo for LVT forms.
+ *
+ * @param code Unicode codepoint
+ * @param a filled with first codepoint of decomposition
+ * @param b filled with second codepoint of decomposition, or 0
+ * @return success
+ */
+int ucdn_decompose(uint32_t code, uint32_t *a, uint32_t *b);
+
+/**
+ * Compatibility decomposition of a codepoint.
+ *
+ * @param code Unicode codepoint
+ * @param decomposed filled with decomposition, must be able to hold 18
+ * characters
+ * @return length of decomposition or 0 in case none exists
+ */
+int ucdn_compat_decompose(uint32_t code, uint32_t *decomposed);
+
+/**
+ * Pairwise canonical composition of two codepoints. This includes
+ * Hangul Jamo composition (see chapter 3.12 of the Unicode core
+ * specification).
+ *
+ * Hangul composition expects either L and V jamos, or an LV
+ * precomposed syllable and a T jamo. This is exactly the inverse
+ * of pairwise Hangul decomposition.
+ *
+ * @param code filled with composition
+ * @param a first codepoint
+ * @param b second codepoint
+ * @return success
+ */
+int ucdn_compose(uint32_t *code, uint32_t a, uint32_t b);
+
+HB_END_HEADER
+
+#endif
diff --git a/src/hb-ucdn/unicodedata_db.h b/src/hb-ucdn/unicodedata_db.h
new file mode 100644 (file)
index 0000000..a78d2e6
--- /dev/null
@@ -0,0 +1,5017 @@
+/* this file was generated by makeunicodedata.py 3.2 */
+
+#define UNIDATA_VERSION "7.0.0"
+/* a list of unique database records */
+static const UCDRecord ucd_records[] = {
+    {2, 0, 18, 0, 5, 0, 102},
+    {0, 0, 14, 0, 5, 0, 0},
+    {0, 0, 16, 0, 5, 0, 0},
+    {0, 0, 15, 0, 5, 0, 0},
+    {0, 0, 17, 0, 5, 0, 0},
+    {29, 0, 17, 0, 3, 0, 0},
+    {21, 0, 18, 0, 3, 0, 0},
+    {21, 0, 10, 0, 3, 0, 0},
+    {23, 0, 10, 0, 3, 0, 0},
+    {22, 0, 18, 1, 3, 0, 0},
+    {18, 0, 18, 1, 3, 0, 0},
+    {25, 0, 9, 0, 3, 0, 0},
+    {21, 0, 12, 0, 3, 0, 0},
+    {17, 0, 9, 0, 3, 0, 0},
+    {13, 0, 8, 0, 3, 0, 0},
+    {25, 0, 18, 1, 3, 0, 0},
+    {25, 0, 18, 0, 3, 0, 0},
+    {9, 0, 0, 0, 3, 0, 1},
+    {24, 0, 18, 0, 3, 0, 0},
+    {16, 0, 18, 0, 3, 0, 0},
+    {5, 0, 0, 0, 3, 0, 1},
+    {29, 0, 12, 0, 5, 0, 0},
+    {21, 0, 18, 0, 4, 0, 0},
+    {23, 0, 10, 0, 4, 0, 0},
+    {26, 0, 18, 0, 3, 0, 0},
+    {24, 0, 18, 0, 4, 0, 0},
+    {26, 0, 18, 0, 5, 0, 0},
+    {7, 0, 0, 0, 4, 0, 1},
+    {20, 0, 18, 1, 5, 0, 0},
+    {1, 0, 14, 0, 4, 0, 0},
+    {26, 0, 18, 0, 4, 0, 0},
+    {26, 0, 10, 0, 4, 0, 0},
+    {25, 0, 10, 0, 4, 0, 0},
+    {15, 0, 8, 0, 4, 0, 0},
+    {5, 0, 0, 0, 5, 0, 0},
+    {19, 0, 18, 1, 5, 0, 0},
+    {15, 0, 18, 0, 4, 0, 0},
+    {9, 0, 0, 0, 5, 0, 1},
+    {9, 0, 0, 0, 4, 0, 1},
+    {25, 0, 18, 0, 4, 0, 0},
+    {5, 0, 0, 0, 4, 0, 1},
+    {5, 0, 0, 0, 5, 0, 1},
+    {7, 0, 0, 0, 5, 0, 1},
+    {8, 0, 0, 0, 5, 0, 1},
+    {6, 0, 0, 0, 5, 0, 1},
+    {6, 0, 18, 0, 5, 0, 0},
+    {6, 0, 0, 0, 5, 0, 0},
+    {24, 0, 18, 0, 5, 0, 0},
+    {6, 0, 18, 0, 4, 0, 0},
+    {6, 0, 0, 0, 4, 0, 0},
+    {24, 0, 18, 0, 5, 0, 34},
+    {12, 230, 13, 0, 4, 0, 40},
+    {12, 232, 13, 0, 4, 0, 40},
+    {12, 220, 13, 0, 4, 0, 40},
+    {12, 216, 13, 0, 4, 0, 40},
+    {12, 202, 13, 0, 4, 0, 40},
+    {12, 1, 13, 0, 4, 0, 40},
+    {12, 240, 13, 0, 4, 0, 40},
+    {12, 0, 13, 0, 4, 0, 40},
+    {12, 233, 13, 0, 4, 0, 40},
+    {12, 234, 13, 0, 4, 0, 40},
+    {9, 0, 0, 0, 5, 0, 2},
+    {5, 0, 0, 0, 5, 0, 2},
+    {24, 0, 18, 0, 5, 0, 2},
+    {2, 0, 18, 0, 5, 0, 102},
+    {6, 0, 0, 0, 5, 0, 2},
+    {21, 0, 18, 0, 5, 0, 0},
+    {9, 0, 0, 0, 4, 0, 2},
+    {5, 0, 0, 0, 4, 0, 2},
+    {9, 0, 0, 0, 5, 0, 54},
+    {5, 0, 0, 0, 5, 0, 54},
+    {25, 0, 18, 0, 5, 0, 2},
+    {9, 0, 0, 0, 5, 0, 3},
+    {9, 0, 0, 0, 4, 0, 3},
+    {5, 0, 0, 0, 4, 0, 3},
+    {5, 0, 0, 0, 5, 0, 3},
+    {26, 0, 0, 0, 5, 0, 3},
+    {12, 230, 13, 0, 5, 0, 3},
+    {12, 230, 13, 0, 5, 0, 40},
+    {11, 0, 13, 0, 5, 0, 3},
+    {9, 0, 0, 0, 5, 0, 4},
+    {6, 0, 0, 0, 5, 0, 4},
+    {21, 0, 0, 0, 5, 0, 4},
+    {5, 0, 0, 0, 5, 0, 4},
+    {21, 0, 0, 0, 5, 0, 0},
+    {17, 0, 18, 0, 5, 0, 4},
+    {26, 0, 18, 0, 5, 0, 4},
+    {23, 0, 10, 0, 5, 0, 4},
+    {12, 220, 13, 0, 5, 0, 5},
+    {12, 230, 13, 0, 5, 0, 5},
+    {12, 222, 13, 0, 5, 0, 5},
+    {12, 228, 13, 0, 5, 0, 5},
+    {12, 10, 13, 0, 5, 0, 5},
+    {12, 11, 13, 0, 5, 0, 5},
+    {12, 12, 13, 0, 5, 0, 5},
+    {12, 13, 13, 0, 5, 0, 5},
+    {12, 14, 13, 0, 5, 0, 5},
+    {12, 15, 13, 0, 5, 0, 5},
+    {12, 16, 13, 0, 5, 0, 5},
+    {12, 17, 13, 0, 5, 0, 5},
+    {12, 18, 13, 0, 5, 0, 5},
+    {12, 19, 13, 0, 5, 0, 5},
+    {12, 20, 13, 0, 5, 0, 5},
+    {12, 21, 13, 0, 5, 0, 5},
+    {12, 22, 13, 0, 5, 0, 5},
+    {17, 0, 3, 0, 5, 0, 5},
+    {12, 23, 13, 0, 5, 0, 5},
+    {21, 0, 3, 0, 5, 0, 5},
+    {12, 24, 13, 0, 5, 0, 5},
+    {12, 25, 13, 0, 5, 0, 5},
+    {7, 0, 3, 0, 5, 0, 5},
+    {1, 0, 11, 0, 5, 0, 6},
+    {1, 0, 11, 0, 5, 0, 0},
+    {25, 0, 18, 0, 5, 0, 6},
+    {25, 0, 4, 0, 5, 0, 6},
+    {21, 0, 10, 0, 5, 0, 6},
+    {23, 0, 4, 0, 5, 0, 6},
+    {21, 0, 12, 0, 5, 0, 0},
+    {21, 0, 4, 0, 5, 0, 6},
+    {26, 0, 18, 0, 5, 0, 6},
+    {12, 230, 13, 0, 5, 0, 6},
+    {12, 30, 13, 0, 5, 0, 6},
+    {12, 31, 13, 0, 5, 0, 6},
+    {12, 32, 13, 0, 5, 0, 6},
+    {21, 0, 4, 0, 5, 0, 0},
+    {1, 0, 4, 0, 5, 0, 0},
+    {7, 0, 4, 0, 5, 0, 6},
+    {6, 0, 4, 0, 5, 0, 0},
+    {12, 27, 13, 0, 5, 0, 40},
+    {12, 28, 13, 0, 5, 0, 40},
+    {12, 29, 13, 0, 5, 0, 40},
+    {12, 30, 13, 0, 5, 0, 40},
+    {12, 31, 13, 0, 5, 0, 40},
+    {12, 32, 13, 0, 5, 0, 40},
+    {12, 33, 13, 0, 5, 0, 40},
+    {12, 34, 13, 0, 5, 0, 40},
+    {12, 220, 13, 0, 5, 0, 40},
+    {12, 220, 13, 0, 5, 0, 6},
+    {13, 0, 11, 0, 5, 0, 0},
+    {21, 0, 11, 0, 5, 0, 6},
+    {12, 35, 13, 0, 5, 0, 40},
+    {6, 0, 4, 0, 5, 0, 6},
+    {13, 0, 8, 0, 5, 0, 6},
+    {26, 0, 4, 0, 5, 0, 6},
+    {21, 0, 4, 0, 5, 0, 7},
+    {1, 0, 4, 0, 5, 0, 7},
+    {7, 0, 4, 0, 5, 0, 7},
+    {12, 36, 13, 0, 5, 0, 7},
+    {12, 230, 13, 0, 5, 0, 7},
+    {12, 220, 13, 0, 5, 0, 7},
+    {7, 0, 4, 0, 5, 0, 8},
+    {12, 0, 13, 0, 5, 0, 8},
+    {13, 0, 3, 0, 5, 0, 65},
+    {7, 0, 3, 0, 5, 0, 65},
+    {12, 230, 13, 0, 5, 0, 65},
+    {12, 220, 13, 0, 5, 0, 65},
+    {6, 0, 3, 0, 5, 0, 65},
+    {26, 0, 18, 0, 5, 0, 65},
+    {21, 0, 18, 0, 5, 0, 65},
+    {7, 0, 3, 0, 5, 0, 81},
+    {12, 230, 13, 0, 5, 0, 81},
+    {6, 0, 3, 0, 5, 0, 81},
+    {21, 0, 3, 0, 5, 0, 81},
+    {7, 0, 3, 0, 5, 0, 94},
+    {12, 220, 13, 0, 5, 0, 94},
+    {21, 0, 3, 0, 5, 0, 94},
+    {12, 27, 13, 0, 5, 0, 6},
+    {12, 28, 13, 0, 5, 0, 6},
+    {12, 29, 13, 0, 5, 0, 6},
+    {12, 0, 13, 0, 5, 0, 9},
+    {10, 0, 0, 0, 5, 0, 9},
+    {7, 0, 0, 0, 5, 0, 9},
+    {12, 7, 13, 0, 5, 0, 9},
+    {12, 9, 13, 0, 5, 0, 9},
+    {12, 230, 13, 0, 5, 0, 9},
+    {13, 0, 0, 0, 5, 0, 9},
+    {21, 0, 0, 0, 5, 0, 9},
+    {6, 0, 0, 0, 5, 0, 9},
+    {7, 0, 0, 0, 5, 0, 10},
+    {12, 0, 13, 0, 5, 0, 10},
+    {10, 0, 0, 0, 5, 0, 10},
+    {12, 7, 13, 0, 5, 0, 10},
+    {12, 9, 13, 0, 5, 0, 10},
+    {13, 0, 0, 0, 5, 0, 10},
+    {23, 0, 10, 0, 5, 0, 10},
+    {15, 0, 0, 0, 5, 0, 10},
+    {26, 0, 0, 0, 5, 0, 10},
+    {12, 0, 13, 0, 5, 0, 11},
+    {10, 0, 0, 0, 5, 0, 11},
+    {7, 0, 0, 0, 5, 0, 11},
+    {12, 7, 13, 0, 5, 0, 11},
+    {12, 9, 13, 0, 5, 0, 11},
+    {13, 0, 0, 0, 5, 0, 11},
+    {12, 0, 13, 0, 5, 0, 12},
+    {10, 0, 0, 0, 5, 0, 12},
+    {7, 0, 0, 0, 5, 0, 12},
+    {12, 7, 13, 0, 5, 0, 12},
+    {12, 9, 13, 0, 5, 0, 12},
+    {13, 0, 0, 0, 5, 0, 12},
+    {21, 0, 0, 0, 5, 0, 12},
+    {23, 0, 10, 0, 5, 0, 12},
+    {12, 0, 13, 0, 5, 0, 13},
+    {10, 0, 0, 0, 5, 0, 13},
+    {7, 0, 0, 0, 5, 0, 13},
+    {12, 7, 13, 0, 5, 0, 13},
+    {12, 9, 13, 0, 5, 0, 13},
+    {13, 0, 0, 0, 5, 0, 13},
+    {26, 0, 0, 0, 5, 0, 13},
+    {15, 0, 0, 0, 5, 0, 13},
+    {12, 0, 13, 0, 5, 0, 14},
+    {7, 0, 0, 0, 5, 0, 14},
+    {10, 0, 0, 0, 5, 0, 14},
+    {12, 9, 13, 0, 5, 0, 14},
+    {13, 0, 0, 0, 5, 0, 14},
+    {15, 0, 0, 0, 5, 0, 14},
+    {26, 0, 18, 0, 5, 0, 14},
+    {23, 0, 10, 0, 5, 0, 14},
+    {12, 0, 13, 0, 5, 0, 15},
+    {10, 0, 0, 0, 5, 0, 15},
+    {7, 0, 0, 0, 5, 0, 15},
+    {12, 9, 13, 0, 5, 0, 15},
+    {12, 84, 13, 0, 5, 0, 15},
+    {12, 91, 13, 0, 5, 0, 15},
+    {13, 0, 0, 0, 5, 0, 15},
+    {15, 0, 18, 0, 5, 0, 15},
+    {26, 0, 0, 0, 5, 0, 15},
+    {12, 0, 13, 0, 5, 0, 16},
+    {10, 0, 0, 0, 5, 0, 16},
+    {7, 0, 0, 0, 5, 0, 16},
+    {12, 7, 13, 0, 5, 0, 16},
+    {12, 0, 0, 0, 5, 0, 16},
+    {12, 9, 13, 0, 5, 0, 16},
+    {13, 0, 0, 0, 5, 0, 16},
+    {12, 0, 13, 0, 5, 0, 17},
+    {10, 0, 0, 0, 5, 0, 17},
+    {7, 0, 0, 0, 5, 0, 17},
+    {12, 9, 13, 0, 5, 0, 17},
+    {13, 0, 0, 0, 5, 0, 17},
+    {15, 0, 0, 0, 5, 0, 17},
+    {26, 0, 0, 0, 5, 0, 17},
+    {10, 0, 0, 0, 5, 0, 18},
+    {7, 0, 0, 0, 5, 0, 18},
+    {12, 9, 13, 0, 5, 0, 18},
+    {12, 0, 13, 0, 5, 0, 18},
+    {13, 0, 0, 0, 5, 0, 18},
+    {21, 0, 0, 0, 5, 0, 18},
+    {7, 0, 0, 0, 5, 0, 19},
+    {12, 0, 13, 0, 5, 0, 19},
+    {12, 103, 13, 0, 5, 0, 19},
+    {12, 9, 13, 0, 5, 0, 19},
+    {23, 0, 10, 0, 5, 0, 0},
+    {6, 0, 0, 0, 5, 0, 19},
+    {12, 107, 13, 0, 5, 0, 19},
+    {21, 0, 0, 0, 5, 0, 19},
+    {13, 0, 0, 0, 5, 0, 19},
+    {7, 0, 0, 0, 5, 0, 20},
+    {12, 0, 13, 0, 5, 0, 20},
+    {12, 118, 13, 0, 5, 0, 20},
+    {6, 0, 0, 0, 5, 0, 20},
+    {12, 122, 13, 0, 5, 0, 20},
+    {13, 0, 0, 0, 5, 0, 20},
+    {7, 0, 0, 0, 5, 0, 21},
+    {26, 0, 0, 0, 5, 0, 21},
+    {21, 0, 0, 0, 5, 0, 21},
+    {12, 220, 13, 0, 5, 0, 21},
+    {13, 0, 0, 0, 5, 0, 21},
+    {15, 0, 0, 0, 5, 0, 21},
+    {12, 216, 13, 0, 5, 0, 21},
+    {22, 0, 18, 1, 5, 0, 21},
+    {18, 0, 18, 1, 5, 0, 21},
+    {10, 0, 0, 0, 5, 0, 21},
+    {12, 129, 13, 0, 5, 0, 21},
+    {12, 130, 13, 0, 5, 0, 21},
+    {12, 0, 13, 0, 5, 0, 21},
+    {12, 132, 13, 0, 5, 0, 21},
+    {12, 230, 13, 0, 5, 0, 21},
+    {12, 9, 13, 0, 5, 0, 21},
+    {26, 0, 0, 0, 5, 0, 0},
+    {7, 0, 0, 0, 5, 0, 22},
+    {10, 0, 0, 0, 5, 0, 22},
+    {12, 0, 13, 0, 5, 0, 22},
+    {12, 7, 13, 0, 5, 0, 22},
+    {12, 9, 13, 0, 5, 0, 22},
+    {13, 0, 0, 0, 5, 0, 22},
+    {21, 0, 0, 0, 5, 0, 22},
+    {12, 220, 13, 0, 5, 0, 22},
+    {26, 0, 0, 0, 5, 0, 22},
+    {9, 0, 0, 0, 5, 0, 23},
+    {7, 0, 0, 0, 5, 0, 23},
+    {6, 0, 0, 0, 5, 0, 23},
+    {7, 0, 0, 0, 2, 0, 24},
+    {7, 0, 0, 0, 5, 0, 24},
+    {7, 0, 0, 0, 5, 0, 25},
+    {12, 230, 13, 0, 5, 0, 25},
+    {21, 0, 0, 0, 5, 0, 25},
+    {15, 0, 0, 0, 5, 0, 25},
+    {26, 0, 18, 0, 5, 0, 25},
+    {7, 0, 0, 0, 5, 0, 26},
+    {17, 0, 18, 0, 5, 0, 27},
+    {7, 0, 0, 0, 5, 0, 27},
+    {21, 0, 0, 0, 5, 0, 27},
+    {29, 0, 17, 0, 5, 0, 28},
+    {7, 0, 0, 0, 5, 0, 28},
+    {22, 0, 18, 1, 5, 0, 28},
+    {18, 0, 18, 1, 5, 0, 28},
+    {7, 0, 0, 0, 5, 0, 29},
+    {14, 0, 0, 0, 5, 0, 29},
+    {7, 0, 0, 0, 5, 0, 41},
+    {12, 0, 13, 0, 5, 0, 41},
+    {12, 9, 13, 0, 5, 0, 41},
+    {7, 0, 0, 0, 5, 0, 42},
+    {12, 0, 13, 0, 5, 0, 42},
+    {12, 9, 13, 0, 5, 0, 42},
+    {7, 0, 0, 0, 5, 0, 43},
+    {12, 0, 13, 0, 5, 0, 43},
+    {7, 0, 0, 0, 5, 0, 44},
+    {12, 0, 13, 0, 5, 0, 44},
+    {7, 0, 0, 0, 5, 0, 30},
+    {12, 0, 13, 0, 5, 0, 30},
+    {10, 0, 0, 0, 5, 0, 30},
+    {12, 9, 13, 0, 5, 0, 30},
+    {21, 0, 0, 0, 5, 0, 30},
+    {6, 0, 0, 0, 5, 0, 30},
+    {23, 0, 10, 0, 5, 0, 30},
+    {12, 230, 13, 0, 5, 0, 30},
+    {13, 0, 0, 0, 5, 0, 30},
+    {15, 0, 18, 0, 5, 0, 30},
+    {21, 0, 18, 0, 5, 0, 31},
+    {17, 0, 18, 0, 5, 0, 31},
+    {12, 0, 13, 0, 5, 0, 31},
+    {1, 0, 14, 0, 5, 0, 31},
+    {13, 0, 0, 0, 5, 0, 31},
+    {7, 0, 0, 0, 5, 0, 31},
+    {6, 0, 0, 0, 5, 0, 31},
+    {12, 228, 13, 0, 5, 0, 31},
+    {7, 0, 0, 0, 5, 0, 45},
+    {12, 0, 13, 0, 5, 0, 45},
+    {10, 0, 0, 0, 5, 0, 45},
+    {12, 222, 13, 0, 5, 0, 45},
+    {12, 230, 13, 0, 5, 0, 45},
+    {12, 220, 13, 0, 5, 0, 45},
+    {26, 0, 18, 0, 5, 0, 45},
+    {21, 0, 18, 0, 5, 0, 45},
+    {13, 0, 0, 0, 5, 0, 45},
+    {7, 0, 0, 0, 5, 0, 46},
+    {7, 0, 0, 0, 5, 0, 55},
+    {10, 0, 0, 0, 5, 0, 55},
+    {13, 0, 0, 0, 5, 0, 55},
+    {15, 0, 0, 0, 5, 0, 55},
+    {26, 0, 18, 0, 5, 0, 55},
+    {26, 0, 18, 0, 5, 0, 30},
+    {7, 0, 0, 0, 5, 0, 53},
+    {12, 230, 13, 0, 5, 0, 53},
+    {12, 220, 13, 0, 5, 0, 53},
+    {10, 0, 0, 0, 5, 0, 53},
+    {12, 0, 13, 0, 5, 0, 53},
+    {21, 0, 0, 0, 5, 0, 53},
+    {7, 0, 0, 0, 5, 0, 77},
+    {10, 0, 0, 0, 5, 0, 77},
+    {12, 0, 13, 0, 5, 0, 77},
+    {12, 9, 13, 0, 5, 0, 77},
+    {12, 230, 13, 0, 5, 0, 77},
+    {12, 220, 13, 0, 5, 0, 77},
+    {13, 0, 0, 0, 5, 0, 77},
+    {21, 0, 0, 0, 5, 0, 77},
+    {6, 0, 0, 0, 5, 0, 77},
+    {11, 0, 13, 0, 5, 0, 40},
+    {12, 0, 13, 0, 5, 0, 61},
+    {10, 0, 0, 0, 5, 0, 61},
+    {7, 0, 0, 0, 5, 0, 61},
+    {12, 7, 13, 0, 5, 0, 61},
+    {10, 9, 0, 0, 5, 0, 61},
+    {13, 0, 0, 0, 5, 0, 61},
+    {21, 0, 0, 0, 5, 0, 61},
+    {26, 0, 0, 0, 5, 0, 61},
+    {12, 230, 13, 0, 5, 0, 61},
+    {12, 220, 13, 0, 5, 0, 61},
+    {12, 0, 13, 0, 5, 0, 66},
+    {10, 0, 0, 0, 5, 0, 66},
+    {7, 0, 0, 0, 5, 0, 66},
+    {10, 9, 0, 0, 5, 0, 66},
+    {12, 9, 13, 0, 5, 0, 66},
+    {13, 0, 0, 0, 5, 0, 66},
+    {7, 0, 0, 0, 5, 0, 92},
+    {12, 7, 13, 0, 5, 0, 92},
+    {10, 0, 0, 0, 5, 0, 92},
+    {12, 0, 13, 0, 5, 0, 92},
+    {10, 9, 0, 0, 5, 0, 92},
+    {21, 0, 0, 0, 5, 0, 92},
+    {7, 0, 0, 0, 5, 0, 67},
+    {10, 0, 0, 0, 5, 0, 67},
+    {12, 0, 13, 0, 5, 0, 67},
+    {12, 7, 13, 0, 5, 0, 67},
+    {21, 0, 0, 0, 5, 0, 67},
+    {13, 0, 0, 0, 5, 0, 67},
+    {13, 0, 0, 0, 5, 0, 68},
+    {7, 0, 0, 0, 5, 0, 68},
+    {6, 0, 0, 0, 5, 0, 68},
+    {21, 0, 0, 0, 5, 0, 68},
+    {21, 0, 0, 0, 5, 0, 66},
+    {12, 1, 13, 0, 5, 0, 40},
+    {10, 0, 0, 0, 5, 0, 0},
+    {7, 0, 0, 0, 5, 0, 0},
+    {6, 0, 0, 0, 5, 0, 3},
+    {12, 234, 13, 0, 5, 0, 40},
+    {12, 214, 13, 0, 5, 0, 40},
+    {12, 202, 13, 0, 5, 0, 40},
+    {12, 233, 13, 0, 5, 0, 40},
+    {8, 0, 0, 0, 5, 0, 2},
+    {29, 0, 17, 0, 5, 0, 0},
+    {1, 0, 14, 0, 5, 0, 0},
+    {1, 0, 14, 0, 5, 0, 40},
+    {1, 0, 0, 0, 5, 0, 0},
+    {1, 0, 3, 0, 5, 0, 0},
+    {17, 0, 18, 0, 4, 0, 0},
+    {17, 0, 18, 0, 5, 0, 0},
+    {20, 0, 18, 0, 4, 0, 0},
+    {19, 0, 18, 0, 4, 0, 0},
+    {22, 0, 18, 0, 5, 0, 0},
+    {20, 0, 18, 0, 5, 0, 0},
+    {27, 0, 17, 0, 5, 0, 0},
+    {28, 0, 15, 0, 5, 0, 0},
+    {1, 0, 1, 0, 5, 0, 0},
+    {1, 0, 5, 0, 5, 0, 0},
+    {1, 0, 7, 0, 5, 0, 0},
+    {1, 0, 2, 0, 5, 0, 0},
+    {1, 0, 6, 0, 5, 0, 0},
+    {21, 0, 10, 0, 4, 0, 0},
+    {21, 0, 10, 0, 5, 0, 0},
+    {16, 0, 18, 0, 5, 0, 0},
+    {25, 0, 12, 0, 5, 0, 0},
+    {22, 0, 18, 1, 5, 0, 0},
+    {18, 0, 18, 1, 5, 0, 0},
+    {25, 0, 18, 0, 5, 0, 0},
+    {1, 0, 19, 0, 5, 0, 0},
+    {1, 0, 20, 0, 5, 0, 0},
+    {1, 0, 21, 0, 5, 0, 0},
+    {1, 0, 22, 0, 5, 0, 0},
+    {15, 0, 8, 0, 5, 0, 0},
+    {25, 0, 9, 0, 5, 0, 0},
+    {6, 0, 0, 0, 4, 0, 1},
+    {23, 0, 10, 0, 1, 0, 0},
+    {9, 0, 0, 0, 5, 0, 0},
+    {5, 0, 0, 0, 4, 0, 0},
+    {26, 0, 10, 0, 5, 0, 0},
+    {25, 0, 18, 1, 5, 0, 0},
+    {15, 0, 18, 0, 5, 0, 0},
+    {14, 0, 0, 0, 4, 0, 1},
+    {14, 0, 0, 0, 5, 0, 1},
+    {25, 0, 18, 1, 4, 0, 0},
+    {25, 0, 10, 0, 5, 0, 0},
+    {22, 0, 18, 1, 2, 0, 0},
+    {18, 0, 18, 1, 2, 0, 0},
+    {26, 0, 0, 0, 4, 0, 0},
+    {26, 0, 0, 0, 5, 0, 52},
+    {9, 0, 0, 0, 5, 0, 56},
+    {5, 0, 0, 0, 5, 0, 56},
+    {26, 0, 18, 0, 5, 0, 54},
+    {12, 230, 13, 0, 5, 0, 54},
+    {21, 0, 18, 0, 5, 0, 54},
+    {15, 0, 18, 0, 5, 0, 54},
+    {5, 0, 0, 0, 5, 0, 23},
+    {7, 0, 0, 0, 5, 0, 57},
+    {6, 0, 0, 0, 5, 0, 57},
+    {21, 0, 0, 0, 5, 0, 57},
+    {12, 9, 13, 0, 5, 0, 57},
+    {26, 0, 18, 0, 2, 0, 35},
+    {26, 0, 18, 0, 2, 0, 0},
+    {29, 0, 17, 0, 0, 0, 0},
+    {21, 0, 18, 0, 2, 0, 0},
+    {6, 0, 0, 0, 2, 0, 35},
+    {7, 0, 0, 0, 2, 0, 0},
+    {14, 0, 0, 0, 2, 0, 35},
+    {17, 0, 18, 0, 2, 0, 0},
+    {22, 0, 18, 0, 2, 0, 0},
+    {18, 0, 18, 0, 2, 0, 0},
+    {12, 218, 13, 0, 2, 0, 40},
+    {12, 228, 13, 0, 2, 0, 40},
+    {12, 232, 13, 0, 2, 0, 40},
+    {12, 222, 13, 0, 2, 0, 40},
+    {10, 224, 0, 0, 2, 0, 24},
+    {6, 0, 0, 0, 2, 0, 0},
+    {7, 0, 0, 0, 2, 0, 32},
+    {12, 8, 13, 0, 2, 0, 40},
+    {24, 0, 18, 0, 2, 0, 0},
+    {6, 0, 0, 0, 2, 0, 32},
+    {7, 0, 0, 0, 2, 0, 33},
+    {6, 0, 0, 0, 2, 0, 33},
+    {7, 0, 0, 0, 2, 0, 34},
+    {26, 0, 0, 0, 2, 0, 0},
+    {15, 0, 0, 0, 2, 0, 0},
+    {26, 0, 0, 0, 2, 0, 24},
+    {26, 0, 18, 0, 2, 0, 24},
+    {15, 0, 0, 0, 4, 0, 0},
+    {15, 0, 18, 0, 2, 0, 0},
+    {26, 0, 0, 0, 2, 0, 33},
+    {7, 0, 0, 0, 2, 0, 35},
+    {2, 0, 18, 0, 2, 0, 35},
+    {2, 0, 18, 0, 2, 0, 102},
+    {7, 0, 0, 0, 2, 0, 36},
+    {6, 0, 0, 0, 2, 0, 36},
+    {26, 0, 18, 0, 2, 0, 36},
+    {7, 0, 0, 0, 5, 0, 82},
+    {6, 0, 0, 0, 5, 0, 82},
+    {21, 0, 0, 0, 5, 0, 82},
+    {7, 0, 0, 0, 5, 0, 69},
+    {6, 0, 0, 0, 5, 0, 69},
+    {21, 0, 18, 0, 5, 0, 69},
+    {13, 0, 0, 0, 5, 0, 69},
+    {7, 0, 0, 0, 5, 0, 3},
+    {21, 0, 18, 0, 5, 0, 3},
+    {6, 0, 18, 0, 5, 0, 3},
+    {7, 0, 0, 0, 5, 0, 83},
+    {14, 0, 0, 0, 5, 0, 83},
+    {12, 230, 13, 0, 5, 0, 83},
+    {21, 0, 0, 0, 5, 0, 83},
+    {24, 0, 0, 0, 5, 0, 0},
+    {7, 0, 0, 0, 5, 0, 58},
+    {12, 0, 13, 0, 5, 0, 58},
+    {12, 9, 13, 0, 5, 0, 58},
+    {10, 0, 0, 0, 5, 0, 58},
+    {26, 0, 18, 0, 5, 0, 58},
+    {15, 0, 0, 0, 5, 0, 0},
+    {7, 0, 0, 0, 5, 0, 64},
+    {21, 0, 18, 0, 5, 0, 64},
+    {10, 0, 0, 0, 5, 0, 70},
+    {7, 0, 0, 0, 5, 0, 70},
+    {12, 9, 13, 0, 5, 0, 70},
+    {21, 0, 0, 0, 5, 0, 70},
+    {13, 0, 0, 0, 5, 0, 70},
+    {13, 0, 0, 0, 5, 0, 71},
+    {7, 0, 0, 0, 5, 0, 71},
+    {12, 0, 13, 0, 5, 0, 71},
+    {12, 220, 13, 0, 5, 0, 71},
+    {21, 0, 0, 0, 5, 0, 71},
+    {7, 0, 0, 0, 5, 0, 72},
+    {12, 0, 13, 0, 5, 0, 72},
+    {10, 0, 0, 0, 5, 0, 72},
+    {10, 9, 0, 0, 5, 0, 72},
+    {21, 0, 0, 0, 5, 0, 72},
+    {12, 0, 13, 0, 5, 0, 84},
+    {10, 0, 0, 0, 5, 0, 84},
+    {7, 0, 0, 0, 5, 0, 84},
+    {12, 7, 13, 0, 5, 0, 84},
+    {10, 9, 0, 0, 5, 0, 84},
+    {21, 0, 0, 0, 5, 0, 84},
+    {13, 0, 0, 0, 5, 0, 84},
+    {6, 0, 0, 0, 5, 0, 22},
+    {7, 0, 0, 0, 5, 0, 76},
+    {12, 0, 13, 0, 5, 0, 76},
+    {10, 0, 0, 0, 5, 0, 76},
+    {13, 0, 0, 0, 5, 0, 76},
+    {21, 0, 0, 0, 5, 0, 76},
+    {7, 0, 0, 0, 5, 0, 78},
+    {12, 230, 13, 0, 5, 0, 78},
+    {12, 220, 13, 0, 5, 0, 78},
+    {6, 0, 0, 0, 5, 0, 78},
+    {21, 0, 0, 0, 5, 0, 78},
+    {7, 0, 0, 0, 5, 0, 85},
+    {10, 0, 0, 0, 5, 0, 85},
+    {12, 0, 13, 0, 5, 0, 85},
+    {21, 0, 0, 0, 5, 0, 85},
+    {6, 0, 0, 0, 5, 0, 85},
+    {12, 9, 13, 0, 5, 0, 85},
+    {13, 0, 0, 0, 5, 0, 85},
+    {2, 0, 18, 0, 2, 0, 24},
+    {4, 0, 0, 0, 5, 0, 102},
+    {3, 0, 0, 0, 4, 0, 102},
+    {2, 0, 18, 0, 4, 0, 102},
+    {12, 26, 13, 0, 5, 0, 5},
+    {25, 0, 9, 0, 5, 0, 5},
+    {24, 0, 4, 0, 5, 0, 6},
+    {18, 0, 18, 0, 5, 0, 0},
+    {16, 0, 18, 0, 2, 0, 0},
+    {21, 0, 12, 0, 2, 0, 0},
+    {21, 0, 10, 0, 2, 0, 0},
+    {25, 0, 9, 0, 2, 0, 0},
+    {17, 0, 9, 0, 2, 0, 0},
+    {25, 0, 18, 1, 2, 0, 0},
+    {25, 0, 18, 0, 2, 0, 0},
+    {23, 0, 10, 0, 2, 0, 0},
+    {21, 0, 18, 0, 0, 0, 0},
+    {21, 0, 10, 0, 0, 0, 0},
+    {23, 0, 10, 0, 0, 0, 0},
+    {22, 0, 18, 1, 0, 0, 0},
+    {18, 0, 18, 1, 0, 0, 0},
+    {25, 0, 9, 0, 0, 0, 0},
+    {21, 0, 12, 0, 0, 0, 0},
+    {17, 0, 9, 0, 0, 0, 0},
+    {13, 0, 8, 0, 0, 0, 0},
+    {25, 0, 18, 1, 0, 0, 0},
+    {25, 0, 18, 0, 0, 0, 0},
+    {9, 0, 0, 0, 0, 0, 1},
+    {24, 0, 18, 0, 0, 0, 0},
+    {16, 0, 18, 0, 0, 0, 0},
+    {5, 0, 0, 0, 0, 0, 1},
+    {21, 0, 18, 0, 1, 0, 0},
+    {22, 0, 18, 1, 1, 0, 0},
+    {18, 0, 18, 1, 1, 0, 0},
+    {7, 0, 0, 0, 1, 0, 33},
+    {6, 0, 0, 0, 1, 0, 0},
+    {7, 0, 0, 0, 1, 0, 24},
+    {26, 0, 18, 0, 0, 0, 0},
+    {26, 0, 18, 0, 1, 0, 0},
+    {25, 0, 18, 0, 1, 0, 0},
+    {1, 0, 18, 0, 5, 0, 0},
+    {7, 0, 0, 0, 5, 0, 47},
+    {14, 0, 18, 0, 5, 0, 2},
+    {15, 0, 18, 0, 5, 0, 2},
+    {26, 0, 18, 0, 5, 0, 2},
+    {7, 0, 0, 0, 5, 0, 73},
+    {7, 0, 0, 0, 5, 0, 74},
+    {7, 0, 0, 0, 5, 0, 37},
+    {15, 0, 0, 0, 5, 0, 37},
+    {7, 0, 0, 0, 5, 0, 38},
+    {14, 0, 0, 0, 5, 0, 38},
+    {7, 0, 0, 0, 5, 0, 118},
+    {12, 230, 13, 0, 5, 0, 118},
+    {7, 0, 0, 0, 5, 0, 48},
+    {21, 0, 0, 0, 5, 0, 48},
+    {7, 0, 0, 0, 5, 0, 59},
+    {21, 0, 0, 0, 5, 0, 59},
+    {14, 0, 0, 0, 5, 0, 59},
+    {9, 0, 0, 0, 5, 0, 39},
+    {5, 0, 0, 0, 5, 0, 39},
+    {7, 0, 0, 0, 5, 0, 49},
+    {7, 0, 0, 0, 5, 0, 50},
+    {13, 0, 0, 0, 5, 0, 50},
+    {7, 0, 0, 0, 5, 0, 106},
+    {7, 0, 0, 0, 5, 0, 104},
+    {21, 0, 0, 0, 5, 0, 104},
+    {7, 0, 0, 0, 5, 0, 110},
+    {7, 0, 3, 0, 5, 0, 51},
+    {7, 0, 3, 0, 5, 0, 86},
+    {21, 0, 3, 0, 5, 0, 86},
+    {15, 0, 3, 0, 5, 0, 86},
+    {7, 0, 3, 0, 5, 0, 120},
+    {26, 0, 3, 0, 5, 0, 120},
+    {15, 0, 3, 0, 5, 0, 120},
+    {7, 0, 3, 0, 5, 0, 116},
+    {15, 0, 3, 0, 5, 0, 116},
+    {7, 0, 3, 0, 5, 0, 63},
+    {15, 0, 3, 0, 5, 0, 63},
+    {21, 0, 18, 0, 5, 0, 63},
+    {7, 0, 3, 0, 5, 0, 75},
+    {21, 0, 3, 0, 5, 0, 75},
+    {7, 0, 3, 0, 5, 0, 97},
+    {7, 0, 3, 0, 5, 0, 96},
+    {7, 0, 3, 0, 5, 0, 60},
+    {12, 0, 13, 0, 5, 0, 60},
+    {12, 220, 13, 0, 5, 0, 60},
+    {12, 230, 13, 0, 5, 0, 60},
+    {12, 1, 13, 0, 5, 0, 60},
+    {12, 9, 13, 0, 5, 0, 60},
+    {15, 0, 3, 0, 5, 0, 60},
+    {21, 0, 3, 0, 5, 0, 60},
+    {7, 0, 3, 0, 5, 0, 87},
+    {15, 0, 3, 0, 5, 0, 87},
+    {21, 0, 3, 0, 5, 0, 87},
+    {7, 0, 3, 0, 5, 0, 117},
+    {15, 0, 3, 0, 5, 0, 117},
+    {7, 0, 3, 0, 5, 0, 112},
+    {26, 0, 3, 0, 5, 0, 112},
+    {12, 230, 13, 0, 5, 0, 112},
+    {12, 220, 13, 0, 5, 0, 112},
+    {15, 0, 3, 0, 5, 0, 112},
+    {21, 0, 3, 0, 5, 0, 112},
+    {7, 0, 3, 0, 5, 0, 79},
+    {21, 0, 18, 0, 5, 0, 79},
+    {7, 0, 3, 0, 5, 0, 88},
+    {15, 0, 3, 0, 5, 0, 88},
+    {7, 0, 3, 0, 5, 0, 89},
+    {15, 0, 3, 0, 5, 0, 89},
+    {7, 0, 3, 0, 5, 0, 122},
+    {21, 0, 3, 0, 5, 0, 122},
+    {15, 0, 3, 0, 5, 0, 122},
+    {7, 0, 3, 0, 5, 0, 90},
+    {15, 0, 11, 0, 5, 0, 6},
+    {10, 0, 0, 0, 5, 0, 93},
+    {12, 0, 13, 0, 5, 0, 93},
+    {7, 0, 0, 0, 5, 0, 93},
+    {12, 9, 13, 0, 5, 0, 93},
+    {21, 0, 0, 0, 5, 0, 93},
+    {15, 0, 18, 0, 5, 0, 93},
+    {13, 0, 0, 0, 5, 0, 93},
+    {12, 0, 13, 0, 5, 0, 91},
+    {10, 0, 0, 0, 5, 0, 91},
+    {7, 0, 0, 0, 5, 0, 91},
+    {12, 9, 13, 0, 5, 0, 91},
+    {12, 7, 13, 0, 5, 0, 91},
+    {21, 0, 0, 0, 5, 0, 91},
+    {1, 0, 0, 0, 5, 0, 91},
+    {7, 0, 0, 0, 5, 0, 100},
+    {13, 0, 0, 0, 5, 0, 100},
+    {12, 230, 13, 0, 5, 0, 95},
+    {7, 0, 0, 0, 5, 0, 95},
+    {12, 0, 13, 0, 5, 0, 95},
+    {10, 0, 0, 0, 5, 0, 95},
+    {12, 9, 13, 0, 5, 0, 95},
+    {13, 0, 0, 0, 5, 0, 95},
+    {21, 0, 0, 0, 5, 0, 95},
+    {7, 0, 0, 0, 5, 0, 111},
+    {12, 7, 13, 0, 5, 0, 111},
+    {21, 0, 0, 0, 5, 0, 111},
+    {12, 0, 13, 0, 5, 0, 99},
+    {10, 0, 0, 0, 5, 0, 99},
+    {7, 0, 0, 0, 5, 0, 99},
+    {10, 9, 0, 0, 5, 0, 99},
+    {21, 0, 0, 0, 5, 0, 99},
+    {13, 0, 0, 0, 5, 0, 99},
+    {15, 0, 0, 0, 5, 0, 18},
+    {7, 0, 0, 0, 5, 0, 108},
+    {10, 0, 0, 0, 5, 0, 108},
+    {12, 0, 13, 0, 5, 0, 108},
+    {10, 9, 0, 0, 5, 0, 108},
+    {12, 7, 13, 0, 5, 0, 108},
+    {21, 0, 0, 0, 5, 0, 108},
+    {7, 0, 0, 0, 5, 0, 109},
+    {12, 0, 13, 0, 5, 0, 109},
+    {10, 0, 0, 0, 5, 0, 109},
+    {12, 7, 13, 0, 5, 0, 109},
+    {12, 9, 13, 0, 5, 0, 109},
+    {13, 0, 0, 0, 5, 0, 109},
+    {12, 0, 13, 0, 5, 0, 107},
+    {10, 0, 0, 0, 5, 0, 107},
+    {7, 0, 0, 0, 5, 0, 107},
+    {12, 7, 13, 0, 5, 0, 107},
+    {10, 9, 0, 0, 5, 0, 107},
+    {12, 230, 13, 0, 5, 0, 107},
+    {7, 0, 0, 0, 5, 0, 124},
+    {10, 0, 0, 0, 5, 0, 124},
+    {12, 0, 13, 0, 5, 0, 124},
+    {12, 9, 13, 0, 5, 0, 124},
+    {12, 7, 13, 0, 5, 0, 124},
+    {21, 0, 0, 0, 5, 0, 124},
+    {13, 0, 0, 0, 5, 0, 124},
+    {7, 0, 0, 0, 5, 0, 123},
+    {10, 0, 0, 0, 5, 0, 123},
+    {12, 0, 13, 0, 5, 0, 123},
+    {12, 9, 13, 0, 5, 0, 123},
+    {12, 7, 13, 0, 5, 0, 123},
+    {21, 0, 0, 0, 5, 0, 123},
+    {7, 0, 0, 0, 5, 0, 114},
+    {10, 0, 0, 0, 5, 0, 114},
+    {12, 0, 13, 0, 5, 0, 114},
+    {12, 9, 13, 0, 5, 0, 114},
+    {21, 0, 0, 0, 5, 0, 114},
+    {13, 0, 0, 0, 5, 0, 114},
+    {7, 0, 0, 0, 5, 0, 101},
+    {12, 0, 13, 0, 5, 0, 101},
+    {10, 0, 0, 0, 5, 0, 101},
+    {10, 9, 0, 0, 5, 0, 101},
+    {12, 7, 13, 0, 5, 0, 101},
+    {13, 0, 0, 0, 5, 0, 101},
+    {9, 0, 0, 0, 5, 0, 125},
+    {5, 0, 0, 0, 5, 0, 125},
+    {13, 0, 0, 0, 5, 0, 125},
+    {15, 0, 0, 0, 5, 0, 125},
+    {7, 0, 0, 0, 5, 0, 125},
+    {7, 0, 0, 0, 5, 0, 121},
+    {7, 0, 0, 0, 5, 0, 62},
+    {14, 0, 0, 0, 5, 0, 62},
+    {21, 0, 0, 0, 5, 0, 62},
+    {7, 0, 0, 0, 5, 0, 80},
+    {7, 0, 0, 0, 5, 0, 115},
+    {13, 0, 0, 0, 5, 0, 115},
+    {21, 0, 0, 0, 5, 0, 115},
+    {7, 0, 0, 0, 5, 0, 103},
+    {12, 1, 13, 0, 5, 0, 103},
+    {21, 0, 0, 0, 5, 0, 103},
+    {7, 0, 0, 0, 5, 0, 119},
+    {12, 230, 13, 0, 5, 0, 119},
+    {21, 0, 0, 0, 5, 0, 119},
+    {26, 0, 0, 0, 5, 0, 119},
+    {6, 0, 0, 0, 5, 0, 119},
+    {13, 0, 0, 0, 5, 0, 119},
+    {15, 0, 0, 0, 5, 0, 119},
+    {7, 0, 0, 0, 5, 0, 98},
+    {10, 0, 0, 0, 5, 0, 98},
+    {12, 0, 13, 0, 5, 0, 98},
+    {6, 0, 0, 0, 5, 0, 98},
+    {7, 0, 0, 0, 5, 0, 105},
+    {26, 0, 0, 0, 5, 0, 105},
+    {12, 0, 13, 0, 5, 0, 105},
+    {12, 1, 13, 0, 5, 0, 105},
+    {21, 0, 0, 0, 5, 0, 105},
+    {10, 216, 0, 0, 5, 0, 0},
+    {10, 226, 0, 0, 5, 0, 0},
+    {12, 230, 13, 0, 5, 0, 2},
+    {25, 0, 0, 0, 5, 0, 0},
+    {13, 0, 8, 0, 5, 0, 0},
+    {7, 0, 3, 0, 5, 0, 113},
+    {15, 0, 3, 0, 5, 0, 113},
+    {12, 220, 13, 0, 5, 0, 113},
+    {26, 0, 0, 0, 2, 0, 32},
+};
+
+#define BIDI_MIRROR_LEN 364
+static const MirrorPair mirror_pairs[] = {
+    {40, 41},
+    {41, 40},
+    {60, 62},
+    {62, 60},
+    {91, 93},
+    {93, 91},
+    {123, 125},
+    {125, 123},
+    {171, 187},
+    {187, 171},
+    {3898, 3899},
+    {3899, 3898},
+    {3900, 3901},
+    {3901, 3900},
+    {5787, 5788},
+    {5788, 5787},
+    {8249, 8250},
+    {8250, 8249},
+    {8261, 8262},
+    {8262, 8261},
+    {8317, 8318},
+    {8318, 8317},
+    {8333, 8334},
+    {8334, 8333},
+    {8712, 8715},
+    {8713, 8716},
+    {8714, 8717},
+    {8715, 8712},
+    {8716, 8713},
+    {8717, 8714},
+    {8725, 10741},
+    {8764, 8765},
+    {8765, 8764},
+    {8771, 8909},
+    {8786, 8787},
+    {8787, 8786},
+    {8788, 8789},
+    {8789, 8788},
+    {8804, 8805},
+    {8805, 8804},
+    {8806, 8807},
+    {8807, 8806},
+    {8808, 8809},
+    {8809, 8808},
+    {8810, 8811},
+    {8811, 8810},
+    {8814, 8815},
+    {8815, 8814},
+    {8816, 8817},
+    {8817, 8816},
+    {8818, 8819},
+    {8819, 8818},
+    {8820, 8821},
+    {8821, 8820},
+    {8822, 8823},
+    {8823, 8822},
+    {8824, 8825},
+    {8825, 8824},
+    {8826, 8827},
+    {8827, 8826},
+    {8828, 8829},
+    {8829, 8828},
+    {8830, 8831},
+    {8831, 8830},
+    {8832, 8833},
+    {8833, 8832},
+    {8834, 8835},
+    {8835, 8834},
+    {8836, 8837},
+    {8837, 8836},
+    {8838, 8839},
+    {8839, 8838},
+    {8840, 8841},
+    {8841, 8840},
+    {8842, 8843},
+    {8843, 8842},
+    {8847, 8848},
+    {8848, 8847},
+    {8849, 8850},
+    {8850, 8849},
+    {8856, 10680},
+    {8866, 8867},
+    {8867, 8866},
+    {8870, 10974},
+    {8872, 10980},
+    {8873, 10979},
+    {8875, 10981},
+    {8880, 8881},
+    {8881, 8880},
+    {8882, 8883},
+    {8883, 8882},
+    {8884, 8885},
+    {8885, 8884},
+    {8886, 8887},
+    {8887, 8886},
+    {8905, 8906},
+    {8906, 8905},
+    {8907, 8908},
+    {8908, 8907},
+    {8909, 8771},
+    {8912, 8913},
+    {8913, 8912},
+    {8918, 8919},
+    {8919, 8918},
+    {8920, 8921},
+    {8921, 8920},
+    {8922, 8923},
+    {8923, 8922},
+    {8924, 8925},
+    {8925, 8924},
+    {8926, 8927},
+    {8927, 8926},
+    {8928, 8929},
+    {8929, 8928},
+    {8930, 8931},
+    {8931, 8930},
+    {8932, 8933},
+    {8933, 8932},
+    {8934, 8935},
+    {8935, 8934},
+    {8936, 8937},
+    {8937, 8936},
+    {8938, 8939},
+    {8939, 8938},
+    {8940, 8941},
+    {8941, 8940},
+    {8944, 8945},
+    {8945, 8944},
+    {8946, 8954},
+    {8947, 8955},
+    {8948, 8956},
+    {8950, 8957},
+    {8951, 8958},
+    {8954, 8946},
+    {8955, 8947},
+    {8956, 8948},
+    {8957, 8950},
+    {8958, 8951},
+    {8968, 8969},
+    {8969, 8968},
+    {8970, 8971},
+    {8971, 8970},
+    {9001, 9002},
+    {9002, 9001},
+    {10088, 10089},
+    {10089, 10088},
+    {10090, 10091},
+    {10091, 10090},
+    {10092, 10093},
+    {10093, 10092},
+    {10094, 10095},
+    {10095, 10094},
+    {10096, 10097},
+    {10097, 10096},
+    {10098, 10099},
+    {10099, 10098},
+    {10100, 10101},
+    {10101, 10100},
+    {10179, 10180},
+    {10180, 10179},
+    {10181, 10182},
+    {10182, 10181},
+    {10184, 10185},
+    {10185, 10184},
+    {10187, 10189},
+    {10189, 10187},
+    {10197, 10198},
+    {10198, 10197},
+    {10205, 10206},
+    {10206, 10205},
+    {10210, 10211},
+    {10211, 10210},
+    {10212, 10213},
+    {10213, 10212},
+    {10214, 10215},
+    {10215, 10214},
+    {10216, 10217},
+    {10217, 10216},
+    {10218, 10219},
+    {10219, 10218},
+    {10220, 10221},
+    {10221, 10220},
+    {10222, 10223},
+    {10223, 10222},
+    {10627, 10628},
+    {10628, 10627},
+    {10629, 10630},
+    {10630, 10629},
+    {10631, 10632},
+    {10632, 10631},
+    {10633, 10634},
+    {10634, 10633},
+    {10635, 10636},
+    {10636, 10635},
+    {10637, 10640},
+    {10638, 10639},
+    {10639, 10638},
+    {10640, 10637},
+    {10641, 10642},
+    {10642, 10641},
+    {10643, 10644},
+    {10644, 10643},
+    {10645, 10646},
+    {10646, 10645},
+    {10647, 10648},
+    {10648, 10647},
+    {10680, 8856},
+    {10688, 10689},
+    {10689, 10688},
+    {10692, 10693},
+    {10693, 10692},
+    {10703, 10704},
+    {10704, 10703},
+    {10705, 10706},
+    {10706, 10705},
+    {10708, 10709},
+    {10709, 10708},
+    {10712, 10713},
+    {10713, 10712},
+    {10714, 10715},
+    {10715, 10714},
+    {10741, 8725},
+    {10744, 10745},
+    {10745, 10744},
+    {10748, 10749},
+    {10749, 10748},
+    {10795, 10796},
+    {10796, 10795},
+    {10797, 10798},
+    {10798, 10797},
+    {10804, 10805},
+    {10805, 10804},
+    {10812, 10813},
+    {10813, 10812},
+    {10852, 10853},
+    {10853, 10852},
+    {10873, 10874},
+    {10874, 10873},
+    {10877, 10878},
+    {10878, 10877},
+    {10879, 10880},
+    {10880, 10879},
+    {10881, 10882},
+    {10882, 10881},
+    {10883, 10884},
+    {10884, 10883},
+    {10891, 10892},
+    {10892, 10891},
+    {10897, 10898},
+    {10898, 10897},
+    {10899, 10900},
+    {10900, 10899},
+    {10901, 10902},
+    {10902, 10901},
+    {10903, 10904},
+    {10904, 10903},
+    {10905, 10906},
+    {10906, 10905},
+    {10907, 10908},
+    {10908, 10907},
+    {10913, 10914},
+    {10914, 10913},
+    {10918, 10919},
+    {10919, 10918},
+    {10920, 10921},
+    {10921, 10920},
+    {10922, 10923},
+    {10923, 10922},
+    {10924, 10925},
+    {10925, 10924},
+    {10927, 10928},
+    {10928, 10927},
+    {10931, 10932},
+    {10932, 10931},
+    {10939, 10940},
+    {10940, 10939},
+    {10941, 10942},
+    {10942, 10941},
+    {10943, 10944},
+    {10944, 10943},
+    {10945, 10946},
+    {10946, 10945},
+    {10947, 10948},
+    {10948, 10947},
+    {10949, 10950},
+    {10950, 10949},
+    {10957, 10958},
+    {10958, 10957},
+    {10959, 10960},
+    {10960, 10959},
+    {10961, 10962},
+    {10962, 10961},
+    {10963, 10964},
+    {10964, 10963},
+    {10965, 10966},
+    {10966, 10965},
+    {10974, 8870},
+    {10979, 8873},
+    {10980, 8872},
+    {10981, 8875},
+    {10988, 10989},
+    {10989, 10988},
+    {10999, 11000},
+    {11000, 10999},
+    {11001, 11002},
+    {11002, 11001},
+    {11778, 11779},
+    {11779, 11778},
+    {11780, 11781},
+    {11781, 11780},
+    {11785, 11786},
+    {11786, 11785},
+    {11788, 11789},
+    {11789, 11788},
+    {11804, 11805},
+    {11805, 11804},
+    {11808, 11809},
+    {11809, 11808},
+    {11810, 11811},
+    {11811, 11810},
+    {11812, 11813},
+    {11813, 11812},
+    {11814, 11815},
+    {11815, 11814},
+    {11816, 11817},
+    {11817, 11816},
+    {12296, 12297},
+    {12297, 12296},
+    {12298, 12299},
+    {12299, 12298},
+    {12300, 12301},
+    {12301, 12300},
+    {12302, 12303},
+    {12303, 12302},
+    {12304, 12305},
+    {12305, 12304},
+    {12308, 12309},
+    {12309, 12308},
+    {12310, 12311},
+    {12311, 12310},
+    {12312, 12313},
+    {12313, 12312},
+    {12314, 12315},
+    {12315, 12314},
+    {65113, 65114},
+    {65114, 65113},
+    {65115, 65116},
+    {65116, 65115},
+    {65117, 65118},
+    {65118, 65117},
+    {65124, 65125},
+    {65125, 65124},
+    {65288, 65289},
+    {65289, 65288},
+    {65308, 65310},
+    {65310, 65308},
+    {65339, 65341},
+    {65341, 65339},
+    {65371, 65373},
+    {65373, 65371},
+    {65375, 65376},
+    {65376, 65375},
+    {65378, 65379},
+    {65379, 65378},
+};
+
+/* Reindexing of NFC first characters. */
+#define TOTAL_FIRST 376
+#define TOTAL_LAST 62
+static const Reindex nfc_first[] = {
+  { 60, 2, 0},
+  { 65, 15, 3},
+  { 82, 8, 19},
+  { 97, 15, 28},
+  { 114, 8, 44},
+  { 168, 0, 53},
+  { 194, 0, 54},
+  { 196, 3, 55},
+  { 202, 0, 59},
+  { 207, 0, 60},
+  { 212, 2, 61},
+  { 216, 0, 64},
+  { 220, 0, 65},
+  { 226, 0, 66},
+  { 228, 3, 67},
+  { 234, 0, 71},
+  { 239, 0, 72},
+  { 244, 2, 73},
+  { 248, 0, 76},
+  { 252, 0, 77},
+  { 258, 1, 78},
+  { 274, 1, 80},
+  { 332, 1, 82},
+  { 346, 1, 84},
+  { 352, 1, 86},
+  { 360, 3, 88},
+  { 383, 0, 92},
+  { 416, 1, 93},
+  { 431, 1, 95},
+  { 439, 0, 97},
+  { 490, 1, 98},
+  { 550, 3, 100},
+  { 558, 1, 104},
+  { 658, 0, 106},
+  { 913, 0, 107},
+  { 917, 0, 108},
+  { 919, 0, 109},
+  { 921, 0, 110},
+  { 927, 0, 111},
+  { 929, 0, 112},
+  { 933, 0, 113},
+  { 937, 0, 114},
+  { 940, 0, 115},
+  { 942, 0, 116},
+  { 945, 0, 117},
+  { 949, 0, 118},
+  { 951, 0, 119},
+  { 953, 0, 120},
+  { 959, 0, 121},
+  { 961, 0, 122},
+  { 965, 0, 123},
+  { 969, 2, 124},
+  { 974, 0, 127},
+  { 978, 0, 128},
+  { 1030, 0, 129},
+  { 1040, 0, 130},
+  { 1043, 0, 131},
+  { 1045, 3, 132},
+  { 1050, 0, 136},
+  { 1054, 0, 137},
+  { 1059, 0, 138},
+  { 1063, 0, 139},
+  { 1067, 0, 140},
+  { 1069, 0, 141},
+  { 1072, 0, 142},
+  { 1075, 0, 143},
+  { 1077, 3, 144},
+  { 1082, 0, 148},
+  { 1086, 0, 149},
+  { 1091, 0, 150},
+  { 1095, 0, 151},
+  { 1099, 0, 152},
+  { 1101, 0, 153},
+  { 1110, 0, 154},
+  { 1140, 1, 155},
+  { 1240, 1, 157},
+  { 1256, 1, 159},
+  { 1575, 0, 161},
+  { 1608, 0, 162},
+  { 1610, 0, 163},
+  { 1729, 0, 164},
+  { 1746, 0, 165},
+  { 1749, 0, 166},
+  { 2344, 0, 167},
+  { 2352, 0, 168},
+  { 2355, 0, 169},
+  { 2503, 0, 170},
+  { 2887, 0, 171},
+  { 2962, 0, 172},
+  { 3014, 1, 173},
+  { 3142, 0, 175},
+  { 3263, 0, 176},
+  { 3270, 0, 177},
+  { 3274, 0, 178},
+  { 3398, 1, 179},
+  { 3545, 0, 181},
+  { 3548, 0, 182},
+  { 4133, 0, 183},
+  { 6917, 0, 184},
+  { 6919, 0, 185},
+  { 6921, 0, 186},
+  { 6923, 0, 187},
+  { 6925, 0, 188},
+  { 6929, 0, 189},
+  { 6970, 0, 190},
+  { 6972, 0, 191},
+  { 6974, 1, 192},
+  { 6978, 0, 194},
+  { 7734, 1, 195},
+  { 7770, 1, 197},
+  { 7778, 1, 199},
+  { 7840, 1, 201},
+  { 7864, 1, 203},
+  { 7884, 1, 205},
+  { 7936, 17, 207},
+  { 7960, 1, 225},
+  { 7968, 17, 227},
+  { 7992, 1, 245},
+  { 8000, 1, 247},
+  { 8008, 1, 249},
+  { 8016, 1, 251},
+  { 8025, 0, 253},
+  { 8032, 16, 254},
+  { 8052, 0, 271},
+  { 8060, 0, 272},
+  { 8118, 0, 273},
+  { 8127, 0, 274},
+  { 8134, 0, 275},
+  { 8182, 0, 276},
+  { 8190, 0, 277},
+  { 8592, 0, 278},
+  { 8594, 0, 279},
+  { 8596, 0, 280},
+  { 8656, 0, 281},
+  { 8658, 0, 282},
+  { 8660, 0, 283},
+  { 8707, 0, 284},
+  { 8712, 0, 285},
+  { 8715, 0, 286},
+  { 8739, 0, 287},
+  { 8741, 0, 288},
+  { 8764, 0, 289},
+  { 8771, 0, 290},
+  { 8773, 0, 291},
+  { 8776, 0, 292},
+  { 8781, 0, 293},
+  { 8801, 0, 294},
+  { 8804, 1, 295},
+  { 8818, 1, 297},
+  { 8822, 1, 299},
+  { 8826, 3, 301},
+  { 8834, 1, 305},
+  { 8838, 1, 307},
+  { 8849, 1, 309},
+  { 8866, 0, 311},
+  { 8872, 1, 312},
+  { 8875, 0, 314},
+  { 8882, 3, 315},
+  { 12358, 0, 319},
+  { 12363, 0, 320},
+  { 12365, 0, 321},
+  { 12367, 0, 322},
+  { 12369, 0, 323},
+  { 12371, 0, 324},
+  { 12373, 0, 325},
+  { 12375, 0, 326},
+  { 12377, 0, 327},
+  { 12379, 0, 328},
+  { 12381, 0, 329},
+  { 12383, 0, 330},
+  { 12385, 0, 331},
+  { 12388, 0, 332},
+  { 12390, 0, 333},
+  { 12392, 0, 334},
+  { 12399, 0, 335},
+  { 12402, 0, 336},
+  { 12405, 0, 337},
+  { 12408, 0, 338},
+  { 12411, 0, 339},
+  { 12445, 0, 340},
+  { 12454, 0, 341},
+  { 12459, 0, 342},
+  { 12461, 0, 343},
+  { 12463, 0, 344},
+  { 12465, 0, 345},
+  { 12467, 0, 346},
+  { 12469, 0, 347},
+  { 12471, 0, 348},
+  { 12473, 0, 349},
+  { 12475, 0, 350},
+  { 12477, 0, 351},
+  { 12479, 0, 352},
+  { 12481, 0, 353},
+  { 12484, 0, 354},
+  { 12486, 0, 355},
+  { 12488, 0, 356},
+  { 12495, 0, 357},
+  { 12498, 0, 358},
+  { 12501, 0, 359},
+  { 12504, 0, 360},
+  { 12507, 0, 361},
+  { 12527, 3, 362},
+  { 12541, 0, 366},
+  { 69785, 0, 367},
+  { 69787, 0, 368},
+  { 69797, 0, 369},
+  { 69937, 1, 370},
+  { 70471, 0, 372},
+  { 70841, 0, 373},
+  { 71096, 1, 374},
+  {0,0,0}
+};
+
+static const Reindex nfc_last[] = {
+  { 768, 4, 0},
+  { 774, 6, 5},
+  { 783, 0, 12},
+  { 785, 0, 13},
+  { 787, 1, 14},
+  { 795, 0, 16},
+  { 803, 5, 17},
+  { 813, 1, 23},
+  { 816, 1, 25},
+  { 824, 0, 27},
+  { 834, 0, 28},
+  { 837, 0, 29},
+  { 1619, 2, 30},
+  { 2364, 0, 33},
+  { 2494, 0, 34},
+  { 2519, 0, 35},
+  { 2878, 0, 36},
+  { 2902, 1, 37},
+  { 3006, 0, 39},
+  { 3031, 0, 40},
+  { 3158, 0, 41},
+  { 3266, 0, 42},
+  { 3285, 1, 43},
+  { 3390, 0, 45},
+  { 3415, 0, 46},
+  { 3530, 0, 47},
+  { 3535, 0, 48},
+  { 3551, 0, 49},
+  { 4142, 0, 50},
+  { 6965, 0, 51},
+  { 12441, 1, 52},
+  { 69818, 0, 54},
+  { 69927, 0, 55},
+  { 70462, 0, 56},
+  { 70487, 0, 57},
+  { 70832, 0, 58},
+  { 70842, 0, 59},
+  { 70845, 0, 60},
+  { 71087, 0, 61},
+  {0,0,0}
+};
+
+#define UCDN_EAST_ASIAN_F 0
+#define UCDN_EAST_ASIAN_H 1
+#define UCDN_EAST_ASIAN_W 2
+#define UCDN_EAST_ASIAN_NA 3
+#define UCDN_EAST_ASIAN_A 4
+#define UCDN_EAST_ASIAN_N 5
+
+#define UCDN_SCRIPT_COMMON 0
+#define UCDN_SCRIPT_LATIN 1
+#define UCDN_SCRIPT_GREEK 2
+#define UCDN_SCRIPT_CYRILLIC 3
+#define UCDN_SCRIPT_ARMENIAN 4
+#define UCDN_SCRIPT_HEBREW 5
+#define UCDN_SCRIPT_ARABIC 6
+#define UCDN_SCRIPT_SYRIAC 7
+#define UCDN_SCRIPT_THAANA 8
+#define UCDN_SCRIPT_DEVANAGARI 9
+#define UCDN_SCRIPT_BENGALI 10
+#define UCDN_SCRIPT_GURMUKHI 11
+#define UCDN_SCRIPT_GUJARATI 12
+#define UCDN_SCRIPT_ORIYA 13
+#define UCDN_SCRIPT_TAMIL 14
+#define UCDN_SCRIPT_TELUGU 15
+#define UCDN_SCRIPT_KANNADA 16
+#define UCDN_SCRIPT_MALAYALAM 17
+#define UCDN_SCRIPT_SINHALA 18
+#define UCDN_SCRIPT_THAI 19
+#define UCDN_SCRIPT_LAO 20
+#define UCDN_SCRIPT_TIBETAN 21
+#define UCDN_SCRIPT_MYANMAR 22
+#define UCDN_SCRIPT_GEORGIAN 23
+#define UCDN_SCRIPT_HANGUL 24
+#define UCDN_SCRIPT_ETHIOPIC 25
+#define UCDN_SCRIPT_CHEROKEE 26
+#define UCDN_SCRIPT_CANADIAN_ABORIGINAL 27
+#define UCDN_SCRIPT_OGHAM 28
+#define UCDN_SCRIPT_RUNIC 29
+#define UCDN_SCRIPT_KHMER 30
+#define UCDN_SCRIPT_MONGOLIAN 31
+#define UCDN_SCRIPT_HIRAGANA 32
+#define UCDN_SCRIPT_KATAKANA 33
+#define UCDN_SCRIPT_BOPOMOFO 34
+#define UCDN_SCRIPT_HAN 35
+#define UCDN_SCRIPT_YI 36
+#define UCDN_SCRIPT_OLD_ITALIC 37
+#define UCDN_SCRIPT_GOTHIC 38
+#define UCDN_SCRIPT_DESERET 39
+#define UCDN_SCRIPT_INHERITED 40
+#define UCDN_SCRIPT_TAGALOG 41
+#define UCDN_SCRIPT_HANUNOO 42
+#define UCDN_SCRIPT_BUHID 43
+#define UCDN_SCRIPT_TAGBANWA 44
+#define UCDN_SCRIPT_LIMBU 45
+#define UCDN_SCRIPT_TAI_LE 46
+#define UCDN_SCRIPT_LINEAR_B 47
+#define UCDN_SCRIPT_UGARITIC 48
+#define UCDN_SCRIPT_SHAVIAN 49
+#define UCDN_SCRIPT_OSMANYA 50
+#define UCDN_SCRIPT_CYPRIOT 51
+#define UCDN_SCRIPT_BRAILLE 52
+#define UCDN_SCRIPT_BUGINESE 53
+#define UCDN_SCRIPT_COPTIC 54
+#define UCDN_SCRIPT_NEW_TAI_LUE 55
+#define UCDN_SCRIPT_GLAGOLITIC 56
+#define UCDN_SCRIPT_TIFINAGH 57
+#define UCDN_SCRIPT_SYLOTI_NAGRI 58
+#define UCDN_SCRIPT_OLD_PERSIAN 59
+#define UCDN_SCRIPT_KHAROSHTHI 60
+#define UCDN_SCRIPT_BALINESE 61
+#define UCDN_SCRIPT_CUNEIFORM 62
+#define UCDN_SCRIPT_PHOENICIAN 63
+#define UCDN_SCRIPT_PHAGS_PA 64
+#define UCDN_SCRIPT_NKO 65
+#define UCDN_SCRIPT_SUNDANESE 66
+#define UCDN_SCRIPT_LEPCHA 67
+#define UCDN_SCRIPT_OL_CHIKI 68
+#define UCDN_SCRIPT_VAI 69
+#define UCDN_SCRIPT_SAURASHTRA 70
+#define UCDN_SCRIPT_KAYAH_LI 71
+#define UCDN_SCRIPT_REJANG 72
+#define UCDN_SCRIPT_LYCIAN 73
+#define UCDN_SCRIPT_CARIAN 74
+#define UCDN_SCRIPT_LYDIAN 75
+#define UCDN_SCRIPT_CHAM 76
+#define UCDN_SCRIPT_TAI_THAM 77
+#define UCDN_SCRIPT_TAI_VIET 78
+#define UCDN_SCRIPT_AVESTAN 79
+#define UCDN_SCRIPT_EGYPTIAN_HIEROGLYPHS 80
+#define UCDN_SCRIPT_SAMARITAN 81
+#define UCDN_SCRIPT_LISU 82
+#define UCDN_SCRIPT_BAMUM 83
+#define UCDN_SCRIPT_JAVANESE 84
+#define UCDN_SCRIPT_MEETEI_MAYEK 85
+#define UCDN_SCRIPT_IMPERIAL_ARAMAIC 86
+#define UCDN_SCRIPT_OLD_SOUTH_ARABIAN 87
+#define UCDN_SCRIPT_INSCRIPTIONAL_PARTHIAN 88
+#define UCDN_SCRIPT_INSCRIPTIONAL_PAHLAVI 89
+#define UCDN_SCRIPT_OLD_TURKIC 90
+#define UCDN_SCRIPT_KAITHI 91
+#define UCDN_SCRIPT_BATAK 92
+#define UCDN_SCRIPT_BRAHMI 93
+#define UCDN_SCRIPT_MANDAIC 94
+#define UCDN_SCRIPT_CHAKMA 95
+#define UCDN_SCRIPT_MEROITIC_CURSIVE 96
+#define UCDN_SCRIPT_MEROITIC_HIEROGLYPHS 97
+#define UCDN_SCRIPT_MIAO 98
+#define UCDN_SCRIPT_SHARADA 99
+#define UCDN_SCRIPT_SORA_SOMPENG 100
+#define UCDN_SCRIPT_TAKRI 101
+#define UCDN_SCRIPT_UNKNOWN 102
+#define UCDN_SCRIPT_BASSA_VAH 103
+#define UCDN_SCRIPT_CAUCASIAN_ALBANIAN 104
+#define UCDN_SCRIPT_DUPLOYAN 105
+#define UCDN_SCRIPT_ELBASAN 106
+#define UCDN_SCRIPT_GRANTHA 107
+#define UCDN_SCRIPT_KHOJKI 108
+#define UCDN_SCRIPT_KHUDAWADI 109
+#define UCDN_SCRIPT_LINEAR_A 110
+#define UCDN_SCRIPT_MAHAJANI 111
+#define UCDN_SCRIPT_MANICHAEAN 112
+#define UCDN_SCRIPT_MENDE_KIKAKUI 113
+#define UCDN_SCRIPT_MODI 114
+#define UCDN_SCRIPT_MRO 115
+#define UCDN_SCRIPT_NABATAEAN 116
+#define UCDN_SCRIPT_OLD_NORTH_ARABIAN 117
+#define UCDN_SCRIPT_OLD_PERMIC 118
+#define UCDN_SCRIPT_PAHAWH_HMONG 119
+#define UCDN_SCRIPT_PALMYRENE 120
+#define UCDN_SCRIPT_PAU_CIN_HAU 121
+#define UCDN_SCRIPT_PSALTER_PAHLAVI 122
+#define UCDN_SCRIPT_SIDDHAM 123
+#define UCDN_SCRIPT_TIRHUTA 124
+#define UCDN_SCRIPT_WARANG_CITI 125
+
+#define UCDN_GENERAL_CATEGORY_CC 0
+#define UCDN_GENERAL_CATEGORY_CF 1
+#define UCDN_GENERAL_CATEGORY_CN 2
+#define UCDN_GENERAL_CATEGORY_CO 3
+#define UCDN_GENERAL_CATEGORY_CS 4
+#define UCDN_GENERAL_CATEGORY_LL 5
+#define UCDN_GENERAL_CATEGORY_LM 6
+#define UCDN_GENERAL_CATEGORY_LO 7
+#define UCDN_GENERAL_CATEGORY_LT 8
+#define UCDN_GENERAL_CATEGORY_LU 9
+#define UCDN_GENERAL_CATEGORY_MC 10
+#define UCDN_GENERAL_CATEGORY_ME 11
+#define UCDN_GENERAL_CATEGORY_MN 12
+#define UCDN_GENERAL_CATEGORY_ND 13
+#define UCDN_GENERAL_CATEGORY_NL 14
+#define UCDN_GENERAL_CATEGORY_NO 15
+#define UCDN_GENERAL_CATEGORY_PC 16
+#define UCDN_GENERAL_CATEGORY_PD 17
+#define UCDN_GENERAL_CATEGORY_PE 18
+#define UCDN_GENERAL_CATEGORY_PF 19
+#define UCDN_GENERAL_CATEGORY_PI 20
+#define UCDN_GENERAL_CATEGORY_PO 21
+#define UCDN_GENERAL_CATEGORY_PS 22
+#define UCDN_GENERAL_CATEGORY_SC 23
+#define UCDN_GENERAL_CATEGORY_SK 24
+#define UCDN_GENERAL_CATEGORY_SM 25
+#define UCDN_GENERAL_CATEGORY_SO 26
+#define UCDN_GENERAL_CATEGORY_ZL 27
+#define UCDN_GENERAL_CATEGORY_ZP 28
+#define UCDN_GENERAL_CATEGORY_ZS 29
+
+#define UCDN_BIDI_CLASS_L 0
+#define UCDN_BIDI_CLASS_LRE 1
+#define UCDN_BIDI_CLASS_LRO 2
+#define UCDN_BIDI_CLASS_R 3
+#define UCDN_BIDI_CLASS_AL 4
+#define UCDN_BIDI_CLASS_RLE 5
+#define UCDN_BIDI_CLASS_RLO 6
+#define UCDN_BIDI_CLASS_PDF 7
+#define UCDN_BIDI_CLASS_EN 8
+#define UCDN_BIDI_CLASS_ES 9
+#define UCDN_BIDI_CLASS_ET 10
+#define UCDN_BIDI_CLASS_AN 11
+#define UCDN_BIDI_CLASS_CS 12
+#define UCDN_BIDI_CLASS_NSM 13
+#define UCDN_BIDI_CLASS_BN 14
+#define UCDN_BIDI_CLASS_B 15
+#define UCDN_BIDI_CLASS_S 16
+#define UCDN_BIDI_CLASS_WS 17
+#define UCDN_BIDI_CLASS_ON 18
+#define UCDN_BIDI_CLASS_LRI 19
+#define UCDN_BIDI_CLASS_RLI 20
+#define UCDN_BIDI_CLASS_FSI 21
+#define UCDN_BIDI_CLASS_PDI 22
+
+/* index tables for the database records */
+#define SHIFT1 5
+#define SHIFT2 3
+static const unsigned char index0[] = {
+    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 
+    21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 
+    39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 53, 53, 53, 
+    53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 
+    53, 53, 54, 52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 
+    53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 
+    53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 
+    53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 
+    53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 55, 56, 57, 57, 57, 58, 
+    59, 60, 61, 62, 63, 64, 65, 66, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 
+    67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 
+    67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 68, 69, 70, 70, 
+    71, 69, 70, 70, 72, 73, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 75, 76, 77, 78, 79, 80, 81, 
+    82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 70, 96, 70, 97, 
+    98, 99, 100, 101, 102, 103, 70, 104, 70, 105, 70, 70, 70, 70, 70, 106, 
+    106, 106, 107, 108, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 109, 109, 
+    109, 109, 110, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 111, 111, 112, 113, 70, 70, 70, 114, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 115, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 116, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 117, 118, 
+    119, 120, 121, 122, 123, 124, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 125, 70, 70, 70, 70, 70, 126, 70, 127, 128, 129, 130, 
+    131, 132, 133, 134, 135, 70, 70, 70, 70, 70, 70, 70, 52, 53, 53, 53, 53, 
+    53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 
+    53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 
+    53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 
+    53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 
+    53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 
+    53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 
+    53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 
+    53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 
+    53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 136, 
+    52, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 137, 138, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 76, 76, 140, 139, 139, 139, 139, 141, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 
+    139, 139, 139, 141, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 142, 143, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 
+    70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 73, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 144, 73, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 
+    74, 74, 144, 
+};
+
+static const unsigned short index1[] = {
+    0, 1, 0, 2, 3, 4, 5, 6, 7, 8, 8, 9, 10, 11, 11, 12, 13, 0, 0, 0, 14, 15, 
+    16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 29, 31, 32, 
+    33, 34, 35, 27, 30, 29, 27, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 
+    47, 48, 27, 27, 49, 27, 27, 27, 27, 27, 27, 27, 50, 51, 52, 27, 53, 54, 
+    53, 54, 54, 54, 54, 54, 55, 54, 54, 54, 56, 57, 58, 59, 60, 61, 62, 63, 
+    64, 64, 65, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 65, 77, 78, 
+    79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 
+    97, 97, 97, 97, 98, 98, 98, 98, 99, 100, 101, 101, 101, 101, 102, 103, 
+    101, 101, 101, 101, 101, 101, 104, 105, 101, 101, 101, 101, 101, 101, 
+    101, 101, 101, 101, 101, 101, 106, 107, 107, 107, 108, 109, 110, 111, 
+    111, 111, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 121, 
+    121, 122, 123, 120, 124, 125, 126, 127, 128, 128, 128, 128, 129, 130, 
+    131, 132, 133, 134, 135, 128, 128, 128, 128, 128, 128, 128, 128, 128, 
+    128, 128, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 145, 145, 
+    146, 147, 148, 149, 128, 128, 128, 128, 128, 128, 150, 150, 150, 150, 
+    151, 152, 153, 120, 154, 155, 156, 156, 156, 157, 158, 159, 160, 160, 
+    161, 162, 163, 164, 165, 166, 167, 167, 167, 168, 120, 120, 120, 120, 
+    120, 120, 120, 120, 128, 128, 169, 120, 120, 120, 120, 120, 170, 171, 
+    172, 173, 174, 175, 175, 175, 175, 175, 175, 176, 177, 178, 179, 175, 
+    180, 181, 182, 175, 183, 184, 185, 186, 186, 187, 188, 189, 190, 191, 
+    192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 201, 202, 203, 204, 
+    205, 206, 207, 208, 209, 210, 211, 120, 212, 213, 214, 215, 215, 216, 
+    217, 218, 219, 220, 221, 120, 222, 223, 224, 120, 225, 226, 227, 228, 
+    228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 120, 239, 240, 
+    241, 242, 243, 240, 244, 245, 246, 247, 248, 120, 249, 250, 251, 252, 
+    253, 254, 255, 256, 256, 255, 256, 257, 258, 259, 260, 261, 262, 263, 
+    120, 264, 265, 266, 267, 268, 268, 267, 269, 270, 271, 272, 273, 274, 
+    275, 276, 277, 120, 278, 279, 280, 281, 281, 281, 281, 282, 283, 284, 
+    285, 120, 286, 287, 288, 289, 290, 291, 292, 293, 291, 291, 294, 295, 
+    292, 296, 297, 298, 299, 300, 301, 120, 302, 303, 303, 303, 303, 303, 
+    304, 305, 306, 307, 308, 309, 120, 120, 120, 120, 310, 311, 312, 313, 
+    314, 315, 316, 317, 318, 319, 320, 321, 120, 120, 120, 120, 322, 323, 
+    324, 325, 326, 327, 328, 329, 330, 331, 330, 330, 330, 332, 333, 334, 
+    335, 336, 337, 338, 337, 337, 337, 339, 340, 341, 342, 343, 120, 120, 
+    120, 120, 344, 344, 344, 344, 344, 345, 346, 347, 348, 349, 350, 351, 
+    352, 353, 354, 344, 355, 356, 348, 357, 358, 358, 358, 358, 359, 360, 
+    361, 361, 361, 361, 361, 362, 363, 363, 363, 363, 363, 363, 363, 363, 
+    363, 363, 363, 363, 364, 364, 364, 364, 364, 364, 364, 364, 364, 364, 
+    364, 364, 364, 364, 364, 364, 364, 364, 364, 364, 365, 365, 365, 365, 
+    365, 365, 365, 365, 365, 366, 367, 366, 365, 365, 365, 365, 365, 366, 
+    365, 365, 365, 365, 366, 367, 366, 365, 367, 365, 365, 365, 365, 365, 
+    365, 365, 366, 365, 365, 365, 365, 365, 365, 365, 365, 368, 369, 370, 
+    371, 372, 365, 365, 373, 374, 375, 375, 375, 375, 375, 375, 375, 375, 
+    375, 375, 376, 120, 377, 378, 378, 378, 378, 378, 378, 378, 378, 378, 
+    378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 
+    378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 
+    378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 
+    378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 
+    378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, 379, 378, 378, 
+    380, 381, 381, 382, 383, 383, 383, 383, 383, 383, 383, 383, 383, 384, 
+    385, 386, 387, 388, 389, 120, 390, 390, 391, 120, 392, 392, 393, 120, 
+    394, 395, 396, 120, 397, 397, 397, 397, 397, 397, 398, 399, 400, 401, 
+    402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 412, 412, 412, 
+    413, 412, 412, 412, 412, 412, 412, 120, 412, 412, 412, 412, 412, 414, 
+    378, 378, 378, 378, 378, 378, 378, 378, 415, 120, 416, 416, 416, 417, 
+    418, 419, 420, 421, 422, 423, 424, 424, 424, 425, 426, 120, 427, 427, 
+    427, 427, 427, 428, 429, 429, 430, 431, 432, 433, 434, 434, 434, 434, 
+    435, 435, 436, 437, 438, 438, 438, 438, 438, 438, 439, 440, 441, 442, 
+    443, 444, 445, 446, 445, 446, 447, 448, 449, 450, 120, 120, 120, 120, 
+    120, 120, 120, 120, 451, 452, 452, 452, 452, 452, 453, 454, 455, 456, 
+    457, 458, 459, 460, 461, 462, 463, 464, 464, 464, 465, 466, 467, 468, 
+    469, 469, 469, 469, 470, 471, 472, 473, 474, 474, 474, 474, 475, 476, 
+    477, 478, 479, 480, 481, 482, 483, 483, 483, 484, 120, 120, 120, 120, 
+    120, 120, 120, 120, 485, 120, 486, 487, 488, 489, 490, 491, 54, 54, 54, 
+    54, 492, 493, 56, 56, 56, 56, 56, 494, 495, 496, 54, 497, 54, 54, 54, 
+    498, 56, 56, 56, 499, 500, 501, 502, 503, 503, 503, 504, 505, 27, 27, 27, 
+    27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 506, 507, 27, 
+    27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 508, 509, 510, 511, 508, 509, 
+    508, 509, 510, 511, 508, 512, 508, 509, 508, 510, 508, 513, 508, 513, 
+    508, 513, 514, 515, 516, 517, 518, 519, 508, 520, 521, 522, 523, 524, 
+    525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 
+    539, 540, 56, 541, 542, 543, 542, 544, 120, 120, 545, 546, 547, 548, 549, 
+    120, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 
+    563, 562, 564, 565, 566, 567, 568, 569, 570, 571, 572, 571, 573, 574, 
+    571, 575, 571, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 
+    587, 588, 589, 590, 591, 586, 586, 592, 593, 594, 595, 596, 586, 586, 
+    597, 577, 598, 599, 586, 586, 600, 586, 586, 571, 601, 602, 571, 603, 
+    604, 605, 606, 606, 606, 606, 606, 606, 606, 606, 607, 571, 571, 608, 
+    609, 577, 577, 610, 571, 571, 571, 571, 576, 611, 571, 571, 612, 571, 
+    571, 571, 571, 613, 120, 120, 120, 571, 612, 120, 120, 614, 614, 614, 
+    614, 614, 615, 615, 616, 617, 617, 617, 617, 617, 617, 617, 617, 617, 
+    618, 614, 614, 619, 619, 619, 619, 619, 619, 619, 619, 619, 620, 619, 
+    619, 619, 619, 620, 571, 619, 619, 621, 571, 622, 572, 623, 624, 625, 
+    626, 572, 571, 621, 575, 571, 577, 627, 628, 624, 629, 571, 571, 571, 
+    571, 630, 571, 571, 571, 631, 632, 571, 571, 571, 571, 571, 633, 571, 
+    634, 571, 633, 635, 636, 619, 619, 637, 619, 619, 619, 571, 571, 571, 
+    571, 571, 571, 571, 638, 571, 571, 575, 571, 571, 639, 640, 614, 641, 
+    641, 642, 571, 571, 571, 571, 571, 643, 644, 645, 646, 647, 648, 577, 
+    577, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 
+    649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 649, 
+    649, 649, 649, 649, 649, 577, 577, 577, 577, 577, 577, 577, 577, 577, 
+    577, 577, 577, 577, 577, 577, 577, 650, 651, 651, 652, 586, 586, 577, 
+    653, 600, 654, 655, 656, 657, 658, 659, 660, 577, 661, 586, 662, 663, 
+    664, 665, 646, 577, 577, 589, 653, 665, 666, 667, 668, 586, 586, 586, 
+    586, 669, 670, 586, 586, 586, 586, 671, 672, 673, 646, 674, 675, 571, 
+    571, 571, 571, 571, 571, 577, 577, 676, 677, 678, 572, 571, 571, 679, 
+    571, 571, 571, 680, 571, 571, 571, 571, 681, 571, 682, 683, 120, 120, 
+    120, 120, 120, 684, 684, 684, 684, 684, 685, 686, 686, 686, 686, 686, 
+    687, 688, 689, 690, 691, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 
+    692, 693, 694, 695, 696, 696, 696, 696, 697, 698, 699, 699, 699, 699, 
+    699, 699, 699, 700, 701, 702, 365, 365, 367, 120, 367, 367, 367, 367, 
+    367, 367, 367, 367, 703, 703, 703, 703, 704, 705, 706, 707, 708, 709, 
+    532, 710, 711, 120, 120, 120, 120, 120, 120, 120, 712, 712, 712, 713, 
+    712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 714, 120, 712, 712, 
+    712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 
+    712, 712, 712, 712, 712, 712, 712, 712, 712, 712, 715, 120, 120, 120, 
+    716, 717, 718, 719, 720, 721, 722, 723, 724, 725, 726, 727, 727, 727, 
+    727, 727, 727, 727, 727, 727, 728, 729, 730, 731, 731, 731, 731, 731, 
+    731, 731, 731, 731, 731, 732, 733, 734, 734, 734, 734, 735, 736, 363, 
+    363, 363, 363, 363, 363, 363, 363, 363, 363, 737, 738, 739, 734, 734, 
+    734, 740, 716, 716, 716, 716, 717, 120, 731, 731, 741, 741, 741, 742, 
+    743, 744, 739, 739, 739, 745, 746, 747, 741, 741, 741, 748, 743, 744, 
+    739, 739, 739, 739, 749, 747, 739, 750, 751, 751, 751, 751, 751, 752, 
+    751, 751, 751, 751, 751, 751, 751, 751, 751, 751, 751, 739, 739, 739, 
+    753, 754, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 739, 755, 
+    739, 739, 739, 753, 756, 757, 757, 757, 757, 757, 757, 757, 757, 757, 
+    757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 
+    757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 
+    757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 
+    757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 
+    757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 
+    757, 757, 757, 757, 757, 757, 758, 759, 571, 571, 571, 571, 571, 571, 
+    571, 571, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 
+    757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 760, 
+    759, 759, 759, 759, 759, 759, 761, 761, 762, 761, 761, 761, 761, 761, 
+    761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 
+    761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 
+    761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 
+    761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 
+    761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 
+    761, 761, 761, 763, 764, 764, 764, 764, 764, 764, 765, 120, 766, 766, 
+    766, 766, 766, 767, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 
+    768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 768, 
+    768, 768, 768, 768, 768, 768, 768, 768, 768, 769, 768, 768, 770, 771, 
+    120, 120, 101, 101, 101, 101, 101, 772, 773, 774, 101, 101, 101, 775, 
+    776, 776, 776, 776, 776, 776, 776, 776, 777, 778, 779, 120, 64, 64, 780, 
+    781, 782, 27, 783, 27, 27, 27, 27, 27, 27, 27, 784, 785, 27, 786, 787, 
+    27, 27, 788, 789, 120, 120, 120, 120, 120, 120, 120, 790, 791, 792, 793, 
+    794, 794, 795, 796, 797, 798, 799, 799, 799, 799, 799, 799, 800, 120, 
+    801, 802, 802, 802, 802, 802, 803, 804, 805, 806, 807, 808, 809, 809, 
+    810, 811, 812, 813, 814, 814, 815, 816, 817, 817, 818, 819, 820, 821, 
+    363, 363, 363, 822, 823, 824, 824, 824, 824, 824, 825, 826, 827, 828, 
+    829, 830, 831, 344, 348, 832, 833, 833, 833, 833, 833, 834, 835, 120, 
+    836, 837, 838, 839, 344, 344, 840, 841, 842, 842, 842, 842, 842, 842, 
+    843, 844, 845, 120, 120, 846, 847, 848, 849, 120, 850, 850, 850, 120, 
+    367, 367, 54, 54, 54, 54, 54, 851, 852, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 847, 847, 847, 847, 853, 854, 855, 856, 857, 
+    858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 
+    858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 
+    858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 
+    858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 
+    858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 
+    858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 858, 859, 
+    120, 364, 364, 860, 861, 364, 364, 364, 364, 364, 862, 863, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 864, 863, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 864, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 864, 865, 
+    866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 
+    866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 
+    866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 
+    866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 
+    866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 
+    866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 
+    866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 867, 868, 868, 868, 
+    868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 
+    868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 
+    868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 
+    869, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 868, 
+    870, 759, 759, 759, 759, 871, 120, 872, 873, 121, 874, 875, 876, 877, 
+    121, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 878, 
+    879, 880, 120, 881, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 
+    128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 
+    128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 
+    128, 128, 128, 128, 128, 128, 882, 120, 120, 128, 128, 128, 128, 128, 
+    128, 128, 128, 883, 128, 128, 128, 128, 128, 128, 120, 120, 120, 120, 
+    120, 128, 884, 885, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 
+    895, 896, 897, 898, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 
+    128, 128, 128, 128, 128, 128, 899, 900, 901, 902, 903, 904, 905, 905, 
+    906, 907, 908, 908, 909, 910, 911, 912, 911, 911, 911, 911, 913, 914, 
+    914, 914, 915, 916, 916, 916, 917, 918, 919, 120, 920, 921, 922, 921, 
+    921, 923, 921, 921, 924, 921, 925, 921, 925, 120, 120, 120, 120, 921, 
+    921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 921, 
+    926, 927, 928, 928, 928, 928, 928, 929, 606, 930, 930, 930, 930, 930, 
+    930, 931, 932, 933, 934, 571, 935, 936, 120, 120, 120, 120, 120, 606, 
+    606, 606, 606, 606, 937, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 938, 938, 938, 939, 940, 940, 940, 
+    940, 940, 940, 941, 120, 942, 943, 943, 944, 945, 945, 945, 945, 946, 
+    120, 947, 947, 948, 949, 950, 950, 950, 950, 951, 952, 953, 953, 953, 
+    954, 955, 955, 955, 955, 956, 955, 957, 120, 120, 120, 120, 120, 958, 
+    958, 958, 958, 958, 959, 959, 959, 959, 959, 960, 960, 960, 960, 960, 
+    960, 961, 961, 961, 962, 963, 964, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 965, 965, 965, 965, 965, 120, 966, 966, 966, 966, 966, 
+    966, 967, 968, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 969, 969, 969, 969, 969, 969, 969, 
+    969, 969, 969, 969, 969, 969, 969, 969, 969, 969, 969, 969, 969, 969, 
+    969, 969, 969, 969, 969, 969, 969, 969, 969, 969, 969, 969, 969, 969, 
+    969, 969, 969, 970, 120, 969, 969, 971, 120, 969, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 972, 973, 974, 974, 974, 974, 975, 976, 977, 977, 978, 979, 980, 
+    980, 981, 982, 983, 983, 983, 984, 985, 986, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 987, 987, 988, 989, 990, 990, 990, 991, 120, 
+    120, 120, 120, 120, 120, 120, 120, 992, 992, 992, 992, 993, 993, 993, 
+    994, 120, 120, 120, 120, 120, 120, 120, 120, 995, 996, 997, 998, 999, 
+    999, 1000, 1001, 1002, 120, 1003, 1004, 1005, 1005, 1005, 1006, 1007, 
+    1007, 1007, 1008, 120, 120, 120, 120, 1009, 1010, 1009, 1009, 1011, 1012, 
+    1013, 120, 1014, 1014, 1014, 1014, 1014, 1014, 1015, 1016, 1017, 1017, 
+    1018, 1019, 1020, 1020, 1021, 1022, 1023, 1023, 1024, 1025, 120, 1026, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 1027, 1027, 1027, 1027, 
+    1027, 1027, 1027, 1027, 1027, 1028, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 1029, 
+    1029, 1029, 1030, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 1031, 1032, 1032, 1032, 1032, 1032, 1032, 1033, 
+    1034, 1035, 1036, 1037, 1038, 1039, 120, 1040, 1041, 1042, 1042, 1042, 
+    1042, 1042, 1043, 1044, 1045, 120, 1046, 1046, 1046, 1047, 1048, 1049, 
+    1050, 1051, 1051, 1051, 1052, 1053, 1054, 1055, 1056, 120, 1057, 1057, 
+    1057, 1057, 1058, 120, 1059, 1060, 1060, 1060, 1060, 1060, 1061, 1062, 
+    1063, 1064, 1065, 1066, 1067, 1068, 1069, 120, 1070, 1070, 1071, 1070, 
+    1070, 1072, 1073, 1074, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 1075, 1075, 1075, 1075, 1075, 1076, 1077, 1078, 1079, 
+    1080, 1081, 1082, 1083, 1084, 1084, 1085, 1086, 1087, 1088, 1089, 1090, 
+    1091, 1092, 1093, 1093, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 1094, 1094, 1094, 1094, 
+    1094, 1094, 1095, 1096, 1097, 120, 1098, 1099, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 1100, 1100, 1100, 1100, 1100, 1101, 1102, 1103, 1104, 1105, 120, 
+    120, 120, 120, 120, 120, 1106, 1106, 1106, 1106, 1106, 1106, 1107, 1108, 
+    1109, 120, 1110, 1111, 120, 120, 120, 120, 1112, 1112, 1112, 1112, 1112, 
+    1113, 1114, 120, 1115, 1116, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 1117, 1117, 1117, 1117, 1118, 1118, 1118, 1118, 1119, 
+    1120, 1121, 1122, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 1123, 
+    1123, 1123, 1123, 1123, 1123, 1123, 1124, 1125, 1125, 1125, 1125, 1125, 
+    1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 
+    1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 
+    1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 
+    1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1125, 1126, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 1127, 1127, 1127, 
+    1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1127, 1128, 1129, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 
+    1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 
+    1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 1130, 
+    1130, 1130, 1130, 1130, 1131, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 
+    776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 
+    776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 776, 
+    776, 1132, 1133, 1133, 1133, 1134, 1135, 1136, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 1137, 1137, 1137, 1138, 1139, 120, 
+    1140, 1140, 1140, 1140, 1140, 1140, 1141, 1142, 1143, 120, 1144, 1145, 
+    1146, 1140, 1140, 1147, 1140, 1140, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 1148, 1148, 1148, 1148, 1148, 1148, 
+    1148, 1148, 1149, 120, 1150, 1151, 1151, 1151, 1151, 1152, 120, 1153, 
+    1154, 1155, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    1156, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 1157, 
+    1157, 1157, 1157, 1157, 1158, 1157, 1159, 1157, 1160, 1157, 1161, 1162, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 606, 606, 606, 
+    606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 
+    606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 1163, 
+    120, 606, 606, 606, 606, 1164, 1165, 606, 606, 606, 606, 606, 606, 1166, 
+    1167, 1168, 1169, 1170, 1171, 606, 606, 606, 1172, 606, 606, 606, 606, 
+    606, 1163, 120, 120, 120, 120, 933, 933, 933, 933, 933, 933, 933, 933, 
+    1173, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 571, 571, 571, 571, 
+    571, 571, 571, 571, 571, 571, 613, 120, 928, 928, 1174, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    1175, 1175, 1175, 1176, 1177, 1177, 1178, 1175, 1175, 1179, 1180, 1177, 
+    1177, 1175, 1175, 1175, 1176, 1177, 1177, 1181, 1182, 1183, 1179, 1184, 
+    1185, 1177, 1175, 1175, 1175, 1176, 1177, 1177, 1186, 1187, 1188, 1189, 
+    1177, 1177, 1177, 1190, 1191, 1192, 1193, 1177, 1177, 1178, 1175, 1175, 
+    1179, 1177, 1177, 1177, 1175, 1175, 1175, 1176, 1177, 1177, 1178, 1175, 
+    1175, 1179, 1177, 1177, 1177, 1175, 1175, 1175, 1176, 1177, 1177, 1178, 
+    1175, 1175, 1179, 1177, 1177, 1177, 1175, 1175, 1175, 1176, 1177, 1177, 
+    1194, 1175, 1175, 1175, 1195, 1177, 1177, 1196, 1197, 1175, 1175, 1198, 
+    1177, 1177, 1199, 1178, 1175, 1175, 1200, 1177, 1177, 1201, 1202, 1175, 
+    1175, 1203, 1177, 1177, 1177, 1204, 1175, 1175, 1175, 1195, 1177, 1177, 
+    1196, 1205, 1206, 1206, 1206, 1206, 1206, 1206, 1207, 1207, 1207, 1207, 
+    1207, 1207, 1207, 1207, 1207, 1207, 1207, 1207, 1207, 1207, 1207, 1207, 
+    1207, 1207, 1207, 1207, 1207, 1207, 1207, 1207, 1208, 1209, 1210, 120, 
+    120, 120, 120, 120, 1211, 128, 128, 128, 1212, 1213, 1214, 1215, 1216, 
+    1217, 1212, 1218, 1212, 1214, 1214, 1219, 128, 1220, 128, 1221, 1222, 
+    1220, 128, 1221, 120, 120, 120, 120, 120, 120, 1223, 120, 571, 571, 571, 
+    571, 571, 935, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 
+    571, 935, 120, 571, 613, 1224, 571, 1224, 571, 1224, 571, 571, 571, 680, 
+    120, 615, 1225, 617, 617, 617, 1226, 617, 617, 617, 617, 617, 617, 617, 
+    1227, 617, 617, 617, 617, 617, 1228, 120, 120, 120, 120, 120, 120, 120, 
+    120, 1229, 606, 606, 606, 1230, 120, 739, 739, 739, 739, 739, 1231, 739, 
+    1232, 1233, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 120, 571, 571, 571, 571, 571, 
+    1234, 571, 571, 571, 571, 571, 571, 571, 571, 571, 680, 571, 571, 571, 
+    571, 571, 571, 571, 571, 571, 613, 1235, 571, 571, 571, 571, 120, 571, 
+    571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 
+    571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 
+    571, 571, 613, 571, 571, 571, 571, 571, 571, 571, 571, 571, 612, 571, 
+    571, 571, 571, 571, 1236, 571, 571, 571, 571, 1237, 571, 571, 571, 571, 
+    571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 
+    571, 1238, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 
+    571, 571, 571, 571, 571, 120, 120, 571, 1234, 935, 120, 571, 571, 571, 
+    571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 571, 935, 120, 571, 
+    571, 571, 571, 571, 571, 571, 571, 571, 571, 1234, 120, 120, 120, 120, 
+    120, 571, 935, 571, 571, 571, 571, 571, 571, 571, 120, 571, 683, 571, 
+    571, 571, 571, 571, 120, 571, 571, 571, 680, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 757, 757, 757, 757, 757, 757, 757, 757, 757, 
+    757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 
+    757, 757, 757, 1239, 759, 759, 759, 759, 759, 757, 757, 757, 757, 757, 
+    757, 760, 759, 756, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 
+    757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 757, 
+    757, 757, 758, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 
+    759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 
+    759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 
+    759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 
+    759, 759, 759, 759, 759, 759, 759, 868, 868, 868, 869, 759, 759, 759, 
+    759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 
+    759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 
+    759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 
+    759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 759, 
+    1240, 1241, 120, 120, 120, 1242, 1242, 1242, 1242, 1242, 1242, 1242, 
+    1242, 1242, 1242, 1242, 1242, 120, 120, 120, 120, 120, 120, 120, 120, 
+    120, 120, 120, 120, 120, 120, 120, 120, 885, 885, 885, 885, 885, 885, 
+    885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 
+    885, 885, 885, 885, 885, 885, 885, 885, 885, 885, 120, 120, 866, 866, 
+    866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 
+    866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 866, 
+    866, 1243, 
+};
+
+static const unsigned short index2[] = {
+    1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 2, 4, 3, 1, 1, 1, 1, 1, 1, 3, 3, 3, 2, 
+    5, 6, 6, 7, 8, 7, 6, 6, 9, 10, 6, 11, 12, 13, 12, 12, 14, 14, 14, 14, 14, 
+    14, 14, 14, 14, 14, 12, 6, 15, 16, 15, 6, 6, 17, 17, 17, 17, 17, 17, 17, 
+    17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 9, 6, 10, 18, 19, 18, 20, 20, 
+    20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 9, 16, 
+    10, 16, 1, 1, 1, 1, 1, 1, 3, 1, 1, 21, 22, 8, 8, 23, 8, 24, 22, 25, 26, 
+    27, 28, 16, 29, 30, 18, 31, 32, 33, 33, 25, 34, 22, 22, 25, 33, 27, 35, 
+    36, 36, 36, 22, 37, 37, 37, 37, 37, 37, 38, 37, 37, 37, 37, 37, 37, 37, 
+    37, 37, 38, 37, 37, 37, 37, 37, 37, 39, 38, 37, 37, 37, 37, 37, 38, 40, 
+    40, 40, 41, 41, 41, 41, 40, 41, 40, 40, 40, 41, 40, 40, 41, 41, 40, 41, 
+    40, 40, 41, 41, 41, 39, 40, 40, 40, 41, 40, 41, 40, 41, 37, 40, 37, 41, 
+    37, 41, 37, 41, 37, 41, 37, 41, 37, 41, 37, 41, 37, 40, 37, 40, 37, 41, 
+    37, 41, 37, 41, 37, 40, 37, 41, 37, 41, 37, 41, 37, 41, 37, 41, 38, 40, 
+    37, 40, 38, 40, 37, 41, 37, 41, 40, 37, 41, 37, 41, 37, 41, 38, 40, 38, 
+    40, 37, 40, 37, 41, 37, 40, 40, 38, 40, 37, 40, 37, 41, 37, 41, 38, 40, 
+    37, 41, 37, 41, 37, 37, 41, 37, 41, 37, 41, 41, 41, 37, 37, 41, 37, 41, 
+    37, 37, 41, 37, 37, 37, 41, 41, 37, 37, 37, 37, 41, 37, 37, 41, 37, 37, 
+    37, 41, 41, 41, 37, 37, 41, 37, 37, 41, 37, 41, 37, 41, 37, 37, 41, 37, 
+    41, 41, 37, 41, 37, 37, 41, 37, 37, 37, 41, 37, 41, 37, 37, 41, 41, 42, 
+    37, 41, 41, 41, 42, 42, 42, 42, 37, 43, 41, 37, 43, 41, 37, 43, 41, 37, 
+    40, 37, 40, 37, 40, 37, 40, 37, 40, 37, 40, 37, 40, 37, 40, 41, 37, 41, 
+    41, 37, 43, 41, 37, 41, 37, 37, 37, 41, 37, 41, 41, 41, 41, 41, 41, 41, 
+    37, 37, 41, 37, 37, 41, 41, 37, 41, 37, 37, 37, 37, 41, 41, 40, 41, 41, 
+    41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 42, 41, 
+    41, 41, 44, 44, 44, 44, 44, 44, 44, 44, 44, 45, 45, 46, 46, 46, 46, 46, 
+    46, 46, 47, 47, 25, 47, 45, 48, 45, 48, 48, 48, 45, 48, 45, 45, 49, 46, 
+    47, 47, 47, 47, 47, 47, 25, 25, 25, 25, 47, 25, 47, 25, 44, 44, 44, 44, 
+    44, 47, 47, 47, 47, 47, 50, 50, 45, 47, 46, 47, 47, 47, 47, 47, 47, 47, 
+    47, 47, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 51, 52, 53, 53, 
+    53, 53, 52, 54, 53, 53, 53, 53, 53, 55, 55, 53, 53, 53, 53, 55, 55, 53, 
+    53, 53, 53, 53, 53, 53, 53, 53, 53, 53, 56, 56, 56, 56, 56, 53, 53, 53, 
+    53, 51, 51, 51, 51, 51, 51, 51, 51, 57, 51, 53, 53, 53, 51, 51, 51, 53, 
+    53, 58, 51, 51, 51, 53, 53, 53, 53, 51, 52, 53, 53, 51, 59, 60, 60, 59, 
+    60, 60, 59, 51, 51, 51, 51, 51, 61, 62, 61, 62, 45, 63, 61, 62, 64, 64, 
+    65, 62, 62, 62, 66, 61, 64, 64, 64, 64, 63, 47, 61, 66, 61, 61, 61, 64, 
+    61, 64, 61, 61, 62, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 
+    67, 67, 67, 67, 64, 67, 67, 67, 67, 67, 67, 67, 61, 61, 62, 62, 62, 62, 
+    62, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 
+    62, 68, 68, 68, 68, 68, 68, 68, 62, 62, 62, 62, 62, 61, 62, 62, 61, 61, 
+    61, 62, 62, 62, 61, 62, 61, 62, 61, 62, 61, 62, 61, 62, 69, 70, 69, 70, 
+    69, 70, 69, 70, 69, 70, 69, 70, 69, 70, 62, 62, 62, 62, 61, 62, 71, 61, 
+    62, 61, 61, 62, 62, 61, 61, 61, 72, 73, 72, 72, 72, 72, 72, 72, 72, 72, 
+    72, 72, 72, 72, 72, 72, 73, 73, 73, 73, 73, 73, 73, 73, 74, 74, 74, 74, 
+    74, 74, 74, 74, 75, 74, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 
+    75, 75, 72, 75, 72, 75, 72, 75, 72, 75, 72, 75, 76, 77, 77, 78, 78, 77, 
+    79, 79, 72, 75, 72, 75, 72, 75, 72, 72, 75, 72, 75, 72, 75, 72, 75, 72, 
+    75, 72, 75, 72, 75, 75, 64, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 
+    80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 64, 64, 81, 82, 82, 82, 82, 
+    82, 82, 64, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 
+    64, 84, 85, 64, 64, 86, 86, 87, 64, 88, 89, 89, 89, 89, 88, 89, 89, 89, 
+    90, 88, 89, 89, 89, 89, 89, 89, 88, 88, 88, 88, 88, 88, 89, 89, 88, 89, 
+    89, 90, 91, 89, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 101, 102, 103, 
+    104, 105, 106, 107, 108, 109, 107, 89, 88, 107, 100, 64, 64, 64, 64, 64, 
+    64, 64, 64, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 64, 
+    64, 64, 64, 64, 110, 110, 110, 107, 107, 64, 64, 64, 111, 111, 111, 111, 
+    111, 112, 113, 113, 114, 115, 115, 116, 117, 118, 119, 119, 120, 120, 
+    120, 120, 120, 120, 120, 120, 121, 122, 123, 124, 125, 64, 118, 124, 126, 
+    126, 126, 126, 126, 126, 126, 126, 127, 126, 126, 126, 126, 126, 126, 
+    126, 126, 126, 126, 128, 129, 130, 131, 132, 133, 134, 135, 78, 78, 136, 
+    137, 120, 120, 120, 120, 120, 137, 120, 120, 137, 138, 138, 138, 138, 
+    138, 138, 138, 138, 138, 138, 115, 139, 139, 118, 126, 126, 140, 126, 
+    126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 118, 126, 120, 120, 
+    120, 120, 120, 120, 120, 112, 119, 120, 120, 120, 120, 137, 120, 141, 
+    141, 120, 120, 119, 137, 120, 120, 137, 126, 126, 142, 142, 142, 142, 
+    142, 142, 142, 142, 142, 142, 126, 126, 126, 143, 143, 126, 144, 144, 
+    144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 144, 64, 145, 146, 
+    147, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, 
+    146, 148, 149, 148, 148, 149, 148, 148, 149, 149, 149, 148, 149, 149, 
+    148, 149, 148, 148, 148, 149, 148, 149, 148, 149, 148, 149, 148, 148, 64, 
+    64, 146, 146, 146, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 
+    150, 150, 150, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 151, 
+    150, 64, 64, 64, 64, 64, 64, 152, 152, 152, 152, 152, 152, 152, 152, 152, 
+    152, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 153, 
+    153, 153, 153, 153, 154, 154, 154, 154, 154, 154, 154, 155, 154, 156, 
+    156, 157, 158, 158, 158, 156, 64, 64, 64, 64, 64, 159, 159, 159, 159, 
+    159, 159, 159, 159, 159, 159, 159, 159, 159, 159, 160, 160, 160, 160, 
+    161, 160, 160, 160, 160, 160, 160, 160, 160, 160, 161, 160, 160, 160, 
+    161, 160, 160, 160, 160, 160, 64, 64, 162, 162, 162, 162, 162, 162, 162, 
+    162, 162, 162, 162, 162, 162, 162, 162, 64, 163, 163, 163, 163, 163, 163, 
+    163, 163, 163, 164, 164, 164, 64, 64, 165, 64, 126, 126, 126, 64, 64, 64, 
+    64, 64, 64, 64, 64, 64, 120, 120, 137, 120, 120, 137, 120, 120, 120, 137, 
+    137, 137, 166, 167, 168, 120, 120, 120, 137, 120, 120, 137, 137, 120, 
+    120, 120, 120, 120, 169, 169, 169, 170, 171, 171, 171, 171, 171, 171, 
+    171, 171, 171, 171, 171, 171, 171, 171, 169, 170, 172, 171, 170, 170, 
+    170, 169, 169, 169, 169, 169, 169, 169, 169, 170, 170, 170, 170, 173, 
+    170, 170, 171, 78, 136, 174, 174, 169, 169, 169, 171, 171, 169, 169, 84, 
+    84, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 176, 177, 171, 171, 
+    171, 171, 171, 171, 178, 179, 180, 180, 64, 178, 178, 178, 178, 178, 178, 
+    178, 178, 64, 64, 178, 178, 64, 64, 178, 178, 178, 178, 178, 178, 178, 
+    178, 178, 178, 178, 178, 178, 178, 64, 178, 178, 178, 178, 178, 178, 178, 
+    64, 178, 64, 64, 64, 178, 178, 178, 178, 64, 64, 181, 178, 180, 180, 180, 
+    179, 179, 179, 179, 64, 64, 180, 180, 64, 64, 180, 180, 182, 178, 64, 64, 
+    64, 64, 64, 64, 64, 64, 180, 64, 64, 64, 64, 178, 178, 64, 178, 178, 178, 
+    179, 179, 64, 64, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 178, 
+    178, 184, 184, 185, 185, 185, 185, 185, 185, 186, 184, 64, 64, 64, 64, 
+    64, 187, 187, 188, 64, 189, 189, 189, 189, 189, 189, 64, 64, 64, 64, 189, 
+    189, 64, 64, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 
+    189, 189, 64, 189, 189, 189, 189, 189, 189, 189, 64, 189, 189, 64, 189, 
+    189, 64, 189, 189, 64, 64, 190, 64, 188, 188, 188, 187, 187, 64, 64, 64, 
+    64, 187, 187, 64, 64, 187, 187, 191, 64, 64, 64, 187, 64, 64, 64, 64, 64, 
+    64, 64, 189, 189, 189, 189, 64, 189, 64, 64, 64, 64, 64, 64, 64, 192, 
+    192, 192, 192, 192, 192, 192, 192, 192, 192, 187, 187, 189, 189, 189, 
+    187, 64, 64, 64, 193, 193, 194, 64, 195, 195, 195, 195, 195, 195, 195, 
+    195, 195, 64, 195, 195, 195, 64, 195, 195, 195, 195, 195, 195, 195, 195, 
+    195, 195, 195, 195, 195, 195, 64, 195, 195, 195, 195, 195, 195, 195, 64, 
+    195, 195, 64, 195, 195, 195, 195, 195, 64, 64, 196, 195, 194, 194, 194, 
+    193, 193, 193, 193, 193, 64, 193, 193, 194, 64, 194, 194, 197, 64, 64, 
+    195, 64, 64, 64, 64, 64, 64, 64, 195, 195, 193, 193, 64, 64, 198, 198, 
+    198, 198, 198, 198, 198, 198, 198, 198, 199, 200, 64, 64, 64, 64, 64, 64, 
+    64, 201, 202, 202, 64, 203, 203, 203, 203, 203, 203, 203, 203, 64, 64, 
+    203, 203, 64, 64, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 203, 
+    203, 203, 203, 64, 203, 203, 203, 203, 203, 203, 203, 64, 203, 203, 64, 
+    203, 203, 203, 203, 203, 64, 64, 204, 203, 202, 201, 202, 201, 201, 201, 
+    201, 64, 64, 202, 202, 64, 64, 202, 202, 205, 64, 64, 64, 64, 64, 64, 64, 
+    64, 201, 202, 64, 64, 64, 64, 203, 203, 64, 203, 203, 203, 201, 201, 64, 
+    64, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 207, 203, 208, 208, 
+    208, 208, 208, 208, 64, 64, 209, 210, 64, 210, 210, 210, 210, 210, 210, 
+    64, 64, 64, 210, 210, 210, 64, 210, 210, 210, 210, 64, 64, 64, 210, 210, 
+    64, 210, 64, 210, 210, 64, 64, 64, 210, 210, 64, 64, 64, 210, 210, 210, 
+    210, 210, 210, 210, 210, 210, 210, 64, 64, 64, 64, 211, 211, 209, 211, 
+    211, 64, 64, 64, 211, 211, 211, 64, 211, 211, 211, 212, 64, 64, 210, 64, 
+    64, 64, 64, 64, 64, 211, 64, 64, 64, 64, 64, 64, 213, 213, 213, 213, 213, 
+    213, 213, 213, 213, 213, 214, 214, 214, 215, 215, 215, 215, 215, 215, 
+    216, 215, 64, 64, 64, 64, 64, 217, 218, 218, 218, 64, 219, 219, 219, 219, 
+    219, 219, 219, 219, 64, 219, 219, 219, 64, 219, 219, 219, 219, 219, 219, 
+    219, 219, 219, 219, 219, 219, 219, 219, 219, 219, 64, 64, 64, 219, 217, 
+    217, 217, 218, 218, 218, 218, 64, 217, 217, 217, 64, 217, 217, 217, 220, 
+    64, 64, 64, 64, 64, 64, 64, 221, 222, 64, 219, 219, 64, 64, 64, 64, 64, 
+    64, 219, 219, 217, 217, 64, 64, 223, 223, 223, 223, 223, 223, 223, 223, 
+    223, 223, 224, 224, 224, 224, 224, 224, 224, 225, 64, 226, 227, 227, 64, 
+    228, 228, 228, 228, 228, 228, 228, 228, 64, 228, 228, 228, 64, 228, 228, 
+    228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 228, 
+    228, 228, 64, 228, 228, 228, 228, 228, 64, 64, 229, 228, 227, 230, 227, 
+    227, 227, 227, 227, 64, 230, 227, 227, 64, 227, 227, 226, 231, 64, 64, 
+    64, 64, 64, 64, 64, 227, 227, 64, 64, 64, 64, 64, 64, 64, 228, 64, 228, 
+    228, 226, 226, 64, 64, 232, 232, 232, 232, 232, 232, 232, 232, 232, 232, 
+    64, 228, 228, 64, 64, 64, 64, 64, 64, 233, 234, 234, 64, 235, 235, 235, 
+    235, 235, 235, 235, 235, 64, 235, 235, 235, 64, 235, 235, 235, 235, 235, 
+    235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 235, 64, 64, 235, 
+    234, 234, 234, 233, 233, 233, 233, 64, 234, 234, 234, 64, 234, 234, 234, 
+    236, 235, 64, 64, 64, 64, 64, 64, 64, 64, 234, 235, 235, 233, 233, 64, 
+    64, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 238, 238, 238, 238, 
+    238, 238, 64, 64, 64, 239, 235, 235, 235, 235, 235, 235, 64, 64, 240, 
+    240, 64, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 241, 
+    241, 241, 241, 241, 241, 64, 64, 64, 241, 241, 241, 241, 241, 241, 241, 
+    241, 64, 241, 241, 241, 241, 241, 241, 241, 241, 241, 64, 241, 64, 64, 
+    64, 64, 242, 64, 64, 64, 64, 240, 240, 240, 243, 243, 243, 64, 243, 64, 
+    240, 240, 240, 240, 240, 240, 240, 240, 64, 64, 64, 64, 64, 64, 244, 244, 
+    244, 244, 244, 244, 244, 244, 244, 244, 64, 64, 240, 240, 245, 64, 64, 
+    64, 64, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 
+    246, 246, 246, 247, 246, 246, 247, 247, 247, 247, 248, 248, 249, 64, 64, 
+    64, 64, 250, 246, 246, 246, 246, 246, 246, 251, 247, 252, 252, 252, 252, 
+    247, 247, 247, 253, 254, 254, 254, 254, 254, 254, 254, 254, 254, 254, 
+    253, 253, 64, 64, 64, 64, 64, 255, 255, 64, 255, 64, 64, 255, 255, 64, 
+    255, 64, 64, 255, 64, 64, 64, 64, 64, 64, 255, 255, 255, 255, 64, 255, 
+    255, 255, 255, 255, 255, 255, 64, 255, 255, 255, 64, 255, 64, 255, 64, 
+    64, 255, 255, 64, 255, 255, 255, 255, 256, 255, 255, 256, 256, 256, 256, 
+    257, 257, 64, 256, 256, 255, 64, 64, 255, 255, 255, 255, 255, 64, 258, 
+    64, 259, 259, 259, 259, 256, 256, 64, 64, 260, 260, 260, 260, 260, 260, 
+    260, 260, 260, 260, 64, 64, 255, 255, 255, 255, 261, 262, 262, 262, 263, 
+    263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 
+    262, 263, 262, 262, 262, 264, 264, 262, 262, 262, 262, 262, 262, 265, 
+    265, 265, 265, 265, 265, 265, 265, 265, 265, 266, 266, 266, 266, 266, 
+    266, 266, 266, 266, 266, 262, 264, 262, 264, 262, 267, 268, 269, 268, 
+    269, 270, 270, 261, 261, 261, 261, 261, 261, 261, 261, 64, 261, 261, 261, 
+    261, 261, 261, 261, 261, 261, 261, 261, 261, 64, 64, 64, 64, 271, 272, 
+    273, 274, 273, 273, 273, 273, 273, 272, 272, 272, 272, 273, 270, 272, 
+    273, 275, 275, 276, 263, 275, 275, 261, 261, 261, 261, 261, 273, 273, 
+    273, 273, 273, 273, 273, 273, 273, 273, 273, 64, 273, 273, 273, 273, 273, 
+    273, 273, 273, 273, 273, 273, 273, 64, 262, 262, 262, 262, 262, 262, 262, 
+    262, 264, 262, 262, 262, 262, 262, 262, 64, 262, 262, 263, 263, 263, 263, 
+    263, 277, 277, 277, 277, 263, 263, 64, 64, 64, 64, 64, 278, 278, 278, 
+    278, 278, 278, 278, 278, 278, 278, 278, 279, 279, 280, 280, 280, 280, 
+    279, 280, 280, 280, 280, 280, 281, 279, 282, 282, 279, 279, 280, 280, 
+    278, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 284, 284, 284, 
+    284, 284, 284, 278, 278, 278, 278, 278, 278, 279, 279, 280, 280, 278, 
+    278, 278, 278, 280, 280, 280, 278, 279, 279, 279, 278, 278, 279, 279, 
+    279, 279, 279, 279, 279, 278, 278, 278, 280, 280, 280, 280, 278, 278, 
+    278, 278, 278, 280, 279, 279, 280, 280, 279, 279, 279, 279, 279, 279, 
+    285, 278, 279, 283, 283, 279, 279, 279, 280, 286, 286, 287, 287, 287, 
+    287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 287, 64, 287, 64, 64, 
+    64, 64, 64, 287, 64, 64, 288, 288, 288, 288, 288, 288, 288, 288, 288, 
+    288, 288, 84, 289, 288, 288, 288, 290, 290, 290, 290, 290, 290, 290, 290, 
+    291, 291, 291, 291, 291, 291, 291, 291, 292, 292, 292, 292, 292, 292, 
+    292, 292, 292, 64, 292, 292, 292, 292, 64, 64, 292, 292, 292, 292, 292, 
+    292, 292, 64, 292, 292, 292, 64, 64, 293, 293, 293, 294, 294, 294, 294, 
+    294, 294, 294, 294, 294, 295, 295, 295, 295, 295, 295, 295, 295, 295, 
+    295, 295, 295, 295, 295, 295, 295, 295, 295, 295, 295, 64, 64, 64, 296, 
+    296, 296, 296, 296, 296, 296, 296, 296, 296, 64, 64, 64, 64, 64, 64, 297, 
+    297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 64, 64, 64, 
+    298, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 
+    299, 299, 299, 299, 299, 299, 299, 300, 300, 299, 301, 302, 302, 302, 
+    302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 
+    302, 303, 304, 64, 64, 64, 305, 305, 305, 305, 305, 305, 305, 305, 305, 
+    305, 305, 84, 84, 84, 306, 306, 306, 305, 305, 305, 305, 305, 305, 305, 
+    305, 64, 64, 64, 64, 64, 64, 64, 307, 307, 307, 307, 307, 307, 307, 307, 
+    307, 307, 307, 307, 307, 64, 307, 307, 307, 307, 308, 308, 309, 64, 64, 
+    64, 310, 310, 310, 310, 310, 310, 310, 310, 310, 310, 311, 311, 312, 84, 
+    84, 64, 313, 313, 313, 313, 313, 313, 313, 313, 313, 313, 314, 314, 64, 
+    64, 64, 64, 315, 315, 315, 315, 315, 315, 315, 315, 315, 315, 315, 315, 
+    315, 64, 315, 315, 315, 64, 316, 316, 64, 64, 64, 64, 317, 317, 317, 317, 
+    317, 317, 317, 317, 317, 317, 317, 317, 318, 318, 319, 318, 318, 318, 
+    318, 318, 318, 318, 319, 319, 319, 319, 319, 319, 319, 319, 318, 319, 
+    319, 318, 318, 318, 318, 318, 318, 318, 318, 318, 320, 318, 321, 321, 
+    321, 322, 321, 321, 321, 323, 317, 324, 64, 64, 325, 325, 325, 325, 325, 
+    325, 325, 325, 325, 325, 64, 64, 64, 64, 64, 64, 326, 326, 326, 326, 326, 
+    326, 326, 326, 326, 326, 64, 64, 64, 64, 64, 64, 327, 327, 66, 66, 327, 
+    66, 328, 327, 327, 327, 327, 329, 329, 329, 330, 64, 331, 331, 331, 331, 
+    331, 331, 331, 331, 331, 331, 64, 64, 64, 64, 64, 64, 332, 332, 332, 332, 
+    332, 332, 332, 332, 332, 332, 332, 333, 332, 332, 332, 332, 332, 334, 
+    332, 64, 64, 64, 64, 64, 299, 299, 299, 299, 299, 299, 64, 64, 335, 335, 
+    335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, 64, 336, 
+    336, 336, 337, 337, 337, 337, 336, 336, 337, 337, 337, 64, 64, 64, 64, 
+    337, 337, 336, 337, 337, 337, 337, 337, 337, 338, 339, 340, 64, 64, 64, 
+    64, 341, 64, 64, 64, 342, 342, 343, 343, 343, 343, 343, 343, 343, 343, 
+    343, 343, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, 
+    344, 344, 64, 64, 344, 344, 344, 344, 344, 64, 64, 64, 345, 345, 345, 
+    345, 345, 345, 345, 345, 345, 345, 345, 345, 64, 64, 64, 64, 346, 346, 
+    346, 346, 346, 346, 346, 346, 346, 345, 345, 345, 345, 345, 345, 345, 
+    346, 346, 64, 64, 64, 64, 64, 64, 347, 347, 347, 347, 347, 347, 347, 347, 
+    347, 347, 348, 64, 64, 64, 349, 349, 350, 350, 350, 350, 350, 350, 350, 
+    350, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, 
+    351, 351, 352, 353, 354, 354, 355, 64, 64, 356, 356, 357, 357, 357, 357, 
+    357, 357, 357, 357, 357, 357, 357, 357, 357, 358, 359, 358, 359, 359, 
+    359, 359, 359, 359, 359, 64, 360, 358, 359, 358, 358, 359, 359, 359, 359, 
+    359, 359, 359, 359, 358, 358, 358, 358, 358, 358, 359, 359, 361, 361, 
+    361, 361, 361, 361, 361, 361, 64, 64, 362, 363, 363, 363, 363, 363, 363, 
+    363, 363, 363, 363, 64, 64, 64, 64, 64, 64, 364, 364, 364, 364, 364, 364, 
+    364, 365, 364, 364, 364, 364, 364, 364, 64, 64, 78, 78, 78, 78, 78, 136, 
+    136, 136, 136, 136, 136, 78, 78, 136, 366, 64, 367, 367, 367, 367, 368, 
+    369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 369, 
+    369, 370, 368, 367, 367, 367, 367, 367, 368, 367, 368, 368, 368, 368, 
+    368, 367, 368, 371, 369, 369, 369, 369, 369, 369, 369, 64, 64, 64, 64, 
+    372, 372, 372, 372, 372, 372, 372, 372, 372, 372, 373, 373, 373, 373, 
+    373, 373, 373, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 375, 
+    376, 375, 375, 375, 375, 375, 375, 375, 374, 374, 374, 374, 374, 374, 
+    374, 374, 374, 64, 64, 64, 377, 377, 378, 379, 379, 379, 379, 379, 379, 
+    379, 379, 379, 379, 379, 379, 379, 379, 378, 377, 377, 377, 377, 378, 
+    378, 377, 377, 380, 381, 377, 377, 379, 379, 382, 382, 382, 382, 382, 
+    382, 382, 382, 382, 382, 379, 379, 379, 379, 379, 379, 383, 383, 383, 
+    383, 383, 383, 383, 383, 383, 383, 383, 383, 383, 383, 384, 385, 386, 
+    386, 385, 385, 385, 386, 385, 386, 386, 386, 387, 387, 64, 64, 64, 64, 
+    64, 64, 64, 64, 388, 388, 388, 388, 389, 389, 389, 389, 389, 389, 389, 
+    389, 389, 389, 389, 389, 390, 390, 390, 390, 390, 390, 390, 390, 391, 
+    391, 391, 391, 391, 391, 391, 391, 390, 390, 391, 392, 64, 64, 64, 393, 
+    393, 393, 393, 393, 394, 394, 394, 394, 394, 394, 394, 394, 394, 394, 64, 
+    64, 64, 389, 389, 389, 395, 395, 395, 395, 395, 395, 395, 395, 395, 395, 
+    396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 396, 
+    397, 397, 397, 397, 397, 397, 398, 398, 399, 399, 399, 399, 399, 399, 
+    399, 399, 78, 78, 78, 84, 400, 136, 136, 136, 136, 136, 78, 78, 136, 136, 
+    136, 136, 78, 401, 400, 400, 400, 400, 400, 400, 400, 402, 402, 402, 402, 
+    136, 402, 402, 402, 402, 401, 401, 78, 402, 402, 64, 78, 78, 64, 64, 64, 
+    64, 64, 64, 41, 41, 41, 41, 41, 41, 62, 62, 62, 62, 62, 75, 44, 44, 44, 
+    44, 44, 44, 44, 44, 44, 65, 65, 65, 65, 65, 44, 44, 44, 44, 65, 65, 65, 
+    65, 65, 41, 41, 41, 41, 41, 403, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 
+    44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 44, 65, 78, 78, 136, 78, 78, 
+    78, 78, 78, 78, 78, 136, 78, 78, 404, 405, 136, 406, 78, 78, 78, 78, 78, 
+    78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78, 64, 64, 
+    64, 64, 64, 64, 407, 136, 78, 136, 37, 41, 37, 41, 37, 41, 41, 41, 41, 
+    41, 41, 41, 41, 41, 37, 41, 62, 62, 62, 62, 62, 62, 62, 62, 61, 61, 61, 
+    61, 61, 61, 61, 61, 62, 62, 62, 62, 62, 62, 64, 64, 61, 61, 61, 61, 61, 
+    61, 64, 64, 64, 61, 64, 61, 64, 61, 64, 61, 408, 408, 408, 408, 408, 408, 
+    408, 408, 62, 62, 62, 62, 62, 64, 62, 62, 61, 61, 61, 61, 408, 63, 62, 
+    63, 63, 63, 62, 62, 62, 64, 62, 62, 61, 61, 61, 61, 408, 63, 63, 63, 62, 
+    62, 62, 62, 64, 64, 62, 62, 61, 61, 61, 61, 64, 63, 63, 63, 61, 61, 61, 
+    61, 61, 63, 63, 63, 64, 64, 62, 62, 62, 64, 62, 62, 61, 61, 61, 61, 408, 
+    63, 63, 64, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 409, 410, 
+    411, 411, 412, 413, 414, 415, 415, 414, 414, 414, 22, 66, 416, 417, 418, 
+    419, 416, 417, 418, 419, 22, 22, 22, 66, 22, 22, 22, 22, 420, 421, 422, 
+    423, 424, 425, 426, 21, 427, 428, 427, 427, 428, 22, 66, 66, 66, 28, 35, 
+    22, 66, 66, 22, 429, 429, 66, 66, 66, 430, 431, 432, 66, 66, 66, 66, 66, 
+    66, 66, 66, 66, 66, 66, 433, 66, 429, 66, 66, 66, 66, 66, 66, 66, 66, 66, 
+    66, 409, 410, 410, 410, 410, 410, 64, 434, 435, 436, 437, 410, 410, 410, 
+    410, 410, 410, 438, 44, 64, 64, 33, 438, 438, 438, 438, 438, 439, 439, 
+    433, 431, 432, 440, 438, 33, 33, 33, 33, 438, 438, 438, 438, 438, 439, 
+    439, 433, 431, 432, 64, 44, 44, 44, 44, 44, 64, 64, 64, 250, 250, 250, 
+    250, 250, 250, 250, 250, 250, 441, 250, 250, 23, 250, 250, 250, 250, 250, 
+    250, 250, 250, 250, 64, 64, 78, 78, 400, 400, 78, 78, 78, 78, 400, 400, 
+    400, 78, 78, 366, 366, 366, 366, 78, 366, 366, 366, 400, 400, 78, 136, 
+    78, 400, 400, 136, 136, 136, 136, 78, 64, 64, 64, 64, 64, 64, 64, 26, 26, 
+    442, 30, 26, 30, 26, 442, 26, 30, 34, 442, 442, 442, 34, 34, 442, 442, 
+    442, 443, 26, 442, 30, 26, 433, 442, 442, 442, 442, 442, 26, 26, 26, 30, 
+    30, 26, 442, 26, 67, 26, 442, 26, 37, 38, 442, 442, 444, 34, 442, 442, 
+    37, 442, 34, 402, 402, 402, 402, 34, 26, 26, 34, 34, 442, 442, 445, 433, 
+    433, 433, 433, 442, 34, 34, 34, 34, 26, 433, 26, 26, 41, 277, 446, 446, 
+    446, 36, 36, 446, 446, 446, 446, 446, 446, 36, 36, 36, 36, 446, 447, 447, 
+    447, 447, 447, 447, 447, 447, 447, 447, 447, 447, 448, 448, 448, 448, 
+    447, 447, 448, 448, 448, 448, 448, 448, 448, 448, 448, 37, 41, 448, 448, 
+    448, 448, 36, 64, 64, 64, 64, 64, 64, 39, 39, 39, 39, 39, 30, 30, 30, 30, 
+    30, 433, 433, 26, 26, 26, 26, 433, 26, 26, 433, 26, 26, 433, 26, 26, 26, 
+    26, 26, 26, 26, 433, 26, 26, 26, 26, 26, 26, 26, 26, 26, 30, 30, 26, 26, 
+    26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 433, 433, 26, 26, 39, 26, 39, 26, 
+    26, 26, 26, 26, 26, 26, 26, 26, 26, 30, 26, 26, 26, 26, 433, 433, 433, 
+    433, 433, 433, 433, 433, 433, 433, 433, 433, 39, 445, 449, 449, 445, 433, 
+    433, 39, 449, 445, 445, 449, 445, 445, 433, 39, 433, 449, 439, 450, 433, 
+    449, 445, 433, 433, 433, 449, 445, 445, 449, 39, 449, 449, 445, 445, 39, 
+    445, 39, 445, 39, 39, 39, 39, 449, 449, 445, 449, 445, 445, 445, 445, 
+    445, 39, 39, 39, 39, 433, 445, 433, 445, 449, 449, 445, 445, 445, 445, 
+    445, 445, 445, 445, 445, 445, 449, 445, 445, 445, 449, 433, 433, 433, 
+    433, 433, 449, 445, 445, 445, 433, 433, 433, 433, 433, 433, 433, 433, 
+    433, 445, 449, 39, 445, 433, 449, 449, 449, 449, 445, 445, 449, 449, 433, 
+    433, 449, 449, 445, 445, 449, 449, 445, 445, 449, 449, 445, 445, 445, 
+    445, 445, 433, 433, 445, 445, 445, 445, 433, 433, 39, 433, 433, 445, 39, 
+    433, 433, 433, 433, 433, 433, 433, 433, 445, 445, 433, 39, 445, 445, 445, 
+    433, 433, 433, 433, 433, 445, 449, 433, 445, 445, 445, 445, 445, 433, 
+    433, 445, 445, 433, 433, 433, 433, 445, 445, 445, 445, 445, 445, 445, 
+    445, 433, 433, 431, 432, 431, 432, 26, 26, 26, 26, 26, 26, 30, 26, 26, 
+    26, 26, 26, 445, 445, 26, 26, 26, 26, 26, 26, 26, 451, 452, 26, 26, 26, 
+    26, 26, 26, 26, 26, 26, 26, 26, 277, 277, 277, 277, 277, 277, 277, 277, 
+    277, 277, 277, 277, 277, 26, 433, 26, 26, 26, 26, 26, 26, 26, 26, 277, 
+    26, 26, 26, 26, 26, 433, 433, 433, 433, 433, 433, 433, 433, 433, 26, 26, 
+    26, 26, 433, 433, 26, 26, 26, 26, 26, 26, 26, 26, 26, 64, 64, 64, 64, 64, 
+    26, 26, 26, 26, 26, 26, 26, 64, 36, 36, 36, 36, 36, 36, 36, 36, 33, 33, 
+    33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 453, 453, 453, 453, 453, 453, 
+    453, 453, 453, 453, 453, 453, 453, 453, 446, 36, 36, 36, 36, 36, 30, 30, 
+    30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 26, 26, 26, 26, 26, 26, 30, 30, 
+    30, 30, 26, 26, 30, 30, 26, 30, 30, 30, 30, 30, 26, 26, 30, 30, 26, 26, 
+    30, 39, 26, 26, 26, 26, 30, 30, 26, 26, 30, 39, 26, 26, 26, 26, 30, 30, 
+    30, 26, 26, 30, 26, 26, 30, 30, 26, 26, 26, 26, 26, 30, 30, 26, 26, 30, 
+    26, 26, 26, 26, 30, 30, 26, 26, 26, 26, 30, 26, 30, 26, 30, 26, 30, 26, 
+    26, 26, 26, 26, 30, 30, 26, 30, 30, 30, 26, 30, 30, 30, 30, 26, 30, 30, 
+    26, 39, 26, 26, 26, 26, 26, 26, 30, 30, 26, 26, 26, 26, 277, 26, 26, 26, 
+    26, 26, 26, 26, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 26, 30, 30, 30, 
+    26, 30, 26, 26, 26, 26, 26, 26, 26, 26, 26, 30, 26, 26, 431, 432, 431, 
+    432, 431, 432, 431, 432, 431, 432, 431, 432, 431, 432, 36, 36, 446, 446, 
+    446, 446, 446, 446, 446, 446, 446, 446, 446, 446, 26, 26, 26, 26, 445, 
+    433, 433, 445, 445, 431, 432, 433, 445, 445, 433, 445, 445, 445, 433, 
+    433, 433, 433, 433, 445, 445, 445, 445, 433, 433, 433, 433, 433, 445, 
+    445, 445, 433, 433, 433, 445, 445, 445, 445, 9, 10, 9, 10, 9, 10, 9, 10, 
+    431, 432, 454, 454, 454, 454, 454, 454, 454, 454, 433, 433, 433, 431, 
+    432, 9, 10, 431, 432, 431, 432, 431, 432, 431, 432, 431, 432, 433, 433, 
+    445, 445, 445, 445, 445, 445, 433, 433, 433, 433, 433, 433, 433, 433, 
+    445, 433, 433, 433, 433, 445, 445, 445, 445, 445, 433, 445, 445, 433, 
+    433, 431, 432, 431, 432, 445, 433, 433, 433, 433, 445, 433, 445, 445, 
+    445, 433, 433, 445, 445, 433, 433, 433, 433, 433, 433, 433, 433, 433, 
+    433, 445, 445, 445, 445, 445, 445, 433, 433, 431, 432, 433, 433, 433, 
+    433, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 433, 445, 
+    445, 445, 445, 433, 433, 445, 433, 445, 433, 433, 445, 433, 445, 445, 
+    445, 445, 433, 433, 433, 433, 433, 445, 445, 433, 433, 433, 433, 445, 
+    445, 445, 445, 433, 445, 445, 433, 433, 445, 445, 433, 433, 433, 433, 
+    445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 433, 433, 445, 
+    445, 445, 445, 445, 445, 445, 445, 433, 445, 445, 445, 445, 445, 445, 
+    445, 445, 433, 433, 433, 433, 433, 445, 433, 445, 433, 433, 433, 445, 
+    445, 445, 445, 445, 433, 433, 433, 433, 445, 433, 433, 433, 445, 445, 
+    445, 445, 445, 433, 445, 433, 433, 433, 433, 433, 433, 433, 26, 26, 433, 
+    433, 433, 433, 433, 433, 26, 26, 26, 26, 26, 26, 26, 26, 30, 30, 30, 26, 
+    26, 26, 26, 64, 64, 26, 26, 26, 26, 26, 26, 26, 26, 64, 64, 26, 26, 64, 
+    64, 64, 26, 26, 26, 26, 64, 26, 26, 26, 26, 26, 26, 26, 26, 64, 64, 64, 
+    64, 64, 64, 455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 
+    455, 455, 455, 64, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 456, 
+    456, 456, 456, 456, 64, 37, 41, 37, 37, 37, 41, 41, 37, 41, 37, 41, 37, 
+    41, 37, 37, 37, 37, 41, 37, 41, 41, 37, 41, 41, 41, 41, 41, 41, 44, 44, 
+    37, 37, 69, 70, 69, 70, 70, 457, 457, 457, 457, 457, 457, 69, 70, 69, 70, 
+    458, 458, 458, 69, 70, 64, 64, 64, 64, 64, 459, 459, 459, 459, 460, 459, 
+    459, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 461, 
+    461, 64, 461, 64, 64, 64, 64, 64, 461, 64, 64, 462, 462, 462, 462, 462, 
+    462, 462, 462, 64, 64, 64, 64, 64, 64, 64, 463, 464, 64, 64, 64, 64, 64, 
+    64, 64, 64, 64, 64, 64, 64, 64, 64, 465, 77, 77, 77, 77, 77, 77, 77, 77, 
+    66, 66, 28, 35, 28, 35, 66, 66, 66, 28, 35, 66, 28, 35, 66, 66, 66, 66, 
+    66, 66, 66, 66, 66, 415, 66, 66, 415, 66, 28, 35, 66, 66, 28, 35, 431, 
+    432, 431, 432, 431, 432, 431, 432, 66, 66, 66, 66, 66, 45, 66, 66, 415, 
+    415, 66, 66, 66, 66, 415, 66, 418, 64, 64, 64, 64, 64, 466, 466, 466, 
+    466, 466, 466, 466, 466, 466, 466, 64, 466, 466, 466, 466, 466, 466, 466, 
+    466, 466, 64, 64, 64, 64, 466, 466, 466, 466, 466, 466, 64, 64, 467, 467, 
+    467, 467, 467, 467, 467, 467, 467, 467, 467, 467, 64, 64, 64, 64, 468, 
+    469, 469, 469, 467, 470, 471, 472, 451, 452, 451, 452, 451, 452, 451, 
+    452, 451, 452, 467, 467, 451, 452, 451, 452, 451, 452, 451, 452, 473, 
+    474, 475, 475, 467, 472, 472, 472, 472, 472, 472, 472, 472, 472, 476, 
+    477, 478, 479, 480, 480, 473, 481, 481, 481, 481, 481, 467, 467, 472, 
+    472, 472, 470, 471, 469, 467, 26, 64, 482, 482, 482, 482, 482, 482, 482, 
+    482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 482, 
+    482, 64, 64, 483, 483, 484, 484, 485, 485, 482, 473, 486, 486, 486, 486, 
+    486, 486, 486, 486, 486, 486, 486, 486, 486, 486, 486, 486, 486, 486, 
+    469, 481, 487, 487, 486, 64, 64, 64, 64, 64, 488, 488, 488, 488, 488, 
+    488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, 64, 64, 64, 
+    290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 64, 
+    489, 489, 490, 490, 490, 490, 489, 489, 489, 489, 489, 489, 489, 489, 
+    489, 489, 488, 488, 488, 64, 64, 64, 64, 64, 491, 491, 491, 491, 491, 
+    491, 491, 491, 491, 491, 491, 491, 491, 492, 492, 64, 490, 490, 490, 490, 
+    490, 490, 490, 490, 490, 490, 489, 489, 489, 489, 489, 489, 493, 493, 
+    493, 493, 493, 493, 493, 493, 467, 494, 494, 494, 494, 494, 494, 494, 
+    494, 494, 494, 494, 494, 494, 494, 494, 491, 491, 491, 491, 492, 492, 
+    492, 489, 489, 494, 494, 494, 494, 494, 494, 494, 489, 489, 489, 489, 
+    467, 467, 467, 467, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 
+    495, 495, 495, 495, 495, 64, 489, 489, 489, 489, 489, 489, 489, 467, 467, 
+    467, 467, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 489, 467, 
+    467, 496, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 
+    497, 497, 497, 497, 497, 497, 497, 497, 496, 498, 498, 498, 498, 498, 
+    498, 498, 498, 498, 498, 497, 497, 497, 497, 496, 498, 498, 498, 499, 
+    499, 499, 499, 499, 499, 499, 499, 499, 499, 499, 499, 499, 500, 499, 
+    499, 499, 499, 499, 499, 499, 64, 64, 64, 501, 501, 501, 501, 501, 501, 
+    501, 501, 501, 501, 501, 501, 501, 501, 501, 64, 502, 502, 502, 502, 502, 
+    502, 502, 502, 503, 503, 503, 503, 503, 503, 504, 504, 505, 505, 505, 
+    505, 505, 505, 505, 505, 505, 505, 505, 505, 506, 507, 507, 507, 508, 
+    508, 508, 508, 508, 508, 508, 508, 508, 508, 505, 505, 64, 64, 64, 64, 
+    72, 75, 72, 75, 72, 75, 509, 77, 79, 79, 79, 510, 77, 77, 77, 77, 77, 77, 
+    77, 77, 77, 77, 510, 511, 72, 75, 72, 75, 403, 403, 64, 77, 512, 512, 
+    512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 513, 513, 
+    513, 513, 513, 513, 513, 513, 513, 513, 514, 514, 515, 515, 515, 515, 
+    515, 515, 47, 47, 47, 47, 47, 47, 47, 45, 45, 45, 45, 45, 45, 45, 45, 45, 
+    47, 47, 37, 41, 37, 41, 37, 41, 41, 41, 37, 41, 37, 41, 37, 41, 44, 41, 
+    41, 41, 41, 41, 41, 41, 41, 37, 41, 37, 41, 37, 37, 41, 45, 516, 516, 37, 
+    41, 37, 41, 64, 37, 41, 37, 41, 41, 41, 37, 41, 37, 41, 37, 37, 37, 37, 
+    64, 64, 37, 37, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 42, 
+    44, 44, 41, 42, 42, 42, 42, 42, 517, 517, 518, 517, 517, 517, 519, 517, 
+    517, 517, 517, 518, 517, 517, 517, 517, 517, 517, 517, 517, 517, 517, 
+    517, 517, 517, 517, 517, 520, 520, 518, 518, 520, 521, 521, 521, 521, 64, 
+    64, 64, 64, 522, 522, 522, 522, 522, 522, 277, 277, 250, 444, 64, 64, 64, 
+    64, 64, 64, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, 
+    524, 524, 524, 524, 525, 525, 526, 526, 526, 526, 526, 526, 526, 526, 
+    526, 526, 526, 526, 526, 526, 526, 526, 526, 526, 525, 525, 525, 525, 
+    525, 525, 525, 525, 525, 525, 525, 525, 525, 525, 525, 525, 527, 64, 64, 
+    64, 64, 64, 64, 64, 64, 64, 528, 528, 529, 529, 529, 529, 529, 529, 529, 
+    529, 529, 529, 64, 64, 64, 64, 64, 64, 174, 174, 174, 174, 174, 174, 174, 
+    174, 174, 174, 171, 171, 171, 171, 171, 171, 176, 176, 176, 171, 64, 64, 
+    64, 64, 530, 530, 530, 530, 530, 530, 530, 530, 530, 530, 531, 531, 531, 
+    531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 531, 
+    531, 531, 531, 532, 532, 532, 532, 532, 533, 533, 533, 84, 534, 535, 535, 
+    535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 535, 536, 
+    536, 536, 536, 536, 536, 536, 536, 536, 536, 536, 537, 538, 64, 64, 64, 
+    64, 64, 64, 64, 64, 64, 64, 64, 539, 290, 290, 290, 290, 290, 64, 64, 64, 
+    540, 540, 540, 541, 542, 542, 542, 542, 542, 542, 542, 542, 542, 542, 
+    542, 542, 542, 542, 542, 543, 541, 541, 540, 540, 540, 540, 541, 541, 
+    540, 541, 541, 541, 544, 545, 545, 545, 545, 545, 545, 545, 545, 545, 
+    545, 545, 545, 545, 64, 46, 546, 546, 546, 546, 546, 546, 546, 546, 546, 
+    546, 64, 64, 64, 64, 545, 545, 278, 278, 278, 278, 278, 280, 547, 278, 
+    283, 283, 278, 278, 278, 278, 278, 64, 548, 548, 548, 548, 548, 548, 548, 
+    548, 548, 549, 549, 549, 549, 549, 549, 550, 550, 549, 549, 550, 550, 
+    549, 549, 64, 548, 548, 548, 549, 548, 548, 548, 548, 548, 548, 548, 548, 
+    549, 550, 64, 64, 551, 551, 551, 551, 551, 551, 551, 551, 551, 551, 64, 
+    64, 552, 552, 552, 552, 547, 278, 278, 278, 278, 278, 278, 286, 286, 286, 
+    278, 279, 280, 279, 278, 278, 553, 553, 553, 553, 553, 553, 553, 553, 
+    554, 553, 554, 554, 555, 553, 553, 554, 554, 553, 553, 553, 553, 553, 
+    554, 554, 553, 554, 553, 64, 64, 64, 64, 64, 64, 64, 64, 553, 553, 556, 
+    557, 557, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, 559, 
+    560, 560, 559, 559, 561, 561, 558, 562, 562, 559, 563, 64, 64, 292, 292, 
+    292, 292, 292, 292, 64, 41, 41, 41, 516, 44, 44, 44, 44, 64, 64, 64, 64, 
+    41, 62, 64, 64, 558, 558, 558, 559, 559, 560, 559, 559, 560, 559, 559, 
+    561, 559, 563, 64, 64, 564, 564, 564, 564, 564, 564, 564, 564, 564, 564, 
+    64, 64, 64, 64, 64, 64, 290, 565, 565, 565, 565, 565, 565, 565, 565, 565, 
+    565, 565, 565, 565, 565, 565, 565, 565, 565, 290, 64, 64, 64, 64, 291, 
+    291, 291, 291, 291, 291, 291, 64, 64, 64, 64, 291, 291, 291, 291, 291, 
+    291, 291, 291, 291, 64, 64, 64, 64, 566, 64, 64, 64, 64, 64, 64, 64, 64, 
+    64, 64, 64, 64, 64, 64, 566, 567, 568, 568, 568, 568, 568, 568, 568, 568, 
+    568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, 
+    567, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 496, 
+    496, 498, 498, 496, 496, 498, 498, 498, 498, 498, 498, 41, 41, 41, 41, 
+    41, 41, 41, 64, 64, 64, 64, 83, 83, 83, 83, 83, 64, 64, 64, 64, 64, 110, 
+    569, 110, 110, 570, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 
+    110, 110, 110, 64, 110, 110, 110, 110, 110, 64, 110, 64, 110, 110, 64, 
+    110, 110, 64, 110, 110, 126, 126, 571, 571, 571, 571, 571, 571, 571, 571, 
+    571, 571, 571, 571, 571, 571, 571, 571, 64, 64, 64, 64, 64, 64, 64, 64, 
+    64, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 572, 418, 64, 
+    64, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 116, 119, 64, 64, 
+    58, 58, 58, 58, 58, 58, 58, 58, 469, 469, 469, 469, 469, 469, 469, 474, 
+    475, 469, 64, 64, 64, 64, 64, 64, 78, 78, 78, 78, 78, 78, 78, 136, 136, 
+    136, 136, 136, 136, 136, 64, 64, 469, 473, 473, 573, 573, 474, 475, 474, 
+    475, 474, 475, 474, 475, 474, 475, 474, 475, 474, 475, 474, 475, 469, 
+    469, 474, 475, 469, 469, 469, 469, 573, 573, 573, 574, 469, 574, 64, 469, 
+    574, 469, 469, 473, 451, 452, 451, 452, 451, 452, 575, 469, 469, 576, 
+    577, 578, 578, 579, 64, 469, 580, 575, 469, 64, 64, 64, 64, 126, 126, 
+    126, 126, 126, 64, 126, 126, 126, 126, 126, 126, 126, 64, 64, 410, 64, 
+    581, 581, 582, 583, 582, 581, 581, 584, 585, 581, 586, 587, 588, 587, 
+    587, 589, 589, 589, 589, 589, 589, 589, 589, 589, 589, 587, 581, 590, 
+    591, 590, 581, 581, 592, 592, 592, 592, 592, 592, 592, 592, 592, 592, 
+    592, 592, 592, 592, 592, 592, 592, 592, 584, 581, 585, 593, 594, 593, 
+    595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 595, 
+    595, 595, 595, 595, 584, 591, 585, 591, 584, 585, 596, 597, 598, 596, 
+    596, 599, 599, 599, 599, 599, 599, 599, 599, 599, 599, 600, 599, 599, 
+    599, 599, 599, 599, 599, 599, 599, 599, 599, 599, 599, 600, 600, 601, 
+    601, 601, 601, 601, 601, 601, 601, 601, 601, 601, 601, 601, 601, 601, 64, 
+    64, 64, 601, 601, 601, 601, 601, 601, 64, 64, 601, 601, 601, 64, 64, 64, 
+    583, 583, 591, 593, 602, 583, 583, 64, 603, 604, 604, 604, 604, 603, 603, 
+    64, 64, 605, 605, 605, 26, 30, 64, 64, 606, 606, 606, 606, 606, 606, 606, 
+    606, 606, 606, 606, 606, 64, 606, 606, 606, 606, 606, 606, 606, 606, 606, 
+    606, 64, 606, 606, 606, 64, 606, 606, 64, 606, 606, 606, 606, 606, 606, 
+    606, 64, 64, 606, 606, 606, 64, 64, 64, 64, 64, 84, 66, 84, 64, 64, 64, 
+    64, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 522, 64, 
+    64, 64, 277, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 607, 
+    607, 608, 608, 608, 608, 609, 609, 609, 609, 609, 609, 609, 609, 609, 
+    609, 609, 609, 609, 609, 609, 609, 609, 608, 608, 609, 64, 64, 64, 26, 
+    26, 26, 26, 64, 64, 64, 64, 609, 64, 64, 64, 64, 64, 64, 64, 277, 277, 
+    277, 277, 277, 136, 64, 64, 610, 610, 610, 610, 610, 610, 610, 610, 610, 
+    610, 610, 610, 610, 64, 64, 64, 611, 611, 611, 611, 611, 611, 611, 611, 
+    611, 64, 64, 64, 64, 64, 64, 64, 136, 438, 438, 438, 438, 438, 438, 438, 
+    438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 64, 64, 64, 
+    64, 612, 612, 612, 612, 612, 612, 612, 612, 613, 613, 613, 613, 64, 64, 
+    64, 64, 614, 614, 614, 614, 614, 614, 614, 614, 614, 615, 614, 614, 614, 
+    614, 614, 614, 614, 614, 615, 64, 64, 64, 64, 64, 616, 616, 616, 616, 
+    616, 616, 616, 616, 616, 616, 616, 616, 616, 616, 617, 617, 617, 617, 
+    617, 64, 64, 64, 64, 64, 618, 618, 618, 618, 618, 618, 618, 618, 618, 
+    618, 618, 618, 618, 618, 64, 619, 620, 620, 620, 620, 620, 620, 620, 620, 
+    620, 620, 620, 620, 64, 64, 64, 64, 621, 622, 622, 622, 622, 622, 64, 64, 
+    623, 623, 623, 623, 623, 623, 623, 623, 624, 624, 624, 624, 624, 624, 
+    624, 624, 625, 625, 625, 625, 625, 625, 625, 625, 626, 626, 626, 626, 
+    626, 626, 626, 626, 626, 626, 626, 626, 626, 626, 64, 64, 627, 627, 627, 
+    627, 627, 627, 627, 627, 627, 627, 64, 64, 64, 64, 64, 64, 628, 628, 628, 
+    628, 628, 628, 628, 628, 629, 629, 629, 629, 629, 629, 629, 629, 629, 
+    629, 629, 629, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 630, 631, 631, 
+    631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 631, 64, 631, 
+    631, 631, 631, 631, 631, 64, 64, 632, 632, 632, 632, 632, 632, 64, 64, 
+    632, 64, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 632, 
+    632, 632, 632, 632, 632, 632, 632, 64, 632, 632, 64, 64, 64, 632, 64, 64, 
+    632, 633, 633, 633, 633, 633, 633, 633, 633, 633, 633, 633, 633, 633, 
+    633, 64, 634, 635, 635, 635, 635, 635, 635, 635, 635, 636, 636, 636, 636, 
+    636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 636, 637, 637, 638, 
+    638, 638, 638, 638, 638, 638, 639, 639, 639, 639, 639, 639, 639, 639, 
+    639, 639, 639, 639, 639, 639, 639, 64, 64, 64, 64, 64, 64, 64, 64, 640, 
+    640, 640, 640, 640, 640, 640, 640, 640, 641, 641, 641, 641, 641, 641, 
+    641, 641, 641, 641, 641, 641, 641, 641, 642, 642, 642, 642, 642, 642, 64, 
+    64, 64, 643, 644, 644, 644, 644, 644, 644, 644, 644, 644, 644, 64, 64, 
+    64, 64, 64, 645, 646, 646, 646, 646, 646, 646, 646, 646, 647, 647, 647, 
+    647, 647, 647, 647, 647, 64, 64, 64, 64, 64, 64, 647, 647, 648, 649, 649, 
+    649, 64, 649, 649, 64, 64, 64, 64, 64, 649, 650, 649, 651, 648, 648, 648, 
+    648, 64, 648, 648, 648, 64, 648, 648, 648, 648, 648, 648, 648, 648, 648, 
+    648, 648, 648, 648, 648, 648, 648, 648, 648, 648, 64, 64, 64, 64, 651, 
+    652, 650, 64, 64, 64, 64, 653, 654, 654, 654, 654, 654, 654, 654, 654, 
+    655, 655, 655, 655, 655, 655, 655, 655, 655, 64, 64, 64, 64, 64, 64, 64, 
+    656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 656, 657, 
+    657, 658, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 
+    659, 660, 660, 660, 661, 661, 661, 661, 661, 661, 661, 661, 662, 661, 
+    661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 661, 663, 664, 64, 64, 
+    64, 64, 665, 665, 665, 665, 665, 666, 666, 666, 666, 666, 666, 666, 64, 
+    667, 667, 667, 667, 667, 667, 667, 667, 667, 667, 667, 667, 667, 667, 64, 
+    64, 64, 668, 668, 668, 668, 668, 668, 668, 669, 669, 669, 669, 669, 669, 
+    669, 669, 669, 669, 669, 669, 669, 669, 64, 64, 670, 670, 670, 670, 670, 
+    670, 670, 670, 671, 671, 671, 671, 671, 671, 671, 671, 671, 671, 671, 64, 
+    64, 64, 64, 64, 672, 672, 672, 672, 672, 672, 672, 672, 673, 673, 673, 
+    673, 673, 673, 673, 673, 673, 673, 64, 64, 64, 64, 64, 64, 64, 674, 674, 
+    674, 674, 64, 64, 64, 64, 675, 675, 675, 675, 675, 675, 675, 676, 676, 
+    676, 676, 676, 676, 676, 676, 676, 64, 64, 64, 64, 64, 64, 64, 677, 677, 
+    677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, 64, 678, 
+    679, 678, 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 
+    680, 679, 679, 679, 679, 679, 679, 679, 679, 679, 679, 679, 679, 679, 
+    679, 681, 682, 682, 682, 682, 682, 682, 682, 64, 64, 64, 64, 683, 683, 
+    683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 683, 
+    683, 683, 683, 683, 684, 684, 684, 684, 684, 684, 684, 684, 684, 684, 64, 
+    64, 64, 64, 64, 64, 64, 681, 685, 685, 686, 687, 687, 687, 687, 687, 687, 
+    687, 687, 687, 687, 687, 687, 687, 686, 686, 686, 685, 685, 685, 685, 
+    686, 686, 688, 689, 690, 690, 691, 690, 690, 690, 690, 64, 64, 64, 64, 
+    64, 64, 692, 692, 692, 692, 692, 692, 692, 692, 692, 64, 64, 64, 64, 64, 
+    64, 64, 693, 693, 693, 693, 693, 693, 693, 693, 693, 693, 64, 64, 64, 64, 
+    64, 64, 694, 694, 694, 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, 
+    695, 695, 695, 695, 695, 695, 695, 695, 695, 695, 696, 696, 696, 696, 
+    696, 697, 696, 696, 696, 696, 696, 696, 698, 698, 64, 699, 699, 699, 699, 
+    699, 699, 699, 699, 699, 699, 700, 700, 700, 700, 64, 64, 64, 64, 701, 
+    701, 701, 701, 701, 701, 701, 701, 701, 701, 701, 702, 703, 703, 701, 64, 
+    704, 704, 705, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 706, 
+    706, 706, 706, 706, 706, 705, 705, 705, 704, 704, 704, 704, 704, 704, 
+    704, 704, 704, 705, 707, 706, 706, 706, 706, 708, 708, 708, 708, 64, 64, 
+    64, 64, 708, 64, 64, 709, 709, 709, 709, 709, 709, 709, 709, 709, 709, 
+    706, 64, 64, 64, 64, 64, 64, 710, 710, 710, 710, 710, 710, 710, 710, 710, 
+    710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 710, 64, 64, 64, 711, 
+    711, 711, 711, 711, 711, 711, 711, 711, 711, 64, 711, 711, 711, 711, 711, 
+    711, 711, 711, 711, 712, 712, 712, 713, 713, 713, 712, 712, 713, 714, 
+    715, 713, 716, 716, 716, 716, 716, 716, 64, 64, 717, 717, 717, 717, 717, 
+    717, 717, 717, 717, 717, 717, 717, 717, 717, 717, 718, 719, 719, 719, 
+    718, 718, 718, 718, 718, 718, 720, 721, 64, 64, 64, 64, 64, 722, 722, 
+    722, 722, 722, 722, 722, 722, 722, 722, 64, 64, 64, 64, 64, 64, 64, 723, 
+    724, 724, 64, 725, 725, 725, 725, 725, 725, 725, 725, 64, 64, 725, 725, 
+    64, 64, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 
+    725, 64, 725, 725, 725, 725, 725, 725, 725, 64, 725, 725, 64, 725, 725, 
+    725, 725, 725, 64, 64, 726, 725, 724, 724, 723, 724, 724, 724, 724, 64, 
+    64, 724, 724, 64, 64, 724, 724, 727, 64, 64, 64, 64, 64, 64, 64, 64, 64, 
+    724, 64, 64, 64, 64, 64, 725, 725, 725, 725, 725, 724, 724, 64, 64, 728, 
+    728, 728, 728, 728, 728, 728, 64, 64, 64, 729, 729, 729, 729, 729, 729, 
+    729, 729, 730, 730, 730, 731, 731, 731, 731, 731, 731, 730, 731, 730, 
+    730, 730, 730, 731, 731, 730, 732, 733, 729, 729, 734, 729, 735, 735, 
+    735, 735, 735, 735, 735, 735, 735, 735, 64, 64, 64, 64, 64, 64, 736, 736, 
+    736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 736, 737, 
+    737, 737, 738, 738, 738, 738, 64, 64, 737, 737, 737, 737, 738, 738, 737, 
+    739, 740, 741, 741, 741, 741, 741, 741, 741, 741, 741, 64, 64, 64, 64, 
+    64, 64, 742, 742, 742, 742, 742, 742, 742, 742, 743, 743, 743, 744, 744, 
+    744, 744, 744, 744, 744, 744, 743, 743, 744, 743, 745, 744, 746, 746, 
+    746, 742, 64, 64, 64, 747, 747, 747, 747, 747, 747, 747, 747, 747, 747, 
+    64, 64, 64, 64, 64, 64, 748, 748, 748, 748, 748, 748, 748, 748, 748, 748, 
+    748, 749, 750, 749, 750, 750, 749, 749, 749, 749, 749, 749, 751, 752, 
+    753, 753, 753, 753, 753, 753, 753, 753, 753, 753, 64, 64, 64, 64, 64, 64, 
+    754, 754, 754, 754, 754, 754, 754, 754, 755, 755, 755, 755, 755, 755, 
+    755, 755, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 757, 757, 
+    757, 757, 757, 757, 757, 757, 757, 64, 64, 64, 64, 64, 64, 64, 64, 64, 
+    64, 64, 64, 758, 759, 759, 759, 759, 759, 759, 759, 759, 759, 64, 64, 64, 
+    64, 64, 64, 64, 760, 760, 760, 760, 760, 760, 760, 760, 760, 64, 64, 64, 
+    64, 64, 64, 64, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 761, 
+    761, 761, 761, 761, 64, 762, 762, 762, 762, 762, 64, 64, 64, 763, 763, 
+    763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 763, 64, 512, 
+    64, 64, 64, 64, 64, 64, 64, 764, 764, 764, 764, 764, 764, 764, 764, 764, 
+    764, 764, 764, 764, 764, 764, 64, 765, 765, 765, 765, 765, 765, 765, 765, 
+    765, 765, 64, 64, 64, 64, 766, 766, 767, 767, 767, 767, 767, 767, 767, 
+    767, 767, 767, 767, 767, 767, 767, 64, 64, 768, 768, 768, 768, 768, 769, 
+    64, 64, 770, 770, 770, 770, 770, 770, 770, 770, 771, 771, 771, 771, 771, 
+    771, 771, 772, 772, 772, 772, 772, 773, 773, 773, 773, 774, 774, 774, 
+    774, 772, 773, 64, 64, 775, 775, 775, 775, 775, 775, 775, 775, 775, 775, 
+    64, 776, 776, 776, 776, 776, 776, 776, 64, 770, 770, 770, 770, 770, 64, 
+    64, 64, 64, 64, 770, 770, 770, 777, 777, 777, 777, 777, 777, 777, 777, 
+    777, 777, 777, 777, 777, 64, 64, 64, 777, 778, 778, 778, 778, 778, 778, 
+    778, 778, 778, 778, 778, 778, 778, 778, 778, 778, 778, 778, 778, 778, 
+    778, 778, 64, 64, 64, 64, 64, 64, 64, 64, 779, 779, 779, 779, 780, 780, 
+    780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 780, 486, 482, 64, 64, 
+    64, 64, 64, 64, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 781, 
+    64, 64, 64, 64, 64, 781, 781, 781, 781, 781, 64, 64, 64, 781, 64, 64, 64, 
+    64, 64, 64, 64, 781, 781, 64, 64, 782, 783, 784, 785, 410, 410, 410, 410, 
+    64, 64, 64, 64, 277, 277, 277, 277, 277, 277, 64, 64, 277, 277, 277, 277, 
+    277, 277, 277, 64, 64, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 
+    277, 277, 786, 786, 400, 400, 400, 277, 277, 277, 787, 786, 786, 786, 
+    786, 786, 410, 410, 410, 410, 410, 410, 410, 410, 136, 136, 136, 136, 
+    136, 136, 136, 136, 277, 277, 78, 78, 78, 78, 78, 136, 136, 277, 277, 
+    277, 277, 277, 277, 78, 78, 78, 78, 277, 277, 609, 609, 788, 788, 788, 
+    609, 64, 64, 522, 522, 64, 64, 64, 64, 64, 64, 442, 442, 442, 442, 442, 
+    442, 442, 442, 442, 442, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 
+    34, 34, 34, 34, 34, 34, 442, 442, 442, 442, 442, 442, 442, 442, 442, 442, 
+    34, 34, 34, 34, 34, 34, 34, 64, 34, 34, 34, 34, 34, 34, 442, 64, 442, 
+    442, 64, 64, 442, 64, 64, 442, 442, 64, 64, 442, 442, 442, 442, 64, 442, 
+    442, 34, 34, 64, 34, 64, 34, 34, 34, 34, 34, 34, 34, 64, 34, 34, 34, 34, 
+    34, 34, 34, 442, 442, 64, 442, 442, 442, 442, 64, 64, 442, 442, 442, 442, 
+    442, 442, 442, 442, 64, 442, 442, 442, 442, 442, 442, 442, 64, 34, 34, 
+    442, 442, 64, 442, 442, 442, 442, 64, 442, 442, 442, 442, 442, 64, 442, 
+    64, 64, 64, 442, 442, 442, 442, 442, 442, 442, 64, 34, 34, 34, 34, 34, 
+    34, 34, 34, 34, 34, 34, 34, 64, 64, 442, 789, 34, 34, 34, 34, 34, 34, 34, 
+    34, 34, 445, 34, 34, 34, 34, 34, 34, 442, 442, 442, 442, 442, 442, 442, 
+    442, 442, 789, 34, 34, 34, 34, 34, 34, 34, 34, 34, 445, 34, 34, 442, 442, 
+    442, 442, 442, 789, 34, 34, 34, 34, 34, 34, 34, 34, 34, 445, 34, 34, 34, 
+    34, 34, 34, 442, 442, 442, 442, 442, 442, 442, 442, 442, 789, 34, 445, 
+    34, 34, 34, 34, 34, 34, 34, 34, 442, 34, 64, 64, 790, 790, 790, 790, 790, 
+    790, 790, 790, 790, 790, 791, 791, 791, 791, 791, 791, 791, 791, 791, 
+    791, 791, 791, 791, 64, 64, 792, 792, 792, 792, 792, 792, 792, 792, 792, 
+    793, 793, 793, 793, 793, 793, 793, 64, 126, 126, 126, 126, 64, 126, 126, 
+    126, 64, 126, 126, 64, 126, 64, 64, 126, 64, 126, 126, 126, 126, 126, 
+    126, 126, 126, 126, 126, 64, 126, 126, 126, 126, 64, 126, 64, 126, 64, 
+    64, 64, 64, 64, 64, 126, 64, 64, 64, 64, 126, 64, 126, 64, 126, 64, 126, 
+    126, 126, 64, 126, 64, 126, 64, 126, 64, 126, 64, 126, 126, 126, 126, 64, 
+    126, 64, 126, 126, 64, 126, 126, 126, 126, 126, 126, 126, 126, 126, 64, 
+    64, 64, 64, 64, 126, 126, 126, 64, 126, 126, 126, 113, 113, 64, 64, 64, 
+    64, 64, 64, 64, 26, 26, 26, 26, 26, 26, 26, 33, 33, 33, 446, 446, 64, 64, 
+    64, 453, 453, 453, 453, 453, 453, 277, 64, 453, 453, 26, 26, 64, 64, 64, 
+    64, 453, 453, 453, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 277, 277, 
+    794, 489, 489, 64, 64, 64, 64, 64, 489, 489, 489, 64, 64, 64, 64, 64, 
+    489, 64, 64, 64, 64, 64, 64, 64, 489, 489, 64, 64, 64, 64, 64, 64, 26, 
+    26, 26, 26, 26, 64, 64, 64, 64, 64, 64, 64, 26, 26, 26, 26, 26, 26, 64, 
+    26, 26, 26, 26, 26, 26, 26, 26, 26, 64, 26, 26, 26, 26, 26, 26, 64, 64, 
+    26, 26, 26, 497, 497, 497, 497, 497, 497, 496, 498, 498, 498, 498, 498, 
+    498, 498, 64, 64, 64, 410, 64, 64, 64, 64, 64, 64, 410, 410, 410, 410, 
+    410, 410, 410, 410, 568, 568, 568, 568, 568, 567, 64, 64, 
+};
+
+/* decomposition data */
+static const unsigned short decomp_data[] = {
+    0, 257, 32, 514, 32, 776, 259, 97, 514, 32, 772, 259, 50, 259, 51, 514, 
+    32, 769, 258, 956, 514, 32, 807, 259, 49, 259, 111, 772, 49, 8260, 52, 
+    772, 49, 8260, 50, 772, 51, 8260, 52, 512, 65, 768, 512, 65, 769, 512, 
+    65, 770, 512, 65, 771, 512, 65, 776, 512, 65, 778, 512, 67, 807, 512, 69, 
+    768, 512, 69, 769, 512, 69, 770, 512, 69, 776, 512, 73, 768, 512, 73, 
+    769, 512, 73, 770, 512, 73, 776, 512, 78, 771, 512, 79, 768, 512, 79, 
+    769, 512, 79, 770, 512, 79, 771, 512, 79, 776, 512, 85, 768, 512, 85, 
+    769, 512, 85, 770, 512, 85, 776, 512, 89, 769, 512, 97, 768, 512, 97, 
+    769, 512, 97, 770, 512, 97, 771, 512, 97, 776, 512, 97, 778, 512, 99, 
+    807, 512, 101, 768, 512, 101, 769, 512, 101, 770, 512, 101, 776, 512, 
+    105, 768, 512, 105, 769, 512, 105, 770, 512, 105, 776, 512, 110, 771, 
+    512, 111, 768, 512, 111, 769, 512, 111, 770, 512, 111, 771, 512, 111, 
+    776, 512, 117, 768, 512, 117, 769, 512, 117, 770, 512, 117, 776, 512, 
+    121, 769, 512, 121, 776, 512, 65, 772, 512, 97, 772, 512, 65, 774, 512, 
+    97, 774, 512, 65, 808, 512, 97, 808, 512, 67, 769, 512, 99, 769, 512, 67, 
+    770, 512, 99, 770, 512, 67, 775, 512, 99, 775, 512, 67, 780, 512, 99, 
+    780, 512, 68, 780, 512, 100, 780, 512, 69, 772, 512, 101, 772, 512, 69, 
+    774, 512, 101, 774, 512, 69, 775, 512, 101, 775, 512, 69, 808, 512, 101, 
+    808, 512, 69, 780, 512, 101, 780, 512, 71, 770, 512, 103, 770, 512, 71, 
+    774, 512, 103, 774, 512, 71, 775, 512, 103, 775, 512, 71, 807, 512, 103, 
+    807, 512, 72, 770, 512, 104, 770, 512, 73, 771, 512, 105, 771, 512, 73, 
+    772, 512, 105, 772, 512, 73, 774, 512, 105, 774, 512, 73, 808, 512, 105, 
+    808, 512, 73, 775, 514, 73, 74, 514, 105, 106, 512, 74, 770, 512, 106, 
+    770, 512, 75, 807, 512, 107, 807, 512, 76, 769, 512, 108, 769, 512, 76, 
+    807, 512, 108, 807, 512, 76, 780, 512, 108, 780, 514, 76, 183, 514, 108, 
+    183, 512, 78, 769, 512, 110, 769, 512, 78, 807, 512, 110, 807, 512, 78, 
+    780, 512, 110, 780, 514, 700, 110, 512, 79, 772, 512, 111, 772, 512, 79, 
+    774, 512, 111, 774, 512, 79, 779, 512, 111, 779, 512, 82, 769, 512, 114, 
+    769, 512, 82, 807, 512, 114, 807, 512, 82, 780, 512, 114, 780, 512, 83, 
+    769, 512, 115, 769, 512, 83, 770, 512, 115, 770, 512, 83, 807, 512, 115, 
+    807, 512, 83, 780, 512, 115, 780, 512, 84, 807, 512, 116, 807, 512, 84, 
+    780, 512, 116, 780, 512, 85, 771, 512, 117, 771, 512, 85, 772, 512, 117, 
+    772, 512, 85, 774, 512, 117, 774, 512, 85, 778, 512, 117, 778, 512, 85, 
+    779, 512, 117, 779, 512, 85, 808, 512, 117, 808, 512, 87, 770, 512, 119, 
+    770, 512, 89, 770, 512, 121, 770, 512, 89, 776, 512, 90, 769, 512, 122, 
+    769, 512, 90, 775, 512, 122, 775, 512, 90, 780, 512, 122, 780, 258, 115, 
+    512, 79, 795, 512, 111, 795, 512, 85, 795, 512, 117, 795, 514, 68, 381, 
+    514, 68, 382, 514, 100, 382, 514, 76, 74, 514, 76, 106, 514, 108, 106, 
+    514, 78, 74, 514, 78, 106, 514, 110, 106, 512, 65, 780, 512, 97, 780, 
+    512, 73, 780, 512, 105, 780, 512, 79, 780, 512, 111, 780, 512, 85, 780, 
+    512, 117, 780, 512, 220, 772, 512, 252, 772, 512, 220, 769, 512, 252, 
+    769, 512, 220, 780, 512, 252, 780, 512, 220, 768, 512, 252, 768, 512, 
+    196, 772, 512, 228, 772, 512, 550, 772, 512, 551, 772, 512, 198, 772, 
+    512, 230, 772, 512, 71, 780, 512, 103, 780, 512, 75, 780, 512, 107, 780, 
+    512, 79, 808, 512, 111, 808, 512, 490, 772, 512, 491, 772, 512, 439, 780, 
+    512, 658, 780, 512, 106, 780, 514, 68, 90, 514, 68, 122, 514, 100, 122, 
+    512, 71, 769, 512, 103, 769, 512, 78, 768, 512, 110, 768, 512, 197, 769, 
+    512, 229, 769, 512, 198, 769, 512, 230, 769, 512, 216, 769, 512, 248, 
+    769, 512, 65, 783, 512, 97, 783, 512, 65, 785, 512, 97, 785, 512, 69, 
+    783, 512, 101, 783, 512, 69, 785, 512, 101, 785, 512, 73, 783, 512, 105, 
+    783, 512, 73, 785, 512, 105, 785, 512, 79, 783, 512, 111, 783, 512, 79, 
+    785, 512, 111, 785, 512, 82, 783, 512, 114, 783, 512, 82, 785, 512, 114, 
+    785, 512, 85, 783, 512, 117, 783, 512, 85, 785, 512, 117, 785, 512, 83, 
+    806, 512, 115, 806, 512, 84, 806, 512, 116, 806, 512, 72, 780, 512, 104, 
+    780, 512, 65, 775, 512, 97, 775, 512, 69, 807, 512, 101, 807, 512, 214, 
+    772, 512, 246, 772, 512, 213, 772, 512, 245, 772, 512, 79, 775, 512, 111, 
+    775, 512, 558, 772, 512, 559, 772, 512, 89, 772, 512, 121, 772, 259, 104, 
+    259, 614, 259, 106, 259, 114, 259, 633, 259, 635, 259, 641, 259, 119, 
+    259, 121, 514, 32, 774, 514, 32, 775, 514, 32, 778, 514, 32, 808, 514, 
+    32, 771, 514, 32, 779, 259, 611, 259, 108, 259, 115, 259, 120, 259, 661, 
+    256, 768, 256, 769, 256, 787, 512, 776, 769, 256, 697, 514, 32, 837, 256, 
+    59, 514, 32, 769, 512, 168, 769, 512, 913, 769, 256, 183, 512, 917, 769, 
+    512, 919, 769, 512, 921, 769, 512, 927, 769, 512, 933, 769, 512, 937, 
+    769, 512, 970, 769, 512, 921, 776, 512, 933, 776, 512, 945, 769, 512, 
+    949, 769, 512, 951, 769, 512, 953, 769, 512, 971, 769, 512, 953, 776, 
+    512, 965, 776, 512, 959, 769, 512, 965, 769, 512, 969, 769, 258, 946, 
+    258, 952, 258, 933, 512, 978, 769, 512, 978, 776, 258, 966, 258, 960, 
+    258, 954, 258, 961, 258, 962, 258, 920, 258, 949, 258, 931, 512, 1045, 
+    768, 512, 1045, 776, 512, 1043, 769, 512, 1030, 776, 512, 1050, 769, 512, 
+    1048, 768, 512, 1059, 774, 512, 1048, 774, 512, 1080, 774, 512, 1077, 
+    768, 512, 1077, 776, 512, 1075, 769, 512, 1110, 776, 512, 1082, 769, 512, 
+    1080, 768, 512, 1091, 774, 512, 1140, 783, 512, 1141, 783, 512, 1046, 
+    774, 512, 1078, 774, 512, 1040, 774, 512, 1072, 774, 512, 1040, 776, 512, 
+    1072, 776, 512, 1045, 774, 512, 1077, 774, 512, 1240, 776, 512, 1241, 
+    776, 512, 1046, 776, 512, 1078, 776, 512, 1047, 776, 512, 1079, 776, 512, 
+    1048, 772, 512, 1080, 772, 512, 1048, 776, 512, 1080, 776, 512, 1054, 
+    776, 512, 1086, 776, 512, 1256, 776, 512, 1257, 776, 512, 1069, 776, 512, 
+    1101, 776, 512, 1059, 772, 512, 1091, 772, 512, 1059, 776, 512, 1091, 
+    776, 512, 1059, 779, 512, 1091, 779, 512, 1063, 776, 512, 1095, 776, 512, 
+    1067, 776, 512, 1099, 776, 514, 1381, 1410, 512, 1575, 1619, 512, 1575, 
+    1620, 512, 1608, 1620, 512, 1575, 1621, 512, 1610, 1620, 514, 1575, 1652, 
+    514, 1608, 1652, 514, 1735, 1652, 514, 1610, 1652, 512, 1749, 1620, 512, 
+    1729, 1620, 512, 1746, 1620, 512, 2344, 2364, 512, 2352, 2364, 512, 2355, 
+    2364, 512, 2325, 2364, 512, 2326, 2364, 512, 2327, 2364, 512, 2332, 2364, 
+    512, 2337, 2364, 512, 2338, 2364, 512, 2347, 2364, 512, 2351, 2364, 512, 
+    2503, 2494, 512, 2503, 2519, 512, 2465, 2492, 512, 2466, 2492, 512, 2479, 
+    2492, 512, 2610, 2620, 512, 2616, 2620, 512, 2582, 2620, 512, 2583, 2620, 
+    512, 2588, 2620, 512, 2603, 2620, 512, 2887, 2902, 512, 2887, 2878, 512, 
+    2887, 2903, 512, 2849, 2876, 512, 2850, 2876, 512, 2962, 3031, 512, 3014, 
+    3006, 512, 3015, 3006, 512, 3014, 3031, 512, 3142, 3158, 512, 3263, 3285, 
+    512, 3270, 3285, 512, 3270, 3286, 512, 3270, 3266, 512, 3274, 3285, 512, 
+    3398, 3390, 512, 3399, 3390, 512, 3398, 3415, 512, 3545, 3530, 512, 3545, 
+    3535, 512, 3548, 3530, 512, 3545, 3551, 514, 3661, 3634, 514, 3789, 3762, 
+    514, 3755, 3737, 514, 3755, 3745, 257, 3851, 512, 3906, 4023, 512, 3916, 
+    4023, 512, 3921, 4023, 512, 3926, 4023, 512, 3931, 4023, 512, 3904, 4021, 
+    512, 3953, 3954, 512, 3953, 3956, 512, 4018, 3968, 514, 4018, 3969, 512, 
+    4019, 3968, 514, 4019, 3969, 512, 3953, 3968, 512, 3986, 4023, 512, 3996, 
+    4023, 512, 4001, 4023, 512, 4006, 4023, 512, 4011, 4023, 512, 3984, 4021, 
+    512, 4133, 4142, 259, 4316, 512, 6917, 6965, 512, 6919, 6965, 512, 6921, 
+    6965, 512, 6923, 6965, 512, 6925, 6965, 512, 6929, 6965, 512, 6970, 6965, 
+    512, 6972, 6965, 512, 6974, 6965, 512, 6975, 6965, 512, 6978, 6965, 259, 
+    65, 259, 198, 259, 66, 259, 68, 259, 69, 259, 398, 259, 71, 259, 72, 259, 
+    73, 259, 74, 259, 75, 259, 76, 259, 77, 259, 78, 259, 79, 259, 546, 259, 
+    80, 259, 82, 259, 84, 259, 85, 259, 87, 259, 97, 259, 592, 259, 593, 259, 
+    7426, 259, 98, 259, 100, 259, 101, 259, 601, 259, 603, 259, 604, 259, 
+    103, 259, 107, 259, 109, 259, 331, 259, 111, 259, 596, 259, 7446, 259, 
+    7447, 259, 112, 259, 116, 259, 117, 259, 7453, 259, 623, 259, 118, 259, 
+    7461, 259, 946, 259, 947, 259, 948, 259, 966, 259, 967, 261, 105, 261, 
+    114, 261, 117, 261, 118, 261, 946, 261, 947, 261, 961, 261, 966, 261, 
+    967, 259, 1085, 259, 594, 259, 99, 259, 597, 259, 240, 259, 604, 259, 
+    102, 259, 607, 259, 609, 259, 613, 259, 616, 259, 617, 259, 618, 259, 
+    7547, 259, 669, 259, 621, 259, 7557, 259, 671, 259, 625, 259, 624, 259, 
+    626, 259, 627, 259, 628, 259, 629, 259, 632, 259, 642, 259, 643, 259, 
+    427, 259, 649, 259, 650, 259, 7452, 259, 651, 259, 652, 259, 122, 259, 
+    656, 259, 657, 259, 658, 259, 952, 512, 65, 805, 512, 97, 805, 512, 66, 
+    775, 512, 98, 775, 512, 66, 803, 512, 98, 803, 512, 66, 817, 512, 98, 
+    817, 512, 199, 769, 512, 231, 769, 512, 68, 775, 512, 100, 775, 512, 68, 
+    803, 512, 100, 803, 512, 68, 817, 512, 100, 817, 512, 68, 807, 512, 100, 
+    807, 512, 68, 813, 512, 100, 813, 512, 274, 768, 512, 275, 768, 512, 274, 
+    769, 512, 275, 769, 512, 69, 813, 512, 101, 813, 512, 69, 816, 512, 101, 
+    816, 512, 552, 774, 512, 553, 774, 512, 70, 775, 512, 102, 775, 512, 71, 
+    772, 512, 103, 772, 512, 72, 775, 512, 104, 775, 512, 72, 803, 512, 104, 
+    803, 512, 72, 776, 512, 104, 776, 512, 72, 807, 512, 104, 807, 512, 72, 
+    814, 512, 104, 814, 512, 73, 816, 512, 105, 816, 512, 207, 769, 512, 239, 
+    769, 512, 75, 769, 512, 107, 769, 512, 75, 803, 512, 107, 803, 512, 75, 
+    817, 512, 107, 817, 512, 76, 803, 512, 108, 803, 512, 7734, 772, 512, 
+    7735, 772, 512, 76, 817, 512, 108, 817, 512, 76, 813, 512, 108, 813, 512, 
+    77, 769, 512, 109, 769, 512, 77, 775, 512, 109, 775, 512, 77, 803, 512, 
+    109, 803, 512, 78, 775, 512, 110, 775, 512, 78, 803, 512, 110, 803, 512, 
+    78, 817, 512, 110, 817, 512, 78, 813, 512, 110, 813, 512, 213, 769, 512, 
+    245, 769, 512, 213, 776, 512, 245, 776, 512, 332, 768, 512, 333, 768, 
+    512, 332, 769, 512, 333, 769, 512, 80, 769, 512, 112, 769, 512, 80, 775, 
+    512, 112, 775, 512, 82, 775, 512, 114, 775, 512, 82, 803, 512, 114, 803, 
+    512, 7770, 772, 512, 7771, 772, 512, 82, 817, 512, 114, 817, 512, 83, 
+    775, 512, 115, 775, 512, 83, 803, 512, 115, 803, 512, 346, 775, 512, 347, 
+    775, 512, 352, 775, 512, 353, 775, 512, 7778, 775, 512, 7779, 775, 512, 
+    84, 775, 512, 116, 775, 512, 84, 803, 512, 116, 803, 512, 84, 817, 512, 
+    116, 817, 512, 84, 813, 512, 116, 813, 512, 85, 804, 512, 117, 804, 512, 
+    85, 816, 512, 117, 816, 512, 85, 813, 512, 117, 813, 512, 360, 769, 512, 
+    361, 769, 512, 362, 776, 512, 363, 776, 512, 86, 771, 512, 118, 771, 512, 
+    86, 803, 512, 118, 803, 512, 87, 768, 512, 119, 768, 512, 87, 769, 512, 
+    119, 769, 512, 87, 776, 512, 119, 776, 512, 87, 775, 512, 119, 775, 512, 
+    87, 803, 512, 119, 803, 512, 88, 775, 512, 120, 775, 512, 88, 776, 512, 
+    120, 776, 512, 89, 775, 512, 121, 775, 512, 90, 770, 512, 122, 770, 512, 
+    90, 803, 512, 122, 803, 512, 90, 817, 512, 122, 817, 512, 104, 817, 512, 
+    116, 776, 512, 119, 778, 512, 121, 778, 514, 97, 702, 512, 383, 775, 512, 
+    65, 803, 512, 97, 803, 512, 65, 777, 512, 97, 777, 512, 194, 769, 512, 
+    226, 769, 512, 194, 768, 512, 226, 768, 512, 194, 777, 512, 226, 777, 
+    512, 194, 771, 512, 226, 771, 512, 7840, 770, 512, 7841, 770, 512, 258, 
+    769, 512, 259, 769, 512, 258, 768, 512, 259, 768, 512, 258, 777, 512, 
+    259, 777, 512, 258, 771, 512, 259, 771, 512, 7840, 774, 512, 7841, 774, 
+    512, 69, 803, 512, 101, 803, 512, 69, 777, 512, 101, 777, 512, 69, 771, 
+    512, 101, 771, 512, 202, 769, 512, 234, 769, 512, 202, 768, 512, 234, 
+    768, 512, 202, 777, 512, 234, 777, 512, 202, 771, 512, 234, 771, 512, 
+    7864, 770, 512, 7865, 770, 512, 73, 777, 512, 105, 777, 512, 73, 803, 
+    512, 105, 803, 512, 79, 803, 512, 111, 803, 512, 79, 777, 512, 111, 777, 
+    512, 212, 769, 512, 244, 769, 512, 212, 768, 512, 244, 768, 512, 212, 
+    777, 512, 244, 777, 512, 212, 771, 512, 244, 771, 512, 7884, 770, 512, 
+    7885, 770, 512, 416, 769, 512, 417, 769, 512, 416, 768, 512, 417, 768, 
+    512, 416, 777, 512, 417, 777, 512, 416, 771, 512, 417, 771, 512, 416, 
+    803, 512, 417, 803, 512, 85, 803, 512, 117, 803, 512, 85, 777, 512, 117, 
+    777, 512, 431, 769, 512, 432, 769, 512, 431, 768, 512, 432, 768, 512, 
+    431, 777, 512, 432, 777, 512, 431, 771, 512, 432, 771, 512, 431, 803, 
+    512, 432, 803, 512, 89, 768, 512, 121, 768, 512, 89, 803, 512, 121, 803, 
+    512, 89, 777, 512, 121, 777, 512, 89, 771, 512, 121, 771, 512, 945, 787, 
+    512, 945, 788, 512, 7936, 768, 512, 7937, 768, 512, 7936, 769, 512, 7937, 
+    769, 512, 7936, 834, 512, 7937, 834, 512, 913, 787, 512, 913, 788, 512, 
+    7944, 768, 512, 7945, 768, 512, 7944, 769, 512, 7945, 769, 512, 7944, 
+    834, 512, 7945, 834, 512, 949, 787, 512, 949, 788, 512, 7952, 768, 512, 
+    7953, 768, 512, 7952, 769, 512, 7953, 769, 512, 917, 787, 512, 917, 788, 
+    512, 7960, 768, 512, 7961, 768, 512, 7960, 769, 512, 7961, 769, 512, 951, 
+    787, 512, 951, 788, 512, 7968, 768, 512, 7969, 768, 512, 7968, 769, 512, 
+    7969, 769, 512, 7968, 834, 512, 7969, 834, 512, 919, 787, 512, 919, 788, 
+    512, 7976, 768, 512, 7977, 768, 512, 7976, 769, 512, 7977, 769, 512, 
+    7976, 834, 512, 7977, 834, 512, 953, 787, 512, 953, 788, 512, 7984, 768, 
+    512, 7985, 768, 512, 7984, 769, 512, 7985, 769, 512, 7984, 834, 512, 
+    7985, 834, 512, 921, 787, 512, 921, 788, 512, 7992, 768, 512, 7993, 768, 
+    512, 7992, 769, 512, 7993, 769, 512, 7992, 834, 512, 7993, 834, 512, 959, 
+    787, 512, 959, 788, 512, 8000, 768, 512, 8001, 768, 512, 8000, 769, 512, 
+    8001, 769, 512, 927, 787, 512, 927, 788, 512, 8008, 768, 512, 8009, 768, 
+    512, 8008, 769, 512, 8009, 769, 512, 965, 787, 512, 965, 788, 512, 8016, 
+    768, 512, 8017, 768, 512, 8016, 769, 512, 8017, 769, 512, 8016, 834, 512, 
+    8017, 834, 512, 933, 788, 512, 8025, 768, 512, 8025, 769, 512, 8025, 834, 
+    512, 969, 787, 512, 969, 788, 512, 8032, 768, 512, 8033, 768, 512, 8032, 
+    769, 512, 8033, 769, 512, 8032, 834, 512, 8033, 834, 512, 937, 787, 512, 
+    937, 788, 512, 8040, 768, 512, 8041, 768, 512, 8040, 769, 512, 8041, 769, 
+    512, 8040, 834, 512, 8041, 834, 512, 945, 768, 256, 940, 512, 949, 768, 
+    256, 941, 512, 951, 768, 256, 942, 512, 953, 768, 256, 943, 512, 959, 
+    768, 256, 972, 512, 965, 768, 256, 973, 512, 969, 768, 256, 974, 512, 
+    7936, 837, 512, 7937, 837, 512, 7938, 837, 512, 7939, 837, 512, 7940, 
+    837, 512, 7941, 837, 512, 7942, 837, 512, 7943, 837, 512, 7944, 837, 512, 
+    7945, 837, 512, 7946, 837, 512, 7947, 837, 512, 7948, 837, 512, 7949, 
+    837, 512, 7950, 837, 512, 7951, 837, 512, 7968, 837, 512, 7969, 837, 512, 
+    7970, 837, 512, 7971, 837, 512, 7972, 837, 512, 7973, 837, 512, 7974, 
+    837, 512, 7975, 837, 512, 7976, 837, 512, 7977, 837, 512, 7978, 837, 512, 
+    7979, 837, 512, 7980, 837, 512, 7981, 837, 512, 7982, 837, 512, 7983, 
+    837, 512, 8032, 837, 512, 8033, 837, 512, 8034, 837, 512, 8035, 837, 512, 
+    8036, 837, 512, 8037, 837, 512, 8038, 837, 512, 8039, 837, 512, 8040, 
+    837, 512, 8041, 837, 512, 8042, 837, 512, 8043, 837, 512, 8044, 837, 512, 
+    8045, 837, 512, 8046, 837, 512, 8047, 837, 512, 945, 774, 512, 945, 772, 
+    512, 8048, 837, 512, 945, 837, 512, 940, 837, 512, 945, 834, 512, 8118, 
+    837, 512, 913, 774, 512, 913, 772, 512, 913, 768, 256, 902, 512, 913, 
+    837, 514, 32, 787, 256, 953, 514, 32, 787, 514, 32, 834, 512, 168, 834, 
+    512, 8052, 837, 512, 951, 837, 512, 942, 837, 512, 951, 834, 512, 8134, 
+    837, 512, 917, 768, 256, 904, 512, 919, 768, 256, 905, 512, 919, 837, 
+    512, 8127, 768, 512, 8127, 769, 512, 8127, 834, 512, 953, 774, 512, 953, 
+    772, 512, 970, 768, 256, 912, 512, 953, 834, 512, 970, 834, 512, 921, 
+    774, 512, 921, 772, 512, 921, 768, 256, 906, 512, 8190, 768, 512, 8190, 
+    769, 512, 8190, 834, 512, 965, 774, 512, 965, 772, 512, 971, 768, 256, 
+    944, 512, 961, 787, 512, 961, 788, 512, 965, 834, 512, 971, 834, 512, 
+    933, 774, 512, 933, 772, 512, 933, 768, 256, 910, 512, 929, 788, 512, 
+    168, 768, 256, 901, 256, 96, 512, 8060, 837, 512, 969, 837, 512, 974, 
+    837, 512, 969, 834, 512, 8182, 837, 512, 927, 768, 256, 908, 512, 937, 
+    768, 256, 911, 512, 937, 837, 256, 180, 514, 32, 788, 256, 8194, 256, 
+    8195, 258, 32, 258, 32, 258, 32, 258, 32, 258, 32, 257, 32, 258, 32, 258, 
+    32, 258, 32, 257, 8208, 514, 32, 819, 258, 46, 514, 46, 46, 770, 46, 46, 
+    46, 257, 32, 514, 8242, 8242, 770, 8242, 8242, 8242, 514, 8245, 8245, 
+    770, 8245, 8245, 8245, 514, 33, 33, 514, 32, 773, 514, 63, 63, 514, 63, 
+    33, 514, 33, 63, 1026, 8242, 8242, 8242, 8242, 258, 32, 259, 48, 259, 
+    105, 259, 52, 259, 53, 259, 54, 259, 55, 259, 56, 259, 57, 259, 43, 259, 
+    8722, 259, 61, 259, 40, 259, 41, 259, 110, 261, 48, 261, 49, 261, 50, 
+    261, 51, 261, 52, 261, 53, 261, 54, 261, 55, 261, 56, 261, 57, 261, 43, 
+    261, 8722, 261, 61, 261, 40, 261, 41, 261, 97, 261, 101, 261, 111, 261, 
+    120, 261, 601, 261, 104, 261, 107, 261, 108, 261, 109, 261, 110, 261, 
+    112, 261, 115, 261, 116, 514, 82, 115, 770, 97, 47, 99, 770, 97, 47, 115, 
+    262, 67, 514, 176, 67, 770, 99, 47, 111, 770, 99, 47, 117, 258, 400, 514, 
+    176, 70, 262, 103, 262, 72, 262, 72, 262, 72, 262, 104, 262, 295, 262, 
+    73, 262, 73, 262, 76, 262, 108, 262, 78, 514, 78, 111, 262, 80, 262, 81, 
+    262, 82, 262, 82, 262, 82, 515, 83, 77, 770, 84, 69, 76, 515, 84, 77, 
+    262, 90, 256, 937, 262, 90, 256, 75, 256, 197, 262, 66, 262, 67, 262, 
+    101, 262, 69, 262, 70, 262, 77, 262, 111, 258, 1488, 258, 1489, 258, 
+    1490, 258, 1491, 262, 105, 770, 70, 65, 88, 262, 960, 262, 947, 262, 915, 
+    262, 928, 262, 8721, 262, 68, 262, 100, 262, 101, 262, 105, 262, 106, 
+    772, 49, 8260, 55, 772, 49, 8260, 57, 1028, 49, 8260, 49, 48, 772, 49, 
+    8260, 51, 772, 50, 8260, 51, 772, 49, 8260, 53, 772, 50, 8260, 53, 772, 
+    51, 8260, 53, 772, 52, 8260, 53, 772, 49, 8260, 54, 772, 53, 8260, 54, 
+    772, 49, 8260, 56, 772, 51, 8260, 56, 772, 53, 8260, 56, 772, 55, 8260, 
+    56, 516, 49, 8260, 258, 73, 514, 73, 73, 770, 73, 73, 73, 514, 73, 86, 
+    258, 86, 514, 86, 73, 770, 86, 73, 73, 1026, 86, 73, 73, 73, 514, 73, 88, 
+    258, 88, 514, 88, 73, 770, 88, 73, 73, 258, 76, 258, 67, 258, 68, 258, 
+    77, 258, 105, 514, 105, 105, 770, 105, 105, 105, 514, 105, 118, 258, 118, 
+    514, 118, 105, 770, 118, 105, 105, 1026, 118, 105, 105, 105, 514, 105, 
+    120, 258, 120, 514, 120, 105, 770, 120, 105, 105, 258, 108, 258, 99, 258, 
+    100, 258, 109, 772, 48, 8260, 51, 512, 8592, 824, 512, 8594, 824, 512, 
+    8596, 824, 512, 8656, 824, 512, 8660, 824, 512, 8658, 824, 512, 8707, 
+    824, 512, 8712, 824, 512, 8715, 824, 512, 8739, 824, 512, 8741, 824, 514, 
+    8747, 8747, 770, 8747, 8747, 8747, 514, 8750, 8750, 770, 8750, 8750, 
+    8750, 512, 8764, 824, 512, 8771, 824, 512, 8773, 824, 512, 8776, 824, 
+    512, 61, 824, 512, 8801, 824, 512, 8781, 824, 512, 60, 824, 512, 62, 824, 
+    512, 8804, 824, 512, 8805, 824, 512, 8818, 824, 512, 8819, 824, 512, 
+    8822, 824, 512, 8823, 824, 512, 8826, 824, 512, 8827, 824, 512, 8834, 
+    824, 512, 8835, 824, 512, 8838, 824, 512, 8839, 824, 512, 8866, 824, 512, 
+    8872, 824, 512, 8873, 824, 512, 8875, 824, 512, 8828, 824, 512, 8829, 
+    824, 512, 8849, 824, 512, 8850, 824, 512, 8882, 824, 512, 8883, 824, 512, 
+    8884, 824, 512, 8885, 824, 256, 12296, 256, 12297, 263, 49, 263, 50, 263, 
+    51, 263, 52, 263, 53, 263, 54, 263, 55, 263, 56, 263, 57, 519, 49, 48, 
+    519, 49, 49, 519, 49, 50, 519, 49, 51, 519, 49, 52, 519, 49, 53, 519, 49, 
+    54, 519, 49, 55, 519, 49, 56, 519, 49, 57, 519, 50, 48, 770, 40, 49, 41, 
+    770, 40, 50, 41, 770, 40, 51, 41, 770, 40, 52, 41, 770, 40, 53, 41, 770, 
+    40, 54, 41, 770, 40, 55, 41, 770, 40, 56, 41, 770, 40, 57, 41, 1026, 40, 
+    49, 48, 41, 1026, 40, 49, 49, 41, 1026, 40, 49, 50, 41, 1026, 40, 49, 51, 
+    41, 1026, 40, 49, 52, 41, 1026, 40, 49, 53, 41, 1026, 40, 49, 54, 41, 
+    1026, 40, 49, 55, 41, 1026, 40, 49, 56, 41, 1026, 40, 49, 57, 41, 1026, 
+    40, 50, 48, 41, 514, 49, 46, 514, 50, 46, 514, 51, 46, 514, 52, 46, 514, 
+    53, 46, 514, 54, 46, 514, 55, 46, 514, 56, 46, 514, 57, 46, 770, 49, 48, 
+    46, 770, 49, 49, 46, 770, 49, 50, 46, 770, 49, 51, 46, 770, 49, 52, 46, 
+    770, 49, 53, 46, 770, 49, 54, 46, 770, 49, 55, 46, 770, 49, 56, 46, 770, 
+    49, 57, 46, 770, 50, 48, 46, 770, 40, 97, 41, 770, 40, 98, 41, 770, 40, 
+    99, 41, 770, 40, 100, 41, 770, 40, 101, 41, 770, 40, 102, 41, 770, 40, 
+    103, 41, 770, 40, 104, 41, 770, 40, 105, 41, 770, 40, 106, 41, 770, 40, 
+    107, 41, 770, 40, 108, 41, 770, 40, 109, 41, 770, 40, 110, 41, 770, 40, 
+    111, 41, 770, 40, 112, 41, 770, 40, 113, 41, 770, 40, 114, 41, 770, 40, 
+    115, 41, 770, 40, 116, 41, 770, 40, 117, 41, 770, 40, 118, 41, 770, 40, 
+    119, 41, 770, 40, 120, 41, 770, 40, 121, 41, 770, 40, 122, 41, 263, 65, 
+    263, 66, 263, 67, 263, 68, 263, 69, 263, 70, 263, 71, 263, 72, 263, 73, 
+    263, 74, 263, 75, 263, 76, 263, 77, 263, 78, 263, 79, 263, 80, 263, 81, 
+    263, 82, 263, 83, 263, 84, 263, 85, 263, 86, 263, 87, 263, 88, 263, 89, 
+    263, 90, 263, 97, 263, 98, 263, 99, 263, 100, 263, 101, 263, 102, 263, 
+    103, 263, 104, 263, 105, 263, 106, 263, 107, 263, 108, 263, 109, 263, 
+    110, 263, 111, 263, 112, 263, 113, 263, 114, 263, 115, 263, 116, 263, 
+    117, 263, 118, 263, 119, 263, 120, 263, 121, 263, 122, 263, 48, 1026, 
+    8747, 8747, 8747, 8747, 770, 58, 58, 61, 514, 61, 61, 770, 61, 61, 61, 
+    512, 10973, 824, 261, 106, 259, 86, 259, 11617, 258, 27597, 258, 40863, 
+    258, 19968, 258, 20008, 258, 20022, 258, 20031, 258, 20057, 258, 20101, 
+    258, 20108, 258, 20128, 258, 20154, 258, 20799, 258, 20837, 258, 20843, 
+    258, 20866, 258, 20886, 258, 20907, 258, 20960, 258, 20981, 258, 20992, 
+    258, 21147, 258, 21241, 258, 21269, 258, 21274, 258, 21304, 258, 21313, 
+    258, 21340, 258, 21353, 258, 21378, 258, 21430, 258, 21448, 258, 21475, 
+    258, 22231, 258, 22303, 258, 22763, 258, 22786, 258, 22794, 258, 22805, 
+    258, 22823, 258, 22899, 258, 23376, 258, 23424, 258, 23544, 258, 23567, 
+    258, 23586, 258, 23608, 258, 23662, 258, 23665, 258, 24027, 258, 24037, 
+    258, 24049, 258, 24062, 258, 24178, 258, 24186, 258, 24191, 258, 24308, 
+    258, 24318, 258, 24331, 258, 24339, 258, 24400, 258, 24417, 258, 24435, 
+    258, 24515, 258, 25096, 258, 25142, 258, 25163, 258, 25903, 258, 25908, 
+    258, 25991, 258, 26007, 258, 26020, 258, 26041, 258, 26080, 258, 26085, 
+    258, 26352, 258, 26376, 258, 26408, 258, 27424, 258, 27490, 258, 27513, 
+    258, 27571, 258, 27595, 258, 27604, 258, 27611, 258, 27663, 258, 27668, 
+    258, 27700, 258, 28779, 258, 29226, 258, 29238, 258, 29243, 258, 29247, 
+    258, 29255, 258, 29273, 258, 29275, 258, 29356, 258, 29572, 258, 29577, 
+    258, 29916, 258, 29926, 258, 29976, 258, 29983, 258, 29992, 258, 30000, 
+    258, 30091, 258, 30098, 258, 30326, 258, 30333, 258, 30382, 258, 30399, 
+    258, 30446, 258, 30683, 258, 30690, 258, 30707, 258, 31034, 258, 31160, 
+    258, 31166, 258, 31348, 258, 31435, 258, 31481, 258, 31859, 258, 31992, 
+    258, 32566, 258, 32593, 258, 32650, 258, 32701, 258, 32769, 258, 32780, 
+    258, 32786, 258, 32819, 258, 32895, 258, 32905, 258, 33251, 258, 33258, 
+    258, 33267, 258, 33276, 258, 33292, 258, 33307, 258, 33311, 258, 33390, 
+    258, 33394, 258, 33400, 258, 34381, 258, 34411, 258, 34880, 258, 34892, 
+    258, 34915, 258, 35198, 258, 35211, 258, 35282, 258, 35328, 258, 35895, 
+    258, 35910, 258, 35925, 258, 35960, 258, 35997, 258, 36196, 258, 36208, 
+    258, 36275, 258, 36523, 258, 36554, 258, 36763, 258, 36784, 258, 36789, 
+    258, 37009, 258, 37193, 258, 37318, 258, 37324, 258, 37329, 258, 38263, 
+    258, 38272, 258, 38428, 258, 38582, 258, 38585, 258, 38632, 258, 38737, 
+    258, 38750, 258, 38754, 258, 38761, 258, 38859, 258, 38893, 258, 38899, 
+    258, 38913, 258, 39080, 258, 39131, 258, 39135, 258, 39318, 258, 39321, 
+    258, 39340, 258, 39592, 258, 39640, 258, 39647, 258, 39717, 258, 39727, 
+    258, 39730, 258, 39740, 258, 39770, 258, 40165, 258, 40565, 258, 40575, 
+    258, 40613, 258, 40635, 258, 40643, 258, 40653, 258, 40657, 258, 40697, 
+    258, 40701, 258, 40718, 258, 40723, 258, 40736, 258, 40763, 258, 40778, 
+    258, 40786, 258, 40845, 258, 40860, 258, 40864, 264, 32, 258, 12306, 258, 
+    21313, 258, 21316, 258, 21317, 512, 12363, 12441, 512, 12365, 12441, 512, 
+    12367, 12441, 512, 12369, 12441, 512, 12371, 12441, 512, 12373, 12441, 
+    512, 12375, 12441, 512, 12377, 12441, 512, 12379, 12441, 512, 12381, 
+    12441, 512, 12383, 12441, 512, 12385, 12441, 512, 12388, 12441, 512, 
+    12390, 12441, 512, 12392, 12441, 512, 12399, 12441, 512, 12399, 12442, 
+    512, 12402, 12441, 512, 12402, 12442, 512, 12405, 12441, 512, 12405, 
+    12442, 512, 12408, 12441, 512, 12408, 12442, 512, 12411, 12441, 512, 
+    12411, 12442, 512, 12358, 12441, 514, 32, 12441, 514, 32, 12442, 512, 
+    12445, 12441, 521, 12424, 12426, 512, 12459, 12441, 512, 12461, 12441, 
+    512, 12463, 12441, 512, 12465, 12441, 512, 12467, 12441, 512, 12469, 
+    12441, 512, 12471, 12441, 512, 12473, 12441, 512, 12475, 12441, 512, 
+    12477, 12441, 512, 12479, 12441, 512, 12481, 12441, 512, 12484, 12441, 
+    512, 12486, 12441, 512, 12488, 12441, 512, 12495, 12441, 512, 12495, 
+    12442, 512, 12498, 12441, 512, 12498, 12442, 512, 12501, 12441, 512, 
+    12501, 12442, 512, 12504, 12441, 512, 12504, 12442, 512, 12507, 12441, 
+    512, 12507, 12442, 512, 12454, 12441, 512, 12527, 12441, 512, 12528, 
+    12441, 512, 12529, 12441, 512, 12530, 12441, 512, 12541, 12441, 521, 
+    12467, 12488, 258, 4352, 258, 4353, 258, 4522, 258, 4354, 258, 4524, 258, 
+    4525, 258, 4355, 258, 4356, 258, 4357, 258, 4528, 258, 4529, 258, 4530, 
+    258, 4531, 258, 4532, 258, 4533, 258, 4378, 258, 4358, 258, 4359, 258, 
+    4360, 258, 4385, 258, 4361, 258, 4362, 258, 4363, 258, 4364, 258, 4365, 
+    258, 4366, 258, 4367, 258, 4368, 258, 4369, 258, 4370, 258, 4449, 258, 
+    4450, 258, 4451, 258, 4452, 258, 4453, 258, 4454, 258, 4455, 258, 4456, 
+    258, 4457, 258, 4458, 258, 4459, 258, 4460, 258, 4461, 258, 4462, 258, 
+    4463, 258, 4464, 258, 4465, 258, 4466, 258, 4467, 258, 4468, 258, 4469, 
+    258, 4448, 258, 4372, 258, 4373, 258, 4551, 258, 4552, 258, 4556, 258, 
+    4558, 258, 4563, 258, 4567, 258, 4569, 258, 4380, 258, 4573, 258, 4575, 
+    258, 4381, 258, 4382, 258, 4384, 258, 4386, 258, 4387, 258, 4391, 258, 
+    4393, 258, 4395, 258, 4396, 258, 4397, 258, 4398, 258, 4399, 258, 4402, 
+    258, 4406, 258, 4416, 258, 4423, 258, 4428, 258, 4593, 258, 4594, 258, 
+    4439, 258, 4440, 258, 4441, 258, 4484, 258, 4485, 258, 4488, 258, 4497, 
+    258, 4498, 258, 4500, 258, 4510, 258, 4513, 259, 19968, 259, 20108, 259, 
+    19977, 259, 22235, 259, 19978, 259, 20013, 259, 19979, 259, 30002, 259, 
+    20057, 259, 19993, 259, 19969, 259, 22825, 259, 22320, 259, 20154, 770, 
+    40, 4352, 41, 770, 40, 4354, 41, 770, 40, 4355, 41, 770, 40, 4357, 41, 
+    770, 40, 4358, 41, 770, 40, 4359, 41, 770, 40, 4361, 41, 770, 40, 4363, 
+    41, 770, 40, 4364, 41, 770, 40, 4366, 41, 770, 40, 4367, 41, 770, 40, 
+    4368, 41, 770, 40, 4369, 41, 770, 40, 4370, 41, 1026, 40, 4352, 4449, 41, 
+    1026, 40, 4354, 4449, 41, 1026, 40, 4355, 4449, 41, 1026, 40, 4357, 4449, 
+    41, 1026, 40, 4358, 4449, 41, 1026, 40, 4359, 4449, 41, 1026, 40, 4361, 
+    4449, 41, 1026, 40, 4363, 4449, 41, 1026, 40, 4364, 4449, 41, 1026, 40, 
+    4366, 4449, 41, 1026, 40, 4367, 4449, 41, 1026, 40, 4368, 4449, 41, 1026, 
+    40, 4369, 4449, 41, 1026, 40, 4370, 4449, 41, 1026, 40, 4364, 4462, 41, 
+    1794, 40, 4363, 4457, 4364, 4453, 4523, 41, 1538, 40, 4363, 4457, 4370, 
+    4462, 41, 770, 40, 19968, 41, 770, 40, 20108, 41, 770, 40, 19977, 41, 
+    770, 40, 22235, 41, 770, 40, 20116, 41, 770, 40, 20845, 41, 770, 40, 
+    19971, 41, 770, 40, 20843, 41, 770, 40, 20061, 41, 770, 40, 21313, 41, 
+    770, 40, 26376, 41, 770, 40, 28779, 41, 770, 40, 27700, 41, 770, 40, 
+    26408, 41, 770, 40, 37329, 41, 770, 40, 22303, 41, 770, 40, 26085, 41, 
+    770, 40, 26666, 41, 770, 40, 26377, 41, 770, 40, 31038, 41, 770, 40, 
+    21517, 41, 770, 40, 29305, 41, 770, 40, 36001, 41, 770, 40, 31069, 41, 
+    770, 40, 21172, 41, 770, 40, 20195, 41, 770, 40, 21628, 41, 770, 40, 
+    23398, 41, 770, 40, 30435, 41, 770, 40, 20225, 41, 770, 40, 36039, 41, 
+    770, 40, 21332, 41, 770, 40, 31085, 41, 770, 40, 20241, 41, 770, 40, 
+    33258, 41, 770, 40, 33267, 41, 263, 21839, 263, 24188, 263, 25991, 263, 
+    31631, 778, 80, 84, 69, 519, 50, 49, 519, 50, 50, 519, 50, 51, 519, 50, 
+    52, 519, 50, 53, 519, 50, 54, 519, 50, 55, 519, 50, 56, 519, 50, 57, 519, 
+    51, 48, 519, 51, 49, 519, 51, 50, 519, 51, 51, 519, 51, 52, 519, 51, 53, 
+    263, 4352, 263, 4354, 263, 4355, 263, 4357, 263, 4358, 263, 4359, 263, 
+    4361, 263, 4363, 263, 4364, 263, 4366, 263, 4367, 263, 4368, 263, 4369, 
+    263, 4370, 519, 4352, 4449, 519, 4354, 4449, 519, 4355, 4449, 519, 4357, 
+    4449, 519, 4358, 4449, 519, 4359, 4449, 519, 4361, 4449, 519, 4363, 4449, 
+    519, 4364, 4449, 519, 4366, 4449, 519, 4367, 4449, 519, 4368, 4449, 519, 
+    4369, 4449, 519, 4370, 4449, 1287, 4366, 4449, 4535, 4352, 4457, 1031, 
+    4364, 4462, 4363, 4468, 519, 4363, 4462, 263, 19968, 263, 20108, 263, 
+    19977, 263, 22235, 263, 20116, 263, 20845, 263, 19971, 263, 20843, 263, 
+    20061, 263, 21313, 263, 26376, 263, 28779, 263, 27700, 263, 26408, 263, 
+    37329, 263, 22303, 263, 26085, 263, 26666, 263, 26377, 263, 31038, 263, 
+    21517, 263, 29305, 263, 36001, 263, 31069, 263, 21172, 263, 31192, 263, 
+    30007, 263, 22899, 263, 36969, 263, 20778, 263, 21360, 263, 27880, 263, 
+    38917, 263, 20241, 263, 20889, 263, 27491, 263, 19978, 263, 20013, 263, 
+    19979, 263, 24038, 263, 21491, 263, 21307, 263, 23447, 263, 23398, 263, 
+    30435, 263, 20225, 263, 36039, 263, 21332, 263, 22812, 519, 51, 54, 519, 
+    51, 55, 519, 51, 56, 519, 51, 57, 519, 52, 48, 519, 52, 49, 519, 52, 50, 
+    519, 52, 51, 519, 52, 52, 519, 52, 53, 519, 52, 54, 519, 52, 55, 519, 52, 
+    56, 519, 52, 57, 519, 53, 48, 514, 49, 26376, 514, 50, 26376, 514, 51, 
+    26376, 514, 52, 26376, 514, 53, 26376, 514, 54, 26376, 514, 55, 26376, 
+    514, 56, 26376, 514, 57, 26376, 770, 49, 48, 26376, 770, 49, 49, 26376, 
+    770, 49, 50, 26376, 522, 72, 103, 778, 101, 114, 103, 522, 101, 86, 778, 
+    76, 84, 68, 263, 12450, 263, 12452, 263, 12454, 263, 12456, 263, 12458, 
+    263, 12459, 263, 12461, 263, 12463, 263, 12465, 263, 12467, 263, 12469, 
+    263, 12471, 263, 12473, 263, 12475, 263, 12477, 263, 12479, 263, 12481, 
+    263, 12484, 263, 12486, 263, 12488, 263, 12490, 263, 12491, 263, 12492, 
+    263, 12493, 263, 12494, 263, 12495, 263, 12498, 263, 12501, 263, 12504, 
+    263, 12507, 263, 12510, 263, 12511, 263, 12512, 263, 12513, 263, 12514, 
+    263, 12516, 263, 12518, 263, 12520, 263, 12521, 263, 12522, 263, 12523, 
+    263, 12524, 263, 12525, 263, 12527, 263, 12528, 263, 12529, 263, 12530, 
+    1034, 12450, 12497, 12540, 12488, 1034, 12450, 12523, 12501, 12449, 1034, 
+    12450, 12531, 12506, 12450, 778, 12450, 12540, 12523, 1034, 12452, 12491, 
+    12531, 12464, 778, 12452, 12531, 12481, 778, 12454, 12457, 12531, 1290, 
+    12456, 12473, 12463, 12540, 12489, 1034, 12456, 12540, 12459, 12540, 778, 
+    12458, 12531, 12473, 778, 12458, 12540, 12512, 778, 12459, 12452, 12522, 
+    1034, 12459, 12521, 12483, 12488, 1034, 12459, 12525, 12522, 12540, 778, 
+    12460, 12525, 12531, 778, 12460, 12531, 12510, 522, 12462, 12460, 778, 
+    12462, 12491, 12540, 1034, 12461, 12517, 12522, 12540, 1034, 12462, 
+    12523, 12480, 12540, 522, 12461, 12525, 1290, 12461, 12525, 12464, 12521, 
+    12512, 1546, 12461, 12525, 12513, 12540, 12488, 12523, 1290, 12461, 
+    12525, 12527, 12483, 12488, 778, 12464, 12521, 12512, 1290, 12464, 12521, 
+    12512, 12488, 12531, 1290, 12463, 12523, 12476, 12452, 12525, 1034, 
+    12463, 12525, 12540, 12493, 778, 12465, 12540, 12473, 778, 12467, 12523, 
+    12490, 778, 12467, 12540, 12509, 1034, 12469, 12452, 12463, 12523, 1290, 
+    12469, 12531, 12481, 12540, 12512, 1034, 12471, 12522, 12531, 12464, 778, 
+    12475, 12531, 12481, 778, 12475, 12531, 12488, 778, 12480, 12540, 12473, 
+    522, 12487, 12471, 522, 12489, 12523, 522, 12488, 12531, 522, 12490, 
+    12494, 778, 12494, 12483, 12488, 778, 12495, 12452, 12484, 1290, 12497, 
+    12540, 12475, 12531, 12488, 778, 12497, 12540, 12484, 1034, 12496, 12540, 
+    12524, 12523, 1290, 12500, 12450, 12473, 12488, 12523, 778, 12500, 12463, 
+    12523, 522, 12500, 12467, 522, 12499, 12523, 1290, 12501, 12449, 12521, 
+    12483, 12489, 1034, 12501, 12451, 12540, 12488, 1290, 12502, 12483, 
+    12471, 12455, 12523, 778, 12501, 12521, 12531, 1290, 12504, 12463, 12479, 
+    12540, 12523, 522, 12506, 12477, 778, 12506, 12491, 12498, 778, 12504, 
+    12523, 12484, 778, 12506, 12531, 12473, 778, 12506, 12540, 12472, 778, 
+    12505, 12540, 12479, 1034, 12509, 12452, 12531, 12488, 778, 12508, 12523, 
+    12488, 522, 12507, 12531, 778, 12509, 12531, 12489, 778, 12507, 12540, 
+    12523, 778, 12507, 12540, 12531, 1034, 12510, 12452, 12463, 12525, 778, 
+    12510, 12452, 12523, 778, 12510, 12483, 12495, 778, 12510, 12523, 12463, 
+    1290, 12510, 12531, 12471, 12519, 12531, 1034, 12511, 12463, 12525, 
+    12531, 522, 12511, 12522, 1290, 12511, 12522, 12496, 12540, 12523, 522, 
+    12513, 12460, 1034, 12513, 12460, 12488, 12531, 1034, 12513, 12540, 
+    12488, 12523, 778, 12516, 12540, 12489, 778, 12516, 12540, 12523, 778, 
+    12518, 12450, 12531, 1034, 12522, 12483, 12488, 12523, 522, 12522, 12521, 
+    778, 12523, 12500, 12540, 1034, 12523, 12540, 12502, 12523, 522, 12524, 
+    12512, 1290, 12524, 12531, 12488, 12466, 12531, 778, 12527, 12483, 12488, 
+    514, 48, 28857, 514, 49, 28857, 514, 50, 28857, 514, 51, 28857, 514, 52, 
+    28857, 514, 53, 28857, 514, 54, 28857, 514, 55, 28857, 514, 56, 28857, 
+    514, 57, 28857, 770, 49, 48, 28857, 770, 49, 49, 28857, 770, 49, 50, 
+    28857, 770, 49, 51, 28857, 770, 49, 52, 28857, 770, 49, 53, 28857, 770, 
+    49, 54, 28857, 770, 49, 55, 28857, 770, 49, 56, 28857, 770, 49, 57, 
+    28857, 770, 50, 48, 28857, 770, 50, 49, 28857, 770, 50, 50, 28857, 770, 
+    50, 51, 28857, 770, 50, 52, 28857, 778, 104, 80, 97, 522, 100, 97, 522, 
+    65, 85, 778, 98, 97, 114, 522, 111, 86, 522, 112, 99, 522, 100, 109, 778, 
+    100, 109, 178, 778, 100, 109, 179, 522, 73, 85, 522, 24179, 25104, 522, 
+    26157, 21644, 522, 22823, 27491, 522, 26126, 27835, 1034, 26666, 24335, 
+    20250, 31038, 522, 112, 65, 522, 110, 65, 522, 956, 65, 522, 109, 65, 
+    522, 107, 65, 522, 75, 66, 522, 77, 66, 522, 71, 66, 778, 99, 97, 108, 
+    1034, 107, 99, 97, 108, 522, 112, 70, 522, 110, 70, 522, 956, 70, 522, 
+    956, 103, 522, 109, 103, 522, 107, 103, 522, 72, 122, 778, 107, 72, 122, 
+    778, 77, 72, 122, 778, 71, 72, 122, 778, 84, 72, 122, 522, 956, 8467, 
+    522, 109, 8467, 522, 100, 8467, 522, 107, 8467, 522, 102, 109, 522, 110, 
+    109, 522, 956, 109, 522, 109, 109, 522, 99, 109, 522, 107, 109, 778, 109, 
+    109, 178, 778, 99, 109, 178, 522, 109, 178, 778, 107, 109, 178, 778, 109, 
+    109, 179, 778, 99, 109, 179, 522, 109, 179, 778, 107, 109, 179, 778, 109, 
+    8725, 115, 1034, 109, 8725, 115, 178, 522, 80, 97, 778, 107, 80, 97, 778, 
+    77, 80, 97, 778, 71, 80, 97, 778, 114, 97, 100, 1290, 114, 97, 100, 8725, 
+    115, 1546, 114, 97, 100, 8725, 115, 178, 522, 112, 115, 522, 110, 115, 
+    522, 956, 115, 522, 109, 115, 522, 112, 86, 522, 110, 86, 522, 956, 86, 
+    522, 109, 86, 522, 107, 86, 522, 77, 86, 522, 112, 87, 522, 110, 87, 522, 
+    956, 87, 522, 109, 87, 522, 107, 87, 522, 77, 87, 522, 107, 937, 522, 77, 
+    937, 1034, 97, 46, 109, 46, 522, 66, 113, 522, 99, 99, 522, 99, 100, 
+    1034, 67, 8725, 107, 103, 778, 67, 111, 46, 522, 100, 66, 522, 71, 121, 
+    522, 104, 97, 522, 72, 80, 522, 105, 110, 522, 75, 75, 522, 75, 77, 522, 
+    107, 116, 522, 108, 109, 522, 108, 110, 778, 108, 111, 103, 522, 108, 
+    120, 522, 109, 98, 778, 109, 105, 108, 778, 109, 111, 108, 522, 80, 72, 
+    1034, 112, 46, 109, 46, 778, 80, 80, 77, 522, 80, 82, 522, 115, 114, 522, 
+    83, 118, 522, 87, 98, 778, 86, 8725, 109, 778, 65, 8725, 109, 514, 49, 
+    26085, 514, 50, 26085, 514, 51, 26085, 514, 52, 26085, 514, 53, 26085, 
+    514, 54, 26085, 514, 55, 26085, 514, 56, 26085, 514, 57, 26085, 770, 49, 
+    48, 26085, 770, 49, 49, 26085, 770, 49, 50, 26085, 770, 49, 51, 26085, 
+    770, 49, 52, 26085, 770, 49, 53, 26085, 770, 49, 54, 26085, 770, 49, 55, 
+    26085, 770, 49, 56, 26085, 770, 49, 57, 26085, 770, 50, 48, 26085, 770, 
+    50, 49, 26085, 770, 50, 50, 26085, 770, 50, 51, 26085, 770, 50, 52, 
+    26085, 770, 50, 53, 26085, 770, 50, 54, 26085, 770, 50, 55, 26085, 770, 
+    50, 56, 26085, 770, 50, 57, 26085, 770, 51, 48, 26085, 770, 51, 49, 
+    26085, 778, 103, 97, 108, 259, 1098, 259, 1100, 259, 42863, 259, 294, 
+    259, 339, 259, 42791, 259, 43831, 259, 619, 259, 43858, 256, 35912, 256, 
+    26356, 256, 36554, 256, 36040, 256, 28369, 256, 20018, 256, 21477, 256, 
+    40860, 256, 40860, 256, 22865, 256, 37329, 256, 21895, 256, 22856, 256, 
+    25078, 256, 30313, 256, 32645, 256, 34367, 256, 34746, 256, 35064, 256, 
+    37007, 256, 27138, 256, 27931, 256, 28889, 256, 29662, 256, 33853, 256, 
+    37226, 256, 39409, 256, 20098, 256, 21365, 256, 27396, 256, 29211, 256, 
+    34349, 256, 40478, 256, 23888, 256, 28651, 256, 34253, 256, 35172, 256, 
+    25289, 256, 33240, 256, 34847, 256, 24266, 256, 26391, 256, 28010, 256, 
+    29436, 256, 37070, 256, 20358, 256, 20919, 256, 21214, 256, 25796, 256, 
+    27347, 256, 29200, 256, 30439, 256, 32769, 256, 34310, 256, 34396, 256, 
+    36335, 256, 38706, 256, 39791, 256, 40442, 256, 30860, 256, 31103, 256, 
+    32160, 256, 33737, 256, 37636, 256, 40575, 256, 35542, 256, 22751, 256, 
+    24324, 256, 31840, 256, 32894, 256, 29282, 256, 30922, 256, 36034, 256, 
+    38647, 256, 22744, 256, 23650, 256, 27155, 256, 28122, 256, 28431, 256, 
+    32047, 256, 32311, 256, 38475, 256, 21202, 256, 32907, 256, 20956, 256, 
+    20940, 256, 31260, 256, 32190, 256, 33777, 256, 38517, 256, 35712, 256, 
+    25295, 256, 27138, 256, 35582, 256, 20025, 256, 23527, 256, 24594, 256, 
+    29575, 256, 30064, 256, 21271, 256, 30971, 256, 20415, 256, 24489, 256, 
+    19981, 256, 27852, 256, 25976, 256, 32034, 256, 21443, 256, 22622, 256, 
+    30465, 256, 33865, 256, 35498, 256, 27578, 256, 36784, 256, 27784, 256, 
+    25342, 256, 33509, 256, 25504, 256, 30053, 256, 20142, 256, 20841, 256, 
+    20937, 256, 26753, 256, 31975, 256, 33391, 256, 35538, 256, 37327, 256, 
+    21237, 256, 21570, 256, 22899, 256, 24300, 256, 26053, 256, 28670, 256, 
+    31018, 256, 38317, 256, 39530, 256, 40599, 256, 40654, 256, 21147, 256, 
+    26310, 256, 27511, 256, 36706, 256, 24180, 256, 24976, 256, 25088, 256, 
+    25754, 256, 28451, 256, 29001, 256, 29833, 256, 31178, 256, 32244, 256, 
+    32879, 256, 36646, 256, 34030, 256, 36899, 256, 37706, 256, 21015, 256, 
+    21155, 256, 21693, 256, 28872, 256, 35010, 256, 35498, 256, 24265, 256, 
+    24565, 256, 25467, 256, 27566, 256, 31806, 256, 29557, 256, 20196, 256, 
+    22265, 256, 23527, 256, 23994, 256, 24604, 256, 29618, 256, 29801, 256, 
+    32666, 256, 32838, 256, 37428, 256, 38646, 256, 38728, 256, 38936, 256, 
+    20363, 256, 31150, 256, 37300, 256, 38584, 256, 24801, 256, 20102, 256, 
+    20698, 256, 23534, 256, 23615, 256, 26009, 256, 27138, 256, 29134, 256, 
+    30274, 256, 34044, 256, 36988, 256, 40845, 256, 26248, 256, 38446, 256, 
+    21129, 256, 26491, 256, 26611, 256, 27969, 256, 28316, 256, 29705, 256, 
+    30041, 256, 30827, 256, 32016, 256, 39006, 256, 20845, 256, 25134, 256, 
+    38520, 256, 20523, 256, 23833, 256, 28138, 256, 36650, 256, 24459, 256, 
+    24900, 256, 26647, 256, 29575, 256, 38534, 256, 21033, 256, 21519, 256, 
+    23653, 256, 26131, 256, 26446, 256, 26792, 256, 27877, 256, 29702, 256, 
+    30178, 256, 32633, 256, 35023, 256, 35041, 256, 37324, 256, 38626, 256, 
+    21311, 256, 28346, 256, 21533, 256, 29136, 256, 29848, 256, 34298, 256, 
+    38563, 256, 40023, 256, 40607, 256, 26519, 256, 28107, 256, 33256, 256, 
+    31435, 256, 31520, 256, 31890, 256, 29376, 256, 28825, 256, 35672, 256, 
+    20160, 256, 33590, 256, 21050, 256, 20999, 256, 24230, 256, 25299, 256, 
+    31958, 256, 23429, 256, 27934, 256, 26292, 256, 36667, 256, 34892, 256, 
+    38477, 256, 35211, 256, 24275, 256, 20800, 256, 21952, 256, 22618, 256, 
+    26228, 256, 20958, 256, 29482, 256, 30410, 256, 31036, 256, 31070, 256, 
+    31077, 256, 31119, 256, 38742, 256, 31934, 256, 32701, 256, 34322, 256, 
+    35576, 256, 36920, 256, 37117, 256, 39151, 256, 39164, 256, 39208, 256, 
+    40372, 256, 37086, 256, 38583, 256, 20398, 256, 20711, 256, 20813, 256, 
+    21193, 256, 21220, 256, 21329, 256, 21917, 256, 22022, 256, 22120, 256, 
+    22592, 256, 22696, 256, 23652, 256, 23662, 256, 24724, 256, 24936, 256, 
+    24974, 256, 25074, 256, 25935, 256, 26082, 256, 26257, 256, 26757, 256, 
+    28023, 256, 28186, 256, 28450, 256, 29038, 256, 29227, 256, 29730, 256, 
+    30865, 256, 31038, 256, 31049, 256, 31048, 256, 31056, 256, 31062, 256, 
+    31069, 256, 31117, 256, 31118, 256, 31296, 256, 31361, 256, 31680, 256, 
+    32244, 256, 32265, 256, 32321, 256, 32626, 256, 32773, 256, 33261, 256, 
+    33401, 256, 33401, 256, 33879, 256, 35088, 256, 35222, 256, 35585, 256, 
+    35641, 256, 36051, 256, 36104, 256, 36790, 256, 36920, 256, 38627, 256, 
+    38911, 256, 38971, 256, 24693, 256, 55376, 57070, 256, 33304, 256, 20006, 
+    256, 20917, 256, 20840, 256, 20352, 256, 20805, 256, 20864, 256, 21191, 
+    256, 21242, 256, 21917, 256, 21845, 256, 21913, 256, 21986, 256, 22618, 
+    256, 22707, 256, 22852, 256, 22868, 256, 23138, 256, 23336, 256, 24274, 
+    256, 24281, 256, 24425, 256, 24493, 256, 24792, 256, 24910, 256, 24840, 
+    256, 24974, 256, 24928, 256, 25074, 256, 25140, 256, 25540, 256, 25628, 
+    256, 25682, 256, 25942, 256, 26228, 256, 26391, 256, 26395, 256, 26454, 
+    256, 27513, 256, 27578, 256, 27969, 256, 28379, 256, 28363, 256, 28450, 
+    256, 28702, 256, 29038, 256, 30631, 256, 29237, 256, 29359, 256, 29482, 
+    256, 29809, 256, 29958, 256, 30011, 256, 30237, 256, 30239, 256, 30410, 
+    256, 30427, 256, 30452, 256, 30538, 256, 30528, 256, 30924, 256, 31409, 
+    256, 31680, 256, 31867, 256, 32091, 256, 32244, 256, 32574, 256, 32773, 
+    256, 33618, 256, 33775, 256, 34681, 256, 35137, 256, 35206, 256, 35222, 
+    256, 35519, 256, 35576, 256, 35531, 256, 35585, 256, 35582, 256, 35565, 
+    256, 35641, 256, 35722, 256, 36104, 256, 36664, 256, 36978, 256, 37273, 
+    256, 37494, 256, 38524, 256, 38627, 256, 38742, 256, 38875, 256, 38911, 
+    256, 38923, 256, 38971, 256, 39698, 256, 40860, 256, 55370, 56394, 256, 
+    55370, 56388, 256, 55372, 57301, 256, 15261, 256, 16408, 256, 16441, 256, 
+    55380, 56905, 256, 55383, 56528, 256, 55391, 57043, 256, 40771, 256, 
+    40846, 514, 102, 102, 514, 102, 105, 514, 102, 108, 770, 102, 102, 105, 
+    770, 102, 102, 108, 514, 383, 116, 514, 115, 116, 514, 1396, 1398, 514, 
+    1396, 1381, 514, 1396, 1387, 514, 1406, 1398, 514, 1396, 1389, 512, 1497, 
+    1460, 512, 1522, 1463, 262, 1506, 262, 1488, 262, 1491, 262, 1492, 262, 
+    1499, 262, 1500, 262, 1501, 262, 1512, 262, 1514, 262, 43, 512, 1513, 
+    1473, 512, 1513, 1474, 512, 64329, 1473, 512, 64329, 1474, 512, 1488, 
+    1463, 512, 1488, 1464, 512, 1488, 1468, 512, 1489, 1468, 512, 1490, 1468, 
+    512, 1491, 1468, 512, 1492, 1468, 512, 1493, 1468, 512, 1494, 1468, 512, 
+    1496, 1468, 512, 1497, 1468, 512, 1498, 1468, 512, 1499, 1468, 512, 1500, 
+    1468, 512, 1502, 1468, 512, 1504, 1468, 512, 1505, 1468, 512, 1507, 1468, 
+    512, 1508, 1468, 512, 1510, 1468, 512, 1511, 1468, 512, 1512, 1468, 512, 
+    1513, 1468, 512, 1514, 1468, 512, 1493, 1465, 512, 1489, 1471, 512, 1499, 
+    1471, 512, 1508, 1471, 514, 1488, 1500, 267, 1649, 268, 1649, 267, 1659, 
+    268, 1659, 269, 1659, 270, 1659, 267, 1662, 268, 1662, 269, 1662, 270, 
+    1662, 267, 1664, 268, 1664, 269, 1664, 270, 1664, 267, 1658, 268, 1658, 
+    269, 1658, 270, 1658, 267, 1663, 268, 1663, 269, 1663, 270, 1663, 267, 
+    1657, 268, 1657, 269, 1657, 270, 1657, 267, 1700, 268, 1700, 269, 1700, 
+    270, 1700, 267, 1702, 268, 1702, 269, 1702, 270, 1702, 267, 1668, 268, 
+    1668, 269, 1668, 270, 1668, 267, 1667, 268, 1667, 269, 1667, 270, 1667, 
+    267, 1670, 268, 1670, 269, 1670, 270, 1670, 267, 1671, 268, 1671, 269, 
+    1671, 270, 1671, 267, 1677, 268, 1677, 267, 1676, 268, 1676, 267, 1678, 
+    268, 1678, 267, 1672, 268, 1672, 267, 1688, 268, 1688, 267, 1681, 268, 
+    1681, 267, 1705, 268, 1705, 269, 1705, 270, 1705, 267, 1711, 268, 1711, 
+    269, 1711, 270, 1711, 267, 1715, 268, 1715, 269, 1715, 270, 1715, 267, 
+    1713, 268, 1713, 269, 1713, 270, 1713, 267, 1722, 268, 1722, 267, 1723, 
+    268, 1723, 269, 1723, 270, 1723, 267, 1728, 268, 1728, 267, 1729, 268, 
+    1729, 269, 1729, 270, 1729, 267, 1726, 268, 1726, 269, 1726, 270, 1726, 
+    267, 1746, 268, 1746, 267, 1747, 268, 1747, 267, 1709, 268, 1709, 269, 
+    1709, 270, 1709, 267, 1735, 268, 1735, 267, 1734, 268, 1734, 267, 1736, 
+    268, 1736, 267, 1655, 267, 1739, 268, 1739, 267, 1733, 268, 1733, 267, 
+    1737, 268, 1737, 267, 1744, 268, 1744, 269, 1744, 270, 1744, 269, 1609, 
+    270, 1609, 523, 1574, 1575, 524, 1574, 1575, 523, 1574, 1749, 524, 1574, 
+    1749, 523, 1574, 1608, 524, 1574, 1608, 523, 1574, 1735, 524, 1574, 1735, 
+    523, 1574, 1734, 524, 1574, 1734, 523, 1574, 1736, 524, 1574, 1736, 523, 
+    1574, 1744, 524, 1574, 1744, 525, 1574, 1744, 523, 1574, 1609, 524, 1574, 
+    1609, 525, 1574, 1609, 267, 1740, 268, 1740, 269, 1740, 270, 1740, 523, 
+    1574, 1580, 523, 1574, 1581, 523, 1574, 1605, 523, 1574, 1609, 523, 1574, 
+    1610, 523, 1576, 1580, 523, 1576, 1581, 523, 1576, 1582, 523, 1576, 1605, 
+    523, 1576, 1609, 523, 1576, 1610, 523, 1578, 1580, 523, 1578, 1581, 523, 
+    1578, 1582, 523, 1578, 1605, 523, 1578, 1609, 523, 1578, 1610, 523, 1579, 
+    1580, 523, 1579, 1605, 523, 1579, 1609, 523, 1579, 1610, 523, 1580, 1581, 
+    523, 1580, 1605, 523, 1581, 1580, 523, 1581, 1605, 523, 1582, 1580, 523, 
+    1582, 1581, 523, 1582, 1605, 523, 1587, 1580, 523, 1587, 1581, 523, 1587, 
+    1582, 523, 1587, 1605, 523, 1589, 1581, 523, 1589, 1605, 523, 1590, 1580, 
+    523, 1590, 1581, 523, 1590, 1582, 523, 1590, 1605, 523, 1591, 1581, 523, 
+    1591, 1605, 523, 1592, 1605, 523, 1593, 1580, 523, 1593, 1605, 523, 1594, 
+    1580, 523, 1594, 1605, 523, 1601, 1580, 523, 1601, 1581, 523, 1601, 1582, 
+    523, 1601, 1605, 523, 1601, 1609, 523, 1601, 1610, 523, 1602, 1581, 523, 
+    1602, 1605, 523, 1602, 1609, 523, 1602, 1610, 523, 1603, 1575, 523, 1603, 
+    1580, 523, 1603, 1581, 523, 1603, 1582, 523, 1603, 1604, 523, 1603, 1605, 
+    523, 1603, 1609, 523, 1603, 1610, 523, 1604, 1580, 523, 1604, 1581, 523, 
+    1604, 1582, 523, 1604, 1605, 523, 1604, 1609, 523, 1604, 1610, 523, 1605, 
+    1580, 523, 1605, 1581, 523, 1605, 1582, 523, 1605, 1605, 523, 1605, 1609, 
+    523, 1605, 1610, 523, 1606, 1580, 523, 1606, 1581, 523, 1606, 1582, 523, 
+    1606, 1605, 523, 1606, 1609, 523, 1606, 1610, 523, 1607, 1580, 523, 1607, 
+    1605, 523, 1607, 1609, 523, 1607, 1610, 523, 1610, 1580, 523, 1610, 1581, 
+    523, 1610, 1582, 523, 1610, 1605, 523, 1610, 1609, 523, 1610, 1610, 523, 
+    1584, 1648, 523, 1585, 1648, 523, 1609, 1648, 779, 32, 1612, 1617, 779, 
+    32, 1613, 1617, 779, 32, 1614, 1617, 779, 32, 1615, 1617, 779, 32, 1616, 
+    1617, 779, 32, 1617, 1648, 524, 1574, 1585, 524, 1574, 1586, 524, 1574, 
+    1605, 524, 1574, 1606, 524, 1574, 1609, 524, 1574, 1610, 524, 1576, 1585, 
+    524, 1576, 1586, 524, 1576, 1605, 524, 1576, 1606, 524, 1576, 1609, 524, 
+    1576, 1610, 524, 1578, 1585, 524, 1578, 1586, 524, 1578, 1605, 524, 1578, 
+    1606, 524, 1578, 1609, 524, 1578, 1610, 524, 1579, 1585, 524, 1579, 1586, 
+    524, 1579, 1605, 524, 1579, 1606, 524, 1579, 1609, 524, 1579, 1610, 524, 
+    1601, 1609, 524, 1601, 1610, 524, 1602, 1609, 524, 1602, 1610, 524, 1603, 
+    1575, 524, 1603, 1604, 524, 1603, 1605, 524, 1603, 1609, 524, 1603, 1610, 
+    524, 1604, 1605, 524, 1604, 1609, 524, 1604, 1610, 524, 1605, 1575, 524, 
+    1605, 1605, 524, 1606, 1585, 524, 1606, 1586, 524, 1606, 1605, 524, 1606, 
+    1606, 524, 1606, 1609, 524, 1606, 1610, 524, 1609, 1648, 524, 1610, 1585, 
+    524, 1610, 1586, 524, 1610, 1605, 524, 1610, 1606, 524, 1610, 1609, 524, 
+    1610, 1610, 525, 1574, 1580, 525, 1574, 1581, 525, 1574, 1582, 525, 1574, 
+    1605, 525, 1574, 1607, 525, 1576, 1580, 525, 1576, 1581, 525, 1576, 1582, 
+    525, 1576, 1605, 525, 1576, 1607, 525, 1578, 1580, 525, 1578, 1581, 525, 
+    1578, 1582, 525, 1578, 1605, 525, 1578, 1607, 525, 1579, 1605, 525, 1580, 
+    1581, 525, 1580, 1605, 525, 1581, 1580, 525, 1581, 1605, 525, 1582, 1580, 
+    525, 1582, 1605, 525, 1587, 1580, 525, 1587, 1581, 525, 1587, 1582, 525, 
+    1587, 1605, 525, 1589, 1581, 525, 1589, 1582, 525, 1589, 1605, 525, 1590, 
+    1580, 525, 1590, 1581, 525, 1590, 1582, 525, 1590, 1605, 525, 1591, 1581, 
+    525, 1592, 1605, 525, 1593, 1580, 525, 1593, 1605, 525, 1594, 1580, 525, 
+    1594, 1605, 525, 1601, 1580, 525, 1601, 1581, 525, 1601, 1582, 525, 1601, 
+    1605, 525, 1602, 1581, 525, 1602, 1605, 525, 1603, 1580, 525, 1603, 1581, 
+    525, 1603, 1582, 525, 1603, 1604, 525, 1603, 1605, 525, 1604, 1580, 525, 
+    1604, 1581, 525, 1604, 1582, 525, 1604, 1605, 525, 1604, 1607, 525, 1605, 
+    1580, 525, 1605, 1581, 525, 1605, 1582, 525, 1605, 1605, 525, 1606, 1580, 
+    525, 1606, 1581, 525, 1606, 1582, 525, 1606, 1605, 525, 1606, 1607, 525, 
+    1607, 1580, 525, 1607, 1605, 525, 1607, 1648, 525, 1610, 1580, 525, 1610, 
+    1581, 525, 1610, 1582, 525, 1610, 1605, 525, 1610, 1607, 526, 1574, 1605, 
+    526, 1574, 1607, 526, 1576, 1605, 526, 1576, 1607, 526, 1578, 1605, 526, 
+    1578, 1607, 526, 1579, 1605, 526, 1579, 1607, 526, 1587, 1605, 526, 1587, 
+    1607, 526, 1588, 1605, 526, 1588, 1607, 526, 1603, 1604, 526, 1603, 1605, 
+    526, 1604, 1605, 526, 1606, 1605, 526, 1606, 1607, 526, 1610, 1605, 526, 
+    1610, 1607, 782, 1600, 1614, 1617, 782, 1600, 1615, 1617, 782, 1600, 
+    1616, 1617, 523, 1591, 1609, 523, 1591, 1610, 523, 1593, 1609, 523, 1593, 
+    1610, 523, 1594, 1609, 523, 1594, 1610, 523, 1587, 1609, 523, 1587, 1610, 
+    523, 1588, 1609, 523, 1588, 1610, 523, 1581, 1609, 523, 1581, 1610, 523, 
+    1580, 1609, 523, 1580, 1610, 523, 1582, 1609, 523, 1582, 1610, 523, 1589, 
+    1609, 523, 1589, 1610, 523, 1590, 1609, 523, 1590, 1610, 523, 1588, 1580, 
+    523, 1588, 1581, 523, 1588, 1582, 523, 1588, 1605, 523, 1588, 1585, 523, 
+    1587, 1585, 523, 1589, 1585, 523, 1590, 1585, 524, 1591, 1609, 524, 1591, 
+    1610, 524, 1593, 1609, 524, 1593, 1610, 524, 1594, 1609, 524, 1594, 1610, 
+    524, 1587, 1609, 524, 1587, 1610, 524, 1588, 1609, 524, 1588, 1610, 524, 
+    1581, 1609, 524, 1581, 1610, 524, 1580, 1609, 524, 1580, 1610, 524, 1582, 
+    1609, 524, 1582, 1610, 524, 1589, 1609, 524, 1589, 1610, 524, 1590, 1609, 
+    524, 1590, 1610, 524, 1588, 1580, 524, 1588, 1581, 524, 1588, 1582, 524, 
+    1588, 1605, 524, 1588, 1585, 524, 1587, 1585, 524, 1589, 1585, 524, 1590, 
+    1585, 525, 1588, 1580, 525, 1588, 1581, 525, 1588, 1582, 525, 1588, 1605, 
+    525, 1587, 1607, 525, 1588, 1607, 525, 1591, 1605, 526, 1587, 1580, 526, 
+    1587, 1581, 526, 1587, 1582, 526, 1588, 1580, 526, 1588, 1581, 526, 1588, 
+    1582, 526, 1591, 1605, 526, 1592, 1605, 524, 1575, 1611, 523, 1575, 1611, 
+    781, 1578, 1580, 1605, 780, 1578, 1581, 1580, 781, 1578, 1581, 1580, 781, 
+    1578, 1581, 1605, 781, 1578, 1582, 1605, 781, 1578, 1605, 1580, 781, 
+    1578, 1605, 1581, 781, 1578, 1605, 1582, 780, 1580, 1605, 1581, 781, 
+    1580, 1605, 1581, 780, 1581, 1605, 1610, 780, 1581, 1605, 1609, 781, 
+    1587, 1581, 1580, 781, 1587, 1580, 1581, 780, 1587, 1580, 1609, 780, 
+    1587, 1605, 1581, 781, 1587, 1605, 1581, 781, 1587, 1605, 1580, 780, 
+    1587, 1605, 1605, 781, 1587, 1605, 1605, 780, 1589, 1581, 1581, 781, 
+    1589, 1581, 1581, 780, 1589, 1605, 1605, 780, 1588, 1581, 1605, 781, 
+    1588, 1581, 1605, 780, 1588, 1580, 1610, 780, 1588, 1605, 1582, 781, 
+    1588, 1605, 1582, 780, 1588, 1605, 1605, 781, 1588, 1605, 1605, 780, 
+    1590, 1581, 1609, 780, 1590, 1582, 1605, 781, 1590, 1582, 1605, 780, 
+    1591, 1605, 1581, 781, 1591, 1605, 1581, 781, 1591, 1605, 1605, 780, 
+    1591, 1605, 1610, 780, 1593, 1580, 1605, 780, 1593, 1605, 1605, 781, 
+    1593, 1605, 1605, 780, 1593, 1605, 1609, 780, 1594, 1605, 1605, 780, 
+    1594, 1605, 1610, 780, 1594, 1605, 1609, 780, 1601, 1582, 1605, 781, 
+    1601, 1582, 1605, 780, 1602, 1605, 1581, 780, 1602, 1605, 1605, 780, 
+    1604, 1581, 1605, 780, 1604, 1581, 1610, 780, 1604, 1581, 1609, 781, 
+    1604, 1580, 1580, 780, 1604, 1580, 1580, 780, 1604, 1582, 1605, 781, 
+    1604, 1582, 1605, 780, 1604, 1605, 1581, 781, 1604, 1605, 1581, 781, 
+    1605, 1581, 1580, 781, 1605, 1581, 1605, 780, 1605, 1581, 1610, 781, 
+    1605, 1580, 1581, 781, 1605, 1580, 1605, 781, 1605, 1582, 1580, 781, 
+    1605, 1582, 1605, 781, 1605, 1580, 1582, 781, 1607, 1605, 1580, 781, 
+    1607, 1605, 1605, 781, 1606, 1581, 1605, 780, 1606, 1581, 1609, 780, 
+    1606, 1580, 1605, 781, 1606, 1580, 1605, 780, 1606, 1580, 1609, 780, 
+    1606, 1605, 1610, 780, 1606, 1605, 1609, 780, 1610, 1605, 1605, 781, 
+    1610, 1605, 1605, 780, 1576, 1582, 1610, 780, 1578, 1580, 1610, 780, 
+    1578, 1580, 1609, 780, 1578, 1582, 1610, 780, 1578, 1582, 1609, 780, 
+    1578, 1605, 1610, 780, 1578, 1605, 1609, 780, 1580, 1605, 1610, 780, 
+    1580, 1581, 1609, 780, 1580, 1605, 1609, 780, 1587, 1582, 1609, 780, 
+    1589, 1581, 1610, 780, 1588, 1581, 1610, 780, 1590, 1581, 1610, 780, 
+    1604, 1580, 1610, 780, 1604, 1605, 1610, 780, 1610, 1581, 1610, 780, 
+    1610, 1580, 1610, 780, 1610, 1605, 1610, 780, 1605, 1605, 1610, 780, 
+    1602, 1605, 1610, 780, 1606, 1581, 1610, 781, 1602, 1605, 1581, 781, 
+    1604, 1581, 1605, 780, 1593, 1605, 1610, 780, 1603, 1605, 1610, 781, 
+    1606, 1580, 1581, 780, 1605, 1582, 1610, 781, 1604, 1580, 1605, 780, 
+    1603, 1605, 1605, 780, 1604, 1580, 1605, 780, 1606, 1580, 1581, 780, 
+    1580, 1581, 1610, 780, 1581, 1580, 1610, 780, 1605, 1580, 1610, 780, 
+    1601, 1605, 1610, 780, 1576, 1581, 1610, 781, 1603, 1605, 1605, 781, 
+    1593, 1580, 1605, 781, 1589, 1605, 1605, 780, 1587, 1582, 1610, 780, 
+    1606, 1580, 1610, 779, 1589, 1604, 1746, 779, 1602, 1604, 1746, 1035, 
+    1575, 1604, 1604, 1607, 1035, 1575, 1603, 1576, 1585, 1035, 1605, 1581, 
+    1605, 1583, 1035, 1589, 1604, 1593, 1605, 1035, 1585, 1587, 1608, 1604, 
+    1035, 1593, 1604, 1610, 1607, 1035, 1608, 1587, 1604, 1605, 779, 1589, 
+    1604, 1609, 4619, 1589, 1604, 1609, 32, 1575, 1604, 1604, 1607, 32, 1593, 
+    1604, 1610, 1607, 32, 1608, 1587, 1604, 1605, 2059, 1580, 1604, 32, 1580, 
+    1604, 1575, 1604, 1607, 1035, 1585, 1740, 1575, 1604, 265, 44, 265, 
+    12289, 265, 12290, 265, 58, 265, 59, 265, 33, 265, 63, 265, 12310, 265, 
+    12311, 265, 8230, 265, 8229, 265, 8212, 265, 8211, 265, 95, 265, 95, 265, 
+    40, 265, 41, 265, 123, 265, 125, 265, 12308, 265, 12309, 265, 12304, 265, 
+    12305, 265, 12298, 265, 12299, 265, 12296, 265, 12297, 265, 12300, 265, 
+    12301, 265, 12302, 265, 12303, 265, 91, 265, 93, 258, 8254, 258, 8254, 
+    258, 8254, 258, 8254, 258, 95, 258, 95, 258, 95, 271, 44, 271, 12289, 
+    271, 46, 271, 59, 271, 58, 271, 63, 271, 33, 271, 8212, 271, 40, 271, 41, 
+    271, 123, 271, 125, 271, 12308, 271, 12309, 271, 35, 271, 38, 271, 42, 
+    271, 43, 271, 45, 271, 60, 271, 62, 271, 61, 271, 92, 271, 36, 271, 37, 
+    271, 64, 523, 32, 1611, 526, 1600, 1611, 523, 32, 1612, 523, 32, 1613, 
+    523, 32, 1614, 526, 1600, 1614, 523, 32, 1615, 526, 1600, 1615, 523, 32, 
+    1616, 526, 1600, 1616, 523, 32, 1617, 526, 1600, 1617, 523, 32, 1618, 
+    526, 1600, 1618, 267, 1569, 267, 1570, 268, 1570, 267, 1571, 268, 1571, 
+    267, 1572, 268, 1572, 267, 1573, 268, 1573, 267, 1574, 268, 1574, 269, 
+    1574, 270, 1574, 267, 1575, 268, 1575, 267, 1576, 268, 1576, 269, 1576, 
+    270, 1576, 267, 1577, 268, 1577, 267, 1578, 268, 1578, 269, 1578, 270, 
+    1578, 267, 1579, 268, 1579, 269, 1579, 270, 1579, 267, 1580, 268, 1580, 
+    269, 1580, 270, 1580, 267, 1581, 268, 1581, 269, 1581, 270, 1581, 267, 
+    1582, 268, 1582, 269, 1582, 270, 1582, 267, 1583, 268, 1583, 267, 1584, 
+    268, 1584, 267, 1585, 268, 1585, 267, 1586, 268, 1586, 267, 1587, 268, 
+    1587, 269, 1587, 270, 1587, 267, 1588, 268, 1588, 269, 1588, 270, 1588, 
+    267, 1589, 268, 1589, 269, 1589, 270, 1589, 267, 1590, 268, 1590, 269, 
+    1590, 270, 1590, 267, 1591, 268, 1591, 269, 1591, 270, 1591, 267, 1592, 
+    268, 1592, 269, 1592, 270, 1592, 267, 1593, 268, 1593, 269, 1593, 270, 
+    1593, 267, 1594, 268, 1594, 269, 1594, 270, 1594, 267, 1601, 268, 1601, 
+    269, 1601, 270, 1601, 267, 1602, 268, 1602, 269, 1602, 270, 1602, 267, 
+    1603, 268, 1603, 269, 1603, 270, 1603, 267, 1604, 268, 1604, 269, 1604, 
+    270, 1604, 267, 1605, 268, 1605, 269, 1605, 270, 1605, 267, 1606, 268, 
+    1606, 269, 1606, 270, 1606, 267, 1607, 268, 1607, 269, 1607, 270, 1607, 
+    267, 1608, 268, 1608, 267, 1609, 268, 1609, 267, 1610, 268, 1610, 269, 
+    1610, 270, 1610, 523, 1604, 1570, 524, 1604, 1570, 523, 1604, 1571, 524, 
+    1604, 1571, 523, 1604, 1573, 524, 1604, 1573, 523, 1604, 1575, 524, 1604, 
+    1575, 264, 33, 264, 34, 264, 35, 264, 36, 264, 37, 264, 38, 264, 39, 264, 
+    40, 264, 41, 264, 42, 264, 43, 264, 44, 264, 45, 264, 46, 264, 47, 264, 
+    48, 264, 49, 264, 50, 264, 51, 264, 52, 264, 53, 264, 54, 264, 55, 264, 
+    56, 264, 57, 264, 58, 264, 59, 264, 60, 264, 61, 264, 62, 264, 63, 264, 
+    64, 264, 65, 264, 66, 264, 67, 264, 68, 264, 69, 264, 70, 264, 71, 264, 
+    72, 264, 73, 264, 74, 264, 75, 264, 76, 264, 77, 264, 78, 264, 79, 264, 
+    80, 264, 81, 264, 82, 264, 83, 264, 84, 264, 85, 264, 86, 264, 87, 264, 
+    88, 264, 89, 264, 90, 264, 91, 264, 92, 264, 93, 264, 94, 264, 95, 264, 
+    96, 264, 97, 264, 98, 264, 99, 264, 100, 264, 101, 264, 102, 264, 103, 
+    264, 104, 264, 105, 264, 106, 264, 107, 264, 108, 264, 109, 264, 110, 
+    264, 111, 264, 112, 264, 113, 264, 114, 264, 115, 264, 116, 264, 117, 
+    264, 118, 264, 119, 264, 120, 264, 121, 264, 122, 264, 123, 264, 124, 
+    264, 125, 264, 126, 264, 10629, 264, 10630, 272, 12290, 272, 12300, 272, 
+    12301, 272, 12289, 272, 12539, 272, 12530, 272, 12449, 272, 12451, 272, 
+    12453, 272, 12455, 272, 12457, 272, 12515, 272, 12517, 272, 12519, 272, 
+    12483, 272, 12540, 272, 12450, 272, 12452, 272, 12454, 272, 12456, 272, 
+    12458, 272, 12459, 272, 12461, 272, 12463, 272, 12465, 272, 12467, 272, 
+    12469, 272, 12471, 272, 12473, 272, 12475, 272, 12477, 272, 12479, 272, 
+    12481, 272, 12484, 272, 12486, 272, 12488, 272, 12490, 272, 12491, 272, 
+    12492, 272, 12493, 272, 12494, 272, 12495, 272, 12498, 272, 12501, 272, 
+    12504, 272, 12507, 272, 12510, 272, 12511, 272, 12512, 272, 12513, 272, 
+    12514, 272, 12516, 272, 12518, 272, 12520, 272, 12521, 272, 12522, 272, 
+    12523, 272, 12524, 272, 12525, 272, 12527, 272, 12531, 272, 12441, 272, 
+    12442, 272, 12644, 272, 12593, 272, 12594, 272, 12595, 272, 12596, 272, 
+    12597, 272, 12598, 272, 12599, 272, 12600, 272, 12601, 272, 12602, 272, 
+    12603, 272, 12604, 272, 12605, 272, 12606, 272, 12607, 272, 12608, 272, 
+    12609, 272, 12610, 272, 12611, 272, 12612, 272, 12613, 272, 12614, 272, 
+    12615, 272, 12616, 272, 12617, 272, 12618, 272, 12619, 272, 12620, 272, 
+    12621, 272, 12622, 272, 12623, 272, 12624, 272, 12625, 272, 12626, 272, 
+    12627, 272, 12628, 272, 12629, 272, 12630, 272, 12631, 272, 12632, 272, 
+    12633, 272, 12634, 272, 12635, 272, 12636, 272, 12637, 272, 12638, 272, 
+    12639, 272, 12640, 272, 12641, 272, 12642, 272, 12643, 264, 162, 264, 
+    163, 264, 172, 264, 175, 264, 166, 264, 165, 264, 8361, 272, 9474, 272, 
+    8592, 272, 8593, 272, 8594, 272, 8595, 272, 9632, 272, 9675, 512, 55300, 
+    56473, 55300, 56506, 512, 55300, 56475, 55300, 56506, 512, 55300, 56485, 
+    55300, 56506, 512, 55300, 56625, 55300, 56615, 512, 55300, 56626, 55300, 
+    56615, 512, 55300, 57159, 55300, 57150, 512, 55300, 57159, 55300, 57175, 
+    512, 55301, 56505, 55301, 56506, 512, 55301, 56505, 55301, 56496, 512, 
+    55301, 56505, 55301, 56509, 512, 55301, 56760, 55301, 56751, 512, 55301, 
+    56761, 55301, 56751, 512, 55348, 56663, 55348, 56677, 512, 55348, 56664, 
+    55348, 56677, 512, 55348, 56671, 55348, 56686, 512, 55348, 56671, 55348, 
+    56687, 512, 55348, 56671, 55348, 56688, 512, 55348, 56671, 55348, 56689, 
+    512, 55348, 56671, 55348, 56690, 512, 55348, 56761, 55348, 56677, 512, 
+    55348, 56762, 55348, 56677, 512, 55348, 56763, 55348, 56686, 512, 55348, 
+    56764, 55348, 56686, 512, 55348, 56763, 55348, 56687, 512, 55348, 56764, 
+    55348, 56687, 262, 65, 262, 66, 262, 67, 262, 68, 262, 69, 262, 70, 262, 
+    71, 262, 72, 262, 73, 262, 74, 262, 75, 262, 76, 262, 77, 262, 78, 262, 
+    79, 262, 80, 262, 81, 262, 82, 262, 83, 262, 84, 262, 85, 262, 86, 262, 
+    87, 262, 88, 262, 89, 262, 90, 262, 97, 262, 98, 262, 99, 262, 100, 262, 
+    101, 262, 102, 262, 103, 262, 104, 262, 105, 262, 106, 262, 107, 262, 
+    108, 262, 109, 262, 110, 262, 111, 262, 112, 262, 113, 262, 114, 262, 
+    115, 262, 116, 262, 117, 262, 118, 262, 119, 262, 120, 262, 121, 262, 
+    122, 262, 65, 262, 66, 262, 67, 262, 68, 262, 69, 262, 70, 262, 71, 262, 
+    72, 262, 73, 262, 74, 262, 75, 262, 76, 262, 77, 262, 78, 262, 79, 262, 
+    80, 262, 81, 262, 82, 262, 83, 262, 84, 262, 85, 262, 86, 262, 87, 262, 
+    88, 262, 89, 262, 90, 262, 97, 262, 98, 262, 99, 262, 100, 262, 101, 262, 
+    102, 262, 103, 262, 105, 262, 106, 262, 107, 262, 108, 262, 109, 262, 
+    110, 262, 111, 262, 112, 262, 113, 262, 114, 262, 115, 262, 116, 262, 
+    117, 262, 118, 262, 119, 262, 120, 262, 121, 262, 122, 262, 65, 262, 66, 
+    262, 67, 262, 68, 262, 69, 262, 70, 262, 71, 262, 72, 262, 73, 262, 74, 
+    262, 75, 262, 76, 262, 77, 262, 78, 262, 79, 262, 80, 262, 81, 262, 82, 
+    262, 83, 262, 84, 262, 85, 262, 86, 262, 87, 262, 88, 262, 89, 262, 90, 
+    262, 97, 262, 98, 262, 99, 262, 100, 262, 101, 262, 102, 262, 103, 262, 
+    104, 262, 105, 262, 106, 262, 107, 262, 108, 262, 109, 262, 110, 262, 
+    111, 262, 112, 262, 113, 262, 114, 262, 115, 262, 116, 262, 117, 262, 
+    118, 262, 119, 262, 120, 262, 121, 262, 122, 262, 65, 262, 67, 262, 68, 
+    262, 71, 262, 74, 262, 75, 262, 78, 262, 79, 262, 80, 262, 81, 262, 83, 
+    262, 84, 262, 85, 262, 86, 262, 87, 262, 88, 262, 89, 262, 90, 262, 97, 
+    262, 98, 262, 99, 262, 100, 262, 102, 262, 104, 262, 105, 262, 106, 262, 
+    107, 262, 108, 262, 109, 262, 110, 262, 112, 262, 113, 262, 114, 262, 
+    115, 262, 116, 262, 117, 262, 118, 262, 119, 262, 120, 262, 121, 262, 
+    122, 262, 65, 262, 66, 262, 67, 262, 68, 262, 69, 262, 70, 262, 71, 262, 
+    72, 262, 73, 262, 74, 262, 75, 262, 76, 262, 77, 262, 78, 262, 79, 262, 
+    80, 262, 81, 262, 82, 262, 83, 262, 84, 262, 85, 262, 86, 262, 87, 262, 
+    88, 262, 89, 262, 90, 262, 97, 262, 98, 262, 99, 262, 100, 262, 101, 262, 
+    102, 262, 103, 262, 104, 262, 105, 262, 106, 262, 107, 262, 108, 262, 
+    109, 262, 110, 262, 111, 262, 112, 262, 113, 262, 114, 262, 115, 262, 
+    116, 262, 117, 262, 118, 262, 119, 262, 120, 262, 121, 262, 122, 262, 65, 
+    262, 66, 262, 68, 262, 69, 262, 70, 262, 71, 262, 74, 262, 75, 262, 76, 
+    262, 77, 262, 78, 262, 79, 262, 80, 262, 81, 262, 83, 262, 84, 262, 85, 
+    262, 86, 262, 87, 262, 88, 262, 89, 262, 97, 262, 98, 262, 99, 262, 100, 
+    262, 101, 262, 102, 262, 103, 262, 104, 262, 105, 262, 106, 262, 107, 
+    262, 108, 262, 109, 262, 110, 262, 111, 262, 112, 262, 113, 262, 114, 
+    262, 115, 262, 116, 262, 117, 262, 118, 262, 119, 262, 120, 262, 121, 
+    262, 122, 262, 65, 262, 66, 262, 68, 262, 69, 262, 70, 262, 71, 262, 73, 
+    262, 74, 262, 75, 262, 76, 262, 77, 262, 79, 262, 83, 262, 84, 262, 85, 
+    262, 86, 262, 87, 262, 88, 262, 89, 262, 97, 262, 98, 262, 99, 262, 100, 
+    262, 101, 262, 102, 262, 103, 262, 104, 262, 105, 262, 106, 262, 107, 
+    262, 108, 262, 109, 262, 110, 262, 111, 262, 112, 262, 113, 262, 114, 
+    262, 115, 262, 116, 262, 117, 262, 118, 262, 119, 262, 120, 262, 121, 
+    262, 122, 262, 65, 262, 66, 262, 67, 262, 68, 262, 69, 262, 70, 262, 71, 
+    262, 72, 262, 73, 262, 74, 262, 75, 262, 76, 262, 77, 262, 78, 262, 79, 
+    262, 80, 262, 81, 262, 82, 262, 83, 262, 84, 262, 85, 262, 86, 262, 87, 
+    262, 88, 262, 89, 262, 90, 262, 97, 262, 98, 262, 99, 262, 100, 262, 101, 
+    262, 102, 262, 103, 262, 104, 262, 105, 262, 106, 262, 107, 262, 108, 
+    262, 109, 262, 110, 262, 111, 262, 112, 262, 113, 262, 114, 262, 115, 
+    262, 116, 262, 117, 262, 118, 262, 119, 262, 120, 262, 121, 262, 122, 
+    262, 65, 262, 66, 262, 67, 262, 68, 262, 69, 262, 70, 262, 71, 262, 72, 
+    262, 73, 262, 74, 262, 75, 262, 76, 262, 77, 262, 78, 262, 79, 262, 80, 
+    262, 81, 262, 82, 262, 83, 262, 84, 262, 85, 262, 86, 262, 87, 262, 88, 
+    262, 89, 262, 90, 262, 97, 262, 98, 262, 99, 262, 100, 262, 101, 262, 
+    102, 262, 103, 262, 104, 262, 105, 262, 106, 262, 107, 262, 108, 262, 
+    109, 262, 110, 262, 111, 262, 112, 262, 113, 262, 114, 262, 115, 262, 
+    116, 262, 117, 262, 118, 262, 119, 262, 120, 262, 121, 262, 122, 262, 65, 
+    262, 66, 262, 67, 262, 68, 262, 69, 262, 70, 262, 71, 262, 72, 262, 73, 
+    262, 74, 262, 75, 262, 76, 262, 77, 262, 78, 262, 79, 262, 80, 262, 81, 
+    262, 82, 262, 83, 262, 84, 262, 85, 262, 86, 262, 87, 262, 88, 262, 89, 
+    262, 90, 262, 97, 262, 98, 262, 99, 262, 100, 262, 101, 262, 102, 262, 
+    103, 262, 104, 262, 105, 262, 106, 262, 107, 262, 108, 262, 109, 262, 
+    110, 262, 111, 262, 112, 262, 113, 262, 114, 262, 115, 262, 116, 262, 
+    117, 262, 118, 262, 119, 262, 120, 262, 121, 262, 122, 262, 65, 262, 66, 
+    262, 67, 262, 68, 262, 69, 262, 70, 262, 71, 262, 72, 262, 73, 262, 74, 
+    262, 75, 262, 76, 262, 77, 262, 78, 262, 79, 262, 80, 262, 81, 262, 82, 
+    262, 83, 262, 84, 262, 85, 262, 86, 262, 87, 262, 88, 262, 89, 262, 90, 
+    262, 97, 262, 98, 262, 99, 262, 100, 262, 101, 262, 102, 262, 103, 262, 
+    104, 262, 105, 262, 106, 262, 107, 262, 108, 262, 109, 262, 110, 262, 
+    111, 262, 112, 262, 113, 262, 114, 262, 115, 262, 116, 262, 117, 262, 
+    118, 262, 119, 262, 120, 262, 121, 262, 122, 262, 65, 262, 66, 262, 67, 
+    262, 68, 262, 69, 262, 70, 262, 71, 262, 72, 262, 73, 262, 74, 262, 75, 
+    262, 76, 262, 77, 262, 78, 262, 79, 262, 80, 262, 81, 262, 82, 262, 83, 
+    262, 84, 262, 85, 262, 86, 262, 87, 262, 88, 262, 89, 262, 90, 262, 97, 
+    262, 98, 262, 99, 262, 100, 262, 101, 262, 102, 262, 103, 262, 104, 262, 
+    105, 262, 106, 262, 107, 262, 108, 262, 109, 262, 110, 262, 111, 262, 
+    112, 262, 113, 262, 114, 262, 115, 262, 116, 262, 117, 262, 118, 262, 
+    119, 262, 120, 262, 121, 262, 122, 262, 65, 262, 66, 262, 67, 262, 68, 
+    262, 69, 262, 70, 262, 71, 262, 72, 262, 73, 262, 74, 262, 75, 262, 76, 
+    262, 77, 262, 78, 262, 79, 262, 80, 262, 81, 262, 82, 262, 83, 262, 84, 
+    262, 85, 262, 86, 262, 87, 262, 88, 262, 89, 262, 90, 262, 97, 262, 98, 
+    262, 99, 262, 100, 262, 101, 262, 102, 262, 103, 262, 104, 262, 105, 262, 
+    106, 262, 107, 262, 108, 262, 109, 262, 110, 262, 111, 262, 112, 262, 
+    113, 262, 114, 262, 115, 262, 116, 262, 117, 262, 118, 262, 119, 262, 
+    120, 262, 121, 262, 122, 262, 305, 262, 567, 262, 913, 262, 914, 262, 
+    915, 262, 916, 262, 917, 262, 918, 262, 919, 262, 920, 262, 921, 262, 
+    922, 262, 923, 262, 924, 262, 925, 262, 926, 262, 927, 262, 928, 262, 
+    929, 262, 1012, 262, 931, 262, 932, 262, 933, 262, 934, 262, 935, 262, 
+    936, 262, 937, 262, 8711, 262, 945, 262, 946, 262, 947, 262, 948, 262, 
+    949, 262, 950, 262, 951, 262, 952, 262, 953, 262, 954, 262, 955, 262, 
+    956, 262, 957, 262, 958, 262, 959, 262, 960, 262, 961, 262, 962, 262, 
+    963, 262, 964, 262, 965, 262, 966, 262, 967, 262, 968, 262, 969, 262, 
+    8706, 262, 1013, 262, 977, 262, 1008, 262, 981, 262, 1009, 262, 982, 262, 
+    913, 262, 914, 262, 915, 262, 916, 262, 917, 262, 918, 262, 919, 262, 
+    920, 262, 921, 262, 922, 262, 923, 262, 924, 262, 925, 262, 926, 262, 
+    927, 262, 928, 262, 929, 262, 1012, 262, 931, 262, 932, 262, 933, 262, 
+    934, 262, 935, 262, 936, 262, 937, 262, 8711, 262, 945, 262, 946, 262, 
+    947, 262, 948, 262, 949, 262, 950, 262, 951, 262, 952, 262, 953, 262, 
+    954, 262, 955, 262, 956, 262, 957, 262, 958, 262, 959, 262, 960, 262, 
+    961, 262, 962, 262, 963, 262, 964, 262, 965, 262, 966, 262, 967, 262, 
+    968, 262, 969, 262, 8706, 262, 1013, 262, 977, 262, 1008, 262, 981, 262, 
+    1009, 262, 982, 262, 913, 262, 914, 262, 915, 262, 916, 262, 917, 262, 
+    918, 262, 919, 262, 920, 262, 921, 262, 922, 262, 923, 262, 924, 262, 
+    925, 262, 926, 262, 927, 262, 928, 262, 929, 262, 1012, 262, 931, 262, 
+    932, 262, 933, 262, 934, 262, 935, 262, 936, 262, 937, 262, 8711, 262, 
+    945, 262, 946, 262, 947, 262, 948, 262, 949, 262, 950, 262, 951, 262, 
+    952, 262, 953, 262, 954, 262, 955, 262, 956, 262, 957, 262, 958, 262, 
+    959, 262, 960, 262, 961, 262, 962, 262, 963, 262, 964, 262, 965, 262, 
+    966, 262, 967, 262, 968, 262, 969, 262, 8706, 262, 1013, 262, 977, 262, 
+    1008, 262, 981, 262, 1009, 262, 982, 262, 913, 262, 914, 262, 915, 262, 
+    916, 262, 917, 262, 918, 262, 919, 262, 920, 262, 921, 262, 922, 262, 
+    923, 262, 924, 262, 925, 262, 926, 262, 927, 262, 928, 262, 929, 262, 
+    1012, 262, 931, 262, 932, 262, 933, 262, 934, 262, 935, 262, 936, 262, 
+    937, 262, 8711, 262, 945, 262, 946, 262, 947, 262, 948, 262, 949, 262, 
+    950, 262, 951, 262, 952, 262, 953, 262, 954, 262, 955, 262, 956, 262, 
+    957, 262, 958, 262, 959, 262, 960, 262, 961, 262, 962, 262, 963, 262, 
+    964, 262, 965, 262, 966, 262, 967, 262, 968, 262, 969, 262, 8706, 262, 
+    1013, 262, 977, 262, 1008, 262, 981, 262, 1009, 262, 982, 262, 913, 262, 
+    914, 262, 915, 262, 916, 262, 917, 262, 918, 262, 919, 262, 920, 262, 
+    921, 262, 922, 262, 923, 262, 924, 262, 925, 262, 926, 262, 927, 262, 
+    928, 262, 929, 262, 1012, 262, 931, 262, 932, 262, 933, 262, 934, 262, 
+    935, 262, 936, 262, 937, 262, 8711, 262, 945, 262, 946, 262, 947, 262, 
+    948, 262, 949, 262, 950, 262, 951, 262, 952, 262, 953, 262, 954, 262, 
+    955, 262, 956, 262, 957, 262, 958, 262, 959, 262, 960, 262, 961, 262, 
+    962, 262, 963, 262, 964, 262, 965, 262, 966, 262, 967, 262, 968, 262, 
+    969, 262, 8706, 262, 1013, 262, 977, 262, 1008, 262, 981, 262, 1009, 262, 
+    982, 262, 988, 262, 989, 262, 48, 262, 49, 262, 50, 262, 51, 262, 52, 
+    262, 53, 262, 54, 262, 55, 262, 56, 262, 57, 262, 48, 262, 49, 262, 50, 
+    262, 51, 262, 52, 262, 53, 262, 54, 262, 55, 262, 56, 262, 57, 262, 48, 
+    262, 49, 262, 50, 262, 51, 262, 52, 262, 53, 262, 54, 262, 55, 262, 56, 
+    262, 57, 262, 48, 262, 49, 262, 50, 262, 51, 262, 52, 262, 53, 262, 54, 
+    262, 55, 262, 56, 262, 57, 262, 48, 262, 49, 262, 50, 262, 51, 262, 52, 
+    262, 53, 262, 54, 262, 55, 262, 56, 262, 57, 262, 1575, 262, 1576, 262, 
+    1580, 262, 1583, 262, 1608, 262, 1586, 262, 1581, 262, 1591, 262, 1610, 
+    262, 1603, 262, 1604, 262, 1605, 262, 1606, 262, 1587, 262, 1593, 262, 
+    1601, 262, 1589, 262, 1602, 262, 1585, 262, 1588, 262, 1578, 262, 1579, 
+    262, 1582, 262, 1584, 262, 1590, 262, 1592, 262, 1594, 262, 1646, 262, 
+    1722, 262, 1697, 262, 1647, 262, 1576, 262, 1580, 262, 1607, 262, 1581, 
+    262, 1610, 262, 1603, 262, 1604, 262, 1605, 262, 1606, 262, 1587, 262, 
+    1593, 262, 1601, 262, 1589, 262, 1602, 262, 1588, 262, 1578, 262, 1579, 
+    262, 1582, 262, 1590, 262, 1594, 262, 1580, 262, 1581, 262, 1610, 262, 
+    1604, 262, 1606, 262, 1587, 262, 1593, 262, 1589, 262, 1602, 262, 1588, 
+    262, 1582, 262, 1590, 262, 1594, 262, 1722, 262, 1647, 262, 1576, 262, 
+    1580, 262, 1607, 262, 1581, 262, 1591, 262, 1610, 262, 1603, 262, 1605, 
+    262, 1606, 262, 1587, 262, 1593, 262, 1601, 262, 1589, 262, 1602, 262, 
+    1588, 262, 1578, 262, 1579, 262, 1582, 262, 1590, 262, 1592, 262, 1594, 
+    262, 1646, 262, 1697, 262, 1575, 262, 1576, 262, 1580, 262, 1583, 262, 
+    1607, 262, 1608, 262, 1586, 262, 1581, 262, 1591, 262, 1610, 262, 1604, 
+    262, 1605, 262, 1606, 262, 1587, 262, 1593, 262, 1601, 262, 1589, 262, 
+    1602, 262, 1585, 262, 1588, 262, 1578, 262, 1579, 262, 1582, 262, 1584, 
+    262, 1590, 262, 1592, 262, 1594, 262, 1576, 262, 1580, 262, 1583, 262, 
+    1608, 262, 1586, 262, 1581, 262, 1591, 262, 1610, 262, 1604, 262, 1605, 
+    262, 1606, 262, 1587, 262, 1593, 262, 1601, 262, 1589, 262, 1602, 262, 
+    1585, 262, 1588, 262, 1578, 262, 1579, 262, 1582, 262, 1584, 262, 1590, 
+    262, 1592, 262, 1594, 514, 48, 46, 514, 48, 44, 514, 49, 44, 514, 50, 44, 
+    514, 51, 44, 514, 52, 44, 514, 53, 44, 514, 54, 44, 514, 55, 44, 514, 56, 
+    44, 514, 57, 44, 770, 40, 65, 41, 770, 40, 66, 41, 770, 40, 67, 41, 770, 
+    40, 68, 41, 770, 40, 69, 41, 770, 40, 70, 41, 770, 40, 71, 41, 770, 40, 
+    72, 41, 770, 40, 73, 41, 770, 40, 74, 41, 770, 40, 75, 41, 770, 40, 76, 
+    41, 770, 40, 77, 41, 770, 40, 78, 41, 770, 40, 79, 41, 770, 40, 80, 41, 
+    770, 40, 81, 41, 770, 40, 82, 41, 770, 40, 83, 41, 770, 40, 84, 41, 770, 
+    40, 85, 41, 770, 40, 86, 41, 770, 40, 87, 41, 770, 40, 88, 41, 770, 40, 
+    89, 41, 770, 40, 90, 41, 770, 12308, 83, 12309, 263, 67, 263, 82, 519, 
+    67, 68, 519, 87, 90, 266, 65, 266, 66, 266, 67, 266, 68, 266, 69, 266, 
+    70, 266, 71, 266, 72, 266, 73, 266, 74, 266, 75, 266, 76, 266, 77, 266, 
+    78, 266, 79, 266, 80, 266, 81, 266, 82, 266, 83, 266, 84, 266, 85, 266, 
+    86, 266, 87, 266, 88, 266, 89, 266, 90, 522, 72, 86, 522, 77, 86, 522, 
+    83, 68, 522, 83, 83, 778, 80, 80, 86, 522, 87, 67, 515, 77, 67, 515, 77, 
+    68, 522, 68, 74, 522, 12411, 12363, 522, 12467, 12467, 266, 12469, 266, 
+    25163, 266, 23383, 266, 21452, 266, 12487, 266, 20108, 266, 22810, 266, 
+    35299, 266, 22825, 266, 20132, 266, 26144, 266, 28961, 266, 26009, 266, 
+    21069, 266, 24460, 266, 20877, 266, 26032, 266, 21021, 266, 32066, 266, 
+    29983, 266, 36009, 266, 22768, 266, 21561, 266, 28436, 266, 25237, 266, 
+    25429, 266, 19968, 266, 19977, 266, 36938, 266, 24038, 266, 20013, 266, 
+    21491, 266, 25351, 266, 36208, 266, 25171, 266, 31105, 266, 31354, 266, 
+    21512, 266, 28288, 266, 26377, 266, 26376, 266, 30003, 266, 21106, 266, 
+    21942, 770, 12308, 26412, 12309, 770, 12308, 19977, 12309, 770, 12308, 
+    20108, 12309, 770, 12308, 23433, 12309, 770, 12308, 28857, 12309, 770, 
+    12308, 25171, 12309, 770, 12308, 30423, 12309, 770, 12308, 21213, 12309, 
+    770, 12308, 25943, 12309, 263, 24471, 263, 21487, 256, 20029, 256, 20024, 
+    256, 20033, 256, 55360, 56610, 256, 20320, 256, 20398, 256, 20411, 256, 
+    20482, 256, 20602, 256, 20633, 256, 20711, 256, 20687, 256, 13470, 256, 
+    55361, 56890, 256, 20813, 256, 20820, 256, 20836, 256, 20855, 256, 55361, 
+    56604, 256, 13497, 256, 20839, 256, 20877, 256, 55361, 56651, 256, 20887, 
+    256, 20900, 256, 20172, 256, 20908, 256, 20917, 256, 55396, 56799, 256, 
+    20981, 256, 20995, 256, 13535, 256, 21051, 256, 21062, 256, 21106, 256, 
+    21111, 256, 13589, 256, 21191, 256, 21193, 256, 21220, 256, 21242, 256, 
+    21253, 256, 21254, 256, 21271, 256, 21321, 256, 21329, 256, 21338, 256, 
+    21363, 256, 21373, 256, 21375, 256, 21375, 256, 21375, 256, 55362, 56876, 
+    256, 28784, 256, 21450, 256, 21471, 256, 55362, 57187, 256, 21483, 256, 
+    21489, 256, 21510, 256, 21662, 256, 21560, 256, 21576, 256, 21608, 256, 
+    21666, 256, 21750, 256, 21776, 256, 21843, 256, 21859, 256, 21892, 256, 
+    21892, 256, 21913, 256, 21931, 256, 21939, 256, 21954, 256, 22294, 256, 
+    22022, 256, 22295, 256, 22097, 256, 22132, 256, 20999, 256, 22766, 256, 
+    22478, 256, 22516, 256, 22541, 256, 22411, 256, 22578, 256, 22577, 256, 
+    22700, 256, 55365, 56548, 256, 22770, 256, 22775, 256, 22790, 256, 22810, 
+    256, 22818, 256, 22882, 256, 55365, 57000, 256, 55365, 57066, 256, 23020, 
+    256, 23067, 256, 23079, 256, 23000, 256, 23142, 256, 14062, 256, 14076, 
+    256, 23304, 256, 23358, 256, 23358, 256, 55366, 56776, 256, 23491, 256, 
+    23512, 256, 23527, 256, 23539, 256, 55366, 57112, 256, 23551, 256, 23558, 
+    256, 24403, 256, 23586, 256, 14209, 256, 23648, 256, 23662, 256, 23744, 
+    256, 23693, 256, 55367, 56804, 256, 23875, 256, 55367, 56806, 256, 23918, 
+    256, 23915, 256, 23932, 256, 24033, 256, 24034, 256, 14383, 256, 24061, 
+    256, 24104, 256, 24125, 256, 24169, 256, 14434, 256, 55368, 56707, 256, 
+    14460, 256, 24240, 256, 24243, 256, 24246, 256, 24266, 256, 55400, 57234, 
+    256, 24318, 256, 55368, 57137, 256, 55368, 57137, 256, 33281, 256, 24354, 
+    256, 24354, 256, 14535, 256, 55372, 57016, 256, 55384, 56794, 256, 24418, 
+    256, 24427, 256, 14563, 256, 24474, 256, 24525, 256, 24535, 256, 24569, 
+    256, 24705, 256, 14650, 256, 14620, 256, 24724, 256, 55369, 57044, 256, 
+    24775, 256, 24904, 256, 24908, 256, 24910, 256, 24908, 256, 24954, 256, 
+    24974, 256, 25010, 256, 24996, 256, 25007, 256, 25054, 256, 25074, 256, 
+    25078, 256, 25104, 256, 25115, 256, 25181, 256, 25265, 256, 25300, 256, 
+    25424, 256, 55370, 57100, 256, 25405, 256, 25340, 256, 25448, 256, 25475, 
+    256, 25572, 256, 55370, 57329, 256, 25634, 256, 25541, 256, 25513, 256, 
+    14894, 256, 25705, 256, 25726, 256, 25757, 256, 25719, 256, 14956, 256, 
+    25935, 256, 25964, 256, 55372, 56330, 256, 26083, 256, 26360, 256, 26185, 
+    256, 15129, 256, 26257, 256, 15112, 256, 15076, 256, 20882, 256, 20885, 
+    256, 26368, 256, 26268, 256, 32941, 256, 17369, 256, 26391, 256, 26395, 
+    256, 26401, 256, 26462, 256, 26451, 256, 55372, 57283, 256, 15177, 256, 
+    26618, 256, 26501, 256, 26706, 256, 26757, 256, 55373, 56429, 256, 26766, 
+    256, 26655, 256, 26900, 256, 15261, 256, 26946, 256, 27043, 256, 27114, 
+    256, 27304, 256, 55373, 56995, 256, 27355, 256, 15384, 256, 27425, 256, 
+    55374, 56487, 256, 27476, 256, 15438, 256, 27506, 256, 27551, 256, 27578, 
+    256, 27579, 256, 55374, 56973, 256, 55367, 56587, 256, 55374, 57082, 256, 
+    27726, 256, 55375, 56508, 256, 27839, 256, 27853, 256, 27751, 256, 27926, 
+    256, 27966, 256, 28023, 256, 27969, 256, 28009, 256, 28024, 256, 28037, 
+    256, 55375, 56606, 256, 27956, 256, 28207, 256, 28270, 256, 15667, 256, 
+    28363, 256, 28359, 256, 55375, 57041, 256, 28153, 256, 28526, 256, 55375, 
+    57182, 256, 55375, 57230, 256, 28614, 256, 28729, 256, 28702, 256, 28699, 
+    256, 15766, 256, 28746, 256, 28797, 256, 28791, 256, 28845, 256, 55361, 
+    56613, 256, 28997, 256, 55376, 56931, 256, 29084, 256, 55376, 57259, 256, 
+    29224, 256, 29237, 256, 29264, 256, 55377, 56840, 256, 29312, 256, 29333, 
+    256, 55377, 57141, 256, 55378, 56340, 256, 29562, 256, 29579, 256, 16044, 
+    256, 29605, 256, 16056, 256, 16056, 256, 29767, 256, 29788, 256, 29809, 
+    256, 29829, 256, 29898, 256, 16155, 256, 29988, 256, 55379, 56374, 256, 
+    30014, 256, 55379, 56466, 256, 30064, 256, 55368, 56735, 256, 30224, 256, 
+    55379, 57249, 256, 55379, 57272, 256, 55380, 56388, 256, 16380, 256, 
+    16392, 256, 30452, 256, 55380, 56563, 256, 55380, 56562, 256, 55380, 
+    56601, 256, 55380, 56627, 256, 30494, 256, 30495, 256, 30495, 256, 30538, 
+    256, 16441, 256, 30603, 256, 16454, 256, 16534, 256, 55381, 56349, 256, 
+    30798, 256, 30860, 256, 30924, 256, 16611, 256, 55381, 56870, 256, 31062, 
+    256, 55381, 56986, 256, 55381, 57029, 256, 31119, 256, 31211, 256, 16687, 
+    256, 31296, 256, 31306, 256, 31311, 256, 55382, 56700, 256, 55382, 56999, 
+    256, 55382, 56999, 256, 31470, 256, 16898, 256, 55382, 57259, 256, 31686, 
+    256, 31689, 256, 16935, 256, 55383, 56448, 256, 31954, 256, 17056, 256, 
+    31976, 256, 31971, 256, 32000, 256, 55383, 57222, 256, 32099, 256, 17153, 
+    256, 32199, 256, 32258, 256, 32325, 256, 17204, 256, 55384, 56872, 256, 
+    55384, 56903, 256, 17241, 256, 55384, 57049, 256, 32634, 256, 55384, 
+    57150, 256, 32661, 256, 32762, 256, 32773, 256, 55385, 56538, 256, 55385, 
+    56611, 256, 32864, 256, 55385, 56744, 256, 32880, 256, 55372, 57183, 256, 
+    17365, 256, 32946, 256, 33027, 256, 17419, 256, 33086, 256, 23221, 256, 
+    55385, 57255, 256, 55385, 57269, 256, 55372, 57235, 256, 55372, 57244, 
+    256, 33281, 256, 33284, 256, 36766, 256, 17515, 256, 33425, 256, 33419, 
+    256, 33437, 256, 21171, 256, 33457, 256, 33459, 256, 33469, 256, 33510, 
+    256, 55386, 57148, 256, 33509, 256, 33565, 256, 33635, 256, 33709, 256, 
+    33571, 256, 33725, 256, 33767, 256, 33879, 256, 33619, 256, 33738, 256, 
+    33740, 256, 33756, 256, 55387, 56374, 256, 55387, 56683, 256, 55387, 
+    56533, 256, 17707, 256, 34033, 256, 34035, 256, 34070, 256, 55388, 57290, 
+    256, 34148, 256, 55387, 57132, 256, 17757, 256, 17761, 256, 55387, 57265, 
+    256, 55388, 56530, 256, 17771, 256, 34384, 256, 34396, 256, 34407, 256, 
+    34409, 256, 34473, 256, 34440, 256, 34574, 256, 34530, 256, 34681, 256, 
+    34600, 256, 34667, 256, 34694, 256, 17879, 256, 34785, 256, 34817, 256, 
+    17913, 256, 34912, 256, 34915, 256, 55389, 56935, 256, 35031, 256, 35038, 
+    256, 17973, 256, 35066, 256, 13499, 256, 55390, 56494, 256, 55390, 56678, 
+    256, 18110, 256, 18119, 256, 35488, 256, 35565, 256, 35722, 256, 35925, 
+    256, 55391, 56488, 256, 36011, 256, 36033, 256, 36123, 256, 36215, 256, 
+    55391, 57135, 256, 55362, 56324, 256, 36299, 256, 36284, 256, 36336, 256, 
+    55362, 56542, 256, 36564, 256, 36664, 256, 55393, 56786, 256, 55393, 
+    56813, 256, 37012, 256, 37105, 256, 37137, 256, 55393, 57134, 256, 37147, 
+    256, 37432, 256, 37591, 256, 37592, 256, 37500, 256, 37881, 256, 37909, 
+    256, 55394, 57338, 256, 38283, 256, 18837, 256, 38327, 256, 55395, 56695, 
+    256, 18918, 256, 38595, 256, 23986, 256, 38691, 256, 55396, 56645, 256, 
+    55396, 56858, 256, 19054, 256, 19062, 256, 38880, 256, 55397, 56330, 256, 
+    19122, 256, 55397, 56470, 256, 38923, 256, 38923, 256, 38953, 256, 55397, 
+    56758, 256, 39138, 256, 19251, 256, 39209, 256, 39335, 256, 39362, 256, 
+    39422, 256, 19406, 256, 55398, 57136, 256, 39698, 256, 40000, 256, 40189, 
+    256, 19662, 256, 19693, 256, 40295, 256, 55400, 56526, 256, 19704, 256, 
+    55400, 56581, 256, 55400, 56846, 256, 55400, 56977, 256, 40635, 256, 
+    19798, 256, 40697, 256, 40702, 256, 40709, 256, 40719, 256, 40726, 256, 
+    40763, 256, 55401, 56832, 
+};
+
+/* index tables for the decomposition data */
+#define DECOMP_SHIFT1 6
+#define DECOMP_SHIFT2 4
+static const unsigned char decomp_index0[] = {
+    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 13, 14, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 15, 16, 5, 5, 5, 5, 17, 18, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 19, 20, 
+    5, 5, 5, 5, 5, 21, 22, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    23, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+    5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 
+};
+
+static const unsigned short decomp_index1[] = {
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 
+    14, 0, 0, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 0, 0, 0, 0, 0, 0, 0, 
+    25, 0, 26, 27, 0, 0, 0, 0, 0, 28, 0, 0, 29, 30, 31, 32, 33, 34, 35, 0, 
+    36, 37, 38, 0, 39, 0, 40, 0, 41, 0, 0, 0, 0, 42, 43, 44, 45, 0, 0, 0, 0, 
+    0, 0, 0, 0, 46, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 48, 0, 0, 0, 
+    0, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 51, 52, 0, 53, 0, 0, 0, 0, 
+    0, 0, 54, 55, 0, 0, 0, 0, 0, 56, 0, 57, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 58, 59, 0, 0, 0, 60, 0, 0, 61, 0, 0, 0, 0, 0, 0, 0, 62, 0, 0, 0, 
+    0, 0, 0, 0, 63, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 65, 0, 
+    0, 0, 0, 0, 66, 0, 0, 0, 0, 0, 0, 0, 67, 0, 68, 0, 0, 69, 0, 0, 0, 70, 
+    71, 72, 73, 74, 75, 76, 77, 0, 0, 0, 0, 0, 0, 78, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 79, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 80, 81, 0, 
+    82, 83, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 84, 85, 86, 87, 88, 89, 0, 90, 91, 92, 0, 0, 0, 0, 
+    93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 
+    109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 
+    123, 124, 125, 126, 127, 128, 129, 130, 0, 131, 132, 133, 134, 0, 0, 0, 
+    0, 0, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 0, 146, 0, 
+    0, 0, 147, 0, 148, 149, 150, 0, 151, 152, 153, 0, 154, 0, 0, 0, 155, 0, 
+    0, 0, 156, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 
+    158, 159, 160, 161, 162, 163, 164, 165, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 166, 0, 
+    0, 0, 0, 0, 0, 167, 0, 0, 0, 0, 0, 168, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 169, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 170, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    171, 0, 0, 0, 0, 0, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 
+    182, 183, 184, 185, 186, 0, 0, 187, 0, 0, 188, 189, 190, 191, 192, 0, 
+    193, 194, 195, 196, 197, 0, 198, 0, 0, 0, 199, 200, 201, 202, 203, 204, 
+    205, 0, 0, 0, 0, 0, 0, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 
+    216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 
+    230, 231, 232, 233, 234, 235, 236, 237, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 238, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 0, 0, 
+    0, 0, 0, 0, 0, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 242, 243, 244, 245, 246, 247, 
+    248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 
+    262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 0, 0, 272, 273, 274, 
+    275, 276, 277, 278, 279, 280, 281, 282, 283, 0, 284, 285, 286, 287, 288, 
+    289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 
+    303, 304, 305, 306, 0, 307, 308, 309, 310, 311, 312, 313, 314, 0, 0, 315, 
+    0, 316, 0, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 
+    329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 
+    343, 344, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 345, 346, 0, 0, 0, 0, 0, 0, 0, 
+    347, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 348, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 351, 352, 0, 0, 0, 0, 353, 354, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 
+    365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 
+    379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 
+    393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 
+    407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 431, 432, 433, 434, 435, 0, 436, 0, 
+    0, 437, 0, 0, 0, 0, 0, 0, 438, 439, 440, 441, 442, 443, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 444, 445, 
+    446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 
+    460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 
+    474, 475, 476, 477, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+};
+
+static const unsigned short decomp_index2[] = {
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 
+    3, 0, 6, 0, 0, 0, 0, 8, 0, 0, 11, 13, 15, 18, 0, 0, 20, 23, 25, 0, 27, 
+    31, 35, 0, 39, 42, 45, 48, 51, 54, 0, 57, 60, 63, 66, 69, 72, 75, 78, 81, 
+    0, 84, 87, 90, 93, 96, 99, 0, 0, 102, 105, 108, 111, 114, 0, 0, 117, 120, 
+    123, 126, 129, 132, 0, 135, 138, 141, 144, 147, 150, 153, 156, 159, 0, 
+    162, 165, 168, 171, 174, 177, 0, 0, 180, 183, 186, 189, 192, 0, 195, 198, 
+    201, 204, 207, 210, 213, 216, 219, 222, 225, 228, 231, 234, 237, 240, 
+    243, 0, 0, 246, 249, 252, 255, 258, 261, 264, 267, 270, 273, 276, 279, 
+    282, 285, 288, 291, 294, 297, 300, 303, 0, 0, 306, 309, 312, 315, 318, 
+    321, 324, 327, 330, 0, 333, 336, 339, 342, 345, 348, 0, 351, 354, 357, 
+    360, 363, 366, 369, 372, 0, 0, 375, 378, 381, 384, 387, 390, 393, 0, 0, 
+    396, 399, 402, 405, 408, 411, 0, 0, 414, 417, 420, 423, 426, 429, 432, 
+    435, 438, 441, 444, 447, 450, 453, 456, 459, 462, 465, 0, 0, 468, 471, 
+    474, 477, 480, 483, 486, 489, 492, 495, 498, 501, 504, 507, 510, 513, 
+    516, 519, 522, 525, 528, 531, 534, 537, 539, 542, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 545, 548, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 551, 554, 557, 560, 563, 566, 569, 572, 575, 578, 581, 584, 587, 
+    590, 593, 596, 599, 602, 605, 608, 611, 614, 617, 620, 623, 0, 626, 629, 
+    632, 635, 638, 641, 0, 0, 644, 647, 650, 653, 656, 659, 662, 665, 668, 
+    671, 674, 677, 680, 683, 686, 689, 0, 0, 692, 695, 698, 701, 704, 707, 
+    710, 713, 716, 719, 722, 725, 728, 731, 734, 737, 740, 743, 746, 749, 
+    752, 755, 758, 761, 764, 767, 770, 773, 776, 779, 782, 785, 788, 791, 
+    794, 797, 0, 0, 800, 803, 0, 0, 0, 0, 0, 0, 806, 809, 812, 815, 818, 821, 
+    824, 827, 830, 833, 836, 839, 842, 845, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 848, 850, 852, 854, 856, 858, 860, 862, 864, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 866, 869, 872, 875, 878, 881, 0, 0, 884, 886, 888, 
+    890, 892, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 894, 896, 0, 898, 900, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 903, 0, 0, 0, 0, 0, 905, 0, 0, 0, 
+    908, 0, 0, 0, 0, 0, 910, 913, 916, 919, 921, 924, 927, 0, 930, 0, 933, 
+    936, 939, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 942, 945, 948, 951, 954, 957, 960, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 963, 966, 969, 972, 975, 
+    0, 978, 980, 982, 984, 987, 990, 992, 0, 0, 0, 0, 0, 0, 0, 0, 0, 994, 
+    996, 998, 0, 1000, 1002, 0, 0, 0, 1004, 0, 0, 0, 0, 0, 0, 1006, 1009, 0, 
+    1012, 0, 0, 0, 1015, 0, 0, 0, 0, 1018, 1021, 1024, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 1027, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1030, 0, 0, 
+    0, 0, 0, 0, 1033, 1036, 0, 1039, 0, 0, 0, 1042, 0, 0, 0, 0, 1045, 1048, 
+    1051, 0, 0, 0, 0, 0, 0, 0, 1054, 1057, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1060, 
+    1063, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1066, 1069, 1072, 1075, 0, 
+    0, 1078, 1081, 0, 0, 1084, 1087, 1090, 1093, 1096, 1099, 0, 0, 1102, 
+    1105, 1108, 1111, 1114, 1117, 0, 0, 1120, 1123, 1126, 1129, 1132, 1135, 
+    1138, 1141, 1144, 1147, 1150, 1153, 0, 0, 1156, 1159, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 1162, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1165, 1168, 
+    1171, 1174, 1177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1180, 1183, 
+    1186, 1189, 0, 0, 0, 0, 0, 0, 0, 1192, 0, 1195, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 1198, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 1201, 0, 0, 0, 0, 0, 0, 0, 1204, 0, 0, 1207, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1210, 1213, 1216, 
+    1219, 1222, 1225, 1228, 1231, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1234, 
+    1237, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1240, 1243, 0, 1246, 
+    0, 0, 0, 1249, 0, 0, 1252, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 1255, 1258, 1261, 0, 0, 1264, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1267, 
+    0, 0, 1270, 1273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1276, 
+    1279, 0, 0, 0, 0, 0, 0, 1282, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 1285, 1288, 1291, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    1294, 0, 0, 0, 0, 0, 0, 0, 1297, 0, 0, 0, 0, 0, 0, 1300, 1303, 0, 1306, 
+    1309, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1312, 1315, 1318, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1321, 0, 1324, 1327, 1330, 0, 0, 0, 0, 
+    1333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1336, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1339, 1342, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1345, 0, 0, 0, 0, 0, 0, 1347, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 1350, 0, 0, 0, 0, 1353, 0, 0, 0, 0, 1356, 0, 0, 
+    0, 0, 1359, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1362, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 1365, 0, 1368, 1371, 1374, 1377, 1380, 0, 0, 0, 0, 0, 0, 0, 
+    1383, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1386, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 1389, 0, 0, 0, 0, 1392, 0, 0, 0, 0, 1395, 0, 0, 0, 0, 
+    1398, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1401, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 1404, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 1407, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1409, 0, 1412, 0, 1415, 0, 
+    1418, 0, 1421, 0, 0, 0, 1424, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1427, 0, 1430, 0, 0, 1433, 1436, 0, 1439, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    1442, 1444, 1446, 0, 1448, 1450, 1452, 1454, 1456, 1458, 1460, 1462, 
+    1464, 1466, 1468, 0, 1470, 1472, 1474, 1476, 1478, 1480, 1482, 1484, 
+    1486, 1488, 1490, 1492, 1494, 1496, 1498, 1500, 1502, 1504, 0, 1506, 
+    1508, 1510, 1512, 1514, 1516, 1518, 1520, 1522, 1524, 1526, 1528, 1530, 
+    1532, 1534, 1536, 1538, 1540, 1542, 1544, 1546, 1548, 1550, 1552, 1554, 
+    1556, 1558, 1560, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1562, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1564, 1566, 1568, 1570, 
+    1572, 1574, 1576, 1578, 1580, 1582, 1584, 1586, 1588, 1590, 1592, 1594, 
+    1596, 1598, 1600, 1602, 1604, 1606, 1608, 1610, 1612, 1614, 1616, 1618, 
+    1620, 1622, 1624, 1626, 1628, 1630, 1632, 1634, 1636, 1638, 1641, 1644, 
+    1647, 1650, 1653, 1656, 1659, 1662, 1665, 1668, 1671, 1674, 1677, 1680, 
+    1683, 1686, 1689, 1692, 1695, 1698, 1701, 1704, 1707, 1710, 1713, 1716, 
+    1719, 1722, 1725, 1728, 1731, 1734, 1737, 1740, 1743, 1746, 1749, 1752, 
+    1755, 1758, 1761, 1764, 1767, 1770, 1773, 1776, 1779, 1782, 1785, 1788, 
+    1791, 1794, 1797, 1800, 1803, 1806, 1809, 1812, 1815, 1818, 1821, 1824, 
+    1827, 1830, 1833, 1836, 1839, 1842, 1845, 1848, 1851, 1854, 1857, 1860, 
+    1863, 1866, 1869, 1872, 1875, 1878, 1881, 1884, 1887, 1890, 1893, 1896, 
+    1899, 1902, 1905, 1908, 1911, 1914, 1917, 1920, 1923, 1926, 1929, 1932, 
+    1935, 1938, 1941, 1944, 1947, 1950, 1953, 1956, 1959, 1962, 1965, 1968, 
+    1971, 1974, 1977, 1980, 1983, 1986, 1989, 1992, 1995, 1998, 2001, 2004, 
+    2007, 2010, 2013, 2016, 2019, 2022, 2025, 2028, 2031, 2034, 2037, 2040, 
+    2043, 2046, 2049, 2052, 2055, 2058, 2061, 2064, 2067, 2070, 2073, 2076, 
+    2079, 2082, 2085, 2088, 2091, 2094, 2097, 2100, 2103, 0, 0, 0, 0, 2106, 
+    2109, 2112, 2115, 2118, 2121, 2124, 2127, 2130, 2133, 2136, 2139, 2142, 
+    2145, 2148, 2151, 2154, 2157, 2160, 2163, 2166, 2169, 2172, 2175, 2178, 
+    2181, 2184, 2187, 2190, 2193, 2196, 2199, 2202, 2205, 2208, 2211, 2214, 
+    2217, 2220, 2223, 2226, 2229, 2232, 2235, 2238, 2241, 2244, 2247, 2250, 
+    2253, 2256, 2259, 2262, 2265, 2268, 2271, 2274, 2277, 2280, 2283, 2286, 
+    2289, 2292, 2295, 2298, 2301, 2304, 2307, 2310, 2313, 2316, 2319, 2322, 
+    2325, 2328, 2331, 2334, 2337, 2340, 2343, 2346, 2349, 2352, 2355, 2358, 
+    2361, 2364, 2367, 2370, 2373, 0, 0, 0, 0, 0, 0, 2376, 2379, 2382, 2385, 
+    2388, 2391, 2394, 2397, 2400, 2403, 2406, 2409, 2412, 2415, 2418, 2421, 
+    2424, 2427, 2430, 2433, 2436, 2439, 0, 0, 2442, 2445, 2448, 2451, 2454, 
+    2457, 0, 0, 2460, 2463, 2466, 2469, 2472, 2475, 2478, 2481, 2484, 2487, 
+    2490, 2493, 2496, 2499, 2502, 2505, 2508, 2511, 2514, 2517, 2520, 2523, 
+    2526, 2529, 2532, 2535, 2538, 2541, 2544, 2547, 2550, 2553, 2556, 2559, 
+    2562, 2565, 2568, 2571, 0, 0, 2574, 2577, 2580, 2583, 2586, 2589, 0, 0, 
+    2592, 2595, 2598, 2601, 2604, 2607, 2610, 2613, 0, 2616, 0, 2619, 0, 
+    2622, 0, 2625, 2628, 2631, 2634, 2637, 2640, 2643, 2646, 2649, 2652, 
+    2655, 2658, 2661, 2664, 2667, 2670, 2673, 2676, 2679, 2681, 2684, 2686, 
+    2689, 2691, 2694, 2696, 2699, 2701, 2704, 2706, 2709, 0, 0, 2711, 2714, 
+    2717, 2720, 2723, 2726, 2729, 2732, 2735, 2738, 2741, 2744, 2747, 2750, 
+    2753, 2756, 2759, 2762, 2765, 2768, 2771, 2774, 2777, 2780, 2783, 2786, 
+    2789, 2792, 2795, 2798, 2801, 2804, 2807, 2810, 2813, 2816, 2819, 2822, 
+    2825, 2828, 2831, 2834, 2837, 2840, 2843, 2846, 2849, 2852, 2855, 2858, 
+    2861, 2864, 2867, 0, 2870, 2873, 2876, 2879, 2882, 2885, 2887, 2890, 
+    2893, 2895, 2898, 2901, 2904, 2907, 2910, 0, 2913, 2916, 2919, 2922, 
+    2924, 2927, 2929, 2932, 2935, 2938, 2941, 2944, 2947, 2950, 0, 0, 2952, 
+    2955, 2958, 2961, 2964, 2967, 0, 2969, 2972, 2975, 2978, 2981, 2984, 
+    2987, 2989, 2992, 2995, 2998, 3001, 3004, 3007, 3010, 3012, 3015, 3018, 
+    3020, 0, 0, 3022, 3025, 3028, 0, 3031, 3034, 3037, 3040, 3042, 3045, 
+    3047, 3050, 3052, 0, 3055, 3057, 3059, 3061, 3063, 3065, 3067, 3069, 
+    3071, 3073, 3075, 0, 0, 0, 0, 0, 0, 3077, 0, 0, 0, 0, 0, 3079, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 3082, 3084, 3087, 0, 0, 0, 0, 0, 0, 0, 0, 
+    3091, 0, 0, 0, 3093, 3096, 0, 3100, 3103, 0, 0, 0, 0, 3107, 0, 3110, 0, 
+    0, 0, 0, 0, 0, 0, 0, 3113, 3116, 3119, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 3122, 0, 0, 0, 0, 0, 0, 0, 3127, 3129, 3131, 0, 0, 3133, 3135, 
+    3137, 3139, 3141, 3143, 3145, 3147, 3149, 3151, 3153, 3155, 3157, 3159, 
+    3161, 3163, 3165, 3167, 3169, 3171, 3173, 3175, 3177, 3179, 3181, 3183, 
+    3185, 0, 3187, 3189, 3191, 3193, 3195, 3197, 3199, 3201, 3203, 3205, 
+    3207, 3209, 3211, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3213, 0, 0, 0, 0, 0, 
+    0, 0, 3216, 3220, 3224, 3226, 0, 3229, 3233, 3237, 0, 3239, 3242, 3244, 
+    3246, 3248, 3250, 3252, 3254, 3256, 3258, 3260, 0, 3262, 3264, 0, 0, 
+    3267, 3269, 3271, 3273, 3275, 0, 0, 3277, 3280, 3284, 0, 3287, 0, 3289, 
+    0, 3291, 0, 3293, 3295, 3297, 3299, 0, 3301, 3303, 3305, 0, 3307, 3309, 
+    3311, 3313, 3315, 3317, 3319, 0, 3321, 3325, 3327, 3329, 3331, 3333, 0, 
+    0, 0, 0, 3335, 3337, 3339, 3341, 3343, 0, 0, 0, 0, 0, 0, 3345, 3349, 
+    3353, 3358, 3362, 3366, 3370, 3374, 3378, 3382, 3386, 3390, 3394, 3398, 
+    3402, 3406, 3409, 3411, 3414, 3418, 3421, 3423, 3426, 3430, 3435, 3438, 
+    3440, 3443, 3447, 3449, 3451, 3453, 3455, 3457, 3460, 3464, 3467, 3469, 
+    3472, 3476, 3481, 3484, 3486, 3489, 3493, 3495, 3497, 3499, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 3501, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    3505, 3508, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3511, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3514, 3517, 3520, 0, 0, 0, 0, 
+    3523, 0, 0, 0, 0, 3526, 0, 0, 3529, 0, 0, 0, 0, 0, 0, 0, 3532, 0, 3535, 
+    0, 0, 0, 0, 0, 3538, 3541, 0, 3545, 3548, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 3552, 0, 0, 3555, 0, 0, 3558, 0, 3561, 0, 0, 0, 0, 0, 
+    0, 3564, 0, 3567, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3570, 3573, 3576, 3579, 
+    3582, 0, 0, 3585, 3588, 0, 0, 3591, 3594, 0, 0, 0, 0, 0, 0, 3597, 3600, 
+    0, 0, 3603, 3606, 0, 0, 3609, 3612, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 3615, 3618, 3621, 3624, 3627, 3630, 3633, 3636, 0, 0, 
+    0, 0, 0, 0, 3639, 3642, 3645, 3648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    3651, 3653, 0, 0, 0, 0, 0, 3655, 3657, 3659, 3661, 3663, 3665, 3667, 
+    3669, 3671, 3673, 3676, 3679, 3682, 3685, 3688, 3691, 3694, 3697, 3700, 
+    3703, 3706, 3710, 3714, 3718, 3722, 3726, 3730, 3734, 3738, 3742, 3747, 
+    3752, 3757, 3762, 3767, 3772, 3777, 3782, 3787, 3792, 3797, 3800, 3803, 
+    3806, 3809, 3812, 3815, 3818, 3821, 3824, 3828, 3832, 3836, 3840, 3844, 
+    3848, 3852, 3856, 3860, 3864, 3868, 3872, 3876, 3880, 3884, 3888, 3892, 
+    3896, 3900, 3904, 3908, 3912, 3916, 3920, 3924, 3928, 3932, 3936, 3940, 
+    3944, 3948, 3952, 3956, 3960, 3964, 3968, 3972, 3974, 3976, 3978, 3980, 
+    3982, 3984, 3986, 3988, 3990, 3992, 3994, 3996, 3998, 4000, 4002, 4004, 
+    4006, 4008, 4010, 4012, 4014, 4016, 4018, 4020, 4022, 4024, 4026, 4028, 
+    4030, 4032, 4034, 4036, 4038, 4040, 4042, 4044, 4046, 4048, 4050, 4052, 
+    4054, 4056, 4058, 4060, 4062, 4064, 4066, 4068, 4070, 4072, 4074, 4076, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4078, 0, 0, 0, 0, 0, 
+    0, 0, 4083, 4087, 4090, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 4094, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4097, 
+    4099, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4101, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4103, 0, 0, 0, 4105, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 4107, 4109, 4111, 4113, 4115, 4117, 4119, 4121, 
+    4123, 4125, 4127, 4129, 4131, 4133, 4135, 4137, 4139, 4141, 4143, 4145, 
+    4147, 4149, 4151, 4153, 4155, 4157, 4159, 4161, 4163, 4165, 4167, 4169, 
+    4171, 4173, 4175, 4177, 4179, 4181, 4183, 4185, 4187, 4189, 4191, 4193, 
+    4195, 4197, 4199, 4201, 4203, 4205, 4207, 4209, 4211, 4213, 4215, 4217, 
+    4219, 4221, 4223, 4225, 4227, 4229, 4231, 4233, 4235, 4237, 4239, 4241, 
+    4243, 4245, 4247, 4249, 4251, 4253, 4255, 4257, 4259, 4261, 4263, 4265, 
+    4267, 4269, 4271, 4273, 4275, 4277, 4279, 4281, 4283, 4285, 4287, 4289, 
+    4291, 4293, 4295, 4297, 4299, 4301, 4303, 4305, 4307, 4309, 4311, 4313, 
+    4315, 4317, 4319, 4321, 4323, 4325, 4327, 4329, 4331, 4333, 4335, 4337, 
+    4339, 4341, 4343, 4345, 4347, 4349, 4351, 4353, 4355, 4357, 4359, 4361, 
+    4363, 4365, 4367, 4369, 4371, 4373, 4375, 4377, 4379, 4381, 4383, 4385, 
+    4387, 4389, 4391, 4393, 4395, 4397, 4399, 4401, 4403, 4405, 4407, 4409, 
+    4411, 4413, 4415, 4417, 4419, 4421, 4423, 4425, 4427, 4429, 4431, 4433, 
+    4435, 4437, 4439, 4441, 4443, 4445, 4447, 4449, 4451, 4453, 4455, 4457, 
+    4459, 4461, 4463, 4465, 4467, 4469, 4471, 4473, 4475, 4477, 4479, 4481, 
+    4483, 4485, 4487, 4489, 4491, 4493, 4495, 4497, 4499, 4501, 4503, 4505, 
+    4507, 4509, 4511, 4513, 4515, 4517, 4519, 4521, 4523, 4525, 4527, 4529, 
+    4531, 4533, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4535, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4537, 0, 4539, 4541, 4543, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4545, 0, 4548, 0, 4551, 0, 
+    4554, 0, 4557, 0, 4560, 0, 4563, 0, 4566, 0, 4569, 0, 4572, 0, 4575, 0, 
+    4578, 0, 0, 4581, 0, 4584, 0, 4587, 0, 0, 0, 0, 0, 0, 4590, 4593, 0, 
+    4596, 4599, 0, 4602, 4605, 0, 4608, 4611, 0, 4614, 4617, 0, 0, 0, 0, 0, 
+    0, 4620, 0, 0, 0, 0, 0, 0, 4623, 4626, 0, 4629, 4632, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 4635, 0, 4638, 0, 4641, 0, 4644, 0, 4647, 0, 4650, 0, 
+    4653, 0, 4656, 0, 4659, 0, 4662, 0, 4665, 0, 4668, 0, 0, 4671, 0, 4674, 
+    0, 4677, 0, 0, 0, 0, 0, 0, 4680, 4683, 0, 4686, 4689, 0, 4692, 4695, 0, 
+    4698, 4701, 0, 4704, 4707, 0, 0, 0, 0, 0, 0, 4710, 0, 0, 4713, 4716, 
+    4719, 4722, 0, 0, 0, 4725, 4728, 0, 4731, 4733, 4735, 4737, 4739, 4741, 
+    4743, 4745, 4747, 4749, 4751, 4753, 4755, 4757, 4759, 4761, 4763, 4765, 
+    4767, 4769, 4771, 4773, 4775, 4777, 4779, 4781, 4783, 4785, 4787, 4789, 
+    4791, 4793, 4795, 4797, 4799, 4801, 4803, 4805, 4807, 4809, 4811, 4813, 
+    4815, 4817, 4819, 4821, 4823, 4825, 4827, 4829, 4831, 4833, 4835, 4837, 
+    4839, 4841, 4843, 4845, 4847, 4849, 4851, 4853, 4855, 4857, 4859, 4861, 
+    4863, 4865, 4867, 4869, 4871, 4873, 4875, 4877, 4879, 4881, 4883, 4885, 
+    4887, 4889, 4891, 4893, 4895, 4897, 4899, 4901, 4903, 4905, 4907, 4909, 
+    4911, 4913, 4915, 4917, 0, 0, 0, 4919, 4921, 4923, 4925, 4927, 4929, 
+    4931, 4933, 4935, 4937, 4939, 4941, 4943, 4945, 4947, 4951, 4955, 4959, 
+    4963, 4967, 4971, 4975, 4979, 4983, 4987, 4991, 4995, 4999, 5003, 5008, 
+    5013, 5018, 5023, 5028, 5033, 5038, 5043, 5048, 5053, 5058, 5063, 5068, 
+    5073, 5078, 5086, 0, 5093, 5097, 5101, 5105, 5109, 5113, 5117, 5121, 
+    5125, 5129, 5133, 5137, 5141, 5145, 5149, 5153, 5157, 5161, 5165, 5169, 
+    5173, 5177, 5181, 5185, 5189, 5193, 5197, 5201, 5205, 5209, 5213, 5217, 
+    5221, 5225, 5229, 5233, 5237, 5239, 5241, 5243, 0, 0, 0, 0, 0, 0, 0, 0, 
+    5245, 5249, 5252, 5255, 5258, 5261, 5264, 5267, 5270, 5273, 5276, 5279, 
+    5282, 5285, 5288, 5291, 5294, 5296, 5298, 5300, 5302, 5304, 5306, 5308, 
+    5310, 5312, 5314, 5316, 5318, 5320, 5322, 5325, 5328, 5331, 5334, 5337, 
+    5340, 5343, 5346, 5349, 5352, 5355, 5358, 5361, 5364, 5370, 5375, 0, 
+    5378, 5380, 5382, 5384, 5386, 5388, 5390, 5392, 5394, 5396, 5398, 5400, 
+    5402, 5404, 5406, 5408, 5410, 5412, 5414, 5416, 5418, 5420, 5422, 5424, 
+    5426, 5428, 5430, 5432, 5434, 5436, 5438, 5440, 5442, 5444, 5446, 5448, 
+    5450, 5452, 5454, 5456, 5458, 5460, 5462, 5464, 5466, 5468, 5470, 5472, 
+    5474, 5476, 5479, 5482, 5485, 5488, 5491, 5494, 5497, 5500, 5503, 5506, 
+    5509, 5512, 5515, 5518, 5521, 5524, 5527, 5530, 5533, 5536, 5539, 5542, 
+    5545, 5548, 5552, 5556, 5560, 5563, 5567, 5570, 5574, 5576, 5578, 5580, 
+    5582, 5584, 5586, 5588, 5590, 5592, 5594, 5596, 5598, 5600, 5602, 5604, 
+    5606, 5608, 5610, 5612, 5614, 5616, 5618, 5620, 5622, 5624, 5626, 5628, 
+    5630, 5632, 5634, 5636, 5638, 5640, 5642, 5644, 5646, 5648, 5650, 5652, 
+    5654, 5656, 5658, 5660, 5662, 5664, 5666, 0, 5668, 5673, 5678, 5683, 
+    5687, 5692, 5696, 5700, 5706, 5711, 5715, 5719, 5723, 5728, 5733, 5737, 
+    5741, 5744, 5748, 5753, 5758, 5761, 5767, 5774, 5780, 5784, 5790, 5796, 
+    5801, 5805, 5809, 5813, 5818, 5824, 5829, 5833, 5837, 5841, 5844, 5847, 
+    5850, 5853, 5857, 5861, 5867, 5871, 5876, 5882, 5886, 5889, 5892, 5898, 
+    5903, 5909, 5913, 5919, 5922, 5926, 5930, 5934, 5938, 5942, 5947, 5951, 
+    5954, 5958, 5962, 5966, 5971, 5975, 5979, 5983, 5989, 5994, 5997, 6003, 
+    6006, 6011, 6016, 6020, 6024, 6028, 6033, 6036, 6040, 6045, 6048, 6054, 
+    6058, 6061, 6064, 6067, 6070, 6073, 6076, 6079, 6082, 6085, 6088, 6092, 
+    6096, 6100, 6104, 6108, 6112, 6116, 6120, 6124, 6128, 6132, 6136, 6140, 
+    6144, 6148, 6152, 6155, 6158, 6162, 6165, 6168, 6171, 6175, 6179, 6182, 
+    6185, 6188, 6191, 6194, 6199, 6202, 6205, 6208, 6211, 6214, 6217, 6220, 
+    6223, 6227, 6232, 6235, 6238, 6241, 6244, 6247, 6250, 6253, 6257, 6261, 
+    6265, 6269, 6272, 6275, 6278, 6281, 6284, 6287, 6290, 6293, 6296, 6299, 
+    6303, 6307, 6310, 6314, 6318, 6322, 6325, 6329, 6333, 6338, 6341, 6345, 
+    6349, 6353, 6357, 6363, 6370, 6373, 6376, 6379, 6382, 6385, 6388, 6391, 
+    6394, 6397, 6400, 6403, 6406, 6409, 6412, 6415, 6418, 6421, 6424, 6429, 
+    6432, 6435, 6438, 6443, 6447, 6450, 6453, 6456, 6459, 6462, 6465, 6468, 
+    6471, 6474, 6477, 6481, 6484, 6487, 6491, 6495, 6498, 6503, 6507, 6510, 
+    6513, 6516, 6519, 6523, 6527, 6530, 6533, 6536, 6539, 6542, 6545, 6548, 
+    6551, 6554, 6558, 6562, 6566, 6570, 6574, 6578, 6582, 6586, 6590, 6594, 
+    6598, 6602, 6606, 6610, 6614, 6618, 6622, 6626, 6630, 6634, 6638, 6642, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6646, 6648, 0, 0, 6650, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6652, 6654, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6656, 6658, 6660, 
+    6662, 6664, 6666, 6668, 6670, 6672, 6674, 6676, 6678, 6680, 6682, 6684, 
+    6686, 6688, 6690, 6692, 6694, 6696, 6698, 6700, 6702, 6704, 6706, 6708, 
+    6710, 6712, 6714, 6716, 6718, 6720, 6722, 6724, 6726, 6728, 6730, 6732, 
+    6734, 6736, 6738, 6740, 6742, 6744, 6746, 6748, 6750, 6752, 6754, 6756, 
+    6758, 6760, 6762, 6764, 6766, 6768, 6770, 6772, 6774, 6776, 6778, 6780, 
+    6782, 6784, 6786, 6788, 6790, 6792, 6794, 6796, 6798, 6800, 6802, 6804, 
+    6806, 6808, 6810, 6812, 6814, 6816, 6818, 6820, 6822, 6824, 6826, 6828, 
+    6830, 6832, 6834, 6836, 6838, 6840, 6842, 6844, 6846, 6848, 6850, 6852, 
+    6854, 6856, 6858, 6860, 6862, 6864, 6866, 6868, 6870, 6872, 6874, 6876, 
+    6878, 6880, 6882, 6884, 6886, 6888, 6890, 6892, 6894, 6896, 6898, 6900, 
+    6902, 6904, 6906, 6908, 6910, 6912, 6914, 6916, 6918, 6920, 6922, 6924, 
+    6926, 6928, 6930, 6932, 6934, 6936, 6938, 6940, 6942, 6944, 6946, 6948, 
+    6950, 6952, 6954, 6956, 6958, 6960, 6962, 6964, 6966, 6968, 6970, 6972, 
+    6974, 6976, 6978, 6980, 6982, 6984, 6986, 6988, 6990, 6992, 6994, 6996, 
+    6998, 7000, 7002, 7004, 7006, 7008, 7010, 7012, 7014, 7016, 7018, 7020, 
+    7022, 7024, 7026, 7028, 7030, 7032, 7034, 7036, 7038, 7040, 7042, 7044, 
+    7046, 7048, 7050, 7052, 7054, 7056, 7058, 7060, 7062, 7064, 7066, 7068, 
+    7070, 7072, 7074, 7076, 7078, 7080, 7082, 7084, 7086, 7088, 7090, 7092, 
+    7094, 7096, 7098, 7100, 7102, 7104, 7106, 7108, 7110, 7112, 7114, 7116, 
+    7118, 7120, 7122, 7124, 7126, 7128, 7130, 7132, 7134, 7136, 7138, 7140, 
+    7142, 7144, 7146, 7148, 7150, 7152, 7154, 7156, 7158, 7160, 7162, 7164, 
+    7166, 7168, 7170, 7172, 7174, 7176, 7178, 7180, 7182, 7184, 7186, 7188, 
+    7190, 7192, 7194, 7196, 7198, 7200, 7202, 0, 0, 7204, 0, 7206, 0, 0, 
+    7208, 7210, 7212, 7214, 7216, 7218, 7220, 7222, 7224, 7226, 0, 7228, 0, 
+    7230, 0, 0, 7232, 7234, 0, 0, 0, 7236, 7238, 7240, 7242, 7244, 7246, 
+    7248, 7250, 7252, 7254, 7256, 7258, 7260, 7262, 7264, 7266, 7268, 7270, 
+    7272, 7274, 7276, 7278, 7280, 7282, 7284, 7286, 7288, 7290, 7292, 7294, 
+    7296, 7298, 7300, 7302, 7304, 7306, 7308, 7310, 7312, 7314, 7316, 7318, 
+    7320, 7322, 7324, 7326, 7328, 7330, 7332, 7334, 7336, 7338, 7340, 7342, 
+    7344, 7346, 7348, 7350, 7352, 7354, 7356, 7358, 7360, 7362, 7364, 7366, 
+    7368, 7371, 0, 0, 7373, 7375, 7377, 7379, 7381, 7383, 7385, 7387, 7389, 
+    7391, 7393, 7395, 7397, 7399, 7401, 7403, 7405, 7407, 7409, 7411, 7413, 
+    7415, 7417, 7419, 7421, 7423, 7425, 7427, 7429, 7431, 7433, 7435, 7437, 
+    7439, 7441, 7443, 7445, 7447, 7449, 7451, 7453, 7455, 7457, 7459, 7461, 
+    7463, 7465, 7467, 7469, 7471, 7473, 7475, 7477, 7479, 7481, 7483, 7485, 
+    7487, 7489, 7491, 7493, 7495, 7497, 7499, 7501, 7503, 7505, 7507, 7509, 
+    7511, 7513, 7515, 7517, 7519, 7521, 7523, 7525, 7527, 7529, 7531, 7533, 
+    7535, 7537, 7539, 7541, 7543, 7545, 7547, 7549, 7551, 7553, 7555, 7557, 
+    7559, 7561, 7563, 7566, 7569, 7572, 7574, 7576, 7578, 7581, 7584, 7587, 
+    7589, 0, 0, 0, 0, 0, 0, 7591, 7594, 7597, 7600, 7604, 7608, 7611, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7614, 7617, 7620, 7623, 7626, 0, 0, 0, 0, 
+    0, 7629, 0, 7632, 7635, 7637, 7639, 7641, 7643, 7645, 7647, 7649, 7651, 
+    7653, 7655, 7658, 7661, 7664, 7667, 7670, 7673, 7676, 7679, 7682, 7685, 
+    7688, 7691, 0, 7694, 7697, 7700, 7703, 7706, 0, 7709, 0, 7712, 7715, 0, 
+    7718, 7721, 0, 7724, 7727, 7730, 7733, 7736, 7739, 7742, 7745, 7748, 
+    7751, 7754, 7756, 7758, 7760, 7762, 7764, 7766, 7768, 7770, 7772, 7774, 
+    7776, 7778, 7780, 7782, 7784, 7786, 7788, 7790, 7792, 7794, 7796, 7798, 
+    7800, 7802, 7804, 7806, 7808, 7810, 7812, 7814, 7816, 7818, 7820, 7822, 
+    7824, 7826, 7828, 7830, 7832, 7834, 7836, 7838, 7840, 7842, 7844, 7846, 
+    7848, 7850, 7852, 7854, 7856, 7858, 7860, 7862, 7864, 7866, 7868, 7870, 
+    7872, 7874, 7876, 7878, 7880, 7882, 7884, 7886, 7888, 7890, 7892, 7894, 
+    7896, 7898, 7900, 7902, 7904, 7906, 7908, 7910, 7912, 7914, 7916, 7918, 
+    7920, 7922, 7924, 7926, 7928, 7930, 7932, 7934, 7936, 7938, 7940, 7942, 
+    7944, 7946, 7948, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    7950, 7952, 7954, 7956, 7958, 7960, 7962, 7964, 7966, 7968, 7970, 7972, 
+    7974, 7976, 7978, 7980, 7982, 7984, 7986, 7988, 7990, 7992, 7994, 7996, 
+    7999, 8002, 8005, 8008, 8011, 8014, 8017, 8020, 8023, 8026, 8029, 8032, 
+    8035, 8038, 8041, 8044, 8047, 8050, 8052, 8054, 8056, 8058, 8061, 8064, 
+    8067, 8070, 8073, 8076, 8079, 8082, 8085, 8088, 8091, 8094, 8097, 8100, 
+    8103, 8106, 8109, 8112, 8115, 8118, 8121, 8124, 8127, 8130, 8133, 8136, 
+    8139, 8142, 8145, 8148, 8151, 8154, 8157, 8160, 8163, 8166, 8169, 8172, 
+    8175, 8178, 8181, 8184, 8187, 8190, 8193, 8196, 8199, 8202, 8205, 8208, 
+    8211, 8214, 8217, 8220, 8223, 8226, 8229, 8232, 8235, 8238, 8241, 8244, 
+    8247, 8250, 8253, 8256, 8259, 8262, 8265, 8268, 8271, 8274, 8277, 8280, 
+    8283, 8286, 8289, 8292, 8295, 8298, 8301, 8304, 8307, 8310, 8313, 8316, 
+    8319, 8322, 8325, 8328, 8331, 8334, 8337, 8340, 8344, 8348, 8352, 8356, 
+    8360, 8364, 8367, 8370, 8373, 8376, 8379, 8382, 8385, 8388, 8391, 8394, 
+    8397, 8400, 8403, 8406, 8409, 8412, 8415, 8418, 8421, 8424, 8427, 8430, 
+    8433, 8436, 8439, 8442, 8445, 8448, 8451, 8454, 8457, 8460, 8463, 8466, 
+    8469, 8472, 8475, 8478, 8481, 8484, 8487, 8490, 8493, 8496, 8499, 8502, 
+    8505, 8508, 8511, 8514, 8517, 8520, 8523, 8526, 8529, 8532, 8535, 8538, 
+    8541, 8544, 8547, 8550, 8553, 8556, 8559, 8562, 8565, 8568, 8571, 8574, 
+    8577, 8580, 8583, 8586, 8589, 8592, 8595, 8598, 8601, 8604, 8607, 8610, 
+    8613, 8616, 8619, 8622, 8625, 8628, 8631, 8634, 8637, 8640, 8643, 8646, 
+    8649, 8652, 8655, 8658, 8661, 8664, 8667, 8670, 8673, 8676, 8679, 8682, 
+    8685, 8688, 8691, 8694, 8697, 8700, 8703, 8706, 8709, 8712, 8715, 8718, 
+    8721, 8724, 8727, 8730, 8733, 8736, 8739, 8742, 8745, 8748, 8751, 8754, 
+    8757, 8760, 8763, 8766, 8769, 8772, 8775, 8778, 8781, 8784, 8787, 8790, 
+    8794, 8798, 8802, 8805, 8808, 8811, 8814, 8817, 8820, 8823, 8826, 8829, 
+    8832, 8835, 8838, 8841, 8844, 8847, 8850, 8853, 8856, 8859, 8862, 8865, 
+    8868, 8871, 8874, 8877, 8880, 8883, 8886, 8889, 8892, 8895, 8898, 8901, 
+    8904, 8907, 8910, 8913, 8916, 8919, 8922, 8925, 8928, 8931, 8934, 8937, 
+    8940, 8943, 8946, 8949, 8952, 8955, 8958, 8961, 8964, 8967, 8970, 8973, 
+    8976, 8979, 8982, 8985, 8988, 8991, 8994, 8997, 9000, 9003, 9006, 9009, 
+    9012, 9015, 9018, 0, 0, 9021, 9025, 9029, 9033, 9037, 9041, 9045, 9049, 
+    9053, 9057, 9061, 9065, 9069, 9073, 9077, 9081, 9085, 9089, 9093, 9097, 
+    9101, 9105, 9109, 9113, 9117, 9121, 9125, 9129, 9133, 9137, 9141, 9145, 
+    9149, 9153, 9157, 9161, 9165, 9169, 9173, 9177, 9181, 9185, 9189, 9193, 
+    9197, 9201, 9205, 9209, 9213, 9217, 9221, 9225, 9229, 9233, 9237, 9241, 
+    9245, 9249, 9253, 9257, 9261, 9265, 9269, 9273, 0, 0, 9277, 9281, 9285, 
+    9289, 9293, 9297, 9301, 9305, 9309, 9313, 9317, 9321, 9325, 9329, 9333, 
+    9337, 9341, 9345, 9349, 9353, 9357, 9361, 9365, 9369, 9373, 9377, 9381, 
+    9385, 9389, 9393, 9397, 9401, 9405, 9409, 9413, 9417, 9421, 9425, 9429, 
+    9433, 9437, 9441, 9445, 9449, 9453, 9457, 9461, 9465, 9469, 9473, 9477, 
+    9481, 9485, 9489, 0, 0, 0, 0, 0, 0, 0, 0, 9493, 9497, 9501, 9506, 9511, 
+    9516, 9521, 9526, 9531, 9536, 9540, 9559, 9568, 0, 0, 0, 9573, 9575, 
+    9577, 9579, 9581, 9583, 9585, 9587, 9589, 9591, 0, 0, 0, 0, 0, 0, 9593, 
+    9595, 9597, 9599, 9601, 9603, 9605, 9607, 9609, 9611, 9613, 9615, 9617, 
+    9619, 9621, 9623, 9625, 9627, 9629, 9631, 9633, 0, 0, 9635, 9637, 9639, 
+    9641, 9643, 9645, 9647, 9649, 9651, 9653, 9655, 9657, 0, 9659, 9661, 
+    9663, 9665, 9667, 9669, 9671, 9673, 9675, 9677, 9679, 9681, 9683, 9685, 
+    9687, 9689, 9691, 9693, 9695, 0, 9697, 9699, 9701, 9703, 0, 0, 0, 0, 
+    9705, 9708, 9711, 0, 9714, 0, 9717, 9720, 9723, 9726, 9729, 9732, 9735, 
+    9738, 9741, 9744, 9747, 9749, 9751, 9753, 9755, 9757, 9759, 9761, 9763, 
+    9765, 9767, 9769, 9771, 9773, 9775, 9777, 9779, 9781, 9783, 9785, 9787, 
+    9789, 9791, 9793, 9795, 9797, 9799, 9801, 9803, 9805, 9807, 9809, 9811, 
+    9813, 9815, 9817, 9819, 9821, 9823, 9825, 9827, 9829, 9831, 9833, 9835, 
+    9837, 9839, 9841, 9843, 9845, 9847, 9849, 9851, 9853, 9855, 9857, 9859, 
+    9861, 9863, 9865, 9867, 9869, 9871, 9873, 9875, 9877, 9879, 9881, 9883, 
+    9885, 9887, 9889, 9891, 9893, 9895, 9897, 9899, 9901, 9903, 9905, 9907, 
+    9909, 9911, 9913, 9915, 9917, 9919, 9921, 9923, 9925, 9927, 9929, 9931, 
+    9933, 9935, 9937, 9939, 9941, 9943, 9945, 9947, 9949, 9951, 9953, 9955, 
+    9957, 9959, 9961, 9963, 9965, 9967, 9969, 9971, 9973, 9975, 9977, 9979, 
+    9981, 9984, 9987, 9990, 9993, 9996, 9999, 10002, 0, 0, 0, 0, 10005, 
+    10007, 10009, 10011, 10013, 10015, 10017, 10019, 10021, 10023, 10025, 
+    10027, 10029, 10031, 10033, 10035, 10037, 10039, 10041, 10043, 10045, 
+    10047, 10049, 10051, 10053, 10055, 10057, 10059, 10061, 10063, 10065, 
+    10067, 10069, 10071, 10073, 10075, 10077, 10079, 10081, 10083, 10085, 
+    10087, 10089, 10091, 10093, 10095, 10097, 10099, 10101, 10103, 10105, 
+    10107, 10109, 10111, 10113, 10115, 10117, 10119, 10121, 10123, 10125, 
+    10127, 10129, 10131, 10133, 10135, 10137, 10139, 10141, 10143, 10145, 
+    10147, 10149, 10151, 10153, 10155, 10157, 10159, 10161, 10163, 10165, 
+    10167, 10169, 10171, 10173, 10175, 10177, 10179, 10181, 10183, 10185, 
+    10187, 10189, 10191, 10193, 10195, 10197, 10199, 10201, 10203, 10205, 
+    10207, 10209, 10211, 10213, 10215, 10217, 10219, 10221, 10223, 10225, 
+    10227, 10229, 10231, 10233, 10235, 10237, 10239, 10241, 10243, 10245, 
+    10247, 10249, 10251, 10253, 10255, 10257, 10259, 10261, 10263, 10265, 
+    10267, 10269, 10271, 10273, 10275, 10277, 10279, 10281, 10283, 10285, 
+    10287, 10289, 10291, 10293, 10295, 10297, 10299, 10301, 10303, 10305, 
+    10307, 10309, 10311, 10313, 10315, 10317, 10319, 10321, 10323, 10325, 
+    10327, 10329, 10331, 10333, 10335, 10337, 10339, 10341, 10343, 10345, 
+    10347, 10349, 10351, 10353, 10355, 10357, 10359, 10361, 10363, 10365, 
+    10367, 10369, 10371, 10373, 10375, 10377, 10379, 10381, 10383, 0, 0, 0, 
+    10385, 10387, 10389, 10391, 10393, 10395, 0, 0, 10397, 10399, 10401, 
+    10403, 10405, 10407, 0, 0, 10409, 10411, 10413, 10415, 10417, 10419, 0, 
+    0, 10421, 10423, 10425, 0, 0, 0, 10427, 10429, 10431, 10433, 10435, 
+    10437, 10439, 0, 10441, 10443, 10445, 10447, 10449, 10451, 10453, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 10455, 0, 10460, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 10465, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    10470, 10475, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10480, 10485, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10490, 10495, 0, 10500, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 10505, 10510, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 0, 0, 10515, 10520, 10525, 10530, 10535, 10540, 10545, 0, 0, 0, 0, 0, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10550, 10555, 10560, 
+    10565, 10570, 10575, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10580, 
+    10582, 10584, 10586, 10588, 10590, 10592, 10594, 10596, 10598, 10600, 
+    10602, 10604, 10606, 10608, 10610, 10612, 10614, 10616, 10618, 10620, 
+    10622, 10624, 10626, 10628, 10630, 10632, 10634, 10636, 10638, 10640, 
+    10642, 10644, 10646, 10648, 10650, 10652, 10654, 10656, 10658, 10660, 
+    10662, 10664, 10666, 10668, 10670, 10672, 10674, 10676, 10678, 10680, 
+    10682, 10684, 10686, 10688, 10690, 10692, 10694, 10696, 10698, 10700, 
+    10702, 10704, 10706, 10708, 10710, 10712, 10714, 10716, 10718, 10720, 
+    10722, 10724, 10726, 10728, 10730, 10732, 10734, 10736, 10738, 10740, 
+    10742, 10744, 10746, 10748, 0, 10750, 10752, 10754, 10756, 10758, 10760, 
+    10762, 10764, 10766, 10768, 10770, 10772, 10774, 10776, 10778, 10780, 
+    10782, 10784, 10786, 10788, 10790, 10792, 10794, 10796, 10798, 10800, 
+    10802, 10804, 10806, 10808, 10810, 10812, 10814, 10816, 10818, 10820, 
+    10822, 10824, 10826, 10828, 10830, 10832, 10834, 10836, 10838, 10840, 
+    10842, 10844, 10846, 10848, 10850, 10852, 10854, 10856, 10858, 10860, 
+    10862, 10864, 10866, 10868, 10870, 10872, 10874, 10876, 10878, 10880, 
+    10882, 10884, 10886, 10888, 10890, 0, 10892, 10894, 0, 0, 10896, 0, 0, 
+    10898, 10900, 0, 0, 10902, 10904, 10906, 10908, 0, 10910, 10912, 10914, 
+    10916, 10918, 10920, 10922, 10924, 10926, 10928, 10930, 10932, 0, 10934, 
+    0, 10936, 10938, 10940, 10942, 10944, 10946, 10948, 0, 10950, 10952, 
+    10954, 10956, 10958, 10960, 10962, 10964, 10966, 10968, 10970, 10972, 
+    10974, 10976, 10978, 10980, 10982, 10984, 10986, 10988, 10990, 10992, 
+    10994, 10996, 10998, 11000, 11002, 11004, 11006, 11008, 11010, 11012, 
+    11014, 11016, 11018, 11020, 11022, 11024, 11026, 11028, 11030, 11032, 
+    11034, 11036, 11038, 11040, 11042, 11044, 11046, 11048, 11050, 11052, 
+    11054, 11056, 11058, 11060, 11062, 11064, 11066, 11068, 11070, 11072, 
+    11074, 11076, 11078, 0, 11080, 11082, 11084, 11086, 0, 0, 11088, 11090, 
+    11092, 11094, 11096, 11098, 11100, 11102, 0, 11104, 11106, 11108, 11110, 
+    11112, 11114, 11116, 0, 11118, 11120, 11122, 11124, 11126, 11128, 11130, 
+    11132, 11134, 11136, 11138, 11140, 11142, 11144, 11146, 11148, 11150, 
+    11152, 11154, 11156, 11158, 11160, 11162, 11164, 11166, 11168, 11170, 
+    11172, 0, 11174, 11176, 11178, 11180, 0, 11182, 11184, 11186, 11188, 
+    11190, 0, 11192, 0, 0, 0, 11194, 11196, 11198, 11200, 11202, 11204, 
+    11206, 0, 11208, 11210, 11212, 11214, 11216, 11218, 11220, 11222, 11224, 
+    11226, 11228, 11230, 11232, 11234, 11236, 11238, 11240, 11242, 11244, 
+    11246, 11248, 11250, 11252, 11254, 11256, 11258, 11260, 11262, 11264, 
+    11266, 11268, 11270, 11272, 11274, 11276, 11278, 11280, 11282, 11284, 
+    11286, 11288, 11290, 11292, 11294, 11296, 11298, 11300, 11302, 11304, 
+    11306, 11308, 11310, 11312, 11314, 11316, 11318, 11320, 11322, 11324, 
+    11326, 11328, 11330, 11332, 11334, 11336, 11338, 11340, 11342, 11344, 
+    11346, 11348, 11350, 11352, 11354, 11356, 11358, 11360, 11362, 11364, 
+    11366, 11368, 11370, 11372, 11374, 11376, 11378, 11380, 11382, 11384, 
+    11386, 11388, 11390, 11392, 11394, 11396, 11398, 11400, 11402, 11404, 
+    11406, 11408, 11410, 11412, 11414, 11416, 11418, 11420, 11422, 11424, 
+    11426, 11428, 11430, 11432, 11434, 11436, 11438, 11440, 11442, 11444, 
+    11446, 11448, 11450, 11452, 11454, 11456, 11458, 11460, 11462, 11464, 
+    11466, 11468, 11470, 11472, 11474, 11476, 11478, 11480, 11482, 11484, 
+    11486, 11488, 11490, 11492, 11494, 11496, 11498, 11500, 11502, 11504, 
+    11506, 11508, 11510, 11512, 11514, 11516, 11518, 11520, 11522, 11524, 
+    11526, 11528, 11530, 11532, 11534, 11536, 11538, 11540, 11542, 11544, 
+    11546, 11548, 11550, 11552, 11554, 11556, 11558, 11560, 11562, 11564, 
+    11566, 11568, 11570, 11572, 11574, 11576, 11578, 11580, 11582, 11584, 
+    11586, 11588, 11590, 11592, 11594, 11596, 11598, 11600, 11602, 11604, 
+    11606, 11608, 11610, 11612, 11614, 11616, 11618, 11620, 11622, 11624, 
+    11626, 11628, 11630, 11632, 11634, 11636, 11638, 11640, 11642, 11644, 
+    11646, 11648, 11650, 11652, 11654, 11656, 11658, 11660, 11662, 11664, 
+    11666, 11668, 11670, 11672, 11674, 11676, 11678, 11680, 11682, 11684, 
+    11686, 11688, 11690, 11692, 11694, 11696, 11698, 11700, 11702, 11704, 
+    11706, 11708, 11710, 11712, 11714, 11716, 11718, 11720, 11722, 11724, 
+    11726, 11728, 11730, 11732, 11734, 11736, 11738, 11740, 11742, 11744, 
+    11746, 11748, 11750, 11752, 11754, 11756, 11758, 11760, 11762, 11764, 
+    11766, 11768, 11770, 11772, 11774, 11776, 11778, 11780, 11782, 11784, 
+    11786, 11788, 11790, 11792, 11794, 11796, 11798, 11800, 11802, 11804, 
+    11806, 11808, 11810, 11812, 11814, 11816, 11818, 11820, 11822, 11824, 
+    11826, 11828, 11830, 11832, 11834, 11836, 11838, 11840, 11842, 11844, 
+    11846, 11848, 11850, 11852, 11854, 11856, 11858, 11860, 11862, 11864, 
+    11866, 11868, 11870, 11872, 11874, 11876, 11878, 11880, 11882, 11884, 
+    11886, 0, 0, 11888, 11890, 11892, 11894, 11896, 11898, 11900, 11902, 
+    11904, 11906, 11908, 11910, 11912, 11914, 11916, 11918, 11920, 11922, 
+    11924, 11926, 11928, 11930, 11932, 11934, 11936, 11938, 11940, 11942, 
+    11944, 11946, 11948, 11950, 11952, 11954, 11956, 11958, 11960, 11962, 
+    11964, 11966, 11968, 11970, 11972, 11974, 11976, 11978, 11980, 11982, 
+    11984, 11986, 11988, 11990, 11992, 11994, 11996, 11998, 12000, 12002, 
+    12004, 12006, 12008, 12010, 12012, 12014, 12016, 12018, 12020, 12022, 
+    12024, 12026, 12028, 12030, 12032, 12034, 12036, 12038, 12040, 12042, 
+    12044, 12046, 12048, 12050, 12052, 12054, 12056, 12058, 12060, 12062, 
+    12064, 12066, 12068, 12070, 12072, 12074, 12076, 12078, 12080, 12082, 
+    12084, 12086, 12088, 12090, 12092, 12094, 12096, 12098, 12100, 12102, 
+    12104, 12106, 12108, 12110, 12112, 12114, 12116, 12118, 12120, 12122, 
+    12124, 12126, 12128, 12130, 12132, 12134, 12136, 12138, 12140, 12142, 
+    12144, 12146, 12148, 12150, 12152, 12154, 12156, 12158, 12160, 12162, 
+    12164, 12166, 12168, 12170, 12172, 12174, 12176, 12178, 12180, 12182, 
+    12184, 12186, 12188, 12190, 12192, 12194, 12196, 12198, 12200, 12202, 
+    12204, 12206, 12208, 12210, 12212, 12214, 12216, 12218, 12220, 12222, 
+    12224, 12226, 12228, 12230, 12232, 12234, 12236, 12238, 12240, 12242, 
+    12244, 12246, 12248, 12250, 12252, 12254, 12256, 12258, 12260, 12262, 
+    12264, 12266, 12268, 12270, 12272, 12274, 12276, 12278, 12280, 12282, 
+    12284, 12286, 12288, 12290, 12292, 12294, 12296, 12298, 12300, 12302, 
+    12304, 12306, 12308, 12310, 12312, 12314, 12316, 12318, 12320, 12322, 
+    12324, 12326, 12328, 12330, 12332, 12334, 12336, 12338, 12340, 12342, 
+    12344, 12346, 12348, 12350, 12352, 12354, 12356, 12358, 12360, 12362, 
+    12364, 12366, 12368, 12370, 12372, 12374, 12376, 12378, 12380, 12382, 
+    12384, 12386, 12388, 12390, 12392, 12394, 12396, 12398, 12400, 12402, 
+    12404, 12406, 12408, 12410, 12412, 12414, 12416, 12418, 12420, 12422, 
+    12424, 12426, 12428, 12430, 12432, 12434, 12436, 12438, 12440, 12442, 
+    12444, 12446, 12448, 12450, 12452, 12454, 12456, 12458, 12460, 12462, 
+    12464, 12466, 12468, 12470, 0, 0, 12472, 12474, 12476, 12478, 12480, 
+    12482, 12484, 12486, 12488, 12490, 12492, 12494, 12496, 12498, 12500, 
+    12502, 12504, 12506, 12508, 12510, 12512, 12514, 12516, 12518, 12520, 
+    12522, 12524, 12526, 12528, 12530, 12532, 12534, 12536, 12538, 12540, 
+    12542, 12544, 12546, 12548, 12550, 12552, 12554, 12556, 12558, 12560, 
+    12562, 12564, 12566, 12568, 12570, 12572, 12574, 12576, 12578, 0, 12580, 
+    12582, 12584, 12586, 12588, 12590, 12592, 12594, 12596, 12598, 12600, 
+    12602, 12604, 12606, 12608, 12610, 12612, 12614, 12616, 12618, 12620, 
+    12622, 12624, 12626, 12628, 12630, 12632, 0, 12634, 12636, 0, 12638, 0, 
+    0, 12640, 0, 12642, 12644, 12646, 12648, 12650, 12652, 12654, 12656, 
+    12658, 12660, 0, 12662, 12664, 12666, 12668, 0, 12670, 0, 12672, 0, 0, 0, 
+    0, 0, 0, 12674, 0, 0, 0, 0, 12676, 0, 12678, 0, 12680, 0, 12682, 12684, 
+    12686, 0, 12688, 12690, 0, 12692, 0, 0, 12694, 0, 12696, 0, 12698, 0, 
+    12700, 0, 12702, 0, 12704, 12706, 0, 12708, 0, 0, 12710, 12712, 12714, 
+    12716, 0, 12718, 12720, 12722, 12724, 12726, 12728, 12730, 0, 12732, 
+    12734, 12736, 12738, 0, 12740, 12742, 12744, 12746, 0, 12748, 0, 12750, 
+    12752, 12754, 12756, 12758, 12760, 12762, 12764, 12766, 12768, 0, 12770, 
+    12772, 12774, 12776, 12778, 12780, 12782, 12784, 12786, 12788, 12790, 
+    12792, 12794, 12796, 12798, 12800, 12802, 0, 0, 0, 0, 0, 12804, 12806, 
+    12808, 0, 12810, 12812, 12814, 12816, 12818, 0, 12820, 12822, 12824, 
+    12826, 12828, 12830, 12832, 12834, 12836, 12838, 12840, 12842, 12844, 
+    12846, 12848, 12850, 12852, 0, 0, 0, 0, 12854, 12857, 12860, 12863, 
+    12866, 12869, 12872, 12875, 12878, 12881, 12884, 0, 0, 0, 0, 0, 12887, 
+    12891, 12895, 12899, 12903, 12907, 12911, 12915, 12919, 12923, 12927, 
+    12931, 12935, 12939, 12943, 12947, 12951, 12955, 12959, 12963, 12967, 
+    12971, 12975, 12979, 12983, 12987, 12991, 12995, 12997, 12999, 13002, 0, 
+    13005, 13007, 13009, 13011, 13013, 13015, 13017, 13019, 13021, 13023, 
+    13025, 13027, 13029, 13031, 13033, 13035, 13037, 13039, 13041, 13043, 
+    13045, 13047, 13049, 13051, 13053, 13055, 13057, 13060, 13063, 13066, 
+    13069, 13073, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13076, 13079, 0, 0, 0, 0, 
+    13082, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13085, 13088, 13091, 
+    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13093, 13095, 13097, 13099, 13101, 
+    13103, 13105, 13107, 13109, 13111, 13113, 13115, 13117, 13119, 13121, 
+    13123, 13125, 13127, 13129, 13131, 13133, 13135, 13137, 13139, 13141, 
+    13143, 13145, 13147, 13149, 13151, 13153, 13155, 13157, 13159, 13161, 
+    13163, 13165, 13167, 13169, 13171, 13173, 13175, 13177, 0, 0, 0, 0, 0, 
+    13179, 13183, 13187, 13191, 13195, 13199, 13203, 13207, 13211, 0, 0, 0, 
+    0, 0, 0, 0, 13215, 13217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    13219, 13221, 13223, 13225, 13228, 13230, 13232, 13234, 13236, 13238, 
+    13240, 13242, 13244, 13246, 13249, 13251, 13253, 13255, 13257, 13260, 
+    13262, 13264, 13266, 13269, 13271, 13273, 13275, 13277, 13279, 13282, 
+    13284, 13286, 13288, 13290, 13292, 13294, 13296, 13298, 13300, 13302, 
+    13304, 13306, 13308, 13310, 13312, 13314, 13316, 13318, 13320, 13322, 
+    13324, 13326, 13328, 13331, 13333, 13335, 13337, 13340, 13342, 13344, 
+    13346, 13348, 13350, 13352, 13354, 13356, 13358, 13360, 13362, 13364, 
+    13366, 13368, 13370, 13372, 13374, 13376, 13378, 13380, 13382, 13384, 
+    13386, 13388, 13390, 13392, 13394, 13396, 13398, 13400, 13402, 13404, 
+    13407, 13409, 13411, 13413, 13415, 13417, 13419, 13422, 13425, 13427, 
+    13429, 13431, 13433, 13435, 13437, 13439, 13441, 13443, 13445, 13448, 
+    13450, 13452, 13454, 13456, 13459, 13461, 13463, 13465, 13467, 13469, 
+    13471, 13473, 13475, 13477, 13480, 13482, 13485, 13487, 13489, 13491, 
+    13493, 13495, 13497, 13499, 13501, 13503, 13505, 13507, 13510, 13512, 
+    13514, 13516, 13518, 13520, 13523, 13525, 13528, 13531, 13533, 13535, 
+    13537, 13539, 13542, 13545, 13547, 13549, 13551, 13553, 13555, 13557, 
+    13559, 13561, 13563, 13565, 13567, 13570, 13572, 13574, 13576, 13578, 
+    13580, 13582, 13584, 13586, 13588, 13590, 13592, 13594, 13596, 13598, 
+    13600, 13602, 13604, 13606, 13608, 13611, 13613, 13615, 13617, 13619, 
+    13621, 13624, 13626, 13628, 13630, 13632, 13634, 13636, 13638, 13640, 
+    13642, 13644, 13646, 13649, 13651, 13653, 13655, 13657, 13659, 13661, 
+    13663, 13665, 13667, 13669, 13671, 13673, 13675, 13677, 13679, 13681, 
+    13683, 13685, 13688, 13690, 13692, 13694, 13696, 13698, 13701, 13703, 
+    13705, 13707, 13709, 13711, 13713, 13715, 13717, 13720, 13722, 13724, 
+    13726, 13729, 13731, 13733, 13735, 13737, 13739, 13741, 13744, 13747, 
+    13750, 13752, 13755, 13757, 13759, 13761, 13763, 13765, 13767, 13769, 
+    13771, 13773, 13775, 13778, 13780, 13782, 13784, 13786, 13788, 13790, 
+    13793, 13795, 13797, 13800, 13803, 13805, 13807, 13809, 13811, 13813, 
+    13815, 13817, 13819, 13821, 13824, 13826, 13829, 13831, 13834, 13836, 
+    13838, 13840, 13843, 13845, 13847, 13850, 13853, 13855, 13857, 13859, 
+    13861, 13863, 13865, 13867, 13869, 13871, 13873, 13875, 13877, 13879, 
+    13882, 13884, 13887, 13889, 13892, 13894, 13897, 13900, 13903, 13905, 
+    13907, 13909, 13912, 13915, 13918, 13921, 13923, 13925, 13927, 13929, 
+    13931, 13933, 13935, 13937, 13940, 13942, 13944, 13946, 13948, 13951, 
+    13953, 13956, 13959, 13961, 13963, 13965, 13967, 13969, 13971, 13974, 
+    13977, 13980, 13982, 13984, 13987, 13989, 13991, 13993, 13996, 13998, 
+    14000, 14002, 14004, 14006, 14009, 14011, 14013, 14015, 14017, 14019, 
+    14021, 14024, 14027, 14029, 14032, 14034, 14037, 14039, 14041, 14043, 
+    14046, 14049, 14051, 14054, 14056, 14059, 14061, 14063, 14065, 14067, 
+    14069, 14071, 14074, 14077, 14080, 14083, 14085, 14087, 14089, 14091, 
+    14093, 14095, 14097, 14099, 14101, 14103, 14105, 14107, 14110, 14112, 
+    14114, 14116, 14118, 14120, 14122, 14124, 14126, 14128, 14130, 14132, 
+    14134, 14137, 14140, 14143, 14145, 14147, 14149, 14151, 14154, 14156, 
+    14159, 14161, 14163, 14166, 14169, 14171, 14173, 14175, 14177, 14179, 
+    14181, 14183, 14185, 14187, 14189, 14191, 14193, 14195, 14197, 14199, 
+    14201, 14203, 14205, 14207, 14210, 14212, 14214, 14216, 14218, 14220, 
+    14223, 14226, 14228, 14230, 14232, 14234, 14236, 14238, 14241, 14243, 
+    14245, 14247, 14249, 14252, 14255, 14257, 14259, 14261, 14264, 14266, 
+    14268, 14271, 14274, 14276, 14278, 14280, 14283, 14285, 14287, 14289, 
+    14291, 14293, 14295, 14297, 14300, 14302, 14304, 14306, 14309, 14311, 
+    14313, 14315, 14317, 14320, 14323, 14325, 14327, 14329, 14332, 14334, 
+    14337, 14339, 14341, 14343, 14346, 14348, 14350, 14352, 14354, 14356, 
+    14358, 14360, 14363, 14365, 14367, 14369, 14371, 14373, 14375, 14378, 
+    14380, 14383, 14386, 14389, 14391, 14393, 14395, 14397, 14399, 14401, 
+    14403, 14405, 0, 0, 
+};
+
+/* NFC pairs */
+#define COMP_SHIFT1 2
+#define COMP_SHIFT2 1
+static const unsigned short comp_index0[] = {
+    0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 4, 
+    5, 6, 7, 0, 0, 0, 0, 8, 0, 9, 10, 0, 0, 0, 11, 12, 13, 14, 0, 0, 0, 0, 0, 
+    15, 16, 17, 0, 0, 0, 0, 18, 19, 20, 21, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 
+    23, 24, 25, 26, 0, 0, 0, 0, 27, 28, 29, 30, 0, 0, 0, 0, 31, 32, 33, 34, 
+    0, 0, 0, 0, 35, 0, 0, 0, 0, 0, 0, 36, 0, 37, 38, 39, 0, 0, 0, 40, 41, 42, 
+    43, 0, 0, 0, 0, 44, 45, 46, 0, 0, 0, 0, 0, 47, 48, 49, 50, 0, 0, 0, 51, 
+    52, 53, 54, 0, 0, 0, 0, 55, 56, 0, 0, 0, 0, 0, 0, 57, 58, 59, 60, 0, 0, 
+    0, 0, 61, 62, 63, 0, 0, 0, 0, 0, 64, 65, 66, 67, 0, 0, 0, 68, 69, 70, 71, 
+    0, 0, 0, 0, 72, 0, 73, 0, 0, 0, 0, 0, 74, 0, 75, 0, 0, 0, 0, 0, 76, 0, 0, 
+    0, 0, 0, 0, 77, 78, 79, 0, 0, 0, 0, 0, 80, 81, 82, 83, 0, 0, 0, 0, 84, 
+    85, 86, 0, 0, 0, 0, 0, 87, 88, 0, 89, 0, 0, 0, 90, 91, 0, 92, 0, 0, 0, 0, 
+    0, 93, 94, 95, 0, 0, 0, 0, 96, 97, 98, 99, 0, 0, 0, 0, 100, 0, 0, 0, 0, 
+    0, 0, 101, 102, 0, 103, 0, 0, 0, 0, 104, 105, 106, 107, 0, 0, 0, 0, 108, 
+    109, 110, 111, 0, 0, 0, 0, 112, 113, 0, 0, 0, 0, 0, 114, 115, 116, 117, 
+    0, 0, 0, 0, 118, 119, 120, 121, 0, 0, 0, 0, 122, 0, 123, 0, 0, 0, 0, 124, 
+    125, 126, 127, 128, 0, 0, 0, 129, 130, 131, 132, 0, 0, 0, 0, 133, 134, 0, 
+    0, 0, 0, 0, 0, 135, 136, 137, 138, 0, 0, 0, 139, 140, 141, 142, 0, 0, 0, 
+    0, 0, 143, 144, 145, 0, 0, 0, 0, 146, 147, 148, 149, 0, 0, 0, 0, 150, 0, 
+    151, 0, 0, 0, 0, 152, 153, 154, 0, 0, 0, 0, 0, 0, 155, 0, 0, 0, 0, 0, 0, 
+    156, 157, 158, 0, 0, 0, 0, 0, 159, 160, 161, 162, 0, 0, 0, 163, 0, 0, 0, 
+    164, 0, 0, 0, 165, 166, 0, 0, 0, 0, 0, 0, 167, 0, 0, 0, 0, 0, 0, 0, 168, 
+    0, 0, 0, 0, 0, 0, 169, 170, 0, 0, 0, 0, 0, 0, 171, 0, 0, 0, 0, 0, 0, 0, 
+    172, 173, 0, 0, 0, 0, 0, 0, 174, 0, 0, 0, 0, 0, 0, 175, 176, 0, 0, 0, 0, 
+    0, 0, 177, 178, 0, 0, 0, 0, 0, 0, 179, 0, 0, 0, 0, 0, 0, 0, 180, 0, 0, 0, 
+    0, 0, 0, 181, 182, 183, 0, 0, 0, 0, 0, 184, 185, 0, 0, 0, 0, 0, 0, 186, 
+    0, 0, 0, 0, 0, 0, 0, 187, 0, 0, 0, 0, 0, 0, 188, 189, 0, 0, 0, 0, 0, 0, 
+    190, 0, 0, 0, 0, 0, 0, 0, 191, 192, 0, 0, 0, 0, 0, 0, 193, 0, 0, 0, 0, 0, 
+    0, 194, 195, 0, 0, 0, 0, 0, 0, 196, 197, 0, 0, 0, 0, 0, 0, 198, 0, 0, 0, 
+    0, 0, 0, 0, 199, 0, 0, 0, 0, 0, 0, 200, 201, 202, 0, 0, 0, 0, 0, 203, 
+    204, 0, 0, 0, 0, 0, 0, 205, 206, 0, 0, 0, 0, 0, 0, 207, 0, 0, 0, 0, 0, 0, 
+    208, 0, 0, 0, 0, 0, 0, 0, 209, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 
+    0, 0, 211, 0, 0, 0, 0, 0, 0, 0, 212, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 0, 
+    0, 0, 0, 0, 214, 0, 0, 0, 0, 0, 0, 215, 0, 0, 0, 0, 0, 0, 216, 0, 0, 0, 
+    0, 0, 0, 0, 0, 217, 0, 0, 0, 0, 0, 0, 0, 218, 0, 0, 0, 0, 0, 0, 219, 0, 
+    0, 0, 0, 0, 0, 220, 221, 222, 0, 0, 0, 0, 0, 223, 224, 225, 0, 0, 0, 0, 
+    0, 226, 227, 228, 0, 0, 0, 0, 0, 229, 230, 231, 0, 0, 0, 0, 0, 0, 232, 0, 
+    0, 0, 0, 0, 0, 233, 0, 0, 0, 0, 0, 0, 234, 0, 0, 0, 0, 0, 0, 0, 235, 0, 
+    0, 0, 0, 0, 0, 0, 236, 0, 0, 0, 0, 0, 0, 0, 237, 0, 0, 0, 0, 0, 0, 238, 
+    0, 0, 0, 0, 0, 0, 0, 239, 0, 0, 0, 0, 0, 0, 0, 240, 0, 0, 0, 0, 0, 0, 0, 
+    241, 0, 0, 0, 0, 0, 0, 242, 0, 243, 244, 0, 0, 0, 0, 245, 246, 0, 0, 0, 
+    0, 0, 247, 0, 248, 0, 249, 0, 0, 0, 250, 251, 252, 0, 0, 0, 0, 0, 253, 0, 
+    254, 0, 0, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0, 256, 257, 258, 0, 0, 0, 0, 0, 
+    259, 0, 260, 0, 261, 0, 0, 0, 0, 0, 0, 262, 0, 0, 0, 0, 0, 0, 0, 263, 0, 
+    0, 0, 264, 265, 266, 0, 267, 0, 0, 0, 268, 0, 269, 0, 0, 0, 0, 0, 270, 0, 
+    271, 272, 0, 0, 0, 0, 273, 274, 0, 275, 0, 0, 0, 276, 0, 277, 0, 0, 0, 0, 
+    0, 0, 0, 278, 0, 0, 0, 0, 0, 279, 280, 281, 282, 0, 0, 0, 0, 283, 284, 0, 
+    285, 0, 0, 0, 286, 0, 0, 0, 287, 0, 0, 0, 288, 0, 0, 0, 289, 0, 0, 0, 0, 
+    0, 0, 290, 0, 0, 0, 0, 291, 0, 0, 0, 0, 0, 0, 0, 292, 0, 0, 0, 0, 0, 0, 
+    0, 293, 0, 0, 0, 0, 0, 0, 294, 0, 0, 0, 0, 0, 0, 0, 295, 0, 0, 0, 0, 0, 
+    0, 0, 296, 0, 0, 0, 0, 0, 0, 0, 297, 0, 0, 0, 0, 0, 0, 298, 299, 0, 0, 0, 
+    0, 0, 0, 300, 0, 0, 0, 0, 0, 0, 0, 301, 0, 0, 0, 0, 0, 0, 0, 302, 0, 0, 
+    0, 0, 0, 0, 0, 303, 0, 0, 0, 0, 0, 0, 304, 0, 0, 0, 0, 0, 0, 0, 305, 0, 
+    0, 0, 0, 0, 0, 0, 306, 0, 0, 0, 0, 0, 0, 307, 0, 0, 0, 0, 0, 0, 0, 308, 
+    0, 0, 0, 0, 0, 0, 0, 309, 0, 0, 0, 0, 0, 0, 0, 310, 0, 0, 0, 0, 0, 0, 
+    311, 312, 0, 0, 0, 0, 0, 0, 313, 0, 0, 0, 0, 0, 0, 0, 314, 0, 0, 0, 0, 0, 
+    0, 0, 315, 0, 0, 0, 0, 0, 0, 0, 316, 0, 0, 0, 0, 0, 0, 317, 0, 0, 0, 0, 
+    0, 0, 0, 318, 0, 0, 0, 0, 0, 0, 0, 319, 0, 0, 0, 0, 0, 0, 0, 320, 0, 0, 
+    0, 0, 0, 0, 0, 321, 0, 0, 0, 0, 0, 0, 322, 0, 0, 0, 0, 0, 0, 0, 323, 0, 
+    0, 0, 0, 0, 0, 0, 324, 0, 0, 0, 0, 0, 0, 325, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    0, 326, 0, 0, 0, 0, 0, 0, 0, 327, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 0, 0, 
+    0, 0, 329, 0, 0, 0, 0, 0, 0, 0, 330, 0, 0, 0, 0, 0, 0, 0, 331, 0, 0, 0, 
+    0, 0, 0, 0, 332, 0, 0, 0, 0, 0, 0, 0, 333, 0, 0, 0, 0, 0, 0, 334, 0, 0, 
+    0, 0, 0, 0, 0, 335, 0, 0, 0, 0, 0, 0, 0, 336, 337, 0, 0, 0, 0, 0, 0, 0, 
+    338, 0, 0, 0, 0, 0, 0, 339, 0, 0, 0, 0, 0, 0, 0, 340, 0, 0, 0, 0, 0, 0, 
+    0, 341, 0, 0, 0, 0, 0, 0, 0, 342, 0, 0, 0, 0, 0, 0, 0, 343, 0, 0, 0, 0, 
+    0, 0, 344, 0, 0, 0, 0, 0, 0, 0, 345, 346, 0, 0, 0, 0, 0, 0, 347, 0, 0, 0, 
+    0, 0, 0, 0, 348, 0, 0, 0, 0, 0, 0, 0, 349, 0, 0, 0, 0, 0, 0, 0, 350, 0, 
+    0, 0, 0, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 0, 352, 0, 0, 0, 0, 0, 0, 353, 
+    0, 0, 0, 0, 0, 0, 0, 354, 0, 0, 0, 0, 0, 0, 0, 355, 0, 0, 0, 0, 0, 0, 0, 
+    356, 0, 0, 0, 0, 0, 0, 357, 0, 0, 0, 0, 0, 0, 0, 358, 0, 0, 0, 0, 0, 0, 
+    0, 359, 0, 0, 0, 0, 0, 0, 0, 360, 0, 0, 0, 0, 0, 0, 361, 0, 362, 0, 0, 0, 
+    0, 0, 0, 0, 363, 0, 0, 0, 0, 0, 0, 0, 364, 0, 0, 0, 0, 0, 0, 0, 365, 0, 
+    0, 0, 0, 0, 0, 0, 366, 0, 0, 0, 0, 0, 0, 367, 0, 0, 0, 0, 0, 0, 0, 368, 
+    0, 0, 0, 0, 0, 0, 369, 370, 0, 0, 0, 0, 0, 0, 371, 0, 0, 0, 0, 0, 0, 0, 
+    372, 0, 0, 0, 0, 0, 0, 0, 373, 0, 0, 0, 0, 0, 0, 374, 0, 0, 0, 0, 0, 0, 
+    0, 375, 0, 0, 376, 0, 0, 0, 0, 377, 0, 0, 378, 0, 0, 0, 0, 0, 0, 0, 379, 
+    0, 0, 0, 0, 0, 0, 0, 380, 0, 0, 0, 0, 0, 0, 381, 0, 0, 0, 0, 0, 0, 0, 
+    382, 0, 0, 0, 0, 0, 0, 0, 383, 0, 0, 0, 0, 0, 0, 0, 384, 0, 0, 0, 385, 0, 
+    0, 386, 0, 0, 0, 0, 387, 0, 0, 388, 0, 0, 0, 0, 0, 0, 0, 389, 0, 0, 0, 0, 
+    0, 0, 0, 390, 0, 0, 0, 0, 0, 0, 391, 0, 0, 0, 0, 0, 0, 0, 392, 0, 0, 0, 
+    0, 0, 0, 0, 393, 0, 0, 0, 0, 0, 0, 0, 394, 0, 0, 0, 395, 0, 0, 0, 0, 0, 
+    0, 0, 396, 0, 0, 0, 0, 0, 0, 397, 0, 0, 0, 0, 0, 0, 0, 398, 0, 0, 0, 0, 
+    0, 0, 0, 399, 0, 0, 400, 0, 0, 0, 0, 401, 0, 0, 402, 0, 0, 0, 0, 0, 0, 0, 
+    403, 0, 0, 0, 0, 0, 0, 0, 404, 0, 0, 0, 0, 0, 0, 405, 0, 0, 0, 0, 0, 0, 
+    0, 406, 0, 0, 0, 0, 0, 0, 0, 407, 0, 0, 0, 0, 0, 0, 0, 408, 0, 0, 0, 409, 
+    0, 0, 410, 0, 0, 0, 0, 411, 0, 0, 412, 0, 0, 0, 0, 0, 0, 0, 413, 0, 0, 0, 
+    0, 0, 0, 0, 414, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 0, 0, 0, 0, 416, 0, 0, 
+    0, 0, 0, 0, 0, 417, 0, 0, 0, 0, 0, 0, 0, 418, 0, 0, 0, 419, 0, 0, 420, 0, 
+    0, 0, 0, 421, 0, 0, 422, 0, 0, 0, 423, 0, 0, 0, 424, 0, 0, 0, 425, 0, 0, 
+    0, 426, 0, 0, 0, 427, 0, 0, 0, 0, 0, 0, 0, 428, 0, 0, 0, 0, 0, 0, 429, 0, 
+    0, 0, 0, 0, 0, 0, 430, 0, 0, 0, 0, 0, 0, 0, 431, 0, 0, 432, 0, 0, 0, 0, 
+    433, 0, 0, 434, 0, 0, 0, 435, 0, 0, 0, 436, 0, 0, 0, 437, 0, 0, 0, 438, 
+    0, 0, 0, 439, 0, 0, 440, 0, 0, 0, 0, 0, 0, 0, 441, 0, 0, 0, 0, 0, 0, 0, 
+    442, 0, 0, 0, 0, 0, 0, 0, 443, 0, 0, 0, 0, 0, 0, 444, 0, 0, 0, 0, 0, 0, 
+    0, 445, 0, 0, 0, 0, 0, 0, 0, 446, 0, 0, 0, 447, 0, 0, 0, 448, 0, 0, 0, 
+    449, 0, 0, 450, 0, 0, 0, 0, 0, 0, 0, 451, 0, 0, 0, 0, 0, 0, 0, 452, 0, 0, 
+    0, 0, 0, 0, 0, 453, 0, 0, 0, 0, 0, 0, 454, 0, 0, 0, 0, 0, 0, 0, 455, 0, 
+    0, 0, 0, 0, 0, 0, 456, 0, 0, 0, 0, 0, 0, 0, 457, 0, 0, 0, 0, 0, 0, 458, 
+    0, 0, 0, 0, 0, 0, 0, 459, 0, 0, 0, 0, 0, 0, 0, 460, 0, 0, 0, 461, 0, 0, 
+    0, 462, 0, 0, 0, 0, 0, 0, 463, 0, 0, 0, 0, 0, 0, 0, 464, 0, 0, 0, 465, 0, 
+    0, 0, 466, 0, 0, 0, 0, 0, 0, 467, 0, 0, 0, 0, 0, 0, 0, 468, 0, 0, 0, 0, 
+    0, 0, 0, 469, 0, 0, 0, 0, 0, 0, 0, 470, 0, 0, 0, 0, 0, 0, 471, 0, 0, 0, 
+    0, 0, 0, 0, 472, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 0, 0, 0, 0, 0, 474, 0, 
+    0, 0, 0, 0, 0, 475, 0, 0, 0, 0, 0, 0, 0, 476, 0, 0, 0, 0, 0, 0, 0, 477, 
+    0, 0, 0, 0, 0, 0, 0, 478, 0, 0, 0, 0, 0, 0, 479, 0, 0, 0, 0, 0, 0, 0, 
+    480, 0, 0, 0, 0, 0, 0, 0, 481, 0, 0, 0, 0, 0, 0, 0, 482, 0, 0, 0, 0, 0, 
+    0, 483, 0, 0, 0, 0, 0, 0, 0, 484, 0, 0, 0, 0, 0, 0, 0, 485, 0, 0, 0, 0, 
+    0, 0, 0, 486, 0, 0, 0, 0, 0, 0, 487, 0, 0, 0, 0, 0, 0, 0, 488, 0, 0, 0, 
+    0, 0, 0, 0, 489, 0, 0, 0, 0, 0, 0, 0, 490, 0, 0, 0, 0, 0, 0, 491, 0, 0, 
+    0, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 493, 0, 0, 0, 0, 0, 0, 0, 494, 
+    0, 0, 0, 0, 0, 0, 495, 0, 0, 0, 0, 0, 0, 0, 496, 0, 0, 0, 0, 0, 0, 0, 
+    497, 0, 0, 0, 0, 0, 0, 0, 498, 0, 0, 0, 0, 0, 0, 499, 0, 0, 0, 0, 0, 0, 
+    0, 500, 0, 0, 0, 0, 0, 0, 0, 501, 0, 0, 0, 0, 0, 0, 0, 502, 0, 0, 0, 0, 
+    0, 0, 503, 0, 0, 0, 0, 0, 0, 0, 504, 0, 0, 0, 0, 0, 0, 0, 505, 0, 0, 0, 
+    0, 0, 0, 0, 506, 0, 0, 0, 0, 0, 0, 507, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
+    508, 0, 0, 0, 0, 0, 0, 0, 509, 0, 0, 0, 0, 0, 0, 0, 510, 0, 0, 0, 0, 0, 
+    0, 0, 511, 0, 0, 0, 0, 0, 0, 512, 0, 0, 0, 0, 0, 0, 0, 513, 0, 0, 0, 0, 
+    0, 0, 0, 514, 0, 0, 0, 0, 0, 0, 0, 515, 0, 0, 0, 0, 0, 0, 516, 0, 0, 0, 
+    0, 0, 0, 0, 517, 0, 0, 0, 0, 0, 0, 0, 518, 0, 0, 0, 0, 0, 0, 0, 519, 0, 
+    0, 0, 0, 0, 0, 520, 0, 0, 0, 0, 0, 0, 0, 521, 0, 0, 0, 0, 0, 0, 0, 522, 
+    0, 0, 0, 0, 0, 0, 0, 523, 0, 0, 0, 0, 0, 0, 524, 0, 0, 0, 0, 0, 0, 0, 
+    525, 0, 0, 0, 0, 0, 0, 0, 526, 0, 0, 0, 0, 0, 0, 0, 527, 0, 0, 0, 0, 0, 
+    0, 528, 0, 0, 0, 0, 0, 0, 0, 529, 0, 0, 0, 0, 0, 0, 0, 530, 0, 0, 0, 0, 
+    0, 0, 0, 531, 0, 0, 0, 0, 0, 0, 532, 0, 0, 0, 0, 0, 0, 0, 533, 0, 0, 0, 
+    0, 0, 0, 0, 534, 0, 0, 0, 0, 0, 0, 0, 535, 0, 0, 0, 0, 0, 0, 536, 0, 0, 
+    0, 0, 0, 0, 0, 537, 0, 0, 0, 0, 0, 0, 0, 538, 0, 0, 0, 0, 0, 0, 0, 539, 
+    0, 0, 0, 0, 0, 0, 540, 0, 0, 0, 0, 0, 0, 0, 541, 0, 0, 0, 0, 0, 0, 0, 
+    542, 0, 0, 0, 0, 0, 0, 0, 543, 0, 0, 0, 0, 0, 0, 544, 0, 0, 0, 0, 0, 0, 
+    0, 545, 0, 0, 0, 0, 0, 0, 0, 546, 0, 0, 0, 0, 0, 0, 0, 547, 0, 0, 0, 0, 
+    0, 0, 548, 0, 0, 0, 0, 0, 0, 0, 549, 0, 0, 0, 0, 0, 0, 0, 550, 0, 0, 0, 
+    0, 0, 0, 0, 551, 0, 0, 0, 0, 0, 0, 552, 0, 0, 0, 0, 0, 0, 0, 553, 0, 0, 
+    0, 0, 0, 0, 0, 554, 0, 0, 0, 0, 0, 0, 0, 555, 0, 0, 0, 0, 0, 0, 0, 556, 
+    0, 0, 0, 0, 0, 0, 557, 0, 0, 0, 0, 0, 0, 0, 558, 0, 0, 0, 0, 0, 0, 0, 
+    559, 0, 0, 0, 0, 0, 0, 0, 560, 0, 0, 0, 0, 0, 0, 0, 561, 0, 0, 0, 0, 0, 
+    0, 0, 562, 0, 0, 0, 0, 0, 0, 0, 563, 0, 0, 0, 0, 0, 0, 564, 
+};
+
+static const unsigned short comp_index1[] = {
+    0, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 0, 0, 0, 0, 3, 0, 4, 5, 6, 7, 8, 9, 10, 
+    0, 11, 12, 0, 13, 0, 0, 0, 0, 0, 0, 14, 15, 0, 0, 0, 0, 16, 0, 0, 0, 0, 
+    0, 17, 18, 0, 19, 0, 20, 0, 0, 0, 0, 21, 0, 0, 0, 22, 0, 23, 0, 0, 24, 0, 
+    25, 26, 0, 27, 0, 28, 29, 30, 31, 32, 33, 34, 0, 35, 0, 36, 37, 38, 0, 0, 
+    0, 0, 0, 39, 0, 0, 0, 40, 41, 42, 43, 0, 44, 0, 0, 0, 0, 45, 0, 0, 0, 0, 
+    0, 46, 0, 47, 0, 48, 0, 0, 49, 0, 50, 0, 51, 0, 0, 52, 53, 54, 55, 56, 
+    57, 58, 0, 59, 0, 0, 60, 61, 0, 0, 0, 62, 0, 0, 0, 0, 0, 63, 64, 0, 0, 
+    65, 0, 66, 0, 0, 67, 0, 0, 0, 0, 0, 68, 0, 0, 0, 0, 69, 0, 0, 70, 0, 71, 
+    72, 0, 73, 0, 74, 0, 0, 75, 0, 0, 0, 0, 76, 0, 0, 77, 78, 0, 79, 0, 80, 
+    0, 0, 81, 0, 82, 83, 0, 84, 0, 0, 0, 0, 0, 85, 86, 87, 88, 89, 90, 91, 0, 
+    92, 0, 0, 93, 0, 0, 0, 94, 0, 0, 95, 0, 0, 0, 96, 0, 0, 97, 0, 98, 99, 0, 
+    100, 0, 101, 0, 0, 102, 0, 103, 104, 0, 105, 0, 106, 0, 0, 107, 0, 108, 
+    0, 0, 0, 109, 0, 110, 0, 0, 111, 0, 112, 113, 0, 114, 0, 0, 0, 0, 0, 115, 
+    116, 117, 118, 119, 120, 121, 0, 122, 123, 0, 124, 125, 0, 0, 0, 126, 0, 
+    0, 127, 0, 0, 128, 129, 0, 130, 131, 0, 0, 0, 0, 0, 132, 0, 0, 0, 133, 
+    134, 135, 136, 137, 0, 0, 0, 138, 0, 0, 139, 140, 0, 141, 0, 142, 0, 0, 
+    143, 0, 0, 0, 0, 144, 0, 145, 146, 147, 148, 149, 150, 151, 0, 152, 153, 
+    0, 154, 0, 0, 155, 0, 0, 0, 0, 156, 157, 0, 0, 0, 0, 0, 158, 159, 0, 160, 
+    0, 161, 162, 0, 0, 0, 163, 0, 164, 0, 0, 165, 0, 166, 167, 0, 168, 0, 
+    169, 170, 171, 172, 173, 174, 175, 0, 176, 0, 177, 178, 179, 0, 0, 0, 0, 
+    0, 180, 0, 0, 0, 181, 182, 183, 184, 0, 185, 186, 0, 0, 0, 0, 0, 187, 0, 
+    188, 0, 189, 0, 0, 190, 0, 191, 0, 192, 193, 0, 194, 195, 196, 197, 198, 
+    199, 200, 0, 201, 0, 0, 202, 203, 0, 0, 0, 204, 0, 0, 0, 205, 0, 0, 0, 0, 
+    0, 206, 0, 0, 0, 0, 207, 0, 0, 208, 0, 209, 0, 0, 210, 0, 211, 0, 0, 0, 
+    0, 212, 0, 0, 213, 0, 214, 215, 0, 216, 0, 217, 0, 0, 218, 219, 0, 0, 0, 
+    0, 0, 0, 220, 221, 0, 222, 0, 223, 0, 0, 224, 0, 225, 226, 0, 227, 0, 0, 
+    0, 0, 0, 228, 229, 230, 231, 232, 233, 234, 0, 235, 0, 0, 236, 0, 0, 0, 
+    237, 0, 0, 238, 0, 0, 0, 239, 0, 0, 240, 0, 241, 242, 0, 243, 0, 244, 0, 
+    0, 245, 0, 0, 0, 0, 0, 246, 247, 0, 248, 0, 249, 0, 0, 250, 0, 251, 0, 0, 
+    0, 252, 0, 253, 0, 0, 254, 0, 255, 256, 0, 257, 0, 258, 259, 260, 261, 
+    262, 263, 264, 0, 265, 266, 0, 267, 268, 0, 0, 0, 269, 0, 0, 270, 0, 0, 
+    0, 0, 0, 0, 271, 272, 0, 273, 274, 0, 0, 0, 275, 0, 276, 0, 0, 0, 277, 
+    278, 279, 280, 281, 0, 0, 0, 282, 0, 0, 283, 284, 0, 285, 0, 286, 0, 0, 
+    287, 0, 0, 0, 0, 288, 0, 0, 0, 0, 0, 289, 0, 290, 0, 0, 0, 0, 291, 292, 
+    0, 0, 293, 0, 0, 0, 0, 294, 295, 0, 0, 0, 0, 0, 0, 296, 0, 297, 0, 0, 0, 
+    0, 298, 0, 0, 299, 300, 0, 0, 301, 0, 0, 302, 0, 0, 0, 0, 0, 0, 303, 304, 
+    0, 0, 305, 0, 0, 306, 0, 307, 308, 0, 0, 0, 0, 0, 309, 310, 0, 0, 0, 0, 
+    0, 0, 311, 0, 312, 0, 0, 313, 0, 0, 0, 0, 0, 314, 315, 0, 0, 316, 0, 0, 
+    0, 0, 317, 318, 0, 0, 0, 0, 0, 0, 319, 0, 320, 0, 0, 0, 0, 321, 0, 0, 
+    322, 323, 0, 0, 324, 0, 0, 325, 0, 0, 0, 0, 0, 0, 326, 327, 0, 0, 328, 0, 
+    0, 329, 0, 330, 331, 0, 0, 0, 0, 0, 332, 333, 0, 0, 0, 0, 0, 0, 334, 0, 
+    335, 0, 0, 336, 0, 0, 0, 0, 0, 337, 338, 0, 0, 339, 0, 0, 340, 341, 0, 0, 
+    342, 0, 0, 343, 0, 0, 0, 0, 0, 0, 344, 0, 0, 345, 0, 0, 346, 0, 0, 0, 0, 
+    0, 347, 0, 0, 348, 0, 0, 349, 0, 0, 350, 0, 0, 0, 351, 0, 0, 0, 0, 0, 0, 
+    352, 0, 353, 0, 0, 354, 0, 0, 0, 0, 0, 0, 355, 0, 0, 0, 356, 357, 0, 0, 
+    358, 0, 0, 0, 359, 0, 0, 360, 361, 0, 0, 362, 0, 0, 0, 363, 0, 0, 364, 
+    365, 0, 0, 366, 0, 0, 0, 367, 0, 0, 368, 369, 0, 0, 370, 0, 0, 0, 371, 0, 
+    0, 0, 372, 0, 0, 0, 373, 0, 0, 0, 0, 0, 0, 374, 0, 0, 375, 0, 0, 376, 0, 
+    0, 377, 0, 0, 0, 0, 0, 0, 378, 0, 0, 379, 0, 0, 380, 0, 0, 0, 0, 0, 381, 
+    0, 382, 0, 383, 384, 0, 0, 0, 0, 0, 0, 385, 386, 0, 0, 0, 0, 0, 0, 387, 
+    0, 0, 0, 388, 0, 0, 389, 0, 0, 390, 0, 0, 0, 0, 391, 0, 392, 393, 0, 0, 
+    0, 394, 0, 0, 0, 395, 0, 0, 396, 0, 0, 0, 0, 0, 0, 397, 0, 0, 0, 398, 0, 
+    399, 400, 0, 0, 0, 401, 0, 0, 0, 402, 0, 0, 403, 0, 0, 404, 0, 0, 0, 0, 
+    0, 0, 405, 0, 0, 406, 0, 0, 0, 0, 407, 0, 408, 0, 0, 0, 0, 409, 0, 0, 
+    410, 0, 0, 0, 0, 411, 0, 0, 412, 0, 0, 0, 413, 0, 0, 414, 0, 0, 0, 0, 0, 
+    0, 415, 416, 0, 417, 418, 0, 0, 0, 419, 0, 0, 420, 0, 0, 0, 0, 421, 0, 0, 
+    422, 0, 0, 423, 0, 0, 0, 424, 0, 425, 426, 0, 0, 0, 427, 0, 0, 0, 0, 0, 
+    0, 428, 429, 0, 0, 0, 0, 0, 0, 430, 0, 0, 431, 0, 0, 0, 0, 432, 0, 433, 
+    0, 0, 0, 0, 434, 0, 435, 0, 0, 0, 0, 0, 0, 436, 437, 0, 0, 438, 0, 0, 
+    439, 0, 440, 441, 0, 0, 0, 442, 0, 0, 443, 0, 444, 445, 0, 446, 447, 0, 
+    0, 448, 0, 0, 0, 449, 0, 450, 451, 0, 0, 0, 452, 0, 0, 0, 0, 0, 453, 0, 
+    454, 455, 0, 456, 457, 0, 0, 0, 0, 0, 0, 458, 0, 0, 459, 0, 460, 461, 0, 
+    0, 0, 462, 0, 0, 463, 0, 464, 465, 0, 466, 467, 0, 0, 468, 0, 0, 0, 469, 
+    0, 470, 471, 0, 0, 0, 472, 0, 0, 0, 0, 0, 473, 0, 474, 475, 0, 476, 477, 
+    0, 0, 0, 0, 0, 0, 478, 0, 0, 479, 0, 0, 480, 0, 0, 0, 0, 0, 481, 0, 0, 
+    482, 0, 0, 0, 483, 0, 0, 484, 0, 0, 485, 0, 0, 0, 0, 0, 0, 486, 0, 0, 
+    487, 488, 0, 489, 0, 0, 490, 0, 0, 0, 0, 0, 0, 491, 0, 0, 492, 0, 0, 493, 
+    0, 0, 0, 494, 0, 0, 495, 0, 0, 0, 0, 0, 0, 496, 0, 0, 0, 497, 0, 0, 0, 
+    498, 499, 0, 0, 0, 500, 0, 0, 0, 0, 0, 501, 502, 0, 503, 0, 0, 0, 504, 0, 
+    0, 0, 505, 0, 0, 506, 507, 0, 0, 0, 0, 0, 508, 0, 0, 0, 509, 510, 0, 0, 
+    0, 0, 0, 511, 0, 0, 0, 512, 513, 0, 514, 0, 0, 0, 0, 515, 0, 0, 516, 0, 
+    0, 517, 0, 0, 0, 0, 0, 0, 518, 0, 0, 519, 0, 0, 520, 0, 0, 521, 0, 0, 0, 
+    0, 0, 0, 522, 0, 0, 523, 0, 0, 524, 0, 0, 525, 0, 0, 0, 0, 0, 0, 526, 0, 
+    0, 0, 527, 0, 0, 528, 0, 0, 529, 0, 0, 530, 0, 0, 0, 531, 0, 0, 0, 0, 0, 
+    0, 532, 533, 534, 0, 0, 0, 0, 0, 535, 536, 0, 0, 0, 0, 0, 537, 0, 0, 538, 
+    0, 0, 539, 0, 0, 0, 0, 0, 0, 540, 0, 541, 0, 0, 0, 0, 0, 542, 543, 0, 0, 
+    0, 0, 0, 544, 0, 0, 545, 0, 0, 546, 0, 0, 0, 0, 0, 0, 547, 0, 0, 548, 0, 
+    0, 549, 0, 0, 550, 0, 0, 0, 0, 551, 0, 0, 0, 0, 0, 552, 553, 0, 0, 0, 0, 
+    0, 554, 0, 0, 555, 0, 0, 556, 0, 0, 0, 0, 0, 0, 557, 0, 0, 558, 0, 0, 
+    559, 0, 0, 560, 0, 0, 0, 0, 561, 0, 0, 562, 0, 0, 0, 0, 0, 0, 563, 0, 0, 
+    564, 0, 0, 565, 0, 0, 0, 0, 0, 566, 567, 0, 0, 0, 0, 0, 568, 0, 0, 569, 
+    0, 0, 570, 0, 0, 0, 0, 0, 0, 571, 0, 0, 572, 0, 0, 573, 0, 0, 574, 0, 0, 
+    0, 0, 575, 0, 0, 0, 0, 0, 576, 577, 0, 0, 0, 0, 0, 578, 0, 0, 579, 0, 0, 
+    580, 0, 0, 0, 0, 0, 0, 581, 0, 0, 582, 0, 0, 583, 0, 0, 584, 0, 0, 0, 0, 
+    585, 0, 0, 0, 0, 0, 586, 587, 0, 0, 0, 0, 0, 588, 0, 0, 0, 0, 589, 0, 
+    590, 0, 0, 0, 0, 591, 0, 592, 0, 0, 0, 0, 593, 0, 0, 594, 0, 0, 0, 0, 0, 
+    0, 595, 0, 0, 596, 0, 0, 597, 0, 0, 0, 0, 0, 598, 599, 0, 0, 0, 0, 0, 
+    600, 0, 0, 0, 0, 601, 0, 602, 0, 0, 0, 0, 603, 0, 604, 0, 0, 0, 0, 605, 
+    0, 0, 0, 0, 0, 606, 0, 0, 607, 0, 0, 608, 0, 0, 609, 0, 0, 0, 0, 0, 0, 
+    610, 0, 0, 611, 0, 0, 612, 0, 0, 0, 0, 613, 0, 614, 0, 0, 0, 0, 615, 0, 
+    0, 0, 0, 0, 616, 0, 0, 617, 0, 0, 618, 0, 0, 619, 0, 0, 0, 0, 0, 0, 620, 
+    0, 0, 621, 0, 0, 622, 0, 0, 623, 0, 0, 0, 0, 0, 0, 624, 0, 0, 625, 0, 0, 
+    626, 0, 0, 0, 0, 627, 0, 628, 0, 0, 0, 0, 0, 0, 629, 0, 0, 630, 0, 0, 0, 
+    0, 631, 0, 632, 0, 0, 0, 0, 0, 633, 0, 0, 634, 0, 0, 635, 0, 0, 636, 0, 
+    0, 0, 0, 0, 0, 637, 0, 0, 638, 0, 0, 639, 0, 0, 640, 0, 0, 0, 0, 0, 0, 
+    641, 0, 0, 642, 0, 0, 643, 0, 0, 644, 0, 0, 0, 0, 0, 0, 645, 0, 0, 646, 
+    0, 0, 647, 0, 0, 648, 0, 0, 0, 0, 0, 0, 649, 0, 0, 650, 0, 0, 651, 0, 0, 
+    652, 0, 0, 0, 0, 0, 0, 653, 0, 0, 654, 0, 0, 655, 0, 0, 656, 0, 0, 0, 0, 
+    0, 0, 657, 0, 0, 658, 0, 0, 659, 0, 0, 660, 0, 0, 0, 0, 0, 0, 661, 0, 0, 
+    662, 0, 0, 663, 0, 0, 664, 0, 0, 0, 0, 0, 0, 665, 0, 0, 666, 0, 0, 667, 
+    0, 0, 668, 0, 0, 0, 0, 0, 0, 669, 0, 0, 670, 0, 0, 671, 0, 0, 672, 0, 0, 
+    0, 0, 0, 0, 673, 0, 0, 0, 674, 0, 0, 675, 0, 0, 676, 0, 0, 677, 0, 0, 0, 
+    0, 0, 0, 678, 0, 0, 679, 0, 0, 680, 0, 0, 681, 0, 0, 0, 0, 0, 0, 682, 0, 
+    0, 683, 0, 0, 684, 0, 0, 685, 0, 0, 0, 0, 0, 0, 686, 0, 0, 687, 0, 0, 
+    688, 0, 0, 689, 0, 0, 0, 0, 0, 0, 690, 0, 0, 691, 0, 0, 692, 0, 0, 693, 
+    0, 0, 0, 0, 0, 0, 694, 0, 0, 695, 0, 0, 696, 0, 0, 697, 0, 0, 0, 0, 0, 0, 
+    698, 0, 0, 699, 0, 0, 700, 0, 0, 701, 0, 0, 0, 0, 0, 0, 702, 0, 0, 703, 
+    0, 0, 704, 0, 0, 705, 0, 0, 0, 0, 0, 0, 706, 0, 0, 707, 0, 0, 708, 0, 0, 
+    709, 0, 0, 0, 0, 0, 0, 710, 0, 0, 711, 0, 0, 712, 0, 0, 713, 0, 0, 0, 0, 
+    0, 0, 714, 0, 0, 715, 0, 0, 716, 0, 0, 717, 0, 0, 0, 0, 0, 0, 718, 0, 0, 
+    719, 0, 0, 720, 0, 0, 721, 0, 0, 0, 722, 0, 0, 0, 0, 0, 0, 723, 0, 0, 
+    724, 0, 0, 725, 0, 0, 726, 0, 0, 0, 727, 0, 0, 0, 728, 729, 0, 0, 730, 0, 
+    0, 0, 0, 0, 0, 731, 
+};
+
+static const unsigned int comp_data[] = {
+    0, 0, 0, 8814, 0, 8800, 0, 8815, 192, 193, 194, 195, 256, 258, 550, 196, 
+    7842, 197, 0, 461, 512, 514, 0, 7840, 0, 7680, 260, 0, 7682, 0, 0, 7684, 
+    7686, 0, 0, 262, 264, 0, 266, 0, 0, 268, 0, 199, 7690, 0, 0, 270, 0, 
+    7692, 0, 7696, 0, 7698, 7694, 0, 200, 201, 202, 7868, 274, 276, 278, 203, 
+    7866, 0, 0, 282, 516, 518, 0, 7864, 0, 552, 280, 7704, 0, 7706, 7710, 0, 
+    0, 500, 284, 0, 7712, 286, 288, 0, 0, 486, 0, 290, 292, 0, 7714, 7718, 0, 
+    542, 0, 7716, 0, 7720, 7722, 0, 204, 205, 206, 296, 298, 300, 304, 207, 
+    7880, 0, 0, 463, 520, 522, 0, 7882, 302, 0, 0, 7724, 308, 0, 0, 7728, 0, 
+    488, 0, 7730, 0, 310, 7732, 0, 0, 313, 0, 317, 0, 7734, 0, 315, 0, 7740, 
+    7738, 0, 0, 7742, 7744, 0, 0, 7746, 504, 323, 0, 209, 7748, 0, 0, 327, 0, 
+    7750, 0, 325, 0, 7754, 7752, 0, 210, 211, 212, 213, 332, 334, 558, 214, 
+    7886, 0, 336, 465, 524, 526, 416, 7884, 490, 0, 0, 7764, 7766, 0, 0, 340, 
+    7768, 0, 0, 344, 528, 530, 0, 7770, 0, 342, 7774, 0, 0, 346, 348, 0, 
+    7776, 0, 0, 352, 0, 7778, 536, 350, 7786, 0, 0, 356, 0, 7788, 538, 354, 
+    0, 7792, 7790, 0, 217, 218, 219, 360, 362, 364, 0, 220, 7910, 366, 368, 
+    467, 532, 534, 431, 7908, 7794, 0, 370, 7798, 0, 7796, 0, 7804, 0, 7806, 
+    7808, 7810, 372, 0, 7814, 7812, 0, 7816, 7818, 7820, 7922, 221, 374, 
+    7928, 562, 0, 7822, 376, 7926, 0, 0, 7924, 0, 377, 7824, 0, 379, 0, 0, 
+    381, 0, 7826, 7828, 0, 224, 225, 226, 227, 257, 259, 551, 228, 7843, 229, 
+    0, 462, 513, 515, 0, 7841, 0, 7681, 261, 0, 7683, 0, 0, 7685, 7687, 0, 0, 
+    263, 265, 0, 267, 0, 0, 269, 0, 231, 7691, 0, 0, 271, 0, 7693, 0, 7697, 
+    0, 7699, 7695, 0, 232, 233, 234, 7869, 275, 277, 279, 235, 7867, 0, 0, 
+    283, 517, 519, 0, 7865, 0, 553, 281, 7705, 0, 7707, 7711, 0, 0, 501, 285, 
+    0, 7713, 287, 289, 0, 0, 487, 0, 291, 293, 0, 7715, 7719, 0, 543, 0, 
+    7717, 0, 7721, 7723, 0, 7830, 0, 236, 237, 238, 297, 299, 301, 0, 239, 
+    7881, 0, 0, 464, 521, 523, 0, 7883, 303, 0, 0, 7725, 309, 0, 0, 496, 0, 
+    7729, 0, 489, 0, 7731, 0, 311, 7733, 0, 0, 314, 0, 318, 0, 7735, 0, 316, 
+    0, 7741, 7739, 0, 0, 7743, 7745, 0, 0, 7747, 505, 324, 0, 241, 7749, 0, 
+    0, 328, 0, 7751, 0, 326, 0, 7755, 7753, 0, 242, 243, 244, 245, 333, 335, 
+    559, 246, 7887, 0, 337, 466, 525, 527, 417, 7885, 491, 0, 0, 7765, 7767, 
+    0, 0, 341, 7769, 0, 0, 345, 529, 531, 0, 7771, 0, 343, 7775, 0, 0, 347, 
+    349, 0, 7777, 0, 0, 353, 0, 7779, 537, 351, 7787, 7831, 0, 357, 0, 7789, 
+    539, 355, 0, 7793, 7791, 0, 249, 250, 251, 361, 363, 365, 0, 252, 7911, 
+    367, 369, 468, 533, 535, 432, 7909, 7795, 0, 371, 7799, 0, 7797, 0, 7805, 
+    0, 7807, 7809, 7811, 373, 0, 7815, 7813, 0, 7832, 0, 7817, 7819, 7821, 
+    7923, 253, 375, 7929, 563, 0, 7823, 255, 7927, 7833, 0, 7925, 0, 378, 
+    7825, 0, 380, 0, 0, 382, 0, 7827, 7829, 0, 8173, 901, 8129, 0, 7846, 
+    7844, 0, 7850, 7848, 0, 478, 0, 0, 506, 0, 508, 482, 0, 0, 7688, 7872, 
+    7870, 0, 7876, 7874, 0, 0, 7726, 7890, 7888, 0, 7894, 7892, 0, 0, 7756, 
+    556, 0, 0, 7758, 554, 0, 0, 510, 475, 471, 469, 0, 0, 473, 7847, 7845, 0, 
+    7851, 7849, 0, 479, 0, 0, 507, 0, 509, 483, 0, 0, 7689, 7873, 7871, 0, 
+    7877, 7875, 0, 0, 7727, 7891, 7889, 0, 7895, 7893, 0, 0, 7757, 557, 0, 0, 
+    7759, 555, 0, 0, 511, 476, 472, 470, 0, 0, 474, 7856, 7854, 0, 7860, 
+    7858, 0, 7857, 7855, 0, 7861, 7859, 0, 7700, 7702, 7701, 7703, 7760, 
+    7762, 7761, 7763, 7780, 0, 7781, 0, 7782, 0, 7783, 0, 0, 7800, 0, 7801, 
+    0, 7802, 0, 7803, 7835, 0, 7900, 7898, 0, 7904, 7902, 0, 0, 7906, 7901, 
+    7899, 0, 7905, 7903, 0, 0, 7907, 7914, 7912, 0, 7918, 7916, 0, 0, 7920, 
+    7915, 7913, 0, 7919, 7917, 0, 0, 7921, 0, 494, 492, 0, 493, 0, 480, 0, 
+    481, 0, 0, 7708, 0, 7709, 560, 0, 561, 0, 0, 495, 8122, 902, 8121, 8120, 
+    7944, 7945, 0, 8124, 8136, 904, 7960, 7961, 8138, 905, 7976, 7977, 0, 
+    8140, 8154, 906, 8153, 8152, 0, 938, 7992, 7993, 8184, 908, 8008, 8009, 
+    0, 8172, 8170, 910, 8169, 8168, 0, 939, 0, 8025, 8186, 911, 8040, 8041, 
+    0, 8188, 0, 8116, 0, 8132, 8048, 940, 8113, 8112, 7936, 7937, 8118, 8115, 
+    8050, 941, 7952, 7953, 8052, 942, 7968, 7969, 8134, 8131, 8054, 943, 
+    8145, 8144, 0, 970, 7984, 7985, 8150, 0, 8056, 972, 8000, 8001, 8164, 
+    8165, 8058, 973, 8161, 8160, 0, 971, 8016, 8017, 8166, 0, 8060, 974, 
+    8032, 8033, 8182, 8179, 8146, 912, 8151, 0, 8162, 944, 8167, 0, 0, 8180, 
+    0, 979, 0, 980, 0, 1031, 0, 1232, 0, 1234, 0, 1027, 1024, 0, 0, 1238, 0, 
+    1025, 0, 1217, 0, 1244, 0, 1246, 1037, 0, 1250, 1049, 0, 1252, 0, 1036, 
+    0, 1254, 1262, 1038, 0, 1264, 1266, 0, 0, 1268, 0, 1272, 0, 1260, 0, 
+    1233, 0, 1235, 0, 1107, 1104, 0, 0, 1239, 0, 1105, 0, 1218, 0, 1245, 0, 
+    1247, 1117, 0, 1251, 1081, 0, 1253, 0, 1116, 0, 1255, 1263, 1118, 0, 
+    1265, 1267, 0, 0, 1269, 0, 1273, 0, 1261, 0, 1111, 1142, 0, 1143, 0, 0, 
+    1242, 0, 1243, 0, 1258, 0, 1259, 1570, 1571, 1573, 0, 0, 1572, 0, 1574, 
+    0, 1730, 0, 1747, 0, 1728, 0, 2345, 0, 2353, 0, 2356, 2507, 2508, 2891, 
+    2888, 2892, 0, 2964, 0, 0, 3018, 3020, 0, 0, 3019, 0, 3144, 0, 3264, 
+    3274, 3271, 3272, 0, 0, 3275, 0, 3402, 3404, 0, 0, 3403, 0, 3546, 3548, 
+    3550, 0, 3549, 4134, 0, 0, 6918, 0, 6920, 0, 6922, 0, 6924, 0, 6926, 0, 
+    6930, 0, 6971, 0, 6973, 0, 6976, 0, 6977, 0, 6979, 7736, 0, 7737, 0, 
+    7772, 0, 7773, 0, 7784, 0, 7785, 0, 7852, 0, 0, 7862, 7853, 0, 0, 7863, 
+    7878, 0, 7879, 0, 7896, 0, 7897, 0, 7938, 7940, 7942, 8064, 7939, 7941, 
+    7943, 8065, 0, 8066, 0, 8067, 0, 8068, 0, 8069, 0, 8070, 0, 8071, 7946, 
+    7948, 7950, 8072, 7947, 7949, 7951, 8073, 0, 8074, 0, 8075, 0, 8076, 0, 
+    8077, 0, 8078, 0, 8079, 7954, 7956, 7955, 7957, 7962, 7964, 7963, 7965, 
+    7970, 7972, 7974, 8080, 7971, 7973, 7975, 8081, 0, 8082, 0, 8083, 0, 
+    8084, 0, 8085, 0, 8086, 0, 8087, 7978, 7980, 7982, 8088, 7979, 7981, 
+    7983, 8089, 0, 8090, 0, 8091, 0, 8092, 0, 8093, 0, 8094, 0, 8095, 7986, 
+    7988, 7990, 0, 7987, 7989, 7991, 0, 7994, 7996, 7998, 0, 7995, 7997, 
+    7999, 0, 8002, 8004, 8003, 8005, 8010, 8012, 8011, 8013, 8018, 8020, 
+    8022, 0, 8019, 8021, 8023, 0, 8027, 8029, 8031, 0, 8034, 8036, 8038, 
+    8096, 8035, 8037, 8039, 8097, 0, 8098, 0, 8099, 0, 8100, 0, 8101, 0, 
+    8102, 0, 8103, 8042, 8044, 8046, 8104, 8043, 8045, 8047, 8105, 0, 8106, 
+    0, 8107, 0, 8108, 0, 8109, 0, 8110, 0, 8111, 0, 8114, 0, 8130, 0, 8178, 
+    0, 8119, 8141, 8142, 8143, 0, 0, 8135, 0, 8183, 8157, 8158, 8159, 0, 0, 
+    8602, 0, 8603, 0, 8622, 0, 8653, 0, 8655, 0, 8654, 0, 8708, 0, 8713, 0, 
+    8716, 0, 8740, 0, 8742, 0, 8769, 0, 8772, 0, 8775, 0, 8777, 0, 8813, 0, 
+    8802, 0, 8816, 0, 8817, 0, 8820, 0, 8821, 0, 8824, 0, 8825, 0, 8832, 0, 
+    8833, 0, 8928, 0, 8929, 0, 8836, 0, 8837, 0, 8840, 0, 8841, 0, 8930, 0, 
+    8931, 0, 8876, 0, 8877, 0, 8878, 0, 8879, 0, 8938, 0, 8939, 0, 8940, 0, 
+    8941, 12436, 0, 12364, 0, 12366, 0, 12368, 0, 12370, 0, 12372, 0, 12374, 
+    0, 12376, 0, 12378, 0, 12380, 0, 12382, 0, 12384, 0, 12386, 0, 12389, 0, 
+    12391, 0, 12393, 0, 12400, 12401, 12403, 12404, 12406, 12407, 12409, 
+    12410, 12412, 12413, 12446, 0, 12532, 0, 12460, 0, 12462, 0, 12464, 0, 
+    12466, 0, 12468, 0, 12470, 0, 12472, 0, 12474, 0, 12476, 0, 12478, 0, 
+    12480, 0, 12482, 0, 12485, 0, 12487, 0, 12489, 0, 12496, 12497, 12499, 
+    12500, 12502, 12503, 12505, 12506, 12508, 12509, 12535, 0, 12536, 0, 
+    12537, 0, 12538, 0, 12542, 0, 69786, 0, 69788, 0, 69803, 0, 0, 69934, 0, 
+    69935, 70475, 70476, 70844, 70843, 70846, 0, 0, 71098, 0, 71099, 
+};
+
diff --git a/src/hb-unicode-private.hh b/src/hb-unicode-private.hh
new file mode 100644 (file)
index 0000000..a2c59da
--- /dev/null
@@ -0,0 +1,317 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ * Copyright © 2011  Codethink Limited
+ * Copyright © 2010,2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Codethink Author(s): Ryan Lortie
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_UNICODE_PRIVATE_HH
+#define HB_UNICODE_PRIVATE_HH
+
+#include "hb-private.hh"
+#include "hb-object-private.hh"
+
+
+extern HB_INTERNAL const uint8_t _hb_modified_combining_class[256];
+
+/*
+ * hb_unicode_funcs_t
+ */
+
+#define HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS \
+  HB_UNICODE_FUNC_IMPLEMENT (combining_class) \
+  HB_UNICODE_FUNC_IMPLEMENT (eastasian_width) \
+  HB_UNICODE_FUNC_IMPLEMENT (general_category) \
+  HB_UNICODE_FUNC_IMPLEMENT (mirroring) \
+  HB_UNICODE_FUNC_IMPLEMENT (script) \
+  HB_UNICODE_FUNC_IMPLEMENT (compose) \
+  HB_UNICODE_FUNC_IMPLEMENT (decompose) \
+  HB_UNICODE_FUNC_IMPLEMENT (decompose_compatibility) \
+  /* ^--- Add new callbacks here */
+
+/* Simple callbacks are those taking a hb_codepoint_t and returning a hb_codepoint_t */
+#define HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS_SIMPLE \
+  HB_UNICODE_FUNC_IMPLEMENT (hb_unicode_combining_class_t, combining_class) \
+  HB_UNICODE_FUNC_IMPLEMENT (unsigned int, eastasian_width) \
+  HB_UNICODE_FUNC_IMPLEMENT (hb_unicode_general_category_t, general_category) \
+  HB_UNICODE_FUNC_IMPLEMENT (hb_codepoint_t, mirroring) \
+  HB_UNICODE_FUNC_IMPLEMENT (hb_script_t, script) \
+  /* ^--- Add new simple callbacks here */
+
+struct hb_unicode_funcs_t {
+  hb_object_header_t header;
+  ASSERT_POD ();
+
+  hb_unicode_funcs_t *parent;
+
+  bool immutable;
+
+#define HB_UNICODE_FUNC_IMPLEMENT(return_type, name) \
+  inline return_type name (hb_codepoint_t unicode) { return func.name (this, unicode, user_data.name); }
+HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS_SIMPLE
+#undef HB_UNICODE_FUNC_IMPLEMENT
+
+  inline hb_bool_t compose (hb_codepoint_t a, hb_codepoint_t b,
+                           hb_codepoint_t *ab)
+  {
+    *ab = 0;
+    if (unlikely (!a || !b)) return false;
+    return func.compose (this, a, b, ab, user_data.compose);
+  }
+
+  inline hb_bool_t decompose (hb_codepoint_t ab,
+                             hb_codepoint_t *a, hb_codepoint_t *b)
+  {
+    *a = ab; *b = 0;
+    return func.decompose (this, ab, a, b, user_data.decompose);
+  }
+
+  inline unsigned int decompose_compatibility (hb_codepoint_t  u,
+                                              hb_codepoint_t *decomposed)
+  {
+    unsigned int ret = func.decompose_compatibility (this, u, decomposed, user_data.decompose_compatibility);
+    if (ret == 1 && u == decomposed[0]) {
+      decomposed[0] = 0;
+      return 0;
+    }
+    decomposed[ret] = 0;
+    return ret;
+  }
+
+
+  inline unsigned int
+  modified_combining_class (hb_codepoint_t unicode)
+  {
+    /* XXX This hack belongs to the Myanmar shaper. */
+    if (unlikely (unicode == 0x1037u)) unicode = 0x103Au;
+
+    /* XXX This hack belongs to the SEA shaper (for Tai Tham):
+     * Reorder SAKOT to ensure it comes after any tone marks. */
+    if (unlikely (unicode == 0x1A60u)) return 254;
+
+    /* XXX This hack belongs to the Tibetan shaper:
+     * Reorder PADMA to ensure it comes after any vowel marks. */
+    if (unlikely (unicode == 0x0FC6u)) return 254;
+
+    return _hb_modified_combining_class[combining_class (unicode)];
+  }
+
+  static inline hb_bool_t
+  is_variation_selector (hb_codepoint_t unicode)
+  {
+    /* U+180B..180D MONGOLIAN FREE VARIATION SELECTORs are handled in the
+     * Arabic shaper.  No need to match them here. */
+    return unlikely (hb_in_ranges (unicode,
+                                  0xFE00u, 0xFE0Fu, /* VARIATION SELECTOR-1..16 */
+                                  0xE0100u, 0xE01EFu));  /* VARIATION SELECTOR-17..256 */
+  }
+
+  /* Default_Ignorable codepoints:
+   *
+   * Note: While U+115F, U+1160, U+3164 and U+FFA0 are Default_Ignorable,
+   * we do NOT want to hide them, as the way Uniscribe has implemented them
+   * is with regular spacing glyphs, and that's the way fonts are made to work.
+   * As such, we make exceptions for those four.
+   *
+   * Unicode 7.0:
+   * $ grep '; Default_Ignorable_Code_Point ' DerivedCoreProperties.txt | sed 's/;.*#/#/'
+   * 00AD          # Cf       SOFT HYPHEN
+   * 034F          # Mn       COMBINING GRAPHEME JOINER
+   * 061C          # Cf       ARABIC LETTER MARK
+   * 115F..1160    # Lo   [2] HANGUL CHOSEONG FILLER..HANGUL JUNGSEONG FILLER
+   * 17B4..17B5    # Mn   [2] KHMER VOWEL INHERENT AQ..KHMER VOWEL INHERENT AA
+   * 180B..180D    # Mn   [3] MONGOLIAN FREE VARIATION SELECTOR ONE..MONGOLIAN FREE VARIATION SELECTOR THREE
+   * 180E          # Cf       MONGOLIAN VOWEL SEPARATOR
+   * 200B..200F    # Cf   [5] ZERO WIDTH SPACE..RIGHT-TO-LEFT MARK
+   * 202A..202E    # Cf   [5] LEFT-TO-RIGHT EMBEDDING..RIGHT-TO-LEFT OVERRIDE
+   * 2060..2064    # Cf   [5] WORD JOINER..INVISIBLE PLUS
+   * 2065          # Cn       <reserved-2065>
+   * 2066..206F    # Cf  [10] LEFT-TO-RIGHT ISOLATE..NOMINAL DIGIT SHAPES
+   * 3164          # Lo       HANGUL FILLER
+   * FE00..FE0F    # Mn  [16] VARIATION SELECTOR-1..VARIATION SELECTOR-16
+   * FEFF          # Cf       ZERO WIDTH NO-BREAK SPACE
+   * FFA0          # Lo       HALFWIDTH HANGUL FILLER
+   * FFF0..FFF8    # Cn   [9] <reserved-FFF0>..<reserved-FFF8>
+   * 1BCA0..1BCA3  # Cf   [4] SHORTHAND FORMAT LETTER OVERLAP..SHORTHAND FORMAT UP STEP
+   * 1D173..1D17A  # Cf   [8] MUSICAL SYMBOL BEGIN BEAM..MUSICAL SYMBOL END PHRASE
+   * E0000         # Cn       <reserved-E0000>
+   * E0001         # Cf       LANGUAGE TAG
+   * E0002..E001F  # Cn  [30] <reserved-E0002>..<reserved-E001F>
+   * E0020..E007F  # Cf  [96] TAG SPACE..CANCEL TAG
+   * E0080..E00FF  # Cn [128] <reserved-E0080>..<reserved-E00FF>
+   * E0100..E01EF  # Mn [240] VARIATION SELECTOR-17..VARIATION SELECTOR-256
+   * E01F0..E0FFF  # Cn [3600] <reserved-E01F0>..<reserved-E0FFF>
+   */
+  static inline hb_bool_t
+  is_default_ignorable (hb_codepoint_t ch)
+  {
+    hb_codepoint_t plane = ch >> 16;
+    if (likely (plane == 0))
+    {
+      /* BMP */
+      hb_codepoint_t page = ch >> 8;
+      switch (page) {
+       case 0x00: return unlikely (ch == 0x00ADu);
+       case 0x03: return unlikely (ch == 0x034Fu);
+       case 0x06: return unlikely (ch == 0x061Cu);
+       case 0x17: return hb_in_range (ch, 0x17B4u, 0x17B5u);
+       case 0x18: return hb_in_range (ch, 0x180Bu, 0x180Eu);
+       case 0x20: return hb_in_ranges (ch, 0x200Bu, 0x200Fu,
+                                                           0x202Au, 0x202Eu,
+                                                           0x2060u, 0x206Fu);
+       case 0xFE: return hb_in_range (ch, 0xFE00u, 0xFE0Fu) || ch == 0xFEFFu;
+       case 0xFF: return hb_in_range (ch, 0xFFF0u, 0xFFF8u);
+       default: return false;
+      }
+    }
+    else
+    {
+      /* Other planes */
+      switch (plane) {
+       case 0x01: return hb_in_ranges (ch, 0x1BCA0u, 0x1BCA3u,
+                                           0x1D173u, 0x1D17Au);
+       case 0x0E: return hb_in_range (ch, 0xE0000u, 0xE0FFFu);
+       default: return false;
+      }
+    }
+  }
+
+
+  struct {
+#define HB_UNICODE_FUNC_IMPLEMENT(name) hb_unicode_##name##_func_t name;
+    HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_UNICODE_FUNC_IMPLEMENT
+  } func;
+
+  struct {
+#define HB_UNICODE_FUNC_IMPLEMENT(name) void *name;
+    HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_UNICODE_FUNC_IMPLEMENT
+  } user_data;
+
+  struct {
+#define HB_UNICODE_FUNC_IMPLEMENT(name) hb_destroy_func_t name;
+    HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_UNICODE_FUNC_IMPLEMENT
+  } destroy;
+};
+
+
+extern HB_INTERNAL const hb_unicode_funcs_t _hb_unicode_funcs_nil;
+
+
+/* Modified combining marks */
+
+/* Hebrew
+ *
+ * We permute the "fixed-position" classes 10-26 into the order
+ * described in the SBL Hebrew manual:
+ *
+ * http://www.sbl-site.org/Fonts/SBLHebrewUserManual1.5x.pdf
+ *
+ * (as recommended by:
+ *  http://forum.fontlab.com/archive-old-microsoft-volt-group/vista-and-diacritic-ordering-t6751.0.html)
+ *
+ * More details here:
+ * https://bugzilla.mozilla.org/show_bug.cgi?id=662055
+ */
+#define HB_MODIFIED_COMBINING_CLASS_CCC10 22 /* sheva */
+#define HB_MODIFIED_COMBINING_CLASS_CCC11 15 /* hataf segol */
+#define HB_MODIFIED_COMBINING_CLASS_CCC12 16 /* hataf patah */
+#define HB_MODIFIED_COMBINING_CLASS_CCC13 17 /* hataf qamats */
+#define HB_MODIFIED_COMBINING_CLASS_CCC14 23 /* hiriq */
+#define HB_MODIFIED_COMBINING_CLASS_CCC15 18 /* tsere */
+#define HB_MODIFIED_COMBINING_CLASS_CCC16 19 /* segol */
+#define HB_MODIFIED_COMBINING_CLASS_CCC17 20 /* patah */
+#define HB_MODIFIED_COMBINING_CLASS_CCC18 21 /* qamats */
+#define HB_MODIFIED_COMBINING_CLASS_CCC19 14 /* holam */
+#define HB_MODIFIED_COMBINING_CLASS_CCC20 24 /* qubuts */
+#define HB_MODIFIED_COMBINING_CLASS_CCC21 12 /* dagesh */
+#define HB_MODIFIED_COMBINING_CLASS_CCC22 25 /* meteg */
+#define HB_MODIFIED_COMBINING_CLASS_CCC23 13 /* rafe */
+#define HB_MODIFIED_COMBINING_CLASS_CCC24 10 /* shin dot */
+#define HB_MODIFIED_COMBINING_CLASS_CCC25 11 /* sin dot */
+#define HB_MODIFIED_COMBINING_CLASS_CCC26 26 /* point varika */
+
+/*
+ * Arabic
+ *
+ * Modify to move Shadda (ccc=33) before other marks.  See:
+ * http://unicode.org/faq/normalization.html#8
+ * http://unicode.org/faq/normalization.html#9
+ */
+#define HB_MODIFIED_COMBINING_CLASS_CCC27 28 /* fathatan */
+#define HB_MODIFIED_COMBINING_CLASS_CCC28 29 /* dammatan */
+#define HB_MODIFIED_COMBINING_CLASS_CCC29 30 /* kasratan */
+#define HB_MODIFIED_COMBINING_CLASS_CCC30 31 /* fatha */
+#define HB_MODIFIED_COMBINING_CLASS_CCC31 32 /* damma */
+#define HB_MODIFIED_COMBINING_CLASS_CCC32 33 /* kasra */
+#define HB_MODIFIED_COMBINING_CLASS_CCC33 27 /* shadda */
+#define HB_MODIFIED_COMBINING_CLASS_CCC34 34 /* sukun */
+#define HB_MODIFIED_COMBINING_CLASS_CCC35 35 /* superscript alef */
+
+/* Syriac */
+#define HB_MODIFIED_COMBINING_CLASS_CCC36 36 /* superscript alaph */
+
+/* Telugu
+ *
+ * Modify Telugu length marks (ccc=84, ccc=91).
+ * These are the only matras in the main Indic scripts range that have
+ * a non-zero ccc.  That makes them reorder with the Halant that is
+ * ccc=9.  Just zero them, we don't need them in our Indic shaper.
+ */
+#define HB_MODIFIED_COMBINING_CLASS_CCC84 0 /* length mark */
+#define HB_MODIFIED_COMBINING_CLASS_CCC91 0 /* ai length mark */
+
+/* Thai
+ *
+ * Modify U+0E38 and U+0E39 (ccc=103) to be reordered before U+0E3A (ccc=9).
+ * Assign 3, which is unassigned otherwise.
+ * Uniscribe does this reordering too.
+ */
+#define HB_MODIFIED_COMBINING_CLASS_CCC103 3 /* sara u / sara uu */
+#define HB_MODIFIED_COMBINING_CLASS_CCC107 107 /* mai * */
+
+/* Lao */
+#define HB_MODIFIED_COMBINING_CLASS_CCC118 118 /* sign u / sign uu */
+#define HB_MODIFIED_COMBINING_CLASS_CCC122 122 /* mai * */
+
+/* Tibetan */
+#define HB_MODIFIED_COMBINING_CLASS_CCC129 129 /* sign aa */
+#define HB_MODIFIED_COMBINING_CLASS_CCC130 130 /* sign i */
+#define HB_MODIFIED_COMBINING_CLASS_CCC132 132 /* sign u */
+
+
+/* Misc */
+
+#define HB_UNICODE_GENERAL_CATEGORY_IS_MARK(gen_cat) \
+       (FLAG (gen_cat) & \
+        (FLAG (HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK) | \
+         FLAG (HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK) | \
+         FLAG (HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK)))
+
+
+#endif /* HB_UNICODE_PRIVATE_HH */
diff --git a/src/hb-unicode.cc b/src/hb-unicode.cc
new file mode 100644 (file)
index 0000000..d59dfb2
--- /dev/null
@@ -0,0 +1,568 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ * Copyright © 2011  Codethink Limited
+ * Copyright © 2010,2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Codethink Author(s): Ryan Lortie
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-private.hh"
+
+#include "hb-unicode-private.hh"
+
+
+
+/*
+ * hb_unicode_funcs_t
+ */
+
+static hb_unicode_combining_class_t
+hb_unicode_combining_class_nil (hb_unicode_funcs_t *ufuncs    HB_UNUSED,
+                               hb_codepoint_t      unicode   HB_UNUSED,
+                               void               *user_data HB_UNUSED)
+{
+  return HB_UNICODE_COMBINING_CLASS_NOT_REORDERED;
+}
+
+static unsigned int
+hb_unicode_eastasian_width_nil (hb_unicode_funcs_t *ufuncs    HB_UNUSED,
+                               hb_codepoint_t      unicode   HB_UNUSED,
+                               void               *user_data HB_UNUSED)
+{
+  return 1;
+}
+
+static hb_unicode_general_category_t
+hb_unicode_general_category_nil (hb_unicode_funcs_t *ufuncs    HB_UNUSED,
+                                hb_codepoint_t      unicode   HB_UNUSED,
+                                void               *user_data HB_UNUSED)
+{
+  return HB_UNICODE_GENERAL_CATEGORY_OTHER_LETTER;
+}
+
+static hb_codepoint_t
+hb_unicode_mirroring_nil (hb_unicode_funcs_t *ufuncs    HB_UNUSED,
+                         hb_codepoint_t      unicode   HB_UNUSED,
+                         void               *user_data HB_UNUSED)
+{
+  return unicode;
+}
+
+static hb_script_t
+hb_unicode_script_nil (hb_unicode_funcs_t *ufuncs    HB_UNUSED,
+                      hb_codepoint_t      unicode   HB_UNUSED,
+                      void               *user_data HB_UNUSED)
+{
+  return HB_SCRIPT_UNKNOWN;
+}
+
+static hb_bool_t
+hb_unicode_compose_nil (hb_unicode_funcs_t *ufuncs    HB_UNUSED,
+                       hb_codepoint_t      a         HB_UNUSED,
+                       hb_codepoint_t      b         HB_UNUSED,
+                       hb_codepoint_t     *ab        HB_UNUSED,
+                       void               *user_data HB_UNUSED)
+{
+  return false;
+}
+
+static hb_bool_t
+hb_unicode_decompose_nil (hb_unicode_funcs_t *ufuncs    HB_UNUSED,
+                         hb_codepoint_t      ab        HB_UNUSED,
+                         hb_codepoint_t     *a         HB_UNUSED,
+                         hb_codepoint_t     *b         HB_UNUSED,
+                         void               *user_data HB_UNUSED)
+{
+  return false;
+}
+
+
+static unsigned int
+hb_unicode_decompose_compatibility_nil (hb_unicode_funcs_t *ufuncs     HB_UNUSED,
+                                       hb_codepoint_t      u          HB_UNUSED,
+                                       hb_codepoint_t     *decomposed HB_UNUSED,
+                                       void               *user_data  HB_UNUSED)
+{
+  return 0;
+}
+
+
+#define HB_UNICODE_FUNCS_IMPLEMENT_SET \
+  HB_UNICODE_FUNCS_IMPLEMENT (glib) \
+  HB_UNICODE_FUNCS_IMPLEMENT (icu) \
+  HB_UNICODE_FUNCS_IMPLEMENT (ucdn) \
+  HB_UNICODE_FUNCS_IMPLEMENT (nil) \
+  /* ^--- Add new callbacks before nil */
+
+#define hb_nil_get_unicode_funcs hb_unicode_funcs_get_empty
+
+/* Prototype them all */
+#define HB_UNICODE_FUNCS_IMPLEMENT(set) \
+extern "C" hb_unicode_funcs_t *hb_##set##_get_unicode_funcs (void);
+HB_UNICODE_FUNCS_IMPLEMENT_SET
+#undef HB_UNICODE_FUNCS_IMPLEMENT
+
+
+hb_unicode_funcs_t *
+hb_unicode_funcs_get_default (void)
+{
+#define HB_UNICODE_FUNCS_IMPLEMENT(set) \
+  return hb_##set##_get_unicode_funcs ();
+
+#ifdef HAVE_GLIB
+  HB_UNICODE_FUNCS_IMPLEMENT(glib)
+#elif defined(HAVE_ICU) && defined(HAVE_ICU_BUILTIN)
+  HB_UNICODE_FUNCS_IMPLEMENT(icu)
+#elif defined(HAVE_UCDN)
+  HB_UNICODE_FUNCS_IMPLEMENT(ucdn)
+#else
+#define HB_UNICODE_FUNCS_NIL 1
+  HB_UNICODE_FUNCS_IMPLEMENT(nil)
+#endif
+
+#undef HB_UNICODE_FUNCS_IMPLEMENT
+}
+
+#if !defined(HB_NO_UNICODE_FUNCS) && defined(HB_UNICODE_FUNCS_NIL)
+#ifdef _MSC_VER
+#pragma message("Could not find any Unicode functions implementation, you have to provide your own")
+#pragma message("To suppress this warnings, define HB_NO_UNICODE_FUNCS")
+#else
+#warning "Could not find any Unicode functions implementation, you have to provide your own"
+#warning "To suppress this warning, define HB_NO_UNICODE_FUNCS"
+#endif
+#endif
+
+/**
+ * hb_unicode_funcs_create: (Xconstructor)
+ * @parent: (allow-none):
+ *
+ * 
+ *
+ * Return value: (transfer full):
+ *
+ * Since: 1.0
+ **/
+hb_unicode_funcs_t *
+hb_unicode_funcs_create (hb_unicode_funcs_t *parent)
+{
+  hb_unicode_funcs_t *ufuncs;
+
+  if (!(ufuncs = hb_object_create<hb_unicode_funcs_t> ()))
+    return hb_unicode_funcs_get_empty ();
+
+  if (!parent)
+    parent = hb_unicode_funcs_get_empty ();
+
+  hb_unicode_funcs_make_immutable (parent);
+  ufuncs->parent = hb_unicode_funcs_reference (parent);
+
+  ufuncs->func = parent->func;
+
+  /* We can safely copy user_data from parent since we hold a reference
+   * onto it and it's immutable.  We should not copy the destroy notifiers
+   * though. */
+  ufuncs->user_data = parent->user_data;
+
+  return ufuncs;
+}
+
+
+const hb_unicode_funcs_t _hb_unicode_funcs_nil = {
+  HB_OBJECT_HEADER_STATIC,
+
+  NULL, /* parent */
+  true, /* immutable */
+  {
+#define HB_UNICODE_FUNC_IMPLEMENT(name) hb_unicode_##name##_nil,
+    HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_UNICODE_FUNC_IMPLEMENT
+  }
+};
+
+/**
+ * hb_unicode_funcs_get_empty:
+ *
+ * 
+ *
+ * Return value: (transfer full):
+ *
+ * Since: 1.0
+ **/
+hb_unicode_funcs_t *
+hb_unicode_funcs_get_empty (void)
+{
+  return const_cast<hb_unicode_funcs_t *> (&_hb_unicode_funcs_nil);
+}
+
+/**
+ * hb_unicode_funcs_reference: (skip)
+ * @ufuncs: Unicode functions.
+ *
+ * 
+ *
+ * Return value: (transfer full):
+ *
+ * Since: 1.0
+ **/
+hb_unicode_funcs_t *
+hb_unicode_funcs_reference (hb_unicode_funcs_t *ufuncs)
+{
+  return hb_object_reference (ufuncs);
+}
+
+/**
+ * hb_unicode_funcs_destroy: (skip)
+ * @ufuncs: Unicode functions.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_unicode_funcs_destroy (hb_unicode_funcs_t *ufuncs)
+{
+  if (!hb_object_destroy (ufuncs)) return;
+
+#define HB_UNICODE_FUNC_IMPLEMENT(name) \
+  if (ufuncs->destroy.name) ufuncs->destroy.name (ufuncs->user_data.name);
+    HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_UNICODE_FUNC_IMPLEMENT
+
+  hb_unicode_funcs_destroy (ufuncs->parent);
+
+  free (ufuncs);
+}
+
+/**
+ * hb_unicode_funcs_set_user_data: (skip)
+ * @ufuncs: Unicode functions.
+ * @key: 
+ * @data: 
+ * @destroy: 
+ * @replace: 
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_unicode_funcs_set_user_data (hb_unicode_funcs_t *ufuncs,
+                               hb_user_data_key_t *key,
+                               void *              data,
+                               hb_destroy_func_t   destroy,
+                               hb_bool_t           replace)
+{
+  return hb_object_set_user_data (ufuncs, key, data, destroy, replace);
+}
+
+/**
+ * hb_unicode_funcs_get_user_data: (skip)
+ * @ufuncs: Unicode functions.
+ * @key: 
+ *
+ * 
+ *
+ * Return value: (transfer none):
+ *
+ * Since: 1.0
+ **/
+void *
+hb_unicode_funcs_get_user_data (hb_unicode_funcs_t *ufuncs,
+                               hb_user_data_key_t *key)
+{
+  return hb_object_get_user_data (ufuncs, key);
+}
+
+
+/**
+ * hb_unicode_funcs_make_immutable:
+ * @ufuncs: Unicode functions.
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_unicode_funcs_make_immutable (hb_unicode_funcs_t *ufuncs)
+{
+  if (unlikely (hb_object_is_inert (ufuncs)))
+    return;
+
+  ufuncs->immutable = true;
+}
+
+/**
+ * hb_unicode_funcs_is_immutable:
+ * @ufuncs: Unicode functions.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_unicode_funcs_is_immutable (hb_unicode_funcs_t *ufuncs)
+{
+  return ufuncs->immutable;
+}
+
+/**
+ * hb_unicode_funcs_get_parent:
+ * @ufuncs: Unicode functions.
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_unicode_funcs_t *
+hb_unicode_funcs_get_parent (hb_unicode_funcs_t *ufuncs)
+{
+  return ufuncs->parent ? ufuncs->parent : hb_unicode_funcs_get_empty ();
+}
+
+
+#define HB_UNICODE_FUNC_IMPLEMENT(name)                                                \
+                                                                               \
+void                                                                           \
+hb_unicode_funcs_set_##name##_func (hb_unicode_funcs_t            *ufuncs,     \
+                                   hb_unicode_##name##_func_t      func,       \
+                                   void                           *user_data,  \
+                                   hb_destroy_func_t               destroy)    \
+{                                                                              \
+  if (ufuncs->immutable)                                                       \
+    return;                                                                    \
+                                                                               \
+  if (ufuncs->destroy.name)                                                    \
+    ufuncs->destroy.name (ufuncs->user_data.name);                             \
+                                                                               \
+  if (func) {                                                                  \
+    ufuncs->func.name = func;                                                  \
+    ufuncs->user_data.name = user_data;                                                \
+    ufuncs->destroy.name = destroy;                                            \
+  } else {                                                                     \
+    ufuncs->func.name = ufuncs->parent->func.name;                             \
+    ufuncs->user_data.name = ufuncs->parent->user_data.name;                   \
+    ufuncs->destroy.name = NULL;                                               \
+  }                                                                            \
+}
+
+HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS
+#undef HB_UNICODE_FUNC_IMPLEMENT
+
+
+#define HB_UNICODE_FUNC_IMPLEMENT(return_type, name)                           \
+                                                                               \
+return_type                                                                    \
+hb_unicode_##name (hb_unicode_funcs_t *ufuncs,                                 \
+                  hb_codepoint_t      unicode)                                 \
+{                                                                              \
+  return ufuncs->name (unicode);                                               \
+}
+HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS_SIMPLE
+#undef HB_UNICODE_FUNC_IMPLEMENT
+
+/**
+ * hb_unicode_compose:
+ * @ufuncs: Unicode functions.
+ * @a: 
+ * @b: 
+ * @ab: (out):
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_unicode_compose (hb_unicode_funcs_t *ufuncs,
+                   hb_codepoint_t      a,
+                   hb_codepoint_t      b,
+                   hb_codepoint_t     *ab)
+{
+  return ufuncs->compose (a, b, ab);
+}
+
+/**
+ * hb_unicode_decompose:
+ * @ufuncs: Unicode functions.
+ * @ab: 
+ * @a: (out):
+ * @b: (out):
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+hb_bool_t
+hb_unicode_decompose (hb_unicode_funcs_t *ufuncs,
+                     hb_codepoint_t      ab,
+                     hb_codepoint_t     *a,
+                     hb_codepoint_t     *b)
+{
+  return ufuncs->decompose (ab, a, b);
+}
+
+/**
+ * hb_unicode_decompose_compatibility:
+ * @ufuncs: Unicode functions.
+ * @u: 
+ * @decomposed: (out):
+ *
+ * 
+ *
+ * Return value: 
+ *
+ * Since: 1.0
+ **/
+unsigned int
+hb_unicode_decompose_compatibility (hb_unicode_funcs_t *ufuncs,
+                                   hb_codepoint_t      u,
+                                   hb_codepoint_t     *decomposed)
+{
+  return ufuncs->decompose_compatibility (u, decomposed);
+}
+
+
+/* See hb-unicode-private.hh for details. */
+const uint8_t
+_hb_modified_combining_class[256] =
+{
+  0, /* HB_UNICODE_COMBINING_CLASS_NOT_REORDERED */
+  1, /* HB_UNICODE_COMBINING_CLASS_OVERLAY */
+  2, 3, 4, 5, 6,
+  7, /* HB_UNICODE_COMBINING_CLASS_NUKTA */
+  8, /* HB_UNICODE_COMBINING_CLASS_KANA_VOICING */
+  9, /* HB_UNICODE_COMBINING_CLASS_VIRAMA */
+
+  /* Hebrew */
+  HB_MODIFIED_COMBINING_CLASS_CCC10,
+  HB_MODIFIED_COMBINING_CLASS_CCC11,
+  HB_MODIFIED_COMBINING_CLASS_CCC12,
+  HB_MODIFIED_COMBINING_CLASS_CCC13,
+  HB_MODIFIED_COMBINING_CLASS_CCC14,
+  HB_MODIFIED_COMBINING_CLASS_CCC15,
+  HB_MODIFIED_COMBINING_CLASS_CCC16,
+  HB_MODIFIED_COMBINING_CLASS_CCC17,
+  HB_MODIFIED_COMBINING_CLASS_CCC18,
+  HB_MODIFIED_COMBINING_CLASS_CCC19,
+  HB_MODIFIED_COMBINING_CLASS_CCC20,
+  HB_MODIFIED_COMBINING_CLASS_CCC21,
+  HB_MODIFIED_COMBINING_CLASS_CCC22,
+  HB_MODIFIED_COMBINING_CLASS_CCC23,
+  HB_MODIFIED_COMBINING_CLASS_CCC24,
+  HB_MODIFIED_COMBINING_CLASS_CCC25,
+  HB_MODIFIED_COMBINING_CLASS_CCC26,
+
+  /* Arabic */
+  HB_MODIFIED_COMBINING_CLASS_CCC27,
+  HB_MODIFIED_COMBINING_CLASS_CCC28,
+  HB_MODIFIED_COMBINING_CLASS_CCC29,
+  HB_MODIFIED_COMBINING_CLASS_CCC30,
+  HB_MODIFIED_COMBINING_CLASS_CCC31,
+  HB_MODIFIED_COMBINING_CLASS_CCC32,
+  HB_MODIFIED_COMBINING_CLASS_CCC33,
+  HB_MODIFIED_COMBINING_CLASS_CCC34,
+  HB_MODIFIED_COMBINING_CLASS_CCC35,
+
+  /* Syriac */
+  HB_MODIFIED_COMBINING_CLASS_CCC36,
+
+  37, 38, 39,
+  40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
+  60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
+  80, 81, 82, 83,
+
+  /* Telugu */
+  HB_MODIFIED_COMBINING_CLASS_CCC84,
+  85, 86, 87, 88, 89, 90,
+  HB_MODIFIED_COMBINING_CLASS_CCC91,
+  92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102,
+
+  /* Thai */
+  HB_MODIFIED_COMBINING_CLASS_CCC103,
+  104, 105, 106,
+  HB_MODIFIED_COMBINING_CLASS_CCC107,
+  108, 109, 110, 111, 112, 113, 114, 115, 116, 117,
+
+  /* Lao */
+  HB_MODIFIED_COMBINING_CLASS_CCC118,
+  119, 120, 121,
+  HB_MODIFIED_COMBINING_CLASS_CCC122,
+  123, 124, 125, 126, 127, 128,
+
+  /* Tibetan */
+  HB_MODIFIED_COMBINING_CLASS_CCC129,
+  HB_MODIFIED_COMBINING_CLASS_CCC130,
+  131,
+  HB_MODIFIED_COMBINING_CLASS_CCC132,
+  133, 134, 135, 136, 137, 138, 139,
+
+
+  140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
+  150, 151, 152, 153, 154, 155, 156, 157, 158, 159,
+  160, 161, 162, 163, 164, 165, 166, 167, 168, 169,
+  170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
+  180, 181, 182, 183, 184, 185, 186, 187, 188, 189,
+  190, 191, 192, 193, 194, 195, 196, 197, 198, 199,
+
+  200, /* HB_UNICODE_COMBINING_CLASS_ATTACHED_BELOW_LEFT */
+  201,
+  202, /* HB_UNICODE_COMBINING_CLASS_ATTACHED_BELOW */
+  203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213,
+  214, /* HB_UNICODE_COMBINING_CLASS_ATTACHED_ABOVE */
+  215,
+  216, /* HB_UNICODE_COMBINING_CLASS_ATTACHED_ABOVE_RIGHT */
+  217,
+  218, /* HB_UNICODE_COMBINING_CLASS_BELOW_LEFT */
+  219,
+  220, /* HB_UNICODE_COMBINING_CLASS_BELOW */
+  221,
+  222, /* HB_UNICODE_COMBINING_CLASS_BELOW_RIGHT */
+  223,
+  224, /* HB_UNICODE_COMBINING_CLASS_LEFT */
+  225,
+  226, /* HB_UNICODE_COMBINING_CLASS_RIGHT */
+  227,
+  228, /* HB_UNICODE_COMBINING_CLASS_ABOVE_LEFT */
+  229,
+  230, /* HB_UNICODE_COMBINING_CLASS_ABOVE */
+  231,
+  232, /* HB_UNICODE_COMBINING_CLASS_ABOVE_RIGHT */
+  233, /* HB_UNICODE_COMBINING_CLASS_DOUBLE_BELOW */
+  234, /* HB_UNICODE_COMBINING_CLASS_DOUBLE_ABOVE */
+  235, 236, 237, 238, 239,
+  240, /* HB_UNICODE_COMBINING_CLASS_IOTA_SUBSCRIPT */
+  241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
+  255, /* HB_UNICODE_COMBINING_CLASS_INVALID */
+};
diff --git a/src/hb-unicode.h b/src/hb-unicode.h
new file mode 100644 (file)
index 0000000..1c4e097
--- /dev/null
@@ -0,0 +1,445 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ * Copyright © 2011  Codethink Limited
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ * Codethink Author(s): Ryan Lortie
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_H_IN
+#error "Include <hb.h> instead."
+#endif
+
+#ifndef HB_UNICODE_H
+#define HB_UNICODE_H
+
+#include "hb-common.h"
+
+HB_BEGIN_DECLS
+
+
+/* hb_unicode_general_category_t */
+
+/* Unicode Character Database property: General_Category (gc) */
+typedef enum
+{
+  HB_UNICODE_GENERAL_CATEGORY_CONTROL,                 /* Cc */
+  HB_UNICODE_GENERAL_CATEGORY_FORMAT,                  /* Cf */
+  HB_UNICODE_GENERAL_CATEGORY_UNASSIGNED,              /* Cn */
+  HB_UNICODE_GENERAL_CATEGORY_PRIVATE_USE,             /* Co */
+  HB_UNICODE_GENERAL_CATEGORY_SURROGATE,               /* Cs */
+  HB_UNICODE_GENERAL_CATEGORY_LOWERCASE_LETTER,                /* Ll */
+  HB_UNICODE_GENERAL_CATEGORY_MODIFIER_LETTER,         /* Lm */
+  HB_UNICODE_GENERAL_CATEGORY_OTHER_LETTER,            /* Lo */
+  HB_UNICODE_GENERAL_CATEGORY_TITLECASE_LETTER,                /* Lt */
+  HB_UNICODE_GENERAL_CATEGORY_UPPERCASE_LETTER,                /* Lu */
+  HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK,            /* Mc */
+  HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK,          /* Me */
+  HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK,                /* Mn */
+  HB_UNICODE_GENERAL_CATEGORY_DECIMAL_NUMBER,          /* Nd */
+  HB_UNICODE_GENERAL_CATEGORY_LETTER_NUMBER,           /* Nl */
+  HB_UNICODE_GENERAL_CATEGORY_OTHER_NUMBER,            /* No */
+  HB_UNICODE_GENERAL_CATEGORY_CONNECT_PUNCTUATION,     /* Pc */
+  HB_UNICODE_GENERAL_CATEGORY_DASH_PUNCTUATION,                /* Pd */
+  HB_UNICODE_GENERAL_CATEGORY_CLOSE_PUNCTUATION,       /* Pe */
+  HB_UNICODE_GENERAL_CATEGORY_FINAL_PUNCTUATION,       /* Pf */
+  HB_UNICODE_GENERAL_CATEGORY_INITIAL_PUNCTUATION,     /* Pi */
+  HB_UNICODE_GENERAL_CATEGORY_OTHER_PUNCTUATION,       /* Po */
+  HB_UNICODE_GENERAL_CATEGORY_OPEN_PUNCTUATION,                /* Ps */
+  HB_UNICODE_GENERAL_CATEGORY_CURRENCY_SYMBOL,         /* Sc */
+  HB_UNICODE_GENERAL_CATEGORY_MODIFIER_SYMBOL,         /* Sk */
+  HB_UNICODE_GENERAL_CATEGORY_MATH_SYMBOL,             /* Sm */
+  HB_UNICODE_GENERAL_CATEGORY_OTHER_SYMBOL,            /* So */
+  HB_UNICODE_GENERAL_CATEGORY_LINE_SEPARATOR,          /* Zl */
+  HB_UNICODE_GENERAL_CATEGORY_PARAGRAPH_SEPARATOR,     /* Zp */
+  HB_UNICODE_GENERAL_CATEGORY_SPACE_SEPARATOR          /* Zs */
+} hb_unicode_general_category_t;
+
+/* hb_unicode_combining_class_t */
+
+/* Note: newer versions of Unicode may add new values.  Clients should be ready to handle
+ * any value in the 0..254 range being returned from hb_unicode_combining_class().
+ */
+
+/* Unicode Character Database property: Canonical_Combining_Class (ccc) */
+typedef enum
+{
+  HB_UNICODE_COMBINING_CLASS_NOT_REORDERED     = 0,
+  HB_UNICODE_COMBINING_CLASS_OVERLAY           = 1,
+  HB_UNICODE_COMBINING_CLASS_NUKTA             = 7,
+  HB_UNICODE_COMBINING_CLASS_KANA_VOICING      = 8,
+  HB_UNICODE_COMBINING_CLASS_VIRAMA            = 9,
+
+  /* Hebrew */
+  HB_UNICODE_COMBINING_CLASS_CCC10     =  10,
+  HB_UNICODE_COMBINING_CLASS_CCC11     =  11,
+  HB_UNICODE_COMBINING_CLASS_CCC12     =  12,
+  HB_UNICODE_COMBINING_CLASS_CCC13     =  13,
+  HB_UNICODE_COMBINING_CLASS_CCC14     =  14,
+  HB_UNICODE_COMBINING_CLASS_CCC15     =  15,
+  HB_UNICODE_COMBINING_CLASS_CCC16     =  16,
+  HB_UNICODE_COMBINING_CLASS_CCC17     =  17,
+  HB_UNICODE_COMBINING_CLASS_CCC18     =  18,
+  HB_UNICODE_COMBINING_CLASS_CCC19     =  19,
+  HB_UNICODE_COMBINING_CLASS_CCC20     =  20,
+  HB_UNICODE_COMBINING_CLASS_CCC21     =  21,
+  HB_UNICODE_COMBINING_CLASS_CCC22     =  22,
+  HB_UNICODE_COMBINING_CLASS_CCC23     =  23,
+  HB_UNICODE_COMBINING_CLASS_CCC24     =  24,
+  HB_UNICODE_COMBINING_CLASS_CCC25     =  25,
+  HB_UNICODE_COMBINING_CLASS_CCC26     =  26,
+
+  /* Arabic */
+  HB_UNICODE_COMBINING_CLASS_CCC27     =  27,
+  HB_UNICODE_COMBINING_CLASS_CCC28     =  28,
+  HB_UNICODE_COMBINING_CLASS_CCC29     =  29,
+  HB_UNICODE_COMBINING_CLASS_CCC30     =  30,
+  HB_UNICODE_COMBINING_CLASS_CCC31     =  31,
+  HB_UNICODE_COMBINING_CLASS_CCC32     =  32,
+  HB_UNICODE_COMBINING_CLASS_CCC33     =  33,
+  HB_UNICODE_COMBINING_CLASS_CCC34     =  34,
+  HB_UNICODE_COMBINING_CLASS_CCC35     =  35,
+
+  /* Syriac */
+  HB_UNICODE_COMBINING_CLASS_CCC36     =  36,
+
+  /* Telugu */
+  HB_UNICODE_COMBINING_CLASS_CCC84     =  84,
+  HB_UNICODE_COMBINING_CLASS_CCC91     =  91,
+
+  /* Thai */
+  HB_UNICODE_COMBINING_CLASS_CCC103    = 103,
+  HB_UNICODE_COMBINING_CLASS_CCC107    = 107,
+
+  /* Lao */
+  HB_UNICODE_COMBINING_CLASS_CCC118    = 118,
+  HB_UNICODE_COMBINING_CLASS_CCC122    = 122,
+
+  /* Tibetan */
+  HB_UNICODE_COMBINING_CLASS_CCC129    = 129,
+  HB_UNICODE_COMBINING_CLASS_CCC130    = 130,
+  HB_UNICODE_COMBINING_CLASS_CCC133    = 132,
+
+
+  HB_UNICODE_COMBINING_CLASS_ATTACHED_BELOW_LEFT       = 200,
+  HB_UNICODE_COMBINING_CLASS_ATTACHED_BELOW            = 202,
+  HB_UNICODE_COMBINING_CLASS_ATTACHED_ABOVE            = 214,
+  HB_UNICODE_COMBINING_CLASS_ATTACHED_ABOVE_RIGHT      = 216,
+  HB_UNICODE_COMBINING_CLASS_BELOW_LEFT                        = 218,
+  HB_UNICODE_COMBINING_CLASS_BELOW                     = 220,
+  HB_UNICODE_COMBINING_CLASS_BELOW_RIGHT               = 222,
+  HB_UNICODE_COMBINING_CLASS_LEFT                      = 224,
+  HB_UNICODE_COMBINING_CLASS_RIGHT                     = 226,
+  HB_UNICODE_COMBINING_CLASS_ABOVE_LEFT                        = 228,
+  HB_UNICODE_COMBINING_CLASS_ABOVE                     = 230,
+  HB_UNICODE_COMBINING_CLASS_ABOVE_RIGHT               = 232,
+  HB_UNICODE_COMBINING_CLASS_DOUBLE_BELOW              = 233,
+  HB_UNICODE_COMBINING_CLASS_DOUBLE_ABOVE              = 234,
+
+  HB_UNICODE_COMBINING_CLASS_IOTA_SUBSCRIPT            = 240,
+
+  HB_UNICODE_COMBINING_CLASS_INVALID   = 255
+} hb_unicode_combining_class_t;
+
+
+/*
+ * hb_unicode_funcs_t
+ */
+
+typedef struct hb_unicode_funcs_t hb_unicode_funcs_t;
+
+
+/*
+ * just give me the best implementation you've got there.
+ */
+hb_unicode_funcs_t *
+hb_unicode_funcs_get_default (void);
+
+
+hb_unicode_funcs_t *
+hb_unicode_funcs_create (hb_unicode_funcs_t *parent);
+
+hb_unicode_funcs_t *
+hb_unicode_funcs_get_empty (void);
+
+hb_unicode_funcs_t *
+hb_unicode_funcs_reference (hb_unicode_funcs_t *ufuncs);
+
+void
+hb_unicode_funcs_destroy (hb_unicode_funcs_t *ufuncs);
+
+hb_bool_t
+hb_unicode_funcs_set_user_data (hb_unicode_funcs_t *ufuncs,
+                               hb_user_data_key_t *key,
+                               void *              data,
+                               hb_destroy_func_t   destroy,
+                               hb_bool_t           replace);
+
+
+void *
+hb_unicode_funcs_get_user_data (hb_unicode_funcs_t *ufuncs,
+                               hb_user_data_key_t *key);
+
+
+void
+hb_unicode_funcs_make_immutable (hb_unicode_funcs_t *ufuncs);
+
+hb_bool_t
+hb_unicode_funcs_is_immutable (hb_unicode_funcs_t *ufuncs);
+
+hb_unicode_funcs_t *
+hb_unicode_funcs_get_parent (hb_unicode_funcs_t *ufuncs);
+
+
+/*
+ * funcs
+ */
+
+/* typedefs */
+
+typedef hb_unicode_combining_class_t   (*hb_unicode_combining_class_func_t)    (hb_unicode_funcs_t *ufuncs,
+                                                                                hb_codepoint_t      unicode,
+                                                                                void               *user_data);
+typedef unsigned int                   (*hb_unicode_eastasian_width_func_t)    (hb_unicode_funcs_t *ufuncs,
+                                                                                hb_codepoint_t      unicode,
+                                                                                void               *user_data);
+typedef hb_unicode_general_category_t  (*hb_unicode_general_category_func_t)   (hb_unicode_funcs_t *ufuncs,
+                                                                                hb_codepoint_t      unicode,
+                                                                                void               *user_data);
+typedef hb_codepoint_t                 (*hb_unicode_mirroring_func_t)          (hb_unicode_funcs_t *ufuncs,
+                                                                                hb_codepoint_t      unicode,
+                                                                                void               *user_data);
+typedef hb_script_t                    (*hb_unicode_script_func_t)             (hb_unicode_funcs_t *ufuncs,
+                                                                                hb_codepoint_t      unicode,
+                                                                                void               *user_data);
+
+typedef hb_bool_t                      (*hb_unicode_compose_func_t)            (hb_unicode_funcs_t *ufuncs,
+                                                                                hb_codepoint_t      a,
+                                                                                hb_codepoint_t      b,
+                                                                                hb_codepoint_t     *ab,
+                                                                                void               *user_data);
+typedef hb_bool_t                      (*hb_unicode_decompose_func_t)          (hb_unicode_funcs_t *ufuncs,
+                                                                                hb_codepoint_t      ab,
+                                                                                hb_codepoint_t     *a,
+                                                                                hb_codepoint_t     *b,
+                                                                                void               *user_data);
+
+/**
+ * hb_unicode_decompose_compatibility_func_t:
+ * @ufuncs: a Unicode function structure
+ * @u: codepoint to decompose
+ * @decomposed: address of codepoint array (of length %HB_UNICODE_MAX_DECOMPOSITION_LEN) to write decomposition into
+ * @user_data: user data pointer as passed to hb_unicode_funcs_set_decompose_compatibility_func()
+ *
+ * Fully decompose @u to its Unicode compatibility decomposition. The codepoints of the decomposition will be written to @decomposed.
+ * The complete length of the decomposition will be returned.
+ *
+ * If @u has no compatibility decomposition, zero should be returned.
+ *
+ * The Unicode standard guarantees that a buffer of length %HB_UNICODE_MAX_DECOMPOSITION_LEN codepoints will always be sufficient for any
+ * compatibility decomposition plus an terminating value of 0.  Consequently, @decompose must be allocated by the caller to be at least this length.  Implementations
+ * of this function type must ensure that they do not write past the provided array.
+ *
+ * Return value: number of codepoints in the full compatibility decomposition of @u, or 0 if no decomposition available.
+ */
+typedef unsigned int                   (*hb_unicode_decompose_compatibility_func_t)    (hb_unicode_funcs_t *ufuncs,
+                                                                                        hb_codepoint_t      u,
+                                                                                        hb_codepoint_t     *decomposed,
+                                                                                        void               *user_data);
+
+/* See Unicode 6.1 for details on the maximum decomposition length. */
+#define HB_UNICODE_MAX_DECOMPOSITION_LEN (18+1) /* codepoints */
+
+/* setters */
+
+/**
+ * hb_unicode_funcs_set_combining_class_func:
+ * @ufuncs: a Unicode function structure
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_unicode_funcs_set_combining_class_func (hb_unicode_funcs_t *ufuncs,
+                                          hb_unicode_combining_class_func_t func,
+                                          void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_unicode_funcs_set_eastasian_width_func:
+ * @ufuncs: a Unicode function structure
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_unicode_funcs_set_eastasian_width_func (hb_unicode_funcs_t *ufuncs,
+                                          hb_unicode_eastasian_width_func_t func,
+                                          void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_unicode_funcs_set_general_category_func:
+ * @ufuncs: a Unicode function structure
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_unicode_funcs_set_general_category_func (hb_unicode_funcs_t *ufuncs,
+                                           hb_unicode_general_category_func_t func,
+                                           void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_unicode_funcs_set_mirroring_func:
+ * @ufuncs: a Unicode function structure
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_unicode_funcs_set_mirroring_func (hb_unicode_funcs_t *ufuncs,
+                                    hb_unicode_mirroring_func_t func,
+                                    void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_unicode_funcs_set_script_func:
+ * @ufuncs: a Unicode function structure
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_unicode_funcs_set_script_func (hb_unicode_funcs_t *ufuncs,
+                                 hb_unicode_script_func_t func,
+                                 void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_unicode_funcs_set_compose_func:
+ * @ufuncs: a Unicode function structure
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_unicode_funcs_set_compose_func (hb_unicode_funcs_t *ufuncs,
+                                  hb_unicode_compose_func_t func,
+                                  void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_unicode_funcs_set_decompose_func:
+ * @ufuncs: a Unicode function structure
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_unicode_funcs_set_decompose_func (hb_unicode_funcs_t *ufuncs,
+                                    hb_unicode_decompose_func_t func,
+                                    void *user_data, hb_destroy_func_t destroy);
+
+/**
+ * hb_unicode_funcs_set_decompose_compatibility_func:
+ * @ufuncs: a Unicode function structure
+ * @func: (closure user_data) (destroy destroy) (scope notified):
+ * @user_data:
+ * @destroy:
+ *
+ * 
+ *
+ * Since: 1.0
+ **/
+void
+hb_unicode_funcs_set_decompose_compatibility_func (hb_unicode_funcs_t *ufuncs,
+                                                  hb_unicode_decompose_compatibility_func_t func,
+                                                  void *user_data, hb_destroy_func_t destroy);
+
+/* accessors */
+
+hb_unicode_combining_class_t
+hb_unicode_combining_class (hb_unicode_funcs_t *ufuncs,
+                           hb_codepoint_t unicode);
+
+unsigned int
+hb_unicode_eastasian_width (hb_unicode_funcs_t *ufuncs,
+                           hb_codepoint_t unicode);
+
+hb_unicode_general_category_t
+hb_unicode_general_category (hb_unicode_funcs_t *ufuncs,
+                            hb_codepoint_t unicode);
+
+hb_codepoint_t
+hb_unicode_mirroring (hb_unicode_funcs_t *ufuncs,
+                     hb_codepoint_t unicode);
+
+hb_script_t
+hb_unicode_script (hb_unicode_funcs_t *ufuncs,
+                  hb_codepoint_t unicode);
+
+hb_bool_t
+hb_unicode_compose (hb_unicode_funcs_t *ufuncs,
+                   hb_codepoint_t      a,
+                   hb_codepoint_t      b,
+                   hb_codepoint_t     *ab);
+hb_bool_t
+hb_unicode_decompose (hb_unicode_funcs_t *ufuncs,
+                     hb_codepoint_t      ab,
+                     hb_codepoint_t     *a,
+                     hb_codepoint_t     *b);
+
+unsigned int
+hb_unicode_decompose_compatibility (hb_unicode_funcs_t *ufuncs,
+                                   hb_codepoint_t      u,
+                                   hb_codepoint_t     *decomposed);
+
+HB_END_DECLS
+
+#endif /* HB_UNICODE_H */
diff --git a/src/hb-uniscribe.cc b/src/hb-uniscribe.cc
new file mode 100644 (file)
index 0000000..74ae3a3
--- /dev/null
@@ -0,0 +1,1015 @@
+/*
+ * Copyright © 2011,2012,2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#define HB_SHAPER uniscribe
+#include "hb-shaper-impl-private.hh"
+
+#include <windows.h>
+#include <usp10.h>
+#include <rpc.h>
+
+#include "hb-uniscribe.h"
+
+#include "hb-open-file-private.hh"
+#include "hb-ot-name-table.hh"
+#include "hb-ot-tag.h"
+
+
+#ifndef HB_DEBUG_UNISCRIBE
+#define HB_DEBUG_UNISCRIBE (HB_DEBUG+0)
+#endif
+
+
+typedef HRESULT (WINAPI *SIOT) /*ScriptItemizeOpenType*/(
+  const WCHAR *pwcInChars,
+  int cInChars,
+  int cMaxItems,
+  const SCRIPT_CONTROL *psControl,
+  const SCRIPT_STATE *psState,
+  SCRIPT_ITEM *pItems,
+  OPENTYPE_TAG *pScriptTags,
+  int *pcItems
+);
+
+typedef HRESULT (WINAPI *SSOT) /*ScriptShapeOpenType*/(
+  HDC hdc,
+  SCRIPT_CACHE *psc,
+  SCRIPT_ANALYSIS *psa,
+  OPENTYPE_TAG tagScript,
+  OPENTYPE_TAG tagLangSys,
+  int *rcRangeChars,
+  TEXTRANGE_PROPERTIES **rpRangeProperties,
+  int cRanges,
+  const WCHAR *pwcChars,
+  int cChars,
+  int cMaxGlyphs,
+  WORD *pwLogClust,
+  SCRIPT_CHARPROP *pCharProps,
+  WORD *pwOutGlyphs,
+  SCRIPT_GLYPHPROP *pOutGlyphProps,
+  int *pcGlyphs
+);
+
+typedef HRESULT (WINAPI *SPOT) /*ScriptPlaceOpenType*/(
+  HDC hdc,
+  SCRIPT_CACHE *psc,
+  SCRIPT_ANALYSIS *psa,
+  OPENTYPE_TAG tagScript,
+  OPENTYPE_TAG tagLangSys,
+  int *rcRangeChars,
+  TEXTRANGE_PROPERTIES **rpRangeProperties,
+  int cRanges,
+  const WCHAR *pwcChars,
+  WORD *pwLogClust,
+  SCRIPT_CHARPROP *pCharProps,
+  int cChars,
+  const WORD *pwGlyphs,
+  const SCRIPT_GLYPHPROP *pGlyphProps,
+  int cGlyphs,
+  int *piAdvance,
+  GOFFSET *pGoffset,
+  ABC *pABC
+);
+
+
+/* Fallback implementations. */
+
+static HRESULT WINAPI
+hb_ScriptItemizeOpenType(
+  const WCHAR *pwcInChars,
+  int cInChars,
+  int cMaxItems,
+  const SCRIPT_CONTROL *psControl,
+  const SCRIPT_STATE *psState,
+  SCRIPT_ITEM *pItems,
+  OPENTYPE_TAG *pScriptTags,
+  int *pcItems
+)
+{
+{
+  return ScriptItemize (pwcInChars,
+                       cInChars,
+                       cMaxItems,
+                       psControl,
+                       psState,
+                       pItems,
+                       pcItems);
+}
+}
+
+static HRESULT WINAPI
+hb_ScriptShapeOpenType(
+  HDC hdc,
+  SCRIPT_CACHE *psc,
+  SCRIPT_ANALYSIS *psa,
+  OPENTYPE_TAG tagScript,
+  OPENTYPE_TAG tagLangSys,
+  int *rcRangeChars,
+  TEXTRANGE_PROPERTIES **rpRangeProperties,
+  int cRanges,
+  const WCHAR *pwcChars,
+  int cChars,
+  int cMaxGlyphs,
+  WORD *pwLogClust,
+  SCRIPT_CHARPROP *pCharProps,
+  WORD *pwOutGlyphs,
+  SCRIPT_GLYPHPROP *pOutGlyphProps,
+  int *pcGlyphs
+)
+{
+  SCRIPT_VISATTR *psva = (SCRIPT_VISATTR *) pOutGlyphProps;
+  return ScriptShape (hdc,
+                     psc,
+                     pwcChars,
+                     cChars,
+                     cMaxGlyphs,
+                     psa,
+                     pwOutGlyphs,
+                     pwLogClust,
+                     psva,
+                     pcGlyphs);
+}
+
+static HRESULT WINAPI
+hb_ScriptPlaceOpenType(
+  HDC hdc,
+  SCRIPT_CACHE *psc,
+  SCRIPT_ANALYSIS *psa,
+  OPENTYPE_TAG tagScript,
+  OPENTYPE_TAG tagLangSys,
+  int *rcRangeChars,
+  TEXTRANGE_PROPERTIES **rpRangeProperties,
+  int cRanges,
+  const WCHAR *pwcChars,
+  WORD *pwLogClust,
+  SCRIPT_CHARPROP *pCharProps,
+  int cChars,
+  const WORD *pwGlyphs,
+  const SCRIPT_GLYPHPROP *pGlyphProps,
+  int cGlyphs,
+  int *piAdvance,
+  GOFFSET *pGoffset,
+  ABC *pABC
+)
+{
+  SCRIPT_VISATTR *psva = (SCRIPT_VISATTR *) pGlyphProps;
+  return ScriptPlace (hdc,
+                     psc,
+                     pwGlyphs,
+                     cGlyphs,
+                     psva,
+                     psa,
+                     piAdvance,
+                     pGoffset,
+                     pABC);
+}
+
+
+struct hb_uniscribe_shaper_funcs_t {
+  SIOT ScriptItemizeOpenType;
+  SSOT ScriptShapeOpenType;
+  SPOT ScriptPlaceOpenType;
+
+  inline void init (void)
+  {
+    HMODULE hinstLib;
+    this->ScriptItemizeOpenType = NULL;
+    this->ScriptShapeOpenType   = NULL;
+    this->ScriptPlaceOpenType   = NULL;
+
+    hinstLib = GetModuleHandle (TEXT ("usp10.dll"));
+    if (hinstLib)
+    {
+      this->ScriptItemizeOpenType = (SIOT) GetProcAddress (hinstLib, "ScriptItemizeOpenType");
+      this->ScriptShapeOpenType   = (SSOT) GetProcAddress (hinstLib, "ScriptShapeOpenType");
+      this->ScriptPlaceOpenType   = (SPOT) GetProcAddress (hinstLib, "ScriptPlaceOpenType");
+    }
+    if (!this->ScriptItemizeOpenType ||
+       !this->ScriptShapeOpenType   ||
+       !this->ScriptPlaceOpenType)
+    {
+      DEBUG_MSG (UNISCRIBE, NULL, "OpenType versions of functions not found; falling back.");
+      this->ScriptItemizeOpenType = hb_ScriptItemizeOpenType;
+      this->ScriptShapeOpenType   = hb_ScriptShapeOpenType;
+      this->ScriptPlaceOpenType   = hb_ScriptPlaceOpenType;
+    }
+  }
+};
+static hb_uniscribe_shaper_funcs_t *uniscribe_funcs;
+
+static inline void
+free_uniscribe_funcs (void)
+{
+  free (uniscribe_funcs);
+}
+
+static hb_uniscribe_shaper_funcs_t *
+hb_uniscribe_shaper_get_funcs (void)
+{
+retry:
+  hb_uniscribe_shaper_funcs_t *funcs = (hb_uniscribe_shaper_funcs_t *) hb_atomic_ptr_get (&uniscribe_funcs);
+
+  if (unlikely (!funcs))
+  {
+    funcs = (hb_uniscribe_shaper_funcs_t *) calloc (1, sizeof (hb_uniscribe_shaper_funcs_t));
+    if (unlikely (!funcs))
+      return NULL;
+
+    funcs->init ();
+
+    if (!hb_atomic_ptr_cmpexch (&uniscribe_funcs, NULL, funcs)) {
+      free (funcs);
+      goto retry;
+    }
+
+#ifdef HB_USE_ATEXIT
+    atexit (free_uniscribe_funcs); /* First person registers atexit() callback. */
+#endif
+  }
+
+  return funcs;
+}
+
+
+struct active_feature_t {
+  OPENTYPE_FEATURE_RECORD rec;
+  unsigned int order;
+
+  static int cmp (const active_feature_t *a, const active_feature_t *b) {
+    return a->rec.tagFeature < b->rec.tagFeature ? -1 : a->rec.tagFeature > b->rec.tagFeature ? 1 :
+          a->order < b->order ? -1 : a->order > b->order ? 1 :
+          a->rec.lParameter < b->rec.lParameter ? -1 : a->rec.lParameter > b->rec.lParameter ? 1 :
+          0;
+  }
+  bool operator== (const active_feature_t *f) {
+    return cmp (this, f) == 0;
+  }
+};
+
+struct feature_event_t {
+  unsigned int index;
+  bool start;
+  active_feature_t feature;
+
+  static int cmp (const feature_event_t *a, const feature_event_t *b) {
+    return a->index < b->index ? -1 : a->index > b->index ? 1 :
+          a->start < b->start ? -1 : a->start > b->start ? 1 :
+          active_feature_t::cmp (&a->feature, &b->feature);
+  }
+};
+
+struct range_record_t {
+  TEXTRANGE_PROPERTIES props;
+  unsigned int index_first; /* == start */
+  unsigned int index_last;  /* == end - 1 */
+};
+
+HB_SHAPER_DATA_ENSURE_DECLARE(uniscribe, face)
+HB_SHAPER_DATA_ENSURE_DECLARE(uniscribe, font)
+
+
+/*
+ * shaper face data
+ */
+
+struct hb_uniscribe_shaper_face_data_t {
+  HANDLE fh;
+  hb_uniscribe_shaper_funcs_t *funcs;
+  wchar_t face_name[LF_FACESIZE];
+};
+
+/* face_name should point to a wchar_t[LF_FACESIZE] object. */
+static void
+_hb_generate_unique_face_name (wchar_t *face_name, unsigned int *plen)
+{
+  /* We'll create a private name for the font from a UUID using a simple,
+   * somewhat base64-like encoding scheme */
+  const char *enc = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-";
+  UUID id;
+  UuidCreate ((UUID*) &id);
+  ASSERT_STATIC (2 + 3 * (16/2) < LF_FACESIZE);
+  unsigned int name_str_len = 0;
+  face_name[name_str_len++] = 'F';
+  face_name[name_str_len++] = '_';
+  unsigned char *p = (unsigned char *) &id;
+  for (unsigned int i = 0; i < 16; i += 2)
+  {
+    /* Spread the 16 bits from two bytes of the UUID across three chars of face_name,
+     * using the bits in groups of 5,5,6 to select chars from enc.
+     * This will generate 24 characters; with the 'F_' prefix we already provided,
+     * the name will be 26 chars (plus the NUL terminator), so will always fit within
+     * face_name (LF_FACESIZE = 32). */
+    face_name[name_str_len++] = enc[p[i] >> 3];
+    face_name[name_str_len++] = enc[((p[i] << 2) | (p[i + 1] >> 6)) & 0x1f];
+    face_name[name_str_len++] = enc[p[i + 1] & 0x3f];
+  }
+  face_name[name_str_len] = 0;
+  if (plen)
+    *plen = name_str_len;
+}
+
+/* Destroys blob. */
+static hb_blob_t *
+_hb_rename_font (hb_blob_t *blob, wchar_t *new_name)
+{
+  /* Create a copy of the font data, with the 'name' table replaced by a
+   * table that names the font with our private F_* name created above.
+   * For simplicity, we just append a new 'name' table and update the
+   * sfnt directory; the original table is left in place, but unused.
+   *
+   * The new table will contain just 5 name IDs: family, style, unique,
+   * full, PS. All of them point to the same name data with our unique name.
+   */
+
+  blob = OT::Sanitizer<OT::OpenTypeFontFile>::sanitize (blob);
+
+  unsigned int length, new_length, name_str_len;
+  const char *orig_sfnt_data = hb_blob_get_data (blob, &length);
+
+  _hb_generate_unique_face_name (new_name, &name_str_len);
+
+  static const uint16_t name_IDs[] = { 1, 2, 3, 4, 6 };
+
+  unsigned int name_table_length = OT::name::min_size +
+                                   ARRAY_LENGTH (name_IDs) * OT::NameRecord::static_size +
+                                   name_str_len * 2; /* for name data in UTF16BE form */
+  unsigned int name_table_offset = (length + 3) & ~3;
+
+  new_length = name_table_offset + ((name_table_length + 3) & ~3);
+  void *new_sfnt_data = calloc (1, new_length);
+  if (!new_sfnt_data)
+  {
+    hb_blob_destroy (blob);
+    return NULL;
+  }
+
+  memcpy(new_sfnt_data, orig_sfnt_data, length);
+
+  OT::name &name = OT::StructAtOffset<OT::name> (new_sfnt_data, name_table_offset);
+  name.format.set (0);
+  name.count.set (ARRAY_LENGTH (name_IDs));
+  name.stringOffset.set (name.get_size ());
+  for (unsigned int i = 0; i < ARRAY_LENGTH (name_IDs); i++)
+  {
+    OT::NameRecord &record = name.nameRecord[i];
+    record.platformID.set (3);
+    record.encodingID.set (1);
+    record.languageID.set (0x0409u); /* English */
+    record.nameID.set (name_IDs[i]);
+    record.length.set (name_str_len * 2);
+    record.offset.set (0);
+  }
+
+  /* Copy string data from new_name, converting wchar_t to UTF16BE. */
+  unsigned char *p = &OT::StructAfter<unsigned char> (name);
+  for (unsigned int i = 0; i < name_str_len; i++)
+  {
+    *p++ = new_name[i] >> 8;
+    *p++ = new_name[i] & 0xff;
+  }
+
+  /* Adjust name table entry to point to new name table */
+  const OT::OpenTypeFontFile &file = * (OT::OpenTypeFontFile *) (new_sfnt_data);
+  unsigned int face_count = file.get_face_count ();
+  for (unsigned int face_index = 0; face_index < face_count; face_index++)
+  {
+    /* Note: doing multiple edits (ie. TTC) can be unsafe.  There may be
+     * toe-stepping.  But we don't really care. */
+    const OT::OpenTypeFontFace &face = file.get_face (face_index);
+    unsigned int index;
+    if (face.find_table_index (HB_OT_TAG_name, &index))
+    {
+      OT::TableRecord &record = const_cast<OT::TableRecord &> (face.get_table (index));
+      record.checkSum.set_for_data (&name, name_table_length);
+      record.offset.set (name_table_offset);
+      record.length.set (name_table_length);
+    }
+    else if (face_index == 0) /* Fail if first face doesn't have 'name' table. */
+    {
+      free (new_sfnt_data);
+      hb_blob_destroy (blob);
+      return NULL;
+    }
+  }
+
+  /* The checkSumAdjustment field in the 'head' table is now wrong,
+   * but that doesn't actually seem to cause any problems so we don't
+   * bother. */
+
+  hb_blob_destroy (blob);
+  return hb_blob_create ((const char *) new_sfnt_data, new_length,
+                        HB_MEMORY_MODE_WRITABLE, NULL, free);
+}
+
+hb_uniscribe_shaper_face_data_t *
+_hb_uniscribe_shaper_face_data_create (hb_face_t *face)
+{
+  hb_uniscribe_shaper_face_data_t *data = (hb_uniscribe_shaper_face_data_t *) calloc (1, sizeof (hb_uniscribe_shaper_face_data_t));
+  if (unlikely (!data))
+    return NULL;
+
+  data->funcs = hb_uniscribe_shaper_get_funcs ();
+  if (unlikely (!data->funcs))
+  {
+    free (data);
+    return NULL;
+  }
+
+  hb_blob_t *blob = hb_face_reference_blob (face);
+  if (unlikely (!hb_blob_get_length (blob)))
+    DEBUG_MSG (UNISCRIBE, face, "Face has empty blob");
+
+  blob = _hb_rename_font (blob, data->face_name);
+  if (unlikely (!blob))
+  {
+    free (data);
+    return NULL;
+  }
+
+  DWORD num_fonts_installed;
+  data->fh = AddFontMemResourceEx ((void *) hb_blob_get_data (blob, NULL),
+                                  hb_blob_get_length (blob),
+                                  0, &num_fonts_installed);
+  if (unlikely (!data->fh))
+  {
+    DEBUG_MSG (UNISCRIBE, face, "Face AddFontMemResourceEx() failed");
+    free (data);
+    return NULL;
+  }
+
+  return data;
+}
+
+void
+_hb_uniscribe_shaper_face_data_destroy (hb_uniscribe_shaper_face_data_t *data)
+{
+  RemoveFontMemResourceEx (data->fh);
+  free (data);
+}
+
+
+/*
+ * shaper font data
+ */
+
+struct hb_uniscribe_shaper_font_data_t {
+  HDC hdc;
+  LOGFONTW log_font;
+  HFONT hfont;
+  SCRIPT_CACHE script_cache;
+};
+
+static bool
+populate_log_font (LOGFONTW  *lf,
+                  hb_font_t *font)
+{
+  memset (lf, 0, sizeof (*lf));
+  lf->lfHeight = -font->y_scale;
+  lf->lfCharSet = DEFAULT_CHARSET;
+
+  hb_face_t *face = font->face;
+  hb_uniscribe_shaper_face_data_t *face_data = HB_SHAPER_DATA_GET (face);
+
+  memcpy (lf->lfFaceName, face_data->face_name, sizeof (lf->lfFaceName));
+
+  return true;
+}
+
+hb_uniscribe_shaper_font_data_t *
+_hb_uniscribe_shaper_font_data_create (hb_font_t *font)
+{
+  if (unlikely (!hb_uniscribe_shaper_face_data_ensure (font->face))) return NULL;
+
+  hb_uniscribe_shaper_font_data_t *data = (hb_uniscribe_shaper_font_data_t *) calloc (1, sizeof (hb_uniscribe_shaper_font_data_t));
+  if (unlikely (!data))
+    return NULL;
+
+  data->hdc = GetDC (NULL);
+
+  if (unlikely (!populate_log_font (&data->log_font, font))) {
+    DEBUG_MSG (UNISCRIBE, font, "Font populate_log_font() failed");
+    _hb_uniscribe_shaper_font_data_destroy (data);
+    return NULL;
+  }
+
+  data->hfont = CreateFontIndirectW (&data->log_font);
+  if (unlikely (!data->hfont)) {
+    DEBUG_MSG (UNISCRIBE, font, "Font CreateFontIndirectW() failed");
+    _hb_uniscribe_shaper_font_data_destroy (data);
+     return NULL;
+  }
+
+  if (!SelectObject (data->hdc, data->hfont)) {
+    DEBUG_MSG (UNISCRIBE, font, "Font SelectObject() failed");
+    _hb_uniscribe_shaper_font_data_destroy (data);
+     return NULL;
+  }
+
+  return data;
+}
+
+void
+_hb_uniscribe_shaper_font_data_destroy (hb_uniscribe_shaper_font_data_t *data)
+{
+  if (data->hdc)
+    ReleaseDC (NULL, data->hdc);
+  if (data->hfont)
+    DeleteObject (data->hfont);
+  if (data->script_cache)
+    ScriptFreeCache (&data->script_cache);
+  free (data);
+}
+
+LOGFONTW *
+hb_uniscribe_font_get_logfontw (hb_font_t *font)
+{
+  if (unlikely (!hb_uniscribe_shaper_font_data_ensure (font))) return NULL;
+  hb_uniscribe_shaper_font_data_t *font_data =  HB_SHAPER_DATA_GET (font);
+  return &font_data->log_font;
+}
+
+HFONT
+hb_uniscribe_font_get_hfont (hb_font_t *font)
+{
+  if (unlikely (!hb_uniscribe_shaper_font_data_ensure (font))) return NULL;
+  hb_uniscribe_shaper_font_data_t *font_data =  HB_SHAPER_DATA_GET (font);
+  return font_data->hfont;
+}
+
+
+/*
+ * shaper shape_plan data
+ */
+
+struct hb_uniscribe_shaper_shape_plan_data_t {};
+
+hb_uniscribe_shaper_shape_plan_data_t *
+_hb_uniscribe_shaper_shape_plan_data_create (hb_shape_plan_t    *shape_plan HB_UNUSED,
+                                            const hb_feature_t *user_features HB_UNUSED,
+                                            unsigned int        num_user_features HB_UNUSED)
+{
+  return (hb_uniscribe_shaper_shape_plan_data_t *) HB_SHAPER_DATA_SUCCEEDED;
+}
+
+void
+_hb_uniscribe_shaper_shape_plan_data_destroy (hb_uniscribe_shaper_shape_plan_data_t *data HB_UNUSED)
+{
+}
+
+
+/*
+ * shaper
+ */
+
+
+hb_bool_t
+_hb_uniscribe_shape (hb_shape_plan_t    *shape_plan,
+                    hb_font_t          *font,
+                    hb_buffer_t        *buffer,
+                    const hb_feature_t *features,
+                    unsigned int        num_features)
+{
+  hb_face_t *face = font->face;
+  hb_uniscribe_shaper_face_data_t *face_data = HB_SHAPER_DATA_GET (face);
+  hb_uniscribe_shaper_font_data_t *font_data = HB_SHAPER_DATA_GET (font);
+  hb_uniscribe_shaper_funcs_t *funcs = face_data->funcs;
+
+  /*
+   * Set up features.
+   */
+  hb_auto_array_t<OPENTYPE_FEATURE_RECORD> feature_records;
+  hb_auto_array_t<range_record_t> range_records;
+  if (num_features)
+  {
+    /* Sort features by start/end events. */
+    hb_auto_array_t<feature_event_t> feature_events;
+    for (unsigned int i = 0; i < num_features; i++)
+    {
+      active_feature_t feature;
+      feature.rec.tagFeature = hb_uint32_swap (features[i].tag);
+      feature.rec.lParameter = features[i].value;
+      feature.order = i;
+
+      feature_event_t *event;
+
+      event = feature_events.push ();
+      if (unlikely (!event))
+       goto fail_features;
+      event->index = features[i].start;
+      event->start = true;
+      event->feature = feature;
+
+      event = feature_events.push ();
+      if (unlikely (!event))
+       goto fail_features;
+      event->index = features[i].end;
+      event->start = false;
+      event->feature = feature;
+    }
+    feature_events.qsort ();
+    /* Add a strategic final event. */
+    {
+      active_feature_t feature;
+      feature.rec.tagFeature = 0;
+      feature.rec.lParameter = 0;
+      feature.order = num_features + 1;
+
+      feature_event_t *event = feature_events.push ();
+      if (unlikely (!event))
+       goto fail_features;
+      event->index = 0; /* This value does magic. */
+      event->start = false;
+      event->feature = feature;
+    }
+
+    /* Scan events and save features for each range. */
+    hb_auto_array_t<active_feature_t> active_features;
+    unsigned int last_index = 0;
+    for (unsigned int i = 0; i < feature_events.len; i++)
+    {
+      feature_event_t *event = &feature_events[i];
+
+      if (event->index != last_index)
+      {
+        /* Save a snapshot of active features and the range. */
+       range_record_t *range = range_records.push ();
+       if (unlikely (!range))
+         goto fail_features;
+
+       unsigned int offset = feature_records.len;
+
+       active_features.qsort ();
+       for (unsigned int j = 0; j < active_features.len; j++)
+       {
+         if (!j || active_features[j].rec.tagFeature != feature_records[feature_records.len - 1].tagFeature)
+         {
+           OPENTYPE_FEATURE_RECORD *feature = feature_records.push ();
+           if (unlikely (!feature))
+             goto fail_features;
+           *feature = active_features[j].rec;
+         }
+         else
+         {
+           /* Overrides value for existing feature. */
+           feature_records[feature_records.len - 1].lParameter = active_features[j].rec.lParameter;
+         }
+       }
+
+       /* Will convert to pointer after all is ready, since feature_records.array
+        * may move as we grow it. */
+       range->props.potfRecords = reinterpret_cast<OPENTYPE_FEATURE_RECORD *> (offset);
+       range->props.cotfRecords = feature_records.len - offset;
+       range->index_first = last_index;
+       range->index_last  = event->index - 1;
+
+       last_index = event->index;
+      }
+
+      if (event->start) {
+        active_feature_t *feature = active_features.push ();
+       if (unlikely (!feature))
+         goto fail_features;
+       *feature = event->feature;
+      } else {
+        active_feature_t *feature = active_features.find (&event->feature);
+       if (feature)
+         active_features.remove (feature - active_features.array);
+      }
+    }
+
+    if (!range_records.len) /* No active feature found. */
+      goto fail_features;
+
+    /* Fixup the pointers. */
+    for (unsigned int i = 0; i < range_records.len; i++)
+    {
+      range_record_t *range = &range_records[i];
+      range->props.potfRecords = feature_records.array + reinterpret_cast<uintptr_t> (range->props.potfRecords);
+    }
+  }
+  else
+  {
+  fail_features:
+    num_features = 0;
+  }
+
+#define FAIL(...) \
+  HB_STMT_START { \
+    DEBUG_MSG (UNISCRIBE, NULL, __VA_ARGS__); \
+    return false; \
+  } HB_STMT_END;
+
+  HRESULT hr;
+
+retry:
+
+  unsigned int scratch_size;
+  hb_buffer_t::scratch_buffer_t *scratch = buffer->get_scratch_buffer (&scratch_size);
+
+#define ALLOCATE_ARRAY(Type, name, len) \
+  Type *name = (Type *) scratch; \
+  { \
+    unsigned int _consumed = DIV_CEIL ((len) * sizeof (Type), sizeof (*scratch)); \
+    assert (_consumed <= scratch_size); \
+    scratch += _consumed; \
+    scratch_size -= _consumed; \
+  }
+
+#define utf16_index() var1.u32
+
+  ALLOCATE_ARRAY (WCHAR, pchars, buffer->len * 2);
+
+  unsigned int chars_len = 0;
+  for (unsigned int i = 0; i < buffer->len; i++)
+  {
+    hb_codepoint_t c = buffer->info[i].codepoint;
+    buffer->info[i].utf16_index() = chars_len;
+    if (likely (c <= 0xFFFFu))
+      pchars[chars_len++] = c;
+    else if (unlikely (c > 0x10FFFFu))
+      pchars[chars_len++] = 0xFFFDu;
+    else {
+      pchars[chars_len++] = 0xD800u + ((c - 0x10000u) >> 10);
+      pchars[chars_len++] = 0xDC00u + ((c - 0x10000u) & ((1 << 10) - 1));
+    }
+  }
+
+  ALLOCATE_ARRAY (WORD, log_clusters, chars_len);
+  ALLOCATE_ARRAY (SCRIPT_CHARPROP, char_props, chars_len);
+
+  if (num_features)
+  {
+    /* Need log_clusters to assign features. */
+    chars_len = 0;
+    for (unsigned int i = 0; i < buffer->len; i++)
+    {
+      hb_codepoint_t c = buffer->info[i].codepoint;
+      unsigned int cluster = buffer->info[i].cluster;
+      log_clusters[chars_len++] = cluster;
+      if (hb_in_range (c, 0x10000u, 0x10FFFFu))
+       log_clusters[chars_len++] = cluster; /* Surrogates. */
+    }
+  }
+
+  /* The -2 in the following is to compensate for possible
+   * alignment needed after the WORD array.  sizeof(WORD) == 2. */
+  unsigned int glyphs_size = (scratch_size * sizeof (int) - 2)
+                          / (sizeof (WORD) +
+                             sizeof (SCRIPT_GLYPHPROP) +
+                             sizeof (int) +
+                             sizeof (GOFFSET) +
+                             sizeof (uint32_t));
+
+  ALLOCATE_ARRAY (WORD, glyphs, glyphs_size);
+  ALLOCATE_ARRAY (SCRIPT_GLYPHPROP, glyph_props, glyphs_size);
+  ALLOCATE_ARRAY (int, advances, glyphs_size);
+  ALLOCATE_ARRAY (GOFFSET, offsets, glyphs_size);
+  ALLOCATE_ARRAY (uint32_t, vis_clusters, glyphs_size);
+
+  /* Note:
+   * We can't touch the contents of glyph_props.  Our fallback
+   * implementations of Shape and Place functions use that buffer
+   * by casting it to a different type.  It works because they
+   * both agree about it, but if we want to access it here we
+   * need address that issue first.
+   */
+
+#undef ALLOCATE_ARRAY
+
+#define MAX_ITEMS 256
+
+  SCRIPT_ITEM items[MAX_ITEMS + 1];
+  SCRIPT_CONTROL bidi_control = {0};
+  SCRIPT_STATE bidi_state = {0};
+  ULONG script_tags[MAX_ITEMS];
+  int item_count;
+
+  /* MinGW32 doesn't define fMergeNeutralItems, so we bruteforce */
+  //bidi_control.fMergeNeutralItems = true;
+  *(uint32_t*)&bidi_control |= 1<<24;
+
+  bidi_state.uBidiLevel = HB_DIRECTION_IS_FORWARD (buffer->props.direction) ? 0 : 1;
+  bidi_state.fOverrideDirection = 1;
+
+  hr = funcs->ScriptItemizeOpenType (pchars,
+                                    chars_len,
+                                    MAX_ITEMS,
+                                    &bidi_control,
+                                    &bidi_state,
+                                    items,
+                                    script_tags,
+                                    &item_count);
+  if (unlikely (FAILED (hr)))
+    FAIL ("ScriptItemizeOpenType() failed: 0x%08xL", hr);
+
+#undef MAX_ITEMS
+
+  OPENTYPE_TAG language_tag = hb_uint32_swap (hb_ot_tag_from_language (buffer->props.language));
+  hb_auto_array_t<TEXTRANGE_PROPERTIES*> range_properties;
+  hb_auto_array_t<int> range_char_counts;
+
+  unsigned int glyphs_offset = 0;
+  unsigned int glyphs_len;
+  bool backward = HB_DIRECTION_IS_BACKWARD (buffer->props.direction);
+  for (unsigned int i = 0; i < item_count; i++)
+  {
+    unsigned int chars_offset = items[i].iCharPos;
+    unsigned int item_chars_len = items[i + 1].iCharPos - chars_offset;
+
+    if (num_features)
+    {
+      range_properties.shrink (0);
+      range_char_counts.shrink (0);
+
+      range_record_t *last_range = &range_records[0];
+
+      for (unsigned int k = chars_offset; k < chars_offset + item_chars_len; k++)
+      {
+       range_record_t *range = last_range;
+       while (log_clusters[k] < range->index_first)
+         range--;
+       while (log_clusters[k] > range->index_last)
+         range++;
+       if (!range_properties.len ||
+           &range->props != range_properties[range_properties.len - 1])
+       {
+         TEXTRANGE_PROPERTIES **props = range_properties.push ();
+         int *c = range_char_counts.push ();
+         if (unlikely (!props || !c))
+         {
+           range_properties.shrink (0);
+           range_char_counts.shrink (0);
+           break;
+         }
+         *props = &range->props;
+         *c = 1;
+       }
+       else
+       {
+         range_char_counts[range_char_counts.len - 1]++;
+       }
+
+       last_range = range;
+      }
+    }
+
+    /* Asking for glyphs in logical order circumvents at least
+     * one bug in Uniscribe. */
+    items[i].a.fLogicalOrder = true;
+
+  retry_shape:
+    hr = funcs->ScriptShapeOpenType (font_data->hdc,
+                                    &font_data->script_cache,
+                                    &items[i].a,
+                                    script_tags[i],
+                                    language_tag,
+                                    range_char_counts.array,
+                                    range_properties.array,
+                                    range_properties.len,
+                                    pchars + chars_offset,
+                                    item_chars_len,
+                                    glyphs_size - glyphs_offset,
+                                    /* out */
+                                    log_clusters + chars_offset,
+                                    char_props + chars_offset,
+                                    glyphs + glyphs_offset,
+                                    glyph_props + glyphs_offset,
+                                    (int *) &glyphs_len);
+
+    if (unlikely (items[i].a.fNoGlyphIndex))
+      FAIL ("ScriptShapeOpenType() set fNoGlyphIndex");
+    if (unlikely (hr == E_OUTOFMEMORY))
+    {
+      if (unlikely (!buffer->ensure (buffer->allocated * 2)))
+       FAIL ("Buffer resize failed");
+      goto retry;
+    }
+    if (unlikely (hr == USP_E_SCRIPT_NOT_IN_FONT))
+    {
+      if (items[i].a.eScript == SCRIPT_UNDEFINED)
+       FAIL ("ScriptShapeOpenType() failed: Font doesn't support script");
+      items[i].a.eScript = SCRIPT_UNDEFINED;
+      goto retry_shape;
+    }
+    if (unlikely (FAILED (hr)))
+    {
+      FAIL ("ScriptShapeOpenType() failed: 0x%08xL", hr);
+    }
+
+    for (unsigned int j = chars_offset; j < chars_offset + item_chars_len; j++)
+      log_clusters[j] += glyphs_offset;
+
+    hr = funcs->ScriptPlaceOpenType (font_data->hdc,
+                                    &font_data->script_cache,
+                                    &items[i].a,
+                                    script_tags[i],
+                                    language_tag,
+                                    range_char_counts.array,
+                                    range_properties.array,
+                                    range_properties.len,
+                                    pchars + chars_offset,
+                                    log_clusters + chars_offset,
+                                    char_props + chars_offset,
+                                    item_chars_len,
+                                    glyphs + glyphs_offset,
+                                    glyph_props + glyphs_offset,
+                                    glyphs_len,
+                                    /* out */
+                                    advances + glyphs_offset,
+                                    offsets + glyphs_offset,
+                                    NULL);
+    if (unlikely (FAILED (hr)))
+      FAIL ("ScriptPlaceOpenType() failed: 0x%08xL", hr);
+
+    if (DEBUG_ENABLED (UNISCRIBE))
+      fprintf (stderr, "Item %d RTL %d LayoutRTL %d LogicalOrder %d ScriptTag %c%c%c%c\n",
+              i,
+              items[i].a.fRTL,
+              items[i].a.fLayoutRTL,
+              items[i].a.fLogicalOrder,
+              HB_UNTAG (hb_uint32_swap (script_tags[i])));
+
+    glyphs_offset += glyphs_len;
+  }
+  glyphs_len = glyphs_offset;
+
+  /* Ok, we've got everything we need, now compose output buffer,
+   * very, *very*, carefully! */
+
+  /* Calculate visual-clusters.  That's what we ship. */
+  for (unsigned int i = 0; i < glyphs_len; i++)
+    vis_clusters[i] = -1;
+  for (unsigned int i = 0; i < buffer->len; i++) {
+    uint32_t *p = &vis_clusters[log_clusters[buffer->info[i].utf16_index()]];
+    *p = MIN (*p, buffer->info[i].cluster);
+  }
+  for (unsigned int i = 1; i < glyphs_len; i++)
+    if (vis_clusters[i] == -1)
+      vis_clusters[i] = vis_clusters[i - 1];
+
+#undef utf16_index
+
+  if (unlikely (!buffer->ensure (glyphs_len)))
+    FAIL ("Buffer in error");
+
+#undef FAIL
+
+  /* Set glyph infos */
+  buffer->len = 0;
+  for (unsigned int i = 0; i < glyphs_len; i++)
+  {
+    hb_glyph_info_t *info = &buffer->info[buffer->len++];
+
+    info->codepoint = glyphs[i];
+    info->cluster = vis_clusters[i];
+
+    /* The rest is crap.  Let's store position info there for now. */
+    info->mask = advances[i];
+    info->var1.u32 = offsets[i].du;
+    info->var2.u32 = offsets[i].dv;
+  }
+
+  /* Set glyph positions */
+  buffer->clear_positions ();
+  for (unsigned int i = 0; i < glyphs_len; i++)
+  {
+    hb_glyph_info_t *info = &buffer->info[i];
+    hb_glyph_position_t *pos = &buffer->pos[i];
+
+    /* TODO vertical */
+    pos->x_advance = info->mask;
+    pos->x_offset = backward ? -info->var1.u32 : info->var1.u32;
+    pos->y_offset = info->var2.u32;
+  }
+
+  if (backward)
+    hb_buffer_reverse (buffer);
+
+  /* Wow, done! */
+  return true;
+}
+
+
diff --git a/src/hb-uniscribe.h b/src/hb-uniscribe.h
new file mode 100644 (file)
index 0000000..001ab38
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_UNISCRIBE_H
+#define HB_UNISCRIBE_H
+
+#include "hb.h"
+
+#include <windows.h>
+
+HB_BEGIN_DECLS
+
+
+LOGFONTW *
+hb_uniscribe_font_get_logfontw (hb_font_t *font);
+
+HFONT
+hb_uniscribe_font_get_hfont (hb_font_t *font);
+
+
+HB_END_DECLS
+
+#endif /* HB_UNISCRIBE_H */
diff --git a/src/hb-utf-private.hh b/src/hb-utf-private.hh
new file mode 100644 (file)
index 0000000..0b798a0
--- /dev/null
@@ -0,0 +1,249 @@
+/*
+ * Copyright © 2011,2012,2014  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_UTF_PRIVATE_HH
+#define HB_UTF_PRIVATE_HH
+
+#include "hb-private.hh"
+
+template <typename T, bool validate=true> struct hb_utf_t;
+
+
+/* UTF-8 */
+
+template <>
+struct hb_utf_t<uint8_t, true>
+{
+  static inline const uint8_t *
+  next (const uint8_t *text,
+       const uint8_t *end,
+       hb_codepoint_t *unicode,
+       hb_codepoint_t replacement)
+  {
+    /* Written to only accept well-formed sequences.
+     * Based on ideas from ICU's U8_NEXT.
+     * Generates one "replacement" for each ill-formed byte. */
+
+    hb_codepoint_t c = *text++;
+
+    if (c > 0x7Fu)
+    {
+      if (hb_in_range (c, 0xC2u, 0xDFu)) /* Two-byte */
+      {
+       unsigned int t1;
+       if (likely (text < end &&
+                   (t1 = text[0] - 0x80u) <= 0x3Fu))
+       {
+         c = ((c&0x1Fu)<<6) | t1;
+         text++;
+       }
+       else
+         goto error;
+      }
+      else if (hb_in_range (c, 0xE0u, 0xEFu)) /* Three-byte */
+      {
+       unsigned int t1, t2;
+       if (likely (1 < end - text &&
+                   (t1 = text[0] - 0x80u) <= 0x3Fu &&
+                   (t2 = text[1] - 0x80u) <= 0x3Fu))
+       {
+         c = ((c&0xFu)<<12) | (t1<<6) | t2;
+         if (unlikely (c < 0x0800u || hb_in_range (c, 0xD800u, 0xDFFFu)))
+           goto error;
+         text += 2;
+       }
+       else
+         goto error;
+      }
+      else if (hb_in_range (c, 0xF0u, 0xF4u)) /* Four-byte */
+      {
+       unsigned int t1, t2, t3;
+       if (likely (2 < end - text &&
+                   (t1 = text[0] - 0x80u) <= 0x3Fu &&
+                   (t2 = text[1] - 0x80u) <= 0x3Fu &&
+                   (t3 = text[2] - 0x80u) <= 0x3Fu))
+       {
+         c = ((c&0x7u)<<18) | (t1<<12) | (t2<<6) | t3;
+         if (unlikely (!hb_in_range (c, 0x10000u, 0x10FFFFu)))
+           goto error;
+         text += 3;
+       }
+       else
+         goto error;
+      }
+      else
+       goto error;
+    }
+
+    *unicode = c;
+    return text;
+
+  error:
+    *unicode = replacement;
+    return text;
+  }
+
+  static inline const uint8_t *
+  prev (const uint8_t *text,
+       const uint8_t *start,
+       hb_codepoint_t *unicode,
+       hb_codepoint_t replacement)
+  {
+    const uint8_t *end = text--;
+    while (start < text && (*text & 0xc0) == 0x80 && end - text < 4)
+      text--;
+
+    if (likely (next (text, end, unicode, replacement) == end))
+      return text;
+
+    *unicode = replacement;
+    return end - 1;
+  }
+
+  static inline unsigned int
+  strlen (const uint8_t *text)
+  {
+    return ::strlen ((const char *) text);
+  }
+};
+
+
+/* UTF-16 */
+
+template <>
+struct hb_utf_t<uint16_t, true>
+{
+  static inline const uint16_t *
+  next (const uint16_t *text,
+       const uint16_t *end,
+       hb_codepoint_t *unicode,
+       hb_codepoint_t replacement)
+  {
+    hb_codepoint_t c = *text++;
+
+    if (likely (!hb_in_range (c, 0xD800u, 0xDFFFu)))
+    {
+      *unicode = c;
+      return text;
+    }
+
+    if (likely (hb_in_range (c, 0xD800u, 0xDBFFu)))
+    {
+      /* High-surrogate in c */
+      hb_codepoint_t l;
+      if (text < end && ((l = *text), likely (hb_in_range (l, 0xDC00u, 0xDFFFu))))
+      {
+       /* Low-surrogate in l */
+       *unicode = (c << 10) + l - ((0xD800u << 10) - 0x10000u + 0xDC00u);
+        text++;
+        return text;
+      }
+    }
+
+    /* Lonely / out-of-order surrogate. */
+    *unicode = replacement;
+    return text;
+  }
+
+  static inline const uint16_t *
+  prev (const uint16_t *text,
+       const uint16_t *start,
+       hb_codepoint_t *unicode,
+       hb_codepoint_t replacement)
+  {
+    const uint16_t *end = text--;
+    hb_codepoint_t c = *text;
+
+    if (likely (!hb_in_range (c, 0xD800u, 0xDFFFu)))
+    {
+      *unicode = c;
+      return text;
+    }
+
+    if (likely (start < text && hb_in_range (c, 0xDC00u, 0xDFFFu)))
+      text--;
+
+    if (likely (next (text, end, unicode, replacement) == end))
+      return text;
+
+    *unicode = replacement;
+    return end - 1;
+  }
+
+
+  static inline unsigned int
+  strlen (const uint16_t *text)
+  {
+    unsigned int l = 0;
+    while (*text++) l++;
+    return l;
+  }
+};
+
+
+/* UTF-32 */
+
+template <bool validate>
+struct hb_utf_t<uint32_t, validate>
+{
+  static inline const uint32_t *
+  next (const uint32_t *text,
+       const uint32_t *end HB_UNUSED,
+       hb_codepoint_t *unicode,
+       hb_codepoint_t replacement)
+  {
+    hb_codepoint_t c = *text++;
+    if (validate && unlikely (c > 0x10FFFFu || hb_in_range (c, 0xD800u, 0xDFFFu)))
+      goto error;
+    *unicode = c;
+    return text;
+
+  error:
+    *unicode = replacement;
+    return text;
+  }
+
+  static inline const uint32_t *
+  prev (const uint32_t *text,
+       const uint32_t *start HB_UNUSED,
+       hb_codepoint_t *unicode,
+       hb_codepoint_t replacement)
+  {
+    next (text - 1, text, unicode, replacement);
+    return text - 1;
+  }
+
+  static inline unsigned int
+  strlen (const uint32_t *text)
+  {
+    unsigned int l = 0;
+    while (*text++) l++;
+    return l;
+  }
+};
+
+
+#endif /* HB_UTF_PRIVATE_HH */
diff --git a/src/hb-version.h b/src/hb-version.h
new file mode 100644 (file)
index 0000000..e1a5f61
--- /dev/null
@@ -0,0 +1,66 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_H_IN
+#error "Include <hb.h> instead."
+#endif
+
+#ifndef HB_VERSION_H
+#define HB_VERSION_H
+
+#include "hb-common.h"
+
+HB_BEGIN_DECLS
+
+
+#define HB_VERSION_MAJOR 0
+#define HB_VERSION_MINOR 9
+#define HB_VERSION_MICRO 35
+
+#define HB_VERSION_STRING "0.9.35"
+
+#define HB_VERSION_ATLEAST(major,minor,micro) \
+       ((major)*10000+(minor)*100+(micro) <= \
+        HB_VERSION_MAJOR*10000+HB_VERSION_MINOR*100+HB_VERSION_MICRO)
+
+
+void
+hb_version (unsigned int *major,
+           unsigned int *minor,
+           unsigned int *micro);
+
+const char *
+hb_version_string (void);
+
+hb_bool_t
+hb_version_atleast (unsigned int major,
+                   unsigned int minor,
+                   unsigned int micro);
+
+
+HB_END_DECLS
+
+#endif /* HB_VERSION_H */
diff --git a/src/hb-version.h.in b/src/hb-version.h.in
new file mode 100644 (file)
index 0000000..2517160
--- /dev/null
@@ -0,0 +1,66 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_H_IN
+#error "Include <hb.h> instead."
+#endif
+
+#ifndef HB_VERSION_H
+#define HB_VERSION_H
+
+#include "hb-common.h"
+
+HB_BEGIN_DECLS
+
+
+#define HB_VERSION_MAJOR @HB_VERSION_MAJOR@
+#define HB_VERSION_MINOR @HB_VERSION_MINOR@
+#define HB_VERSION_MICRO @HB_VERSION_MICRO@
+
+#define HB_VERSION_STRING "@HB_VERSION@"
+
+#define HB_VERSION_ATLEAST(major,minor,micro) \
+       ((major)*10000+(minor)*100+(micro) <= \
+        HB_VERSION_MAJOR*10000+HB_VERSION_MINOR*100+HB_VERSION_MICRO)
+
+
+void
+hb_version (unsigned int *major,
+           unsigned int *minor,
+           unsigned int *micro);
+
+const char *
+hb_version_string (void);
+
+hb_bool_t
+hb_version_atleast (unsigned int major,
+                   unsigned int minor,
+                   unsigned int micro);
+
+
+HB_END_DECLS
+
+#endif /* HB_VERSION_H */
diff --git a/src/hb-warning.cc b/src/hb-warning.cc
new file mode 100644 (file)
index 0000000..e0f88e2
--- /dev/null
@@ -0,0 +1,55 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-atomic-private.hh"
+#include "hb-mutex-private.hh"
+
+
+#if defined(HB_ATOMIC_INT_NIL)
+#ifdef _MSC_VER
+#pragma message("Could not find any system to define atomic_int macros, library may NOT be thread-safe")
+#else
+#warning "Could not find any system to define atomic_int macros, library may NOT be thread-safe"
+#endif
+#endif
+
+#if defined(HB_MUTEX_IMPL_NIL)
+#ifdef _MSC_VER
+#pragma message("Could not find any system to define mutex macros, library may NOT be thread-safe")
+#else
+#warning "Could not find any system to define mutex macros, library may NOT be thread-safe"
+#endif
+#endif
+
+#if defined(HB_ATOMIC_INT_NIL) || defined(HB_MUTEX_IMPL_NIL)
+#ifdef _MSC_VER
+#pragma message("To suppress these warnings, define HB_NO_MT")
+#else
+#warning "To suppress these warnings, define HB_NO_MT"
+#endif
+#endif
+
+
diff --git a/src/hb.h b/src/hb.h
new file mode 100644 (file)
index 0000000..c5a938a
--- /dev/null
+++ b/src/hb.h
@@ -0,0 +1,47 @@
+/*
+ * Copyright © 2009  Red Hat, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_H
+#define HB_H
+#define HB_H_IN
+
+#include "hb-blob.h"
+#include "hb-buffer.h"
+#include "hb-common.h"
+#include "hb-deprecated.h"
+#include "hb-face.h"
+#include "hb-font.h"
+#include "hb-set.h"
+#include "hb-shape.h"
+#include "hb-shape-plan.h"
+#include "hb-unicode.h"
+#include "hb-version.h"
+
+HB_BEGIN_DECLS
+HB_END_DECLS
+
+#undef HB_H_IN
+#endif /* HB_H */
diff --git a/src/main.cc b/src/main.cc
new file mode 100644 (file)
index 0000000..f9708cc
--- /dev/null
@@ -0,0 +1,199 @@
+/*
+ * Copyright © 2007,2008,2009  Red Hat, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Red Hat Author(s): Behdad Esfahbod
+ */
+
+#include "hb-mutex-private.hh"
+#include "hb-open-file-private.hh"
+#include "hb-ot-layout-gdef-table.hh"
+#include "hb-ot-layout-gsubgpos-private.hh"
+
+#ifdef HAVE_GLIB
+#include <glib.h>
+#endif
+#include <stdlib.h>
+#include <stdio.h>
+
+
+using namespace OT;
+
+
+int
+main (int argc, char **argv)
+{
+  if (argc != 2) {
+    fprintf (stderr, "usage: %s font-file.ttf\n", argv[0]);
+    exit (1);
+  }
+
+  const char *font_data = NULL;
+  int len = 0;
+
+#ifdef HAVE_GLIB
+  GMappedFile *mf = g_mapped_file_new (argv[1], false, NULL);
+  font_data = g_mapped_file_get_contents (mf);
+  len = g_mapped_file_get_length (mf);
+#else
+  FILE *f = fopen (argv[1], "rb");
+  fseek (f, 0, SEEK_END);
+  len = ftell (f);
+  fseek (f, 0, SEEK_SET);
+  font_data = (const char *) malloc (len);
+  len = fread ((char *) font_data, 1, len, f);
+#endif
+
+  printf ("Opened font file %s: %d bytes long\n", argv[1], len);
+
+  const OpenTypeFontFile &ot = *CastP<OpenTypeFontFile> (font_data);
+
+  switch (ot.get_tag ()) {
+  case OpenTypeFontFile::TrueTypeTag:
+    printf ("OpenType font with TrueType outlines\n");
+    break;
+  case OpenTypeFontFile::CFFTag:
+    printf ("OpenType font with CFF (Type1) outlines\n");
+    break;
+  case OpenTypeFontFile::TTCTag:
+    printf ("TrueType Collection of OpenType fonts\n");
+    break;
+  case OpenTypeFontFile::TrueTag:
+    printf ("Obsolete Apple TrueType font\n");
+    break;
+  case OpenTypeFontFile::Typ1Tag:
+    printf ("Obsolete Apple Type1 font in SFNT container\n");
+    break;
+  default:
+    printf ("Unknown font format\n");
+    break;
+  }
+
+  int num_fonts = ot.get_face_count ();
+  printf ("%d font(s) found in file\n", num_fonts);
+  for (int n_font = 0; n_font < num_fonts; n_font++) {
+    const OpenTypeFontFace &font = ot.get_face (n_font);
+    printf ("Font %d of %d:\n", n_font, num_fonts);
+
+    int num_tables = font.get_table_count ();
+    printf ("  %d table(s) found in font\n", num_tables);
+    for (int n_table = 0; n_table < num_tables; n_table++) {
+      const OpenTypeTable &table = font.get_table (n_table);
+      printf ("  Table %2d of %2d: %.4s (0x%08x+0x%08x)\n", n_table, num_tables,
+             (const char *)table.tag,
+             (unsigned int) table.offset,
+             (unsigned int) table.length);
+
+      switch (table.tag) {
+
+      case GSUBGPOS::GSUBTag:
+      case GSUBGPOS::GPOSTag:
+       {
+
+       const GSUBGPOS &g = *CastP<GSUBGPOS> (font_data + table.offset);
+
+       int num_scripts = g.get_script_count ();
+       printf ("    %d script(s) found in table\n", num_scripts);
+       for (int n_script = 0; n_script < num_scripts; n_script++) {
+         const Script &script = g.get_script (n_script);
+         printf ("    Script %2d of %2d: %.4s\n", n_script, num_scripts,
+                 (const char *)g.get_script_tag(n_script));
+
+         if (!script.has_default_lang_sys())
+           printf ("      No default language system\n");
+         int num_langsys = script.get_lang_sys_count ();
+         printf ("      %d language system(s) found in script\n", num_langsys);
+         for (int n_langsys = script.has_default_lang_sys() ? -1 : 0; n_langsys < num_langsys; n_langsys++) {
+           const LangSys &langsys = n_langsys == -1
+                                  ? script.get_default_lang_sys ()
+                                  : script.get_lang_sys (n_langsys);
+           if (n_langsys == -1)
+             printf ("      Default Language System\n");
+           else
+             printf ("      Language System %2d of %2d: %.4s\n", n_langsys, num_langsys,
+                     (const char *)script.get_lang_sys_tag (n_langsys));
+           if (!langsys.has_required_feature ())
+             printf ("        No required feature\n");
+           else
+             printf ("        Required feature index: %d\n",
+                     langsys.get_required_feature_index ());
+
+           int num_features = langsys.get_feature_count ();
+           printf ("        %d feature(s) found in language system\n", num_features);
+           for (int n_feature = 0; n_feature < num_features; n_feature++) {
+             printf ("        Feature index %2d of %2d: %d\n", n_feature, num_features,
+                     langsys.get_feature_index (n_feature));
+           }
+         }
+       }
+
+       int num_features = g.get_feature_count ();
+       printf ("    %d feature(s) found in table\n", num_features);
+       for (int n_feature = 0; n_feature < num_features; n_feature++) {
+         const Feature &feature = g.get_feature (n_feature);
+         int num_lookups = feature.get_lookup_count ();
+         printf ("    Feature %2d of %2d: %c%c%c%c\n", n_feature, num_features,
+                 HB_UNTAG(g.get_feature_tag(n_feature)));
+
+         printf ("        %d lookup(s) found in feature\n", num_lookups);
+         for (int n_lookup = 0; n_lookup < num_lookups; n_lookup++) {
+           printf ("        Lookup index %2d of %2d: %d\n", n_lookup, num_lookups,
+                   feature.get_lookup_index (n_lookup));
+         }
+       }
+
+       int num_lookups = g.get_lookup_count ();
+       printf ("    %d lookup(s) found in table\n", num_lookups);
+       for (int n_lookup = 0; n_lookup < num_lookups; n_lookup++) {
+         const Lookup &lookup = g.get_lookup (n_lookup);
+         printf ("    Lookup %2d of %2d: type %d, props 0x%04X\n", n_lookup, num_lookups,
+                 lookup.get_type(), lookup.get_props());
+       }
+
+       }
+       break;
+
+      case GDEF::tableTag:
+       {
+
+       const GDEF &gdef = *CastP<GDEF> (font_data + table.offset);
+
+       printf ("    Has %sglyph classes\n",
+                 gdef.has_glyph_classes () ? "" : "no ");
+       printf ("    Has %smark attachment types\n",
+                 gdef.has_mark_attachment_types () ? "" : "no ");
+       printf ("    Has %sattach points\n",
+                 gdef.has_attach_points () ? "" : "no ");
+       printf ("    Has %slig carets\n",
+                 gdef.has_lig_carets () ? "" : "no ");
+       printf ("    Has %smark sets\n",
+                 gdef.has_mark_sets () ? "" : "no ");
+       break;
+       }
+      }
+    }
+  }
+
+  return 0;
+}
+
+
diff --git a/src/test-buffer-serialize.cc b/src/test-buffer-serialize.cc
new file mode 100644 (file)
index 0000000..18c46e9
--- /dev/null
@@ -0,0 +1,129 @@
+/*
+ * Copyright © 2010,2011,2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "hb.h"
+#ifdef HAVE_FREETYPE
+#include "hb-ft.h"
+#endif
+
+#ifdef HAVE_GLIB
+# include <glib.h>
+# if !GLIB_CHECK_VERSION (2, 22, 0)
+#  define g_mapped_file_unref g_mapped_file_free
+# endif
+#endif
+#include <stdlib.h>
+#include <stdio.h>
+
+int
+main (int argc, char **argv)
+{
+  hb_blob_t *blob = NULL;
+
+  if (argc != 2) {
+    fprintf (stderr, "usage: %s font-file\n", argv[0]);
+    exit (1);
+  }
+
+  /* Create the blob */
+  {
+    const char *font_data;
+    unsigned int len;
+    hb_destroy_func_t destroy;
+    void *user_data;
+    hb_memory_mode_t mm;
+
+#ifdef HAVE_GLIB
+    GMappedFile *mf = g_mapped_file_new (argv[1], false, NULL);
+    font_data = g_mapped_file_get_contents (mf);
+    len = g_mapped_file_get_length (mf);
+    destroy = (hb_destroy_func_t) g_mapped_file_unref;
+    user_data = (void *) mf;
+    mm = HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE;
+#else
+    FILE *f = fopen (argv[1], "rb");
+    fseek (f, 0, SEEK_END);
+    len = ftell (f);
+    fseek (f, 0, SEEK_SET);
+    font_data = (const char *) malloc (len);
+    if (!font_data) len = 0;
+    len = fread ((char *) font_data, 1, len, f);
+    destroy = free;
+    user_data = (void *) font_data;
+    fclose (f);
+    mm = HB_MEMORY_MODE_WRITABLE;
+#endif
+
+    blob = hb_blob_create (font_data, len, mm, user_data, destroy);
+  }
+
+  hb_face_t *face = hb_face_create (blob, 0 /* first face */);
+  hb_blob_destroy (blob);
+  blob = NULL;
+
+  unsigned int upem = hb_face_get_upem (face);
+  hb_font_t *font = hb_font_create (face);
+  hb_face_destroy (face);
+  hb_font_set_scale (font, upem, upem);
+#ifdef HAVE_FREETYPE
+  hb_ft_font_set_funcs (font);
+#endif
+
+  hb_buffer_t *buf;
+  buf = hb_buffer_create ();
+
+  bool ret = true;
+  char line[BUFSIZ], out[BUFSIZ];
+  while (fgets (line, sizeof(line), stdin) != 0)
+  {
+    hb_buffer_clear_contents (buf);
+
+    const char *p = line;
+    while (hb_buffer_deserialize_glyphs (buf,
+                                        p, -1, &p,
+                                        font,
+                                        HB_BUFFER_SERIALIZE_FORMAT_JSON))
+      ;
+    if (*p && *p != '\n')
+      ret = false;
+
+    hb_buffer_serialize_glyphs (buf, 0, hb_buffer_get_length (buf),
+                               out, sizeof (out), NULL,
+                               font, HB_BUFFER_SERIALIZE_FORMAT_JSON,
+                               HB_BUFFER_SERIALIZE_FLAG_DEFAULT);
+    puts (out);
+  }
+
+  hb_buffer_destroy (buf);
+
+  hb_font_destroy (font);
+
+  return !ret;
+}
diff --git a/src/test-size-params.cc b/src/test-size-params.cc
new file mode 100644 (file)
index 0000000..35d9e3c
--- /dev/null
@@ -0,0 +1,96 @@
+/*
+ * Copyright © 2010,2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "hb.h"
+#include "hb-ot.h"
+
+#ifdef HAVE_GLIB
+# include <glib.h>
+# if !GLIB_CHECK_VERSION (2, 22, 0)
+#  define g_mapped_file_unref g_mapped_file_free
+# endif
+#endif
+#include <stdlib.h>
+#include <stdio.h>
+
+int
+main (int argc, char **argv)
+{
+  hb_blob_t *blob = NULL;
+
+  if (argc != 2) {
+    fprintf (stderr, "usage: %s font-file\n", argv[0]);
+    exit (1);
+  }
+
+  /* Create the blob */
+  {
+    const char *font_data;
+    unsigned int len;
+    hb_destroy_func_t destroy;
+    void *user_data;
+    hb_memory_mode_t mm;
+
+#ifdef HAVE_GLIB
+    GMappedFile *mf = g_mapped_file_new (argv[1], false, NULL);
+    font_data = g_mapped_file_get_contents (mf);
+    len = g_mapped_file_get_length (mf);
+    destroy = (hb_destroy_func_t) g_mapped_file_unref;
+    user_data = (void *) mf;
+    mm = HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE;
+#else
+    FILE *f = fopen (argv[1], "rb");
+    fseek (f, 0, SEEK_END);
+    len = ftell (f);
+    fseek (f, 0, SEEK_SET);
+    font_data = (const char *) malloc (len);
+    if (!font_data) len = 0;
+    len = fread ((char *) font_data, 1, len, f);
+    destroy = free;
+    user_data = (void *) font_data;
+    fclose (f);
+    mm = HB_MEMORY_MODE_WRITABLE;
+#endif
+
+    blob = hb_blob_create (font_data, len, mm, user_data, destroy);
+  }
+
+  /* Create the face */
+  hb_face_t *face = hb_face_create (blob, 0 /* first face */);
+  hb_blob_destroy (blob);
+  blob = NULL;
+
+  unsigned int p[5];
+  bool ret = hb_ot_layout_get_size_params (face, p, p+1, p+2, p+3, p+4);
+
+  printf ("%g %u %u %g %g\n", p[0]/10., p[1], p[2], p[3]/10., p[4]/10.);
+
+  return !ret;
+}
diff --git a/src/test-would-substitute.cc b/src/test-would-substitute.cc
new file mode 100644 (file)
index 0000000..8ea87cd
--- /dev/null
@@ -0,0 +1,106 @@
+/*
+ * Copyright © 2010,2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "hb.h"
+#include "hb-ot.h"
+
+#ifdef HAVE_GLIB
+# include <glib.h>
+# if !GLIB_CHECK_VERSION (2, 22, 0)
+#  define g_mapped_file_unref g_mapped_file_free
+# endif
+#endif
+#include <stdlib.h>
+#include <stdio.h>
+
+#ifdef HAVE_FREETYPE
+#include "hb-ft.h"
+#endif
+
+int
+main (int argc, char **argv)
+{
+  hb_blob_t *blob = NULL;
+
+  if (argc != 4 && argc != 5) {
+    fprintf (stderr, "usage: %s font-file lookup-index first-glyph [second-glyph]\n", argv[0]);
+    exit (1);
+  }
+
+  /* Create the blob */
+  {
+    const char *font_data;
+    unsigned int len;
+    hb_destroy_func_t destroy;
+    void *user_data;
+    hb_memory_mode_t mm;
+
+#ifdef HAVE_GLIB
+    GMappedFile *mf = g_mapped_file_new (argv[1], false, NULL);
+    font_data = g_mapped_file_get_contents (mf);
+    len = g_mapped_file_get_length (mf);
+    destroy = (hb_destroy_func_t) g_mapped_file_unref;
+    user_data = (void *) mf;
+    mm = HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE;
+#else
+    FILE *f = fopen (argv[1], "rb");
+    fseek (f, 0, SEEK_END);
+    len = ftell (f);
+    fseek (f, 0, SEEK_SET);
+    font_data = (const char *) malloc (len);
+    if (!font_data) len = 0;
+    len = fread ((char *) font_data, 1, len, f);
+    destroy = free;
+    user_data = (void *) font_data;
+    fclose (f);
+    mm = HB_MEMORY_MODE_WRITABLE;
+#endif
+
+    blob = hb_blob_create (font_data, len, mm, user_data, destroy);
+  }
+
+  /* Create the face */
+  hb_face_t *face = hb_face_create (blob, 0 /* first face */);
+  hb_blob_destroy (blob);
+  blob = NULL;
+
+  hb_font_t *font = hb_font_create (face);
+#ifdef HAVE_FREETYPE
+  hb_ft_font_set_funcs (font);
+#endif
+
+  unsigned int len = argc - 3;
+  hb_codepoint_t glyphs[2];
+  if (!hb_font_glyph_from_string (font, argv[3], -1, &glyphs[0]) ||
+      (argc > 4 &&
+       !hb_font_glyph_from_string (font, argv[4], -1, &glyphs[1])))
+    return 2;
+  return !hb_ot_layout_lookup_would_substitute (face, strtol (argv[2], NULL, 0), glyphs, len, false);
+}
diff --git a/src/test.cc b/src/test.cc
new file mode 100644 (file)
index 0000000..a8fe046
--- /dev/null
@@ -0,0 +1,136 @@
+/*
+ * Copyright © 2010,2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "hb.h"
+
+#ifdef HAVE_GLIB
+# include <glib.h>
+# if !GLIB_CHECK_VERSION (2, 22, 0)
+#  define g_mapped_file_unref g_mapped_file_free
+# endif
+#endif
+#include <stdlib.h>
+#include <stdio.h>
+
+#ifdef HAVE_FREETYPE
+#include "hb-ft.h"
+#endif
+
+int
+main (int argc, char **argv)
+{
+  hb_blob_t *blob = NULL;
+
+  if (argc != 2) {
+    fprintf (stderr, "usage: %s font-file.ttf\n", argv[0]);
+    exit (1);
+  }
+
+  /* Create the blob */
+  {
+    const char *font_data;
+    unsigned int len;
+    hb_destroy_func_t destroy;
+    void *user_data;
+    hb_memory_mode_t mm;
+
+#ifdef HAVE_GLIB
+    GMappedFile *mf = g_mapped_file_new (argv[1], false, NULL);
+    font_data = g_mapped_file_get_contents (mf);
+    len = g_mapped_file_get_length (mf);
+    destroy = (hb_destroy_func_t) g_mapped_file_unref;
+    user_data = (void *) mf;
+    mm = HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE;
+#else
+    FILE *f = fopen (argv[1], "rb");
+    fseek (f, 0, SEEK_END);
+    len = ftell (f);
+    fseek (f, 0, SEEK_SET);
+    font_data = (const char *) malloc (len);
+    if (!font_data) len = 0;
+    len = fread ((char *) font_data, 1, len, f);
+    destroy = free;
+    user_data = (void *) font_data;
+    fclose (f);
+    mm = HB_MEMORY_MODE_WRITABLE;
+#endif
+
+    blob = hb_blob_create (font_data, len, mm, user_data, destroy);
+  }
+
+  printf ("Opened font file %s: %u bytes long\n", argv[1], hb_blob_get_length (blob));
+
+  /* Create the face */
+  hb_face_t *face = hb_face_create (blob, 0 /* first face */);
+  hb_blob_destroy (blob);
+  blob = NULL;
+  unsigned int upem = hb_face_get_upem (face);
+
+  hb_font_t *font = hb_font_create (face);
+  hb_font_set_scale (font, upem, upem);
+
+#ifdef HAVE_FREETYPE
+  hb_ft_font_set_funcs (font);
+#endif
+
+  hb_buffer_t *buffer = hb_buffer_create ();
+
+  hb_buffer_add_utf8 (buffer, "\xe0\xa4\x95\xe0\xa5\x8d\xe0\xa4\xb0\xe0\xa5\x8d\xe0\xa4\x95", -1, 0, -1);
+  hb_buffer_guess_segment_properties (buffer);
+
+  hb_shape (font, buffer, NULL, 0);
+
+  unsigned int count = hb_buffer_get_length (buffer);
+  hb_glyph_info_t *infos = hb_buffer_get_glyph_infos (buffer, NULL);
+  hb_glyph_position_t *positions = hb_buffer_get_glyph_positions (buffer, NULL);
+
+  for (unsigned int i = 0; i < count; i++)
+  {
+    hb_glyph_info_t *info = &infos[i];
+    hb_glyph_position_t *pos = &positions[i];
+
+    printf ("cluster %d        glyph 0x%x at   (%d,%d)+(%d,%d)\n",
+           info->cluster,
+           info->codepoint,
+           pos->x_offset,
+           pos->x_offset,
+           pos->x_advance,
+           pos->y_advance);
+
+  }
+
+  hb_buffer_destroy (buffer);
+  hb_font_destroy (font);
+  hb_face_destroy (face);
+
+  return 0;
+}
+
+
diff --git a/test-driver b/test-driver
new file mode 100755 (executable)
index 0000000..32bf39e
--- /dev/null
@@ -0,0 +1,127 @@
+#! /bin/sh
+# test-driver - basic testsuite driver script.
+
+scriptversion=2012-06-27.10; # UTC
+
+# Copyright (C) 2011-2013 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# This file is maintained in Automake, please report
+# bugs to <bug-automake@gnu.org> or send patches to
+# <automake-patches@gnu.org>.
+
+# Make unconditional expansion of undefined variables an error.  This
+# helps a lot in preventing typo-related bugs.
+set -u
+
+usage_error ()
+{
+  echo "$0: $*" >&2
+  print_usage >&2
+  exit 2
+}
+
+print_usage ()
+{
+  cat <<END
+Usage:
+  test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
+              [--expect-failure={yes|no}] [--color-tests={yes|no}]
+              [--enable-hard-errors={yes|no}] [--] TEST-SCRIPT
+The '--test-name', '--log-file' and '--trs-file' options are mandatory.
+END
+}
+
+# TODO: better error handling in option parsing (in particular, ensure
+# TODO: $log_file, $trs_file and $test_name are defined).
+test_name= # Used for reporting.
+log_file=  # Where to save the output of the test script.
+trs_file=  # Where to save the metadata of the test run.
+expect_failure=no
+color_tests=no
+enable_hard_errors=yes
+while test $# -gt 0; do
+  case $1 in
+  --help) print_usage; exit $?;;
+  --version) echo "test-driver $scriptversion"; exit $?;;
+  --test-name) test_name=$2; shift;;
+  --log-file) log_file=$2; shift;;
+  --trs-file) trs_file=$2; shift;;
+  --color-tests) color_tests=$2; shift;;
+  --expect-failure) expect_failure=$2; shift;;
+  --enable-hard-errors) enable_hard_errors=$2; shift;;
+  --) shift; break;;
+  -*) usage_error "invalid option: '$1'";;
+  esac
+  shift
+done
+
+if test $color_tests = yes; then
+  # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'.
+  red='\e[0;31m' # Red.
+  grn='\e[0;32m' # Green.
+  lgn='\e[1;32m' # Light green.
+  blu='\e[1;34m' # Blue.
+  mgn='\e[0;35m' # Magenta.
+  std='\e[m'     # No color.
+else
+  red= grn= lgn= blu= mgn= std=
+fi
+
+do_exit='rm -f $log_file $trs_file; (exit $st); exit $st'
+trap "st=129; $do_exit" 1
+trap "st=130; $do_exit" 2
+trap "st=141; $do_exit" 13
+trap "st=143; $do_exit" 15
+
+# Test script is run here.
+"$@" >$log_file 2>&1
+estatus=$?
+if test $enable_hard_errors = no && test $estatus -eq 99; then
+  estatus=1
+fi
+
+case $estatus:$expect_failure in
+  0:yes) col=$red res=XPASS recheck=yes gcopy=yes;;
+  0:*)   col=$grn res=PASS  recheck=no  gcopy=no;;
+  77:*)  col=$blu res=SKIP  recheck=no  gcopy=yes;;
+  99:*)  col=$mgn res=ERROR recheck=yes gcopy=yes;;
+  *:yes) col=$lgn res=XFAIL recheck=no  gcopy=yes;;
+  *:*)   col=$red res=FAIL  recheck=yes gcopy=yes;;
+esac
+
+# Report outcome to console.
+echo "${col}${res}${std}: $test_name"
+
+# Register the test result, and other relevant metadata.
+echo ":test-result: $res" > $trs_file
+echo ":global-test-result: $res" >> $trs_file
+echo ":recheck: $recheck" >> $trs_file
+echo ":copy-in-global-log: $gcopy" >> $trs_file
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/test/Makefile.am b/test/Makefile.am
new file mode 100644 (file)
index 0000000..16a3cd2
--- /dev/null
@@ -0,0 +1,5 @@
+# Process this file with automake to produce Makefile.in
+
+SUBDIRS = api shaping
+
+-include $(top_srcdir)/git.mk
diff --git a/test/Makefile.in b/test/Makefile.in
new file mode 100644 (file)
index 0000000..ce251b6
--- /dev/null
@@ -0,0 +1,659 @@
+# Makefile.in generated by automake 1.14 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# Process this file with automake to produce Makefile.in
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \  ]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs  ]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = test
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ax_pthread.m4 \
+       $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
+       $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+       $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+       $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+       $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
+       ctags-recursive dvi-recursive html-recursive info-recursive \
+       install-data-recursive install-dvi-recursive \
+       install-exec-recursive install-html-recursive \
+       install-info-recursive install-pdf-recursive \
+       install-ps-recursive install-recursive installcheck-recursive \
+       installdirs-recursive pdf-recursive ps-recursive \
+       tags-recursive uninstall-recursive
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive        \
+  distclean-recursive maintainer-clean-recursive
+am__recursive_targets = \
+  $(RECURSIVE_TARGETS) \
+  $(RECURSIVE_CLEAN_TARGETS) \
+  $(am__extra_recursive_targets)
+AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
+       distdir
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates.  Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+  BEGIN { nonempty = 0; } \
+  { items[$$0] = 1; nonempty = 1; } \
+  END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique.  This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+  list='$(am__tagged_files)'; \
+  unique=`for i in $$list; do \
+    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+  done | $(am__uniquify_input)`
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+am__relativize = \
+  dir0=`pwd`; \
+  sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+  sed_rest='s,^[^/]*/*,,'; \
+  sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+  sed_butlast='s,/*[^/]*$$,,'; \
+  while test -n "$$dir1"; do \
+    first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+    if test "$$first" != "."; then \
+      if test "$$first" = ".."; then \
+        dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+        dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+      else \
+        first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+        if test "$$first2" = "$$first"; then \
+          dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+        else \
+          dir2="../$$dir2"; \
+        fi; \
+        dir0="$$dir0"/"$$first"; \
+      fi; \
+    fi; \
+    dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+  done; \
+  reldir="$$dir2"
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_FT_CFLAGS = @CAIRO_FT_CFLAGS@
+CAIRO_FT_LIBS = @CAIRO_FT_LIBS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CORETEXT_CFLAGS = @CORETEXT_CFLAGS@
+CORETEXT_LIBS = @CORETEXT_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
+FREETYPE_LIBS = @FREETYPE_LIBS@
+GIT = @GIT@
+GLIB_CFLAGS = @GLIB_CFLAGS@
+GLIB_LIBS = @GLIB_LIBS@
+GLIB_MKENUMS = @GLIB_MKENUMS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GRAPHITE2_CFLAGS = @GRAPHITE2_CFLAGS@
+GRAPHITE2_LIBS = @GRAPHITE2_LIBS@
+GREP = @GREP@
+GTKDOC_CHECK = @GTKDOC_CHECK@
+GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
+GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
+GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
+GTKDOC_MKPDF = @GTKDOC_MKPDF@
+GTKDOC_REBASE = @GTKDOC_REBASE@
+HB_LIBTOOL_VERSION_INFO = @HB_LIBTOOL_VERSION_INFO@
+HB_VERSION = @HB_VERSION@
+HB_VERSION_MAJOR = @HB_VERSION_MAJOR@
+HB_VERSION_MICRO = @HB_VERSION_MICRO@
+HB_VERSION_MINOR = @HB_VERSION_MINOR@
+HTML_DIR = @HTML_DIR@
+ICU_CFLAGS = @ICU_CFLAGS@
+ICU_CONFIG = @ICU_CONFIG@
+ICU_LIBS = @ICU_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@
+INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@
+INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@
+INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@
+INTROSPECTION_LIBS = @INTROSPECTION_LIBS@
+INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@
+INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@
+INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PTHREAD_CC = @PTHREAD_CC@
+PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
+PTHREAD_LIBS = @PTHREAD_LIBS@
+RAGEL = @RAGEL@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UNISCRIBE_CFLAGS = @UNISCRIBE_CFLAGS@
+UNISCRIBE_LIBS = @UNISCRIBE_LIBS@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+ax_pthread_config = @ax_pthread_config@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+SUBDIRS = api shaping
+all: all-recursive
+
+.SUFFIXES:
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+       @for dep in $?; do \
+         case '$(am__configure_deps)' in \
+           *$$dep*) \
+             ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+               && { if test -f $@; then exit 0; else break; fi; }; \
+             exit 1;; \
+         esac; \
+       done; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits test/Makefile'; \
+       $(am__cd) $(top_srcdir) && \
+         $(AUTOMAKE) --gnits test/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+       @case '$?' in \
+         *config.status*) \
+           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+         *) \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+       esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run 'make' without going through this Makefile.
+# To change the values of 'make' variables: instead of editing Makefiles,
+# (1) if the variable is set in 'config.status', edit 'config.status'
+#     (which will cause the Makefiles to be regenerated when you run 'make');
+# (2) otherwise, pass the desired values on the 'make' command line.
+$(am__recursive_targets):
+       @fail=; \
+       if $(am__make_keepgoing); then \
+         failcom='fail=yes'; \
+       else \
+         failcom='exit 1'; \
+       fi; \
+       dot_seen=no; \
+       target=`echo $@ | sed s/-recursive//`; \
+       case "$@" in \
+         distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+         *) list='$(SUBDIRS)' ;; \
+       esac; \
+       for subdir in $$list; do \
+         echo "Making $$target in $$subdir"; \
+         if test "$$subdir" = "."; then \
+           dot_seen=yes; \
+           local_target="$$target-am"; \
+         else \
+           local_target="$$target"; \
+         fi; \
+         ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+         || eval $$failcom; \
+       done; \
+       if test "$$dot_seen" = "no"; then \
+         $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+       fi; test -z "$$fail"
+
+ID: $(am__tagged_files)
+       $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-recursive
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       set x; \
+       here=`pwd`; \
+       if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+         include_option=--etags-include; \
+         empty_fix=.; \
+       else \
+         include_option=--include; \
+         empty_fix=; \
+       fi; \
+       list='$(SUBDIRS)'; for subdir in $$list; do \
+         if test "$$subdir" = .; then :; else \
+           test ! -f $$subdir/TAGS || \
+             set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
+         fi; \
+       done; \
+       $(am__define_uniq_tagged_files); \
+       shift; \
+       if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+         test -n "$$unique" || unique=$$empty_fix; \
+         if test $$# -gt 0; then \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             "$$@" $$unique; \
+         else \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             $$unique; \
+         fi; \
+       fi
+ctags: ctags-recursive
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       $(am__define_uniq_tagged_files); \
+       test -z "$(CTAGS_ARGS)$$unique" \
+         || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+            $$unique
+
+GTAGS:
+       here=`$(am__cd) $(top_builddir) && pwd` \
+         && $(am__cd) $(top_srcdir) \
+         && gtags -i $(GTAGS_ARGS) "$$here"
+cscopelist: cscopelist-recursive
+
+cscopelist-am: $(am__tagged_files)
+       list='$(am__tagged_files)'; \
+       case "$(srcdir)" in \
+         [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+         *) sdir=$(subdir)/$(srcdir) ;; \
+       esac; \
+       for i in $$list; do \
+         if test -f "$$i"; then \
+           echo "$(subdir)/$$i"; \
+         else \
+           echo "$$sdir/$$i"; \
+         fi; \
+       done >> $(top_builddir)/cscope.files
+
+distclean-tags:
+       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+       @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       list='$(DISTFILES)'; \
+         dist_files=`for file in $$list; do echo $$file; done | \
+         sed -e "s|^$$srcdirstrip/||;t" \
+             -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+       case $$dist_files in \
+         */*) $(MKDIR_P) `echo "$$dist_files" | \
+                          sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+                          sort -u` ;; \
+       esac; \
+       for file in $$dist_files; do \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         if test -d $$d/$$file; then \
+           dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+           if test -d "$(distdir)/$$file"; then \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+         else \
+           test -f "$(distdir)/$$file" \
+           || cp -p $$d/$$file "$(distdir)/$$file" \
+           || exit 1; \
+         fi; \
+       done
+       @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+         if test "$$subdir" = .; then :; else \
+           $(am__make_dryrun) \
+             || test -d "$(distdir)/$$subdir" \
+             || $(MKDIR_P) "$(distdir)/$$subdir" \
+             || exit 1; \
+           dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+           $(am__relativize); \
+           new_distdir=$$reldir; \
+           dir1=$$subdir; dir2="$(top_distdir)"; \
+           $(am__relativize); \
+           new_top_distdir=$$reldir; \
+           echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+           echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+           ($(am__cd) $$subdir && \
+             $(MAKE) $(AM_MAKEFLAGS) \
+               top_distdir="$$new_top_distdir" \
+               distdir="$$new_distdir" \
+               am__remove_distdir=: \
+               am__skip_length_check=: \
+               am__skip_mode_fix=: \
+               distdir) \
+             || exit 1; \
+         fi; \
+       done
+check-am: all-am
+check: check-recursive
+all-am: Makefile
+installdirs: installdirs-recursive
+installdirs-am:
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+       if test -z '$(STRIP)'; then \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+             install; \
+       else \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+           "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+       fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+       -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+       -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+html-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-html-am:
+
+install-info: install-info-recursive
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: $(am__recursive_targets) install-am install-strip
+
+.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
+       check-am clean clean-generic clean-libtool cscopelist-am ctags \
+       ctags-am distclean distclean-generic distclean-libtool \
+       distclean-tags distdir dvi dvi-am html html-am info info-am \
+       install install-am install-data install-data-am install-dvi \
+       install-dvi-am install-exec install-exec-am install-html \
+       install-html-am install-info install-info-am install-man \
+       install-pdf install-pdf-am install-ps install-ps-am \
+       install-strip installcheck installcheck-am installdirs \
+       installdirs-am maintainer-clean maintainer-clean-generic \
+       mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
+       ps ps-am tags tags-am uninstall uninstall-am
+
+
+-include $(top_srcdir)/git.mk
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/test/api/Makefile.am b/test/api/Makefile.am
new file mode 100644 (file)
index 0000000..4ff14fa
--- /dev/null
@@ -0,0 +1,136 @@
+# Process this file with automake to produce Makefile.in
+
+NULL =
+EXTRA_DIST =
+CLEANFILES =
+DISTCLEANFILES =
+MAINTAINERCLEANFILES =
+
+if HAVE_GLIB
+AM_CPPFLAGS = -DSRCDIR="\"$(srcdir)\"" -I$(top_srcdir)/src/ -I$(top_builddir)/src/ $(GLIB_CFLAGS)
+LDADD = $(top_builddir)/src/libharfbuzz.la $(GLIB_LIBS)
+
+EXTRA_DIST += hb-test.h
+
+check_PROGRAMS = $(TEST_PROGS)
+noinst_PROGRAMS = $(TEST_PROGS)
+
+TEST_PROGS = \
+       test-blob \
+       test-buffer \
+       test-common \
+       test-font \
+       test-object \
+       test-set \
+       test-shape \
+       test-unicode \
+       test-version \
+       $(NULL)
+
+test_unicode_CPPFLAGS = $(AM_CPPFLAGS)
+test_unicode_LDADD = $(LDADD)
+if HAVE_GLIB
+test_unicode_CPPFLAGS += $(GLIB_CFLAGS)
+endif
+if HAVE_ICU
+test_unicode_CPPFLAGS += $(ICU_CFLAGS)
+test_unicode_LDADD += $(top_builddir)/src/libharfbuzz-icu.la
+endif
+
+
+if HAVE_OT
+TEST_PROGS += \
+       test-ot-tag \
+       $(NULL)
+endif
+
+# Tests for header compilation
+TEST_PROGS += \
+       test-c \
+       test-cplusplus \
+       $(NULL)
+test_cplusplus_SOURCES = test-cplusplus.cc
+test_c_CPPFLAGS = $(AM_CPPFLAGS)
+test_cplusplus_CPPFLAGS = $(AM_CPPFLAGS)
+if HAVE_ICU
+test_c_CPPFLAGS += $(ICU_CFLAGS)
+test_cplusplus_CPPFLAGS += $(ICU_CFLAGS)
+endif
+if HAVE_FREETYPE
+test_c_CPPFLAGS += $(FREETYPE_CFLAGS)
+test_cplusplus_CPPFLAGS += $(FREETYPE_CFLAGS)
+endif
+
+# Default test running environment
+TESTS = $(TEST_PROGS)
+TESTS_ENVIRONMENT = \
+       MALLOC_CHECK_=2 \
+       MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256)) \
+       G_DEBUG=gc-friendly \
+       G_SLICE=always-malloc \
+       srcdir=$(srcdir) \
+       $(NULL)
+
+
+# check-tool: Run tests under $(TOOL)
+check-tool:
+       $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) check \
+       TESTS_ENVIRONMENT='$(TESTS_ENVIRONMENT) $(top_builddir)/libtool --mode=execute \
+       env $(TOOL)'
+# check-tool-raw: Run tests under $(TOOL), but don't run under libtool
+check-tool-raw:
+       $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) check \
+       TESTS_ENVIRONMENT='$(TESTS_ENVIRONMENT) \
+       env $(TOOL)'
+
+# check-gtester: Run tests under gtester
+GTESTER = gtester
+check-gtester:
+       $(AM_V_at)$(MAKE) $(AM_MAKEFLGS) check-tool-raw TOOL="$(GTESTER) --verbose --keep-going"
+
+
+# Check tests under valgrind.  Saves log to log-valgrind.txt
+VALGRIND_FLAGS = \
+       --tool=memcheck --suppressions=$(srcdir)/.valgrind-suppressions \
+       --track-origins=yes \
+       --leak-check=yes
+       $(EXTRA_VALGRIND_FLAGS)
+#      Can't do for now: --show-reachable=yes
+CLEANFILES +=  log-valgrind.txt
+valgrind_verbose = $(valgrind_verbose_@AM_V@)
+valgrind_verbose_ = $(valgrind_verbose_@AM_DEFAULT_V@)
+valgrind_verbose_0 = | \
+       grep '\(^[^=]\|ERROR SUMMARY\|definitely lost\|indirectly lost\)' | grep -v ': 0'
+# TODO: The following check does not fail if valgrind finds error.  It should.
+check-valgrind:
+       $(AM_V_at)$(MAKE) $(AM_MAKEFLGS) check-tool TOOL="valgrind $(VALGRIND_FLAGS)" \
+       2>&1 | tee log-valgrind.txt $(valgrind_verbose)
+
+
+# check-symbols: Finds untested API symbols
+symbols-tested.txt: $(TEST_PROGS)
+       $(AM_V_GEN)$(top_builddir)/libtool --mode=execute nm $^ \
+       | grep ' U hb_' | sed 's/.* U hb_/hb_/' \
+       | sort | uniq > $@.tmp && mv $@.tmp $@
+symbols-exported.txt: $(top_builddir)/src/.libs/libharfbuzz.so
+       $(AM_V_GEN)$(top_builddir)/libtool --mode=execute nm $^ \
+       | grep ' T ' | sed 's/.* T //' | grep -v '^\(_init\|_fini\)$$' \
+       | sort | uniq > $@.tmp && mv $@.tmp $@
+symbols-untested.txt: symbols-tested.txt symbols-exported.txt
+       $(AM_V_GEN)diff $^ > $@.tmp; mv $@.tmp $@
+CLEANFILES += symbols-tested.txt symbols-exported.txt symbols-untested.txt
+check-symbols: symbols-untested.txt
+       @! cat $^ | grep .
+
+
+
+else
+check-am: err-glib
+err-glib:
+       @echo "You need to have glib support enabled to run the tests"
+       @exit 77
+endif
+
+.PHONY: check-symbols check-tool check-valgrind
+
+-include $(top_srcdir)/git.mk
diff --git a/test/api/Makefile.in b/test/api/Makefile.in
new file mode 100644 (file)
index 0000000..6faa95f
--- /dev/null
@@ -0,0 +1,1411 @@
+# Makefile.in generated by automake 1.14 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# Process this file with automake to produce Makefile.in
+
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \  ]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs  ]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+@HAVE_GLIB_TRUE@am__append_1 = hb-test.h
+@HAVE_GLIB_TRUE@check_PROGRAMS = $(am__EXEEXT_3)
+@HAVE_GLIB_TRUE@noinst_PROGRAMS = $(am__EXEEXT_3)
+@HAVE_GLIB_TRUE@@HAVE_ICU_TRUE@am__append_2 = $(ICU_CFLAGS)
+@HAVE_GLIB_TRUE@@HAVE_ICU_TRUE@am__append_3 = $(top_builddir)/src/libharfbuzz-icu.la
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@am__append_4 = \
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@ test-ot-tag \
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@ $(NULL)
+
+@HAVE_GLIB_TRUE@@HAVE_ICU_TRUE@am__append_5 = $(ICU_CFLAGS)
+@HAVE_GLIB_TRUE@@HAVE_ICU_TRUE@am__append_6 = $(ICU_CFLAGS)
+@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@am__append_7 = $(FREETYPE_CFLAGS)
+@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@am__append_8 = $(FREETYPE_CFLAGS)
+@HAVE_GLIB_TRUE@TESTS = $(am__EXEEXT_3)
+#      Can't do for now: --show-reachable=yes
+@HAVE_GLIB_TRUE@am__append_9 = log-valgrind.txt symbols-tested.txt \
+@HAVE_GLIB_TRUE@       symbols-exported.txt symbols-untested.txt
+subdir = test/api
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
+       $(top_srcdir)/depcomp $(top_srcdir)/test-driver
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ax_pthread.m4 \
+       $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
+       $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+       $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+       $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+       $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+am__EXEEXT_1 =
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@am__EXEEXT_2 = test-ot-tag$(EXEEXT) \
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@ $(am__EXEEXT_1)
+@HAVE_GLIB_TRUE@am__EXEEXT_3 = test-blob$(EXEEXT) test-buffer$(EXEEXT) \
+@HAVE_GLIB_TRUE@       test-common$(EXEEXT) test-font$(EXEEXT) \
+@HAVE_GLIB_TRUE@       test-object$(EXEEXT) test-set$(EXEEXT) \
+@HAVE_GLIB_TRUE@       test-shape$(EXEEXT) test-unicode$(EXEEXT) \
+@HAVE_GLIB_TRUE@       test-version$(EXEEXT) $(am__EXEEXT_1) \
+@HAVE_GLIB_TRUE@       $(am__EXEEXT_2) test-c$(EXEEXT) \
+@HAVE_GLIB_TRUE@       test-cplusplus$(EXEEXT) $(am__EXEEXT_1)
+PROGRAMS = $(noinst_PROGRAMS)
+test_blob_SOURCES = test-blob.c
+test_blob_OBJECTS = test-blob.$(OBJEXT)
+test_blob_LDADD = $(LDADD)
+am__DEPENDENCIES_1 =
+@HAVE_GLIB_TRUE@test_blob_DEPENDENCIES =  \
+@HAVE_GLIB_TRUE@       $(top_builddir)/src/libharfbuzz.la \
+@HAVE_GLIB_TRUE@       $(am__DEPENDENCIES_1)
+AM_V_lt = $(am__v_lt_@AM_V@)
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+am__v_lt_0 = --silent
+am__v_lt_1 = 
+test_buffer_SOURCES = test-buffer.c
+test_buffer_OBJECTS = test-buffer.$(OBJEXT)
+test_buffer_LDADD = $(LDADD)
+@HAVE_GLIB_TRUE@test_buffer_DEPENDENCIES =  \
+@HAVE_GLIB_TRUE@       $(top_builddir)/src/libharfbuzz.la \
+@HAVE_GLIB_TRUE@       $(am__DEPENDENCIES_1)
+test_c_SOURCES = test-c.c
+test_c_OBJECTS = test_c-test-c.$(OBJEXT)
+test_c_LDADD = $(LDADD)
+@HAVE_GLIB_TRUE@test_c_DEPENDENCIES =  \
+@HAVE_GLIB_TRUE@       $(top_builddir)/src/libharfbuzz.la \
+@HAVE_GLIB_TRUE@       $(am__DEPENDENCIES_1)
+test_common_SOURCES = test-common.c
+test_common_OBJECTS = test-common.$(OBJEXT)
+test_common_LDADD = $(LDADD)
+@HAVE_GLIB_TRUE@test_common_DEPENDENCIES =  \
+@HAVE_GLIB_TRUE@       $(top_builddir)/src/libharfbuzz.la \
+@HAVE_GLIB_TRUE@       $(am__DEPENDENCIES_1)
+am__test_cplusplus_SOURCES_DIST = test-cplusplus.cc
+@HAVE_GLIB_TRUE@am_test_cplusplus_OBJECTS =  \
+@HAVE_GLIB_TRUE@       test_cplusplus-test-cplusplus.$(OBJEXT)
+test_cplusplus_OBJECTS = $(am_test_cplusplus_OBJECTS)
+test_cplusplus_LDADD = $(LDADD)
+@HAVE_GLIB_TRUE@test_cplusplus_DEPENDENCIES =  \
+@HAVE_GLIB_TRUE@       $(top_builddir)/src/libharfbuzz.la \
+@HAVE_GLIB_TRUE@       $(am__DEPENDENCIES_1)
+test_font_SOURCES = test-font.c
+test_font_OBJECTS = test-font.$(OBJEXT)
+test_font_LDADD = $(LDADD)
+@HAVE_GLIB_TRUE@test_font_DEPENDENCIES =  \
+@HAVE_GLIB_TRUE@       $(top_builddir)/src/libharfbuzz.la \
+@HAVE_GLIB_TRUE@       $(am__DEPENDENCIES_1)
+test_object_SOURCES = test-object.c
+test_object_OBJECTS = test-object.$(OBJEXT)
+test_object_LDADD = $(LDADD)
+@HAVE_GLIB_TRUE@test_object_DEPENDENCIES =  \
+@HAVE_GLIB_TRUE@       $(top_builddir)/src/libharfbuzz.la \
+@HAVE_GLIB_TRUE@       $(am__DEPENDENCIES_1)
+test_ot_tag_SOURCES = test-ot-tag.c
+test_ot_tag_OBJECTS = test-ot-tag.$(OBJEXT)
+test_ot_tag_LDADD = $(LDADD)
+@HAVE_GLIB_TRUE@test_ot_tag_DEPENDENCIES =  \
+@HAVE_GLIB_TRUE@       $(top_builddir)/src/libharfbuzz.la \
+@HAVE_GLIB_TRUE@       $(am__DEPENDENCIES_1)
+test_set_SOURCES = test-set.c
+test_set_OBJECTS = test-set.$(OBJEXT)
+test_set_LDADD = $(LDADD)
+@HAVE_GLIB_TRUE@test_set_DEPENDENCIES =  \
+@HAVE_GLIB_TRUE@       $(top_builddir)/src/libharfbuzz.la \
+@HAVE_GLIB_TRUE@       $(am__DEPENDENCIES_1)
+test_shape_SOURCES = test-shape.c
+test_shape_OBJECTS = test-shape.$(OBJEXT)
+test_shape_LDADD = $(LDADD)
+@HAVE_GLIB_TRUE@test_shape_DEPENDENCIES =  \
+@HAVE_GLIB_TRUE@       $(top_builddir)/src/libharfbuzz.la \
+@HAVE_GLIB_TRUE@       $(am__DEPENDENCIES_1)
+test_unicode_SOURCES = test-unicode.c
+test_unicode_OBJECTS = test_unicode-test-unicode.$(OBJEXT)
+@HAVE_GLIB_TRUE@am__DEPENDENCIES_2 =  \
+@HAVE_GLIB_TRUE@       $(top_builddir)/src/libharfbuzz.la \
+@HAVE_GLIB_TRUE@       $(am__DEPENDENCIES_1)
+@HAVE_GLIB_TRUE@test_unicode_DEPENDENCIES = $(am__DEPENDENCIES_2) \
+@HAVE_GLIB_TRUE@       $(am__append_3)
+test_version_SOURCES = test-version.c
+test_version_OBJECTS = test-version.$(OBJEXT)
+test_version_LDADD = $(LDADD)
+@HAVE_GLIB_TRUE@test_version_DEPENDENCIES =  \
+@HAVE_GLIB_TRUE@       $(top_builddir)/src/libharfbuzz.la \
+@HAVE_GLIB_TRUE@       $(am__DEPENDENCIES_1)
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+       $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+       $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+       $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_@AM_V@)
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
+am__v_CC_0 = @echo "  CC      " $@;
+am__v_CC_1 = 
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_@AM_V@)
+am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
+am__v_CCLD_0 = @echo "  CCLD    " $@;
+am__v_CCLD_1 = 
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+       $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
+       $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+       $(AM_CXXFLAGS) $(CXXFLAGS)
+AM_V_CXX = $(am__v_CXX_@AM_V@)
+am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
+am__v_CXX_0 = @echo "  CXX     " $@;
+am__v_CXX_1 = 
+CXXLD = $(CXX)
+CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
+       $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
+am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
+am__v_CXXLD_0 = @echo "  CXXLD   " $@;
+am__v_CXXLD_1 = 
+SOURCES = test-blob.c test-buffer.c test-c.c test-common.c \
+       $(test_cplusplus_SOURCES) test-font.c test-object.c \
+       test-ot-tag.c test-set.c test-shape.c test-unicode.c \
+       test-version.c
+DIST_SOURCES = test-blob.c test-buffer.c test-c.c test-common.c \
+       $(am__test_cplusplus_SOURCES_DIST) test-font.c test-object.c \
+       test-ot-tag.c test-set.c test-shape.c test-unicode.c \
+       test-version.c
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates.  Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+  BEGIN { nonempty = 0; } \
+  { items[$$0] = 1; nonempty = 1; } \
+  END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique.  This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+  list='$(am__tagged_files)'; \
+  unique=`for i in $$list; do \
+    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+  done | $(am__uniquify_input)`
+ETAGS = etags
+CTAGS = ctags
+am__tty_colors_dummy = \
+  mgn= red= grn= lgn= blu= brg= std=; \
+  am__color_tests=no
+am__tty_colors = { \
+  $(am__tty_colors_dummy); \
+  if test "X$(AM_COLOR_TESTS)" = Xno; then \
+    am__color_tests=no; \
+  elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
+    am__color_tests=yes; \
+  elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
+    am__color_tests=yes; \
+  fi; \
+  if test $$am__color_tests = yes; then \
+    red='\e[0;31m'; \
+    grn='\e[0;32m'; \
+    lgn='\e[1;32m'; \
+    blu='\e[1;34m'; \
+    mgn='\e[0;35m'; \
+    brg='\e[1m'; \
+    std='\e[m'; \
+  fi; \
+}
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+    *) f=$$p;; \
+  esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+  for p in $$list; do echo "$$p $$p"; done | \
+  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+    if (++n[$$2] == $(am__install_max)) \
+      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+    END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+  test -z "$$files" \
+    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+         $(am__cd) "$$dir" && rm -f $$files; }; \
+  }
+am__recheck_rx = ^[    ]*:recheck:[    ]*
+am__global_test_result_rx = ^[         ]*:global-test-result:[         ]*
+am__copy_in_global_log_rx = ^[         ]*:copy-in-global-log:[         ]*
+# A command that, given a newline-separated list of test names on the
+# standard input, print the name of the tests that are to be re-run
+# upon "make recheck".
+am__list_recheck_tests = $(AWK) '{ \
+  recheck = 1; \
+  while ((rc = (getline line < ($$0 ".trs"))) != 0) \
+    { \
+      if (rc < 0) \
+        { \
+          if ((getline line2 < ($$0 ".log")) < 0) \
+           recheck = 0; \
+          break; \
+        } \
+      else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
+        { \
+          recheck = 0; \
+          break; \
+        } \
+      else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
+        { \
+          break; \
+        } \
+    }; \
+  if (recheck) \
+    print $$0; \
+  close ($$0 ".trs"); \
+  close ($$0 ".log"); \
+}'
+# A command that, given a newline-separated list of test names on the
+# standard input, create the global log from their .trs and .log files.
+am__create_global_log = $(AWK) ' \
+function fatal(msg) \
+{ \
+  print "fatal: making $@: " msg | "cat >&2"; \
+  exit 1; \
+} \
+function rst_section(header) \
+{ \
+  print header; \
+  len = length(header); \
+  for (i = 1; i <= len; i = i + 1) \
+    printf "="; \
+  printf "\n\n"; \
+} \
+{ \
+  copy_in_global_log = 1; \
+  global_test_result = "RUN"; \
+  while ((rc = (getline line < ($$0 ".trs"))) != 0) \
+    { \
+      if (rc < 0) \
+         fatal("failed to read from " $$0 ".trs"); \
+      if (line ~ /$(am__global_test_result_rx)/) \
+        { \
+          sub("$(am__global_test_result_rx)", "", line); \
+          sub("[       ]*$$", "", line); \
+          global_test_result = line; \
+        } \
+      else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
+        copy_in_global_log = 0; \
+    }; \
+  if (copy_in_global_log) \
+    { \
+      rst_section(global_test_result ": " $$0); \
+      while ((rc = (getline line < ($$0 ".log"))) != 0) \
+      { \
+        if (rc < 0) \
+          fatal("failed to read from " $$0 ".log"); \
+        print line; \
+      }; \
+      printf "\n"; \
+    }; \
+  close ($$0 ".trs"); \
+  close ($$0 ".log"); \
+}'
+# Restructured Text title.
+am__rst_title = { sed 's/.*/   &   /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
+# Solaris 10 'make', and several other traditional 'make' implementations,
+# pass "-e" to $(SHELL), and POSIX 2008 even requires this.  Work around it
+# by disabling -e (using the XSI extension "set +e") if it's set.
+am__sh_e_setup = case $$- in *e*) set +e;; esac
+# Default flags passed to test drivers.
+am__common_driver_flags = \
+  --color-tests "$$am__color_tests" \
+  --enable-hard-errors "$$am__enable_hard_errors" \
+  --expect-failure "$$am__expect_failure"
+# To be inserted before the command running the test.  Creates the
+# directory for the log if needed.  Stores in $dir the directory
+# containing $f, in $tst the test, in $log the log.  Executes the
+# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
+# passes TESTS_ENVIRONMENT.  Set up options for the wrapper that
+# will run the test scripts (or their associated LOG_COMPILER, if
+# thy have one).
+am__check_pre = \
+$(am__sh_e_setup);                                     \
+$(am__vpath_adj_setup) $(am__vpath_adj)                        \
+$(am__tty_colors);                                     \
+srcdir=$(srcdir); export srcdir;                       \
+case "$@" in                                           \
+  */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;;   \
+    *) am__odir=.;;                                    \
+esac;                                                  \
+test "x$$am__odir" = x"." || test -d "$$am__odir"      \
+  || $(MKDIR_P) "$$am__odir" || exit $$?;              \
+if test -f "./$$f"; then dir=./;                       \
+elif test -f "$$f"; then dir=;                         \
+else dir="$(srcdir)/"; fi;                             \
+tst=$$dir$$f; log='$@';                                \
+if test -n '$(DISABLE_HARD_ERRORS)'; then              \
+  am__enable_hard_errors=no;                           \
+else                                                   \
+  am__enable_hard_errors=yes;                          \
+fi;                                                    \
+case " $(XFAIL_TESTS) " in                             \
+  *[\ \        ]$$f[\ \        ]* | *[\ \      ]$$dir$$f[\ \   ]*) \
+    am__expect_failure=yes;;                           \
+  *)                                                   \
+    am__expect_failure=no;;                            \
+esac;                                                  \
+$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
+# A shell command to get the names of the tests scripts with any registered
+# extension removed (i.e., equivalently, the names of the test logs, with
+# the '.log' extension removed).  The result is saved in the shell variable
+# '$bases'.  This honors runtime overriding of TESTS and TEST_LOGS.  Sadly,
+# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
+# since that might cause problem with VPATH rewrites for suffix-less tests.
+# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
+am__set_TESTS_bases = \
+  bases='$(TEST_LOGS)'; \
+  bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
+  bases=`echo $$bases`
+RECHECK_LOGS = $(TEST_LOGS)
+AM_RECURSIVE_TARGETS = check recheck
+TEST_SUITE_LOG = test-suite.log
+TEST_EXTENSIONS = @EXEEXT@ .test
+LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
+LOG_COMPILE = $(LOG_COMPILER) $(AM_LOG_FLAGS) $(LOG_FLAGS)
+am__set_b = \
+  case '$@' in \
+    */*) \
+      case '$*' in \
+        */*) b='$*';; \
+          *) b=`echo '$@' | sed 's/\.log$$//'`; \
+       esac;; \
+    *) \
+      b='$*';; \
+  esac
+am__test_logs1 = $(TESTS:=.log)
+am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
+TEST_LOGS = $(am__test_logs2:.test.log=.log)
+TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
+TEST_LOG_COMPILE = $(TEST_LOG_COMPILER) $(AM_TEST_LOG_FLAGS) \
+       $(TEST_LOG_FLAGS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_FT_CFLAGS = @CAIRO_FT_CFLAGS@
+CAIRO_FT_LIBS = @CAIRO_FT_LIBS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CORETEXT_CFLAGS = @CORETEXT_CFLAGS@
+CORETEXT_LIBS = @CORETEXT_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
+FREETYPE_LIBS = @FREETYPE_LIBS@
+GIT = @GIT@
+GLIB_CFLAGS = @GLIB_CFLAGS@
+GLIB_LIBS = @GLIB_LIBS@
+GLIB_MKENUMS = @GLIB_MKENUMS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GRAPHITE2_CFLAGS = @GRAPHITE2_CFLAGS@
+GRAPHITE2_LIBS = @GRAPHITE2_LIBS@
+GREP = @GREP@
+GTKDOC_CHECK = @GTKDOC_CHECK@
+GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
+GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
+GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
+GTKDOC_MKPDF = @GTKDOC_MKPDF@
+GTKDOC_REBASE = @GTKDOC_REBASE@
+HB_LIBTOOL_VERSION_INFO = @HB_LIBTOOL_VERSION_INFO@
+HB_VERSION = @HB_VERSION@
+HB_VERSION_MAJOR = @HB_VERSION_MAJOR@
+HB_VERSION_MICRO = @HB_VERSION_MICRO@
+HB_VERSION_MINOR = @HB_VERSION_MINOR@
+HTML_DIR = @HTML_DIR@
+ICU_CFLAGS = @ICU_CFLAGS@
+ICU_CONFIG = @ICU_CONFIG@
+ICU_LIBS = @ICU_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@
+INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@
+INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@
+INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@
+INTROSPECTION_LIBS = @INTROSPECTION_LIBS@
+INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@
+INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@
+INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PTHREAD_CC = @PTHREAD_CC@
+PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
+PTHREAD_LIBS = @PTHREAD_LIBS@
+RAGEL = @RAGEL@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UNISCRIBE_CFLAGS = @UNISCRIBE_CFLAGS@
+UNISCRIBE_LIBS = @UNISCRIBE_LIBS@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+ax_pthread_config = @ax_pthread_config@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+NULL = 
+EXTRA_DIST = $(am__append_1)
+CLEANFILES = $(am__append_9)
+DISTCLEANFILES = 
+MAINTAINERCLEANFILES = 
+@HAVE_GLIB_TRUE@AM_CPPFLAGS = -DSRCDIR="\"$(srcdir)\"" -I$(top_srcdir)/src/ -I$(top_builddir)/src/ $(GLIB_CFLAGS)
+@HAVE_GLIB_TRUE@LDADD = $(top_builddir)/src/libharfbuzz.la $(GLIB_LIBS)
+
+# Tests for header compilation
+@HAVE_GLIB_TRUE@TEST_PROGS = test-blob test-buffer test-common \
+@HAVE_GLIB_TRUE@       test-font test-object test-set test-shape \
+@HAVE_GLIB_TRUE@       test-unicode test-version $(NULL) \
+@HAVE_GLIB_TRUE@       $(am__append_4) test-c test-cplusplus $(NULL)
+@HAVE_GLIB_TRUE@test_unicode_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) \
+@HAVE_GLIB_TRUE@       $(am__append_2)
+@HAVE_GLIB_TRUE@test_unicode_LDADD = $(LDADD) $(am__append_3)
+@HAVE_GLIB_TRUE@test_cplusplus_SOURCES = test-cplusplus.cc
+@HAVE_GLIB_TRUE@test_c_CPPFLAGS = $(AM_CPPFLAGS) $(am__append_5) \
+@HAVE_GLIB_TRUE@       $(am__append_7)
+@HAVE_GLIB_TRUE@test_cplusplus_CPPFLAGS = $(AM_CPPFLAGS) \
+@HAVE_GLIB_TRUE@       $(am__append_6) $(am__append_8)
+@HAVE_GLIB_TRUE@TESTS_ENVIRONMENT = \
+@HAVE_GLIB_TRUE@       MALLOC_CHECK_=2 \
+@HAVE_GLIB_TRUE@       MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256)) \
+@HAVE_GLIB_TRUE@       G_DEBUG=gc-friendly \
+@HAVE_GLIB_TRUE@       G_SLICE=always-malloc \
+@HAVE_GLIB_TRUE@       srcdir=$(srcdir) \
+@HAVE_GLIB_TRUE@       $(NULL)
+
+
+# check-gtester: Run tests under gtester
+@HAVE_GLIB_TRUE@GTESTER = gtester
+
+# Check tests under valgrind.  Saves log to log-valgrind.txt
+@HAVE_GLIB_TRUE@VALGRIND_FLAGS = \
+@HAVE_GLIB_TRUE@       --tool=memcheck --suppressions=$(srcdir)/.valgrind-suppressions \
+@HAVE_GLIB_TRUE@       --track-origins=yes \
+@HAVE_GLIB_TRUE@       --leak-check=yes
+
+@HAVE_GLIB_TRUE@valgrind_verbose = $(valgrind_verbose_@AM_V@)
+@HAVE_GLIB_TRUE@valgrind_verbose_ = $(valgrind_verbose_@AM_DEFAULT_V@)
+@HAVE_GLIB_TRUE@valgrind_verbose_0 = | \
+@HAVE_GLIB_TRUE@       grep '\(^[^=]\|ERROR SUMMARY\|definitely lost\|indirectly lost\)' | grep -v ': 0'
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .cc .lo .log .o .obj .test .test$(EXEEXT) .trs
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+       @for dep in $?; do \
+         case '$(am__configure_deps)' in \
+           *$$dep*) \
+             ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+               && { if test -f $@; then exit 0; else break; fi; }; \
+             exit 1;; \
+         esac; \
+       done; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits test/api/Makefile'; \
+       $(am__cd) $(top_srcdir) && \
+         $(AUTOMAKE) --gnits test/api/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+       @case '$?' in \
+         *config.status*) \
+           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+         *) \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+       esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+clean-checkPROGRAMS:
+       @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
+       echo " rm -f" $$list; \
+       rm -f $$list || exit $$?; \
+       test -n "$(EXEEXT)" || exit 0; \
+       list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
+       echo " rm -f" $$list; \
+       rm -f $$list
+
+clean-noinstPROGRAMS:
+       @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
+       echo " rm -f" $$list; \
+       rm -f $$list || exit $$?; \
+       test -n "$(EXEEXT)" || exit 0; \
+       list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
+       echo " rm -f" $$list; \
+       rm -f $$list
+
+test-blob$(EXEEXT): $(test_blob_OBJECTS) $(test_blob_DEPENDENCIES) $(EXTRA_test_blob_DEPENDENCIES) 
+       @rm -f test-blob$(EXEEXT)
+       $(AM_V_CCLD)$(LINK) $(test_blob_OBJECTS) $(test_blob_LDADD) $(LIBS)
+
+test-buffer$(EXEEXT): $(test_buffer_OBJECTS) $(test_buffer_DEPENDENCIES) $(EXTRA_test_buffer_DEPENDENCIES) 
+       @rm -f test-buffer$(EXEEXT)
+       $(AM_V_CCLD)$(LINK) $(test_buffer_OBJECTS) $(test_buffer_LDADD) $(LIBS)
+
+test-c$(EXEEXT): $(test_c_OBJECTS) $(test_c_DEPENDENCIES) $(EXTRA_test_c_DEPENDENCIES) 
+       @rm -f test-c$(EXEEXT)
+       $(AM_V_CCLD)$(LINK) $(test_c_OBJECTS) $(test_c_LDADD) $(LIBS)
+
+test-common$(EXEEXT): $(test_common_OBJECTS) $(test_common_DEPENDENCIES) $(EXTRA_test_common_DEPENDENCIES) 
+       @rm -f test-common$(EXEEXT)
+       $(AM_V_CCLD)$(LINK) $(test_common_OBJECTS) $(test_common_LDADD) $(LIBS)
+
+test-cplusplus$(EXEEXT): $(test_cplusplus_OBJECTS) $(test_cplusplus_DEPENDENCIES) $(EXTRA_test_cplusplus_DEPENDENCIES) 
+       @rm -f test-cplusplus$(EXEEXT)
+       $(AM_V_CXXLD)$(CXXLINK) $(test_cplusplus_OBJECTS) $(test_cplusplus_LDADD) $(LIBS)
+
+test-font$(EXEEXT): $(test_font_OBJECTS) $(test_font_DEPENDENCIES) $(EXTRA_test_font_DEPENDENCIES) 
+       @rm -f test-font$(EXEEXT)
+       $(AM_V_CCLD)$(LINK) $(test_font_OBJECTS) $(test_font_LDADD) $(LIBS)
+
+test-object$(EXEEXT): $(test_object_OBJECTS) $(test_object_DEPENDENCIES) $(EXTRA_test_object_DEPENDENCIES) 
+       @rm -f test-object$(EXEEXT)
+       $(AM_V_CCLD)$(LINK) $(test_object_OBJECTS) $(test_object_LDADD) $(LIBS)
+
+test-ot-tag$(EXEEXT): $(test_ot_tag_OBJECTS) $(test_ot_tag_DEPENDENCIES) $(EXTRA_test_ot_tag_DEPENDENCIES) 
+       @rm -f test-ot-tag$(EXEEXT)
+       $(AM_V_CCLD)$(LINK) $(test_ot_tag_OBJECTS) $(test_ot_tag_LDADD) $(LIBS)
+
+test-set$(EXEEXT): $(test_set_OBJECTS) $(test_set_DEPENDENCIES) $(EXTRA_test_set_DEPENDENCIES) 
+       @rm -f test-set$(EXEEXT)
+       $(AM_V_CCLD)$(LINK) $(test_set_OBJECTS) $(test_set_LDADD) $(LIBS)
+
+test-shape$(EXEEXT): $(test_shape_OBJECTS) $(test_shape_DEPENDENCIES) $(EXTRA_test_shape_DEPENDENCIES) 
+       @rm -f test-shape$(EXEEXT)
+       $(AM_V_CCLD)$(LINK) $(test_shape_OBJECTS) $(test_shape_LDADD) $(LIBS)
+
+test-unicode$(EXEEXT): $(test_unicode_OBJECTS) $(test_unicode_DEPENDENCIES) $(EXTRA_test_unicode_DEPENDENCIES) 
+       @rm -f test-unicode$(EXEEXT)
+       $(AM_V_CCLD)$(LINK) $(test_unicode_OBJECTS) $(test_unicode_LDADD) $(LIBS)
+
+test-version$(EXEEXT): $(test_version_OBJECTS) $(test_version_DEPENDENCIES) $(EXTRA_test_version_DEPENDENCIES) 
+       @rm -f test-version$(EXEEXT)
+       $(AM_V_CCLD)$(LINK) $(test_version_OBJECTS) $(test_version_LDADD) $(LIBS)
+
+mostlyclean-compile:
+       -rm -f *.$(OBJEXT)
+
+distclean-compile:
+       -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-blob.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-buffer.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-common.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-font.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-object.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-ot-tag.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-set.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-shape.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test-version.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_c-test-c.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_cplusplus-test-cplusplus.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_unicode-test-unicode.Po@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
+
+.c.obj:
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
+
+test_c-test-c.o: test-c.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_c_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_c-test-c.o -MD -MP -MF $(DEPDIR)/test_c-test-c.Tpo -c -o test_c-test-c.o `test -f 'test-c.c' || echo '$(srcdir)/'`test-c.c
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/test_c-test-c.Tpo $(DEPDIR)/test_c-test-c.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='test-c.c' object='test_c-test-c.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_c_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_c-test-c.o `test -f 'test-c.c' || echo '$(srcdir)/'`test-c.c
+
+test_c-test-c.obj: test-c.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_c_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_c-test-c.obj -MD -MP -MF $(DEPDIR)/test_c-test-c.Tpo -c -o test_c-test-c.obj `if test -f 'test-c.c'; then $(CYGPATH_W) 'test-c.c'; else $(CYGPATH_W) '$(srcdir)/test-c.c'; fi`
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/test_c-test-c.Tpo $(DEPDIR)/test_c-test-c.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='test-c.c' object='test_c-test-c.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_c_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_c-test-c.obj `if test -f 'test-c.c'; then $(CYGPATH_W) 'test-c.c'; else $(CYGPATH_W) '$(srcdir)/test-c.c'; fi`
+
+test_unicode-test-unicode.o: test-unicode.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_unicode_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_unicode-test-unicode.o -MD -MP -MF $(DEPDIR)/test_unicode-test-unicode.Tpo -c -o test_unicode-test-unicode.o `test -f 'test-unicode.c' || echo '$(srcdir)/'`test-unicode.c
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/test_unicode-test-unicode.Tpo $(DEPDIR)/test_unicode-test-unicode.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='test-unicode.c' object='test_unicode-test-unicode.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_unicode_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_unicode-test-unicode.o `test -f 'test-unicode.c' || echo '$(srcdir)/'`test-unicode.c
+
+test_unicode-test-unicode.obj: test-unicode.c
+@am__fastdepCC_TRUE@   $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_unicode_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT test_unicode-test-unicode.obj -MD -MP -MF $(DEPDIR)/test_unicode-test-unicode.Tpo -c -o test_unicode-test-unicode.obj `if test -f 'test-unicode.c'; then $(CYGPATH_W) 'test-unicode.c'; else $(CYGPATH_W) '$(srcdir)/test-unicode.c'; fi`
+@am__fastdepCC_TRUE@   $(AM_V_at)$(am__mv) $(DEPDIR)/test_unicode-test-unicode.Tpo $(DEPDIR)/test_unicode-test-unicode.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      $(AM_V_CC)source='test-unicode.c' object='test_unicode-test-unicode.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@  $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_unicode_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o test_unicode-test-unicode.obj `if test -f 'test-unicode.c'; then $(CYGPATH_W) 'test-unicode.c'; else $(CYGPATH_W) '$(srcdir)/test-unicode.c'; fi`
+
+.cc.o:
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
+
+.cc.obj:
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.cc.lo:
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
+
+test_cplusplus-test-cplusplus.o: test-cplusplus.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_cplusplus_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT test_cplusplus-test-cplusplus.o -MD -MP -MF $(DEPDIR)/test_cplusplus-test-cplusplus.Tpo -c -o test_cplusplus-test-cplusplus.o `test -f 'test-cplusplus.cc' || echo '$(srcdir)/'`test-cplusplus.cc
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/test_cplusplus-test-cplusplus.Tpo $(DEPDIR)/test_cplusplus-test-cplusplus.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='test-cplusplus.cc' object='test_cplusplus-test-cplusplus.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_cplusplus_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o test_cplusplus-test-cplusplus.o `test -f 'test-cplusplus.cc' || echo '$(srcdir)/'`test-cplusplus.cc
+
+test_cplusplus-test-cplusplus.obj: test-cplusplus.cc
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_cplusplus_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT test_cplusplus-test-cplusplus.obj -MD -MP -MF $(DEPDIR)/test_cplusplus-test-cplusplus.Tpo -c -o test_cplusplus-test-cplusplus.obj `if test -f 'test-cplusplus.cc'; then $(CYGPATH_W) 'test-cplusplus.cc'; else $(CYGPATH_W) '$(srcdir)/test-cplusplus.cc'; fi`
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/test_cplusplus-test-cplusplus.Tpo $(DEPDIR)/test_cplusplus-test-cplusplus.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='test-cplusplus.cc' object='test_cplusplus-test-cplusplus.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(test_cplusplus_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o test_cplusplus-test-cplusplus.obj `if test -f 'test-cplusplus.cc'; then $(CYGPATH_W) 'test-cplusplus.cc'; else $(CYGPATH_W) '$(srcdir)/test-cplusplus.cc'; fi`
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+
+ID: $(am__tagged_files)
+       $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-am
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       set x; \
+       here=`pwd`; \
+       $(am__define_uniq_tagged_files); \
+       shift; \
+       if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+         test -n "$$unique" || unique=$$empty_fix; \
+         if test $$# -gt 0; then \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             "$$@" $$unique; \
+         else \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             $$unique; \
+         fi; \
+       fi
+ctags: ctags-am
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       $(am__define_uniq_tagged_files); \
+       test -z "$(CTAGS_ARGS)$$unique" \
+         || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+            $$unique
+
+GTAGS:
+       here=`$(am__cd) $(top_builddir) && pwd` \
+         && $(am__cd) $(top_srcdir) \
+         && gtags -i $(GTAGS_ARGS) "$$here"
+cscopelist: cscopelist-am
+
+cscopelist-am: $(am__tagged_files)
+       list='$(am__tagged_files)'; \
+       case "$(srcdir)" in \
+         [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+         *) sdir=$(subdir)/$(srcdir) ;; \
+       esac; \
+       for i in $$list; do \
+         if test -f "$$i"; then \
+           echo "$(subdir)/$$i"; \
+         else \
+           echo "$$sdir/$$i"; \
+         fi; \
+       done >> $(top_builddir)/cscope.files
+
+distclean-tags:
+       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+# Recover from deleted '.trs' file; this should ensure that
+# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
+# both 'foo.log' and 'foo.trs'.  Break the recipe in two subshells
+# to avoid problems with "make -n".
+.log.trs:
+       rm -f $< $@
+       $(MAKE) $(AM_MAKEFLAGS) $<
+
+# Leading 'am--fnord' is there to ensure the list of targets does not
+# expand to empty, as could happen e.g. with make check TESTS=''.
+am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
+am--force-recheck:
+       @:
+
+$(TEST_SUITE_LOG): $(TEST_LOGS)
+       @$(am__set_TESTS_bases); \
+       am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
+       redo_bases=`for i in $$bases; do \
+                     am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
+                   done`; \
+       if test -n "$$redo_bases"; then \
+         redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
+         redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
+         if $(am__make_dryrun); then :; else \
+           rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
+         fi; \
+       fi; \
+       if test -n "$$am__remaking_logs"; then \
+         echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
+              "recursion detected" >&2; \
+       else \
+         am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
+       fi; \
+       if $(am__make_dryrun); then :; else \
+         st=0;  \
+         errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
+         for i in $$redo_bases; do \
+           test -f $$i.trs && test -r $$i.trs \
+             || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
+           test -f $$i.log && test -r $$i.log \
+             || { echo "$$errmsg $$i.log" >&2; st=1; }; \
+         done; \
+         test $$st -eq 0 || exit 1; \
+       fi
+       @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
+       ws='[   ]'; \
+       results=`for b in $$bases; do echo $$b.trs; done`; \
+       test -n "$$results" || results=/dev/null; \
+       all=`  grep "^$$ws*:test-result:"           $$results | wc -l`; \
+       pass=` grep "^$$ws*:test-result:$$ws*PASS"  $$results | wc -l`; \
+       fail=` grep "^$$ws*:test-result:$$ws*FAIL"  $$results | wc -l`; \
+       skip=` grep "^$$ws*:test-result:$$ws*SKIP"  $$results | wc -l`; \
+       xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
+       xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
+       error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
+       if test `expr $$fail + $$xpass + $$error` -eq 0; then \
+         success=true; \
+       else \
+         success=false; \
+       fi; \
+       br='==================='; br=$$br$$br$$br$$br; \
+       result_count () \
+       { \
+           if test x"$$1" = x"--maybe-color"; then \
+             maybe_colorize=yes; \
+           elif test x"$$1" = x"--no-color"; then \
+             maybe_colorize=no; \
+           else \
+             echo "$@: invalid 'result_count' usage" >&2; exit 4; \
+           fi; \
+           shift; \
+           desc=$$1 count=$$2; \
+           if test $$maybe_colorize = yes && test $$count -gt 0; then \
+             color_start=$$3 color_end=$$std; \
+           else \
+             color_start= color_end=; \
+           fi; \
+           echo "$${color_start}# $$desc $$count$${color_end}"; \
+       }; \
+       create_testsuite_report () \
+       { \
+         result_count $$1 "TOTAL:" $$all   "$$brg"; \
+         result_count $$1 "PASS: " $$pass  "$$grn"; \
+         result_count $$1 "SKIP: " $$skip  "$$blu"; \
+         result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
+         result_count $$1 "FAIL: " $$fail  "$$red"; \
+         result_count $$1 "XPASS:" $$xpass "$$red"; \
+         result_count $$1 "ERROR:" $$error "$$mgn"; \
+       }; \
+       {                                                               \
+         echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" |       \
+           $(am__rst_title);                                           \
+         create_testsuite_report --no-color;                           \
+         echo;                                                         \
+         echo ".. contents:: :depth: 2";                               \
+         echo;                                                         \
+         for b in $$bases; do echo $$b; done                           \
+           | $(am__create_global_log);                                 \
+       } >$(TEST_SUITE_LOG).tmp || exit 1;                             \
+       mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG);                     \
+       if $$success; then                                              \
+         col="$$grn";                                                  \
+        else                                                           \
+         col="$$red";                                                  \
+         test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG);               \
+       fi;                                                             \
+       echo "$${col}$$br$${std}";                                      \
+       echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}";   \
+       echo "$${col}$$br$${std}";                                      \
+       create_testsuite_report --maybe-color;                          \
+       echo "$$col$$br$$std";                                          \
+       if $$success; then :; else                                      \
+         echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}";         \
+         if test -n "$(PACKAGE_BUGREPORT)"; then                       \
+           echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
+         fi;                                                           \
+         echo "$$col$$br$$std";                                        \
+       fi;                                                             \
+       $$success || exit 1
+
+check-TESTS:
+       @list='$(RECHECK_LOGS)';           test -z "$$list" || rm -f $$list
+       @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
+       @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+       @set +e; $(am__set_TESTS_bases); \
+       log_list=`for i in $$bases; do echo $$i.log; done`; \
+       trs_list=`for i in $$bases; do echo $$i.trs; done`; \
+       log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
+       $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
+       exit $$?;
+recheck: all $(check_PROGRAMS)
+       @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+       @set +e; $(am__set_TESTS_bases); \
+       bases=`for i in $$bases; do echo $$i; done \
+                | $(am__list_recheck_tests)` || exit 1; \
+       log_list=`for i in $$bases; do echo $$i.log; done`; \
+       log_list=`echo $$log_list`; \
+       $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
+               am__force_recheck=am--force-recheck \
+               TEST_LOGS="$$log_list"; \
+       exit $$?
+test-blob.log: test-blob$(EXEEXT)
+       @p='test-blob$(EXEEXT)'; \
+       b='test-blob'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+test-buffer.log: test-buffer$(EXEEXT)
+       @p='test-buffer$(EXEEXT)'; \
+       b='test-buffer'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+test-common.log: test-common$(EXEEXT)
+       @p='test-common$(EXEEXT)'; \
+       b='test-common'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+test-font.log: test-font$(EXEEXT)
+       @p='test-font$(EXEEXT)'; \
+       b='test-font'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+test-object.log: test-object$(EXEEXT)
+       @p='test-object$(EXEEXT)'; \
+       b='test-object'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+test-set.log: test-set$(EXEEXT)
+       @p='test-set$(EXEEXT)'; \
+       b='test-set'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+test-shape.log: test-shape$(EXEEXT)
+       @p='test-shape$(EXEEXT)'; \
+       b='test-shape'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+test-unicode.log: test-unicode$(EXEEXT)
+       @p='test-unicode$(EXEEXT)'; \
+       b='test-unicode'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+test-version.log: test-version$(EXEEXT)
+       @p='test-version$(EXEEXT)'; \
+       b='test-version'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+test-ot-tag.log: test-ot-tag$(EXEEXT)
+       @p='test-ot-tag$(EXEEXT)'; \
+       b='test-ot-tag'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+test-c.log: test-c$(EXEEXT)
+       @p='test-c$(EXEEXT)'; \
+       b='test-c'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+test-cplusplus.log: test-cplusplus$(EXEEXT)
+       @p='test-cplusplus$(EXEEXT)'; \
+       b='test-cplusplus'; \
+       $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+.test.log:
+       @p='$<'; \
+       $(am__set_b); \
+       $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+@am__EXEEXT_TRUE@.test$(EXEEXT).log:
+@am__EXEEXT_TRUE@      @p='$<'; \
+@am__EXEEXT_TRUE@      $(am__set_b); \
+@am__EXEEXT_TRUE@      $(am__check_pre) $(TEST_LOG_DRIVER) --test-name "$$f" \
+@am__EXEEXT_TRUE@      --log-file $$b.log --trs-file $$b.trs \
+@am__EXEEXT_TRUE@      $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \
+@am__EXEEXT_TRUE@      "$$tst" $(AM_TESTS_FD_REDIRECT)
+
+distdir: $(DISTFILES)
+       @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       list='$(DISTFILES)'; \
+         dist_files=`for file in $$list; do echo $$file; done | \
+         sed -e "s|^$$srcdirstrip/||;t" \
+             -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+       case $$dist_files in \
+         */*) $(MKDIR_P) `echo "$$dist_files" | \
+                          sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+                          sort -u` ;; \
+       esac; \
+       for file in $$dist_files; do \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         if test -d $$d/$$file; then \
+           dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+           if test -d "$(distdir)/$$file"; then \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+         else \
+           test -f "$(distdir)/$$file" \
+           || cp -p $$d/$$file "$(distdir)/$$file" \
+           || exit 1; \
+         fi; \
+       done
+check-am: all-am
+       $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
+       $(MAKE) $(AM_MAKEFLAGS) check-TESTS
+check: check-am
+all-am: Makefile $(PROGRAMS)
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+       if test -z '$(STRIP)'; then \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+             install; \
+       else \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+           "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+       fi
+mostlyclean-generic:
+       -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
+       -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
+       -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+
+clean-generic:
+       -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+       -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+       -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+       -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+clean: clean-am
+
+clean-am: clean-checkPROGRAMS clean-generic clean-libtool \
+       clean-noinstPROGRAMS mostlyclean-am
+
+distclean: distclean-am
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+       distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+       mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: check-am install-am install-strip
+
+.PHONY: CTAGS GTAGS TAGS all all-am check check-TESTS check-am clean \
+       clean-checkPROGRAMS clean-generic clean-libtool \
+       clean-noinstPROGRAMS cscopelist-am ctags ctags-am distclean \
+       distclean-compile distclean-generic distclean-libtool \
+       distclean-tags distdir dvi dvi-am html html-am info info-am \
+       install install-am install-data install-data-am install-dvi \
+       install-dvi-am install-exec install-exec-am install-html \
+       install-html-am install-info install-info-am install-man \
+       install-pdf install-pdf-am install-ps install-ps-am \
+       install-strip installcheck installcheck-am installdirs \
+       maintainer-clean maintainer-clean-generic mostlyclean \
+       mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
+       pdf pdf-am ps ps-am recheck tags tags-am uninstall \
+       uninstall-am
+
+
+# check-tool: Run tests under $(TOOL)
+@HAVE_GLIB_TRUE@check-tool:
+@HAVE_GLIB_TRUE@       $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) check \
+@HAVE_GLIB_TRUE@       TESTS_ENVIRONMENT='$(TESTS_ENVIRONMENT) $(top_builddir)/libtool --mode=execute \
+@HAVE_GLIB_TRUE@       env $(TOOL)'
+# check-tool-raw: Run tests under $(TOOL), but don't run under libtool
+@HAVE_GLIB_TRUE@check-tool-raw:
+@HAVE_GLIB_TRUE@       $(AM_V_at)$(MAKE) $(AM_MAKEFLAGS) check \
+@HAVE_GLIB_TRUE@       TESTS_ENVIRONMENT='$(TESTS_ENVIRONMENT) \
+@HAVE_GLIB_TRUE@       env $(TOOL)'
+@HAVE_GLIB_TRUE@check-gtester:
+@HAVE_GLIB_TRUE@       $(AM_V_at)$(MAKE) $(AM_MAKEFLGS) check-tool-raw TOOL="$(GTESTER) --verbose --keep-going"
+@HAVE_GLIB_TRUE@       $(EXTRA_VALGRIND_FLAGS)
+# TODO: The following check does not fail if valgrind finds error.  It should.
+@HAVE_GLIB_TRUE@check-valgrind:
+@HAVE_GLIB_TRUE@       $(AM_V_at)$(MAKE) $(AM_MAKEFLGS) check-tool TOOL="valgrind $(VALGRIND_FLAGS)" \
+@HAVE_GLIB_TRUE@       2>&1 | tee log-valgrind.txt $(valgrind_verbose)
+
+# check-symbols: Finds untested API symbols
+@HAVE_GLIB_TRUE@symbols-tested.txt: $(TEST_PROGS)
+@HAVE_GLIB_TRUE@       $(AM_V_GEN)$(top_builddir)/libtool --mode=execute nm $^ \
+@HAVE_GLIB_TRUE@       | grep ' U hb_' | sed 's/.* U hb_/hb_/' \
+@HAVE_GLIB_TRUE@       | sort | uniq > $@.tmp && mv $@.tmp $@
+@HAVE_GLIB_TRUE@symbols-exported.txt: $(top_builddir)/src/.libs/libharfbuzz.so
+@HAVE_GLIB_TRUE@       $(AM_V_GEN)$(top_builddir)/libtool --mode=execute nm $^ \
+@HAVE_GLIB_TRUE@       | grep ' T ' | sed 's/.* T //' | grep -v '^\(_init\|_fini\)$$' \
+@HAVE_GLIB_TRUE@       | sort | uniq > $@.tmp && mv $@.tmp $@
+@HAVE_GLIB_TRUE@symbols-untested.txt: symbols-tested.txt symbols-exported.txt
+@HAVE_GLIB_TRUE@       $(AM_V_GEN)diff $^ > $@.tmp; mv $@.tmp $@
+@HAVE_GLIB_TRUE@check-symbols: symbols-untested.txt
+@HAVE_GLIB_TRUE@       @! cat $^ | grep .
+
+@HAVE_GLIB_FALSE@check-am: err-glib
+@HAVE_GLIB_FALSE@err-glib:
+@HAVE_GLIB_FALSE@      @echo "You need to have glib support enabled to run the tests"
+@HAVE_GLIB_FALSE@      @exit 77
+
+.PHONY: check-symbols check-tool check-valgrind
+
+-include $(top_srcdir)/git.mk
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/test/api/hb-test.h b/test/api/hb-test.h
new file mode 100644 (file)
index 0000000..4d41218
--- /dev/null
@@ -0,0 +1,265 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef HB_TEST_H
+#define HB_TEST_H
+
+#include <config.h>
+
+#include <hb-glib.h>
+
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+
+HB_BEGIN_DECLS
+
+/* Just in case */
+#undef G_DISABLE_ASSERT
+
+
+/* Misc */
+
+/* This is too ugly to be public API, but quite handy. */
+#define HB_TAG_CHAR4(s)   (HB_TAG(((const char *) s)[0], \
+                                 ((const char *) s)[1], \
+                                 ((const char *) s)[2], \
+                                 ((const char *) s)[3]))
+
+
+static inline const char *
+srcdir (void)
+{
+  static const char *s;
+
+  if (!s) {
+    s = getenv ("srcdir");
+
+#ifdef SRCDIR
+    if (!s || !s[0])
+      s = SRCDIR;
+#endif
+
+    if (!s || !s[0])
+      s = ".";
+  }
+
+  return s;
+}
+
+
+/* Helpers */
+
+static inline void
+hb_test_init (int *argc, char ***argv)
+{
+  g_test_init (argc, argv, NULL);
+}
+
+static inline int
+hb_test_run (void)
+{
+  return g_test_run ();
+}
+
+
+/* Bugzilla helpers */
+
+static inline void
+hb_test_bug (const char *uri_base, unsigned int number)
+{
+  char *s = g_strdup_printf ("%u", number);
+
+  g_test_bug_base (uri_base);
+  g_test_bug (s);
+
+  g_free (s);
+}
+
+static inline void
+hb_test_bug_freedesktop (unsigned int number)
+{
+  hb_test_bug ("http://bugs.freedesktop.org/", number);
+}
+
+static inline void
+hb_test_bug_gnome (unsigned int number)
+{
+  hb_test_bug ("http://bugzilla.gnome.org/", number);
+}
+
+static inline void
+hb_test_bug_mozilla (unsigned int number)
+{
+  hb_test_bug ("http://bugzilla.mozilla.org/", number);
+}
+
+static inline void
+hb_test_bug_redhat (unsigned int number)
+{
+  hb_test_bug ("http://bugzilla.redhat.com/", number);
+}
+
+
+/* Wrap glib test functions to simplify.  Should have been in glib already. */
+
+/* Drops the "test_" prefix and converts '_' to '/'.
+ * Essentially builds test path from function name. */
+static inline char *
+hb_test_normalize_path (const char *path)
+{
+  char *s, *p;
+
+  g_assert (0 == strncmp (path, "test_", 5));
+  path += 4;
+
+  s = g_strdup (path);
+  for (p = s; *p; p++)
+    if (*p == '_')
+      *p = '/';
+
+  return s;
+}
+
+
+#if GLIB_CHECK_VERSION(2,25,12)
+typedef GTestFunc        hb_test_func_t;
+typedef GTestDataFunc    hb_test_data_func_t;
+typedef GTestFixtureFunc hb_test_fixture_func_t;
+#else
+typedef void (*hb_test_func_t)         (void);
+typedef void (*hb_test_data_func_t)    (gconstpointer user_data);
+typedef void (*hb_test_fixture_func_t) (void);
+#endif
+
+#if !GLIB_CHECK_VERSION(2,30,0)
+#define g_test_fail() g_error("Test failed")
+#endif
+
+static inline void
+hb_test_add_func (const char *test_path,
+                 hb_test_func_t   test_func)
+{
+  char *normal_path = hb_test_normalize_path (test_path);
+  g_test_add_func (normal_path, test_func);
+  g_free (normal_path);
+}
+#define hb_test_add(Func) hb_test_add_func (#Func, Func)
+
+static inline void
+hb_test_add_func_flavor (const char *test_path,
+                        const char *flavor,
+                        hb_test_func_t   test_func)
+{
+  char *path = g_strdup_printf ("%s/%s", test_path, flavor);
+  hb_test_add_func (path, test_func);
+  g_free (path);
+}
+#define hb_test_add_flavor(Flavor, Func) hb_test_add_func (#Func, Flavor, Func)
+
+static inline void
+hb_test_add_data_func (const char          *test_path,
+                      gconstpointer        test_data,
+                      hb_test_data_func_t  test_func)
+{
+  char *normal_path = hb_test_normalize_path (test_path);
+  g_test_add_data_func (normal_path, test_data, test_func);
+  g_free (normal_path);
+}
+#define hb_test_add_data(UserData, Func) hb_test_add_data_func (#Func, UserData, Func)
+
+static inline void
+hb_test_add_data_func_flavor (const char          *test_path,
+                             const char          *flavor,
+                             gconstpointer        test_data,
+                             hb_test_data_func_t  test_func)
+{
+  char *path = g_strdup_printf ("%s/%s", test_path, flavor);
+  hb_test_add_data_func (path, test_data, test_func);
+  g_free (path);
+}
+#define hb_test_add_data_flavor(UserData, Flavor, Func) hb_test_add_data_func_flavor (#Func, Flavor, UserData, Func)
+
+
+static inline void
+hb_test_add_vtable (const char             *test_path,
+                   gsize                   data_size,
+                   gconstpointer           test_data,
+                   hb_test_fixture_func_t  data_setup,
+                   hb_test_fixture_func_t  data_test,
+                   hb_test_fixture_func_t  data_teardown)
+{
+  char *normal_path = hb_test_normalize_path (test_path);
+  g_test_add_vtable (normal_path, data_size, test_data, data_setup, data_test, data_teardown);
+  g_free (normal_path);
+}
+#define hb_test_add_fixture(FixturePrefix, UserData, Func) \
+G_STMT_START { \
+  typedef G_PASTE (FixturePrefix, _t) Fixture; \
+  void (*add_vtable) (const char*, gsize, gconstpointer, \
+                     void (*) (Fixture*, gconstpointer), \
+                     void (*) (Fixture*, gconstpointer), \
+                     void (*) (Fixture*, gconstpointer)) \
+       = (void (*) (const gchar *, gsize, gconstpointer, \
+                    void (*) (Fixture*, gconstpointer), \
+                    void (*) (Fixture*, gconstpointer), \
+                    void (*) (Fixture*, gconstpointer))) hb_test_add_vtable; \
+  add_vtable (#Func, sizeof (G_PASTE (FixturePrefix, _t)), UserData, \
+             G_PASTE (FixturePrefix, _init), Func, G_PASTE (FixturePrefix, _finish)); \
+} G_STMT_END
+
+static inline void
+hb_test_add_vtable_flavor (const char             *test_path,
+                          const char             *flavor,
+                          gsize                   data_size,
+                          gconstpointer           test_data,
+                          hb_test_fixture_func_t  data_setup,
+                          hb_test_fixture_func_t  data_test,
+                          hb_test_fixture_func_t  data_teardown)
+{
+  char *path = g_strdup_printf ("%s/%s", test_path, flavor);
+  hb_test_add_vtable (path, data_size, test_data, data_setup, data_test, data_teardown);
+  g_free (path);
+}
+#define hb_test_add_fixture_flavor(FixturePrefix, UserData, Flavor, Func) \
+G_STMT_START { \
+  typedef G_PASTE (FixturePrefix, _t) Fixture; \
+  void (*add_vtable) (const char*, const char *, gsize, gconstpointer, \
+                     void (*) (Fixture*, gconstpointer), \
+                     void (*) (Fixture*, gconstpointer), \
+                     void (*) (Fixture*, gconstpointer)) \
+       = (void (*) (const gchar *, const char *, gsize, gconstpointer, \
+                    void (*) (Fixture*, gconstpointer), \
+                    void (*) (Fixture*, gconstpointer), \
+                    void (*) (Fixture*, gconstpointer))) hb_test_add_vtable_flavor; \
+  add_vtable (#Func, Flavor, sizeof (G_PASTE (FixturePrefix, _t)), UserData, \
+             G_PASTE (FixturePrefix, _init), Func, G_PASTE (FixturePrefix, _finish)); \
+} G_STMT_END
+
+
+HB_END_DECLS
+
+#endif /* HB_TEST_H */
diff --git a/test/api/test-blob.c b/test/api/test-blob.c
new file mode 100644 (file)
index 0000000..bbb7e2e
--- /dev/null
@@ -0,0 +1,346 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-test.h"
+
+/* Unit tests for hb-blob.h */
+
+#if defined(HAVE_SYS_MMAN_H) && defined(HAVE_MPROTECT) && defined(HAVE_MMAP)
+
+# define TEST_MMAP 1
+
+#ifdef HAVE_SYS_MMAN_H
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif /* HAVE_UNISTD_H */
+#include <sys/mman.h>
+#endif /* HAVE_SYS_MMAN_H */
+
+#endif
+
+
+static void
+test_blob_empty (void)
+{
+  hb_blob_t *blob;
+  unsigned int len;
+  const char *data;
+  char *data_writable;
+
+  g_assert (hb_blob_is_immutable (hb_blob_get_empty ()));
+  g_assert (hb_blob_get_empty () != NULL);
+  g_assert (hb_blob_get_empty () == hb_blob_create (NULL, 0, HB_MEMORY_MODE_READONLY, NULL, NULL));
+
+  blob = hb_blob_get_empty ();
+  g_assert (blob == hb_blob_get_empty ());
+
+  len = hb_blob_get_length (blob);
+  g_assert_cmpint (len, ==, 0);
+
+  data = hb_blob_get_data (blob, NULL);
+  g_assert (data == NULL);
+
+  data = hb_blob_get_data (blob, &len);
+  g_assert (data == NULL);
+  g_assert_cmpint (len, ==, 0);
+
+  data_writable = hb_blob_get_data_writable (blob, NULL);
+  g_assert (data_writable == NULL);
+
+  data_writable = hb_blob_get_data_writable (blob, &len);
+  g_assert (data_writable == NULL);
+  g_assert_cmpint (len, ==, 0);
+}
+
+static const char test_data[] = "test\0data";
+
+static const char *blob_names[] = {
+  "duplicate",
+  "readonly",
+  "writable"
+#ifdef TEST_MMAP
+   , "readonly-may-make-writable"
+#endif
+};
+
+typedef struct
+{
+  hb_blob_t *blob;
+  int freed;
+  char *data;
+  unsigned int len;
+} fixture_t;
+
+static void
+free_up (fixture_t *fixture)
+{
+  g_assert_cmpint (fixture->freed, ==, 0);
+  fixture->freed++;
+}
+
+static void
+free_up_free (fixture_t *fixture)
+{
+  free_up (fixture);
+  free (fixture->data);
+}
+
+
+#ifdef TEST_MMAP
+static uintptr_t
+get_pagesize (void)
+{
+  uintptr_t pagesize = -1;
+
+#if defined(HAVE_SYSCONF) && defined(_SC_PAGE_SIZE)
+  pagesize = (uintptr_t) sysconf (_SC_PAGE_SIZE);
+#elif defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE)
+  pagesize = (uintptr_t) sysconf (_SC_PAGESIZE);
+#elif defined(HAVE_GETPAGESIZE)
+  pagesize = (uintptr_t) getpagesize ();
+#endif
+
+  g_assert (pagesize != (uintptr_t) -1);
+
+  return pagesize;
+}
+
+static void
+free_up_munmap (fixture_t *fixture)
+{
+  free_up (fixture);
+  munmap (fixture->data, get_pagesize ());
+}
+#endif
+
+#include <errno.h>
+static void
+fixture_init (fixture_t *fixture, gconstpointer user_data)
+{
+  hb_memory_mode_t mm = (hb_memory_mode_t) GPOINTER_TO_INT (user_data);
+  unsigned int len;
+  const char *data;
+  hb_destroy_func_t free_func;
+
+  switch (GPOINTER_TO_INT (user_data))
+  {
+    case HB_MEMORY_MODE_DUPLICATE:
+      data = test_data;
+      len = sizeof (test_data);
+      free_func = (hb_destroy_func_t) free_up;
+      break;
+
+    case HB_MEMORY_MODE_READONLY:
+      data = test_data;
+      len = sizeof (test_data);
+      free_func = (hb_destroy_func_t) free_up;
+      break;
+
+    case HB_MEMORY_MODE_WRITABLE:
+      data = malloc (sizeof (test_data));
+      memcpy ((char *) data, test_data, sizeof (test_data));
+      len = sizeof (test_data);
+      free_func = (hb_destroy_func_t) free_up_free;
+      break;
+
+#ifdef TEST_MMAP
+    case HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE:
+    {
+      uintptr_t pagesize = get_pagesize ();
+
+      data = mmap (NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0);
+      g_assert (data != (char *) -1);
+      memcpy ((char *) data, test_data, sizeof (test_data));
+      mprotect ((char *) data, pagesize, PROT_READ);
+      len = sizeof (test_data);
+      free_func = (hb_destroy_func_t) free_up_munmap;
+      break;
+    }
+#endif
+
+    default:
+      g_assert_not_reached ();
+  }
+
+  fixture->freed = 0;
+  fixture->data = (char *) data;
+  fixture->len = len;
+  fixture->blob = hb_blob_create (data, len, mm, fixture, free_func);
+}
+
+static void
+fixture_finish (fixture_t *fixture, gconstpointer user_data)
+{
+  hb_blob_destroy (fixture->blob);
+  g_assert_cmpint (fixture->freed, ==, 1);
+}
+
+
+static void
+test_blob (fixture_t *fixture, gconstpointer user_data)
+{
+  hb_blob_t *b = fixture->blob;
+  hb_memory_mode_t mm = GPOINTER_TO_INT (user_data);
+  unsigned int len;
+  const char *data;
+  char *data_writable;
+  unsigned int i;
+
+  g_assert (b);
+
+  len = hb_blob_get_length (b);
+  g_assert_cmpint (len, ==, fixture->len);
+
+  data = hb_blob_get_data (b, &len);
+  g_assert_cmpint (len, ==, fixture->len);
+  if (mm == HB_MEMORY_MODE_DUPLICATE) {
+    g_assert (data != fixture->data);
+    g_assert_cmpint (fixture->freed, ==, 1);
+    mm = HB_MEMORY_MODE_WRITABLE;
+  } else {
+    g_assert (data == fixture->data);
+    g_assert_cmpint (fixture->freed, ==, 0);
+  }
+
+  data_writable = hb_blob_get_data_writable (b, &len);
+  g_assert_cmpint (len, ==, fixture->len);
+  g_assert (data_writable);
+  g_assert (0 == memcmp (data_writable, fixture->data, fixture->len));
+  if (mm == HB_MEMORY_MODE_READONLY) {
+    g_assert (data_writable != data);
+    g_assert_cmpint (fixture->freed, ==, 1);
+  } else {
+    g_assert (data_writable == data);
+  }
+
+  data = hb_blob_get_data (b, &len);
+  g_assert_cmpint (len, ==, fixture->len);
+  g_assert (data == data_writable);
+
+  memset (data_writable, 0, fixture->len);
+
+  /* Now, make it immutable and watch get_data_writable() fail */
+
+  g_assert (!hb_blob_is_immutable (b));
+  hb_blob_make_immutable (b);
+  g_assert (hb_blob_is_immutable (b));
+
+  data_writable = hb_blob_get_data_writable (b, &len);
+  g_assert (!data_writable);
+  g_assert_cmpint (len, ==, 0);
+
+  data = hb_blob_get_data (b, &len);
+  g_assert_cmpint (len, ==, fixture->len);
+  for (i = 0; i < len; i++)
+    g_assert ('\0' == data[i]);
+}
+
+static void
+test_blob_subblob (fixture_t *fixture, gconstpointer user_data)
+{
+  hb_blob_t *b = fixture->blob;
+  hb_memory_mode_t mm = GPOINTER_TO_INT (user_data);
+  unsigned int len;
+  const char *data;
+  char *data_writable;
+  unsigned int i;
+
+  if (mm == HB_MEMORY_MODE_DUPLICATE) {
+    g_assert_cmpint (fixture->freed, ==, 1);
+    fixture->data = (char *) hb_blob_get_data (b, NULL);
+  } else {
+    g_assert_cmpint (fixture->freed, ==, 0);
+  }
+  fixture->blob = hb_blob_create_sub_blob (b, 1, fixture->len - 2);
+  hb_blob_destroy (b);
+  b = fixture->blob;
+
+  /* A sub-blob is always created READONLY. */
+
+  g_assert (b);
+
+  len = hb_blob_get_length (b);
+  g_assert_cmpint (len, ==, fixture->len - 2);
+
+  data = hb_blob_get_data (b, &len);
+  g_assert_cmpint (len, ==, fixture->len - 2);
+  g_assert (data == fixture->data + 1);
+
+  data_writable = hb_blob_get_data_writable (b, &len);
+  g_assert_cmpint (len, ==, fixture->len - 2);
+  g_assert (data_writable);
+  if (mm == HB_MEMORY_MODE_READONLY)
+    g_assert (0 == memcmp (data_writable, fixture->data + 1, fixture->len - 2));
+  g_assert (data_writable != data);
+  g_assert_cmpint (fixture->freed, ==, 1);
+
+  data = hb_blob_get_data (b, &len);
+  g_assert_cmpint (len, ==, fixture->len - 2);
+  g_assert (data == data_writable);
+
+  memset (data_writable, 0, fixture->len - 2);
+
+  /* Now, make it immutable and watch get_data_writable() fail */
+
+  g_assert (!hb_blob_is_immutable (b));
+  hb_blob_make_immutable (b);
+  g_assert (hb_blob_is_immutable (b));
+
+  data_writable = hb_blob_get_data_writable (b, &len);
+  g_assert (!data_writable);
+  g_assert_cmpint (len, ==, 0);
+
+  data = hb_blob_get_data (b, &len);
+  g_assert_cmpint (len, ==, fixture->len - 2);
+  for (i = 0; i < len; i++)
+    g_assert ('\0' == data[i]);
+}
+
+
+int
+main (int argc, char **argv)
+{
+  unsigned int i;
+
+  hb_test_init (&argc, &argv);
+
+  hb_test_add (test_blob_empty);
+
+  for (i = 0; i < G_N_ELEMENTS (blob_names); i++)
+  {
+    const void *blob_type = GINT_TO_POINTER (i);
+    const char *blob_name = blob_names[i];
+
+    hb_test_add_fixture_flavor (fixture, blob_type, blob_name, test_blob);
+    hb_test_add_fixture_flavor (fixture, blob_type, blob_name, test_blob_subblob);
+  }
+
+  /*
+   * create_sub_blob
+   */
+
+  return hb_test_run ();
+}
diff --git a/test/api/test-buffer.c b/test/api/test-buffer.c
new file mode 100644 (file)
index 0000000..17607f1
--- /dev/null
@@ -0,0 +1,884 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-test.h"
+
+/* Unit tests for hb-buffer.h */
+
+
+static const char utf8[10] = "ab\360\240\200\200defg";
+static const uint16_t utf16[8] = {'a', 'b', 0xD840, 0xDC00, 'd', 'e', 'f', 'g'};
+static const uint32_t utf32[7] = {'a', 'b', 0x20000, 'd', 'e', 'f', 'g'};
+
+
+typedef enum {
+  BUFFER_EMPTY,
+  BUFFER_ONE_BY_ONE,
+  BUFFER_UTF32,
+  BUFFER_UTF16,
+  BUFFER_UTF8,
+  BUFFER_NUM_TYPES,
+} buffer_type_t;
+
+static const char *buffer_names[] = {
+  "empty",
+  "one-by-one",
+  "utf32",
+  "utf16",
+  "utf8"
+};
+
+typedef struct
+{
+  hb_buffer_t *buffer;
+} fixture_t;
+
+static void
+fixture_init (fixture_t *fixture, gconstpointer user_data)
+{
+  hb_buffer_t *b;
+  unsigned int i;
+
+  b = fixture->buffer = hb_buffer_create ();
+
+  switch (GPOINTER_TO_INT (user_data))
+  {
+    case BUFFER_EMPTY:
+      break;
+
+    case BUFFER_ONE_BY_ONE:
+      for (i = 1; i < G_N_ELEMENTS (utf32) - 1; i++)
+       hb_buffer_add (b, utf32[i], i);
+      break;
+
+    case BUFFER_UTF32:
+      hb_buffer_add_utf32 (b, utf32, G_N_ELEMENTS (utf32), 1, G_N_ELEMENTS (utf32) - 2);
+      break;
+
+    case BUFFER_UTF16:
+      hb_buffer_add_utf16 (b, utf16, G_N_ELEMENTS (utf16), 1, G_N_ELEMENTS (utf16) - 2);
+      break;
+
+    case BUFFER_UTF8:
+      hb_buffer_add_utf8  (b, utf8,  G_N_ELEMENTS (utf8),  1, G_N_ELEMENTS (utf8)  - 2);
+      break;
+
+    default:
+      g_assert_not_reached ();
+  }
+}
+
+static void
+fixture_finish (fixture_t *fixture, gconstpointer user_data)
+{
+  hb_buffer_destroy (fixture->buffer);
+}
+
+
+static void
+test_buffer_properties (fixture_t *fixture, gconstpointer user_data)
+{
+  hb_buffer_t *b = fixture->buffer;
+  hb_unicode_funcs_t *ufuncs;
+
+  /* test default properties */
+
+  g_assert (hb_buffer_get_unicode_funcs (b) == hb_unicode_funcs_get_default ());
+  g_assert (hb_buffer_get_direction (b) == HB_DIRECTION_INVALID);
+  g_assert (hb_buffer_get_script (b) == HB_SCRIPT_INVALID);
+  g_assert (hb_buffer_get_language (b) == NULL);
+
+
+  /* test property changes are retained */
+  ufuncs = hb_unicode_funcs_create (NULL);
+  hb_buffer_set_unicode_funcs (b, ufuncs);
+  hb_unicode_funcs_destroy (ufuncs);
+  g_assert (hb_buffer_get_unicode_funcs (b) == ufuncs);
+
+  hb_buffer_set_direction (b, HB_DIRECTION_RTL);
+  g_assert (hb_buffer_get_direction (b) == HB_DIRECTION_RTL);
+
+  hb_buffer_set_script (b, HB_SCRIPT_ARABIC);
+  g_assert (hb_buffer_get_script (b) == HB_SCRIPT_ARABIC);
+
+  hb_buffer_set_language (b, hb_language_from_string ("fa", -1));
+  g_assert (hb_buffer_get_language (b) == hb_language_from_string ("Fa", -1));
+
+  hb_buffer_set_flags (b, HB_BUFFER_FLAG_BOT);
+  g_assert (hb_buffer_get_flags (b) == HB_BUFFER_FLAG_BOT);
+
+  hb_buffer_set_replacement_codepoint (b, (unsigned int) -1);
+  g_assert (hb_buffer_get_replacement_codepoint (b) == (unsigned int) -1);
+
+
+  /* test clear_contents clears all these properties: */
+
+  hb_buffer_clear_contents (b);
+
+  g_assert (hb_buffer_get_unicode_funcs (b) == ufuncs);
+  g_assert (hb_buffer_get_direction (b) == HB_DIRECTION_INVALID);
+  g_assert (hb_buffer_get_script (b) == HB_SCRIPT_INVALID);
+  g_assert (hb_buffer_get_language (b) == NULL);
+
+  /* but not these: */
+
+  g_assert (hb_buffer_get_flags (b) != HB_BUFFER_FLAGS_DEFAULT);
+  g_assert (hb_buffer_get_replacement_codepoint (b) != HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT);
+
+
+  /* test reset clears all properties */
+
+  hb_buffer_set_direction (b, HB_DIRECTION_RTL);
+  g_assert (hb_buffer_get_direction (b) == HB_DIRECTION_RTL);
+
+  hb_buffer_set_script (b, HB_SCRIPT_ARABIC);
+  g_assert (hb_buffer_get_script (b) == HB_SCRIPT_ARABIC);
+
+  hb_buffer_set_language (b, hb_language_from_string ("fa", -1));
+  g_assert (hb_buffer_get_language (b) == hb_language_from_string ("Fa", -1));
+
+  hb_buffer_set_flags (b, HB_BUFFER_FLAG_BOT);
+  g_assert (hb_buffer_get_flags (b) == HB_BUFFER_FLAG_BOT);
+
+  hb_buffer_set_replacement_codepoint (b, (unsigned int) -1);
+  g_assert (hb_buffer_get_replacement_codepoint (b) == (unsigned int) -1);
+
+  hb_buffer_reset (b);
+
+  g_assert (hb_buffer_get_unicode_funcs (b) == hb_unicode_funcs_get_default ());
+  g_assert (hb_buffer_get_direction (b) == HB_DIRECTION_INVALID);
+  g_assert (hb_buffer_get_script (b) == HB_SCRIPT_INVALID);
+  g_assert (hb_buffer_get_language (b) == NULL);
+  g_assert (hb_buffer_get_flags (b) == HB_BUFFER_FLAGS_DEFAULT);
+  g_assert (hb_buffer_get_replacement_codepoint (b) == HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT);
+}
+
+static void
+test_buffer_contents (fixture_t *fixture, gconstpointer user_data)
+{
+  hb_buffer_t *b = fixture->buffer;
+  unsigned int i, len, len2;
+  buffer_type_t buffer_type = GPOINTER_TO_INT (user_data);
+  hb_glyph_info_t *glyphs;
+
+  if (buffer_type == BUFFER_EMPTY) {
+    g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
+    return;
+  }
+
+  len = hb_buffer_get_length (b);
+  hb_buffer_get_glyph_infos (b, NULL); /* test NULL */
+  glyphs = hb_buffer_get_glyph_infos (b, &len2);
+  g_assert_cmpint (len, ==, len2);
+  g_assert_cmpint (len, ==, 5);
+
+  for (i = 0; i < len; i++) {
+    g_assert_cmphex (glyphs[i].mask,      ==, 1);
+    g_assert_cmphex (glyphs[i].var1.u32,  ==, 0);
+    g_assert_cmphex (glyphs[i].var2.u32,  ==, 0);
+  }
+
+  for (i = 0; i < len; i++) {
+    unsigned int cluster;
+    cluster = 1+i;
+    if (i >= 2) {
+      if (buffer_type == BUFFER_UTF16)
+       cluster++;
+      else if (buffer_type == BUFFER_UTF8)
+        cluster += 3;
+    }
+    g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]);
+    g_assert_cmphex (glyphs[i].cluster,   ==, cluster);
+  }
+
+  /* reverse, test, and reverse back */
+
+  hb_buffer_reverse (b);
+  for (i = 0; i < len; i++)
+    g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]);
+
+  hb_buffer_reverse (b);
+  for (i = 0; i < len; i++)
+    g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]);
+
+  /* reverse_clusters works same as reverse for now since each codepoint is
+   * in its own cluster */
+
+  hb_buffer_reverse_clusters (b);
+  for (i = 0; i < len; i++)
+    g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]);
+
+  hb_buffer_reverse_clusters (b);
+  for (i = 0; i < len; i++)
+    g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]);
+
+  /* now form a cluster and test again */
+  glyphs[2].cluster = glyphs[1].cluster;
+
+  /* reverse, test, and reverse back */
+
+  hb_buffer_reverse (b);
+  for (i = 0; i < len; i++)
+    g_assert_cmphex (glyphs[i].codepoint, ==, utf32[len-i]);
+
+  hb_buffer_reverse (b);
+  for (i = 0; i < len; i++)
+    g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]);
+
+  /* reverse_clusters twice still should return the original string,
+   * but when applied once, the 1-2 cluster should be retained. */
+
+  hb_buffer_reverse_clusters (b);
+  for (i = 0; i < len; i++) {
+    unsigned int j = len-1-i;
+    if (j == 1)
+      j = 2;
+    else if (j == 2)
+      j = 1;
+    g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+j]);
+  }
+
+  hb_buffer_reverse_clusters (b);
+  for (i = 0; i < len; i++)
+    g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]);
+
+
+  /* test setting length */
+
+  /* enlarge */
+  g_assert (hb_buffer_set_length (b, 10));
+  glyphs = hb_buffer_get_glyph_infos (b, NULL);
+  g_assert_cmpint (hb_buffer_get_length (b), ==, 10);
+  for (i = 0; i < 5; i++)
+    g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]);
+  for (i = 5; i < 10; i++)
+    g_assert_cmphex (glyphs[i].codepoint, ==, 0);
+  /* shrink */
+  g_assert (hb_buffer_set_length (b, 3));
+  glyphs = hb_buffer_get_glyph_infos (b, NULL);
+  g_assert_cmpint (hb_buffer_get_length (b), ==, 3);
+  for (i = 0; i < 3; i++)
+    g_assert_cmphex (glyphs[i].codepoint, ==, utf32[1+i]);
+
+
+  g_assert (hb_buffer_allocation_successful (b));
+
+
+  /* test reset clears content */
+
+  hb_buffer_reset (b);
+  g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
+}
+
+static void
+test_buffer_positions (fixture_t *fixture, gconstpointer user_data)
+{
+  hb_buffer_t *b = fixture->buffer;
+  unsigned int i, len, len2;
+  hb_glyph_position_t *positions;
+
+  /* Without shaping, positions should all be zero */
+  len = hb_buffer_get_length (b);
+  hb_buffer_get_glyph_positions (b, NULL); /* test NULL */
+  positions = hb_buffer_get_glyph_positions (b, &len2);
+  g_assert_cmpint (len, ==, len2);
+  for (i = 0; i < len; i++) {
+    g_assert_cmpint (0, ==, positions[i].x_advance);
+    g_assert_cmpint (0, ==, positions[i].y_advance);
+    g_assert_cmpint (0, ==, positions[i].x_offset);
+    g_assert_cmpint (0, ==, positions[i].y_offset);
+    g_assert_cmpint (0, ==, positions[i].var.i32);
+  }
+
+  /* test reset clears content */
+  hb_buffer_reset (b);
+  g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
+}
+
+static void
+test_buffer_allocation (fixture_t *fixture, gconstpointer user_data)
+{
+  hb_buffer_t *b = fixture->buffer;
+
+  g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
+
+  g_assert (hb_buffer_pre_allocate (b, 100));
+  g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
+  g_assert (hb_buffer_allocation_successful (b));
+
+  /* lets try a huge allocation, make sure it fails */
+  g_assert (!hb_buffer_pre_allocate (b, (unsigned int) -1));
+  g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
+  g_assert (!hb_buffer_allocation_successful (b));
+
+  /* small one again */
+  g_assert (hb_buffer_pre_allocate (b, 50));
+  g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
+  g_assert (!hb_buffer_allocation_successful (b));
+
+  hb_buffer_reset (b);
+  g_assert (hb_buffer_allocation_successful (b));
+
+  /* all allocation and size  */
+  g_assert (!hb_buffer_pre_allocate (b, ((unsigned int) -1) / 20 + 1));
+  g_assert (!hb_buffer_allocation_successful (b));
+
+  hb_buffer_reset (b);
+  g_assert (hb_buffer_allocation_successful (b));
+
+  /* technically, this one can actually pass on 64bit machines, but
+   * I'm doubtful that any malloc allows 4GB allocations at a time.
+   * But let's only enable it on a 32-bit machine. */
+  if (sizeof (long) == 4) {
+    g_assert (!hb_buffer_pre_allocate (b, ((unsigned int) -1) / 20 - 1));
+    g_assert (!hb_buffer_allocation_successful (b));
+  }
+
+  hb_buffer_reset (b);
+  g_assert (hb_buffer_allocation_successful (b));
+}
+
+
+typedef struct {
+  const char utf8[8];
+  const uint32_t codepoints[8];
+} utf8_conversion_test_t;
+
+/* note: we skip the first and last byte when adding to buffer */
+static const utf8_conversion_test_t utf8_conversion_tests[] = {
+  {"a\303\207", {-1}},
+  {"a\303\207b", {0xC7}},
+  {"ab\303cd", {'b', -1, 'c'}},
+  {"ab\303\302\301cd", {'b', -1, -1, -1, 'c'}}
+};
+
+static void
+test_buffer_utf8_conversion (void)
+{
+  hb_buffer_t *b;
+  hb_glyph_info_t *glyphs;
+  unsigned int bytes, chars, i, j, len;
+
+  b = hb_buffer_create ();
+  hb_buffer_set_replacement_codepoint (b, (hb_codepoint_t) -1);
+
+  for (i = 0; i < G_N_ELEMENTS (utf8_conversion_tests); i++)
+  {
+    const utf8_conversion_test_t *test = &utf8_conversion_tests[i];
+    char *escaped;
+
+    escaped = g_strescape (test->utf8, NULL);
+    g_test_message ("UTF-8 test #%d: %s", i, escaped);
+    g_free (escaped);
+
+    bytes = strlen (test->utf8);
+    for (chars = 0; test->codepoints[chars]; chars++)
+      ;
+
+    hb_buffer_clear_contents (b);
+    hb_buffer_add_utf8 (b, test->utf8, bytes,  1, bytes - 2);
+
+    glyphs = hb_buffer_get_glyph_infos (b, &len);
+    g_assert_cmpint (len, ==, chars);
+    for (j = 0; j < chars; j++)
+      g_assert_cmphex (glyphs[j].codepoint, ==, test->codepoints[j]);
+  }
+
+  hb_buffer_destroy (b);
+}
+
+
+
+/* Following test table is adapted from glib/glib/tests/utf8-validate.c
+ * with relicensing permission from Matthias Clasen. */
+
+typedef struct {
+  const char *utf8;
+  int max_len;
+  unsigned int offset;
+  gboolean valid;
+} utf8_validity_test_t;
+
+static const utf8_validity_test_t utf8_validity_tests[] = {
+  /* some tests to check max_len handling */
+  /* length 1 */
+  { "abcde", -1, 5, TRUE },
+  { "abcde", 3, 3, TRUE },
+  { "abcde", 5, 5, TRUE },
+  /* length 2 */
+  { "\xc2\xa9\xc2\xa9\xc2\xa9", -1, 6, TRUE },
+  { "\xc2\xa9\xc2\xa9\xc2\xa9",  1, 0, FALSE },
+  { "\xc2\xa9\xc2\xa9\xc2\xa9",  2, 2, TRUE },
+  { "\xc2\xa9\xc2\xa9\xc2\xa9",  3, 2, FALSE },
+  { "\xc2\xa9\xc2\xa9\xc2\xa9",  4, 4, TRUE },
+  { "\xc2\xa9\xc2\xa9\xc2\xa9",  5, 4, FALSE },
+  { "\xc2\xa9\xc2\xa9\xc2\xa9",  6, 6, TRUE },
+  /* length 3 */
+  { "\xe2\x89\xa0\xe2\x89\xa0", -1, 6, TRUE },
+  { "\xe2\x89\xa0\xe2\x89\xa0",  1, 0, FALSE },
+  { "\xe2\x89\xa0\xe2\x89\xa0",  2, 0, FALSE },
+  { "\xe2\x89\xa0\xe2\x89\xa0",  3, 3, TRUE },
+  { "\xe2\x89\xa0\xe2\x89\xa0",  4, 3, FALSE },
+  { "\xe2\x89\xa0\xe2\x89\xa0",  5, 3, FALSE },
+  { "\xe2\x89\xa0\xe2\x89\xa0",  6, 6, TRUE },
+
+  /* examples from http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt */
+  /* greek 'kosme' */
+  { "\xce\xba\xe1\xbd\xb9\xcf\x83\xce\xbc\xce\xb5", -1, 11, TRUE },
+  /* first sequence of each length */
+  { "\x00", -1, 0, TRUE },
+  { "\xc2\x80", -1, 2, TRUE },
+  { "\xe0\xa0\x80", -1, 3, TRUE },
+  { "\xf0\x90\x80\x80", -1, 4, TRUE },
+  { "\xf8\x88\x80\x80\x80", -1, 0, FALSE },
+  { "\xfc\x84\x80\x80\x80\x80", -1, 0, FALSE },
+  /* last sequence of each length */
+  { "\x7f", -1, 1, TRUE },
+  { "\xdf\xbf", -1, 2, TRUE },
+  { "\xef\xbf\xbf", -1, 0, TRUE },
+  { "\xf4\x8f\xbf\xbf", -1, 0, TRUE },
+  { "\xf4\x90\xbf\xbf", -1, 0, FALSE },
+  { "\xf7\xbf\xbf\xbf", -1, 0, FALSE },
+  { "\xfb\xbf\xbf\xbf\xbf", -1, 0, FALSE },
+  { "\xfd\xbf\xbf\xbf\xbf\xbf", -1, 0, FALSE },
+  /* other boundary conditions */
+  { "\xed\x9f\xbf", -1, 3, TRUE },
+  { "\xed\xa0\x80", -1, 0, FALSE },
+  { "\xed\xbf\xbf", -1, 0, FALSE },
+  { "\xee\x80\x80", -1, 3, TRUE },
+  { "\xef\xbf\xbd", -1, 3, TRUE },
+  { "\xf4\x8f\xbf\xbf", -1, 0, TRUE },
+  /* malformed sequences */
+  /* continuation bytes */
+  { "\x80", -1, 0, FALSE },
+  { "\xbf", -1, 0, FALSE },
+  { "\x80\xbf", -1, 0, FALSE },
+  { "\x80\xbf\x80", -1, 0, FALSE },
+  { "\x80\xbf\x80\xbf", -1, 0, FALSE },
+  { "\x80\xbf\x80\xbf\x80", -1, 0, FALSE },
+  { "\x80\xbf\x80\xbf\x80\xbf", -1, 0, FALSE },
+  { "\x80\xbf\x80\xbf\x80\xbf\x80", -1, 0, FALSE },
+
+  /* all possible continuation byte */
+  { "\x80", -1, 0, FALSE },
+  { "\x81", -1, 0, FALSE },
+  { "\x82", -1, 0, FALSE },
+  { "\x83", -1, 0, FALSE },
+  { "\x84", -1, 0, FALSE },
+  { "\x85", -1, 0, FALSE },
+  { "\x86", -1, 0, FALSE },
+  { "\x87", -1, 0, FALSE },
+  { "\x88", -1, 0, FALSE },
+  { "\x89", -1, 0, FALSE },
+  { "\x8a", -1, 0, FALSE },
+  { "\x8b", -1, 0, FALSE },
+  { "\x8c", -1, 0, FALSE },
+  { "\x8d", -1, 0, FALSE },
+  { "\x8e", -1, 0, FALSE },
+  { "\x8f", -1, 0, FALSE },
+  { "\x90", -1, 0, FALSE },
+  { "\x91", -1, 0, FALSE },
+  { "\x92", -1, 0, FALSE },
+  { "\x93", -1, 0, FALSE },
+  { "\x94", -1, 0, FALSE },
+  { "\x95", -1, 0, FALSE },
+  { "\x96", -1, 0, FALSE },
+  { "\x97", -1, 0, FALSE },
+  { "\x98", -1, 0, FALSE },
+  { "\x99", -1, 0, FALSE },
+  { "\x9a", -1, 0, FALSE },
+  { "\x9b", -1, 0, FALSE },
+  { "\x9c", -1, 0, FALSE },
+  { "\x9d", -1, 0, FALSE },
+  { "\x9e", -1, 0, FALSE },
+  { "\x9f", -1, 0, FALSE },
+  { "\xa0", -1, 0, FALSE },
+  { "\xa1", -1, 0, FALSE },
+  { "\xa2", -1, 0, FALSE },
+  { "\xa3", -1, 0, FALSE },
+  { "\xa4", -1, 0, FALSE },
+  { "\xa5", -1, 0, FALSE },
+  { "\xa6", -1, 0, FALSE },
+  { "\xa7", -1, 0, FALSE },
+  { "\xa8", -1, 0, FALSE },
+  { "\xa9", -1, 0, FALSE },
+  { "\xaa", -1, 0, FALSE },
+  { "\xab", -1, 0, FALSE },
+  { "\xac", -1, 0, FALSE },
+  { "\xad", -1, 0, FALSE },
+  { "\xae", -1, 0, FALSE },
+  { "\xaf", -1, 0, FALSE },
+  { "\xb0", -1, 0, FALSE },
+  { "\xb1", -1, 0, FALSE },
+  { "\xb2", -1, 0, FALSE },
+  { "\xb3", -1, 0, FALSE },
+  { "\xb4", -1, 0, FALSE },
+  { "\xb5", -1, 0, FALSE },
+  { "\xb6", -1, 0, FALSE },
+  { "\xb7", -1, 0, FALSE },
+  { "\xb8", -1, 0, FALSE },
+  { "\xb9", -1, 0, FALSE },
+  { "\xba", -1, 0, FALSE },
+  { "\xbb", -1, 0, FALSE },
+  { "\xbc", -1, 0, FALSE },
+  { "\xbd", -1, 0, FALSE },
+  { "\xbe", -1, 0, FALSE },
+  { "\xbf", -1, 0, FALSE },
+  /* lone start characters */
+  { "\xc0\x20", -1, 0, FALSE },
+  { "\xc1\x20", -1, 0, FALSE },
+  { "\xc2\x20", -1, 0, FALSE },
+  { "\xc3\x20", -1, 0, FALSE },
+  { "\xc4\x20", -1, 0, FALSE },
+  { "\xc5\x20", -1, 0, FALSE },
+  { "\xc6\x20", -1, 0, FALSE },
+  { "\xc7\x20", -1, 0, FALSE },
+  { "\xc8\x20", -1, 0, FALSE },
+  { "\xc9\x20", -1, 0, FALSE },
+  { "\xca\x20", -1, 0, FALSE },
+  { "\xcb\x20", -1, 0, FALSE },
+  { "\xcc\x20", -1, 0, FALSE },
+  { "\xcd\x20", -1, 0, FALSE },
+  { "\xce\x20", -1, 0, FALSE },
+  { "\xcf\x20", -1, 0, FALSE },
+  { "\xd0\x20", -1, 0, FALSE },
+  { "\xd1\x20", -1, 0, FALSE },
+  { "\xd2\x20", -1, 0, FALSE },
+  { "\xd3\x20", -1, 0, FALSE },
+  { "\xd4\x20", -1, 0, FALSE },
+  { "\xd5\x20", -1, 0, FALSE },
+  { "\xd6\x20", -1, 0, FALSE },
+  { "\xd7\x20", -1, 0, FALSE },
+  { "\xd8\x20", -1, 0, FALSE },
+  { "\xd9\x20", -1, 0, FALSE },
+  { "\xda\x20", -1, 0, FALSE },
+  { "\xdb\x20", -1, 0, FALSE },
+  { "\xdc\x20", -1, 0, FALSE },
+  { "\xdd\x20", -1, 0, FALSE },
+  { "\xde\x20", -1, 0, FALSE },
+  { "\xdf\x20", -1, 0, FALSE },
+  { "\xe0\x20", -1, 0, FALSE },
+  { "\xe1\x20", -1, 0, FALSE },
+  { "\xe2\x20", -1, 0, FALSE },
+  { "\xe3\x20", -1, 0, FALSE },
+  { "\xe4\x20", -1, 0, FALSE },
+  { "\xe5\x20", -1, 0, FALSE },
+  { "\xe6\x20", -1, 0, FALSE },
+  { "\xe7\x20", -1, 0, FALSE },
+  { "\xe8\x20", -1, 0, FALSE },
+  { "\xe9\x20", -1, 0, FALSE },
+  { "\xea\x20", -1, 0, FALSE },
+  { "\xeb\x20", -1, 0, FALSE },
+  { "\xec\x20", -1, 0, FALSE },
+  { "\xed\x20", -1, 0, FALSE },
+  { "\xee\x20", -1, 0, FALSE },
+  { "\xef\x20", -1, 0, FALSE },
+  { "\xf0\x20", -1, 0, FALSE },
+  { "\xf1\x20", -1, 0, FALSE },
+  { "\xf2\x20", -1, 0, FALSE },
+  { "\xf3\x20", -1, 0, FALSE },
+  { "\xf4\x20", -1, 0, FALSE },
+  { "\xf5\x20", -1, 0, FALSE },
+  { "\xf6\x20", -1, 0, FALSE },
+  { "\xf7\x20", -1, 0, FALSE },
+  { "\xf8\x20", -1, 0, FALSE },
+  { "\xf9\x20", -1, 0, FALSE },
+  { "\xfa\x20", -1, 0, FALSE },
+  { "\xfb\x20", -1, 0, FALSE },
+  { "\xfc\x20", -1, 0, FALSE },
+  { "\xfd\x20", -1, 0, FALSE },
+  /* missing continuation bytes */
+  { "\x20\xc0", -1, 1, FALSE },
+  { "\x20\xe0\x80", -1, 1, FALSE },
+  { "\x20\xf0\x80\x80", -1, 1, FALSE },
+  { "\x20\xf8\x80\x80\x80", -1, 1, FALSE },
+  { "\x20\xfc\x80\x80\x80\x80", -1, 1, FALSE },
+  { "\x20\xdf", -1, 1, FALSE },
+  { "\x20\xef\xbf", -1, 1, FALSE },
+  { "\x20\xf7\xbf\xbf", -1, 1, FALSE },
+  { "\x20\xfb\xbf\xbf\xbf", -1, 1, FALSE },
+  { "\x20\xfd\xbf\xbf\xbf\xbf", -1, 1, FALSE },
+  /* impossible bytes */
+  { "\x20\xfe\x20", -1, 1, FALSE },
+  { "\x20\xff\x20", -1, 1, FALSE },
+  /* overlong sequences */
+  { "\x20\xc0\xaf\x20", -1, 1, FALSE },
+  { "\x20\xe0\x80\xaf\x20", -1, 1, FALSE },
+  { "\x20\xf0\x80\x80\xaf\x20", -1, 1, FALSE },
+  { "\x20\xf8\x80\x80\x80\xaf\x20", -1, 1, FALSE },
+  { "\x20\xfc\x80\x80\x80\x80\xaf\x20", -1, 1, FALSE },
+  { "\x20\xc1\xbf\x20", -1, 1, FALSE },
+  { "\x20\xe0\x9f\xbf\x20", -1, 1, FALSE },
+  { "\x20\xf0\x8f\xbf\xbf\x20", -1, 1, FALSE },
+  { "\x20\xf8\x87\xbf\xbf\xbf\x20", -1, 1, FALSE },
+  { "\x20\xfc\x83\xbf\xbf\xbf\xbf\x20", -1, 1, FALSE },
+  { "\x20\xc0\x80\x20", -1, 1, FALSE },
+  { "\x20\xe0\x80\x80\x20", -1, 1, FALSE },
+  { "\x20\xf0\x80\x80\x80\x20", -1, 1, FALSE },
+  { "\x20\xf8\x80\x80\x80\x80\x20", -1, 1, FALSE },
+  { "\x20\xfc\x80\x80\x80\x80\x80\x20", -1, 1, FALSE },
+  /* illegal code positions */
+  { "\x20\xed\xa0\x80\x20", -1, 1, FALSE },
+  { "\x20\xed\xad\xbf\x20", -1, 1, FALSE },
+  { "\x20\xed\xae\x80\x20", -1, 1, FALSE },
+  { "\x20\xed\xaf\xbf\x20", -1, 1, FALSE },
+  { "\x20\xed\xb0\x80\x20", -1, 1, FALSE },
+  { "\x20\xed\xbe\x80\x20", -1, 1, FALSE },
+  { "\x20\xed\xbf\xbf\x20", -1, 1, FALSE },
+  { "\x20\xed\xa0\x80\xed\xb0\x80\x20", -1, 1, FALSE },
+  { "\x20\xed\xa0\x80\xed\xbf\xbf\x20", -1, 1, FALSE },
+  { "\x20\xed\xad\xbf\xed\xb0\x80\x20", -1, 1, FALSE },
+  { "\x20\xed\xad\xbf\xed\xbf\xbf\x20", -1, 1, FALSE },
+  { "\x20\xed\xae\x80\xed\xb0\x80\x20", -1, 1, FALSE },
+  { "\x20\xed\xae\x80\xed\xbf\xbf\x20", -1, 1, FALSE },
+  { "\x20\xed\xaf\xbf\xed\xb0\x80\x20", -1, 1, FALSE },
+  { "\x20\xed\xaf\xbf\xed\xbf\xbf\x20", -1, 1, FALSE },
+#if 0 /* We don't consider U+FFFE / U+FFFF and similar invalid. */
+  { "\x20\xef\xbf\xbe\x20", -1, 1, FALSE },
+  { "\x20\xef\xbf\xbf\x20", -1, 1, FALSE },
+#endif
+  { "", -1, 0, TRUE }
+};
+
+static void
+test_buffer_utf8_validity (void)
+{
+  hb_buffer_t *b;
+  unsigned int i;
+
+  b = hb_buffer_create ();
+  hb_buffer_set_replacement_codepoint (b, (hb_codepoint_t) -1);
+
+  for (i = 0; i < G_N_ELEMENTS (utf8_validity_tests); i++)
+  {
+    const utf8_validity_test_t *test = &utf8_validity_tests[i];
+    unsigned int text_bytes, segment_bytes, j, len;
+    hb_glyph_info_t *glyphs;
+    char *escaped;
+
+    escaped = g_strescape (test->utf8, NULL);
+    g_test_message ("UTF-8 test #%d: %s", i, escaped);
+    g_free (escaped);
+
+    text_bytes = strlen (test->utf8);
+    if (test->max_len == -1)
+      segment_bytes = text_bytes;
+    else
+      segment_bytes = test->max_len;
+
+    hb_buffer_clear_contents (b);
+    hb_buffer_add_utf8 (b, test->utf8, text_bytes,  0, segment_bytes);
+
+    glyphs = hb_buffer_get_glyph_infos (b, &len);
+    for (j = 0; j < len; j++)
+      if (glyphs[j].codepoint == (hb_codepoint_t) -1)
+       break;
+
+    g_assert (test->valid ? j == len : j < len);
+    if (!test->valid)
+      g_assert (glyphs[j].cluster == test->offset);
+  }
+
+  hb_buffer_destroy (b);
+}
+
+
+typedef struct {
+  const uint16_t utf16[8];
+  const uint32_t codepoints[8];
+} utf16_conversion_test_t;
+
+/* note: we skip the first and last item from utf16 when adding to buffer */
+static const utf16_conversion_test_t utf16_conversion_tests[] = {
+  {{0x41, 0x004D, 0x0430, 0x4E8C, 0xD800, 0xDF02, 0x61} , {0x004D, 0x0430, 0x4E8C, 0x10302}},
+  {{0x41, 0xD800, 0xDF02, 0x61}, {0x10302}},
+  {{0x41, 0xD800, 0xDF02}, {-1}},
+  {{0x41, 0x61, 0xD800, 0xDF02}, {0x61, -1}},
+  {{0x41, 0xD800, 0x61, 0xDF02}, {-1, 0x61}},
+  {{0x41, 0xDF00, 0x61}, {-1}},
+  {{0x41, 0x61}, {0}}
+};
+
+static void
+test_buffer_utf16_conversion (void)
+{
+  hb_buffer_t *b;
+  unsigned int i;
+
+  b = hb_buffer_create ();
+  hb_buffer_set_replacement_codepoint (b, (hb_codepoint_t) -1);
+
+  for (i = 0; i < G_N_ELEMENTS (utf16_conversion_tests); i++)
+  {
+    const utf16_conversion_test_t *test = &utf16_conversion_tests[i];
+    unsigned int u_len, chars, j, len;
+    hb_glyph_info_t *glyphs;
+
+    g_test_message ("UTF-16 test #%d", i);
+
+    for (u_len = 0; test->utf16[u_len]; u_len++)
+      ;
+    for (chars = 0; test->codepoints[chars]; chars++)
+      ;
+
+    hb_buffer_clear_contents (b);
+    hb_buffer_add_utf16 (b, test->utf16, u_len,  1, u_len - 2);
+
+    glyphs = hb_buffer_get_glyph_infos (b, &len);
+    g_assert_cmpint (len, ==, chars);
+    for (j = 0; j < chars; j++)
+      g_assert_cmphex (glyphs[j].codepoint, ==, test->codepoints[j]);
+  }
+
+  hb_buffer_destroy (b);
+}
+
+
+typedef struct {
+  const uint32_t utf32[8];
+  const uint32_t codepoints[8];
+} utf32_conversion_test_t;
+
+/* note: we skip the first and last item from utf32 when adding to buffer */
+static const utf32_conversion_test_t utf32_conversion_tests[] = {
+  {{0x41, 0x004D, 0x0430, 0x4E8C, 0xD800, 0xDF02, 0x61} , {0x004D, 0x0430, 0x4E8C, -3, -3}},
+  {{0x41, 0x004D, 0x0430, 0x4E8C, 0x10302, 0x61} , {0x004D, 0x0430, 0x4E8C, 0x10302}},
+  {{0x41, 0xD800, 0xDF02, 0x61}, {-3, -3}},
+  {{0x41, 0xD800, 0xDF02}, {-3}},
+  {{0x41, 0x61, 0xD800, 0xDF02}, {0x61, -3}},
+  {{0x41, 0xD800, 0x61, 0xDF02}, {-3, 0x61}},
+  {{0x41, 0xDF00, 0x61}, {-3}},
+  {{0x41, 0x10FFFF, 0x61}, {0x10FFFF}},
+  {{0x41, 0x110000, 0x61}, {-3}},
+  {{0x41, 0x61}, {0}}
+};
+
+static void
+test_buffer_utf32_conversion (void)
+{
+  hb_buffer_t *b;
+  unsigned int i;
+
+  b = hb_buffer_create ();
+  hb_buffer_set_replacement_codepoint (b, (hb_codepoint_t) -3);
+
+  for (i = 0; i < G_N_ELEMENTS (utf32_conversion_tests); i++)
+  {
+    const utf32_conversion_test_t *test = &utf32_conversion_tests[i];
+    unsigned int u_len, chars, j, len;
+    hb_glyph_info_t *glyphs;
+
+    g_test_message ("UTF-32 test #%d", i);
+
+    for (u_len = 0; test->utf32[u_len]; u_len++)
+      ;
+    for (chars = 0; test->codepoints[chars]; chars++)
+      ;
+
+    hb_buffer_clear_contents (b);
+    hb_buffer_add_utf32 (b, test->utf32, u_len,  1, u_len - 2);
+
+    glyphs = hb_buffer_get_glyph_infos (b, &len);
+    g_assert_cmpint (len, ==, chars);
+    for (j = 0; j < chars; j++)
+      g_assert_cmphex (glyphs[j].codepoint, ==, test->codepoints[j]);
+  }
+
+  hb_buffer_destroy (b);
+}
+
+
+static void
+test_empty (hb_buffer_t *b)
+{
+  g_assert_cmpint (hb_buffer_get_length (b), ==, 0);
+  g_assert (!hb_buffer_get_glyph_infos (b, NULL));
+  g_assert (!hb_buffer_get_glyph_positions (b, NULL));
+}
+
+static void
+test_buffer_empty (void)
+{
+  hb_buffer_t *b = hb_buffer_get_empty ();
+
+  g_assert (hb_buffer_get_empty ());
+  g_assert (hb_buffer_get_empty () == b);
+
+  g_assert (!hb_buffer_allocation_successful (b));
+
+  test_empty (b);
+
+  hb_buffer_add_utf32 (b, utf32, G_N_ELEMENTS (utf32), 1, G_N_ELEMENTS (utf32) - 2);
+
+  test_empty (b);
+
+  hb_buffer_reverse (b);
+  hb_buffer_reverse_clusters (b);
+
+  g_assert (!hb_buffer_set_length (b, 10));
+
+  test_empty (b);
+
+  g_assert (hb_buffer_set_length (b, 0));
+
+  test_empty (b);
+
+  g_assert (!hb_buffer_allocation_successful (b));
+
+  hb_buffer_reset (b);
+
+  test_empty (b);
+
+  g_assert (!hb_buffer_allocation_successful (b));
+}
+
+int
+main (int argc, char **argv)
+{
+  unsigned int i;
+
+  hb_test_init (&argc, &argv);
+
+  for (i = 0; i < BUFFER_NUM_TYPES; i++)
+  {
+    const void *buffer_type = GINT_TO_POINTER (i);
+    const char *buffer_name = buffer_names[i];
+
+    hb_test_add_fixture_flavor (fixture, buffer_type, buffer_name, test_buffer_properties);
+    hb_test_add_fixture_flavor (fixture, buffer_type, buffer_name, test_buffer_contents);
+    hb_test_add_fixture_flavor (fixture, buffer_type, buffer_name, test_buffer_positions);
+  }
+
+  hb_test_add_fixture (fixture, GINT_TO_POINTER (BUFFER_EMPTY), test_buffer_allocation);
+
+  hb_test_add (test_buffer_utf8_conversion);
+  hb_test_add (test_buffer_utf8_validity);
+  hb_test_add (test_buffer_utf16_conversion);
+  hb_test_add (test_buffer_utf32_conversion);
+  hb_test_add (test_buffer_empty);
+
+  return hb_test_run();
+}
diff --git a/test/api/test-c.c b/test/api/test-c.c
new file mode 100644 (file)
index 0000000..6e8602f
--- /dev/null
@@ -0,0 +1,62 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+/* This file tests that all headers can be included from .c files */
+
+
+#include <config.h>
+
+#include <hb.h>
+
+#ifdef HAVE_GLIB
+#include <hb-glib.h>
+#endif
+
+#ifdef HAVE_ICU
+#include <hb-icu.h>
+#endif
+
+#ifdef HAVE_FREETYPE
+#include <hb-ft.h>
+#endif
+
+#ifdef HAVE_OT
+#include <hb-ot.h>
+#endif
+
+#ifdef HAVE_UNISCRIBE
+#include <hb-uniscribe.h>
+#endif
+
+#ifdef HAVE_CORETEXT
+#include <hb-coretext.h>
+#endif
+
+int
+main (int argc, char **argv)
+{
+  return !*hb_shape_list_shapers ();
+}
diff --git a/test/api/test-common.c b/test/api/test-common.c
new file mode 100644 (file)
index 0000000..74b50be
--- /dev/null
@@ -0,0 +1,225 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-test.h"
+
+/* Unit tests for hb-common.h */
+
+
+static void
+test_types_int (void)
+{
+  /* We already ASSERT_STATIC these in hb-private.h, but anyway */
+  g_assert_cmpint (sizeof (int8_t), ==, 1);
+  g_assert_cmpint (sizeof (uint8_t), ==, 1);
+  g_assert_cmpint (sizeof (int16_t), ==, 2);
+  g_assert_cmpint (sizeof (uint16_t), ==, 2);
+  g_assert_cmpint (sizeof (int32_t), ==, 4);
+  g_assert_cmpint (sizeof (uint32_t), ==, 4);
+  g_assert_cmpint (sizeof (int64_t), ==, 8);
+  g_assert_cmpint (sizeof (uint64_t), ==, 8);
+
+  g_assert_cmpint (sizeof (hb_codepoint_t), ==, 4);
+  g_assert_cmpint (sizeof (hb_position_t), ==, 4);
+  g_assert_cmpint (sizeof (hb_mask_t), ==, 4);
+  g_assert_cmpint (sizeof (hb_var_int_t), ==, 4);
+}
+
+static void
+test_types_direction (void)
+{
+  g_assert_cmpint ((signed) HB_DIRECTION_INVALID, ==, 0);
+  g_assert_cmpint (HB_DIRECTION_LTR, !=, 0);
+
+  g_assert (HB_DIRECTION_IS_HORIZONTAL (HB_DIRECTION_LTR));
+  g_assert (HB_DIRECTION_IS_HORIZONTAL (HB_DIRECTION_RTL));
+  g_assert (!HB_DIRECTION_IS_HORIZONTAL (HB_DIRECTION_TTB));
+  g_assert (!HB_DIRECTION_IS_HORIZONTAL (HB_DIRECTION_BTT));
+  g_assert (!HB_DIRECTION_IS_HORIZONTAL (HB_DIRECTION_INVALID));
+
+  g_assert (!HB_DIRECTION_IS_VERTICAL (HB_DIRECTION_LTR));
+  g_assert (!HB_DIRECTION_IS_VERTICAL (HB_DIRECTION_RTL));
+  g_assert (HB_DIRECTION_IS_VERTICAL (HB_DIRECTION_TTB));
+  g_assert (HB_DIRECTION_IS_VERTICAL (HB_DIRECTION_BTT));
+  g_assert (!HB_DIRECTION_IS_VERTICAL (HB_DIRECTION_INVALID));
+
+  g_assert (HB_DIRECTION_IS_FORWARD (HB_DIRECTION_LTR));
+  g_assert (HB_DIRECTION_IS_FORWARD (HB_DIRECTION_TTB));
+  g_assert (!HB_DIRECTION_IS_FORWARD (HB_DIRECTION_RTL));
+  g_assert (!HB_DIRECTION_IS_FORWARD (HB_DIRECTION_BTT));
+  g_assert (!HB_DIRECTION_IS_FORWARD (HB_DIRECTION_INVALID));
+
+  g_assert (!HB_DIRECTION_IS_BACKWARD (HB_DIRECTION_LTR));
+  g_assert (!HB_DIRECTION_IS_BACKWARD (HB_DIRECTION_TTB));
+  g_assert (HB_DIRECTION_IS_BACKWARD (HB_DIRECTION_RTL));
+  g_assert (HB_DIRECTION_IS_BACKWARD (HB_DIRECTION_BTT));
+  g_assert (!HB_DIRECTION_IS_BACKWARD (HB_DIRECTION_INVALID));
+
+  g_assert (HB_DIRECTION_IS_VALID (HB_DIRECTION_LTR));
+  g_assert (HB_DIRECTION_IS_VALID (HB_DIRECTION_TTB));
+  g_assert (HB_DIRECTION_IS_VALID (HB_DIRECTION_RTL));
+  g_assert (HB_DIRECTION_IS_VALID (HB_DIRECTION_BTT));
+  g_assert (!HB_DIRECTION_IS_VALID (HB_DIRECTION_INVALID));
+  g_assert (!HB_DIRECTION_IS_VALID ((hb_direction_t) 0x12345678));
+
+  g_assert_cmpint (HB_DIRECTION_REVERSE (HB_DIRECTION_LTR), ==, HB_DIRECTION_RTL);
+  g_assert_cmpint (HB_DIRECTION_REVERSE (HB_DIRECTION_RTL), ==, HB_DIRECTION_LTR);
+  g_assert_cmpint (HB_DIRECTION_REVERSE (HB_DIRECTION_TTB), ==, HB_DIRECTION_BTT);
+  g_assert_cmpint (HB_DIRECTION_REVERSE (HB_DIRECTION_BTT), ==, HB_DIRECTION_TTB);
+  //g_assert_cmpint (HB_DIRECTION_REVERSE (HB_DIRECTION_INVALID), ==, HB_DIRECTION_INVALID);
+
+  g_assert_cmpint (HB_DIRECTION_INVALID, ==, hb_direction_from_string (NULL, -1));
+  g_assert_cmpint (HB_DIRECTION_INVALID, ==, hb_direction_from_string ("", -1));
+  g_assert_cmpint (HB_DIRECTION_INVALID, ==, hb_direction_from_string ("t", 0));
+  g_assert_cmpint (HB_DIRECTION_INVALID, ==, hb_direction_from_string ("x", -1));
+  g_assert_cmpint (HB_DIRECTION_RTL, ==, hb_direction_from_string ("r", -1));
+  g_assert_cmpint (HB_DIRECTION_RTL, ==, hb_direction_from_string ("rtl", -1));
+  g_assert_cmpint (HB_DIRECTION_RTL, ==, hb_direction_from_string ("RtL", -1));
+  g_assert_cmpint (HB_DIRECTION_RTL, ==, hb_direction_from_string ("right-to-left", -1));
+  g_assert_cmpint (HB_DIRECTION_TTB, ==, hb_direction_from_string ("ttb", -1));
+
+  g_assert (0 == strcmp ("ltr", hb_direction_to_string (HB_DIRECTION_LTR)));
+  g_assert (0 == strcmp ("rtl", hb_direction_to_string (HB_DIRECTION_RTL)));
+  g_assert (0 == strcmp ("ttb", hb_direction_to_string (HB_DIRECTION_TTB)));
+  g_assert (0 == strcmp ("btt", hb_direction_to_string (HB_DIRECTION_BTT)));
+  g_assert (0 == strcmp ("invalid", hb_direction_to_string (HB_DIRECTION_INVALID)));
+}
+
+static void
+test_types_tag (void)
+{
+  g_assert_cmphex (HB_TAG_NONE, ==, 0);
+
+  g_assert_cmphex (HB_TAG ('a','B','c','D'), ==, 0x61426344);
+
+  g_assert_cmphex (hb_tag_from_string ("aBcDe", -1), ==, 0x61426344);
+  g_assert_cmphex (hb_tag_from_string ("aBcD", -1),  ==, 0x61426344);
+  g_assert_cmphex (hb_tag_from_string ("aBc", -1),   ==, 0x61426320);
+  g_assert_cmphex (hb_tag_from_string ("aB", -1),    ==, 0x61422020);
+  g_assert_cmphex (hb_tag_from_string ("a", -1),     ==, 0x61202020);
+  g_assert_cmphex (hb_tag_from_string ("aBcDe",  1), ==, 0x61202020);
+  g_assert_cmphex (hb_tag_from_string ("aBcDe",  2), ==, 0x61422020);
+  g_assert_cmphex (hb_tag_from_string ("aBcDe",  3), ==, 0x61426320);
+  g_assert_cmphex (hb_tag_from_string ("aBcDe",  4), ==, 0x61426344);
+  g_assert_cmphex (hb_tag_from_string ("aBcDe",  4), ==, 0x61426344);
+
+  g_assert_cmphex (hb_tag_from_string ("", -1),      ==, HB_TAG_NONE);
+  g_assert_cmphex (hb_tag_from_string ("x", 0),      ==, HB_TAG_NONE);
+  g_assert_cmphex (hb_tag_from_string (NULL, -1),    ==, HB_TAG_NONE);
+}
+
+static void
+test_types_script (void)
+{
+  hb_tag_t arab = HB_TAG_CHAR4 ("arab");
+  hb_tag_t Arab = HB_TAG_CHAR4 ("Arab");
+  hb_tag_t ARAB = HB_TAG_CHAR4 ("ARAB");
+
+  hb_tag_t wWyZ = HB_TAG_CHAR4 ("wWyZ");
+  hb_tag_t Wwyz = HB_TAG_CHAR4 ("Wwyz");
+
+  hb_tag_t x123 = HB_TAG_CHAR4 ("x123");
+
+  g_assert_cmpint (HB_SCRIPT_INVALID, ==, (hb_script_t) HB_TAG_NONE);
+  g_assert_cmphex (HB_SCRIPT_ARABIC, !=, HB_SCRIPT_LATIN);
+
+  g_assert_cmphex (HB_SCRIPT_INVALID, ==, hb_script_from_string (NULL, -1));
+  g_assert_cmphex (HB_SCRIPT_INVALID, ==, hb_script_from_string ("", -1));
+  g_assert_cmphex (HB_SCRIPT_INVALID, ==, hb_script_from_string ("x", 0));
+  g_assert_cmphex (HB_SCRIPT_UNKNOWN, ==, hb_script_from_string ("x", -1));
+
+  g_assert_cmphex (HB_SCRIPT_ARABIC, ==, hb_script_from_string ("arab", -1));
+  g_assert_cmphex (HB_SCRIPT_ARABIC, ==, hb_script_from_string ("Arab", -1));
+  g_assert_cmphex (HB_SCRIPT_ARABIC, ==, hb_script_from_string ("ARAB", -1));
+  g_assert_cmphex (HB_SCRIPT_ARABIC, ==, hb_script_from_string ("Arabic", 6));
+  g_assert_cmphex (HB_SCRIPT_ARABIC, !=, hb_script_from_string ("Arabic", 3));
+
+  g_assert_cmphex (HB_SCRIPT_ARABIC, ==, hb_script_from_iso15924_tag (arab));
+  g_assert_cmphex (HB_SCRIPT_ARABIC, ==, hb_script_from_iso15924_tag (Arab));
+  g_assert_cmphex (HB_SCRIPT_ARABIC, ==, hb_script_from_iso15924_tag (ARAB));
+
+  /* Arbitrary tags that look like may be valid ISO 15924 should be preserved. */
+  g_assert_cmphex (HB_SCRIPT_UNKNOWN, !=, hb_script_from_string ("wWyZ", -1));
+  g_assert_cmphex (HB_SCRIPT_UNKNOWN, !=, hb_script_from_iso15924_tag (wWyZ));
+  /* Otherwise, UNKNOWN should be returned. */
+  g_assert_cmphex (HB_SCRIPT_UNKNOWN, ==, hb_script_from_string ("x123", -1));
+  g_assert_cmphex (HB_SCRIPT_UNKNOWN, ==, hb_script_from_iso15924_tag (x123));
+
+  g_assert_cmphex (hb_script_to_iso15924_tag (HB_SCRIPT_ARABIC), ==, Arab);
+  g_assert_cmphex (hb_script_to_iso15924_tag (hb_script_from_iso15924_tag (wWyZ)), ==, Wwyz);
+
+  g_assert_cmpint (hb_script_get_horizontal_direction (HB_SCRIPT_LATIN), ==, HB_DIRECTION_LTR);
+  g_assert_cmpint (hb_script_get_horizontal_direction (HB_SCRIPT_ARABIC), ==, HB_DIRECTION_RTL);
+  g_assert_cmpint (hb_script_get_horizontal_direction (hb_script_from_iso15924_tag (wWyZ)), ==, HB_DIRECTION_LTR);
+}
+
+static void
+test_types_language (void)
+{
+  hb_language_t fa = hb_language_from_string ("fa", -1);
+  hb_language_t fa_IR = hb_language_from_string ("fa_IR", -1);
+  hb_language_t fa_ir = hb_language_from_string ("fa-ir", -1);
+  hb_language_t en = hb_language_from_string ("en", -1);
+
+  g_assert (HB_LANGUAGE_INVALID == NULL);
+
+  g_assert (fa != NULL);
+  g_assert (fa_IR != NULL);
+  g_assert (fa_IR == fa_ir);
+
+  g_assert (en != NULL);
+  g_assert (en != fa);
+
+  /* Test recall */
+  g_assert (en == hb_language_from_string ("en", -1));
+  g_assert (en == hb_language_from_string ("eN", -1));
+  g_assert (en == hb_language_from_string ("Enx", 2));
+
+  g_assert (HB_LANGUAGE_INVALID == hb_language_from_string (NULL, -1));
+  g_assert (HB_LANGUAGE_INVALID == hb_language_from_string ("", -1));
+  g_assert (HB_LANGUAGE_INVALID == hb_language_from_string ("en", 0));
+  g_assert (HB_LANGUAGE_INVALID != hb_language_from_string ("en", 1));
+  g_assert (NULL == hb_language_to_string (HB_LANGUAGE_INVALID));
+
+  /* Not sure how to test this better.  Setting env vars
+   * here doesn't sound like the right approach, and I'm
+   * not sure that it even works. */
+  g_assert (HB_LANGUAGE_INVALID != hb_language_get_default ());
+}
+
+int
+main (int argc, char **argv)
+{
+  hb_test_init (&argc, &argv);
+
+  hb_test_add (test_types_int);
+  hb_test_add (test_types_direction);
+  hb_test_add (test_types_tag);
+  hb_test_add (test_types_script);
+  hb_test_add (test_types_language);
+
+  return hb_test_run();
+}
diff --git a/test/api/test-cplusplus.cc b/test/api/test-cplusplus.cc
new file mode 100644 (file)
index 0000000..3313d74
--- /dev/null
@@ -0,0 +1,30 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+/* This file tests that all headers can be included from .cc files */
+
+
+#include "test-c.c"
diff --git a/test/api/test-font.c b/test/api/test-font.c
new file mode 100644 (file)
index 0000000..6b6a503
--- /dev/null
@@ -0,0 +1,501 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-test.h"
+
+/* Unit tests for hb-font.h */
+
+
+static const char test_data[] = "test\0data";
+
+
+static void
+test_face_empty (void)
+{
+  g_assert (hb_face_get_empty ());
+  g_assert (hb_face_get_empty () == hb_face_create (hb_blob_get_empty (), 0));
+  g_assert (hb_face_get_empty () == hb_face_create (NULL, 0));
+
+  g_assert (hb_face_reference_table (hb_face_get_empty (), HB_TAG ('h','e','a','d')) == hb_blob_get_empty ());
+
+  g_assert_cmpint (hb_face_get_upem (hb_face_get_empty ()), ==, 1000);
+}
+
+static void
+test_face_create (void)
+{
+  hb_face_t *face;
+  hb_blob_t *blob;
+
+  blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL);
+  face = hb_face_create (blob, 0);
+  hb_blob_destroy (blob);
+
+  g_assert (hb_face_reference_table (face, HB_TAG ('h','e','a','d')) == hb_blob_get_empty ());
+
+  g_assert_cmpint (hb_face_get_upem (face), ==, 1000);
+
+  hb_face_destroy (face);
+}
+
+
+static void
+free_up (void *user_data)
+{
+  int *freed = (int *) user_data;
+
+  g_assert (!*freed);
+
+  (*freed)++;
+}
+
+static hb_blob_t *
+get_table (hb_face_t *face, hb_tag_t tag, void *user_data)
+{
+  if (tag == HB_TAG ('a','b','c','d'))
+    return hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL);
+
+  return hb_blob_get_empty ();
+}
+
+static void
+test_face_createfortables (void)
+{
+  hb_face_t *face;
+  hb_blob_t *blob;
+  const char *data;
+  unsigned int len;
+  int freed = 0;
+
+  face = hb_face_create_for_tables (get_table, &freed, free_up);
+  g_assert (!freed);
+
+  g_assert (hb_face_reference_table (face, HB_TAG ('h','e','a','d')) == hb_blob_get_empty ());
+
+  blob = hb_face_reference_table (face, HB_TAG ('a','b','c','d'));
+  g_assert (blob != hb_blob_get_empty ());
+
+  data = hb_blob_get_data (blob, &len);
+  g_assert_cmpint (len, ==, sizeof (test_data));
+  g_assert (0 == memcmp (data, test_data, sizeof (test_data)));
+  hb_blob_destroy (blob);
+
+  g_assert_cmpint (hb_face_get_upem (face), ==, 1000);
+
+  hb_face_destroy (face);
+  g_assert (freed);
+}
+
+static void
+_test_font_nil_funcs (hb_font_t *font)
+{
+  hb_codepoint_t glyph;
+  hb_position_t x, y;
+  hb_glyph_extents_t extents;
+
+  x = y = 13;
+  g_assert (!hb_font_get_glyph_contour_point (font, 17, 2, &x, &y));
+  g_assert_cmpint (x, ==, 0);
+  g_assert_cmpint (y, ==, 0);
+
+  x = hb_font_get_glyph_h_advance (font, 17);
+  g_assert_cmpint (x, ==, 0);
+
+  extents.x_bearing = extents.y_bearing = 13;
+  extents.width = extents.height = 15;
+  hb_font_get_glyph_extents (font, 17, &extents);
+  g_assert_cmpint (extents.x_bearing, ==, 0);
+  g_assert_cmpint (extents.y_bearing, ==, 0);
+  g_assert_cmpint (extents.width, ==, 0);
+  g_assert_cmpint (extents.height, ==, 0);
+
+  glyph = 3;
+  g_assert (!hb_font_get_glyph (font, 17, 2, &glyph));
+  g_assert_cmpint (glyph, ==, 0);
+
+  x = hb_font_get_glyph_h_kerning (font, 17, 19);
+  g_assert_cmpint (x, ==, 0);
+}
+
+static void
+_test_fontfuncs_nil (hb_font_funcs_t *ffuncs)
+{
+  hb_blob_t *blob;
+  hb_face_t *face;
+  hb_font_t *font;
+  hb_font_t *subfont;
+  int freed = 0;
+
+  blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL);
+  face = hb_face_create (blob, 0);
+  hb_blob_destroy (blob);
+  g_assert (!hb_face_is_immutable (face));
+  font = hb_font_create (face);
+  g_assert (font);
+  g_assert (hb_face_is_immutable (face));
+  hb_face_destroy (face);
+
+
+  hb_font_set_funcs (font, ffuncs, &freed, free_up);
+  g_assert_cmpint (freed, ==, 0);
+
+  _test_font_nil_funcs (font);
+
+  subfont = hb_font_create_sub_font (font);
+  g_assert (subfont);
+
+  g_assert_cmpint (freed, ==, 0);
+  hb_font_destroy (font);
+  g_assert_cmpint (freed, ==, 0);
+
+  _test_font_nil_funcs (subfont);
+
+  hb_font_destroy (subfont);
+  g_assert_cmpint (freed, ==, 1);
+}
+
+static void
+test_fontfuncs_empty (void)
+{
+  g_assert (hb_font_funcs_get_empty ());
+  g_assert (hb_font_funcs_is_immutable (hb_font_funcs_get_empty ()));
+  _test_fontfuncs_nil (hb_font_funcs_get_empty ());
+}
+
+static void
+test_fontfuncs_nil (void)
+{
+  hb_font_funcs_t *ffuncs;
+
+  ffuncs = hb_font_funcs_create ();
+
+  g_assert (!hb_font_funcs_is_immutable (ffuncs));
+  _test_fontfuncs_nil (hb_font_funcs_get_empty ());
+
+  hb_font_funcs_destroy (ffuncs);
+}
+
+static hb_bool_t
+contour_point_func1 (hb_font_t *font, void *font_data,
+                    hb_codepoint_t glyph, unsigned int point_index,
+                    hb_position_t *x, hb_position_t *y,
+                    void *user_data)
+{
+  if (glyph == 1) {
+    *x = 2;
+    *y = 3;
+    return TRUE;
+  }
+  if (glyph == 2) {
+    *x = 4;
+    *y = 5;
+    return TRUE;
+  }
+
+  return FALSE;
+}
+
+static hb_bool_t
+contour_point_func2 (hb_font_t *font, void *font_data,
+                    hb_codepoint_t glyph, unsigned int point_index,
+                    hb_position_t *x, hb_position_t *y,
+                    void *user_data)
+{
+  if (glyph == 1) {
+    *x = 6;
+    *y = 7;
+    return TRUE;
+  }
+
+  return hb_font_get_glyph_contour_point (hb_font_get_parent (font),
+                                         glyph, point_index, x, y);
+}
+
+static hb_position_t
+glyph_h_advance_func1 (hb_font_t *font, void *font_data,
+                      hb_codepoint_t glyph,
+                      void *user_data)
+{
+  if (glyph == 1)
+    return 8;
+
+  return 0;
+}
+
+static void
+test_fontfuncs_subclassing (void)
+{
+  hb_blob_t *blob;
+  hb_face_t *face;
+
+  hb_font_funcs_t *ffuncs1;
+  hb_font_funcs_t *ffuncs2;
+
+  hb_font_t *font1;
+  hb_font_t *font2;
+  hb_font_t *font3;
+
+  hb_position_t x;
+  hb_position_t y;
+
+  blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL);
+  face = hb_face_create (blob, 0);
+  hb_blob_destroy (blob);
+  font1 = hb_font_create (face);
+  hb_face_destroy (face);
+  hb_font_set_scale (font1, 10, 10);
+
+  /* setup font1 */
+  ffuncs1 = hb_font_funcs_create ();
+  hb_font_funcs_set_glyph_contour_point_func (ffuncs1, contour_point_func1, NULL, NULL);
+  hb_font_funcs_set_glyph_h_advance_func (ffuncs1, glyph_h_advance_func1, NULL, NULL);
+  hb_font_set_funcs (font1, ffuncs1, NULL, NULL);
+  hb_font_funcs_destroy (ffuncs1);
+
+  x = y = 1;
+  g_assert (hb_font_get_glyph_contour_point_for_origin (font1, 1, 2, HB_DIRECTION_LTR, &x, &y));
+  g_assert_cmpint (x, ==, 2);
+  g_assert_cmpint (y, ==, 3);
+  g_assert (hb_font_get_glyph_contour_point_for_origin (font1, 2, 5, HB_DIRECTION_LTR, &x, &y));
+  g_assert_cmpint (x, ==, 4);
+  g_assert_cmpint (y, ==, 5);
+  g_assert (!hb_font_get_glyph_contour_point_for_origin (font1, 3, 7, HB_DIRECTION_RTL, &x, &y));
+  g_assert_cmpint (x, ==, 0);
+  g_assert_cmpint (y, ==, 0);
+  x = hb_font_get_glyph_h_advance (font1, 1);
+  g_assert_cmpint (x, ==, 8);
+  x = hb_font_get_glyph_h_advance (font1, 2);
+  g_assert_cmpint (x, ==, 0);
+
+
+  font2 = hb_font_create_sub_font (font1);
+  g_assert (hb_font_is_immutable (font1));
+  hb_font_destroy (font1);
+
+  /* setup font2 to override some funcs */
+  ffuncs2 = hb_font_funcs_create ();
+  hb_font_funcs_set_glyph_contour_point_func (ffuncs2, contour_point_func2, NULL, NULL);
+  hb_font_set_funcs (font2, ffuncs2, NULL, NULL);
+  hb_font_funcs_destroy (ffuncs2);
+
+  x = y = 1;
+  g_assert (hb_font_get_glyph_contour_point_for_origin (font2, 1, 2, HB_DIRECTION_LTR, &x, &y));
+  g_assert_cmpint (x, ==, 6);
+  g_assert_cmpint (y, ==, 7);
+  g_assert (hb_font_get_glyph_contour_point_for_origin (font2, 2, 5, HB_DIRECTION_RTL, &x, &y));
+  g_assert_cmpint (x, ==, 4);
+  g_assert_cmpint (y, ==, 5);
+  g_assert (!hb_font_get_glyph_contour_point_for_origin (font2, 3, 7, HB_DIRECTION_LTR, &x, &y));
+  g_assert_cmpint (x, ==, 0);
+  g_assert_cmpint (y, ==, 0);
+  x = hb_font_get_glyph_h_advance (font2, 1);
+  g_assert_cmpint (x, ==, 8);
+  x = hb_font_get_glyph_h_advance (font2, 2);
+  g_assert_cmpint (x, ==, 0);
+
+
+  font3 = hb_font_create_sub_font (font2);
+  g_assert (hb_font_is_immutable (font2));
+  hb_font_destroy (font2);
+
+  /* setup font3 to override scale */
+  hb_font_set_scale (font3, 20, 30);
+
+  x = y = 1;
+  g_assert (hb_font_get_glyph_contour_point_for_origin (font3, 1, 2, HB_DIRECTION_RTL, &x, &y));
+  g_assert_cmpint (x, ==, 6*2);
+  g_assert_cmpint (y, ==, 7*3);
+  g_assert (hb_font_get_glyph_contour_point_for_origin (font3, 2, 5, HB_DIRECTION_LTR, &x, &y));
+  g_assert_cmpint (x, ==, 4*2);
+  g_assert_cmpint (y, ==, 5*3);
+  g_assert (!hb_font_get_glyph_contour_point_for_origin (font3, 3, 7, HB_DIRECTION_LTR, &x, &y));
+  g_assert_cmpint (x, ==, 0*2);
+  g_assert_cmpint (y, ==, 0*3);
+  x = hb_font_get_glyph_h_advance (font3, 1);
+  g_assert_cmpint (x, ==, 8*2);
+  x = hb_font_get_glyph_h_advance (font3, 2);
+  g_assert_cmpint (x, ==, 0*2);
+
+
+  hb_font_destroy (font3);
+}
+
+
+static void
+test_font_empty (void)
+{
+  g_assert (hb_font_get_empty ());
+  g_assert (hb_font_get_empty () == hb_font_create (hb_face_get_empty ()));
+  g_assert (hb_font_get_empty () == hb_font_create (NULL));
+  g_assert (hb_font_get_empty () == hb_font_create_sub_font (NULL));
+  g_assert (hb_font_is_immutable (hb_font_get_empty ()));
+
+  g_assert (hb_font_get_face (hb_font_get_empty ()) == hb_face_get_empty ());
+  g_assert (hb_font_get_parent (hb_font_get_empty ()) == NULL);
+}
+
+static void
+test_font_properties (void)
+{
+  hb_blob_t *blob;
+  hb_face_t *face;
+  hb_font_t *font;
+  hb_font_t *subfont;
+  int x_scale, y_scale;
+  unsigned int x_ppem, y_ppem;
+
+  blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL);
+  face = hb_face_create (blob, 0);
+  hb_blob_destroy (blob);
+  font = hb_font_create (face);
+  hb_face_destroy (face);
+
+
+  g_assert (hb_font_get_face (font) == face);
+  g_assert (hb_font_get_parent (font) == NULL);
+
+
+  /* Check scale */
+
+  hb_font_get_scale (font, NULL, NULL);
+  x_scale = y_scale = 13;
+  hb_font_get_scale (font, &x_scale, NULL);
+  g_assert_cmpint (x_scale, ==, 0);
+  x_scale = y_scale = 13;
+  hb_font_get_scale (font, NULL, &y_scale);
+  g_assert_cmpint (y_scale, ==, 0);
+  x_scale = y_scale = 13;
+  hb_font_get_scale (font, &x_scale, &y_scale);
+  g_assert_cmpint (x_scale, ==, 0);
+  g_assert_cmpint (y_scale, ==, 0);
+
+  hb_font_set_scale (font, 17, 19);
+
+  x_scale = y_scale = 13;
+  hb_font_get_scale (font, &x_scale, &y_scale);
+  g_assert_cmpint (x_scale, ==, 17);
+  g_assert_cmpint (y_scale, ==, 19);
+
+
+  /* Check ppem */
+
+  hb_font_get_ppem (font, NULL, NULL);
+  x_ppem = y_ppem = 13;
+  hb_font_get_ppem (font, &x_ppem, NULL);
+  g_assert_cmpint (x_ppem, ==, 0);
+  x_ppem = y_ppem = 13;
+  hb_font_get_ppem (font, NULL, &y_ppem);
+  g_assert_cmpint (y_ppem, ==, 0);
+  x_ppem = y_ppem = 13;
+  hb_font_get_ppem (font, &x_ppem, &y_ppem);
+  g_assert_cmpint (x_ppem, ==, 0);
+  g_assert_cmpint (y_ppem, ==, 0);
+
+  hb_font_set_ppem (font, 17, 19);
+
+  x_ppem = y_ppem = 13;
+  hb_font_get_ppem (font, &x_ppem, &y_ppem);
+  g_assert_cmpint (x_ppem, ==, 17);
+  g_assert_cmpint (y_ppem, ==, 19);
+
+
+  /* Check immutable */
+
+  g_assert (!hb_font_is_immutable (font));
+  hb_font_make_immutable (font);
+  g_assert (hb_font_is_immutable (font));
+
+  hb_font_set_scale (font, 10, 12);
+  x_scale = y_scale = 13;
+  hb_font_get_scale (font, &x_scale, &y_scale);
+  g_assert_cmpint (x_scale, ==, 17);
+  g_assert_cmpint (y_scale, ==, 19);
+
+  hb_font_set_ppem (font, 10, 12);
+  x_ppem = y_ppem = 13;
+  hb_font_get_ppem (font, &x_ppem, &y_ppem);
+  g_assert_cmpint (x_ppem, ==, 17);
+  g_assert_cmpint (y_ppem, ==, 19);
+
+
+  /* sub_font now */
+  subfont = hb_font_create_sub_font (font);
+  hb_font_destroy (font);
+
+  g_assert (hb_font_get_parent (subfont) == font);
+  g_assert (hb_font_get_face (subfont) == face);
+
+  /* scale */
+  x_scale = y_scale = 13;
+  hb_font_get_scale (subfont, &x_scale, &y_scale);
+  g_assert_cmpint (x_scale, ==, 17);
+  g_assert_cmpint (y_scale, ==, 19);
+  hb_font_set_scale (subfont, 10, 12);
+  x_scale = y_scale = 13;
+  hb_font_get_scale (subfont, &x_scale, &y_scale);
+  g_assert_cmpint (x_scale, ==, 10);
+  g_assert_cmpint (y_scale, ==, 12);
+  x_scale = y_scale = 13;
+  hb_font_get_scale (font, &x_scale, &y_scale);
+  g_assert_cmpint (x_scale, ==, 17);
+  g_assert_cmpint (y_scale, ==, 19);
+
+  /* ppem */
+  x_ppem = y_ppem = 13;
+  hb_font_get_ppem (subfont, &x_ppem, &y_ppem);
+  g_assert_cmpint (x_ppem, ==, 17);
+  g_assert_cmpint (y_ppem, ==, 19);
+  hb_font_set_ppem (subfont, 10, 12);
+  x_ppem = y_ppem = 13;
+  hb_font_get_ppem (subfont, &x_ppem, &y_ppem);
+  g_assert_cmpint (x_ppem, ==, 10);
+  g_assert_cmpint (y_ppem, ==, 12);
+  x_ppem = y_ppem = 13;
+  hb_font_get_ppem (font, &x_ppem, &y_ppem);
+  g_assert_cmpint (x_ppem, ==, 17);
+  g_assert_cmpint (y_ppem, ==, 19);
+
+  hb_font_destroy (subfont);
+}
+
+int
+main (int argc, char **argv)
+{
+  hb_test_init (&argc, &argv);
+
+  hb_test_add (test_face_empty);
+  hb_test_add (test_face_create);
+  hb_test_add (test_face_createfortables);
+
+  hb_test_add (test_fontfuncs_empty);
+  hb_test_add (test_fontfuncs_nil);
+  hb_test_add (test_fontfuncs_subclassing);
+
+  hb_test_add (test_font_empty);
+  hb_test_add (test_font_properties);
+
+  return hb_test_run();
+}
diff --git a/test/api/test-object.c b/test/api/test-object.c
new file mode 100644 (file)
index 0000000..3afe6ae
--- /dev/null
@@ -0,0 +1,379 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-test.h"
+
+/* Unit tests for hb-object-private.h */
+
+
+static void *
+create_blob (void)
+{
+  static char data[] = "test data";
+  return hb_blob_create (data, sizeof (data), HB_MEMORY_MODE_READONLY, NULL, NULL);
+}
+static void *
+create_blob_inert (void)
+{
+  return hb_blob_create (NULL, 0, HB_MEMORY_MODE_DUPLICATE, NULL, NULL);
+}
+
+static void *
+create_buffer (void)
+{
+  return hb_buffer_create ();
+}
+static void *
+create_buffer_inert (void)
+{
+  return NULL;
+}
+
+static void *
+create_set (void)
+{
+  return hb_set_create ();
+}
+static void *
+create_set_inert (void)
+{
+  return NULL;
+}
+
+static void *
+create_face (void)
+{
+  hb_blob_t *blob = (hb_blob_t *) create_blob ();
+  hb_face_t *face = hb_face_create (blob, 0);
+  hb_blob_destroy (blob);
+  return face;
+}
+static void *
+create_face_inert (void)
+{
+  return hb_face_create (hb_blob_get_empty (), 0);
+}
+
+static void *
+create_font (void)
+{
+  hb_face_t *face = (hb_face_t *) create_face ();
+  hb_font_t *font = hb_font_create (face);
+  hb_face_destroy (face);
+  return font;
+}
+static void *
+create_font_inert (void)
+{
+  return hb_font_create (hb_face_get_empty ());
+}
+
+static void *
+create_font_funcs (void)
+{
+  return hb_font_funcs_create ();
+}
+static void *
+create_font_funcs_inert (void)
+{
+  return NULL;
+}
+
+static void *
+create_unicode_funcs (void)
+{
+  return hb_unicode_funcs_create (NULL);
+}
+static void *
+create_unicode_funcs_inert (void)
+{
+  return hb_unicode_funcs_get_default ();
+}
+
+
+
+typedef void     *(*create_func_t)         (void);
+typedef void     *(*reference_func_t)      (void *obj);
+typedef void      (*destroy_func_t)        (void *obj);
+typedef hb_bool_t (*set_user_data_func_t)  (void *obj, hb_user_data_key_t *key, void *data, hb_destroy_func_t destroy, hb_bool_t replace);
+typedef void *    (*get_user_data_func_t)  (void *obj, hb_user_data_key_t *key);
+typedef void      (*make_immutable_func_t) (void *obj);
+typedef hb_bool_t (*is_immutable_func_t)   (void *obj);
+
+typedef struct {
+  create_func_t          create;
+  create_func_t          create_inert;
+  create_func_t          get_empty;
+  reference_func_t       reference;
+  destroy_func_t         destroy;
+  set_user_data_func_t   set_user_data;
+  get_user_data_func_t   get_user_data;
+  make_immutable_func_t  make_immutable;
+  is_immutable_func_t    is_immutable;
+  const char            *name;
+} object_t;
+
+#define OBJECT_WITHOUT_IMMUTABILITY(name) \
+  { \
+    (create_func_t)         create_##name, \
+    (create_func_t)         create_##name##_inert, \
+    (create_func_t)         hb_##name##_get_empty, \
+    (reference_func_t)      hb_##name##_reference, \
+    (destroy_func_t)        hb_##name##_destroy, \
+    (set_user_data_func_t)  hb_##name##_set_user_data, \
+    (get_user_data_func_t)  hb_##name##_get_user_data, \
+    (make_immutable_func_t) NULL, \
+    (is_immutable_func_t)   NULL, \
+    #name, \
+  }
+#define OBJECT_WITH_IMMUTABILITY(name) \
+  { \
+    (create_func_t)         create_##name, \
+    (create_func_t)         create_##name##_inert, \
+    (create_func_t)         hb_##name##_get_empty, \
+    (reference_func_t)      hb_##name##_reference, \
+    (destroy_func_t)        hb_##name##_destroy, \
+    (set_user_data_func_t)  hb_##name##_set_user_data, \
+    (get_user_data_func_t)  hb_##name##_get_user_data, \
+    (make_immutable_func_t) hb_##name##_make_immutable, \
+    (is_immutable_func_t)   hb_##name##_is_immutable, \
+    #name, \
+  }
+static const object_t objects[] =
+{
+  OBJECT_WITHOUT_IMMUTABILITY (buffer),
+  OBJECT_WITHOUT_IMMUTABILITY (set),
+  OBJECT_WITH_IMMUTABILITY (blob),
+  OBJECT_WITH_IMMUTABILITY (face),
+  OBJECT_WITH_IMMUTABILITY (font),
+  OBJECT_WITH_IMMUTABILITY (font_funcs),
+  OBJECT_WITH_IMMUTABILITY (unicode_funcs)
+};
+#undef OBJECT
+
+
+#define MAGIC0 0x12345678
+#define MAGIC1 0x76543210
+
+typedef struct {
+  int value;
+  gboolean freed;
+} data_t;
+
+static int global_data;
+
+static void global_free_up (void *p G_GNUC_UNUSED)
+{
+  global_data++;
+}
+
+static void free_up0 (void *p)
+{
+  data_t *data = (data_t *) p;
+
+  g_assert_cmphex (data->value, ==, MAGIC0);
+  g_assert (!data->freed);
+  data->freed = TRUE;
+}
+
+static void free_up1 (void *p)
+{
+  data_t *data = (data_t *) p;
+
+  g_assert_cmphex (data->value, ==, MAGIC1);
+  g_assert (!data->freed);
+  data->freed = TRUE;
+}
+
+
+typedef struct {
+  const object_t *klass;
+  void *object;
+  hb_user_data_key_t key;
+} deadlock_test_t;
+
+static void free_deadlock_test (void *p)
+{
+  deadlock_test_t *t = (deadlock_test_t *) p;
+
+  g_assert (NULL == t->klass->get_user_data (t->object, &t->key));
+}
+
+
+static void
+test_object (void)
+{
+  unsigned int i;
+
+  for (i = 0; i < G_N_ELEMENTS (objects); i++) {
+    const object_t *o = &objects[i];
+    void *obj;
+    hb_user_data_key_t key[1001];
+
+    {
+      unsigned int j;
+      data_t data[2] = {{MAGIC0, FALSE}, {MAGIC1, FALSE}};
+      deadlock_test_t deadlock_test;
+
+      g_test_message ("Testing object %s", o->name);
+
+      g_test_message ("->create()");
+      obj = o->create ();
+      g_assert (obj);
+
+      g_assert (obj == o->reference (obj));
+      o->destroy (obj);
+
+      if (o->is_immutable)
+       g_assert (!o->is_immutable (obj));
+
+      g_assert (o->set_user_data (obj, &key[0], &data[0], free_up0, TRUE));
+      g_assert (o->get_user_data (obj, &key[0]) == &data[0]);
+
+      if (o->is_immutable) {
+       o->make_immutable (obj);
+       g_assert (o->is_immutable (obj));
+      }
+
+      /* Should still work even if object is made immutable */
+      g_assert (o->set_user_data (obj, &key[1], &data[1], free_up1, TRUE));
+      g_assert (o->get_user_data (obj, &key[1]) == &data[1]);
+
+      g_assert (!o->set_user_data (obj, NULL, &data[0], free_up0, TRUE));
+      g_assert (o->get_user_data (obj, &key[0]) == &data[0]);
+      g_assert (o->set_user_data (obj, &key[0], &data[1], NULL, TRUE));
+      g_assert (data[0].freed);
+      g_assert (o->get_user_data (obj, &key[0]) == &data[1]);
+      g_assert (!data[1].freed);
+
+      data[0].freed = FALSE;
+      g_assert (o->set_user_data (obj, &key[0], &data[0], free_up0, TRUE));
+      g_assert (!data[0].freed);
+      g_assert (o->set_user_data (obj, &key[0], NULL, NULL, TRUE));
+      g_assert (data[0].freed);
+
+      data[0].freed = FALSE;
+      global_data = 0;
+      g_assert (o->set_user_data (obj, &key[0], &data[0], free_up0, TRUE));
+      g_assert (!o->set_user_data (obj, &key[0], &data[0], free_up0, FALSE));
+      g_assert_cmpuint (global_data, ==, 0);
+      g_assert (o->set_user_data (obj, &key[0], NULL, global_free_up, TRUE));
+      g_assert_cmpuint (global_data, ==, 0);
+      g_assert (o->set_user_data (obj, &key[0], NULL, NULL, TRUE));
+      g_assert_cmpuint (global_data, ==, 1);
+
+      global_data = 0;
+      for (j = 2; j < 1000; j++)
+       g_assert (o->set_user_data (obj, &key[j], &data[j], global_free_up, TRUE));
+      for (j = 2; j < 1000; j++)
+       g_assert (o->get_user_data (obj, &key[j]) == &data[j]);
+      for (j = 100; j < 1000; j++)
+       g_assert (o->set_user_data (obj, &key[j], NULL, NULL, TRUE));
+      for (j = 2; j < 100; j++)
+       g_assert (o->get_user_data (obj, &key[j]) == &data[j]);
+      for (j = 100; j < 1000; j++)
+       g_assert (!o->get_user_data (obj, &key[j]));
+      g_assert_cmpuint (global_data, ==, 900);
+
+      /* Test set_user_data where the destroy() func calls user_data functions.
+       * Make sure it doesn't deadlock or corrupt memory. */
+      deadlock_test.klass = o;
+      deadlock_test.object = obj;
+      g_assert (o->set_user_data (obj, &deadlock_test.key, &deadlock_test, free_deadlock_test, TRUE));
+      g_assert (o->set_user_data (obj, &deadlock_test.key, NULL, NULL, TRUE));
+
+      g_assert (!data[1].freed);
+      o->destroy (obj);
+      g_assert (data[0].freed);
+      g_assert (data[1].freed);
+      g_assert_cmpuint (global_data, ==, 1000-2);
+    }
+
+    {
+      data_t data[2] = {{MAGIC0, FALSE}, {MAGIC1, FALSE}};
+
+      g_test_message ("->get_empty()");
+      obj = o->get_empty ();
+      g_assert (obj);
+
+      g_assert (obj == o->reference (obj));
+      o->destroy (obj);
+
+      if (o->is_immutable)
+       g_assert (o->is_immutable (obj));
+
+      g_assert (!o->set_user_data (obj, &key[0], &data[0], free_up0, TRUE));
+      g_assert (!o->get_user_data (obj, &key[0]));
+
+      o->destroy (obj);
+      o->destroy (obj);
+      o->destroy (obj);
+      o->destroy (obj);
+      o->destroy (obj);
+
+      g_assert (!data[0].freed);
+    }
+
+    {
+      data_t data[2] = {{MAGIC0, FALSE}, {MAGIC1, FALSE}};
+
+      g_test_message ("->create_inert()");
+      obj = o->create_inert ();
+      if (!obj)
+       continue;
+      if (obj == o->get_empty ())
+        continue; /* Tested already */
+
+      g_assert (obj == o->reference (obj));
+      o->destroy (obj);
+
+      if (o->is_immutable)
+       g_assert (o->is_immutable (obj));
+
+      g_assert (!o->set_user_data (obj, &key[0], &data[0], free_up0, TRUE));
+      g_assert (!o->get_user_data (obj, &key[0]));
+
+      o->destroy (obj);
+      o->destroy (obj);
+      o->destroy (obj);
+      o->destroy (obj);
+      o->destroy (obj);
+
+      g_assert (!data[0].freed);
+    }
+  }
+}
+
+
+int
+main (int argc, char **argv)
+{
+  hb_test_init (&argc, &argv);
+
+  hb_test_add (test_object);
+
+  return hb_test_run ();
+}
diff --git a/test/api/test-ot-tag.c b/test/api/test-ot-tag.c
new file mode 100644 (file)
index 0000000..b667c7d
--- /dev/null
@@ -0,0 +1,246 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-test.h"
+
+#include <hb-ot.h>
+
+/* Unit tests for hb-ot-tag.h */
+
+
+/* https://www.microsoft.com/typography/otspec/scripttags.htm */
+
+static void
+test_simple_tags (const char *s, hb_script_t script)
+{
+  hb_script_t tag;
+  hb_script_t t1, t2;
+
+  g_test_message ("Testing script %c%c%c%c: tag %s", HB_UNTAG (hb_script_to_iso15924_tag (script)), s);
+  tag = hb_tag_from_string (s, -1);
+
+  hb_ot_tags_from_script (script, &t1, &t2);
+
+  g_assert_cmphex (t1, ==, tag);
+  g_assert_cmphex (t2, ==, HB_OT_TAG_DEFAULT_SCRIPT);
+
+  g_assert_cmphex (hb_ot_tag_to_script (tag), ==, script);
+}
+
+static void
+test_indic_tags (const char *s1, const char *s2, hb_script_t script)
+{
+  hb_script_t tag1, tag2;
+  hb_script_t t1, t2;
+
+  g_test_message ("Testing script %c%c%c%c: new tag %s, old tag %s", HB_UNTAG (hb_script_to_iso15924_tag (script)), s1, s2);
+  tag1 = hb_tag_from_string (s1, -1);
+  tag2 = hb_tag_from_string (s2, -1);
+
+  hb_ot_tags_from_script (script, &t1, &t2);
+
+  g_assert_cmphex (t1, ==, tag1);
+  g_assert_cmphex (t2, ==, tag2);
+
+  g_assert_cmphex (hb_ot_tag_to_script (tag1), ==, script);
+  g_assert_cmphex (hb_ot_tag_to_script (tag2), ==, script);
+}
+
+static void
+test_ot_tag_script_degenerate (void)
+{
+  hb_script_t t1, t2;
+
+  g_assert_cmphex (HB_TAG_CHAR4 ("DFLT"), ==, HB_OT_TAG_DEFAULT_SCRIPT);
+
+  /* HIRAGANA and KATAKANA both map to 'kana' */
+  test_simple_tags ("kana", HB_SCRIPT_KATAKANA);
+  hb_ot_tags_from_script (HB_SCRIPT_HIRAGANA, &t1, &t2);
+  g_assert_cmphex (t1, ==, HB_TAG_CHAR4 ("kana"));
+  g_assert_cmphex (t2, ==, HB_OT_TAG_DEFAULT_SCRIPT);
+
+  test_simple_tags ("DFLT", HB_SCRIPT_INVALID);
+
+  /* Spaces are replaced */
+  g_assert_cmphex (hb_ot_tag_to_script (HB_TAG_CHAR4 ("be  ")), ==, hb_script_from_string ("Beee", -1));
+}
+
+static void
+test_ot_tag_script_simple (void)
+{
+  /* Arbitrary non-existent script */
+  test_simple_tags ("wwyz", hb_script_from_string ("wWyZ", -1));
+
+  /* These we don't really care about */
+  test_simple_tags ("zyyy", HB_SCRIPT_COMMON);
+  test_simple_tags ("zinh", HB_SCRIPT_INHERITED);
+  test_simple_tags ("zzzz", HB_SCRIPT_UNKNOWN);
+
+  test_simple_tags ("arab", HB_SCRIPT_ARABIC);
+  test_simple_tags ("copt", HB_SCRIPT_COPTIC);
+  test_simple_tags ("kana", HB_SCRIPT_KATAKANA);
+  test_simple_tags ("latn", HB_SCRIPT_LATIN);
+
+  /* These are trickier since their OT script tags have space. */
+  test_simple_tags ("lao ", HB_SCRIPT_LAO);
+  test_simple_tags ("yi  ", HB_SCRIPT_YI);
+  /* Unicode-5.0 additions */
+  test_simple_tags ("nko ", HB_SCRIPT_NKO);
+  /* Unicode-5.1 additions */
+  test_simple_tags ("vai ", HB_SCRIPT_VAI);
+
+  /* https://www.microsoft.com/typography/otspec160/scripttagsProposed.htm */
+
+  /* Unicode-5.2 additions */
+  test_simple_tags ("mtei", HB_SCRIPT_MEETEI_MAYEK);
+  /* Unicode-6.0 additions */
+  test_simple_tags ("mand", HB_SCRIPT_MANDAIC);
+}
+
+static void
+test_ot_tag_script_indic (void)
+{
+  test_indic_tags ("bng2", "beng", HB_SCRIPT_BENGALI);
+  test_indic_tags ("dev2", "deva", HB_SCRIPT_DEVANAGARI);
+  test_indic_tags ("gjr2", "gujr", HB_SCRIPT_GUJARATI);
+  test_indic_tags ("gur2", "guru", HB_SCRIPT_GURMUKHI);
+  test_indic_tags ("knd2", "knda", HB_SCRIPT_KANNADA);
+  test_indic_tags ("mlm2", "mlym", HB_SCRIPT_MALAYALAM);
+  test_indic_tags ("ory2", "orya", HB_SCRIPT_ORIYA);
+  test_indic_tags ("tml2", "taml", HB_SCRIPT_TAMIL);
+  test_indic_tags ("tel2", "telu", HB_SCRIPT_TELUGU);
+  test_indic_tags ("mym2", "mymr", HB_SCRIPT_MYANMAR);
+}
+
+
+
+/* https://www.microsoft.com/typography/otspec/languagetags.htm */
+
+static void
+test_language_two_way (const char *tag_s, const char *lang_s)
+{
+  hb_language_t lang = hb_language_from_string (lang_s, -1);
+  hb_tag_t tag = hb_tag_from_string (tag_s, -1);
+
+  g_test_message ("Testing language %s <-> tag %s", lang_s, tag_s);
+
+  g_assert_cmphex (tag, ==, hb_ot_tag_from_language (lang));
+  g_assert (lang == hb_ot_tag_to_language (tag));
+}
+
+static void
+test_tag_from_language (const char *tag_s, const char *lang_s)
+{
+  hb_language_t lang = hb_language_from_string (lang_s, -1);
+  hb_tag_t tag = hb_tag_from_string (tag_s, -1);
+
+  g_test_message ("Testing language %s -> tag %s", lang_s, tag_s);
+
+  g_assert_cmphex (tag, ==, hb_ot_tag_from_language (lang));
+}
+
+static void
+test_tag_to_language (const char *tag_s, const char *lang_s)
+{
+  hb_language_t lang = hb_language_from_string (lang_s, -1);
+  hb_tag_t tag = hb_tag_from_string (tag_s, -1);
+
+  g_test_message ("Testing tag %s -> language %s", tag_s, lang_s);
+
+  g_assert (lang == hb_ot_tag_to_language (tag));
+}
+
+static void
+test_ot_tag_language (void)
+{
+  g_assert_cmphex (HB_TAG_CHAR4 ("dflt"), ==, HB_OT_TAG_DEFAULT_LANGUAGE);
+  test_language_two_way ("dflt", NULL);
+
+  test_language_two_way ("ARA", "ar");
+
+  test_language_two_way ("AZE", "az");
+  test_tag_from_language ("AZE", "az-ir");
+  test_tag_from_language ("AZE", "az-az");
+
+  test_language_two_way ("ENG", "en");
+  test_tag_from_language ("ENG", "en_US");
+
+  test_language_two_way ("EVN", "eve");
+
+  test_language_two_way ("FAR", "fa");
+  test_tag_from_language ("FAR", "fa_IR");
+
+  test_language_two_way ("ZHH", "zh-hk"); /* Chinese (Hong Kong) */
+
+  test_tag_from_language ("ZHS", "zh"); /* Chinese */
+  test_tag_from_language ("ZHS", "zh-cn"); /* Chinese (China) */
+  test_tag_from_language ("ZHS", "zh-sg"); /* Chinese (Singapore) */
+  test_tag_from_language ("ZHT", "zh-mo"); /* Chinese (Macao) */
+  test_tag_from_language ("ZHT", "zh-tw"); /* Chinese (Taiwan) */
+  test_tag_from_language ("ZHS", "zh-Hans"); /* Chinese (Simplified) */
+  test_tag_from_language ("ZHT", "zh-Hant"); /* Chinese (Traditional) */
+  test_tag_from_language ("ZHS", "zh-xx"); /* Chinese (Other) */
+
+  test_tag_from_language ("ZHS", "zh"); /* Chinese */
+  test_tag_from_language ("ZHS", "zh-xx");
+
+  test_tag_to_language ("ZHS", "zh-Hans");
+  test_tag_to_language ("ZHT", "zh-Hant");
+  test_tag_to_language ("ZHP", "x-hbotzhp");
+
+  test_language_two_way ("ABC", "x-hbotabc");
+  test_tag_from_language ("ABC", "asdf-asdf-wer-x-hbotabc-zxc");
+  test_tag_from_language ("ABC", "asdf-asdf-wer-x-hbotabc");
+  test_tag_from_language ("ABCD", "asdf-asdf-wer-x-hbotabcd");
+
+  test_tag_from_language ("dflt", "asdf-asdf-wer-x-hbot-zxc");
+
+  test_tag_from_language ("dflt", "xy");
+  test_tag_from_language ("XYZ", "xyz"); /* Unknown ISO 639-3 */
+  test_tag_from_language ("XYZ", "xyz-qw"); /* Unknown ISO 639-3 */
+
+  /* Test that x-hbot overrides the base language */
+  test_tag_from_language ("ABC", "fa-x-hbotabc-zxc");
+  test_tag_from_language ("ABC", "fa-ir-x-hbotabc-zxc");
+  test_tag_from_language ("ABC", "zh-x-hbotabc-zxc");
+  test_tag_from_language ("ABC", "zh-cn-x-hbotabc-zxc");
+  test_tag_from_language ("ABC", "zh-xy-x-hbotabc-zxc");
+  test_tag_from_language ("ABC", "xyz-xy-x-hbotabc-zxc");
+}
+
+int
+main (int argc, char **argv)
+{
+  hb_test_init (&argc, &argv);
+
+  hb_test_add (test_ot_tag_script_degenerate);
+  hb_test_add (test_ot_tag_script_simple);
+  hb_test_add (test_ot_tag_script_indic);
+
+  hb_test_add (test_ot_tag_language);
+
+  return hb_test_run();
+}
diff --git a/test/api/test-set.c b/test/api/test-set.c
new file mode 100644 (file)
index 0000000..9634951
--- /dev/null
@@ -0,0 +1,250 @@
+/*
+ * Copyright © 2013  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-test.h"
+
+/* Unit tests for hb-set.h */
+
+
+static void
+test_empty (hb_set_t *s)
+{
+  hb_codepoint_t next = HB_SET_VALUE_INVALID;
+  g_assert_cmpint (hb_set_get_population (s), ==, 0);
+  g_assert_cmpint (hb_set_get_min (s), ==, HB_SET_VALUE_INVALID);
+  g_assert_cmpint (hb_set_get_max (s), ==, HB_SET_VALUE_INVALID);
+  g_assert (!hb_set_has (s, 13));
+  g_assert (!hb_set_next (s, &next));
+  g_assert_cmpint (next, ==, HB_SET_VALUE_INVALID);
+  g_assert (hb_set_is_empty (s));
+}
+
+static void
+test_not_empty (hb_set_t *s)
+{
+  hb_codepoint_t next = HB_SET_VALUE_INVALID;
+  g_assert_cmpint (hb_set_get_population (s), !=, 0);
+  g_assert_cmpint (hb_set_get_min (s), !=, HB_SET_VALUE_INVALID);
+  g_assert_cmpint (hb_set_get_max (s), !=, HB_SET_VALUE_INVALID);
+  g_assert (hb_set_next (s, &next));
+  g_assert_cmpint (next, !=, HB_SET_VALUE_INVALID);
+}
+
+static void
+test_set_basic (void)
+{
+  hb_set_t *s = hb_set_create ();
+
+  test_empty (s);
+  hb_set_add (s, 13);
+  test_not_empty (s);
+
+  hb_set_clear (s);
+  test_empty (s);
+
+  hb_set_add (s, 33000);
+  test_not_empty (s);
+  hb_set_clear (s);
+
+  hb_set_add_range (s, 10, 29);
+  test_not_empty (s);
+  g_assert (hb_set_has (s, 13));
+  g_assert_cmpint (hb_set_get_population (s), ==, 20);
+  g_assert_cmpint (hb_set_get_min (s), ==, 10);
+  g_assert_cmpint (hb_set_get_max (s), ==, 29);
+
+  hb_set_invert (s);
+  test_not_empty (s);
+  g_assert (!hb_set_has (s, 13));
+  g_assert_cmpint (hb_set_get_min (s), ==, 0);
+
+  hb_set_invert (s);
+  test_not_empty (s);
+  g_assert (hb_set_has (s, 13));
+  g_assert_cmpint (hb_set_get_population (s), ==, 20);
+  g_assert_cmpint (hb_set_get_min (s), ==, 10);
+  g_assert_cmpint (hb_set_get_max (s), ==, 29);
+
+  hb_set_del_range (s, 10, 18);
+  test_not_empty (s);
+  g_assert (!hb_set_has (s, 13));
+
+  hb_set_destroy (s);
+}
+
+static void
+test_set_algebra (void)
+{
+  hb_set_t *s = hb_set_create ();
+  hb_set_t *o = hb_set_create ();
+
+  hb_set_add (o, 13);
+  hb_set_add (o, 19);
+
+  test_empty (s);
+  g_assert (!hb_set_is_equal (s, o));
+  hb_set_set (s, o);
+  g_assert (hb_set_is_equal (s, o));
+  test_not_empty (s);
+  g_assert_cmpint (hb_set_get_population (s), ==, 2);
+
+  hb_set_clear (s);
+  test_empty (s);
+  hb_set_add (s, 10);
+  g_assert_cmpint (hb_set_get_population (s), ==, 1);
+  hb_set_union (s, o);
+  g_assert_cmpint (hb_set_get_population (s), ==, 3);
+  g_assert (hb_set_has (s, 10));
+  g_assert (hb_set_has (s, 13));
+
+  hb_set_clear (s);
+  test_empty (s);
+  hb_set_add_range (s, 10, 17);
+  g_assert (!hb_set_is_equal (s, o));
+  hb_set_intersect (s, o);
+  g_assert (!hb_set_is_equal (s, o));
+  test_not_empty (s);
+  g_assert_cmpint (hb_set_get_population (s), ==, 1);
+  g_assert (!hb_set_has (s, 10));
+  g_assert (hb_set_has (s, 13));
+
+  hb_set_clear (s);
+  test_empty (s);
+  hb_set_add_range (s, 10, 17);
+  g_assert (!hb_set_is_equal (s, o));
+  hb_set_subtract (s, o);
+  g_assert (!hb_set_is_equal (s, o));
+  test_not_empty (s);
+  g_assert_cmpint (hb_set_get_population (s), ==, 7);
+  g_assert (hb_set_has (s, 12));
+  g_assert (!hb_set_has (s, 13));
+  g_assert (!hb_set_has (s, 19));
+
+  hb_set_clear (s);
+  test_empty (s);
+  hb_set_add_range (s, 10, 17);
+  g_assert (!hb_set_is_equal (s, o));
+  hb_set_symmetric_difference (s, o);
+  g_assert (!hb_set_is_equal (s, o));
+  test_not_empty (s);
+  g_assert_cmpint (hb_set_get_population (s), ==, 8);
+  g_assert (hb_set_has (s, 12));
+  g_assert (!hb_set_has (s, 13));
+  g_assert (hb_set_has (s, 19));
+
+  hb_set_destroy (s);
+}
+
+static void
+test_set_iter (void)
+{
+  hb_codepoint_t next, first, last;
+  hb_set_t *s = hb_set_create ();
+
+  hb_set_add (s, 13);
+  hb_set_add_range (s, 6, 6);
+  hb_set_add_range (s, 10, 15);
+  hb_set_add (s, 20005);
+
+  test_not_empty (s);
+
+  next = HB_SET_VALUE_INVALID;
+  g_assert (hb_set_next (s, &next));
+  g_assert_cmpint (next, ==, 6);
+  g_assert (hb_set_next (s, &next));
+  g_assert_cmpint (next, ==, 10);
+  g_assert (hb_set_next (s, &next));
+  g_assert (hb_set_next (s, &next));
+  g_assert (hb_set_next (s, &next));
+  g_assert_cmpint (next, ==, 13);
+  g_assert (hb_set_next (s, &next));
+  g_assert (hb_set_next (s, &next));
+  g_assert_cmpint (next, ==, 15);
+  g_assert (hb_set_next (s, &next));
+  g_assert_cmpint (next, ==, 20005);
+  g_assert (!hb_set_next (s, &next));
+  g_assert_cmpint (next, ==, HB_SET_VALUE_INVALID);
+
+  first = last = HB_SET_VALUE_INVALID;
+  g_assert (hb_set_next_range (s, &first, &last));
+  g_assert_cmpint (first, ==, 6);
+  g_assert_cmpint (last,  ==, 6);
+  g_assert (hb_set_next_range (s, &first, &last));
+  g_assert_cmpint (first, ==, 10);
+  g_assert_cmpint (last,  ==, 15);
+  g_assert (hb_set_next_range (s, &first, &last));
+  g_assert_cmpint (first, ==, 20005);
+  g_assert_cmpint (last,  ==, 20005);
+  g_assert (!hb_set_next_range (s, &first, &last));
+  g_assert_cmpint (first, ==, HB_SET_VALUE_INVALID);
+  g_assert_cmpint (last,  ==, HB_SET_VALUE_INVALID);
+
+  hb_set_destroy (s);
+}
+
+static void
+test_set_empty (void)
+{
+  hb_set_t *b = hb_set_get_empty ();
+
+  g_assert (hb_set_get_empty ());
+  g_assert (hb_set_get_empty () == b);
+
+  g_assert (!hb_set_allocation_successful (b));
+
+  test_empty (b);
+
+  hb_set_add (b, 13);
+
+  test_empty (b);
+
+  hb_set_invert (b);
+
+  test_empty (b);
+
+  g_assert (!hb_set_allocation_successful (b));
+
+  hb_set_clear (b);
+
+  test_empty (b);
+
+  g_assert (!hb_set_allocation_successful (b));
+
+  hb_set_destroy (b);
+}
+
+int
+main (int argc, char **argv)
+{
+  hb_test_init (&argc, &argv);
+
+  hb_test_add (test_set_basic);
+  hb_test_add (test_set_algebra);
+  hb_test_add (test_set_iter);
+  hb_test_add (test_set_empty);
+
+  return hb_test_run();
+}
diff --git a/test/api/test-shape.c b/test/api/test-shape.c
new file mode 100644 (file)
index 0000000..ccf6eed
--- /dev/null
@@ -0,0 +1,165 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-test.h"
+
+/* Unit tests for hb-shape.h */
+
+/*
+ * This test provides a framework to test aspects of hb_shape() that are
+ * font-independent.  Please add tests for any feature that fits that
+ * description.
+ */
+
+/* TODO Make this test data-driven and add some real test data */
+/* TODO Test positions too. And test non-native direction.  Test commit 2e18c6dbdfb */
+
+
+static const char test_data[] = "test\0data";
+
+static hb_position_t
+glyph_h_advance_func (hb_font_t *font, void *font_data,
+                     hb_codepoint_t glyph,
+                     void *user_data)
+{
+  switch (glyph) {
+  case 1: return 10;
+  case 2: return 6;
+  case 3: return 5;
+  }
+  return 0;
+}
+
+static hb_bool_t
+glyph_func (hb_font_t *font, void *font_data,
+           hb_codepoint_t unicode, hb_codepoint_t variant_selector,
+           hb_codepoint_t *glyph,
+           void *user_data)
+{
+  switch (unicode) {
+  case 'T': *glyph = 1; return TRUE;
+  case 'e': *glyph = 2; return TRUE;
+  case 's': *glyph = 3; return TRUE;
+  }
+  return FALSE;
+}
+
+static hb_position_t
+glyph_h_kerning_func (hb_font_t *font, void *font_data,
+                     hb_codepoint_t left, hb_codepoint_t right,
+                     void *user_data)
+{
+  if (left == 1 && right == 2)
+    return -2;
+
+  return 0;
+}
+
+static const char TesT[] = "TesT";
+
+static void
+test_shape (void)
+{
+  hb_blob_t *blob;
+  hb_face_t *face;
+  hb_font_funcs_t *ffuncs;
+  hb_font_t *font;
+  hb_buffer_t *buffer;
+  unsigned int len;
+  hb_glyph_info_t *glyphs;
+  hb_glyph_position_t *positions;
+
+  blob = hb_blob_create (test_data, sizeof (test_data), HB_MEMORY_MODE_READONLY, NULL, NULL);
+  face = hb_face_create (blob, 0);
+  hb_blob_destroy (blob);
+  font = hb_font_create (face);
+  hb_face_destroy (face);
+  hb_font_set_scale (font, 10, 10);
+
+  ffuncs = hb_font_funcs_create ();
+  hb_font_funcs_set_glyph_h_advance_func (ffuncs, glyph_h_advance_func, NULL, NULL);
+  hb_font_funcs_set_glyph_func (ffuncs, glyph_func, NULL, NULL);
+  hb_font_funcs_set_glyph_h_kerning_func (ffuncs, glyph_h_kerning_func, NULL, NULL);
+  hb_font_set_funcs (font, ffuncs, NULL, NULL);
+  hb_font_funcs_destroy (ffuncs);
+
+  buffer =  hb_buffer_create ();
+  hb_buffer_set_direction (buffer, HB_DIRECTION_LTR);
+  hb_buffer_add_utf8 (buffer, TesT, 4, 0, 4);
+
+  hb_shape (font, buffer, NULL, 0);
+
+  len = hb_buffer_get_length (buffer);
+  glyphs = hb_buffer_get_glyph_infos (buffer, NULL);
+  positions = hb_buffer_get_glyph_positions (buffer, NULL);
+
+  {
+    const hb_codepoint_t output_glyphs[] = {1, 2, 3, 1};
+    const hb_position_t output_x_advances[] = {9, 5, 5, 10};
+    const hb_position_t output_x_offsets[] = {0, -1, 0, 0};
+    unsigned int i;
+    g_assert_cmpint (len, ==, 4);
+    for (i = 0; i < len; i++) {
+      g_assert_cmphex (glyphs[i].codepoint, ==, output_glyphs[i]);
+      g_assert_cmphex (glyphs[i].cluster,   ==, i);
+    }
+    for (i = 0; i < len; i++) {
+      g_assert_cmpint (output_x_advances[i], ==, positions[i].x_advance);
+      g_assert_cmpint (output_x_offsets [i], ==, positions[i].x_offset);
+      g_assert_cmpint (0, ==, positions[i].y_advance);
+      g_assert_cmpint (0, ==, positions[i].y_offset);
+    }
+  }
+
+  hb_buffer_destroy (buffer);
+  hb_font_destroy (font);
+}
+
+static void
+test_shape_list (void)
+{
+  const char **shapers = hb_shape_list_shapers ();
+
+  unsigned int i;
+  for (i = 0; shapers[i]; i++)
+    ;
+
+  g_assert_cmpint (i, >, 1);
+  g_assert (!strcmp (shapers[i - 1], "fallback"));
+}
+
+int
+main (int argc, char **argv)
+{
+  hb_test_init (&argc, &argv);
+
+  hb_test_add (test_shape);
+  /* TODO test fallback shaper */
+  /* TODO test shaper_full */
+  hb_test_add (test_shape_list);
+
+  return hb_test_run();
+}
diff --git a/test/api/test-unicode.c b/test/api/test-unicode.c
new file mode 100644 (file)
index 0000000..88f12e7
--- /dev/null
@@ -0,0 +1,937 @@
+/*
+ * Copyright © 2011  Codethink Limited
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Codethink Author(s): Ryan Lortie
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-test.h"
+
+/* Unit tests for hb-unicode.h */
+/* Unit tests for hb-glib.h */
+/* Unit tests for hb-icu.h */
+
+
+#ifdef HAVE_GLIB
+#include <hb-glib.h>
+#endif
+#ifdef HAVE_ICU
+#include <hb-icu.h>
+#endif
+
+
+/* Some useful stuff */
+
+#define MAGIC0 0x12345678
+#define MAGIC1 0x76543210
+
+typedef struct {
+  int value;
+  gboolean freed;
+} data_t;
+
+static void free_up (void *p)
+{
+  data_t *data = (data_t *) p;
+
+  g_assert (data->value == MAGIC0 || data->value == MAGIC1);
+  g_assert (!data->freed);
+  data->freed = TRUE;
+}
+
+static hb_script_t
+simple_get_script (hb_unicode_funcs_t *ufuncs,
+                   hb_codepoint_t      codepoint,
+                   void               *user_data)
+{
+  data_t *data = (data_t *) user_data;
+
+  g_assert (hb_unicode_funcs_get_parent (ufuncs) != NULL);
+  g_assert_cmphex (data->value, ==, MAGIC0);
+  g_assert (!data->freed);
+
+  if ('a' <= codepoint && codepoint <= 'z')
+    return HB_SCRIPT_LATIN;
+  else
+    return HB_SCRIPT_UNKNOWN;
+}
+
+static hb_script_t
+a_is_for_arabic_get_script (hb_unicode_funcs_t *ufuncs,
+                            hb_codepoint_t      codepoint,
+                            void               *user_data)
+{
+  data_t *data = (data_t *) user_data;
+
+  g_assert (hb_unicode_funcs_get_parent (ufuncs) != NULL);
+  g_assert_cmphex (data->value, ==, MAGIC1);
+  g_assert (!data->freed);
+
+  if (codepoint == 'a') {
+    return HB_SCRIPT_ARABIC;
+  } else {
+    hb_unicode_funcs_t *parent = hb_unicode_funcs_get_parent (ufuncs);
+
+    return hb_unicode_script (parent, codepoint);
+  }
+}
+
+
+
+/* Check all properties */
+
+/* Some of the following tables where adapted from glib/glib/tests/utf8-misc.c.
+ * The license is compatible. */
+
+typedef struct {
+  hb_codepoint_t unicode;
+  unsigned int   value;
+} test_pair_t;
+
+static const test_pair_t combining_class_tests[] =
+{
+  {   0x0020, 0 },
+  {   0x0334, 1 },
+  {   0x093C, 7 },
+  {   0x3099, 8 },
+  {   0x094D, 9 },
+  {   0x05B0, 10 },
+  {   0x05B1, 11 },
+  {   0x05B2, 12 },
+  {   0x05B3, 13 },
+  {   0x05B4, 14 },
+  {   0x05B5, 15 },
+  {   0x05B6, 16 },
+  {   0x05B7, 17 },
+  {   0x05B8, 18 },
+  {   0x05B9, 19 },
+  {   0x05BB, 20 },
+  {   0x05BC, 21 },
+  {   0x05BD, 22 },
+  {   0x05BF, 23 },
+  {   0x05C1, 24 },
+  {   0x05C2, 25 },
+  {   0xFB1E, 26 },
+  {   0x064B, 27 },
+  {   0x064C, 28 },
+  {   0x064D, 29 },
+  /* ... */
+  {   0x05AE, 228 },
+  {   0x0300, 230 },
+  {   0x302C, 232 },
+  {   0x0362, 233 },
+  {   0x0360, 234 },
+  {   0x0345, 240 },
+
+  { 0x111111, 0 }
+};
+static const test_pair_t combining_class_tests_more[] =
+{
+  /* Unicode-5.1 character additions */
+  {   0x1DCD, 234 },
+
+  /* Unicode-5.2 character additions */
+  {   0xA8E0, 230 },
+
+  /* Unicode-6.0 character additions */
+  {   0x135D, 230 },
+
+  { 0x111111, 0 }
+};
+
+static const test_pair_t eastasian_width_tests[] =
+{
+  /* Neutral */
+  {   0x0000, 1 },
+  {   0x0483, 1 },
+  {   0x0641, 1 },
+  {   0xFFFC, 1 },
+  {  0x10000, 1 },
+  {  0xE0001, 1 },
+
+  /* Narrow */
+  {   0x0020, 1 },
+  {   0x0041, 1 },
+  {   0x27E6, 1 },
+
+  /* Halfwidth */
+  {   0x20A9, 1 },
+  {   0xFF61, 1 },
+  {   0xFF69, 1 },
+  {   0xFFEE, 1 },
+
+  /* Ambiguous */
+  {   0x00A1, 1 },
+  {   0x00D8, 1 },
+  {   0x02DD, 1 },
+  {  0xE0100, 1 },
+  { 0x100000, 1 },
+
+  /* Fullwidth */
+  {   0x3000, 2 },
+  {   0xFF60, 2 },
+
+  /* Wide */
+  {   0x2329, 2 },
+  {   0x3001, 2 },
+  {   0xFE69, 2 },
+  {  0x30000, 2 },
+  {  0x3FFFD, 2 },
+
+  { 0x111111, 1 }
+};
+static const test_pair_t eastasian_width_tests_more[] =
+{
+  /* Default Wide blocks */
+  {   0x4DBF, 2 },
+  {   0x9FFF, 2 },
+  {   0xFAFF, 2 },
+  {  0x2A6DF, 2 },
+  {  0x2B73F, 2 },
+  {  0x2B81F, 2 },
+  {  0x2FA1F, 2 },
+
+  /* Uniode-5.2 character additions */
+  /* Wide */
+  {   0x115F, 2 },
+
+  /* Uniode-6.0 character additions */
+  /* Wide */
+  {  0x2B740, 2 },
+  {  0x1B000, 2 },
+
+  { 0x111111, 1 }
+};
+
+static const test_pair_t general_category_tests[] =
+{
+  {   0x000D, HB_UNICODE_GENERAL_CATEGORY_CONTROL },
+  {   0x200E, HB_UNICODE_GENERAL_CATEGORY_FORMAT },
+  {   0x0378, HB_UNICODE_GENERAL_CATEGORY_UNASSIGNED },
+  {   0xE000, HB_UNICODE_GENERAL_CATEGORY_PRIVATE_USE },
+  {   0xD800, HB_UNICODE_GENERAL_CATEGORY_SURROGATE },
+  {   0x0061, HB_UNICODE_GENERAL_CATEGORY_LOWERCASE_LETTER },
+  {   0x02B0, HB_UNICODE_GENERAL_CATEGORY_MODIFIER_LETTER },
+  {   0x3400, HB_UNICODE_GENERAL_CATEGORY_OTHER_LETTER },
+  {   0x01C5, HB_UNICODE_GENERAL_CATEGORY_TITLECASE_LETTER },
+  {   0xFF21, HB_UNICODE_GENERAL_CATEGORY_UPPERCASE_LETTER },
+  {   0x0903, HB_UNICODE_GENERAL_CATEGORY_SPACING_MARK },
+  {   0x20DD, HB_UNICODE_GENERAL_CATEGORY_ENCLOSING_MARK },
+  {   0xA806, HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK },
+  {   0xFF10, HB_UNICODE_GENERAL_CATEGORY_DECIMAL_NUMBER },
+  {   0x16EE, HB_UNICODE_GENERAL_CATEGORY_LETTER_NUMBER },
+  {   0x17F0, HB_UNICODE_GENERAL_CATEGORY_OTHER_NUMBER },
+  {   0x005F, HB_UNICODE_GENERAL_CATEGORY_CONNECT_PUNCTUATION },
+  {   0x058A, HB_UNICODE_GENERAL_CATEGORY_DASH_PUNCTUATION },
+  {   0x0F3B, HB_UNICODE_GENERAL_CATEGORY_CLOSE_PUNCTUATION },
+  {   0x2019, HB_UNICODE_GENERAL_CATEGORY_FINAL_PUNCTUATION },
+  {   0x2018, HB_UNICODE_GENERAL_CATEGORY_INITIAL_PUNCTUATION },
+  {   0x2016, HB_UNICODE_GENERAL_CATEGORY_OTHER_PUNCTUATION },
+  {   0x0F3A, HB_UNICODE_GENERAL_CATEGORY_OPEN_PUNCTUATION },
+  {   0x20A0, HB_UNICODE_GENERAL_CATEGORY_CURRENCY_SYMBOL },
+  {   0x309B, HB_UNICODE_GENERAL_CATEGORY_MODIFIER_SYMBOL },
+  {   0xFB29, HB_UNICODE_GENERAL_CATEGORY_MATH_SYMBOL },
+  {   0x00A6, HB_UNICODE_GENERAL_CATEGORY_OTHER_SYMBOL },
+  {   0x2028, HB_UNICODE_GENERAL_CATEGORY_LINE_SEPARATOR },
+  {   0x2029, HB_UNICODE_GENERAL_CATEGORY_PARAGRAPH_SEPARATOR },
+  {   0x202F, HB_UNICODE_GENERAL_CATEGORY_SPACE_SEPARATOR },
+
+  { 0x111111, HB_UNICODE_GENERAL_CATEGORY_UNASSIGNED }
+};
+static const test_pair_t general_category_tests_more[] =
+{
+  /* Unicode-5.2 character additions */
+  {  0x1F131, HB_UNICODE_GENERAL_CATEGORY_OTHER_SYMBOL },
+
+  /* Unicode-6.0 character additions */
+  {   0x0620, HB_UNICODE_GENERAL_CATEGORY_OTHER_LETTER },
+
+  { 0x111111, HB_UNICODE_GENERAL_CATEGORY_UNASSIGNED }
+};
+
+static const test_pair_t mirroring_tests[] =
+{
+  /* Some characters that do NOT mirror */
+  {   0x0020, 0x0020 },
+  {   0x0041, 0x0041 },
+  {   0x00F0, 0x00F0 },
+  {   0x27CC, 0x27CC },
+  {  0xE01EF, 0xE01EF },
+  {  0x1D7C3, 0x1D7C3 },
+  { 0x100000, 0x100000 },
+
+  /* Some characters that do mirror */
+  {   0x0029, 0x0028 },
+  {   0x0028, 0x0029 },
+  {   0x003E, 0x003C },
+  {   0x003C, 0x003E },
+  {   0x005D, 0x005B },
+  {   0x005B, 0x005D },
+  {   0x007D, 0x007B },
+  {   0x007B, 0x007D },
+  {   0x00BB, 0x00AB },
+  {   0x00AB, 0x00BB },
+  {   0x226B, 0x226A },
+  {   0x226A, 0x226B },
+  {   0x22F1, 0x22F0 },
+  {   0x22F0, 0x22F1 },
+  {   0xFF60, 0xFF5F },
+  {   0xFF5F, 0xFF60 },
+  {   0xFF63, 0xFF62 },
+  {   0xFF62, 0xFF63 },
+
+  { 0x111111, 0x111111 },
+};
+static const test_pair_t mirroring_tests_more[] =
+{
+  /* No new mirroring characters have been encoded in recent Unicode versions. */
+  { 0x111111, 0x111111 }
+};
+
+static const test_pair_t script_tests[] =
+{
+  {   0x002A, HB_SCRIPT_COMMON },
+  {   0x0670, HB_SCRIPT_INHERITED },
+  {   0x060D, HB_SCRIPT_ARABIC },
+  {   0x0559, HB_SCRIPT_ARMENIAN },
+  {   0x09CD, HB_SCRIPT_BENGALI },
+  {   0x31B6, HB_SCRIPT_BOPOMOFO },
+  {   0x13A2, HB_SCRIPT_CHEROKEE },
+  {   0x2CFD, HB_SCRIPT_COPTIC },
+  {   0x0482, HB_SCRIPT_CYRILLIC },
+  {  0x10401, HB_SCRIPT_DESERET },
+  {   0x094D, HB_SCRIPT_DEVANAGARI },
+  {   0x1258, HB_SCRIPT_ETHIOPIC },
+  {   0x10FC, HB_SCRIPT_GEORGIAN },
+  {  0x10341, HB_SCRIPT_GOTHIC },
+  {   0x0375, HB_SCRIPT_GREEK },
+  {   0x0A83, HB_SCRIPT_GUJARATI },
+  {   0x0A3C, HB_SCRIPT_GURMUKHI },
+  {   0x3005, HB_SCRIPT_HAN },
+  {   0x1100, HB_SCRIPT_HANGUL },
+  {   0x05BF, HB_SCRIPT_HEBREW },
+  {   0x309F, HB_SCRIPT_HIRAGANA },
+  {   0x0CBC, HB_SCRIPT_KANNADA },
+  {   0x30FF, HB_SCRIPT_KATAKANA },
+  {   0x17DD, HB_SCRIPT_KHMER },
+  {   0x0EDD, HB_SCRIPT_LAO },
+  {   0x0061, HB_SCRIPT_LATIN },
+  {   0x0D3D, HB_SCRIPT_MALAYALAM },
+  {   0x1843, HB_SCRIPT_MONGOLIAN },
+  {   0x1031, HB_SCRIPT_MYANMAR },
+  {   0x169C, HB_SCRIPT_OGHAM },
+  {  0x10322, HB_SCRIPT_OLD_ITALIC },
+  {   0x0B3C, HB_SCRIPT_ORIYA },
+  {   0x16EF, HB_SCRIPT_RUNIC },
+  {   0x0DBD, HB_SCRIPT_SINHALA },
+  {   0x0711, HB_SCRIPT_SYRIAC },
+  {   0x0B82, HB_SCRIPT_TAMIL },
+  {   0x0C03, HB_SCRIPT_TELUGU },
+  {   0x07B1, HB_SCRIPT_THAANA },
+  {   0x0E31, HB_SCRIPT_THAI },
+  {   0x0FD4, HB_SCRIPT_TIBETAN },
+  {   0x1401, HB_SCRIPT_CANADIAN_SYLLABICS },
+  {   0xA015, HB_SCRIPT_YI },
+  {   0x1700, HB_SCRIPT_TAGALOG },
+  {   0x1720, HB_SCRIPT_HANUNOO },
+  {   0x1740, HB_SCRIPT_BUHID },
+  {   0x1760, HB_SCRIPT_TAGBANWA },
+
+  /* Unicode-4.0 additions */
+  {   0x2800, HB_SCRIPT_BRAILLE },
+  {  0x10808, HB_SCRIPT_CYPRIOT },
+  {   0x1932, HB_SCRIPT_LIMBU },
+  {  0x10480, HB_SCRIPT_OSMANYA },
+  {  0x10450, HB_SCRIPT_SHAVIAN },
+  {  0x10000, HB_SCRIPT_LINEAR_B },
+  {   0x1950, HB_SCRIPT_TAI_LE },
+  {  0x1039F, HB_SCRIPT_UGARITIC },
+
+  /* Unicode-4.1 additions */
+  {   0x1980, HB_SCRIPT_NEW_TAI_LUE },
+  {   0x1A1F, HB_SCRIPT_BUGINESE },
+  {   0x2C00, HB_SCRIPT_GLAGOLITIC },
+  {   0x2D6F, HB_SCRIPT_TIFINAGH },
+  {   0xA800, HB_SCRIPT_SYLOTI_NAGRI },
+  {  0x103D0, HB_SCRIPT_OLD_PERSIAN },
+  {  0x10A3F, HB_SCRIPT_KHAROSHTHI },
+
+  /* Unicode-5.0 additions */
+  {   0x0378, HB_SCRIPT_UNKNOWN },
+  {   0x1B04, HB_SCRIPT_BALINESE },
+  {  0x12000, HB_SCRIPT_CUNEIFORM },
+  {  0x10900, HB_SCRIPT_PHOENICIAN },
+  {   0xA840, HB_SCRIPT_PHAGS_PA },
+  {   0x07C0, HB_SCRIPT_NKO },
+
+  /* Unicode-5.1 additions */
+  {   0xA900, HB_SCRIPT_KAYAH_LI },
+  {   0x1C00, HB_SCRIPT_LEPCHA },
+  {   0xA930, HB_SCRIPT_REJANG },
+  {   0x1B80, HB_SCRIPT_SUNDANESE },
+  {   0xA880, HB_SCRIPT_SAURASHTRA },
+  {   0xAA00, HB_SCRIPT_CHAM },
+  {   0x1C50, HB_SCRIPT_OL_CHIKI },
+  {   0xA500, HB_SCRIPT_VAI },
+  {  0x102A0, HB_SCRIPT_CARIAN },
+  {  0x10280, HB_SCRIPT_LYCIAN },
+  {  0x1093F, HB_SCRIPT_LYDIAN },
+
+  { 0x111111, HB_SCRIPT_UNKNOWN }
+};
+static const test_pair_t script_tests_more[] =
+{
+  /* Unicode-5.2 additions */
+  {  0x10B00, HB_SCRIPT_AVESTAN },
+  {   0xA6A0, HB_SCRIPT_BAMUM },
+  {  0x13000, HB_SCRIPT_EGYPTIAN_HIEROGLYPHS },
+  {  0x10840, HB_SCRIPT_IMPERIAL_ARAMAIC },
+  {  0x10B60, HB_SCRIPT_INSCRIPTIONAL_PAHLAVI },
+  {  0x10B40, HB_SCRIPT_INSCRIPTIONAL_PARTHIAN },
+  {   0xA980, HB_SCRIPT_JAVANESE },
+  {  0x11082, HB_SCRIPT_KAITHI },
+  {   0xA4D0, HB_SCRIPT_LISU },
+  {   0xABE5, HB_SCRIPT_MEETEI_MAYEK },
+  {  0x10A60, HB_SCRIPT_OLD_SOUTH_ARABIAN },
+  {  0x10C00, HB_SCRIPT_OLD_TURKIC },
+  {   0x0800, HB_SCRIPT_SAMARITAN },
+  {   0x1A20, HB_SCRIPT_TAI_THAM },
+  {   0xAA80, HB_SCRIPT_TAI_VIET },
+
+  /* Unicode-6.0 additions */
+  {   0x1BC0, HB_SCRIPT_BATAK },
+  {  0x11000, HB_SCRIPT_BRAHMI },
+  {   0x0840, HB_SCRIPT_MANDAIC },
+
+  /* Unicode-5.2 character additions */
+  {   0x1CED, HB_SCRIPT_INHERITED },
+  {   0x1400, HB_SCRIPT_CANADIAN_ABORIGINAL },
+
+  { 0x111111, HB_SCRIPT_UNKNOWN }
+};
+
+
+typedef unsigned int (*get_func_t)         (hb_unicode_funcs_t *ufuncs,
+                                           hb_codepoint_t      unicode,
+                                           void               *user_data);
+typedef unsigned int (*func_setter_func_t) (hb_unicode_funcs_t *ufuncs,
+                                           get_func_t          func,
+                                           void               *user_data,
+                                           hb_destroy_func_t   destroy);
+typedef unsigned int (*getter_func_t)      (hb_unicode_funcs_t *ufuncs,
+                                           hb_codepoint_t      unicode);
+
+typedef struct {
+  const char         *name;
+  func_setter_func_t  func_setter;
+  getter_func_t       getter;
+  const test_pair_t  *tests;
+  unsigned int        num_tests;
+  const test_pair_t  *tests_more;
+  unsigned int        num_tests_more;
+  unsigned int        default_value;
+} property_t;
+
+#define RETURNS_UNICODE_ITSELF ((unsigned int) -1)
+
+#define PROPERTY(name, DEFAULT) \
+  { \
+    #name, \
+    (func_setter_func_t) hb_unicode_funcs_set_##name##_func, \
+    (getter_func_t) hb_unicode_##name, \
+    name##_tests, \
+    G_N_ELEMENTS (name##_tests), \
+    name##_tests_more, \
+    G_N_ELEMENTS (name##_tests_more), \
+    DEFAULT \
+  }
+static const property_t properties[] =
+{
+  PROPERTY (combining_class, 0),
+  PROPERTY (eastasian_width, 1),
+  PROPERTY (general_category, (unsigned int) HB_UNICODE_GENERAL_CATEGORY_OTHER_LETTER),
+  PROPERTY (mirroring, RETURNS_UNICODE_ITSELF),
+  PROPERTY (script, (unsigned int) HB_SCRIPT_UNKNOWN)
+};
+#undef PROPERTY
+
+static void
+test_unicode_properties (gconstpointer user_data)
+{
+  hb_unicode_funcs_t *uf = (hb_unicode_funcs_t *) user_data;
+  unsigned int i, j;
+  gboolean failed = TRUE;
+
+  g_assert (hb_unicode_funcs_is_immutable (uf));
+  g_assert (hb_unicode_funcs_get_parent (uf));
+
+  for (i = 0; i < G_N_ELEMENTS (properties); i++) {
+    const property_t *p = &properties[i];
+    const test_pair_t *tests;
+
+    g_test_message ("Testing property %s", p->name);
+    tests = p->tests;
+    for (j = 0; j < p->num_tests; j++) {
+      g_test_message ("Test %s #%d: U+%04X", p->name, j, tests[j].unicode);
+      g_assert_cmphex (p->getter (uf, tests[j].unicode), ==, tests[j].value);
+    }
+    /* These tests are from Unicode 5.2 onward and older glib/ICU
+     * don't get them right.  Just warn instead of assert. */
+    tests = p->tests_more;
+    for (j = 0; j < p->num_tests_more; j++) {
+      g_test_message ("Test %s more #%d: U+%04X", p->name, j, tests[j].unicode);
+      if (p->getter (uf, tests[j].unicode) != tests[j].value) {
+       g_test_message ("Soft fail: Received %x, expected %x", p->getter (uf, tests[j].unicode), tests[j].value);
+        failed = TRUE;
+      }
+    }
+  }
+
+  if (failed)
+    g_test_message ("Some property tests failed.  You probably have an old version of one of the libraries used.");
+}
+
+static hb_codepoint_t
+default_value (hb_codepoint_t _default_value, hb_codepoint_t unicode)
+{
+  return _default_value == RETURNS_UNICODE_ITSELF ?  unicode : _default_value;
+}
+
+static void
+_test_unicode_properties_nil (hb_unicode_funcs_t *uf)
+{
+  unsigned int i, j;
+
+  for (i = 0; i < G_N_ELEMENTS (properties); i++) {
+    const property_t *p = &properties[i];
+    const test_pair_t *tests;
+
+    g_test_message ("Testing property %s", p->name);
+    tests = p->tests;
+    for (j = 0; j < p->num_tests; j++) {
+      g_test_message ("Test %s #%d: U+%04X", p->name, j, tests[j].unicode);
+      g_assert_cmphex (p->getter (uf, tests[j].unicode), ==, default_value (p->default_value, tests[j].unicode));
+    }
+    tests = p->tests_more;
+    for (j = 0; j < p->num_tests_more; j++) {
+      g_test_message ("Test %s more #%d: U+%04X", p->name, j, tests[j].unicode);
+      g_assert_cmphex (p->getter (uf, tests[j].unicode), ==, default_value (p->default_value, tests[j].unicode));
+    }
+  }
+}
+
+static void
+test_unicode_properties_nil (void)
+{
+  hb_unicode_funcs_t *uf = hb_unicode_funcs_create (NULL);
+
+  g_assert (!hb_unicode_funcs_is_immutable (uf));
+  _test_unicode_properties_nil (uf);
+
+  hb_unicode_funcs_destroy (uf);
+}
+
+static void
+test_unicode_properties_empty (void)
+{
+  hb_unicode_funcs_t *uf = hb_unicode_funcs_get_empty ();
+
+  g_assert (uf);
+  g_assert (hb_unicode_funcs_is_immutable (uf));
+  _test_unicode_properties_nil (uf);
+}
+
+
+static void
+test_unicode_chainup (void)
+{
+  hb_unicode_funcs_t *uf, *uf2;
+
+  /* Chain-up to nil */
+
+  uf = hb_unicode_funcs_create (NULL);
+  g_assert (!hb_unicode_funcs_is_immutable (uf));
+
+  uf2 = hb_unicode_funcs_create (uf);
+  g_assert (hb_unicode_funcs_is_immutable (uf));
+  hb_unicode_funcs_destroy (uf);
+
+  g_assert (!hb_unicode_funcs_is_immutable (uf2));
+  _test_unicode_properties_nil (uf2);
+
+  hb_unicode_funcs_destroy (uf2);
+
+  /* Chain-up to default */
+
+  uf = hb_unicode_funcs_create (hb_unicode_funcs_get_default ());
+  g_assert (!hb_unicode_funcs_is_immutable (uf));
+
+  uf2 = hb_unicode_funcs_create (uf);
+  g_assert (hb_unicode_funcs_is_immutable (uf));
+  hb_unicode_funcs_destroy (uf);
+
+  g_assert (!hb_unicode_funcs_is_immutable (uf2));
+  hb_unicode_funcs_make_immutable (uf2);
+  test_unicode_properties (uf2);
+
+  hb_unicode_funcs_destroy (uf2);
+
+}
+
+static void
+test_unicode_setters (void)
+{
+  hb_unicode_funcs_t *uf;
+  unsigned int i;
+
+  /* This is cruel: we use script-returning functions to test all properties,
+   * but it works. */
+
+  for (i = 0; i < G_N_ELEMENTS (properties); i++) {
+    const property_t *p = &properties[i];
+    data_t data[2] = {{MAGIC0, FALSE}, {MAGIC1, FALSE}};
+
+    g_test_message ("Testing property %s", p->name);
+
+    uf = hb_unicode_funcs_create (NULL);
+    g_assert (!hb_unicode_funcs_is_immutable (uf));
+
+    p->func_setter (uf, (get_func_t) simple_get_script, &data[0], free_up);
+
+    g_assert_cmphex (p->getter (uf, 'a'), ==, HB_SCRIPT_LATIN);
+    g_assert_cmphex (p->getter (uf, '0'), ==, HB_SCRIPT_UNKNOWN);
+
+    p->func_setter (uf, (get_func_t) NULL, NULL, NULL);
+    g_assert (data[0].freed && !data[1].freed);
+
+    g_assert (!hb_unicode_funcs_is_immutable (uf));
+    hb_unicode_funcs_make_immutable (uf);
+    g_assert (hb_unicode_funcs_is_immutable (uf));
+
+    /* Since uf is immutable now, the following setter should do nothing. */
+    p->func_setter (uf, (get_func_t) a_is_for_arabic_get_script, &data[1], free_up);
+
+    g_assert (data[0].freed && !data[1].freed);
+    hb_unicode_funcs_destroy (uf);
+    g_assert (data[0].freed && !data[1].freed);
+  }
+}
+
+
+
+typedef struct {
+  data_t data[2];
+} data_fixture_t;
+
+static void
+data_fixture_init (data_fixture_t *f, gconstpointer user_data)
+{
+  f->data[0].value = MAGIC0;
+  f->data[1].value = MAGIC1;
+}
+static void
+data_fixture_finish (data_fixture_t *f, gconstpointer user_data)
+{
+}
+
+static void
+test_unicode_subclassing_nil (data_fixture_t *f, gconstpointer user_data)
+{
+  hb_unicode_funcs_t *uf, *aa;
+
+  uf = hb_unicode_funcs_create (NULL);
+
+  aa = hb_unicode_funcs_create (uf);
+
+  hb_unicode_funcs_destroy (uf);
+
+  hb_unicode_funcs_set_script_func (aa, a_is_for_arabic_get_script,
+                                    &f->data[1], free_up);
+
+  g_assert_cmphex (hb_unicode_script (aa, 'a'), ==, HB_SCRIPT_ARABIC);
+  g_assert_cmphex (hb_unicode_script (aa, 'b'), ==, HB_SCRIPT_UNKNOWN);
+
+  g_assert (!f->data[0].freed && !f->data[1].freed);
+  hb_unicode_funcs_destroy (aa);
+  g_assert (!f->data[0].freed && f->data[1].freed);
+}
+
+static void
+test_unicode_subclassing_default (data_fixture_t *f, gconstpointer user_data)
+{
+  hb_unicode_funcs_t *uf, *aa;
+
+  uf = hb_unicode_funcs_get_default ();
+  aa = hb_unicode_funcs_create (uf);
+
+  hb_unicode_funcs_set_script_func (aa, a_is_for_arabic_get_script,
+                                    &f->data[1], free_up);
+
+  g_assert_cmphex (hb_unicode_script (aa, 'a'), ==, HB_SCRIPT_ARABIC);
+  g_assert_cmphex (hb_unicode_script (aa, 'b'), ==, HB_SCRIPT_LATIN);
+
+  g_assert (!f->data[0].freed && !f->data[1].freed);
+  hb_unicode_funcs_destroy (aa);
+  g_assert (!f->data[0].freed && f->data[1].freed);
+}
+
+static void
+test_unicode_subclassing_deep (data_fixture_t *f, gconstpointer user_data)
+{
+  hb_unicode_funcs_t *uf, *aa;
+
+  uf = hb_unicode_funcs_create (NULL);
+
+  hb_unicode_funcs_set_script_func (uf, simple_get_script,
+                                    &f->data[0], free_up);
+
+  aa = hb_unicode_funcs_create (uf);
+
+  hb_unicode_funcs_destroy (uf);
+
+  /* make sure the 'uf' didn't get freed, since 'aa' holds a ref */
+  g_assert (!f->data[0].freed);
+
+  hb_unicode_funcs_set_script_func (aa, a_is_for_arabic_get_script,
+                                    &f->data[1], free_up);
+
+  g_assert_cmphex (hb_unicode_script (aa, 'a'), ==, HB_SCRIPT_ARABIC);
+  g_assert_cmphex (hb_unicode_script (aa, 'b'), ==, HB_SCRIPT_LATIN);
+  g_assert_cmphex (hb_unicode_script (aa, '0'), ==, HB_SCRIPT_UNKNOWN);
+
+  g_assert (!f->data[0].freed && !f->data[1].freed);
+  hb_unicode_funcs_destroy (aa);
+  g_assert (f->data[0].freed && f->data[1].freed);
+}
+
+
+static hb_script_t
+script_roundtrip_default (hb_script_t script)
+{
+  return hb_script_from_iso15924_tag (hb_script_to_iso15924_tag (script));
+}
+
+#ifdef HAVE_GLIB
+static hb_script_t
+script_roundtrip_glib (hb_script_t script)
+{
+  return hb_glib_script_to_script (hb_glib_script_from_script (script));
+}
+#endif
+
+#ifdef HAVE_ICU
+static hb_script_t
+script_roundtrip_icu (hb_script_t script)
+{
+  return hb_icu_script_to_script (hb_icu_script_from_script (script));
+}
+#endif
+
+static void
+test_unicode_script_roundtrip (gconstpointer user_data)
+{
+  typedef hb_script_t (*roundtrip_func_t) (hb_script_t);
+  roundtrip_func_t roundtrip_func = (roundtrip_func_t) user_data;
+  unsigned int i;
+  gboolean failed = FALSE;
+
+  for (i = 0; i < G_N_ELEMENTS (script_tests); i++) {
+    const test_pair_t *test = &script_tests[i];
+    hb_script_t script = test->value;
+
+    g_test_message ("Test script roundtrip #%d: %x", i, script);
+    g_assert_cmphex (script, ==, roundtrip_func (script));
+  }
+  for (i = 0; i < G_N_ELEMENTS (script_tests_more); i++) {
+    const test_pair_t *test = &script_tests_more[i];
+    hb_script_t script = test->value;
+
+    g_test_message ("Test script roundtrip more #%d: %x", i, script);
+    if (script != roundtrip_func (script)) {
+      g_test_message ("Soft fail: Received %x, expected %x", roundtrip_func (script), script);
+      failed = TRUE;
+    }
+  }
+
+  g_assert_cmphex (HB_SCRIPT_INVALID, ==, roundtrip_func (HB_SCRIPT_INVALID));
+
+  if (failed)
+    g_test_message ("Some script roundtrip tests failed.  You probably have an old version of one of the libraries used.");
+}
+
+
+static void
+test_unicode_normalization (gconstpointer user_data)
+{
+  hb_unicode_funcs_t *uf = (hb_unicode_funcs_t *) user_data;
+  gunichar a, b, ab;
+  hb_codepoint_t decomposed[HB_UNICODE_MAX_DECOMPOSITION_LEN];
+
+
+  /* Test compose() */
+
+  /* Not composable */
+  g_assert (!hb_unicode_compose (uf, 0x0041, 0x0042, &ab) && ab == 0);
+  g_assert (!hb_unicode_compose (uf, 0x0041, 0, &ab) && ab == 0);
+  g_assert (!hb_unicode_compose (uf, 0x0066, 0x0069, &ab) && ab == 0);
+
+  /* Singletons should not compose */
+  g_assert (!hb_unicode_compose (uf, 0x212B, 0, &ab) && ab == 0);
+  g_assert (!hb_unicode_compose (uf, 0x00C5, 0, &ab) && ab == 0);
+  g_assert (!hb_unicode_compose (uf, 0x2126, 0, &ab) && ab == 0);
+  g_assert (!hb_unicode_compose (uf, 0x03A9, 0, &ab) && ab == 0);
+
+  /* Non-starter pairs should not compose */
+  g_assert (!hb_unicode_compose (uf, 0x0308, 0x0301, &ab) && ab == 0); /* !0x0344 */
+  g_assert (!hb_unicode_compose (uf, 0x0F71, 0x0F72, &ab) && ab == 0); /* !0x0F73 */
+
+  /* Pairs */
+  g_assert (hb_unicode_compose (uf, 0x0041, 0x030A, &ab) && ab == 0x00C5);
+  g_assert (hb_unicode_compose (uf, 0x006F, 0x0302, &ab) && ab == 0x00F4);
+  g_assert (hb_unicode_compose (uf, 0x1E63, 0x0307, &ab) && ab == 0x1E69);
+  g_assert (hb_unicode_compose (uf, 0x0073, 0x0323, &ab) && ab == 0x1E63);
+  g_assert (hb_unicode_compose (uf, 0x0064, 0x0307, &ab) && ab == 0x1E0B);
+  g_assert (hb_unicode_compose (uf, 0x0064, 0x0323, &ab) && ab == 0x1E0D);
+
+  /* Hangul */
+  g_assert (hb_unicode_compose (uf, 0xD4CC, 0x11B6, &ab) && ab == 0xD4DB);
+  g_assert (hb_unicode_compose (uf, 0x1111, 0x1171, &ab) && ab == 0xD4CC);
+  g_assert (hb_unicode_compose (uf, 0xCE20, 0x11B8, &ab) && ab == 0xCE31);
+  g_assert (hb_unicode_compose (uf, 0x110E, 0x1173, &ab) && ab == 0xCE20);
+
+
+  /* Test decompose() */
+
+  /* Not decomposable */
+  g_assert (!hb_unicode_decompose (uf, 0x0041, &a, &b) && a == 0x0041 && b == 0);
+  g_assert (!hb_unicode_decompose (uf, 0xFB01, &a, &b) && a == 0xFB01 && b == 0);
+  g_assert (!hb_unicode_decompose (uf, 0x1F1EF, &a, &b) && a == 0x1F1EF && b == 0);
+
+  /* Singletons */
+  g_assert (hb_unicode_decompose (uf, 0x212B, &a, &b) && a == 0x00C5 && b == 0);
+  g_assert (hb_unicode_decompose (uf, 0x2126, &a, &b) && a == 0x03A9 && b == 0);
+
+  /* Non-starter pairs decompose, but not compose */
+  g_assert (hb_unicode_decompose (uf, 0x0344, &a, &b) && a == 0x0308 && b == 0x0301);
+  g_assert (hb_unicode_decompose (uf, 0x0F73, &a, &b) && a == 0x0F71 && b == 0x0F72);
+
+  /* Pairs */
+  g_assert (hb_unicode_decompose (uf, 0x00C5, &a, &b) && a == 0x0041 && b == 0x030A);
+  g_assert (hb_unicode_decompose (uf, 0x00F4, &a, &b) && a == 0x006F && b == 0x0302);
+  g_assert (hb_unicode_decompose (uf, 0x1E69, &a, &b) && a == 0x1E63 && b == 0x0307);
+  g_assert (hb_unicode_decompose (uf, 0x1E63, &a, &b) && a == 0x0073 && b == 0x0323);
+  g_assert (hb_unicode_decompose (uf, 0x1E0B, &a, &b) && a == 0x0064 && b == 0x0307);
+  g_assert (hb_unicode_decompose (uf, 0x1E0D, &a, &b) && a == 0x0064 && b == 0x0323);
+
+  /* Hangul */
+  g_assert (hb_unicode_decompose (uf, 0xD4DB, &a, &b) && a == 0xD4CC && b == 0x11B6);
+  g_assert (hb_unicode_decompose (uf, 0xD4CC, &a, &b) && a == 0x1111 && b == 0x1171);
+  g_assert (hb_unicode_decompose (uf, 0xCE31, &a, &b) && a == 0xCE20 && b == 0x11B8);
+  g_assert (hb_unicode_decompose (uf, 0xCE20, &a, &b) && a == 0x110E && b == 0x1173);
+
+
+  /* Test decompose_compatibility() */
+
+  /* Not decomposable */
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x0041, decomposed) == 0);
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x1F632, decomposed) == 0);
+
+  /* Singletons */
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x00B5, decomposed) == 1 && decomposed[0] == 0x03BC);
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x03D6, decomposed) == 1 && decomposed[0] == 0x03C0);
+
+  /* Arabic compatibility */
+  g_assert (hb_unicode_decompose_compatibility (uf, 0xFB54, decomposed) == 1 && decomposed[0] == 0x067B);
+
+  /* Longest decomposition ever */
+  g_assert (18 <= HB_UNICODE_MAX_DECOMPOSITION_LEN);
+  g_assert (hb_unicode_decompose_compatibility (uf, 0xFDFA, decomposed) == 18 && decomposed[17] == 0x0645);
+
+  /* Note: we deliberately don't test characters that have canonical decompositions but no
+   * compatibility decomposition against the decompose_compatibility() function as that we
+   * leave up to implementations (for now). */
+
+  /* Spaces */
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x2002, decomposed) == 1 && decomposed[0] == 0x0020);
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x2003, decomposed) == 1 && decomposed[0] == 0x0020);
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x2004, decomposed) == 1 && decomposed[0] == 0x0020);
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x2005, decomposed) == 1 && decomposed[0] == 0x0020);
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x2006, decomposed) == 1 && decomposed[0] == 0x0020);
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x2008, decomposed) == 1 && decomposed[0] == 0x0020);
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x2009, decomposed) == 1 && decomposed[0] == 0x0020);
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x200A, decomposed) == 1 && decomposed[0] == 0x0020);
+
+  /* Pairs */
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x0587, decomposed) == 2 &&
+            decomposed[0] == 0x0565 && decomposed[1] == 0x0582);
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x2017, decomposed) == 2 &&
+            decomposed[0] == 0x0020 && decomposed[1] == 0x0333);
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x2025, decomposed) == 2 &&
+            decomposed[0] == 0x002E && decomposed[1] == 0x002E);
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x2033, decomposed) == 2 &&
+            decomposed[0] == 0x2032 && decomposed[1] == 0x2032);
+
+  /* Triples */
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x2026, decomposed) == 3 &&
+            decomposed[0] == 0x002E && decomposed[1] == 0x002E && decomposed[2] == 0x002E);
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x2034, decomposed) == 3 &&
+            decomposed[0] == 0x2032 && decomposed[1] == 0x2032 && decomposed[2] == 0x2032);
+  g_assert (hb_unicode_decompose_compatibility (uf, 0x213B, decomposed) == 3 &&
+            decomposed[0] == 0x0046 && decomposed[1] == 0x0041 && decomposed[2] == 0x0058);
+}
+
+
+
+int
+main (int argc, char **argv)
+{
+  hb_test_init (&argc, &argv);
+
+  hb_test_add (test_unicode_properties_nil);
+  hb_test_add (test_unicode_properties_empty);
+
+  hb_test_add_data_flavor (hb_unicode_funcs_get_default (),          "default", test_unicode_properties);
+  hb_test_add_data_flavor (hb_unicode_funcs_get_default (),          "default", test_unicode_normalization);
+  hb_test_add_data_flavor ((gconstpointer) script_roundtrip_default, "default", test_unicode_script_roundtrip);
+#ifdef HAVE_GLIB
+  hb_test_add_data_flavor (hb_glib_get_unicode_funcs (),             "glib",    test_unicode_properties);
+  hb_test_add_data_flavor (hb_glib_get_unicode_funcs (),             "glib",    test_unicode_normalization);
+  hb_test_add_data_flavor ((gconstpointer) script_roundtrip_glib,    "glib",    test_unicode_script_roundtrip);
+#endif
+#ifdef HAVE_ICU
+  hb_test_add_data_flavor (hb_icu_get_unicode_funcs (),              "icu",     test_unicode_properties);
+  hb_test_add_data_flavor (hb_icu_get_unicode_funcs (),              "icu",     test_unicode_normalization);
+  hb_test_add_data_flavor ((gconstpointer) script_roundtrip_icu,     "icu",     test_unicode_script_roundtrip);
+#endif
+
+  hb_test_add (test_unicode_chainup);
+
+  hb_test_add (test_unicode_setters);
+
+  hb_test_add_fixture (data_fixture, NULL, test_unicode_subclassing_nil);
+  hb_test_add_fixture (data_fixture, NULL, test_unicode_subclassing_default);
+  hb_test_add_fixture (data_fixture, NULL, test_unicode_subclassing_deep);
+
+  return hb_test_run ();
+}
diff --git a/test/api/test-version.c b/test/api/test-version.c
new file mode 100644 (file)
index 0000000..e6378b6
--- /dev/null
@@ -0,0 +1,81 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "hb-test.h"
+
+/* Unit tests for hb-version.h */
+
+
+static void
+test_version (void)
+{
+  unsigned int major, minor, micro;
+  char *s;
+
+  hb_version (&major, &minor, &micro);
+
+  g_assert_cmpint (major, ==, HB_VERSION_MAJOR);
+  g_assert_cmpint (minor, ==, HB_VERSION_MINOR);
+  g_assert_cmpint (micro, ==, HB_VERSION_MICRO);
+
+  s = g_strdup_printf ("%u.%u.%u", major, minor, micro);
+  g_assert (0 == strcmp (HB_VERSION_STRING, s));
+  g_free (s);
+  g_assert (0 == strcmp (HB_VERSION_STRING, hb_version_string ()));
+
+  g_assert (HB_VERSION_ATLEAST (major, minor, micro));
+  if (major)
+    g_assert (HB_VERSION_ATLEAST (major-1, minor, micro));
+  if (minor)
+    g_assert (HB_VERSION_ATLEAST (major, minor-1, micro));
+  if (micro)
+    g_assert (HB_VERSION_ATLEAST (major, minor, micro-1));
+  g_assert (!HB_VERSION_ATLEAST (major+1, minor, micro));
+  g_assert (!HB_VERSION_ATLEAST (major, minor+1, micro));
+  g_assert (!HB_VERSION_ATLEAST (major, minor, micro+1));
+  g_assert (!HB_VERSION_ATLEAST (major, minor, micro+1));
+
+  g_assert (hb_version_atleast (major, minor, micro));
+  if (major)
+    g_assert (hb_version_atleast (major-1, minor, micro));
+  if (minor)
+    g_assert (hb_version_atleast (major, minor-1, micro));
+  if (micro)
+    g_assert (hb_version_atleast (major, minor, micro-1));
+  g_assert (!hb_version_atleast (major+1, minor, micro));
+  g_assert (!hb_version_atleast (major, minor+1, micro));
+  g_assert (!hb_version_atleast (major, minor, micro+1));
+}
+
+int
+main (int argc, char **argv)
+{
+  hb_test_init (&argc, &argv);
+
+  hb_test_add (test_version);
+
+  return hb_test_run();
+}
diff --git a/test/shaping/Makefile.am b/test/shaping/Makefile.am
new file mode 100644 (file)
index 0000000..e2dcc98
--- /dev/null
@@ -0,0 +1,73 @@
+# Process this file with automake to produce Makefile.in
+
+NULL =
+EXTRA_DIST =
+CLEANFILES =
+DISTCLEANFILES =
+MAINTAINERCLEANFILES =
+
+manifests:
+       @$(srcdir)/hb-manifest-update "$(srcdir)/texts" "$(srcdir)/fonts" "$(srcdir)/tests"
+
+EXTRA_DIST += \
+       hb-diff \
+       hb-diff-colorize \
+       hb-diff-filter-failures \
+       hb-diff-ngrams \
+       hb-diff-stat \
+       hb-manifest-read \
+       hb-manifest-update \
+       hb-unicode-decode \
+       hb-unicode-encode \
+       hb-unicode-prettyname \
+       record-test.sh \
+       run-tests.sh \
+       texts/in-tree \
+       fonts/sha1sum \
+       $(TESTS) \
+       $(NULL)
+
+# TODO Figure out Python stuff
+EXTRA_DIST += \
+       hb_test_tools.py \
+       $(NULL)
+CLEANFILES += \
+       hb_test_tools.py[co] \
+       $(NULL)
+
+TESTS = \
+       tests/arabic-fallback-shaping.tests \
+       tests/arabic-feature-order.tests \
+       tests/context-matching.tests \
+       tests/hangul-jamo.tests \
+       tests/indic-old-spec.tests \
+       tests/indic-pref-blocking.tests \
+       tests/mongolian-variation-selector.tests \
+       tests/zero-width-marks.tests \
+       $(NULL)
+
+TEST_EXTENSIONS = \
+       .tests \
+       $(NULL)
+
+AM_TESTS_ENVIRONMENT = \
+       EXEEXT="$(EXEEXT)"; \
+       export EXEEXT; \
+       srcdir="$(srcdir)"; \
+       export srcdir; \
+       builddir="$(builddir)"; \
+       export builddir; \
+       $(NULL)
+
+if AUTOMAKE_OLDER_THAN_1_13
+TESTS_ENVIRONMENT = \
+       $(AM_TESTS_ENVIRONMENT) \
+       $(TESTS_LOG_COMPILER) \
+       $(NULL)
+endif
+
+TESTS_LOG_COMPILER = sh $(srcdir)/run-tests.sh
+
+.PHONY: manifests
+
+-include $(top_srcdir)/git.mk
diff --git a/test/shaping/Makefile.in b/test/shaping/Makefile.in
new file mode 100644 (file)
index 0000000..e5f1224
--- /dev/null
@@ -0,0 +1,888 @@
+# Makefile.in generated by automake 1.14 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# Process this file with automake to produce Makefile.in
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \  ]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs  ]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+TESTS = tests/arabic-fallback-shaping.tests \
+       tests/arabic-feature-order.tests tests/context-matching.tests \
+       tests/hangul-jamo.tests tests/indic-old-spec.tests \
+       tests/indic-pref-blocking.tests \
+       tests/mongolian-variation-selector.tests \
+       tests/zero-width-marks.tests $(am__EXEEXT_1)
+subdir = test/shaping
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
+       $(top_srcdir)/test-driver
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ax_pthread.m4 \
+       $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
+       $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+       $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+       $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+       $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+am__tty_colors_dummy = \
+  mgn= red= grn= lgn= blu= brg= std=; \
+  am__color_tests=no
+am__tty_colors = { \
+  $(am__tty_colors_dummy); \
+  if test "X$(AM_COLOR_TESTS)" = Xno; then \
+    am__color_tests=no; \
+  elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
+    am__color_tests=yes; \
+  elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
+    am__color_tests=yes; \
+  fi; \
+  if test $$am__color_tests = yes; then \
+    red='\e[0;31m'; \
+    grn='\e[0;32m'; \
+    lgn='\e[1;32m'; \
+    blu='\e[1;34m'; \
+    mgn='\e[0;35m'; \
+    brg='\e[1m'; \
+    std='\e[m'; \
+  fi; \
+}
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+    *) f=$$p;; \
+  esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+  for p in $$list; do echo "$$p $$p"; done | \
+  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+    if (++n[$$2] == $(am__install_max)) \
+      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+    END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__uninstall_files_from_dir = { \
+  test -z "$$files" \
+    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
+    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
+         $(am__cd) "$$dir" && rm -f $$files; }; \
+  }
+am__recheck_rx = ^[    ]*:recheck:[    ]*
+am__global_test_result_rx = ^[         ]*:global-test-result:[         ]*
+am__copy_in_global_log_rx = ^[         ]*:copy-in-global-log:[         ]*
+# A command that, given a newline-separated list of test names on the
+# standard input, print the name of the tests that are to be re-run
+# upon "make recheck".
+am__list_recheck_tests = $(AWK) '{ \
+  recheck = 1; \
+  while ((rc = (getline line < ($$0 ".trs"))) != 0) \
+    { \
+      if (rc < 0) \
+        { \
+          if ((getline line2 < ($$0 ".log")) < 0) \
+           recheck = 0; \
+          break; \
+        } \
+      else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \
+        { \
+          recheck = 0; \
+          break; \
+        } \
+      else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \
+        { \
+          break; \
+        } \
+    }; \
+  if (recheck) \
+    print $$0; \
+  close ($$0 ".trs"); \
+  close ($$0 ".log"); \
+}'
+# A command that, given a newline-separated list of test names on the
+# standard input, create the global log from their .trs and .log files.
+am__create_global_log = $(AWK) ' \
+function fatal(msg) \
+{ \
+  print "fatal: making $@: " msg | "cat >&2"; \
+  exit 1; \
+} \
+function rst_section(header) \
+{ \
+  print header; \
+  len = length(header); \
+  for (i = 1; i <= len; i = i + 1) \
+    printf "="; \
+  printf "\n\n"; \
+} \
+{ \
+  copy_in_global_log = 1; \
+  global_test_result = "RUN"; \
+  while ((rc = (getline line < ($$0 ".trs"))) != 0) \
+    { \
+      if (rc < 0) \
+         fatal("failed to read from " $$0 ".trs"); \
+      if (line ~ /$(am__global_test_result_rx)/) \
+        { \
+          sub("$(am__global_test_result_rx)", "", line); \
+          sub("[       ]*$$", "", line); \
+          global_test_result = line; \
+        } \
+      else if (line ~ /$(am__copy_in_global_log_rx)[nN][oO]/) \
+        copy_in_global_log = 0; \
+    }; \
+  if (copy_in_global_log) \
+    { \
+      rst_section(global_test_result ": " $$0); \
+      while ((rc = (getline line < ($$0 ".log"))) != 0) \
+      { \
+        if (rc < 0) \
+          fatal("failed to read from " $$0 ".log"); \
+        print line; \
+      }; \
+      printf "\n"; \
+    }; \
+  close ($$0 ".trs"); \
+  close ($$0 ".log"); \
+}'
+# Restructured Text title.
+am__rst_title = { sed 's/.*/   &   /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
+# Solaris 10 'make', and several other traditional 'make' implementations,
+# pass "-e" to $(SHELL), and POSIX 2008 even requires this.  Work around it
+# by disabling -e (using the XSI extension "set +e") if it's set.
+am__sh_e_setup = case $$- in *e*) set +e;; esac
+# Default flags passed to test drivers.
+am__common_driver_flags = \
+  --color-tests "$$am__color_tests" \
+  --enable-hard-errors "$$am__enable_hard_errors" \
+  --expect-failure "$$am__expect_failure"
+# To be inserted before the command running the test.  Creates the
+# directory for the log if needed.  Stores in $dir the directory
+# containing $f, in $tst the test, in $log the log.  Executes the
+# developer- defined test setup AM_TESTS_ENVIRONMENT (if any), and
+# passes TESTS_ENVIRONMENT.  Set up options for the wrapper that
+# will run the test scripts (or their associated LOG_COMPILER, if
+# thy have one).
+am__check_pre = \
+$(am__sh_e_setup);                                     \
+$(am__vpath_adj_setup) $(am__vpath_adj)                        \
+$(am__tty_colors);                                     \
+srcdir=$(srcdir); export srcdir;                       \
+case "$@" in                                           \
+  */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;;   \
+    *) am__odir=.;;                                    \
+esac;                                                  \
+test "x$$am__odir" = x"." || test -d "$$am__odir"      \
+  || $(MKDIR_P) "$$am__odir" || exit $$?;              \
+if test -f "./$$f"; then dir=./;                       \
+elif test -f "$$f"; then dir=;                         \
+else dir="$(srcdir)/"; fi;                             \
+tst=$$dir$$f; log='$@';                                \
+if test -n '$(DISABLE_HARD_ERRORS)'; then              \
+  am__enable_hard_errors=no;                           \
+else                                                   \
+  am__enable_hard_errors=yes;                          \
+fi;                                                    \
+case " $(XFAIL_TESTS) " in                             \
+  *[\ \        ]$$f[\ \        ]* | *[\ \      ]$$dir$$f[\ \   ]*) \
+    am__expect_failure=yes;;                           \
+  *)                                                   \
+    am__expect_failure=no;;                            \
+esac;                                                  \
+$(AM_TESTS_ENVIRONMENT) $(TESTS_ENVIRONMENT)
+# A shell command to get the names of the tests scripts with any registered
+# extension removed (i.e., equivalently, the names of the test logs, with
+# the '.log' extension removed).  The result is saved in the shell variable
+# '$bases'.  This honors runtime overriding of TESTS and TEST_LOGS.  Sadly,
+# we cannot use something simpler, involving e.g., "$(TEST_LOGS:.log=)",
+# since that might cause problem with VPATH rewrites for suffix-less tests.
+# See also 'test-harness-vpath-rewrite.sh' and 'test-trs-basic.sh'.
+am__set_TESTS_bases = \
+  bases='$(TEST_LOGS)'; \
+  bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
+  bases=`echo $$bases`
+RECHECK_LOGS = $(TEST_LOGS)
+AM_RECURSIVE_TARGETS = check recheck
+am__EXEEXT_1 =
+TEST_SUITE_LOG = test-suite.log
+am__test_logs1 = $(TESTS:=.log)
+am__test_logs2 = $(am__test_logs1:@EXEEXT@.log=.log)
+TEST_LOGS = $(am__test_logs2:.tests.log=.log)
+TESTS_LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
+TESTS_LOG_COMPILE = $(TESTS_LOG_COMPILER) $(AM_TESTS_LOG_FLAGS) \
+       $(TESTS_LOG_FLAGS)
+am__set_b = \
+  case '$@' in \
+    */*) \
+      case '$*' in \
+        */*) b='$*';; \
+          *) b=`echo '$@' | sed 's/\.log$$//'`; \
+       esac;; \
+    *) \
+      b='$*';; \
+  esac
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_FT_CFLAGS = @CAIRO_FT_CFLAGS@
+CAIRO_FT_LIBS = @CAIRO_FT_LIBS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CORETEXT_CFLAGS = @CORETEXT_CFLAGS@
+CORETEXT_LIBS = @CORETEXT_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
+FREETYPE_LIBS = @FREETYPE_LIBS@
+GIT = @GIT@
+GLIB_CFLAGS = @GLIB_CFLAGS@
+GLIB_LIBS = @GLIB_LIBS@
+GLIB_MKENUMS = @GLIB_MKENUMS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GRAPHITE2_CFLAGS = @GRAPHITE2_CFLAGS@
+GRAPHITE2_LIBS = @GRAPHITE2_LIBS@
+GREP = @GREP@
+GTKDOC_CHECK = @GTKDOC_CHECK@
+GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
+GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
+GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
+GTKDOC_MKPDF = @GTKDOC_MKPDF@
+GTKDOC_REBASE = @GTKDOC_REBASE@
+HB_LIBTOOL_VERSION_INFO = @HB_LIBTOOL_VERSION_INFO@
+HB_VERSION = @HB_VERSION@
+HB_VERSION_MAJOR = @HB_VERSION_MAJOR@
+HB_VERSION_MICRO = @HB_VERSION_MICRO@
+HB_VERSION_MINOR = @HB_VERSION_MINOR@
+HTML_DIR = @HTML_DIR@
+ICU_CFLAGS = @ICU_CFLAGS@
+ICU_CONFIG = @ICU_CONFIG@
+ICU_LIBS = @ICU_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@
+INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@
+INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@
+INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@
+INTROSPECTION_LIBS = @INTROSPECTION_LIBS@
+INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@
+INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@
+INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PTHREAD_CC = @PTHREAD_CC@
+PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
+PTHREAD_LIBS = @PTHREAD_LIBS@
+RAGEL = @RAGEL@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UNISCRIBE_CFLAGS = @UNISCRIBE_CFLAGS@
+UNISCRIBE_LIBS = @UNISCRIBE_LIBS@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+ax_pthread_config = @ax_pthread_config@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+NULL = 
+
+# TODO Figure out Python stuff
+EXTRA_DIST = hb-diff hb-diff-colorize hb-diff-filter-failures \
+       hb-diff-ngrams hb-diff-stat hb-manifest-read \
+       hb-manifest-update hb-unicode-decode hb-unicode-encode \
+       hb-unicode-prettyname record-test.sh run-tests.sh \
+       texts/in-tree fonts/sha1sum $(TESTS) $(NULL) hb_test_tools.py \
+       $(NULL)
+CLEANFILES = hb_test_tools.py[co] $(NULL)
+DISTCLEANFILES = 
+MAINTAINERCLEANFILES = 
+TEST_EXTENSIONS = \
+       .tests \
+       $(NULL)
+
+AM_TESTS_ENVIRONMENT = \
+       EXEEXT="$(EXEEXT)"; \
+       export EXEEXT; \
+       srcdir="$(srcdir)"; \
+       export srcdir; \
+       builddir="$(builddir)"; \
+       export builddir; \
+       $(NULL)
+
+@AUTOMAKE_OLDER_THAN_1_13_TRUE@TESTS_ENVIRONMENT = \
+@AUTOMAKE_OLDER_THAN_1_13_TRUE@        $(AM_TESTS_ENVIRONMENT) \
+@AUTOMAKE_OLDER_THAN_1_13_TRUE@        $(TESTS_LOG_COMPILER) \
+@AUTOMAKE_OLDER_THAN_1_13_TRUE@        $(NULL)
+
+TESTS_LOG_COMPILER = sh $(srcdir)/run-tests.sh
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .log .tests .tests$(EXEEXT) .trs
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+       @for dep in $?; do \
+         case '$(am__configure_deps)' in \
+           *$$dep*) \
+             ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+               && { if test -f $@; then exit 0; else break; fi; }; \
+             exit 1;; \
+         esac; \
+       done; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits test/shaping/Makefile'; \
+       $(am__cd) $(top_srcdir) && \
+         $(AUTOMAKE) --gnits test/shaping/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+       @case '$?' in \
+         *config.status*) \
+           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+         *) \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+       esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+# Recover from deleted '.trs' file; this should ensure that
+# "rm -f foo.log; make foo.trs" re-run 'foo.test', and re-create
+# both 'foo.log' and 'foo.trs'.  Break the recipe in two subshells
+# to avoid problems with "make -n".
+.log.trs:
+       rm -f $< $@
+       $(MAKE) $(AM_MAKEFLAGS) $<
+
+# Leading 'am--fnord' is there to ensure the list of targets does not
+# expand to empty, as could happen e.g. with make check TESTS=''.
+am--fnord $(TEST_LOGS) $(TEST_LOGS:.log=.trs): $(am__force_recheck)
+am--force-recheck:
+       @:
+
+$(TEST_SUITE_LOG): $(TEST_LOGS)
+       @$(am__set_TESTS_bases); \
+       am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
+       redo_bases=`for i in $$bases; do \
+                     am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
+                   done`; \
+       if test -n "$$redo_bases"; then \
+         redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \
+         redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \
+         if $(am__make_dryrun); then :; else \
+           rm -f $$redo_logs && rm -f $$redo_results || exit 1; \
+         fi; \
+       fi; \
+       if test -n "$$am__remaking_logs"; then \
+         echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
+              "recursion detected" >&2; \
+       else \
+         am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
+       fi; \
+       if $(am__make_dryrun); then :; else \
+         st=0;  \
+         errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
+         for i in $$redo_bases; do \
+           test -f $$i.trs && test -r $$i.trs \
+             || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
+           test -f $$i.log && test -r $$i.log \
+             || { echo "$$errmsg $$i.log" >&2; st=1; }; \
+         done; \
+         test $$st -eq 0 || exit 1; \
+       fi
+       @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
+       ws='[   ]'; \
+       results=`for b in $$bases; do echo $$b.trs; done`; \
+       test -n "$$results" || results=/dev/null; \
+       all=`  grep "^$$ws*:test-result:"           $$results | wc -l`; \
+       pass=` grep "^$$ws*:test-result:$$ws*PASS"  $$results | wc -l`; \
+       fail=` grep "^$$ws*:test-result:$$ws*FAIL"  $$results | wc -l`; \
+       skip=` grep "^$$ws*:test-result:$$ws*SKIP"  $$results | wc -l`; \
+       xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
+       xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
+       error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
+       if test `expr $$fail + $$xpass + $$error` -eq 0; then \
+         success=true; \
+       else \
+         success=false; \
+       fi; \
+       br='==================='; br=$$br$$br$$br$$br; \
+       result_count () \
+       { \
+           if test x"$$1" = x"--maybe-color"; then \
+             maybe_colorize=yes; \
+           elif test x"$$1" = x"--no-color"; then \
+             maybe_colorize=no; \
+           else \
+             echo "$@: invalid 'result_count' usage" >&2; exit 4; \
+           fi; \
+           shift; \
+           desc=$$1 count=$$2; \
+           if test $$maybe_colorize = yes && test $$count -gt 0; then \
+             color_start=$$3 color_end=$$std; \
+           else \
+             color_start= color_end=; \
+           fi; \
+           echo "$${color_start}# $$desc $$count$${color_end}"; \
+       }; \
+       create_testsuite_report () \
+       { \
+         result_count $$1 "TOTAL:" $$all   "$$brg"; \
+         result_count $$1 "PASS: " $$pass  "$$grn"; \
+         result_count $$1 "SKIP: " $$skip  "$$blu"; \
+         result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
+         result_count $$1 "FAIL: " $$fail  "$$red"; \
+         result_count $$1 "XPASS:" $$xpass "$$red"; \
+         result_count $$1 "ERROR:" $$error "$$mgn"; \
+       }; \
+       {                                                               \
+         echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" |       \
+           $(am__rst_title);                                           \
+         create_testsuite_report --no-color;                           \
+         echo;                                                         \
+         echo ".. contents:: :depth: 2";                               \
+         echo;                                                         \
+         for b in $$bases; do echo $$b; done                           \
+           | $(am__create_global_log);                                 \
+       } >$(TEST_SUITE_LOG).tmp || exit 1;                             \
+       mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG);                     \
+       if $$success; then                                              \
+         col="$$grn";                                                  \
+        else                                                           \
+         col="$$red";                                                  \
+         test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG);               \
+       fi;                                                             \
+       echo "$${col}$$br$${std}";                                      \
+       echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}";   \
+       echo "$${col}$$br$${std}";                                      \
+       create_testsuite_report --maybe-color;                          \
+       echo "$$col$$br$$std";                                          \
+       if $$success; then :; else                                      \
+         echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}";         \
+         if test -n "$(PACKAGE_BUGREPORT)"; then                       \
+           echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \
+         fi;                                                           \
+         echo "$$col$$br$$std";                                        \
+       fi;                                                             \
+       $$success || exit 1
+
+check-TESTS:
+       @list='$(RECHECK_LOGS)';           test -z "$$list" || rm -f $$list
+       @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list
+       @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+       @set +e; $(am__set_TESTS_bases); \
+       log_list=`for i in $$bases; do echo $$i.log; done`; \
+       trs_list=`for i in $$bases; do echo $$i.trs; done`; \
+       log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \
+       $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
+       exit $$?;
+recheck: all 
+       @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+       @set +e; $(am__set_TESTS_bases); \
+       bases=`for i in $$bases; do echo $$i; done \
+                | $(am__list_recheck_tests)` || exit 1; \
+       log_list=`for i in $$bases; do echo $$i.log; done`; \
+       log_list=`echo $$log_list`; \
+       $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) \
+               am__force_recheck=am--force-recheck \
+               TEST_LOGS="$$log_list"; \
+       exit $$?
+.tests.log:
+       @p='$<'; \
+       $(am__set_b); \
+       $(am__check_pre) $(TESTS_LOG_DRIVER) --test-name "$$f" \
+       --log-file $$b.log --trs-file $$b.trs \
+       $(am__common_driver_flags) $(AM_TESTS_LOG_DRIVER_FLAGS) $(TESTS_LOG_DRIVER_FLAGS) -- $(TESTS_LOG_COMPILE) \
+       "$$tst" $(AM_TESTS_FD_REDIRECT)
+@am__EXEEXT_TRUE@.tests$(EXEEXT).log:
+@am__EXEEXT_TRUE@      @p='$<'; \
+@am__EXEEXT_TRUE@      $(am__set_b); \
+@am__EXEEXT_TRUE@      $(am__check_pre) $(TESTS_LOG_DRIVER) --test-name "$$f" \
+@am__EXEEXT_TRUE@      --log-file $$b.log --trs-file $$b.trs \
+@am__EXEEXT_TRUE@      $(am__common_driver_flags) $(AM_TESTS_LOG_DRIVER_FLAGS) $(TESTS_LOG_DRIVER_FLAGS) -- $(TESTS_LOG_COMPILE) \
+@am__EXEEXT_TRUE@      "$$tst" $(AM_TESTS_FD_REDIRECT)
+
+distdir: $(DISTFILES)
+       @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       list='$(DISTFILES)'; \
+         dist_files=`for file in $$list; do echo $$file; done | \
+         sed -e "s|^$$srcdirstrip/||;t" \
+             -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+       case $$dist_files in \
+         */*) $(MKDIR_P) `echo "$$dist_files" | \
+                          sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+                          sort -u` ;; \
+       esac; \
+       for file in $$dist_files; do \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         if test -d $$d/$$file; then \
+           dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+           if test -d "$(distdir)/$$file"; then \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+         else \
+           test -f "$(distdir)/$$file" \
+           || cp -p $$d/$$file "$(distdir)/$$file" \
+           || exit 1; \
+         fi; \
+       done
+check-am: all-am
+       $(MAKE) $(AM_MAKEFLAGS) check-TESTS
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+       if test -z '$(STRIP)'; then \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+             install; \
+       else \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+           "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+       fi
+mostlyclean-generic:
+       -test -z "$(TEST_LOGS)" || rm -f $(TEST_LOGS)
+       -test -z "$(TEST_LOGS:.log=.trs)" || rm -f $(TEST_LOGS:.log=.trs)
+       -test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
+
+clean-generic:
+       -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+       -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+       -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+       -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+       -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: check-am install-am install-strip
+
+.PHONY: all all-am check check-TESTS check-am clean clean-generic \
+       clean-libtool cscopelist-am ctags-am distclean \
+       distclean-generic distclean-libtool distdir dvi dvi-am html \
+       html-am info info-am install install-am install-data \
+       install-data-am install-dvi install-dvi-am install-exec \
+       install-exec-am install-html install-html-am install-info \
+       install-info-am install-man install-pdf install-pdf-am \
+       install-ps install-ps-am install-strip installcheck \
+       installcheck-am installdirs maintainer-clean \
+       maintainer-clean-generic mostlyclean mostlyclean-generic \
+       mostlyclean-libtool pdf pdf-am ps ps-am recheck tags-am \
+       uninstall uninstall-am
+
+
+manifests:
+       @$(srcdir)/hb-manifest-update "$(srcdir)/texts" "$(srcdir)/fonts" "$(srcdir)/tests"
+
+.PHONY: manifests
+
+-include $(top_srcdir)/git.mk
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/test/shaping/fonts/sha1sum/226bc2deab3846f1a682085f70c67d0421014144.ttf b/test/shaping/fonts/sha1sum/226bc2deab3846f1a682085f70c67d0421014144.ttf
new file mode 100644 (file)
index 0000000..70c0c0a
Binary files /dev/null and b/test/shaping/fonts/sha1sum/226bc2deab3846f1a682085f70c67d0421014144.ttf differ
diff --git a/test/shaping/fonts/sha1sum/270b89df543a7e48e206a2d830c0e10e5265c630.ttf b/test/shaping/fonts/sha1sum/270b89df543a7e48e206a2d830c0e10e5265c630.ttf
new file mode 100644 (file)
index 0000000..fc22649
Binary files /dev/null and b/test/shaping/fonts/sha1sum/270b89df543a7e48e206a2d830c0e10e5265c630.ttf differ
diff --git a/test/shaping/fonts/sha1sum/37033cc5cf37bb223d7355153016b6ccece93b28.ttf b/test/shaping/fonts/sha1sum/37033cc5cf37bb223d7355153016b6ccece93b28.ttf
new file mode 100644 (file)
index 0000000..14defeb
Binary files /dev/null and b/test/shaping/fonts/sha1sum/37033cc5cf37bb223d7355153016b6ccece93b28.ttf differ
diff --git a/test/shaping/fonts/sha1sum/4cce528e99f600ed9c25a2b69e32eb94a03b4ae8.ttf b/test/shaping/fonts/sha1sum/4cce528e99f600ed9c25a2b69e32eb94a03b4ae8.ttf
new file mode 100644 (file)
index 0000000..dfaead7
Binary files /dev/null and b/test/shaping/fonts/sha1sum/4cce528e99f600ed9c25a2b69e32eb94a03b4ae8.ttf differ
diff --git a/test/shaping/fonts/sha1sum/57a9d9f83020155cbb1d2be1f43d82388cbecc88.ttf b/test/shaping/fonts/sha1sum/57a9d9f83020155cbb1d2be1f43d82388cbecc88.ttf
new file mode 100644 (file)
index 0000000..746fc60
Binary files /dev/null and b/test/shaping/fonts/sha1sum/57a9d9f83020155cbb1d2be1f43d82388cbecc88.ttf differ
diff --git a/test/shaping/fonts/sha1sum/757ebd573617a24aa9dfbf0b885c54875c6fe06b.ttf b/test/shaping/fonts/sha1sum/757ebd573617a24aa9dfbf0b885c54875c6fe06b.ttf
new file mode 100644 (file)
index 0000000..bbe2237
Binary files /dev/null and b/test/shaping/fonts/sha1sum/757ebd573617a24aa9dfbf0b885c54875c6fe06b.ttf differ
diff --git a/test/shaping/fonts/sha1sum/7e14e7883ed152baa158b80e207b66114c823a8b.ttf b/test/shaping/fonts/sha1sum/7e14e7883ed152baa158b80e207b66114c823a8b.ttf
new file mode 100644 (file)
index 0000000..27efd7c
Binary files /dev/null and b/test/shaping/fonts/sha1sum/7e14e7883ed152baa158b80e207b66114c823a8b.ttf differ
diff --git a/test/shaping/fonts/sha1sum/813c2f8e5512187fd982417a7fb4286728e6f4a8.ttf b/test/shaping/fonts/sha1sum/813c2f8e5512187fd982417a7fb4286728e6f4a8.ttf
new file mode 100644 (file)
index 0000000..b728b27
Binary files /dev/null and b/test/shaping/fonts/sha1sum/813c2f8e5512187fd982417a7fb4286728e6f4a8.ttf differ
diff --git a/test/shaping/fonts/sha1sum/8454d22037f892e76614e1645d066689a0200e61.ttf b/test/shaping/fonts/sha1sum/8454d22037f892e76614e1645d066689a0200e61.ttf
new file mode 100644 (file)
index 0000000..2cbb67a
Binary files /dev/null and b/test/shaping/fonts/sha1sum/8454d22037f892e76614e1645d066689a0200e61.ttf differ
diff --git a/test/shaping/fonts/sha1sum/8a9fea2a7384f2116e5b84a9b31f83be7850ce21.ttf b/test/shaping/fonts/sha1sum/8a9fea2a7384f2116e5b84a9b31f83be7850ce21.ttf
new file mode 100644 (file)
index 0000000..875c699
Binary files /dev/null and b/test/shaping/fonts/sha1sum/8a9fea2a7384f2116e5b84a9b31f83be7850ce21.ttf differ
diff --git a/test/shaping/fonts/sha1sum/MANIFEST b/test/shaping/fonts/sha1sum/MANIFEST
new file mode 100644 (file)
index 0000000..c51639b
--- /dev/null
@@ -0,0 +1,18 @@
+226bc2deab3846f1a682085f70c67d0421014144.ttf
+270b89df543a7e48e206a2d830c0e10e5265c630.ttf
+37033cc5cf37bb223d7355153016b6ccece93b28.ttf
+4cce528e99f600ed9c25a2b69e32eb94a03b4ae8.ttf
+57a9d9f83020155cbb1d2be1f43d82388cbecc88.ttf
+757ebd573617a24aa9dfbf0b885c54875c6fe06b.ttf
+7e14e7883ed152baa158b80e207b66114c823a8b.ttf
+813c2f8e5512187fd982417a7fb4286728e6f4a8.ttf
+8454d22037f892e76614e1645d066689a0200e61.ttf
+8a9fea2a7384f2116e5b84a9b31f83be7850ce21.ttf
+a919b33197965846f21074b24e30250d67277bce.ttf
+bb29ce50df2bdba2d10726427c6b7609bf460e04.ttf
+bb9473d2403488714043bcfb946c9f78b86ad627.ttf
+d629e7fedc0b350222d7987345fe61613fa3929a.ttf
+df768b9c257e0c9c35786c47cae15c46571d56be.ttf
+e207635780b42f898d58654b65098763e340f5c7.ttf
+ef86fe710cfea877bbe0dbb6946a1f88d0661031.ttf
+f499fbc23865022234775c43503bba2e63978fe1.ttf
diff --git a/test/shaping/fonts/sha1sum/a919b33197965846f21074b24e30250d67277bce.ttf b/test/shaping/fonts/sha1sum/a919b33197965846f21074b24e30250d67277bce.ttf
new file mode 100644 (file)
index 0000000..d2f116e
Binary files /dev/null and b/test/shaping/fonts/sha1sum/a919b33197965846f21074b24e30250d67277bce.ttf differ
diff --git a/test/shaping/fonts/sha1sum/bb29ce50df2bdba2d10726427c6b7609bf460e04.ttf b/test/shaping/fonts/sha1sum/bb29ce50df2bdba2d10726427c6b7609bf460e04.ttf
new file mode 100644 (file)
index 0000000..fba200f
Binary files /dev/null and b/test/shaping/fonts/sha1sum/bb29ce50df2bdba2d10726427c6b7609bf460e04.ttf differ
diff --git a/test/shaping/fonts/sha1sum/bb9473d2403488714043bcfb946c9f78b86ad627.ttf b/test/shaping/fonts/sha1sum/bb9473d2403488714043bcfb946c9f78b86ad627.ttf
new file mode 100644 (file)
index 0000000..b16dae6
Binary files /dev/null and b/test/shaping/fonts/sha1sum/bb9473d2403488714043bcfb946c9f78b86ad627.ttf differ
diff --git a/test/shaping/fonts/sha1sum/d629e7fedc0b350222d7987345fe61613fa3929a.ttf b/test/shaping/fonts/sha1sum/d629e7fedc0b350222d7987345fe61613fa3929a.ttf
new file mode 100644 (file)
index 0000000..e674a78
Binary files /dev/null and b/test/shaping/fonts/sha1sum/d629e7fedc0b350222d7987345fe61613fa3929a.ttf differ
diff --git a/test/shaping/fonts/sha1sum/df768b9c257e0c9c35786c47cae15c46571d56be.ttf b/test/shaping/fonts/sha1sum/df768b9c257e0c9c35786c47cae15c46571d56be.ttf
new file mode 100644 (file)
index 0000000..c6d8b18
Binary files /dev/null and b/test/shaping/fonts/sha1sum/df768b9c257e0c9c35786c47cae15c46571d56be.ttf differ
diff --git a/test/shaping/fonts/sha1sum/e207635780b42f898d58654b65098763e340f5c7.ttf b/test/shaping/fonts/sha1sum/e207635780b42f898d58654b65098763e340f5c7.ttf
new file mode 100644 (file)
index 0000000..d91df57
Binary files /dev/null and b/test/shaping/fonts/sha1sum/e207635780b42f898d58654b65098763e340f5c7.ttf differ
diff --git a/test/shaping/fonts/sha1sum/ef86fe710cfea877bbe0dbb6946a1f88d0661031.ttf b/test/shaping/fonts/sha1sum/ef86fe710cfea877bbe0dbb6946a1f88d0661031.ttf
new file mode 100644 (file)
index 0000000..629c470
Binary files /dev/null and b/test/shaping/fonts/sha1sum/ef86fe710cfea877bbe0dbb6946a1f88d0661031.ttf differ
diff --git a/test/shaping/fonts/sha1sum/f499fbc23865022234775c43503bba2e63978fe1.ttf b/test/shaping/fonts/sha1sum/f499fbc23865022234775c43503bba2e63978fe1.ttf
new file mode 100644 (file)
index 0000000..3c60593
Binary files /dev/null and b/test/shaping/fonts/sha1sum/f499fbc23865022234775c43503bba2e63978fe1.ttf differ
diff --git a/test/shaping/hb-diff b/test/shaping/hb-diff
new file mode 100755 (executable)
index 0000000..6a13fa2
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/python
+
+from hb_test_tools import *
+import sys, os
+
+if len (sys.argv) < 2:
+       print "usage: %s FILES..." % sys.argv[0]
+       sys.exit (1)
+
+ZipDiffer.diff_files (FileHelpers.open_file_or_stdin (f) for f in sys.argv[1:])
diff --git a/test/shaping/hb-diff-colorize b/test/shaping/hb-diff-colorize
new file mode 100755 (executable)
index 0000000..4e045d2
--- /dev/null
@@ -0,0 +1,7 @@
+#!/usr/bin/python
+
+from hb_test_tools import *
+
+formatter = ColorFormatter.Auto (sys.argv)
+colorizer = DiffColorizer (formatter=formatter)
+UtilMains.process_multiple_files (FilterHelpers.filter_printer_function_no_newline (colorizer.colorize_diff))
diff --git a/test/shaping/hb-diff-filter-failures b/test/shaping/hb-diff-filter-failures
new file mode 100755 (executable)
index 0000000..4fe218a
--- /dev/null
@@ -0,0 +1,5 @@
+#!/usr/bin/python
+
+from hb_test_tools import *
+
+UtilMains.process_multiple_files (FilterHelpers.filter_printer_function_no_newline (DiffFilters.filter_failures))
diff --git a/test/shaping/hb-diff-ngrams b/test/shaping/hb-diff-ngrams
new file mode 100755 (executable)
index 0000000..a496447
--- /dev/null
@@ -0,0 +1,5 @@
+#!/usr/bin/python
+
+from hb_test_tools import *
+
+UtilMains.process_multiple_files (DiffSinks.print_ngrams)
diff --git a/test/shaping/hb-diff-stat b/test/shaping/hb-diff-stat
new file mode 100755 (executable)
index 0000000..81626e1
--- /dev/null
@@ -0,0 +1,5 @@
+#!/usr/bin/python
+
+from hb_test_tools import *
+
+UtilMains.process_multiple_files (DiffSinks.print_stat)
diff --git a/test/shaping/hb-manifest-read b/test/shaping/hb-manifest-read
new file mode 100755 (executable)
index 0000000..f486bcc
--- /dev/null
@@ -0,0 +1,5 @@
+#!/usr/bin/python
+
+from hb_test_tools import *
+
+UtilMains.process_multiple_args (FilterHelpers.filter_printer_function (Manifest.read), mnemonic="DIR")
diff --git a/test/shaping/hb-manifest-update b/test/shaping/hb-manifest-update
new file mode 100755 (executable)
index 0000000..b963f22
--- /dev/null
@@ -0,0 +1,5 @@
+#!/usr/bin/python
+
+from hb_test_tools import *
+
+UtilMains.process_multiple_args (Manifest.update_recursive, mnemonic="DIR")
diff --git a/test/shaping/hb-unicode-decode b/test/shaping/hb-unicode-decode
new file mode 100755 (executable)
index 0000000..5b00eae
--- /dev/null
@@ -0,0 +1,5 @@
+#!/usr/bin/python
+
+from hb_test_tools import *
+
+UtilMains.filter_multiple_strings_or_stdin (Unicode.decode, "UNICODE_STRING")
diff --git a/test/shaping/hb-unicode-encode b/test/shaping/hb-unicode-encode
new file mode 100755 (executable)
index 0000000..11bf365
--- /dev/null
@@ -0,0 +1,5 @@
+#!/usr/bin/python
+
+from hb_test_tools import *
+
+UtilMains.filter_multiple_strings_or_stdin (Unicode.encode, "UNICODE_STRING", '')
diff --git a/test/shaping/hb-unicode-prettyname b/test/shaping/hb-unicode-prettyname
new file mode 100755 (executable)
index 0000000..ecc26cc
--- /dev/null
@@ -0,0 +1,6 @@
+#!/usr/bin/python
+
+from hb_test_tools import *
+
+UtilMains.filter_multiple_strings_or_stdin (Unicode.pretty_names, "UNICODE_CODEPOINTS", \
+                                           concat_separator = ' ')
diff --git a/test/shaping/hb_test_tools.py b/test/shaping/hb_test_tools.py
new file mode 100644 (file)
index 0000000..7674fdf
--- /dev/null
@@ -0,0 +1,519 @@
+#!/usr/bin/python
+
+import sys, os, re, difflib, unicodedata, errno, cgi
+from itertools import *
+
+diff_symbols = "-+=*&^%$#@!~/"
+diff_colors = ['red', 'green', 'blue']
+
+class ColorFormatter:
+
+       class Null:
+               @staticmethod
+               def start_color (c): return ''
+               @staticmethod
+               def end_color (): return ''
+               @staticmethod
+               def escape (s): return s
+               @staticmethod
+               def newline (): return '\n'
+
+       class ANSI:
+               @staticmethod
+               def start_color (c):
+                       return {
+                               'red': '\033[41;37;1m',
+                               'green': '\033[42;37;1m',
+                               'blue': '\033[44;37;1m',
+                       }[c]
+               @staticmethod
+               def end_color ():
+                       return '\033[m'
+               @staticmethod
+               def escape (s): return s
+               @staticmethod
+               def newline (): return '\n'
+
+       class HTML:
+               @staticmethod
+               def start_color (c):
+                       return '<span style="background:%s">' % c
+               @staticmethod
+               def end_color ():
+                       return '</span>'
+               @staticmethod
+               def escape (s): return cgi.escape (s)
+               @staticmethod
+               def newline (): return '<br/>\n'
+
+       @staticmethod
+       def Auto (argv = [], out = sys.stdout):
+               format = ColorFormatter.ANSI
+               if "--format" in argv:
+                       argv.remove ("--format")
+                       format = ColorFormatter.ANSI
+               if "--format=ansi" in argv:
+                       argv.remove ("--format=ansi")
+                       format = ColorFormatter.ANSI
+               if "--format=html" in argv:
+                       argv.remove ("--format=html")
+                       format = ColorFormatter.HTML
+               if "--no-format" in argv:
+                       argv.remove ("--no-format")
+                       format = ColorFormatter.Null
+               return format
+
+
+class DiffColorizer:
+
+       diff_regex = re.compile ('([a-za-z0-9_]*)([^a-za-z0-9_]?)')
+
+       def __init__ (self, formatter, colors=diff_colors, symbols=diff_symbols):
+               self.formatter = formatter
+               self.colors = colors
+               self.symbols = symbols
+
+       def colorize_lines (self, lines):
+               lines = (l if l else '' for l in lines)
+               ss = [self.diff_regex.sub (r'\1\n\2\n', l).splitlines (True) for l in lines]
+               oo = ["",""]
+               st = [False, False]
+               for l in difflib.Differ().compare (*ss):
+                       if l[0] == '?':
+                               continue
+                       if l[0] == ' ':
+                               for i in range(2):
+                                       if st[i]:
+                                               oo[i] += self.formatter.end_color ()
+                                               st[i] = False
+                               oo = [o + self.formatter.escape (l[2:]) for o in oo]
+                               continue
+                       if l[0] in self.symbols:
+                               i = self.symbols.index (l[0])
+                               if not st[i]:
+                                       oo[i] += self.formatter.start_color (self.colors[i])
+                                       st[i] = True
+                               oo[i] += self.formatter.escape (l[2:])
+                               continue
+               for i in range(2):
+                       if st[i]:
+                               oo[i] += self.formatter.end_color ()
+                               st[i] = False
+               oo = [o.replace ('\n', '') for o in oo]
+               return [s1+s2+self.formatter.newline () for (s1,s2) in zip (self.symbols, oo) if s2]
+
+       def colorize_diff (self, f):
+               lines = [None, None]
+               for l in f:
+                       if l[0] not in self.symbols:
+                               yield self.formatter.escape (l).replace ('\n', self.formatter.newline ())
+                               continue
+                       i = self.symbols.index (l[0])
+                       if lines[i]:
+                               # Flush
+                               for line in self.colorize_lines (lines):
+                                       yield line
+                               lines = [None, None]
+                       lines[i] = l[1:]
+                       if (all (lines)):
+                               # Flush
+                               for line in self.colorize_lines (lines):
+                                       yield line
+                               lines = [None, None]
+               if (any (lines)):
+                       # Flush
+                       for line in self.colorize_lines (lines):
+                               yield line
+
+
+class ZipDiffer:
+
+       @staticmethod
+       def diff_files (files, symbols=diff_symbols):
+               files = tuple (files) # in case it's a generator, copy it
+               try:
+                       for lines in izip_longest (*files):
+                               if all (lines[0] == line for line in lines[1:]):
+                                       sys.stdout.writelines ([" ", lines[0]])
+                                       continue
+
+                               for i, l in enumerate (lines):
+                                       if l:
+                                               sys.stdout.writelines ([symbols[i], l])
+               except IOError as e:
+                       if e.errno != errno.EPIPE:
+                               print >> sys.stderr, "%s: %s: %s" % (sys.argv[0], e.filename, e.strerror)
+                               sys.exit (1)
+
+
+class DiffFilters:
+
+       @staticmethod
+       def filter_failures (f):
+               for key, lines in DiffHelpers.separate_test_cases (f):
+                       lines = list (lines)
+                       if not DiffHelpers.test_passed (lines):
+                               for l in lines: yield l
+
+class Stat:
+
+       def __init__ (self):
+               self.count = 0
+               self.freq = 0
+
+       def add (self, test):
+               self.count += 1
+               self.freq += test.freq
+
+class Stats:
+
+       def __init__ (self):
+               self.passed = Stat ()
+               self.failed = Stat ()
+               self.total  = Stat ()
+
+       def add (self, test):
+               self.total.add (test)
+               if test.passed:
+                       self.passed.add (test)
+               else:
+                       self.failed.add (test)
+
+       def mean (self):
+               return float (self.passed.count) / self.total.count
+
+       def variance (self):
+               return (float (self.passed.count) / self.total.count) * \
+                      (float (self.failed.count) / self.total.count)
+
+       def stddev (self):
+               return self.variance () ** .5
+
+       def zscore (self, population):
+               """Calculate the standard score.
+                  Population is the Stats for population.
+                  Self is Stats for sample.
+                  Returns larger absolute value if sample is highly unlikely to be random.
+                  Anything outside of -3..+3 is very unlikely to be random.
+                  See: http://en.wikipedia.org/wiki/Standard_score"""
+
+               return (self.mean () - population.mean ()) / population.stddev ()
+
+
+
+
+class DiffSinks:
+
+       @staticmethod
+       def print_stat (f):
+               passed = 0
+               failed = 0
+               # XXX port to Stats, but that would really slow us down here
+               for key, lines in DiffHelpers.separate_test_cases (f):
+                       if DiffHelpers.test_passed (lines):
+                               passed += 1
+                       else:
+                               failed += 1
+               total = passed + failed
+               print "%d out of %d tests passed.  %d failed (%g%%)" % (passed, total, failed, 100. * failed / total)
+
+       @staticmethod
+       def print_ngrams (f, ns=(1,2,3)):
+               gens = tuple (Ngram.generator (n) for n in ns)
+               allstats = Stats ()
+               allgrams = {}
+               for key, lines in DiffHelpers.separate_test_cases (f):
+                       test = Test (lines)
+                       allstats.add (test)
+
+                       for gen in gens:
+                               for ngram in gen (test.unicodes):
+                                       if ngram not in allgrams:
+                                               allgrams[ngram] = Stats ()
+                                       allgrams[ngram].add (test)
+
+               importantgrams = {}
+               for ngram, stats in allgrams.iteritems ():
+                       if stats.failed.count >= 30: # for statistical reasons
+                               importantgrams[ngram] = stats
+               allgrams = importantgrams
+               del importantgrams
+
+               for ngram, stats in allgrams.iteritems ():
+                       print "zscore: %9f failed: %6d passed: %6d ngram: <%s>" % (stats.zscore (allstats), stats.failed.count, stats.passed.count, ','.join ("U+%04X" % u for u in ngram))
+
+
+
+class Test:
+
+       def __init__ (self, lines):
+               self.freq = 1
+               self.passed = True
+               self.identifier = None
+               self.text = None
+               self.unicodes = None
+               self.glyphs = None
+               for l in lines:
+                       symbol = l[0]
+                       if symbol != ' ':
+                               self.passed = False
+                       i = 1
+                       if ':' in l:
+                               i = l.index (':')
+                               if not self.identifier:
+                                       self.identifier = l[1:i]
+                               i = i + 2 # Skip colon and space
+                       j = -1
+                       if l[j] == '\n':
+                               j -= 1
+                       brackets = l[i] + l[j]
+                       l = l[i+1:-2]
+                       if brackets == '()':
+                               self.text = l
+                       elif brackets == '<>':
+                               self.unicodes = Unicode.parse (l)
+                       elif brackets == '[]':
+                               # XXX we don't handle failed tests here
+                               self.glyphs = l
+
+
+class DiffHelpers:
+
+       @staticmethod
+       def separate_test_cases (f):
+               '''Reads lines from f, and if the lines have identifiers, ie.
+                  have a colon character, groups them by identifier,
+                  yielding lists of all lines with the same identifier.'''
+
+               def identifier (l):
+                       if ':' in l[1:]:
+                               return l[1:l.index (':')]
+                       return l
+               return groupby (f, key=identifier)
+
+       @staticmethod
+       def test_passed (lines):
+               lines = list (lines)
+               # XXX This is a hack, but does the job for now.
+               if any (l.find("space+0|space+0") >= 0 for l in lines if l[0] == '+'): return True
+               if any (l.find("uni25CC") >= 0 for l in lines if l[0] == '+'): return True
+               if any (l.find("dottedcircle") >= 0 for l in lines if l[0] == '+'): return True
+               if any (l.find("glyph0") >= 0 for l in lines if l[0] == '+'): return True
+               if any (l.find("gid0") >= 0 for l in lines if l[0] == '+'): return True
+               if any (l.find("notdef") >= 0 for l in lines if l[0] == '+'): return True
+               return all (l[0] == ' ' for l in lines)
+
+
+class FilterHelpers:
+
+       @staticmethod
+       def filter_printer_function (filter_callback):
+               def printer (f):
+                       for line in filter_callback (f):
+                               print line
+               return printer
+
+       @staticmethod
+       def filter_printer_function_no_newline (filter_callback):
+               def printer (f):
+                       for line in filter_callback (f):
+                               sys.stdout.writelines ([line])
+               return printer
+
+
+class Ngram:
+
+       @staticmethod
+       def generator (n):
+
+               def gen (f):
+                       l = []
+                       for x in f:
+                               l.append (x)
+                               if len (l) == n:
+                                       yield tuple (l)
+                                       l[:1] = []
+
+               gen.n = n
+               return gen
+
+
+class UtilMains:
+
+       @staticmethod
+       def process_multiple_files (callback, mnemonic = "FILE"):
+
+               if "--help" in sys.argv:
+                       print "Usage: %s %s..." % (sys.argv[0], mnemonic)
+                       sys.exit (1)
+
+               try:
+                       files = sys.argv[1:] if len (sys.argv) > 1 else ['-']
+                       for s in files:
+                               callback (FileHelpers.open_file_or_stdin (s))
+               except IOError as e:
+                       if e.errno != errno.EPIPE:
+                               print >> sys.stderr, "%s: %s: %s" % (sys.argv[0], e.filename, e.strerror)
+                               sys.exit (1)
+
+       @staticmethod
+       def process_multiple_args (callback, mnemonic):
+
+               if len (sys.argv) == 1 or "--help" in sys.argv:
+                       print "Usage: %s %s..." % (sys.argv[0], mnemonic)
+                       sys.exit (1)
+
+               try:
+                       for s in sys.argv[1:]:
+                               callback (s)
+               except IOError as e:
+                       if e.errno != errno.EPIPE:
+                               print >> sys.stderr, "%s: %s: %s" % (sys.argv[0], e.filename, e.strerror)
+                               sys.exit (1)
+
+       @staticmethod
+       def filter_multiple_strings_or_stdin (callback, mnemonic, \
+                                             separator = " ", \
+                                             concat_separator = False):
+
+               if "--help" in sys.argv:
+                       print "Usage:\n  %s %s...\nor:\n  %s\n\nWhen called with no arguments, input is read from standard input." \
+                             % (sys.argv[0], mnemonic, sys.argv[0])
+                       sys.exit (1)
+
+               try:
+                       if len (sys.argv) == 1:
+                               while (1):
+                                       line = sys.stdin.readline ()
+                                       if not len (line):
+                                               break
+                                       if line[-1] == '\n':
+                                               line = line[:-1]
+                                       print callback (line)
+                       else:
+                               args = sys.argv[1:]
+                               if concat_separator != False:
+                                       args = [concat_separator.join (args)]
+                               print separator.join (callback (x) for x in (args))
+               except IOError as e:
+                       if e.errno != errno.EPIPE:
+                               print >> sys.stderr, "%s: %s: %s" % (sys.argv[0], e.filename, e.strerror)
+                               sys.exit (1)
+
+
+class Unicode:
+
+       @staticmethod
+       def decode (s):
+               return u','.join ("U+%04X" % ord (u) for u in unicode (s, 'utf-8')).encode ('utf-8')
+
+       @staticmethod
+       def parse (s):
+               s = re.sub (r"0[xX]", " ", s)
+               s = re.sub (r"[<+>,;&#\\xXuU\n  ]", " ", s)
+               return [int (x, 16) for x in s.split (' ') if len (x)]
+
+       @staticmethod
+       def encode (s):
+               return u''.join (unichr (x) for x in Unicode.parse (s)).encode ('utf-8')
+
+       shorthands = {
+               "ZERO WIDTH NON-JOINER": "ZWNJ",
+               "ZERO WIDTH JOINER": "ZWJ",
+               "NARROW NO-BREAK SPACE": "NNBSP",
+               "COMBINING GRAPHEME JOINER": "CGJ",
+               "LEFT-TO-RIGHT MARK": "LRM",
+               "RIGHT-TO-LEFT MARK": "RLM",
+               "LEFT-TO-RIGHT EMBEDDING": "LRE",
+               "RIGHT-TO-LEFT EMBEDDING": "RLE",
+               "POP DIRECTIONAL FORMATTING": "PDF",
+               "LEFT-TO-RIGHT OVERRIDE": "LRO",
+               "RIGHT-TO-LEFT OVERRIDE": "RLO",
+       }
+
+       @staticmethod
+       def pretty_name (u):
+               try:
+                       s = unicodedata.name (u)
+               except ValueError:
+                       return "XXX"
+               s = re.sub (".* LETTER ", "", s)
+               s = re.sub (".* VOWEL SIGN (.*)", r"\1-MATRA", s)
+               s = re.sub (".* SIGN ", "", s)
+               s = re.sub (".* COMBINING ", "", s)
+               if re.match (".* VIRAMA", s):
+                       s = "HALANT"
+               if s in Unicode.shorthands:
+                       s = Unicode.shorthands[s]
+               return s
+
+       @staticmethod
+       def pretty_names (s):
+               s = re.sub (r"[<+>\\uU]", " ", s)
+               s = re.sub (r"0[xX]", " ", s)
+               s = [unichr (int (x, 16)) for x in re.split ('[, \n]', s) if len (x)]
+               return u' + '.join (Unicode.pretty_name (x) for x in s).encode ('utf-8')
+
+
+class FileHelpers:
+
+       @staticmethod
+       def open_file_or_stdin (f):
+               if f == '-':
+                       return sys.stdin
+               return file (f)
+
+
+class Manifest:
+
+       @staticmethod
+       def read (s, strict = True):
+
+               if not os.path.exists (s):
+                       if strict:
+                               print >> sys.stderr, "%s: %s does not exist" % (sys.argv[0], s)
+                               sys.exit (1)
+                       return
+
+               s = os.path.normpath (s)
+
+               if os.path.isdir (s):
+
+                       try:
+                               m = file (os.path.join (s, "MANIFEST"))
+                               items = [x.strip () for x in m.readlines ()]
+                               for f in items:
+                                       for p in Manifest.read (os.path.join (s, f)):
+                                               yield p
+                       except IOError:
+                               if strict:
+                                       print >> sys.stderr, "%s: %s does not exist" % (sys.argv[0], os.path.join (s, "MANIFEST"))
+                                       sys.exit (1)
+                               return
+               else:
+                       yield s
+
+       @staticmethod
+       def update_recursive (s):
+
+               for dirpath, dirnames, filenames in os.walk (s, followlinks=True):
+
+                       for f in ["MANIFEST", "README", "LICENSE", "COPYING", "AUTHORS", "SOURCES", "ChangeLog"]:
+                               if f in dirnames:
+                                       dirnames.remove (f)
+                               if f in filenames:
+                                       filenames.remove (f)
+                       dirnames.sort ()
+                       filenames.sort ()
+                       ms = os.path.join (dirpath, "MANIFEST")
+                       print "  GEN    %s" % ms
+                       m = open (ms, "w")
+                       for f in filenames:
+                               print >> m, f
+                       for f in dirnames:
+                               print >> m, f
+                       for f in dirnames:
+                               Manifest.update_recursive (os.path.join (dirpath, f))
+
+if __name__ == '__main__':
+       pass
diff --git a/test/shaping/record-test.sh b/test/shaping/record-test.sh
new file mode 100755 (executable)
index 0000000..a69157f
--- /dev/null
@@ -0,0 +1,52 @@
+#!/bin/bash
+
+dir=`mktemp --directory`
+
+hb_shape=$1
+shift
+fontfile=$1
+shift
+hb_shape="$hb_shape $@"
+unicodes=`./hb-unicode-decode`
+text=`./hb-unicode-encode "$unicodes"`
+glyphs=`echo "$text" | $hb_shape "$fontfile"`
+
+cp "$fontfile" "$dir/font.ttf"
+pyftsubset \
+       --glyph-names \
+       "$dir/font.ttf" \
+       --text="$text"
+if ! test -s "$dir/font.ttf.subset"; then
+       echo "Subsetter didn't produce nonempty subset font in $dir/font.ttf.subset" >&2
+       exit 2
+fi
+
+# Verify that subset font produces same glyphs!
+glyphs_subset=`echo "$text" | $hb_shape "$dir/font.ttf.subset"`
+
+if ! test "x$glyphs" = "x$glyphs_subset"; then
+       echo "Subset font produced different glyphs!" >&2
+       echo "Perhaps font doesn't have glyph names; checking visually..." >&2
+       hb_view=${hb_shape/shape/view}
+       echo "$text" | $hb_view "$dir/font.ttf" --output-format=png --output-file="$dir/orig.png"
+       echo "$text" | $hb_view "$dir/font.ttf.subset" --output-format=png --output-file="$dir/subset.png"
+       if ! cmp "$dir/orig.png" "$dir/subset.png"; then
+               echo "Images differ.  Please inspect $dir/*.png." >&2
+               echo "$glyphs"
+               echo "$glyphs_subset"
+               exit 2
+       fi
+       echo "Yep; all good." >&2
+       rm -f "$dir/orig.png"
+       rm -f "$dir/subset.png"
+       glyphs=$glyphs_subset
+fi
+
+sha1sum=`sha1sum "$dir/font.ttf.subset" | cut -d' ' -f1`
+subset="fonts/sha1sum/$sha1sum.ttf"
+mv "$dir/font.ttf.subset" "$subset"
+
+echo "$subset:$unicodes:$glyphs"
+
+rm -f "$dir/font.ttf"
+rmdir "$dir"
diff --git a/test/shaping/run-tests.sh b/test/shaping/run-tests.sh
new file mode 100755 (executable)
index 0000000..a2cdf32
--- /dev/null
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+test "x$srcdir" = x && srcdir=.
+test "x$builddir" = x && builddir=.
+test "x$top_builddir" = x && top_builddir=../..
+
+hb_shape=$top_builddir/util/hb-shape$EXEEXT
+
+fails=0
+
+if test $# = 0; then
+       set /dev/stdin
+fi
+
+IFS=:
+for f in "$@"; do
+       echo "Running tests in $f"
+       while read fontfile unicodes glyphs_expected; do
+               echo "Testing $fontfile:$unicodes"
+               glyphs=`$srcdir/hb-unicode-encode "$unicodes" | $hb_shape "$srcdir/$fontfile"`
+               if ! test "x$glyphs" = "x$glyphs_expected"; then
+                       echo "Actual:   $glyphs" >&2
+                       echo "Expected: $glyphs_expected" >&2
+                       fails=$((fails+1))
+               fi
+       done < "$f"
+done
+
+if test $fails != 0; then
+       echo "$fails tests failed."
+       exit 1
+else
+       echo "All tests passed."
+fi
diff --git a/test/shaping/tests/arabic-fallback-shaping.tests b/test/shaping/tests/arabic-fallback-shaping.tests
new file mode 100644 (file)
index 0000000..0240448
--- /dev/null
@@ -0,0 +1 @@
+fonts/sha1sum/df768b9c257e0c9c35786c47cae15c46571d56be.ttf:U+0633,U+064F,U+0644,U+064E,U+0651,U+0627,U+0651,U+0650,U+0645,U+062A,U+06CC:[uni06CC.fina=10+1655|uni062A.medi=9+868|uni0645.init=8+1098|uni0650=2@208,0+0|uni0651=2@272,768+0|uni064E=2@944,1216+0|uni0651=2@1008,768+0|uni06440627.fina=2+1470|uni064F=0@576,-32+0|uni0633.init=0+1585]
diff --git a/test/shaping/tests/arabic-feature-order.tests b/test/shaping/tests/arabic-feature-order.tests
new file mode 100644 (file)
index 0000000..3e3cf6a
--- /dev/null
@@ -0,0 +1,3 @@
+fonts/sha1sum/813c2f8e5512187fd982417a7fb4286728e6f4a8.ttf:U+1820,U+180B:[uni2048.E81A=0+1550]
+fonts/sha1sum/8a9fea2a7384f2116e5b84a9b31f83be7850ce21.ttf:U+1820,U+180B:[uni2048.E81A=0+1550]
+fonts/sha1sum/a919b33197965846f21074b24e30250d67277bce.ttf:U+0644,U+0644,U+0647:[Lellah=0+1503]
diff --git a/test/shaping/tests/context-matching.tests b/test/shaping/tests/context-matching.tests
new file mode 100644 (file)
index 0000000..4c7d25f
--- /dev/null
@@ -0,0 +1,3 @@
+fonts/sha1sum/4cce528e99f600ed9c25a2b69e32eb94a03b4ae8.ttf:U+1A48,U+1A58,U+1A25,U+1A48,U+1A58,U+1A25,U+1A6E,U+1A63:[uni1A48=0+1212|uni1A25=0+1912|uni1A58=0+0|uni1A48=3+1212|uni1A6E=3+1212|uni1A25=3+1912|uni1A58=3+0|uni1A63=3+1212]
+fonts/sha1sum/d629e7fedc0b350222d7987345fe61613fa3929a.ttf:U+0915,U+093F,U+0915,U+093F:[ivowelsign03deva=0+530|kadeva=0+1561|ivowelsign03deva=2+530|kadeva=2+1561]
+fonts/sha1sum/f499fbc23865022234775c43503bba2e63978fe1.ttf:U+09B0,U+09CD,U+09A5,U+09CD,U+09AF,U+09C0:[gid1=0+1320|gid13=0+523|gid18=0+545]
diff --git a/test/shaping/tests/hangul-jamo.tests b/test/shaping/tests/hangul-jamo.tests
new file mode 100644 (file)
index 0000000..7c1ef6b
--- /dev/null
@@ -0,0 +1,11 @@
+[gid64252=0+920|gid64568=0+0]
+[gid3=0+920|gid4=0+0]
+win/util/hb-view.exe --viewr uniscribe
+[gid64252=0+920|gid64568=0+0]
+[gid3=0+920|gid4=0+0]
+win/util/hb-shape.exe --shaper uniscribe
+win/util/hb-view.exe --viewr uniscribe
+[gid64252=0+920|gid64568=0+0]
+[gid3=0+920|gid4=0+0]
+fonts/sha1sum/757ebd573617a24aa9dfbf0b885c54875c6fe06b.ttf:U+115F,U+11A2:[gid3=0+920|gid4=0+0]
+fonts/sha1sum/7e14e7883ed152baa158b80e207b66114c823a8b.ttf:U+11A2:[gid1=0+920]
diff --git a/test/shaping/tests/indic-old-spec.tests b/test/shaping/tests/indic-old-spec.tests
new file mode 100644 (file)
index 0000000..96e8cdd
--- /dev/null
@@ -0,0 +1,2 @@
+fonts/sha1sum/57a9d9f83020155cbb1d2be1f43d82388cbecc88.ttf:U+0C9A,U+0CCD,U+0C9A,U+0CCD:[U0C9A_U0CCD.haln=0+1066|U0C9A_0CCD.blwf=0+0]
+fonts/sha1sum/270b89df543a7e48e206a2d830c0e10e5265c630.ttf:U+0D38,U+0D4D,U+0D31,U+0D4D,U+0D31,U+0D4D:[glyph201=0+1183|U0D4D=0+0]
diff --git a/test/shaping/tests/indic-pref-blocking.tests b/test/shaping/tests/indic-pref-blocking.tests
new file mode 100644 (file)
index 0000000..260980a
--- /dev/null
@@ -0,0 +1,2 @@
+fonts/sha1sum/226bc2deab3846f1a682085f70c67d0421014144.ttf:U+0D2F,U+0D4D,U+0D30,U+0D46:[evowelsignmlym=0+1465|rapostmlym=0+499|yamlym=0+2120]
+fonts/sha1sum/e207635780b42f898d58654b65098763e340f5c7.ttf:U+0D2F,U+0D4D,U+0D30,U+0D46:[yamlym=0+2120|viramamlym=0+0|evowelsignmlym=0+1465|ramlym=0+1507]
diff --git a/test/shaping/tests/mongolian-variation-selector.tests b/test/shaping/tests/mongolian-variation-selector.tests
new file mode 100644 (file)
index 0000000..6b7e94a
--- /dev/null
@@ -0,0 +1,3 @@
+fonts/sha1sum/37033cc5cf37bb223d7355153016b6ccece93b28.ttf:U+1826,U+180B,U+1826:[uni1826.E85E_ue.init1=0+599|uni1826.E856_ue.fina=2+750]
+fonts/sha1sum/ef86fe710cfea877bbe0dbb6946a1f88d0661031.ttf:U+1820,U+180B:[uni1820.E821_a.isol1=0+1199]
+fonts/sha1sum/bb29ce50df2bdba2d10726427c6b7609bf460e04.ttf:U+183A,U+1823,U+182E,U+182B,U+1822,U+1826,U+180B,U+1832,U+180B,U+1827,U+1837,U+0020,U+182D,U+182D,U+180B,U+0020,U+182D,U+180C,U+0020,U+182D,U+180D,U+200D,U+0020,U+182D,U+200D,U+182D,U+180B,U+200D,U+0020,U+182D,U+180C,U+200D,U+0020,U+182D,U+180D,U+200D,U+0020,U+200D,U+182D,U+200D,U+200D,U+182D,U+180B,U+200D,U+0020,U+200D,U+182D,U+180C,U+200D,U+0020,U+200D,U+182D,U+180D,U+200D,U+0020,U+200D,U+182D,U+200D,U+182D,U+180B,U+0020,U+200D,U+182D,U+180C,U+0020,U+1820,U+200C,U+182D,U+1820,U+1837,U+0020,U+1830,U+1824,U+1837,U+200D,U+200D,U+182D,U+1820,U+200D,U+0020,U+200D,U+182D,U+1824,U+182F,U+1822,U+0020,U+182A,U+1820,U+1822,U+182D,U+180E,U+1820,U+202F,U+1836,U+1822,U+1828:[uni183A1823.E971_ko.init=0+950|uni182E.E904_m.medi=2+400|uni182B1822.E8A6_pi.medi=3+1150|uni1826.E854_ue.medi1=5+1100|uni1832.E916_t.medi1=7+1000|uni1827.E85C_ee.medi=9+750|uni1837.E931_r.fina=10+750|space=11+500|uni182D.E8E2_g.init=12+1000|uni182D.E8E8_g.fina1=13+1250|space=15+500|uni182D.EA1B_g.isol2=16+1000|space=18+500|uni182D.EA1E_g.init3=19+650|space=21+0|space=22+500|uni182D.E8E2_g.init=23+1000|space=24+0|uni182D.E8E5_g.medi1=25+800|space=27+0|space=28+500|uni182D.EA1D_g.init2=29+950|space=31+0|space=32+500|uni182D.EA1E_g.init3=33+650|space=35+0|space=36+500|space=37+0|uni182D.E8E4_g.medi=38+800|space=39+0|space=40+0|uni182D.E8E5_g.medi1=41+800|space=43+0|space=44+500|space=45+0|uni182D.E8E6_g.medi2=46+650|space=48+0|space=49+500|space=50+0|uni182D.E8E6_g.medi2=51+650|space=53+0|space=54+500|space=55+0|uni182D.E8E4_g.medi=56+800|space=57+0|uni182D.E8E8_g.fina1=58+1250|space=60+500|space=61+0|uni182D.E8E9_g.fina2=62+1050|space=64+500|uni1820.E820_a.isol=65+1550|space=66+0|uni182D.E8E2_g.init=67+1000|uni1820.E823_a.medi=68+400|uni1837.E931_r.fina=69+750|space=70+500|uni1830.E90B_s.init=71+850|uni1824.E844_u.medi=72+600|uni1837.E930_r.medi=73+600|space=74+0|space=75+0|uni182D.E8E5_g.medi1=76+800|uni1820.E823_a.medi=77+400|space=78+0|space=79+500|space=80+0|uni182D.E8E5_g.medi1=81+800|uni1824.E844_u.medi=82+600|uni182F.E908_l.medi=83+400|uni1822.E837_i.fina=84+600|space=85+500|uni182A1820.E875_ba.init=86+1000|uni1822.E836_i.medi2=88+1000|uni182D.E8E8_g.fina1=89+1250|space=90+0|uni1820.E827_a.fina2=91+600|uni202F.nobreak=92+500|uni1836.E92B_y.init1=93+500|uni1822.E834_i.medi=94+500|uni1828.E866_n.fina=95+850]
diff --git a/test/shaping/tests/zero-width-marks.tests b/test/shaping/tests/zero-width-marks.tests
new file mode 100644 (file)
index 0000000..be7ec96
--- /dev/null
@@ -0,0 +1,2 @@
+fonts/sha1sum/bb9473d2403488714043bcfb946c9f78b86ad627.ttf:U+1030:[circledash=0+636|u1030.med=0@-162,0+0]
+fonts/sha1sum/8454d22037f892e76614e1645d066689a0200e61.ttf:U+05E0,U+05B8,U+0591,U+05DA,U+05B0:[uni05DA05B0=3+991|uni2009=0+200|uni0591=0@75,0+0|uni05B8=0@495,0+0|uni05E0=0+683]
diff --git a/test/shaping/texts/in-tree/MANIFEST b/test/shaping/texts/in-tree/MANIFEST
new file mode 100644 (file)
index 0000000..f7a7a96
--- /dev/null
@@ -0,0 +1,9 @@
+shaper-arabic
+shaper-default
+shaper-hangul
+shaper-hebrew
+shaper-indic
+shaper-myanmar
+shaper-sea
+shaper-thai
+shaper-tibetan
diff --git a/test/shaping/texts/in-tree/shaper-arabic/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/MANIFEST
new file mode 100644 (file)
index 0000000..eb8f9ec
--- /dev/null
@@ -0,0 +1,6 @@
+script-arabic
+script-mandaic
+script-mongolian
+script-nko
+script-phags-pa
+script-syriac
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/MANIFEST
new file mode 100644 (file)
index 0000000..62e050d
--- /dev/null
@@ -0,0 +1,3 @@
+language-persian
+language-urdu
+misc
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-persian/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-persian/MANIFEST
new file mode 100644 (file)
index 0000000..a6ac235
--- /dev/null
@@ -0,0 +1 @@
+mehran.txt
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-persian/mehran.txt b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-persian/mehran.txt
new file mode 100755 (executable)
index 0000000..4be0786
--- /dev/null
@@ -0,0 +1,8 @@
+‫دَر فارسی گَچْ‌پَژْ هست. این «ی» فارسی است.‬\r
+‫حرف «ع» را به چٰهار شکلِ «ع‍» و «‍ع‍» و «‍ع» و «‌ع‌» می‌توان نشان داد.‬\r
+‫تشخیصِ اِعْ‌ًٌَُراب ناهمخوان از وظایف حروفْ‌چین است.‬\r
+‫دو اِعراب همخوان مانند « َ» و « ّ» به شکل « َّ» باهم ترکیب می‌شوند.‬\r
+‫لازم است حروف‌چین رفتار درستی با کشیدهٔ یونی‌کدی داشته باشد.‬\r
+‫مثلاً بتواند کلـمهٔ «پیِٓـــــــچ» یا حروف «ــٖٓـ» را به درستی نمایش دهد.‬\r
+‫حرف «لام» و «الف» باید به شکل لیگاتوری نمایش داده شوند.‬\r
+‫کلمهٔ «بَلَاٰ» از آزمون‌های سطح پائین حروف‌چین است.‬
\ No newline at end of file
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/MANIFEST
new file mode 100644 (file)
index 0000000..0c0a6f3
--- /dev/null
@@ -0,0 +1 @@
+crulp
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/MANIFEST
new file mode 100644 (file)
index 0000000..5786e7b
--- /dev/null
@@ -0,0 +1 @@
+ligatures
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/2grams.txt b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/2grams.txt
new file mode 100644 (file)
index 0000000..6b59920
--- /dev/null
@@ -0,0 +1,601 @@
+با
+پا
+تا
+ٹا
+ثا
+جا
+چا
+حا
+خا
+سا
+شا
+صا
+ضا
+طا
+عا
+غا
+فا
+قا
+کا
+گا
+لا
+ما
+نا
+ہا
+ھا
+یا
+تب
+ٹب
+جب
+چب
+حب
+سب
+شب
+صب
+طب
+عب
+قب
+کب
+لب
+نب
+ہب
+ھب
+ئب
+یب
+بب
+غب
+رب
+تپ
+جپ
+چپ
+ٹپ
+شپ
+غپ
+کپ
+گپ
+لپ
+مپ
+نپ
+ہپ
+ھپ
+ئپ
+یپ
+پت
+تت
+ثت
+چت
+حت
+خت
+ست
+شت
+صت
+ضت
+طت
+ظت
+عت
+غت
+فت
+قت
+کت
+گت
+لت
+مت
+نت
+ہت
+ھت
+ئت
+یت
+ٹت
+جت
+بت
+پٹ
+ٹٹ
+جٹ
+چٹ
+سٹ
+غٹ
+فٹ
+کٹ
+گٹ
+لٹ
+مٹ
+نٹ
+ہٹ
+ھٹ
+ئٹ
+یٹ
+شٹ
+تٹ
+بٹ
+حث
+عث
+لث
+نث
+ئث
+یث
+بث
+پج
+تج
+جج
+حج
+سج
+کج
+لج
+نج
+ہج
+ھج
+ئج
+یج
+گج
+بج
+پچ
+جچ
+سچ
+کچ
+مچ
+نچ
+ئچ
+تچ
+چچ
+خچ
+غچ
+یچ
+گچ
+ٹچ
+بچ
+تح
+جح
+صح
+ضح
+لح
+مح
+نح
+یح
+شح
+فح
+ئح
+بح
+ٹخ
+چخ
+سخ
+لخ
+مخ
+نخ
+ئخ
+یخ
+پخ
+بخ
+پد
+تد
+جد
+چد
+حد
+خد
+سد
+شد
+صد
+ضد
+عد
+غد
+فد
+قد
+کد
+گد
+لد
+مد
+ند
+ہد
+ئد
+ید
+بد
+پڈ
+ٹڈ
+جڈ
+چڈ
+سڈ
+گڈ
+لڈ
+مڈ
+نڈ
+ہڈ
+ئڈ
+یڈ
+کڈ
+تڈ
+بڈ
+پذ
+تذ
+جذ
+حذ
+خذ
+شذ
+عذ
+غذ
+فذ
+قذ
+کذ
+لذ
+مذ
+نذ
+ہذ
+ئذ
+یذ
+گذ
+بذ
+پر
+تر
+ٹر
+ثر
+جر
+چر
+حر
+خر
+سر
+شر
+صر
+ضر
+طر
+ظر
+عر
+غر
+فر
+قر
+کر
+گر
+لر
+مر
+نر
+ہر
+ئر
+یر
+بر
+پڑ
+تڑ
+جڑ
+چڑ
+سڑ
+غڑ
+کڑ
+گڑ
+لڑ
+مڑ
+ہڑ
+ھڑ
+یڑ
+نڑ
+بڑ
+پز
+تز
+جز
+حز
+خز
+سز
+عز
+فز
+قز
+کز
+گز
+لز
+مز
+نز
+ہز
+ئز
+یز
+ٹز
+ٹز
+غز
+بز
+پژ
+کژ
+مژ
+نژ
+ہژ
+یژ
+پس
+تس
+ٹس
+جس
+چس
+خس
+حس
+فس
+قس
+کس
+گس
+لس
+مس
+نس
+ہس
+ئس
+یس
+ھس
+عس
+سس
+بس
+تش
+ٹش
+جش
+چش
+خش
+حش
+فش
+قش
+کش
+گش
+لش
+مش
+نش
+ہش
+ئش
+یش
+ھش
+عش
+شش
+بش
+قص
+لص
+نص
+ئص
+یص
+خص
+بص
+فض
+قض
+مض
+ئض
+یض
+غض
+کض
+بض
+خط
+سط
+قط
+ئط
+یط
+جع
+شع
+ضع
+طع
+فع
+قع
+لع
+مع
+نع
+ئع
+یع
+سع
+کع
+بع
+لغ
+یغ
+بغ
+تف
+حف
+سف
+شف
+صف
+طف
+عف
+غف
+فف
+قف
+لف
+نف
+ہف
+ئف
+یف
+خف
+کف
+گف
+بف
+چق
+حق
+سق
+شق
+طق
+فق
+لق
+مق
+نق
+ہق
+ئق
+یق
+بق
+پک
+تک
+ٹک
+جک
+چک
+سک
+شک
+فک
+کک
+لک
+مک
+ہک
+ھک
+ئک
+یک
+حک
+بک
+پگ
+تگ
+جگ
+چگ
+سگ
+لگ
+نگ
+یگ
+ہگ
+مگ
+گگ
+بگ
+پل
+تل
+ٹل
+لل
+مل
+نل
+ہل
+ھل
+ئل
+یل
+خل
+ثل
+بل
+تم
+ٹم
+ثم
+جم
+چم
+خم
+سم
+شم
+صم
+ضم
+عم
+غم
+فم
+قم
+کم
+گم
+لم
+نم
+ہم
+ھم
+ئم
+یم
+بم
+پن
+تن
+ٹن
+جن
+چن
+خن
+شن
+طن
+ظن
+عن
+فن
+قن
+کن
+گن
+لن
+من
+نن
+ہن
+ھن
+ئن
+ین
+غن
+بن
+یں
+پو
+تو
+ٹو
+ثو
+جو
+چو
+حو
+خو
+سو
+ضو
+عو
+غو
+فو
+قو
+کو
+گو
+لو
+مو
+نو
+ہو
+ھو
+ئو
+یو
+بو
+ئہ
+یئہ
+بی
+پی
+تی
+ٹی
+ثی
+جی
+چی
+حی
+خی
+سی
+شی
+صی
+ضی
+طی
+ظی
+عی
+غی
+فی
+قی
+کی
+گی
+لی
+می
+نی
+ہی
+ھی
+ئی
+بے
+پے
+تے
+ٹے
+ثے
+جے
+چے
+سے
+شے
+صے
+طے
+غے
+فے
+قے
+کے
+گے
+لے
+مے
+نے
+ہے
+ھے
+ئے
+خے
+حے
+ضے
+عے
+پہ
+تہ
+ثہ
+جہ
+چہ
+خہ
+سہ
+شہ
+صہ
+ضہ
+طہ
+عہ
+غہ
+فہ
+قہ
+کہ
+گہ
+لہ
+مہ
+یہ
+ہہ
+ٹہ
+بہ
+تھ
+ٹھ
+جھ
+چھ
+کھ
+گھ
+بھ
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/3grams.txt b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/3grams.txt
new file mode 100644 (file)
index 0000000..4da97d2
--- /dev/null
@@ -0,0 +1,3415 @@
+ببا
+بپا
+بتا
+بٹا
+بجا
+بچا
+بحا
+بخا
+بسا
+بشا
+بصا
+بضا
+بطا
+بظا
+بعا
+بغا
+بفا
+بقا
+بکا
+بگا
+بلا
+بما
+بنا
+بیا
+بہا
+بھا
+پتا
+پٹا
+پجا
+پچا
+پکا
+پسا
+پشا
+پکا
+پگا
+پلا
+پنا
+پیا
+پہا
+پھا
+تبا
+تپا
+تتا
+تٹا
+تجا
+تچا
+تحا
+تخا
+تسا
+تشا
+تصا
+تضا
+تطا
+تعا
+تغا
+تفا
+تقا
+تکا
+تگا
+تلا
+تما
+تنا
+تیا
+تہا
+تھا
+ٹبا
+ٹپا
+ٹتا
+ٹچا
+ٹکا
+ٹگا
+ٹلا
+ٹما
+ٹما
+ٹنا
+ٹیا
+ٹھا
+ثبا
+ثقا
+ثلا
+ثما
+ثنا
+ثیا
+جبا
+جپا
+جتا
+جٹا
+ججا
+جچا
+جحا
+جسا
+جغا
+جفا
+فکا
+جگا
+جلا
+جما
+جنا
+جیا
+جہا
+جھا
+چبا
+چپا
+چتا
+چٹا
+چچا
+چخا
+چخا
+چسا
+چغا
+چقا
+چکا
+چگا
+چلا
+چما
+چنا
+چیا
+چہا
+چھا
+حبا
+حجا
+حسا
+حشا
+حصا
+حضا
+حظا
+چغا
+حفا
+ھقا
+حکا
+حلا
+حما
+حنا
+حیا
+خبا
+ختا
+خٹا
+خجا
+خچا
+خحا
+خسا
+خشا
+خصا
+خضا
+خطا
+خفا
+خلا
+خما
+خنا
+خیا
+خہا
+سبا
+سپا
+ستا
+سٹا
+سجا
+سچا
+سحا
+سخا
+سسا
+سعا
+سفا
+سقا
+سکا
+سگا
+سلا
+سما
+سنا
+سیا
+سہا
+شبا
+شپا
+شتا
+شجا
+شچا
+شحا
+شخا
+شطا
+شعا
+شغا
+شفا
+شقا
+شکا
+شگا
+شما
+شنا
+شیا
+شہا
+صبا
+صحا
+صغا
+صفا
+صلا
+صما
+صنا
+صیا
+ضحا
+ضخا
+ضعا
+ضغا
+ضلا
+ضما
+ضیا
+طبا
+طپا
+طحا
+طعا
+طغا
+طفا
+طلا
+طما
+طنا
+طیا
+طہا
+ظلا
+ظہا
+عبا
+عتا
+عجا
+عسا
+عشا
+عصا
+عضا
+عطا
+عظا
+عفا
+عقا
+عکا
+علا
+عما
+عنا
+عیا
+غبا
+غپا
+غٹا
+غچا
+غسا
+غفا
+غلا
+غما
+غنا
+غیا
+فتا
+فٹا
+فجا
+فحا
+فسا
+فشا
+فصا
+فضا
+فطا
+فظا
+فعا
+فغا
+فقا
+فکا
+فگا
+فلا
+فما
+فنا
+فیا
+فہا
+قبا
+قتا
+قحا
+قسا
+قصا
+قضا
+قطا
+قعا
+قفا
+قلا
+قما
+قنا
+قیا
+قہا
+کبا
+کپا
+کتا
+کٹا
+کثا
+کجا
+کچا
+کحا
+کسا
+کشا
+کعا
+کفا
+ککا
+کگا
+کلا
+کما
+کنا
+کیا
+کہا
+کھا
+گبا
+گپا
+گتا
+گٹا
+گجا
+گچا
+گسا
+گلا
+گما
+گنا
+گیا
+گہا
+گھا
+لبا
+لپا
+لتا
+لٹا
+لثا
+لجا
+لچا
+لحا
+لخا
+لسا
+لشا
+لصا
+لطا
+لعا
+لغا
+لفا
+لقا
+لکا
+لگا
+لما
+لنا
+لیا
+لہا
+لھا
+مبا
+مپا
+متا
+مٹا
+مثا
+مجا
+مچا
+محا
+مخا
+مسا
+مشا
+مصا
+مضا
+مطا
+مظا
+معا
+مغا
+مفا
+مقا
+مکا
+مگا
+ملا
+مما
+منا
+میا
+مہا
+نبا
+نپا
+نتا
+نٹا
+نثا
+نجا
+نچا
+نحا
+نخا
+نسا
+نشا
+نصا
+نضا
+نظا
+نعا
+نفا
+نقا
+نکا
+نگا
+نلا
+مہا
+نبا
+نپا
+نتا
+نٹا
+نثا
+نجا
+نچا
+نحا
+نخا
+نسا
+نشا
+نصا
+نضا
+نما
+ننا
+نیا
+نہا
+نھا
+ئبا
+ئپا
+ئشا
+ئعا
+ئکا
+ئگا
+ئنا
+ئیا
+یبا
+یپا
+یتا
+یٹا
+یثا
+یجا
+یحا
+یخا
+یسا
+یشا
+یصا
+یضا
+یطا
+یعا
+یغا
+یفا
+یقا
+یکا
+یگا
+یلا
+یما
+ینا
+یئم
+یہا
+ہبا
+ہپا
+ہتا
+ہٹا
+ہجا
+ہچا
+ہسا
+ہشا
+ہفا
+ہقا
+ہکا
+ہگا
+ہلا
+ہما
+ہنا
+ہیا
+ھبا
+ھپا
+ھتا
+ھٹا
+ھجا
+ھسا
+ھکا
+ھگا
+ھلا
+ھما
+ھنا
+ھیا
+ھہا
+بلب
+بیب
+پھب
+تعب
+تکب
+تیب
+جست
+جلب
+جیب
+چھب
+حجب
+حسب
+حلب
+خطب
+سبب
+سلب
+سیب
+شعب
+شغب
+شیب
+صعب
+صلب
+طلب
+طیب
+عجب
+عصب
+عضب
+عقب
+عنب
+عیب
+ضصب
+غضب
+غلب
+غیب
+قطب
+قعب
+قلب
+قیب
+کتب
+کسب
+کعب
+کلب
+کیب
+کھب
+لطب
+لعب
+لقب
+لیب
+لہب
+محب
+مشب
+مطب
+نسب
+نصب
+نقب
+نیب
+یشب
+ینب
+ہیب
+بشپ
+پمپ
+پنپ
+پیپ
+تھپ
+ٹھپ
+جمپ
+جیپ
+جھپ
+چیپ
+چھپ
+سلپ
+سیپ
+فلپ
+کلپ
+کیپ
+کھپ
+گیپ
+گھپ
+لمپ
+لیپ
+میپ
+یمپ
+ینپ
+بپت
+بچت
+بخت
+بست
+بشت
+بعت
+بقت
+بنت
+بیت
+بہت
+بھت
+پتت
+پخت
+پست
+پشت
+پیت
+تبت
+تپت
+تحت
+تختتست
+تشت
+تمت
+تنت
+تیت
+ٹکت
+ثبت
+ثلت
+جست
+جعت
+جفت
+جگت
+جنت
+جیت
+جہت
+چپت
+چست
+چشت
+چکت
+چلت
+چنت
+چیت
+چھت
+حبت
+حجت
+حشت
+حفت
+حلت
+حمت
+حیت
+خست
+خشت
+کصت
+خفت
+خلت
+سبت
+سچت
+سخت
+سست
+سعت
+سفت
+سقت
+سکت
+سلت
+سمت
+سنت
+سیت
+شست
+شصت
+شفت
+شیت
+صحت
+صفت
+صلت
+صمت
+صیت
+ضیت
+طشت
+طفت
+طیت
+ظبت
+عفت
+علت
+عیت
+غبت
+غلت
+غیت
+فظت
+فعت
+فقت
+فیت
+قبت
+قعب
+قلت
+قیت
+کبت
+کپت
+کھت
+کشت
+کعت
+کلت
+کیت
+کھت
+گپت
+گست
+گشت
+گفت
+گمت
+گنت
+گیت
+لپت
+لجت
+لحت
+لخت
+لست
+لشت
+لغت
+لفت
+لگت
+للت
+لیت
+مست
+مشت
+معت
+مفت
+مکت
+ملت
+منت
+میت
+مہت
+نپت
+نست
+نعت
+نفت
+نکت
+نگت
+نیت
+ئیت
+یست
+یشت
+یعت
+یقت
+یمت
+ینت
+ہست
+ہشت
+ہفت
+ہمت
+ہیت
+ھست
+بجٹ
+بکٹ
+بلٹ
+بنٹ
+بیٹ
+بھٹ
+پسٹ
+پلٹ
+پیٹ
+پھٹ
+ٹسٹ
+ٹکٹ
+ٹنٹ
+ٹھٹ
+جسٹ
+جمٹ
+جنٹ
+جیٹ
+جھٹ
+چپٹ
+چکٹ
+چمٹ
+چنٹ
+چھٹ
+سٹٹ
+سکٹ
+سمٹ
+سیٹ
+شسٹ
+شفٹ
+شمٹ
+شیٹ
+فسٹ
+کپٹ
+کسٹ
+کشٹ
+کیٹ
+کھٹ
+گسٹ
+گشٹ
+گفٹ
+گلٹ
+گمٹ
+گیٹ
+گھٹ
+لپٹ
+لسٹ
+لشٹ
+لفٹ
+لنٹ
+لیٹ
+لہٹ
+مسٹ
+مشٹ
+مکٹ
+ملٹ
+منٹ
+میٹ
+نبٹ
+نپٹ
+نجٹ
+نسٹ
+نکٹ
+نگٹ
+نمٹ
+نیٹ
+یبٹ
+ئسٹ
+ئلٹ
+ئنٹ
+یبٹ
+یسٹ
+یکٹ
+ینٹ
+ہیٹ
+ھیٹ
+بحث
+بعث
+ثلث
+خبث
+شیث
+عبث
+نبث
+نیث
+بنج
+بیج
+بھج
+پنج
+پیج
+تہج
+تھج
+ٹیپ
+جھج
+سلج
+سیج
+سہج
+کنج
+کیج
+کھج
+گنج
+گیج
+لحج
+لنج
+لیج
+منج
+میج
+نپج
+نہج
+ینج
+ہپج
+بنچ
+بیچ
+بھچ
+پنچ
+پیچ
+پھچ
+تھچ
+ٹیج
+جکچ
+چمچ
+کلچ
+کیچ
+کھچ
+گھچ
+لنچ
+لیچ
+میچ
+نیچ
+ہیچ
+بیح
+جیح
+سطح
+سلح
+شیح
+صبح
+صلح
+صیح
+ضیح
+فتح
+فصح
+قبح
+لیح
+مسح
+ملح
+میخ
+نضح
+نفخ
+بطخ
+بلخ
+بیخ
+پٹخ
+تلخ
+تیخ
+ٹپخ
+چپخ
+چٹخ
+چیخ
+سیخ
+شیخ
+فسخ
+گٹخ
+مسخ
+مطخ
+ملخ
+میخ
+نسخ
+نفخ
+بتد
+بجد
+بحد
+بخد
+بسد
+بصد
+بضد
+بعد
+بغد
+بقد
+بگد
+بلد
+بمد
+بند
+بید
+بہد
+بھد
+پند
+پید
+پھد
+تبد
+تجد
+تحد
+تخد
+تسد
+تشد
+تصد
+تعد
+تقد
+تکد
+تمد
+تند
+تہد
+ثمد
+جسد
+جعد
+جلد
+جند
+جید
+جہد
+چغد
+چلد
+چند
+چید
+چھد
+حبد
+حسد
+حقد
+حمد
+حید
+ختہ
+خضد
+خلد
+خمد
+خند
+سبد
+ستد
+سجد
+سشد
+سعد
+سقد
+سمد
+سند
+سید
+شبد
+ششد
+شند
+شید
+شہد
+صفد
+صمد
+صند
+صید
+ضفد
+ضید
+عبد
+عتد
+عضد
+عقد
+عمد
+عند
+عید
+عہد
+غند
+غید
+فصد
+فعد
+فقد
+فند
+فید
+فہد
+قتد
+قصد
+قعد
+قند
+قید
+کند
+کید
+کھد
+گبد
+گلد
+گند
+گید
+لبد
+لحد
+لضد
+لعد
+لقد
+لکد
+لگد
+لمد
+لند
+لید
+مبد
+متد
+مجد
+محد
+محد
+مسد
+مشد
+مصد
+معد
+مقد
+مکد
+مگد
+ممد
+مند
+مید
+مہد
+نبد
+نتد
+نخد
+نسد
+نصد
+نعد
+نقد
+نگد
+نمد
+نند
+نہد
+ئمد
+ئند
+ئید
+یکد
+یگد
+یلد
+یند
+ہبد
+ہتد
+ہلد
+ہمد
+ہند
+ہید
+ھگد
+ھند
+بلڈ
+بنڈ
+بیڈ
+پگڈ
+پنڈ
+پیڈ
+پھڈ
+تکڈ
+تگڈ
+تنڈ
+ٹنڈ
+ٹھڈ
+جنڈ
+جھڈ
+چلڈ
+چنڈ
+سٹڈ
+سنڈ
+سیڈ
+شلڈ
+شیڈ
+غنڈ
+ئیڈ
+فنڈ
+فیڈ
+کبڈ
+کمڈ
+کنڈ
+کیڈ
+کھڈ
+گٹڈ
+کلڈ
+گنڈ
+گیڈ
+لنڈ
+لیڈ
+مکڈ
+مگڈ
+منڈ
+میڈ
+نیڈ
+ئٹڈ
+ئلڈ
+ئیڈ
+یجڈ
+یلڈ
+ینڈ
+ہلڈ
+ہنڈ
+ہیڈ
+ھنڈ
+بتذ
+پھڈ
+تبذ
+تحذ
+تعذ
+تغذ
+تکذ
+تلذ
+تہذ
+ٹھڈ
+جعد
+حبذ
+عتذ
+کیڈ
+لبذ
+لحز
+لقذ
+مبذ
+متذ
+مجذ
+محذ
+مخذ
+معذ
+مکذ
+ملذ
+منذ
+مہذ
+ہکذ
+ہگذ
+ببر
+بتر
+بٹر
+بجر
+بحر
+بخر
+بسر
+بشر
+بصر
+بطر
+بغر
+بفر
+بقر
+بکر
+بگر
+بلر
+بمر
+بنر
+بیر
+بہر
+بھر
+پتر
+پٹر
+پچر
+پسر
+پنر
+پیر
+پہر
+پھر
+تبر
+تپر
+تتر
+تٹر
+تجر
+تحر
+تخر
+تسر
+تشر
+تصر
+تضر
+تعر
+تغر
+تفر
+تقر
+تکر
+تگر
+تمر
+تنر
+تیر
+تہر
+تھر
+ٹبر
+ٹٹر
+ٹخر
+ٹسر
+ٹکر
+ٹمر
+ٹنر
+ٹیڈ
+ٹہر
+ٹھر
+ثمر
+ثیر
+جبر
+جتر
+جغر
+جفر
+جکر
+جگر
+جمر
+جنر
+جیر
+جہر
+جھر
+چپر
+چتر
+چٹر
+چسر
+چشر
+چفر
+چقر
+چکر
+چمر
+چنر
+چیر
+چہر
+چھر
+حتر
+حجر
+حسر
+حشر
+حصر
+حضر
+حفر
+حقر
+حمر
+حیر
+خبر
+ختر
+خچر
+خسر
+خشر
+خصر
+خضر
+خطر
+خفر
+خگر
+خمر
+خیر
+سپر
+ستر
+سٹر
+سجر
+سچر
+سحر
+سسر
+سطر
+سفر
+سقر
+سکر
+سگر
+سمر
+سیر
+سہر
+شبر
+شپر
+شتر
+شٹر
+شجر
+شطر
+شعر
+شغر
+شکر
+شگر
+شمر
+شیر
+شہر
+صبر
+صحر
+صطر
+صعر
+صغر
+صفر
+صہر
+ضطر
+طبر
+طغر
+طنز
+طیر
+طہر
+ظفر
+ظہر
+عبر
+عتر
+عسر
+عشر
+عصر
+عطر
+عفر
+عقر
+عکر
+عمر
+غٹر
+غفر
+غیر
+فتر
+فٹر
+فجر
+فخر
+فسر
+فشر
+فطر
+فغر
+ففر
+فقر
+فکر
+فلر
+فنر
+فیر
+فہر
+قبر
+قتر
+قشر
+قصر
+قطر
+قعر
+قلر
+قمر
+قیر
+قہر
+کبر
+کتر
+کٹر
+کثر
+کجر
+کچر
+کسر
+کثر
+کفر
+ککر
+کگر
+کلر
+کمر
+کیر
+کہر
+کھر
+گبر
+گٹر
+گجر
+گگر
+گلر
+گمر
+گنر
+گیر
+گہر
+گھر
+لبر
+لتر
+لٹر
+لجر
+لچر
+لھر
+لخر
+لشر
+لضر
+لطر
+لعر
+لغر
+لفر
+لقر
+لکر
+لگر
+لمر
+لنر
+لیر
+لہر
+مبر
+مپر
+متر
+مٹر
+مجر
+مچر
+محر
+مخر
+مسر
+مشر
+مصر
+مضر
+مطر
+معر
+مغر
+مفر
+مقر
+مکر
+مگر
+ملر
+ممر
+منر
+میر
+مہر
+نبر
+نتر
+نٹر
+نثر
+نجر
+نحر
+نخر
+نسر
+نشر
+نصر
+نظر
+نعر
+نفر
+نقر
+نکر
+نگر
+نمر
+نئر
+نیر
+نہر
+ئبر
+ئٹر
+ئکر
+ئمر
+ئنر
+ئیر
+ئہر
+یبر
+یپر
+یٹر
+یثر
+یجر
+یچر
+یخر
+یسر
+یشر
+یفر
+یکر
+یگر
+یلر
+یمر
+ینر
+یئر
+یہر
+ہبر
+ہتر
+ہٹر
+ہجر
+ہچر
+ہکر
+ہلر
+ہمر
+ہنر
+ہیر
+ھبر
+ھچر
+ھگر
+گیر
+بگڑ
+بنڑ
+بیڑ
+بھڑ
+پبڑ
+پٹڑ
+پجڑ
+پکڑ
+پگڑ
+پلڑ
+پیڑ
+پھڑ
+تپڑ
+تکڑ
+تگڑ
+تلڑ
+تیڑ
+تھڑ
+ٹکڑ
+ٹیر
+ٹھڑ
+جبڑ
+جکڑ
+جھڑ
+چبڑ
+چبڑ
+چپڑ
+چچڑ
+چسڑ
+چکڑ
+چمڑ
+چیڑ
+چھڑ
+سپڑ
+سکڑ
+سیڑ
+کبڑ
+کپڑ
+کچڑ
+ککڑ
+کلڑ
+کنڑ
+کیڑ
+کھڑ
+گپڑ
+گیڑ
+گھڑ
+لبڑ
+لپڑ
+لکڑ
+لگڑ
+لٹر
+لہڑ
+لھڑ
+مپڑ
+مسڑ
+مکڑ
+منڑ
+میڑ
+نبڑ
+نپڑ
+نتڑ
+نچڑ
+نسڑ
+نکڑ
+نگڑ
+نیڑ
+نہڑ
+ئیڑ
+یکڑ
+یہڑ
+ہبڑ
+ہپڑ
+ہیڑ
+ہجڑ
+ہلڑ
+ہمڑ
+ہنڑ
+ہیڑ
+ھبڑ
+ھکڑ
+ھگڑ
+ھیڑ
+بجز
+بلز
+بیز
+بہز
+پیز
+تجز
+تحز
+تعز
+تغز
+تنز
+تیز
+ٹیڑ
+چکز
+چیز
+حمز
+حیز
+خیز
+خنز
+سبز
+سلز
+سیز
+شلز
+شیز
+شہز
+طنز
+عتز
+عجز
+غمز
+فلز
+فیز
+قلز
+کبز
+کمز
+کنز
+کیز
+گلز
+گیز
+لتز
+لجز
+لحز
+لعز
+لغز
+لقز
+لنز
+لیز
+متز
+محز
+مخز
+مسز
+معز
+مغز
+ملز
+ممز
+منز
+میز
+نتز
+نغز
+نگز
+نلز
+نیز
+ئلز
+ئنز
+ئیز
+یگز
+یلز
+یمز
+ہتز
+ہلز
+ہمز
+ہیز
+لگژ
+بکس
+بلس
+بنس
+بیس
+بھس
+پٹس
+پنس
+پیس
+پھس
+تٹس
+تحس
+تکس
+تیس
+تہس
+ٹپس
+ٹکس
+ٹلس
+ٹنس
+ٹیز
+ٹھس
+جنس
+جیس
+چکس
+چیس
+حبس
+خمس
+خیس
+سٹس
+سمس
+سیس
+شپس
+شمس
+طلس
+طیس
+عکس
+فلس
+فنس
+فیس
+قفس
+قیس
+کتیس
+کلس
+کنس
+کھس
+گلس
+گیس
+گھس
+لپس
+لٹس
+لکس
+لمس
+لنس
+لیس
+مکس
+مگس
+ملس
+منس
+میس
+نٹس
+نجس
+نحس
+نسس
+نفس
+نکس
+ینس
+ئٹس
+ئنس
+ئیس
+یبس
+یٹس
+یسس
+یشس
+یکس
+یلس
+ینس
+ٹیس
+جیش
+حبش
+خفش
+سپش
+ستش
+شیش
+طپش
+طیش
+عطش
+عیش
+فحش
+فلش
+کشش
+کفش
+کنش
+کیش
+کفش
+کنش
+لکش
+منش
+میش
+نجش
+نعش
+نقش
+نگش
+نمش
+نیش
+ئیش
+یشش
+یعش
+ینش
+ہفش
+ہیش
+حصص
+حفص
+حیص
+شخص
+قصص
+نقص
+بعض
+بغض
+بیض
+حیض
+غیض
+فیض
+قبض
+محض
+میض
+نبض
+نقض
+بخط
+خبط
+خلط
+سبط
+سقط
+شخط
+ضبط
+غلط
+غیط
+فقط
+قحط
+قسط
+لخط
+لفط
+لقط
+حفظ
+غیظ
+لحظ
+لفظ
+بمع
+بیع
+تبع
+تسع
+تفع
+جمع
+جیع
+سبع
+سجع
+سمع
+سیع
+شجع
+شمع
+صطع
+صنع
+صیع
+ضلع
+ضیع
+طبع
+طمع
+فیع
+قطع
+قلع
+قمع
+قیع
+منع
+نطع
+نفع
+تیغ
+میغ
+نیغ
+بلف
+بیف
+تلف
+جیف
+چیف
+حلف
+حیف
+خلف
+خیف
+سقف
+سلف
+سیف
+شغف
+شلف
+صحف
+صنف
+صیف
+ضعف
+ضیف
+عطف
+علف
+قیف
+کتف
+کشف
+کلف
+کنف
+کیف
+کہف
+گلف
+لصف
+کطف
+کیف
+نجف
+نصف
+نیف
+بحق
+بلق
+بہق
+بھق
+پتق
+پھق
+تتق
+ثیق
+جلق
+حلق
+حمق
+حیق
+خلق
+سبق
+شفق
+شلق
+ضیق
+طبق
+عشق
+عمق
+فتق
+فسق
+سیق
+قلق
+قیق
+لحق
+لیق
+مشق
+نبق
+نسق
+نطق
+نیق
+بتک
+بٹک
+بچک
+بطک
+بلک
+بنک
+بیک
+بہک
+بھک
+پٹک
+پچک
+پلک
+پنک
+پیک
+پھک
+تپک
+تتک
+تشک
+تلک
+تنک
+تیک
+تھک
+ٹپک
+ٹسک
+ٹنک
+ٹیش
+ٹھک
+جبک
+جھک
+چبک
+چپک
+چٹک
+چسک
+چشک
+چلک
+چمک
+چنک
+چیک
+چہک
+چھک
+ختک
+خٹک
+خسک
+خشک
+خنک
+سبک
+ستک
+سٹک
+سسک
+سلک
+سمک
+سنک
+شلک
+ضحک
+غٹک
+غلک
+کبک
+کتک
+کٹک
+کسک
+کفک
+کلک
+کمک
+کنک
+کیک
+گٹک
+گجک
+گلک
+گمک
+گہم
+لپک
+لٹک
+لچل
+للک
+لنک
+لیک
+لہک
+مٹک
+مچک
+محک
+مسک
+مشک
+ملک
+میک
+مہک
+نسک
+نمک
+نیک
+ئیک
+یبک
+یپک
+یشک
+یفک
+یمک
+ینک
+ہبک
+ہتک
+ہچک
+ہلک
+ہمک
+ہنک
+کیک
+ھجک
+ھچک
+ھسک
+ھلک
+ھمک
+ھنک
+بنگ
+بیگ
+بھگ
+پلگ
+پنگ
+تنگ
+ٹنگ
+ٹیک
+جلگ
+جنگ
+چنگ
+خنگ
+سلگ
+سنگ
+سیگ
+شنگ
+کنگ
+کھگ
+گمگ
+گنگ
+لنگ
+لیگ
+منگ
+میگ
+ننگ
+نیگ
+ئنگ
+ینگ
+ہلگ
+ہنگ
+ہیگ
+ھنگ
+ببل
+بچل
+بحل
+بخل
+بصل
+بطل
+بعل
+بغل
+بقل
+بکل
+بگل
+بیل
+بہل
+بھل
+پبل
+پپل
+پتل
+پٹل
+پگل
+پیل
+پہل
+پھلتکل
+تیل
+تھل
+ٹکل
+ٹیگ
+ٹہل
+ثقل
+ثیل
+جبل
+جعل
+جکل
+جگل
+جمل
+جیل
+جہل
+جھل
+چبل
+چپل
+چغل
+چکل
+چمل
+چیل
+چہل
+چھل
+حبل
+حصل
+حلل
+حمل
+حیل
+خجل
+خلل
+خیل
+سبل
+ستل
+سٹل
+سجل
+سچل
+سفل
+سکل
+سگل
+سنل
+سیل
+سہل
+شطل
+شغل
+شکل
+شگل
+شیل
+صصل
+صنل
+صیل
+طبل
+طفل
+عسل
+عضل
+عقل
+علل
+عمل
+عیل
+غسل
+فحل
+فصل
+فضل
+فعل
+فیل
+قبل
+قتل
+قفل
+قیل
+کبل
+کپل
+کتل
+کچل
+کحل
+کسل
+کشل
+کفل
+کمل
+کیل
+کہل
+کھل
+گپل
+گٹل
+گسل
+گھل
+لعل
+لغل
+لیل
+مٹل
+مثل
+مچل
+محل
+مخل
+مضل
+مغل
+ملل
+میل
+نبل
+نپل
+نچل
+نحل
+نخل
+نسل
+نشل
+نصل
+نعل
+نفل
+نقل
+نکل
+نگل
+نیل
+ئبل
+ئٹل
+ئفل
+ئقل
+ئنل
+ئیل
+یشل
+یکل
+یگل
+ینل
+ہبل
+ہیل
+ھیل
+بسم
+بکم
+بلم
+بیم
+بہم
+پتم
+پٹم
+پچم
+پسم
+پشم
+پنم
+پیم
+پتم
+تخم
+تیم
+تھم
+ٹیل
+ثیم
+جسم
+جنم
+جیم
+جھم
+چشم
+چلم
+چھم
+حجم
+حشم
+حضم
+حکم
+حلم
+حیم
+ختم
+حشم
+خیم
+ستم
+سقم
+سکم
+سلم
+سیم
+سہم
+ششم
+شکم
+شلم
+شیم
+صنم
+طعم
+ظلم
+عجم
+عظم
+علم
+عیم
+غلم
+فلم
+فیم
+قسم
+قلم
+قیم
+کٹم
+کسم
+کلم
+کیم
+کھم
+گلم
+گیم
+گھم
+لبم
+لحم
+لکم
+لیم
+مسم
+مغم
+منم
+میم
+مہم
+نجم
+نظم
+نعم
+نکم
+نگم
+نیم
+نہم
+ئٹم
+یتم
+یٹم
+یشم
+یغم
+یکم
+ینم
+یئم
+ہضم
+ہمم
+ہیم
+ھکم
+کیم
+بٹن
+بچن
+بشن
+بطن
+بین
+بہن
+بھن
+پتن
+پٹن
+پشن
+پمن
+پین
+پہن
+پھن
+تپن
+تکن
+تلن
+تمن
+تین
+تہن
+تھن
+ٹپن
+ٹسن
+ٹفن
+ٹیم
+ٹھن
+ثمن
+ثین
+جبن
+جتن
+جشن
+جگن
+جلن
+جمن
+جین
+جھن
+چپن
+چکن
+چلن
+چمن
+چین
+چھن
+حسن
+حصن
+حین
+ختن
+خین
+سپن
+ستن
+سٹن
+سجن
+سخن
+سشن
+سقن
+سمن
+سنن
+سین
+سہن
+شکن
+شگن
+شمن
+شین
+صحن
+ضمن
+ضین
+طعن
+طین
+عین
+غبن
+غین
+فتن
+فٹن
+فگن
+فمن
+فین
+قطن
+قین
+کجن
+کچن
+کشن
+کفن
+کلن
+کین
+کہن
+کھن
+گگن
+گین
+گہن
+گھن
+لبن
+لٹن
+لجن
+لحن
+لسن
+لعن
+لفن
+لگن
+لمن
+لنن
+لین
+لہن
+لھن
+متن
+مٹن
+محن
+مسن
+مشن
+مکن
+مگن
+ملن
+منن
+مین
+نجن
+نشنر
+نگن
+نمن
+نین
+نہن
+ئین
+یپن
+یجن
+یشن
+یکن
+یگن
+یلن
+یمن
+ہمن
+ہین
+بیں
+پیں
+ٹیں
+ثین
+جیں
+چیں
+حیں
+خیں
+سیں
+شیں
+عیں
+کیں
+گیں
+لیں
+میں
+نیں
+ئیں
+ہیں
+ھیں
+ببو
+بپو
+بتو
+بٹو
+بجو
+پچو
+پسو
+پشو
+پکو
+پگو
+پلو
+پنو
+پئو
+پیو
+پھو
+تبو
+تپو
+تجو
+تچو
+تحو
+تخو
+تسو
+تشو
+تصو
+تضو
+تطو
+تعو
+تفو
+تقو
+تکو
+تگو
+تلو
+تمو
+تنو
+تیو
+تہو
+تھو
+ٹپو
+ٹٹو
+ٹچو
+ٹسو
+ٹشو
+ٹکو
+ٹلو
+ٹنو
+ٹیز
+ٹہو
+ٹھو
+ثبو
+ثپو
+ثتو
+ثمو
+جبو
+جپو
+جتو
+جٹو
+ججو
+جچو
+جسو
+جعو
+جلو
+جمو
+جنو
+جئو
+جیو
+جھو
+چبو
+چپو
+چتو
+چٹو
+چچو
+چخو
+چسو
+چقو
+چکو
+چگو
+چلو
+چمو
+چنو
+چیو
+چھو
+حبو
+حتو
+حثو
+حشو
+حصو
+حضو
+حظو
+حقو
+حکو
+حلو
+حنو
+حیو
+ختو
+خسو
+خشو
+خصو
+خضو
+خطو
+خلو
+خمو
+خنو
+خیو
+سبو
+سپو
+ستو
+سٹو
+سجو
+سچو
+سحو
+سشو
+سطو
+سعو
+سفو
+سقو
+سکو
+سگو
+سلو
+سمو
+سنو
+سیو
+سہو
+شبو
+شپو
+شتو
+ششو
+شعو
+شفو
+شقو
+شکو
+شگو
+شلو
+شمو
+شنو
+شیو
+شہو
+صبو
+صتو
+صحو
+صعو
+صفو
+صلو
+صنو
+ضتو
+ضحو
+ضعو
+طبو
+طفو
+طلو
+طنو
+طیو
+طہو
+ظتو
+ظلو
+ظنو
+ظہو
+عبو
+عتو
+عجو
+عشو
+عضو
+عطو
+عظو
+عفو
+عقو
+علو
+عمو
+عنو
+عیو
+غفو
+غلو
+غمو
+غنو
+غیو
+فتو
+فٹو
+فجو
+فحو
+فسو
+فصو
+فضو
+فظو
+فعو
+فقو
+فلو
+فنو
+فیو
+فہو
+قبو
+قپو
+قتو
+قسو
+قشو
+قصو
+قطو
+قعو
+قفو
+قلو
+قمو
+قنو
+قیو
+قہو
+کبو
+کتو
+کتو
+کٹو
+کچو
+کسو
+کشو
+کفو
+کلو
+کمو
+کنو
+کیو
+کہو
+کھو
+کو
+گپو
+گتو
+گٹو
+گجو
+گلو
+گمو
+گنو
+گئو
+گیو
+گہو
+گھو
+لبو
+لپو
+لتو
+لٹو
+لثو
+لجو
+لچو
+لحو
+لخو
+لسو
+لشو
+لصو
+لضو
+لطو
+لعو
+لغو
+لفو
+لقو
+لکو
+لگو
+للو
+لمو
+لنو
+لیو
+لہو
+لھو
+مپو
+متو
+مٹو
+مجو
+مچو
+جحو
+مخو
+مسو
+مشو
+مصو
+مطو
+مغو
+مقو
+مکو
+مگو
+ملو
+ممو
+منو
+مئو
+میو
+مہو
+مھو
+نبو
+نپو
+نتو
+نٹو
+نجو
+نچو
+نحو
+نخو
+نسو
+نشو
+نصو
+نطو
+نظو
+نعو
+نفو
+نقو
+نکو
+نگو
+نلو
+نمو
+ننو
+نیو
+نہو
+نھو
+ئبو
+ئپو
+ئتو
+ئٹو
+ئخو
+خشو
+ئفو
+ئقو
+ئکو
+ئلو
+ئنو
+ئیو
+یبو
+یپو
+یتو
+یٹو
+یثو
+یجو
+یخو
+یسو
+یشو
+یضو
+یعو
+یفو
+یقو
+یکو
+یگو
+یلو
+یمو
+ینو
+یئو
+یہو
+ہبو
+ہپو
+ہتو
+ہٹو
+ہجو
+ہشو
+ہضو
+ہفو
+ہکو
+ہگو
+ہلو
+ہمو
+ہنو
+ہیو
+ھبو
+ھپو
+ھتو
+ھجو
+ھکو
+ھگو
+ھلو
+ھنو
+ھیو
+مو
+ببی
+بتی
+بٹی
+بجی
+بچی
+بسی
+بطی
+بکی
+بلی
+بنی
+بئ
+بہی
+بھی
+بی
+پتی
+پٹی
+پجی
+پچی
+پخی
+پسی
+پشی
+پکی
+پلی
+پنی
+پئ
+تھی
+تبی
+تپی
+تتی
+تپی
+تجی
+تچی
+تشی
+تقی
+تکی
+تگی
+تلی
+تمی
+تنی
+تئ
+تہی
+تھی
+ٹپی
+ٹتی
+ٹٹی
+ٹچی
+ٹکی
+ٹگی
+ٹلی
+ٹمی
+ٹنی
+ٹھی
+ثتی
+جبی
+جپی
+جتی
+جٹی
+ججی
+جچی
+جعی
+جگی
+جلی
+جمی
+جنی
+جئ
+جہی
+جھی
+چبی
+چپی
+چتی
+چٹی
+چجی
+چچی
+چکی
+چگی
+چلی
+چنی
+چھی
+حبی
+حتی
+حسی
+حشی
+حظی
+حقی
+حلی
+حمی
+حئ
+ختی
+خشی
+خصی
+خطی
+خفی
+خلی
+خمی
+خنی
+خسپی
+ستی
+سٹی
+سجی
+سچی
+سخی
+سی
+سطی
+سعی
+سفی
+سکی
+سگی
+سلی
+سمی
+سنی
+سئ
+سہی
+سی
+شتی
+ششی
+شطی
+شقی
+شکی
+شمی
+شنی
+شہی
+صبی
+صتی
+صفی
+صگی
+صلی
+ضتی
+ضعی
+ظگی
+ضی
+طبی
+طمی
+طنی
+ظتی
+ظمی
+ظنی
+عتی
+عفی
+علی
+عمی
+عنی
+عئ
+غبی
+غپی
+غشی
+غلی
+غمی
+غنی
+فتی
+فجی
+فضی
+فعی
+فقی
+فگی
+فلی
+فمی
+فنی
+قتی
+قشی
+قصی
+قعی
+قلی
+قمی
+کبی
+کپی
+کتی
+کٹی
+کجی
+کچی
+کسی
+کشی
+کلی
+کمی
+کنی
+کہی
+کھی
+گبی
+گپی
+گتی
+گٹی
+گجی
+گچی
+گلی
+گمی
+گنی
+گئ
+گہی
+گھی
+لبی
+لپی
+لتی
+لٹی
+لثیمتی
+لجی
+لچی
+لسی
+لشی
+لعی
+لفی
+لکی
+لگی
+للی
+لمی
+لنی
+لہہ
+لی
+متی
+مٹی
+مجی
+مچی
+م]ی
+مسی
+مشی
+معی
+مکی
+مگی
+ملی
+ممی
+منی
+مہی
+نبی
+نپی
+نتی
+نٹی
+نجی
+نچی
+نسی
+نشی
+نفی
+نقی
+نکی
+نگی
+نلی
+نمی
+نلی
+نئ
+نہی
+نھی
+نی
+ئبی
+ئتی
+ئٹی
+ئچی
+ئسی
+ئشی
+ئقی
+ئکی
+ئلی
+ئمی
+ئنی
+یبی
+ہتی
+ہٹی
+ہفی
+ہکی
+ہگی
+ہلی
+ہمی
+ہنی
+ہئ
+ھپی
+ھتی
+ھجی
+ھکی
+ھگی
+ھلی
+ھنی
+ھئ
+بتے
+بٹے
+بجے
+بچے
+بسے
+بطے
+بعے
+بفے
+بقے
+بکے
+بلے
+بنے
+بۓ
+بہے
+بھے
+پتے
+پٹے
+پجے
+پچے
+پسے
+پشے
+پکے
+پلے
+پنے
+پۓ
+تبے
+تپے
+تتے
+تٹے
+تجے
+تچے
+تسے
+تشے
+تکے
+تگے
+تلے
+تمے
+تنے
+تۓ
+تھے
+ٹپے
+ٹتے
+ٹچے
+ٹکے
+ٹگے
+ٹلے
+ٹنے
+ٹۓ
+ٹھے
+جبے
+جپے
+جتے
+جٹے
+جثے
+جچے
+جسے
+جلے
+جمے
+جنے
+جۓ
+چھے
+حثے
+حصے
+حظے
+حقے
+حلے
+ختے
+حچے
+حطے
+خلے
+خہے
+ستے
+سٹے
+سجے
+سچے
+سطے
+سکے
+سکے
+سلے
+سمے
+سنے
+سۓ
+سہے
+شپے
+شتے
+شقے
+شمے
+شۓ
+صلے
+ضمے
+عشے
+علے
+غصے
+غلے
+فتے
+فٹے
+فسے
+فظے
+فلے
+قبے
+قصے
+قعے
+کپے
+کتے
+کٹے
+کجے
+کچے
+کسے
+کشے
+ککے
+کلے
+کمے
+کنے
+کۓ
+کیے
+کہے
+کھے
+گپے
+گتے
+گٹے
+گجے
+گلے
+گمے
+گنے
+گۓ
+گہے
+گھے
+لبے
+لیے
+لتے
+لٹے
+لثے
+لجے
+لچے
+لحے
+لخے
+لصے
+لعے
+لکے
+لگے
+لمے
+لنے
+لۓ
+لہے
+لھے
+متے
+مٹے
+مچے
+مسے
+مکے
+ملے
+نلے
+ننے
+نۓ
+ئٹے
+ئچے
+ئفے
+ئقے
+ئلے
+یتے
+یجے
+یچے
+یسے
+یشے
+یضے
+یعے
+یفے
+یقے
+یکے
+یگے
+یلے
+یمے
+ینے
+یۓ
+ہبے
+ہتے
+ہٹے
+ہجے
+ہکے
+ہگے
+ہلے
+ہمے
+ہنے
+ہۓ
+ھبے
+ھپے
+ھتے
+ھٹے
+ھجے
+ھکے
+ھگے
+ھلے
+ھمے
+ھۓ
+بتہ
+بچہ
+بحہ
+بطہ
+بعہ
+بغہ
+بقہ
+بلہ
+بیہ
+پتہ
+پٹہ
+پشہ
+پکہ
+پلہ
+پنہ
+پیہ
+تبہ
+تحہ
+تکہ
+تگہ
+تمہ
+تنہ
+تیہ
+تہہ
+ثقہ
+ثیم
+جبہ
+جتہ
+جثہ
+جگہ
+بلہ
+بمہ
+جنہ
+جیہ
+جہہ
+چپہ
+چغہ
+چلہ
+چنہ
+حبہ
+حثہ
+حشہ
+حصہ
+حظہ
+حقہ
+حلہ
+حمہ
+حیہ
+ختہ
+حچہ
+حطہ
+حلہ
+حمہ
+حنہ
+سبہ
+سپہ
+سبہ
+سجہ
+سخہ
+سسہ
+سطہ
+سفہ
+سقہ
+سکہ
+سلہ
+سمہ
+سنہ
+سۂ
+سیہ
+شبہ
+شتہ
+شقہ
+شلہ
+شمہ
+شنہ
+شۂ
+شیہ
+صفہ
+صلہصیہ
+ضمہ
+ظیہ
+طبہ
+طفہ
+طقہطمہ
+طیہ
+طہ
+ظلہ
+ظمہ
+عشہ
+عصہ
+عقہ
+عنہ
+عیہ
+غصہ
+غلہ
+غنہ
+فتہ
+فحہ
+فضہ
+فطہ
+فظہ
+فعہ
+فقہ
+فلہ
+فیہ
+فہہ
+قبہ
+قتہ
+قجہ
+قشہ
+قصہ
+قعہ
+قفہ
+قلہ
+قمہ
+قیہ
+کشہ
+کلہ
+کنہ
+کیہ
+کہہ
+گتہ
+گجہ
+گلہ
+گنہ
+گیہ
+گہہ
+لبہ
+لتہ
+لثہ
+لجہ
+لچہ
+لحہ
+لخہ
+لسہ
+لصہ
+لعہ
+لغہ
+لفہ
+لقہ
+لکہ
+للہ
+لمہ
+لنہ
+لیہ
+لہہ
+لہ
+متہ
+مچہ
+مطہ
+معہ
+مکہ
+ملہ
+منہ
+میہ
+مہہ
+نبہ
+نجہ
+نچہ
+نحہ
+نسہ
+نشہ
+نقہ
+نکہ
+نگہ
+نیہ
+نہہ
+ئبہ
+ئتہ
+ئٹہ
+ئچہ
+ئشہ
+ئفہ
+ئقہ
+ئکہ
+ئلہ
+ئمہ
+ئنہ
+ئیہ
+یبہ
+یجہ
+یچہ
+یحہ
+یشہ
+یضہ
+یعہ
+یفہ
+یقہ
+یکہ
+یگہ
+یلہ
+یمہ
+ینہ
+ہبہ
+ہمہ
+ہنہ
+ہیہ
+بجہھ
+بچھ
+بکھ
+پتھ
+پٹھ
+پچھ
+پکھ
+تتھ
+تجھ
+جتھ
+جٹھ
+چبھ
+چکھ
+سبھ
+سٹھ
+سجھ
+سکھ
+شبھ
+کچھ
+گتھ
+گٹھ
+گچھ
+لتھ
+لجھ
+لچھ
+لکھ
+متھ
+مٹھ
+مجھ
+مچھ
+مکھ
+منھ
+نبھ
+نتھ
+نٹھ
+نجھ
+نچھ
+نکھ
+نگھ
+نبھ
+یچھ
+یکھ
+ہتھ
+ہنھ
+طمۃ
+بی
+سی
+ضی
+بعا
+تا
+سطا
+صلا
+ظتا
+فتا
+قتا
+لبا
+متا
+معا
+ملا
+یتا
+یحا
+یضا
+نیا
+ینا
+ہلا
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/4grams.txt b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/4grams.txt
new file mode 100644 (file)
index 0000000..e5494b7
--- /dev/null
@@ -0,0 +1,6316 @@
+ببیا
+ببھا
+بپتا
+بپھا
+بتتا
+بتخا
+بتسا
+بتغا
+بتلا
+بتما
+بتنا
+بتیا
+بتہا
+بتھا
+بٹتا
+بٹنا
+بٹیا
+بٹھا
+بجتا
+بجما
+بجنا
+بجیا
+بجھا
+بچتا
+بچکا
+بچلا
+بچنا
+بچیا
+بچھا
+بحسا
+بحفا
+بختا
+بخشا
+بخلا
+بخیا
+بستا
+بسٹا
+بسطا
+بسلا
+بسما
+بسنا
+بسیا
+بسہا
+بطحا
+بطخا
+بطلا
+بعضا
+بغیا
+بقضا
+بکتا
+بکسا
+بکشا
+بکلا
+بکما
+بکنا
+بکیا
+بکھا
+بگلا
+بگیا
+بگھا
+بلتا
+بلٹا
+بلحا
+بلطا
+بلغا
+بلفا
+بلقا
+بلکا
+بلگا
+بلما
+بلنا
+بلیا
+بلہا
+بمبا
+بمطا
+بمقا
+بمنا
+بنتا
+بنٹا
+بنجا
+بنکا
+بنگا
+بننا
+بنیا
+بیبا
+بیتا
+بیٹا
+بیجا
+بیچا
+بیسا
+بیشا
+بیضا
+بیطا
+بیعا
+بیکا
+بیگا
+بیلا
+بیما
+بینا
+بہتا
+بہکا
+بہلا
+بہنا
+بہیا
+بھپا
+بھتا
+بھٹا
+بھجا
+بھچا
+بھسا
+بھکا
+بھگا
+بھلا
+بھما
+بھنا
+بھیا
+پبیا
+پپیا
+پتتا
+پتلا
+پتنا
+پتیا
+پتھا
+پٹتا
+پٹخا
+پٹکا
+پٹلا
+پٹنا
+پٹیا
+پٹھا
+پجتا
+پجنا
+پچتا
+پچکا
+پچلا
+پچنا
+پچیا
+پچھا
+پخنا
+پخیا
+پسپا
+پستا
+پسما
+پسنا
+پشتا
+پشیا
+پغما
+پکتا
+پکما
+پکنا
+پکھا
+پگلا
+پلتا
+پلٹا
+پلکا
+پلنا
+پلیا
+پنیا
+پنجا
+پجچا
+پنچا
+پنسا
+پنگا
+پنیا
+پنہا
+پنھا
+پیپا
+پیتا
+پیٹا
+پیجا
+پیچا
+پیخا
+پیسا
+پیشا
+پیغا
+پیکا
+پیلا
+پیما
+پینا
+پہچا
+پہلا
+پہنا
+پہیا
+پھبا
+پھپا
+پھٹا
+پھچا
+پھسا
+پھکا
+پھلا
+تبخا
+تبیا
+تپتا
+تپکا
+تپنا
+تتکا
+تتلا
+تتھا
+تجتا
+تجلا
+تجنا
+تچنا
+تچتا
+تحتا
+تحیا
+تسلا
+تسما
+تشنا
+مملکتو
+تغما
+تغیا
+تفتا
+تقیا
+تکلا
+تکھا
+تگلا
+تلتا
+تلخا
+تللا
+تلنا
+تلیا
+تمبا
+تمثا
+تمغا
+تغیا
+تمنا
+تمہا
+تنبا
+تنتا
+تنکا
+تنگا
+تننا
+تنیا
+تنہا
+تیجا
+تیسا
+تیغا
+تیلا
+تیما
+تیہا
+تھپا
+تھتا
+تھجا
+تھکا
+تھلا
+تھما
+تھنا
+تھیا
+ٹپتا
+ٹپکا
+ٹپنا
+ٹٹیا
+ٹچیا
+ٹخنا
+ٹسکا
+ٹکتا
+ٹکسا
+ٹکلا
+ٹکنا
+ٹکیا
+ٹگلا
+ٹلتا
+ٹلنا
+ٹمنا
+ٹنٹا
+ٹنچا
+ٹنکا
+ٹنگا
+ٹننا
+ٹنیا
+ٹئیا
+ٹیبا
+ٹیپا
+ٹیکا
+ٹیلا
+ٹینا
+ٹہلا
+ٹہنا
+ٹھتا
+ٹھسا
+ٹھکا
+ٹھگا
+ٹھلا
+ٹھبنا
+ٹھیا
+ثعبا
+جبیا
+جبہا
+جبھا
+جپتا
+جپکا
+جپنا
+جتتا
+جتلا
+جتما
+جتنا
+جتیا
+جتہا
+جتھا
+جٹتا
+جٹنا
+جٹھا
+ججما
+جچتا
+جچنا
+جسکا
+جسما
+جفتا
+جفنا
+جکما
+چھپا
+چھٹا
+جگنا
+جگیا
+جگتا
+جلبا
+جلتا
+جلکا
+جلنا
+جلیا
+جمتا
+جلیا
+جمتا
+جمخا
+جمنا
+جنبا
+جنتا
+جنٹا
+جنکا
+جنجا
+جنگا
+جننا
+جنیا
+جیتا
+جیجا
+جیحا
+جیسا
+جیعا
+جیلا
+جینا
+جیہا
+جہتا
+جہلا
+جھبا
+جھپا
+جھتا
+جھجا
+جھکا
+جھلا
+جھما
+جھنا
+چبتا
+چبتا
+چبکا
+چبلا
+چبنا
+چبھا
+چبتا
+چپتا
+چپٹا
+چبکا
+چپلا
+چبپا
+چپنا
+چتتا
+چبھا
+چپتا
+چپکا
+چپلا
+چپنا
+چتتا
+چتلا
+چتنا
+چتھا
+چٹتا
+چٹکا
+چٹلا
+چٹنا
+چٹیا
+چٹھا
+چچکا
+چچیا
+چسپا
+چستا
+چسکا
+چسنا
+چغتا
+چقما
+چکتا
+چکٹا
+چکسا
+چکلا
+چکما
+چکنا
+چکھا
+چگتا
+چگلا
+چگنا
+چلپا
+چلتا
+چلکا
+چلنا
+چلیا
+چمپا
+چمٹا
+چمکا
+چمگا
+چملا
+چمن
+چنبا
+چنتا
+چنگا
+چننا
+چنیا
+چیپا
+چیتا
+چیخا
+چیچا
+چیلا
+چینا
+چہتا
+چہکا
+چہلا
+چھپا
+چھتا
+چھٹا
+چھجا
+چھچا
+چھکا
+چھلا
+چھما
+چھنا
+حتجا
+حتسا
+حتشا
+حتصا
+حتضا
+حتظا
+حتکا
+حتلا
+حتما
+حتیا
+حسنا
+حسنا
+حسیا
+حشیا
+حفظا
+حکما
+حمقا
+حنفا
+حیفا
+ختتا
+ختصا
+ختکا
+ختگا
+ختلا
+ختیا
+خچیا
+خشحا
+خشخا
+خشا
+خشما
+خصتا
+خصما
+خطبا
+خفتا
+خفقا
+خفنا
+خلجا
+خلخا
+خلفا
+خلکا
+خلیا
+خمیا
+خنسا
+خنگا
+خنا
+خنیا
+خیسا
+خیفا
+خیلا
+سبحا
+سبلا
+سبھا
+سپتا
+سپلا
+سپنا
+ستتا
+ستجا
+ستحا
+ستخا
+ستشا
+ستطا
+ستعا
+ستغا
+ستفا
+ستقا
+ستکا
+ستگا
+ستلا
+ستما
+ستنا
+ستیا
+ستہا
+ستھا
+سٹکا
+سٹنا
+سٹیا
+سٹھا
+سجتا
+سجلا
+سجنا
+سجھا
+سچتا
+سچلا
+سچنا
+سختا
+سستا
+سسکا
+سسنا
+سفنا
+سفیا
+سکتا
+سکشا
+سکلا
+سکنا
+سکیا
+سکھا
+سگھا
+سلتا
+سلطا
+سلفا
+سلکا
+سلگا
+سلما
+سلنا
+سلیا
+سمبا
+پنچا
+پنسا
+پنگا
+پننا
+پنیا
+پنہا
+پنھا
+پیپا
+پیتا
+پیچا
+پیخا
+پیسا
+پیشا
+پیغا
+پیکا
+پیلا
+پیما
+پینا
+پہچا
+پہلا
+پہنا
+پہیا
+پھپا
+پھچا
+پھسا
+پھکا
+پھلا
+تبخا
+تبیا
+تپتا
+تتکا
+تتلا
+تتھا
+تجتا
+تجلا
+تچتا
+تچنا
+تحتا
+تحیا
+تسلا
+تسما
+تشنا
+مملکتو
+تغما
+تغیا
+تفتا
+تقیا
+تکلا
+تکھا
+تگلا
+تلتا
+تلخا
+تللا
+تلنا
+تمبا
+تمثا
+تمغا
+تمہا
+تنتا
+تنکا
+تنگا
+تننا
+تنہا
+تیجا
+تیسا
+تیغا
+تیلا
+تیما
+تیہا
+تھپا
+تھتا
+تھجا
+تھکا
+تھلا
+تھما
+تھنا
+تھیا
+ٹپتا
+ٹپکا
+ٹٹیا
+ٹچیا
+ٹخنا
+ٹسکا
+ٹکتا
+ٹکسا
+ٹکلا
+سمپا
+سمٹا
+سمسا
+سمنا
+سمیا
+سنپا
+سنتا
+سنجا
+سنسا
+سنکا
+سنگا
+سننا
+سنیا
+سنہا
+سیپا
+سیتا
+سیٹا
+سیکا
+سیگا
+سیلا
+سیما
+سینا
+سئیا
+سیہا
+سہتا
+سہلا
+سہما
+سہنا
+شبکا
+شبہا
+شتعا
+شتکا
+شتما
+شتیا
+شتہا
+ششکا
+ششما
+شمشا
+شعبا
+شفتا
+شقیا
+شکبا
+شکشا
+شکلا
+شکنا
+شگتا
+شگنا
+شگیا
+شلتا
+شلیا
+شمشا
+شمنا
+شنیا
+شیبا
+شیخا
+شیطا
+شیلا
+شیما
+شہبا
+شہکا
+شہلا
+شہنا
+صطبا
+صطلا
+صفحا
+صفیا
+صفہا
+صلحا
+صمصا
+صمنا
+صنعا
+صہبا
+ضعفا
+ضگیا
+ضلکا
+ضمحا
+ضیحا
+طبقا
+طفلا
+طغیا
+طلبا
+طمنا
+طمیا
+طیبا
+طہما
+ظلما
+ظلہا
+عتبا
+عتصا
+عتقا
+عتکا
+عتلا
+عتما
+عتنا
+عثما
+عصیا
+عضلا
+عطیا
+عقلا
+علما
+علیا
+عنقا
+عنہا
+عیسا
+غپکا
+غثیا
+غصیا
+غلطا
+غلغا
+غلما
+غلیا
+غمنا
+غنیا
+غیبا
+غیلا
+فبہا
+فتتا
+فتخا
+فتگا
+فتنا
+فسطا
+فصحا
+فصلا
+فضلا
+فعلا
+فقہا
+فلپا
+فلما
+فنجا
+فنکا
+فیتا
+فیسا
+فیضا
+فیلا
+فیما
+فیہا
+فہما
+قبلا
+قتبا
+قتصا
+قتضا
+قتلا
+قتیا
+قحطا
+قسما
+قشلا
+قصبا
+قطعا
+قلپا
+قلفا
+قلقا
+قلما
+قلیا
+قمقا
+قیبا
+قیما
+کبجا
+کبلا
+کبھا
+کپتا
+کتسا
+کتشا
+کتفا
+کتکا
+کتلا
+کتنا
+کتیا
+کتھا
+کٹتا
+کٹکا
+کٹنا
+کٹیا
+کٹھا
+کجتا
+کجلا
+کچلا
+کچنا
+کچیا
+کچھا
+کستا
+کسلا
+کسما
+کسنا
+کسیا
+کشتا
+کشٹا
+کشیا
+کفتا
+کفنا
+کفیا
+ککیا
+کلپا
+کلتا
+کلچا
+کلسا
+کلکا
+کلما
+کلنا
+کلیا
+کلہا
+کلھا
+کمبا
+کمپا
+کمتا
+کمکا
+کملا
+کمنا
+کمیا
+کمہا
+کمنی
+کنسا
+کنعا
+کنکا
+کنگا
+کنیا
+کنہا
+کنھا
+کیسا
+کیکا
+کیلا
+کینا
+کیہا
+کہتا
+کہلا
+کہنا
+کھبا
+کھپا
+کھتا
+کھٹا
+کھجا
+کھچا
+کھسا
+کھکا
+کھلا
+کھما
+کھنا
+کھیا
+گبھا
+گپتا
+گمنا
+گپیا
+گپھا
+گتکا
+گتیا
+گتھا
+گٹکا
+گٹھا
+گجیا
+گجھا
+گچھا
+گستا
+گشتا
+گسٹا
+گستا
+گشتا
+گشٹا
+گلبا
+گفتا
+گگلا
+گلتا
+گلشا
+گلفا
+گلکا
+گلنا
+گلیا
+گلہا
+گمتا
+گمگا
+گملا
+گمنا
+گمیا
+گنتا
+گنٹا
+گنجا
+گنگا
+گننا
+گنیا
+گیپا
+گیشا
+گیلا
+گینا
+گیہا
+گہتا
+گہکا
+گہگا
+گہما
+گہنا
+گھپا
+گھتا
+گھٹا
+گھچا
+گھسا
+گیشا
+گھلا
+گھما
+گھنا
+گھیا
+لبخا
+لبفا
+لبقا
+لبنا
+لبیا
+لبھا
+لپٹا
+لپسا
+لپشا
+لپکا
+لپنا
+لپھا
+لتبا
+لتجا
+لتغا
+لتفا
+لتما
+لتیا
+لتہا
+لتھا
+لٹتا
+لٹکا
+لٹنا
+لٹیا
+لٹھا
+لجبا
+لجلا
+لجما
+لجنا
+لجہا
+لجھا
+لچتا
+لچکا
+لچنا
+لچھا
+لحجا
+لحسا
+لحقا
+لخلا
+لستا
+لسٹا
+لسقا
+لسلا
+لسنا
+لشتا
+لشفا
+لشکا
+لصبا
+لصتا
+لصفا
+لطلا
+لعبا
+لعتا
+لعشا
+لعلا
+لعنا
+لعیا
+لغفا
+لغیا
+لفتا
+لفقا
+لفگا
+لفلا
+لفن
+لفیا
+لقتا
+لقضا
+لقفا
+لقما
+لقنا
+لقیا
+لقہا
+لکتا
+لکسا
+لکسا
+لکلا
+لکما
+لکنا
+لکیا
+لکھا
+لگتا
+لگما
+لگنا
+للچا
+للع
+للغا
+للفا
+للقا
+للکا
+لمبا
+لمثا
+لمجا
+لمحا
+لمخا
+لمسا
+لمشا
+لمضا
+لمطا
+لمعا
+لمفا
+لمقا
+لمکا
+لملا
+لمنا
+لمیا
+لنبا
+لنجا
+لنسا
+لنکا
+لنگا
+لنیا
+لنہا
+لنھا
+لیبا
+لیپا
+لیٹا
+لیجا
+لیخا
+لیسا
+لیتا
+لیچا
+لیشا
+لیفا
+لیکا
+لیگا
+لیلا
+لیما
+لینا
+لہٹا
+لہکا
+لہلا
+لہنا
+للہا
+مبنا
+مبیا
+مپنا
+متتا
+متحا
+متجا
+متخا
+متسا
+متصا
+متعا
+متفا
+متشا
+متضا
+متغا
+متقا
+متگا
+متلا
+متما
+متنا
+متیا
+متہا
+متھا
+مٹتا
+مٹکا
+مٹنا
+مٹیا
+مٹھا
+مثقا
+مجلا
+مجید
+مجھا
+مچتا
+مچکا
+مچلا
+مچنا
+محبا
+محتا
+محلا
+مختا
+مستا
+مسکا
+مسلا
+مسما
+مسنا
+مشتا
+مشٹا
+مشعا
+مشغا
+مصبا
+مصفا
+مصلا
+معتا
+معلا
+معما
+معیا
+مغلا
+مفتا
+مقنا
+مقیا
+مقتا
+مکتا
+مکٹا
+مکنا
+مکھا
+مگنا
+ملتا
+ملبا
+ملیا
+ملجا
+ملکا
+ملما
+ملنا
+ملہا
+ممبا
+ممتا
+ممیا
+منتا
+منجا
+منسا
+منشا
+منقا
+منکا
+منیا
+منگا
+مننا
+منہا
+منھا
+میبا
+میتا
+میٹا
+میجا
+میخا
+میسا
+میثا
+میچا
+میشا
+میعا
+میقا
+میکا
+میگا
+میلا
+میما
+مینا
+مہبا
+مہتا
+مہکا
+مہما
+مہنا
+مہیا
+نبٹا
+نبسا
+نبیا
+نبھا
+نپتا
+نپٹا
+نپنا
+نتبا
+نتتا
+نتخا
+نتشا
+نتصا
+نتظا
+نتفا
+نتقا
+نتنا
+نتیا
+نتہا
+نتھا
+نٹتا
+نٹھا
+نثبا
+نثیا
+نجبا
+نجنا
+نجہا
+نجھا
+نچتا
+نچسا
+نچکا
+نچلا
+نچنا
+نچیا
+نچھا
+نحصا
+نحطا
+نخشا
+نخلا
+نستا
+نسقا
+نسنا
+نسیا
+نسکا
+نضبا
+نصفا
+نضما
+نظما
+نعطا
+نعطا
+نعقا
+نعکا
+نعما
+نعنا
+نغما
+نفتا
+نفسا
+نفطا
+نفعا
+نفکا
+نقسا
+نقشا
+نقصا
+نقضا
+نقلا
+نقیا
+نکتا
+نکسا
+نکشا
+نکلا
+نکما
+نکنا
+نکھا
+نگتا
+نگسا
+نگتا
+نگسا
+نگلا
+نگنا
+نگیا
+نگھا
+نلٹا
+نلکا
+نلیا
+نمٹا
+نمنا
+ننکا
+ننگا
+ننیا
+ننھا
+نیپا
+نیتا
+نیچا
+نیسا
+نیشا
+نیفا
+نیکا
+نیگا
+نیلا
+نینا
+نہتا
+نہٹا
+نہضا
+نہلا
+نہما
+ئٹیا
+ئچیا
+ئشگا
+ئشیا
+ئمقا
+ئیسا
+ئیکا
+ئیگا
+یتنا
+یتیا
+یٹنا
+یٹھا
+یحتا
+یختا
+یستا
+کٹھا
+یختا
+یسپا
+یشما
+یشیا
+یغما
+یکبا
+یکتا
+یکجا
+یکسا
+یکیا
+یکھا
+یلٹا
+یلعا
+یلغا
+یلیا
+یمیا
+ینٹا
+ینکا
+ہٹنا
+ینگا
+ینیا
+ہبلا
+ہپتا
+ہتما
+ہٹتا
+ہجہا
+ہچکا
+ہسپا
+ہسکا
+ہشتا
+ہشکا
+ہسیا
+ہفتا
+ہکتا
+ہکلا
+ہکنا
+ہگتا
+ہگنا
+ہلتا
+ہلجا
+ہلسا
+ہلکا
+ہلگا
+ہلنا
+ہلیا
+ہمتا
+ہمچا
+ہمسا
+ہمکا
+ہمنا
+ہمیا
+ہنجا
+ہنسا
+ہنشا
+ہیکا
+ہیکا
+ہنگا
+ہنما
+ہنیا
+ہیٹا
+ہیجا
+ہیگا
+ہیلا
+ہیما
+ہیہا
+ھپتا
+ھپنا
+ہتکا
+ھتگا
+ھتیا
+ھجیا
+ھچکا
+ھسکا
+ھکتا
+ھکنا
+ھلتا
+ھلکا
+ھلنا
+ھمکا
+ھملا
+ھنتا
+ھنسا
+ھنکا
+ھنگا
+ھننا
+ھنیا
+ھیکا
+ھیگا
+ھیلا
+ھیما
+بجیب
+بخیب
+بسبب
+بطیب
+بلمب
+تعجب
+تعصب
+تعقب
+تغلب
+تقلب
+ثعلب
+ثقیب
+جیکب
+چنکب
+حبیب
+حسیب
+حلیب
+خطیب
+سلیب
+شعیب
+شکیب
+صلیب
+طبیب
+ظہیب
+عجیب
+غبغب
+قضیب
+قطیب
+قلیب
+کٹمب
+لبلب
+لبیب
+لطلب
+لعجب
+لعیب
+لغیب
+لقلب
+لکتب
+مجیب
+محب
+مطلب
+مطلب
+مکتب
+مکعب
+منصب
+منیب
+مہلب
+مہیب
+نجیب
+نخشب
+نشیب
+نصیب
+نقیب
+نہیب
+چھیپ
+سٹمپ
+سکیپ
+کیمپ
+کھیپ
+گیلپ
+لچسپ
+لیمپ
+ہلک
+ہیمپ
+بلیت
+بجہت
+بسنت
+بصحت
+بعثت
+بعلت
+بعیت
+بکیت
+بلیت
+بنجو
+بیبت
+بیعت
+بہجت
+بہشت
+بھبت
+بھکت
+بھگت
+بھنت
+بھیت
+پٹیت
+پچیت
+پلیت
+پنگت
+تحیت
+تعنت
+تہمت
+جبلت
+چپیت
+چکنت
+چلنت
+چمپت
+چھیت
+حبیت
+حسنت
+حسیت
+حشمت
+حقیت
+حکمت
+حمیت
+خجلت
+خشیت
+خصلت
+خلقت
+خلیت
+سبقت
+سبیت
+سجیت
+سچیت
+سلیت
+سمبت
+سمیت
+سنگت
+سینت
+شفقت
+شکست
+شگفت
+صحبت
+صلیت
+صنعت
+طلعت
+طینت
+ظلمت
+عجلت
+عصمت
+عظمت
+غفلت
+غلظت
+غیبت
+فصلت
+قسمت
+قعیت
+قفیت
+قلت
+قلیت
+قیمت
+کسبت
+کلفت
+کلیت
+کمیت
+کنشت
+کنیت
+کیست
+کھپت
+کھیت
+گلگت
+لحیت
+لسنت
+لصلت
+لعبت
+لعنت
+لکنت
+لکھت
+لگنت
+لمست
+لمیت
+مثبت
+مچکتی
+محبت
+محنت
+مسکت
+مسیت
+مشقت
+مشیت
+معیت
+منبت
+منت
+منیت
+میت
+مہلت
+مہنت
+مہیت
+نجیت
+نچنت
+نچیت
+نخست
+نسبت
+نسیت
+نشست
+نصفت
+نعمت
+نکبت
+نکہت
+نکھت
+نگشت
+نگہت
+نمنٹ
+نیست
+نہفت
+ئینت
+یکھت
+ینیت
+ہبیت
+ہسیت
+ہلگت
+ہلیت
+ہمیت
+ہنیت
+ہیبت
+ہئیت
+بسکٹ
+بسیٹ
+بگٹٹ
+بیلٹ
+بینٹ
+بھگت
+بھیٹ
+پلیٹ
+پیسٹ
+پیکٹ
+پینٹ
+پھپٹ
+پھکٹ
+پھیٹ
+تلپٹ
+ٹمنٹ
+ٹیسٹ
+ٹینٹ
+ٹھیٹ
+جمنٹ
+جیکٹ
+جھپٹ
+چپیٹ
+چمیٹ
+چیکٹ
+چینٹ
+چھنٹ
+سٹنٹ
+سٹیٹ
+سفیٹ
+سلپٹ
+سلیٹ
+سلہٹ
+سمپٹ
+سمیٹ
+سینٹ
+شلسٹ
+فلیٹ
+فیلٹ
+کسکٹ
+کلسٹ
+کلیٹ
+کمیٹ
+کیسٹ
+منگٹ
+نٹسٹ
+نگھٹ
+نلسٹ
+نمنٹ
+ئجسٹ
+یٹنٹ
+سبید
+یجنٹ
+یکیٹ
+یگیٹ
+یلیٹ
+تحنث
+خبیث
+لبعث
+للیث
+مبحث
+مثلث
+مخنث
+مغیث
+بھیج
+پسیج
+تشنج
+جھنج
+چینج
+چھیج
+خلیج
+ستلج
+سٹیج
+سفنج
+سکنج
+قلنج
+کلنج
+منتج
+منضج
+مہیج
+نٹیج
+نگیج
+نہیج
+بینچ
+بھنچ
+بھیچ
+پہنچ
+بھنچ
+تبیچ
+سپیچ
+سکیچ
+سینچ
+قینچ
+کھپچ
+کھنچ
+کھیچ
+گھنچ
+ملیچ
+صبیح
+صحیح
+فصیح
+قبیح
+لفتح
+مسبح
+مسطح
+مسلح
+مسیح
+مصلح
+مفتح
+ملیح
+بطیخ
+لشیخ
+مسلخ
+مطبخ
+بتکد
+بجند
+بحمد
+بعید
+بعہد
+بقید
+بلند
+بلید
+بیلد
+بیند
+بھگد
+بھند
+بھید
+پسند
+پلند
+پلید
+پنشد
+پیکد
+پیند
+پھبد
+پھپد
+پھلد
+پھند
+تشہد
+تعبد
+تعہد
+تقید
+تمند
+تیند
+تہجد
+تہمد
+ٹھند
+جلند
+جمعد
+جمند
+جیند
+جھند
+چشید
+چقند
+چکند
+چمکد
+چمگد
+چنند
+چنید
+چیند
+چھند
+چھید
+حمید
+خشند
+خمید
+سبکد
+سپید
+سبید
+سپند
+ستبد
+ستعد
+ستقد
+سٹید
+سعید
+سفند
+سفید
+سکند
+سگند
+سمند
+سنگد
+سیند
+شعبد
+شقند
+شمعد
+شمند
+شمید
+شنند
+شنید
+شہید
+صعید
+ضلعد
+عبید
+عقید
+علمد
+عملد
+غمکد
+عملد
+فقید
+فیصد
+قصید
+قلمد
+قلند
+قلید
+کبید
+کتخد
+کشید
+مبتد
+کلند
+کلید
+کمید
+کنند
+کھند
+کھید
+گلبد
+گمشد
+گنبد
+گیند
+لبلد
+لبید
+لتصد
+لتعد
+لجعد
+لحمد
+لخلد
+لسجد
+لسید
+لصمد
+لعبد
+لعہد
+لقصد
+لقعد
+لقند
+لکند
+لکھد
+لمبد
+لمسد
+لمصد
+لمقد
+لمہد
+لہند
+متبد
+متحد
+متعد
+متقد
+متمد
+مجلد
+مجید
+محمد
+مخلد
+مسند
+مشہد
+معبد
+معتد
+مفسد
+مفید
+مقتد
+مقصد
+مقعد
+مقلد
+مقید
+ملحد
+ملید
+منجد
+منعد
+منہد
+میکد
+میند
+مہتد
+نبید
+نٹند
+نجید
+نشید
+نفید
+نکھد
+نگند
+نگہد
+نمکد
+نمند
+نیند
+نہند
+یقعد
+ہلحد
+ہیند
+بلیڈ
+بیکڈ
+بینڈ
+بھنڈ
+پگنڈ
+پلیڈ
+پینڈ
+پھسڈ
+پھلڈ
+تھنڈ
+ٹیچڈ
+ٹینڈ
+ٹھنڈ
+جھلڈ
+جھنڈ
+چینڈ
+چھنڈ
+سپنڈ
+سپیڈ
+سٹیڈ
+سکنڈ
+سلنڈ
+سینڈ
+فیلڈ
+کسنڈ
+کمنڈ
+کنگڈ
+کنیڈ
+کینڈ
+کھمڈ
+کھنڈ
+گینڈ
+گہگڈ
+گھنڈ
+لپنڈ
+لکنڈ
+لمنڈ
+لینڈ
+میکڈ
+محمڈ
+میگڈ
+مینڈ
+نٹنڈ
+نفیڈ
+ئٹیڈ
+ئمنڈ
+ئیٹڈ
+یپنڈ
+یٹنڈ
+یٹیڈ
+یجنڈ
+یشنڈ
+یگیڈ
+ینیڈ
+ہینڈ
+تلمذ
+کتحذ
+لہذ
+مبتذ
+نبیذ
+بپھر
+بتصر
+بتھر
+بٹلر
+بٹیر
+بجکر
+بجھر
+بچکر
+بچھر
+بحیر
+بحیر
+بستر
+بسفر
+بسیر
+بسہر
+بشیر
+بصیر
+بغیر
+بکثر
+بکیر
+بکھر
+بگیر
+بگھر
+بلغر
+بلگر
+بلیر
+بمپر
+بمتر
+بمہر
+بنجر
+بنسر
+بنصر
+بنظر
+بنکر
+بنگر
+بیٹر
+بیسر
+بیکر
+بینر
+بیئر
+بہتر
+بہیر
+بھسر
+بھقر
+بھکر
+بھگر
+بھیر
+پتھر
+پیٹر
+پچھڑ
+پکچر
+پکھر
+پمبر
+پنجر
+پنیر
+پنھر
+پیپر
+پیتر
+پیڑ
+پیسر
+پیشر
+پیکر
+پیلر
+پیہر
+پھسر
+پھیر
+تبحر
+تبصر
+تتہر
+تحیر
+تشتر
+تشکر
+تشنر
+تشہر
+پیٹر
+تعطر
+تغیر
+تفکر
+تفیر
+تکبر
+تکسر
+تکھر
+تلیر
+تمیر
+تنتر
+تنصر
+تنفر
+تیتر
+تیسر
+تہتر
+تھپر
+تھیر
+ٹیٹر
+ٹمبر
+ٹمپر
+ٹنبر
+ٹنگر
+ٹیٹر
+ٹیچر
+ٹیکر
+ٹیلر
+ٹھتر
+ٹھٹر
+ٹھکر
+ٹھمر
+ٹھیر
+ٹھہر
+جیتر
+جتیر
+جسٹر
+جعفر
+جگتر
+جگہر
+جلتر
+جلیر
+جمپر
+جمعر
+جمیر
+جنتر
+جننر
+جنجر
+جیکر
+جیلر
+جھبر
+جھجر
+جھمر
+جھیر
+چبکر
+چپکر
+چتبر
+چتیر
+چتھر
+چٹکر
+چچیر
+چلپر
+چلتر
+چنکر
+چلٹر
+چمبر
+چنبر
+چیکر
+چیئر
+چہیر
+چھپر
+چھتر
+چھیر
+چھنر
+چھہر
+حصیر
+حضیر
+حطیر
+حظیر
+حقیر
+حکمر
+حمیر
+خنصر
+خبیر
+خطیر
+خمیر
+خنجر
+خنصر
+خیبر
+سپیر
+سپہر
+ستبر
+ستتر
+ستخر
+ستغر
+ستفر
+ستقر
+ستکر
+ستمر
+ستھر
+سٹلر
+سٹیر
+سسٹر
+سعیر
+سفیر
+سکتر
+سکھر
+سلفر
+سلہر
+سمبر
+سمیر
+سنتر
+سنٹر
+سنجر
+سنچر
+سنسر
+سنکر
+سنگر
+سنہر
+سفیر
+سکتر
+سکھر
+سلفر
+سلہر
+سمبر
+سمیر
+سنتر
+سنجر
+سنکر
+سیکر
+سنچر
+سنسر
+سنگر
+سنہر
+سیسر
+سیگر
+سیلر
+سیمر
+سینر
+سہسر
+شبگر
+شبیر
+شنجر
+شعیر
+شکیر
+شنجر
+شنکر
+شنگر
+شیفر
+شیکر
+شیئر
+شہپر
+شہیر
+صغیر
+صفیر
+ضمیر
+طبغر
+طستر
+طشتر
+طمطر
+ظہیر
+عبقر
+عبیر
+عبہر
+عبتر
+عسکر
+عسیر
+عشیر
+عمیر
+عنبر
+عنصر
+عنقر
+غفیر
+فطیر
+فقیر
+فلتر
+فلٹر
+فلیر
+فیچر
+فیسر
+قصیر
+قلمر
+قمطر
+قیصر
+کبیر
+کتھر
+کٹلر
+کٹہر
+کٹھر
+کثیر
+کچہر
+کسپر
+کستر
+کسٹر
+کسکر
+کسگر
+کسیر
+کشنر
+کلچر
+کلنسر
+کلیر
+کمبر
+کمتر
+کمسر
+کمیر
+کنٹر
+کنجر
+کنسر
+کنفر
+کنکر
+کنگر
+کئیر
+کیپر
+کیتر
+کیسر
+کیفر
+کیکر
+کیلر
+کیمر
+کیئر
+کہتر
+کھپر
+کھتر
+کھسر
+کھیر
+گبھر
+گٹکر
+گٹھر
+گستر
+گلبر
+گلسر
+گلہر
+گنجر
+گیبر
+گیسر
+گیلر
+گہیر
+گبھر
+گھتر
+گھگر
+گھیر
+لبحر
+لبحر
+لبقر
+لبیر
+لبہر
+لپسر
+لتحر
+لتصر
+لتغر
+لتنر
+لیتر
+لتھر
+لٹیر
+لجبر
+لجیر
+لحجر
+لحشر
+لخمر
+لحمر
+لخیر
+لسٹر
+لشتر
+لشعر
+لشکر
+لصخر
+لعصر
+لعمر
+لفجر
+لفطر
+لفقر
+لقطر
+لقمر
+لکبر
+لکٹر
+لکچر
+لکسر
+لکیر
+لگیر
+لمبر
+لمعر
+لمکر
+لنسر
+لنصر
+لنظر
+لنگر
+لنہر
+لیبر
+لیٹر
+لیجر
+لیحر
+لیسر
+لکیر
+لیگر
+لیئر
+مبشر
+مبصر
+مپیر
+متبر
+متحر
+متشر
+متصر
+متضر
+متفر
+متمر
+متیر
+متہر
+مٹکر
+مثمر
+مجیر
+مچیر
+مچھر
+محتر
+محشر
+محضر
+محقر
+محیر
+مخبر
+مختر
+مخیر
+مستر
+مسٹر
+مسخر
+مسطر
+مسکر
+مسمر
+مسیر
+مسہر
+مشتر
+مشجر
+مشعر
+مشنر
+مشیر
+مضطر
+مضمر
+مظہر
+مظفر
+معبر
+معتر
+معطر
+معمر
+مغفر
+مغیر
+مفتر
+مفسر
+مضطر
+مفکر
+مفلر
+مقبر
+مقشر
+مقطر
+مکسر
+ملٹر
+ملکر
+ملیر
+ممبر
+ممیر
+منبر
+منٹر
+منجر
+منحر
+منخر
+منسر
+منکر
+منتر
+منخر
+منشر
+منصر
+منظر
+منفر
+منگر
+منیر
+منہر
+مئیر
+میٹر
+میجر
+میسر
+میکر
+میشر
+میگر
+میئر
+میہر
+مہتر
+نبتر
+نسٹر
+نبیر
+نبھر
+نبہر
+نتھر
+نٹیر
+نجیر
+نحضر
+نستر
+نسفر
+نسلر
+نسہر
+نشتر
+نصیر
+نضیر
+نظیر
+نفیر
+نکیر
+نکھر
+نگتر
+نگھر
+نمبر
+نمیر
+ننگر
+ننیر
+نیچر
+نیکر
+نیگر
+نیمر
+نئیر
+نیہر
+نہتر
+ئبیر
+ئسچر
+ئسکر
+ئمبر
+ئمنر
+ئمیر
+ئنگر
+ئیٹر
+ئیجر
+ئیگر
+ئیمر
+یتھر
+ییٹر
+یسٹر
+یسیر
+یشنر
+یکٹر
+یکسر
+یکطر
+یمپر
+یمنر
+یمئر
+ینٹر
+ینجر
+ینگر
+ینیر
+ہٹکر
+ہٹلر
+ہسٹر
+ہلبر
+ہمبر
+ہمسر
+ہنٹر
+ہیٹر
+ہیلر
+بتکڑ
+بچھڑ
+بنگڑ
+بنکڑ
+بیہڑ
+بھسٹر
+بھیڑ
+پچھر
+پنجڑ
+پنگڑ
+پنیڑ
+پیکڑ
+پیلڑ
+پینڑ
+پھسڑ
+پھکڑ
+پھگڑ
+پھیڑ
+تیتڑ
+تتہڑ
+تکھڑ
+تگیڑ
+تیلڑ
+تھپڑ
+تھمڑ
+تھیڑ
+جھکڑ
+جھگڑ
+جھلڑ
+چتھڑ
+چیپڑ
+چیچڑ
+چھبڑ
+چھپڑ
+چھکڑ
+چھلڑ
+چھیڑ
+سکیڑ
+سگھڑ
+سیکڑ
+شیخڑ
+غنگڑ
+کچکڑ
+کلچڑ
+کلھڑ
+کنجڑ
+کیچڑ
+کیکڑ
+کھچڑ
+کھیڑ
+گٹھڑ
+گنجڑ
+گیلڑ
+لبھڑ
+لتھڑ
+لکھڑ
+لمبڑ
+کنگڑ
+لیبڑ
+لیجڑ
+لیچڑ
+لیکڑ
+مسیر
+مکھڑ
+نبیڑ
+نبھڑ
+نچسڑ
+نکھڑ
+ہتکڑ
+ہیجڑ
+ہیکڑ
+بعجز
+بلٹز
+بیجز
+بیگز
+بینز
+پلیز
+تمیز
+ٹیمز
+جہیز
+چھیز
+ستلز
+ستمز
+ستیز
+شمیز
+سیلز
+طبعز
+کتحذ
+کنگز
+کنیز
+گلیز
+گیمز
+لمعز
+لیگز
+لیمز
+لینز
+لہمز
+مستز
+معتز
+معجز
+ملتز
+ممیز
+منیز
+منہز
+میگز
+نپلز
+نگیز
+ننگز
+نینز
+ئینز
+یٹمز
+یٹیز
+یشنز
+یلیز
+یمیز
+ہلیز
+ببیس
+بتیس
+بلیس
+بنفس
+بیطس
+بیکس
+بھلس
+بھیس
+پچیس
+پلٹس
+پلیس
+پیپس
+پتیس
+پیٹس
+پیلس
+پینس
+پھپس
+پھلس
+پھنس
+پھیس
+تجسس
+تنفس
+تئیس
+ٹیکس
+ٹیمس
+ٹینس
+ٹھنس
+ٹھیس
+جبیس
+جسٹس
+جلیس
+جیمس
+جھلس
+چکلس
+چنٹس
+چیفس
+خسیس
+خمیس
+سپیس
+سسکس
+سلیس
+سیکس
+فلپس
+فیکس
+قبیس
+ققنس
+کتیس
+کٹلس
+کسیس
+کتیس
+کھنس
+کھیس
+گیٹس
+گھٹس
+لٹمس
+لشمس
+لعکس
+لمبس
+لنفس
+لینس
+مجلس
+مخمس
+مفلس
+منٹس
+میپس
+میٹس
+میکس
+مینس
+نتیس
+نینس
+نفیس
+ئسنس
+ئیٹس
+ٹیمس
+یفنس
+یکٹس
+یلس
+یننس
+ہبیس
+ہنیں
+ھنیس
+بخشش
+بنگش
+بینش
+پیچش
+تعیش
+جنبش
+جنیش
+چکلش
+حشیش
+خشخش
+کشمش
+گنیش
+لتمش
+لعطش
+مفتش
+مقیش
+مینش
+مہیش
+نگلش
+ہمیش
+تخلص
+تشخص
+خصیص
+قمیص
+لقصص
+مختص
+مخلص
+مفیص
+ملخص
+حضیض
+سعفض
+مفیض
+نقیض
+بسیط
+تحفظ
+تسلط
+ستخط
+محیط
+مسقط
+مسلط
+مقسط
+تحفظ
+تلفظ
+حفیظ
+غلیظ
+للفظ
+مغلظ
+بلیع
+تتبع
+تشیع
+تصنع
+تضیع
+تمتع
+جمیع
+سمیع
+شفیع
+شنیع
+لجمع
+لطبع
+لطیع
+مبلع
+مبیع
+متبع
+مجمع
+مسجع
+مطبع
+مطلع
+مطمع
+مطیع
+مقطع
+ملمع
+منبع
+بلیغ
+مبلغ
+تعفف
+تکلف
+ثقیف
+حلیف
+حنیف
+خفیف
+ضعیف
+عفیف
+فکیف
+کثیف
+کسیف
+لخیف
+لسیف
+لصف
+لطیف
+لکہف
+متصف
+مخفف
+مصحف
+مصنف
+مضعف
+مکلف
+منصف
+نچیف
+نحیف
+نظیف
+یلیف
+تبلق
+تعشق
+تعلق
+تعمق
+تغلق
+تملق
+خلیق
+سحق
+شفیق
+طبلق
+عتیق
+عقیق
+عمیق
+عنیق
+لعلق
+لقلق
+لئیق
+مبیق
+متفق
+محقق
+مشتق
+مشفق
+مطلق
+معلق
+مغلق
+ملحق
+منطق
+نبیق
+ہنبق
+بٹھک
+بلیک
+بیجک
+بیشک
+بینک
+بھبک
+بھپک
+بھٹک
+بھچک
+بھسک
+بھلک
+بھنک
+بھیک
+پبلک
+پشتک
+پشمک
+پکنک
+پیٹک
+پیچک
+پینک
+پھپک
+پھبک
+پھٹک
+پھسک
+پھلک
+پھنک
+تشکک
+تمثک
+تنبک
+تہتک
+تھپک
+تھلک
+ٹیٹک
+ٹیلک
+ٹینک
+ٹھٹک
+بھکل
+ٹھسک
+ٹھمک
+ٹھنک
+ٹھیک
+جسٹک
+جھپک
+جھٹک
+جھجک
+جھلک
+جھمک
+چبلک
+چشمک
+چمبک
+چنبک
+چیٹک
+چیچک
+چیلک
+چھپک
+چھپک
+چھٹک
+چھلک
+چھمک
+چھنک
+چھیک
+خشتک
+سپلک
+سلنگ
+سلیک
+سنیک
+سینک
+صحنک
+طبلک
+علیک
+عینک
+غلطک
+کٹسک
+کلنک
+کیتک
+کھٹک
+کھسک
+کھنک
+گھٹک
+لبیک
+لمپک
+لملک
+مستک
+مسلک
+مشبک
+مضحک
+ممسک
+منسک
+میٹک
+میجک
+مینک
+مہلک
+نتھک
+نیلک
+نیمک
+یکنک
+ینفک
+بتنگ
+بٹنگ
+بجنگ
+بکنگ
+بلنگ
+بیلگ
+بینگ
+بھنگ
+بھیگ
+پتنگ
+پلنگ
+پلیگ
+پینگ
+تفنگ
+تلنگ
+تھلگ
+ٹلنگ
+ٹینگ
+جگمگ
+جننگ
+جھنگ
+چننگ
+چینگ
+سٹنگ
+سسنگ
+سلنگ
+سینگ
+شپنگ
+شلنگ
+علیگ
+فٹنگ
+فلیگ
+کٹنگ
+کسنگ
+کلنگ
+کننگ
+کھنگ
+گینگ
+لفنگ
+لہنگ
+متنگ
+ملنگ
+نٹنگ
+نچنگ
+نہنگ
+ئپنگ
+ئٹنگ
+ئلنگ
+ئننگ
+یٹنگ
+یسنگ
+یلنگ
+یننگ
+ہینگ
+ھینگت
+بخیل
+بسمل
+بشکل
+بعمل
+بفضل
+بکیل
+بکھل
+بگیل
+بلبل
+بمثل
+بنکل
+بنیل
+بیقل
+بیکل
+بھسل
+بھگل
+بھیل
+پتیل
+پتھل
+پٹیل
+پگھل
+پنسل
+پنگل
+پیبل
+پینل
+پیپل
+پیتل
+پیکل
+پھسل
+پھیل
+تجمل
+تحمل
+تخیل
+تشکل
+تعطل
+تعقل
+تفصل
+تفضل
+تکسل
+تمثل
+تنقل
+پٹیل
+ثقیل
+ٹگھل
+ٹیبل
+ٹیکل
+ٹھیل
+ثقیل
+جلیل
+جمیل
+جنبل
+جنٹل
+جنگل
+جیکل
+جھٹل
+جھجل
+جھیل
+چتھل
+چٹیل
+چسکل
+چلچل
+چنبل
+چنچل
+چنگل
+چیپل
+چیتل
+چینل
+چھیل
+حنبل
+خلیل
+سبیل
+ستیل
+سٹیل
+سطبل
+سکیل
+سگنل
+سلسل
+سمپل
+سمگل
+سنبل
+سنچل
+سنکل
+سنگل
+سیمل
+سہگل
+سہیل
+شکیل
+صطبل
+صلصل
+صیقل
+طفیل
+عقیل
+علیل
+غفیل
+غلیل
+فتیل
+فصیل
+فضیل
+فلفل
+فیشل
+فیصل
+قبیل
+قتیل
+قلقل
+قلیل
+قضل
+کتھل
+کٹھل
+کچیل
+کحیل
+کفیل
+کلبل
+کلکل
+کلیل
+کمبل
+کنجل
+کیبل
+کیچل
+کیسل
+کیہل
+کھٹل
+کھکل
+کھیل
+گٹھل
+گلگل
+گھچل
+لحیل
+لعقل
+لفصل
+لفضل
+لفعل
+لفیل
+لکحل
+لکفل
+للیل
+لمثل
+لنٹل
+لنجل
+لنمل
+لیبل
+لیگل
+متصل
+مجمل
+محصل
+محفل
+محلل
+محمل
+محیل
+مختل
+مخمل
+مسہل
+مشعل
+مشکل
+معتل
+معجل
+معطل
+مفصل
+مقبل
+مقتل
+مقفل
+مکمل
+ململ
+ممثل
+منگل
+میبل
+میٹل
+مینل
+مہمل
+نبیل
+نتھلا
+نٹھل
+نجیل
+نچھل
+نسپل
+نشیل
+نکیل
+نیمل
+ئٹیل
+ئیکل
+یٹیل
+یجنل
+یشنل
+یلغا
+یلیل
+ینٹل
+ینجل
+ینمل
+ہلبل
+ہلچل
+ہیکل
+ہیگل
+ھکیل
+ھلمل
+بچشم
+بحکم
+بستم
+بعلم
+بقلم
+بلغم
+تمیم
+بیچم
+بیگم
+بھسم
+پچھم
+پشتم
+پنجم
+پنچم
+پیتم
+پیہم
+تبسم
+تحکم
+تظلم
+تعلم
+تفہم
+تکلم
+تمیم
+تیمم
+تھکم
+جپسم
+حجیم
+جسیم
+جنتے
+جنگم
+جہلم
+جہنم
+جھلم
+چیخم
+چہلم
+چھلم
+حطیم
+حکیم
+حلکم
+حلیم
+حمیم
+سٹیم
+سسٹم
+سقیم
+سکیم
+سکھم
+سلیم
+سنگم
+سہیں
+شبنم
+شحیم
+شلجم
+شلغم
+شمیم
+شیشم
+صلعم
+صمیم
+ضخیم
+ضیغم
+طلسم
+ظلکم
+ظلہم
+عظیم
+عقیم
+علیم
+عمیم
+عنہم
+غنیم
+فہیم
+قسیم
+قلیم
+کسٹم
+کشتم
+کلیم
+کلہم
+کھلم
+کھیم
+گتھم
+گشتم
+گلیم
+گھسم
+لجہم
+لحکم
+لحیم
+لشتم
+لشٹم
+لعلم
+لفہم
+لقلم
+للحم
+للہم
+لنجم
+لئیم
+لیئم
+مبہم
+مجسم
+محکم
+مخیم
+مسلم
+مصمم
+مظلم
+معجم
+معظم
+معلم
+مغلم
+مقیم
+ملہم
+منجم
+منضم
+منظم
+منعم
+منیم
+میٹم
+میثم
+نسیم
+نعیم
+نگھم
+نیلم
+ئیٹم
+یتیم
+یلکم
+یمیم
+ینیم
+ہشتم
+ہفتم
+ہلکم
+ہنگم
+ھنگم
+بلین
+بجھن
+بچپن
+بچھن
+بحسن
+بضین
+بعین
+بقین
+بلبن
+بلین
+بئین
+بیٹن
+بیسن
+بیشن
+بیگن
+بیلن
+بہمن
+بھجن
+بھین
+پٹکن
+پٹین
+پچپن
+پچھم
+پشین
+پکین
+پلٹن
+پلین
+پنشن
+پیلن
+پھبن
+پھٹن
+پھکن
+پھننا
+پھین
+تپکن
+تسنن
+تعفن
+تعین
+تفنن
+تیقن
+تیلن
+تھکن
+ٹپکن
+ٹنگن
+ٹیشن
+ٹیکن
+ٹھکن
+ثمین
+ثنین
+جبین
+جیٹن
+جھکن
+جھلن
+جھین
+چبھن
+چپکن
+چپلن
+چپلن
+چٹخن
+چسکن
+چکٹن
+چلتن
+چلمن
+چمٹن
+چنین
+چیپن
+چھپن
+چھٹن
+چھکن
+چھنن
+چھین
+حبشن
+حسین
+حصین
+حفتن
+حقین
+حمن
+حنین
+سبین
+سپلن
+سپین
+ستین
+سٹین
+سکشن
+سکین
+سلگن
+سلین
+سمین
+سیٹن
+سیشن
+سیگن
+سیلن
+شفین
+صمین
+ضعین
+ظمین
+غضبن
+فطین
+فظین
+فقین
+فیشن
+فیمن
+کٹھن
+کلتن
+کلمن
+کلین
+کمسن
+کمین
+کنچن
+کنگن
+کنلن
+کیبن
+کیچن
+کیشن
+گلبن
+گلشن
+گیلن
+گیمن
+گھٹن
+گھسن
+لپٹن
+لٹکن
+لجین
+لجھن
+لچکن
+لچھن
+لحسن
+لحین
+لعین
+لفین
+لقین
+لکجن
+لکھن
+لمین
+لنکن
+لیٹن
+لیشن
+لیکن
+لیمن
+لینن
+لہسن
+مبین
+متحن
+متین
+مٹھن
+مثمن
+محسن
+مسکن
+مشین
+معجن
+معین
+مقنن
+مکمن
+مکین
+مکھن
+مگین
+ملٹن
+ملین
+ممکن
+منچن
+منمن
+منین
+میشن
+میگن
+میمن
+مہین
+نپین
+نٹین
+نجمن
+نچھن
+نشین
+نچھن
+نطین
+نگٹن
+نگین
+نیشن
+ئبین
+ئقین
+ئلین
+یشین
+یفین
+یقین
+یکشن
+یلین
+یمین
+ہستن
+ہلین
+ہنگن
+ہیگن
+ہیلن
+بتیں
+بٹیں
+بجیں
+پسیں
+بچیں
+پسیں
+بقیں
+بکیں
+بلیں
+بنیں
+بہیں
+پتیں
+پٹیں
+پجیں
+پچیں
+پشیں
+پکیں
+پلیں
+پئیں
+پھیں
+تپیں
+تتیں
+تچیں
+تشیں
+تکیں
+تگیں
+تلیں
+تنیں
+تئیں
+تھیں
+ٹپیں
+ٹتیں
+ٹکیں
+ٹلیں
+ٹھیں
+ثتیں
+جبیں
+جتیں
+جٹیں
+جپیں
+جچیں
+جگیں
+جلیں
+جمیں
+جنیں
+جئیں
+جھیں
+چپیں
+چبیں
+چتیں
+چٹیں
+چسیں
+چقیں
+چکیں
+چگیں
+چلیں
+چنیں
+چئیں
+چھیں
+حتیں
+حٹیں
+حسیں
+حنیں
+خسیں
+ستیں
+سچیں
+سشیں
+سکیں
+سلیں
+سمیں
+سنیں
+سہیم
+ششیں
+شقیں
+صحین
+صفیں
+صلیں
+ظتیں
+عتیں
+عظیں
+فتیں
+فطیں
+فمیں
+قتیں
+قمیں
+کتیں
+کٹیں
+کجیں
+کچیں
+کسیں
+کلیں
+کمیں
+کہیں
+کھیں
+گپیں
+گتیں
+گچیں
+گلیں
+گمیں
+گنیں
+گئیں
+لتیں
+لٹیں
+لچیں
+لفیں
+لکیں
+لگیں
+لنیں
+لیکن
+مبیں
+مٹیں
+مجیں
+متیں
+مچیں
+مسیں
+مکیں
+مگیں
+ملیں
+مہیں
+نپیں
+نتیں
+نٹیں
+نجیں
+نخیں
+نچیں
+نسیں
+نشیں
+نقیں
+نگیں
+نہیں
+نھیں
+ئٹیں
+ئشیں
+ئفیں
+ئلیں
+ئنیں
+یتیں
+یثیں
+یخیں
+یفیں
+یکیں
+یقیں
+یگیں
+یلیں
+یمیں
+ہپیں
+ہتیں
+ہٹیں
+ہشیں
+ہکیں
+ہگیں
+ہلیں
+ہمیں
+ہنیں
+ہئیں
+ھکیں
+ھلیں
+ھنیں
+بپتو
+بتیو
+بتھو
+بٹلو
+بٹنو
+بٹیو
+بٹھو
+بجنو
+بجھو
+بچتو
+بچکو
+بچلو
+بچیو
+بچھو
+بحثو
+بحصو
+بحضو
+بختو
+بخشو
+بخیو
+بشمو
+بشنو
+بطخو
+بعضو
+بعنو
+بغچو
+بغلو
+بقچو
+بقعو
+بکٹو
+بکسو
+بکلو
+بکیو
+بگلو
+بگھو
+بلبو
+بلٹو
+بلتو
+بلکو
+بلو
+بلیو
+بلہو
+بمبو
+بنٹو
+بنجو
+بنسو
+بنکو
+بیتو
+بیٹو
+بیجو
+بیحو
+بیچو
+بیسو
+بیضو
+بیکو
+بیگو
+بیلو
+بیمو
+بینو
+بیہو
+بہبو
+بہتو
+بہکو
+بہلو
+بہنو
+بھبو
+بھٹو
+بھپو
+بھجو
+بھچو
+بھسو
+بھکو
+بھگو
+بھلو
+بھنو
+پئپو
+پتلو
+پٹخو
+پٹکو
+پٹیو
+پٹھو
+پچتو
+پچکو
+پچھو
+پختو
+پستو
+پسلو
+پسیو
+پشتو
+پشیو
+پکھو
+پگلو
+پلٹو
+پلکو
+پمپو
+پنپو
+پنجو
+پنگو
+پیپو
+پیٹو
+پیچو
+پیسو
+پیشو
+پیکو
+پیلو
+پیمو
+پیئو
+پیہو
+پہلو
+پہنو
+پہیو
+پھبو
+پھپو
+پھٹو
+پھچو
+پھکو
+پھچو
+پھگو
+پھلو
+پھنو
+تپکو
+تتلو
+تحفو
+تختو
+تسلو
+تسمو
+تسنو
+تکیو
+تکھو
+تمبو
+تمغو
+تمکو
+تنبو
+تنخو
+تنکو
+تیٹو
+تیجو
+تیسو
+تیغو
+تیلو
+تیمو
+تینو
+تھجو
+تھکو
+تھلو
+تھمو
+تھنو
+تھیو
+ٹپکو
+ٹخنو
+ٹکٹو
+ٹکلو
+ٹکیو
+ٹنگو
+ٹیپو
+ٹیٹو
+ٹیسو
+ٹیکو
+ٹیشو
+ٹیگو
+ٹیلو
+ٹیمو
+ٹہلو
+ٹہنو
+ٹھسو
+ٹھکو
+ٹھگو
+ٹھلو
+ٹھنو
+ٹھئو
+ٹھیو
+ثیقو
+ثیمو
+جبھو
+جتنو
+جستو
+جسکو
+جسمو
+جشنو
+جگتو
+جگنو
+جگہو
+جلسو
+جمبو
+جملو
+جمہو
+جنتو
+جنجو
+جنسو
+جنگو
+جنمو
+جنیو
+جنہو
+جیبو
+جیپو
+جیتو
+جیحو
+جیسو
+جیشو
+جیلو
+جینو
+جیہو
+جہتو
+جھکو
+جھلو
+جھمو
+جھنو
+چبکو
+چبلو
+چبھو
+چپٹو
+چپکو
+چپلو
+چتلو
+چٹخو
+چٹکو
+چٹلو
+چٹیو
+چٹھو
+چچیو
+چسکو
+چسنو
+چشمو
+چسنو
+چکٹو
+چکلو
+چکمو
+چکنو
+چکیو
+چکھو
+چلغو
+چلمو
+چلھو
+چمبو
+چمٹو
+چمپو
+چمچو
+چمکو
+چمنو
+چنٹو
+چنیو
+چیپو
+چیتو
+چیخو
+چیکو
+چیلو
+چہکو
+چہنو
+چھپو
+چھتو
+چھٹو
+چھجو
+چھکو
+چھلو
+چھنو
+حبتو
+حجتو
+حجلو
+حشتو
+حشیو
+حکمو
+حلفو
+حلقو
+حلیو
+حمتو
+حمقو
+حملو
+حیتو
+حیلو
+ختنو
+خشبو
+خشنو
+خشیو
+خصمو
+خصیو
+خطبو
+خلتو
+خلفو
+خلقو
+خلیو
+خمیو
+خیمو
+سبعو
+سبغو
+سبکو
+سپنو
+ستخو
+ستصو
+ستکو
+ستلو
+سٹکو
+سٹلو
+سٹیو
+سٹھو
+سجنو
+سخنو
+سخیو
+سسکو
+سطحو
+سعتو
+سفلو
+سقمو
+سکتو
+سکیو
+سلحو
+سکیو
+سکھو
+سگنو
+سلجو
+سلفو
+سلکو
+سلگو
+سلیو
+سمپو
+سمتو
+سمٹو
+سمنو
+سنبو
+سنپو
+سنتو
+سنجو
+سنکو
+سنگو
+سنلو
+سیبو
+سیٹو
+سیخو
+سیسو
+سیکو
+سیلو
+سیمو
+سینو
+سہلو
+سہمو
+شبخو
+شبکو
+شبہو
+شتیو
+شخصو
+شعبو
+شغلو
+شفٹو
+شکلو
+شکنو
+شگنو
+شلفو
+شمشو
+شمعو
+شملو
+شمنو
+شنٹو
+شنیو
+شیخو
+شیشو
+شیعو
+شیلو
+شہتو
+شہسو
+صبحو
+صبہو
+صحتو
+صحنو
+صفتو
+صفحو
+صلو
+صلیو
+صلا
+صنفو
+صیتو
+صیغو
+صیلو
+صیہو
+ضگیو
+ضلعو
+طبقو
+طبلو
+طشتو
+طعنو
+طمیو
+طنبو
+طیسو
+ظمیو
+ظیفو
+عصفو
+عظمو
+عفتو
+عقلو
+عکسو
+علتو
+علمو
+عملو
+عنفو
+عیبو
+عیتو
+عیسو
+غبتو
+غبیو
+غلبو
+غنچو
+فتحو
+فتنو
+فسٹو
+فصلو
+فضلو
+فعتو
+فعلو
+فغفو
+فلمو
+فلیو
+فیتو
+فیسو
+فیقو
+فیلو
+فینو
+فہمو
+قبضو
+قبلو
+قتلو
+قتیو
+قسطو
+قسمو
+قشقو
+قصبو
+قضیو
+قطعو
+قلتو
+قلعو
+قلمو
+قلیو
+قیبو
+قیطو
+قیفو
+قیقو
+قیلو
+کبھو
+کتبو
+کتنو
+کتیو
+کتھو
+کٹکو
+کٹیو
+کٹھو
+کچکو
+کجکو
+کجلو
+کچلو
+کچھو
+کتھو
+کستو
+کسٹو
+کسفو
+کسلو
+کشتو
+کشٹو
+کشکو
+کشیو
+کعتو
+کفنو
+ککھو
+کلبو
+کلتو
+کلپو
+کلثو
+کلچو
+کلکو
+کلمو
+کلیو
+کلہو
+کمبو
+کمپو
+کمجو
+کمخو
+کملو
+کمیو
+کنبو
+کنٹو
+کنجو
+کنسو
+کنکو
+کیبو
+کنگو
+کیپو
+کیتو
+کیچو
+کیسو
+کیکو
+کیلو
+کیمو
+کینو
+کہلو
+کھپو
+کھتو
+کھٹو
+کھجو
+کھچو
+کھسو
+کھکو
+کھلو
+کھنو
+کھیو
+گپکو
+گتھو
+گٹکو
+گٹھو
+گچھو
+گسٹو
+گلگو
+گلیو
+گملو
+گنجو
+گنگو
+گنیو
+گیتو
+گیسو
+گیلو
+گیمو
+گیہو
+گہکو
+گہنو
+گھپو
+گھٹو
+گھجو
+گھچو
+گھسو
+گھگو
+گھلو
+گھنو
+گھیو
+لبمو
+لپٹو
+لپکو
+لتصو
+لتیو
+لٹکو
+لٹیو
+لثبو
+لجھو
+لچکو
+لچھو
+لحتو
+لحظو
+لحقو
+لحکو
+لخصو
+لسٹو
+لسطو
+لسلو
+لشتو
+لشعو
+لشکو
+لصبو
+لطو
+لعفو
+لعلو
+لعمو
+لغتو
+لغفو
+لغنو
+لغیو
+لفتو
+لفٹو
+لفطو
+لفظو
+لفنو
+لقلو
+لقمو
+لقیو
+لکیو
+لکھو
+لگنو
+لگیو
+لمبو
+لمپو
+لمحو
+لمصو
+لمکو
+لمیو
+لنکو
+لنگو
+لنیو
+لیپو
+لیٹو
+لیحو
+لیچو
+لیسو
+لیفو
+لیقو
+لیکو
+لیگو
+لیلو
+لیمو
+لینو
+لیہو
+لہٹو
+لہجو
+لہچو
+لہکو
+لہلو
+لہنو
+مبسو
+مبعو
+مبلو
+مبہو
+متبو
+متصو
+متلو
+متمو
+متنو
+متھو
+مٹکو
+مٹلو
+مٹیو
+مٹھو
+مثلو
+مثنو
+مجبو
+سنبھا
+مجمو
+مجنو
+مجہو
+مجھو
+مچکو
+مچلو
+مچھو
+محبو
+محتو
+محجو
+محشو
+محضو
+محظو
+محفو
+محکو
+محلو
+محمو
+مخبو
+مختو
+مخصو
+مخطو
+مخلو
+مخمو
+مسبو
+مسٹو
+مستو
+مسجو
+مسطو
+مسعو
+مسکو
+مسلو
+مسمو
+مسنو
+مسئو
+مشحو
+مشغو
+مشقو
+مشکو
+مشمو
+مشہو
+مصلو
+مصمو
+مصنو
+مصئو
+مضبو
+مضمو
+مطبو
+مطلو
+مطعو
+مظبو
+مظنو
+معبو
+معتو
+معجو
+معشو
+معصو
+معطو
+معقو
+معکو
+معلو
+معمو
+معنو
+معیو
+معہو
+مغسو
+مغشو
+مغضو
+مغفو
+مغلو
+مغمو
+مفتو
+مفعو
+مفقو
+مفلو
+مفہو
+مقبو
+مقتو
+مفسو
+مقصو
+مقلو
+مقہو
+مکتو
+مکحو
+مکسو
+مکشو
+مکنو
+مکھو
+ملبو
+ملتو
+ملحو
+ملعو
+ملغو
+ملفو
+ملکو
+ملنو
+ملیو
+مملو
+ممنو
+منتو
+منٹو
+منچو
+منحو
+منسو
+منشو
+منصو
+منطو
+منظو
+منقو
+منگو
+منکو
+منلو
+منیو
+منھو
+میتو
+میٹو
+میجو
+میخو
+میچو
+میسو
+میشو
+میکو
+میگو
+میلو
+میمو
+مینو
+مہجو
+مہکو
+مہمو
+نبٹو
+نبضو
+نبیو
+نبھو
+نپٹو
+نپجو
+نپلو
+نتھو
+نٹیو
+نٹھو
+نجسو
+نجشو
+نجنو
+نجھو
+نچلو
+نچھو
+نحضو
+نخلو
+نسپو
+نسبو
+نسٹو
+نستو
+نسخو
+نسکو
+نسلو
+نسیو
+نطفو
+نظمو
+نعتو
+نعشو
+نعلو
+نغمو
+نفسو
+نفعو
+نفلو
+نقشو
+نقصو
+نقلو
+نکتو
+نکٹو
+نکسو
+نکلو
+نکمو
+نکھو
+نگپو
+نگٹو
+نگلو
+نگیو
+نگھو
+نلکو
+نلیو
+نمٹو
+نمکو
+ننگو
+ننھو
+نیبو
+نیتو
+نیٹو
+نیجو
+نیسو
+نیشو
+نیفو
+نیکو
+نیگو
+نیلو
+نیمو
+نینو
+نہتو
+نہٹو
+نہجو
+ئٹیو
+ئچیو
+ئفلو
+ئلٹو
+ئنگو
+ئیسو
+ئیکو
+ئیلو
+ئینو
+ینپو
+یتھو
+یٹمو
+یٹئو
+یجنو
+یچھو
+یستو
+یشنو
+یشیو
+یعتو
+یعسو
+یعقو
+یکٹو
+یکسو
+یکنو
+یکیو
+یکھو
+یگچو
+یلبو
+یلٹو
+یلیو
+ینٹو
+ینکو
+ینگو
+ہچکو
+ہفتو
+ہکلو
+ہلکو
+ہلگو
+ہمتو
+ہمجو
+ہمچو
+ہمخو
+ہمکو
+ہنجو
+ہنسو
+ہیٹو
+ہیلو
+ہیمو
+ہینو
+ھتیو
+ھجیو
+ھچکو
+ھلکو
+ھمکو
+ھنکو
+ھنگو
+سقئہ
+صفحہ
+ئحئہ
+یچئہ
+ببلی
+ببئی
+بپتی
+بتتی
+بتنی
+بٹتی
+بٹلی
+بٹنی
+بجتی
+بجلی
+بجنی
+بجھی
+بچتی
+بچکی
+بچگی
+بچلی
+بچنی
+بچھی
+بحثی
+بختی
+بخشی
+بستی
+بسنی
+بطخی
+بطنی
+بعضی
+بغچی
+بغضی
+بغلی
+بقچی
+بکتی
+بکٹی
+بکسی
+بکنی
+بکئی
+بکھی
+بگتی
+بگھی
+بلتی
+بلٹی
+بلخی
+بلسی
+بلغی
+بلکی
+بللی
+بلنی
+بلہی
+بمپی
+بنتی
+بنٹی
+بنجی
+بنسی
+بنکی
+بنگی
+بننی
+بیتی
+بیٹی
+بیجی
+بیچی
+بیسی
+بیشی
+بیعی
+بیگی
+بیلی
+بینی
+بہتی
+بہکی
+بہلی
+بہنی
+بھتی
+بھٹی
+بھجی
+بھچی
+بھسی
+بھکی
+بھگی
+بھلی
+بھنی
+بھئی
+پئبی
+پپلی
+پپتی
+پتکی
+پتلی
+پتنی
+پتھی
+پٹتی
+پٹخی
+پٹکی
+پٹنی
+پٹھی
+پجتی
+پجنی
+پچتی
+پچکی
+پچنی
+پچھی
+پخنی
+پستی
+پسلی
+پسنی
+پشتی
+پکتی
+پکشی
+پکنی
+پگلی
+پلتی
+پلٹی
+پلنی
+پمپی
+پپنی
+پنجی
+پنکی
+پیتی
+پیٹی
+پیسی
+پیشی
+پیلی
+پینی
+پہلی
+پہنی
+پھبی
+پھپی
+پھٹی
+پھسی
+پھکی
+پھگی
+پھلی
+پھنی
+تبتی
+تبلی
+تبھی
+تپتی
+تپشی
+تتلی
+تتئی
+تجتی
+تجلی
+تجنی
+تجھی
+تچتی
+تچنی
+تحتی
+تحلی
+تختی
+تخمی
+تسلی
+تشتی
+تشفی
+تشکی
+تضی
+تکتی
+تکنی
+تگتی
+تگنی
+تلتی
+تلخی
+تلسی
+تلکی
+تللی
+تلنی
+تمنی
+تنتی
+تنکی
+تنگی
+تننی
+تیبی
+تیجی
+تیخی
+تیسی
+تیلی
+تہجی
+تھپی
+تھتی
+تھجی
+تھکی
+تھلی
+تھمی
+تھنی
+تھئی
+ٹپتی
+ٹپکی
+ٹپنی
+ٹخنی
+ٹکنی
+ٹکتی
+ٹکلی
+ٹکنی
+ٹگنی
+ٹلتی
+ٹلنی
+ٹمنی
+ٹنگی
+ٹیپی
+ٹیچی
+ٹیکی
+ٹیلی
+ٹیمی
+ٹینی
+ٹہلی
+ٹہنی
+ٹھتی
+ٹھسی
+ٹھگی
+ٹھلی
+ٹھنی
+ثقفی
+ثیقی
+ثیمی
+جبلی
+جبھی
+جپتی
+جپسی
+جپنی
+جتتی
+جتنی
+جٹھی
+جچتی
+جچگی
+جچنی
+جچئی
+جسکی
+جسمی
+جعتی
+جعلی
+جفتی
+جگتی
+جگنی
+جلتی
+جلقی
+جلنی
+جمتی
+جمعی
+جمنی
+جنبی
+جنمی
+جنتی
+جنجو
+جنسی
+جنکی
+جنگی
+جنمی
+جننی
+جیبی
+جیتی
+جیجی
+جیحی
+جیسی
+جیکی
+جیلی
+جیمی
+جینی
+جیہی
+جہتی
+جھتی
+جھکی
+جھگی
+جھلی
+جھنی
+چبتی
+چبکی
+چبلی
+چبنی
+چبھی
+چپتی
+چپٹی
+چپکی
+چپلی
+چپنی
+چتتی
+چتلی
+چتنی
+چٹتی
+چٹخی
+چٹکی
+چٹنی
+چٹھی
+چچلی
+چستی
+چسکی
+چسنی
+چشتی
+چشمی
+چغلی
+چکتی
+چکٹی
+چکلی
+چکنی
+چکئی
+چکھی
+چگتی
+چگنی
+چلتی
+چلنی
+چمپی
+چمٹی
+چمچی
+چمکی
+چملی
+چمنی
+چنتی
+چنگی
+چننی
+چیپی
+چیخی
+چیسی
+چیلی
+چینی
+چہکی
+چہلی
+چبھی
+چھپی
+چھٹی
+چھتی
+چھچی
+چھلی
+چھنی
+چھئی
+حبشی
+حتمی
+حتی
+حجتی
+حسبی
+حسنی
+حکمی
+حلبی
+حلفی
+حلقی
+حلمی
+حمتی
+حنفی
+حیضی
+حیمی
+خبطی
+ختگی
+ختمی
+ختنی
+ختئی
+خستی
+خشکی
+خصتی
+خصمی
+خطمی
+خفگی
+سفلی
+خلتی
+خلقی
+خلفی
+خمچی
+خنکی
+سبکی
+سبھی
+سپتی
+ستتی
+ستکی
+ستگی
+ستلی
+ستمی
+سٹکی
+سٹلی
+سٹھی
+سجتی
+سجنی
+سچلی
+سختی
+سسپی
+سستی
+سسکی
+سسلی
+سطحی
+سطی
+سفلی
+سقنی
+سکتی
+سکسی
+سکنی
+سکھی
+سگسی
+سگنی
+سلبی
+سلتی
+سلکی
+سلگی
+سلمی
+سلنی
+سمبی
+سمتی
+سمٹی
+سمسی
+سمعی
+سمنی
+سنبی
+سنتی
+سنٹی
+سنکی
+سنگی
+سنلی
+سننی
+سیبی
+سیپی
+سیتی
+سیسی
+سیفی
+سیعی
+سیقی
+سیکی
+سیلی
+سیمی
+سینی
+سیہی
+سہتی
+سہلی
+سہمی
+سہنی
+شبعی
+شبلی
+شٹمی
+شخصی
+شخطی
+شطحی
+شفقی
+شکتی
+شکلی
+شکمی
+شکنی
+شگتی
+شگنی
+شمسی
+شمعی
+شمنی
+شیخی
+شیشی
+شیعی
+شہکی
+شہنی
+ضحی
+صلبی
+صلگی
+صیتی
+صیعی
+ضبطی
+ضحی
+ضلعی
+ضمنی
+طبی
+طبعی
+طبلی
+طفلی
+طلبی
+طیبی
+طیسی
+طینی
+ظلمی
+ظہبی
+عجمی
+عشقی
+عشی
+عصبی
+عظمی
+عقبی
+عقلی
+عکسی
+علتی
+علمی
+علی
+عملی
+عمی
+عنہی
+عیبی
+عیتی
+عینی
+غبتی
+غچلی
+غضبی
+غلطی
+غلنی
+غلئی
+غیبی
+فتگی
+فتنی
+فصلی
+فضلی
+فعلی
+ففٹی
+فقہی
+فلکی
+فلمی
+فیضی
+فیقی
+فیلی
+فیمی
+فہمی
+قبطی
+قسمی
+قصی
+قطبی
+قطعی
+قفلی
+قلبی
+قلعی
+قلفی
+قلمی
+قمچی
+قیسی
+قیفی
+قیقی
+کبکی
+کبھی
+کپٹی
+کتنی
+کٹتی
+کٹکی
+کٹنی
+کٹھی
+کجلی
+کچلی
+کچھی
+کسبی
+کستی
+کسلی
+کسنی
+کشتی
+کشفی
+کعتی
+کفنی
+کلبی
+کلتی
+کلٹی
+کلچی
+کلغی
+کلفی
+کلکی
+کلنی
+کمبی
+کمپی
+کمتی
+کمٹی
+کملی
+کمنی
+کنجی
+کنکی
+کنگی
+کیتی
+کیچی
+کیسی
+کیفی
+کیکی
+کیلی
+کہتی
+کہنی
+کھبی
+کھپی
+کھتی
+کھٹی
+کھجی
+کھسی
+کھلی
+کھنی
+گپتی
+گپکی
+گتھی
+گٹکی
+گٹھی
+گجنی
+گجئی
+گجھی
+گچھی
+گشتی
+گفتی
+گلتی
+گلٹی
+گلجی
+گلنی
+گمتی
+گمٹی
+گملی
+گمنی
+گنتی
+گنجی
+گنگی
+گننی
+گیتی
+گیسی
+گیلی
+گینی
+گہکی
+گہمی
+گہنی
+گھپی
+گھٹی
+گھسی
+گھگی
+گھلی
+گھنی
+لبنی
+لپٹی
+لپسی
+لپکی
+لٹتی
+لٹکی
+لٹنی
+لجھی
+لچتی
+لچکی
+لچنی
+لچھی
+لحتی
+لحئی
+لخمی
+لسٹی
+لسکی
+لسئی
+لشتی
+لطفی
+لعلی
+لغنی
+لفظی
+لقمی
+لکتی
+لکٹی
+لکشی
+لکنی
+لکھی
+لگتی
+لگنی
+لمبی
+لمکی
+لنبی
+لنکی
+لنگی
+لیپی
+لیتی
+لیٹی
+لیچی
+لیسی
+لیفی
+لیقی
+لیکی
+لیگی
+لیمی
+لینی
+لیئی
+لیہی
+لہٹی
+لہکی
+لہی
+مبنی
+متقی
+متکی
+متلی
+متنی
+متھی
+مٹتی
+مٹکی
+مٹنی
+مٹھی
+مثنی
+مجھی
+مچتی
+مچکی
+مچلی
+مچنی
+مچھی
+محبی
+محیی
+مخفی
+مستی
+مسکی
+مسلی
+مسنی
+مشتی
+مشفی
+مشقی
+مشکی
+مصفی
+مضی
+معنی
+مغلی
+مغنی
+مفتی
+مقئی
+مکتی
+مکنی
+مکئی
+مکھی
+مگسی
+ملتی
+ملٹی
+ملکی
+ملی
+ملنی
+ممٹی
+منتی
+منجی
+منشی
+منفی
+منقی
+منکی
+منگی
+مننی
+منی
+میٹی
+میجی
+میچی
+میسی
+میشی
+میکی
+میلی
+میمی
+مینی
+مہکی
+مھیی
+نبتی
+نبٹی
+نبھی
+نپتی
+نپٹی
+نپنی
+نبچی
+نتتی
+نتنی
+نتھی
+نٹتی
+نٹنی
+نٹھی
+نجتی
+نجشی
+نجفی
+نجمی
+نجنی
+نجھی
+نچتی
+نچکی
+نچلی
+نچنی
+نچھی
+نحلی
+نسبی
+نستی
+نسٹی
+نسلی
+نسنی
+نظمی
+نغمی
+نفسی
+نفلی
+نقشی
+نقلی
+نکتی
+نکٹی
+نکسی
+نکلی
+نکمی
+نکنی
+نکھی
+نگتی
+نگلی
+نگنی
+نگہی
+نگھی
+نلکی
+نمٹی
+نمنی
+ننگی
+ننھی
+نیتی
+نیثی
+نیچی
+نیشی
+نیکی
+نیگی
+نیلی
+نیمی
+نینی
+نہٹی
+نہلی
+نہنی
+ئنسی
+ئیسی
+ئیشی
+ئیگی
+ئیلی
+ئینی
+یتنی
+یٹمی
+یحیی
+یختی
+یخنی
+یشمی
+یعتی
+یعنی
+یکتی
+یکھی
+یگچی
+یلٹی
+یلچی
+یلسی
+یلمی
+یلہی
+یمنی
+ینٹی
+ہٹتی
+ہٹنی
+ہچکی
+ہستی
+ہسکی
+ہسلی
+ہسنی
+ہضمی
+ہکتی
+ہکلی
+ہکنی
+ہگتی
+ہگلی
+ہلتی
+ہلکی
+ہلگی
+ہلنی
+ہمتی
+ہمکی
+ہمگی
+ہمنی
+ہنسی
+ہنکی
+ہنگی
+ہیتی
+ہیٹی
+ہیلی
+ہیمی
+ھپتی
+ھپنی
+ھستی
+ھسنی
+ھکتی
+ھکنی
+ھلتی
+ھلکی
+ھلنی
+ھمکی
+ھنتی
+ھنسی
+ھنکی
+ھنگی
+ھننی
+ھیلی
+ھیمی
+ھینی
+بپتے
+بتتے
+بتنے
+بتئے
+بٹتے
+بٹنے
+بٹئے
+بجتے
+بجنے
+بجئے
+بجھے
+بچتے
+بچکے
+بچلے
+بچنے
+بچئے
+بچھے
+بختے
+بخشے
+بخئے
+بخیے
+بستے
+بسکے
+بسنے
+بسئے
+بعضے
+بغچے
+بقچے
+بقعے
+بکتے
+بکٹے
+بکسے
+بکلے
+بکنے
+بکئے
+بگلے
+بگھے
+بلتے
+بلٹے
+بلسے
+بلکے
+بللے
+بلنے
+بلئے
+بنتے
+بنٹے
+بنجے
+بننے
+بنئے
+بیتے
+بیٹے
+بیجے
+بیچے
+بیضے
+بیلے
+بیمے
+بینے
+بہتے
+بہکے
+بہلے
+بہنے
+بہئے
+بھٹے
+بھجے
+بھچے
+بھکے
+بھگے
+بھلے
+بھنے
+پتتے
+پتلے
+پتنے
+پتئے
+پتھے
+پٹتے
+پٹخے
+پٹکے
+پٹنے
+پٹئے
+پٹھے
+پجتے
+پجنے
+پجئے
+پچتے
+پچکے
+پچنے
+پچئے
+پچھے
+پستے
+پسنے
+پسئے
+پشتے
+پکتے
+پکنے
+پکئے
+پگلے
+پلتے
+پلٹے
+پلنے
+پلئے
+پپنے
+پنتے
+پنجے
+پیپے
+پیتے
+پیٹے
+پیسے
+پیشے
+پیلے
+پینے
+پیئے
+پہلے
+پہنے
+پہئے
+پھبے
+پھٹے
+پھسے
+پھکے
+پھلے
+پھنے
+تپتے
+تپکے
+تپنے
+تپئے
+تتلے
+تتمے
+تجتے
+تجنے
+تجئے
+تجھے
+تچتے
+تچنے
+تچئے
+تحفے
+تختے
+تسلے
+تسمے
+تشنے
+تکتے
+تکلے
+تکنے
+تکیے
+تکئے
+تگتے
+تگنے
+تلتے
+تللے
+تلنے
+تلئے
+تمغے
+تنتے
+تنکے
+تننے
+تنئے
+تیجے
+تیشے
+تیلے
+تینے
+تھپے
+تھتے
+تھجے
+تھکے
+تھلے
+تھمے
+تھنے
+تھئے
+ٹپتے
+ٹپکے
+ٹپنے
+ٹپئے
+ٹخنے
+ٹکتے
+ٹکلے
+ٹکنے
+ٹکئے
+ٹلتے
+ٹلٹے
+ٹلنے
+ٹلئے
+ٹنٹے
+ٹنگے
+ٹیپے
+ٹیکے
+ٹیلے
+ٹینے
+ٹہلے
+ٹہنے
+ٹھتے
+ٹھٹے
+ٹھسے
+ٹھکے
+ٹھگے
+ٹھلے
+ٹھنے
+ٹھئے
+ثیقے
+جپتے
+جپنے
+جپئے
+جتتے
+جتنے
+جتئے
+جتھے
+جٹتے
+جٹھے
+جٹنے
+جٹئے
+جچتے
+جچنے
+جچئے
+جسکے
+جفتے
+جکتے
+جگتے
+جگنے
+جگئے
+جلتے
+جلسے
+جلنے
+جلئے
+جمتے
+جمعے
+جملے
+جمنے
+جمئے
+جنتے
+جنسے
+جنکے
+جننے
+جنئے
+جنھے
+جیتے
+جیسے
+جینے
+جیئے
+جھتے
+جھکے
+جھلے
+جھنے
+جھئے
+چبتے
+چبکے
+چبلے
+چبنے
+چبئے
+چبھے
+چپتے
+چپٹے
+چپکے
+چپنے
+چپئے
+چتتے
+چتنے
+چتئے
+چٹپے
+چٹتے
+چٹخے
+چٹکے
+چٹلے
+چٹنے
+چٹئے
+چٹھے
+چسکے
+چشمے
+چکتے
+چکٹے
+چکلے
+چکمے
+چکنے
+چکئے
+چکھے
+چگتے
+چگنے
+چگئے
+چلتے
+چلنے
+چلئے
+چمپے
+چمٹے
+چمچے
+چمکے
+چنتے
+چنکے
+چنگے
+چننے
+چنئے
+چیپے
+چیتے
+چیخے
+چیلے
+چہکے
+چھپے
+چھتے
+چھٹے
+چھجے
+چھچے
+چھکے
+چھلے
+چھنے
+چھئے
+حجلے
+حلقے
+حلئے
+حملے
+حیلے
+ختنے
+خشکے
+خطبے
+خلئے
+خیلے
+خیمے
+سپنے
+ستتے
+ستلے
+ستئے
+سٹکے
+سجتے
+سجنے
+سجئے
+سختے
+سخنے
+سستے
+سسکے
+سفلے
+سکتے
+سکنے
+سکئے
+سگتے
+سگنے
+سگئے
+سگلے
+سلتے
+سلحے
+سلکے
+سلگے
+سلنے
+سلئے
+سمبے
+سمٹے
+سمنے
+سنتے
+سنجے
+سنکے
+سنگے
+سنلے
+سننے
+سیتے
+سیسے
+شیشے
+سیلے
+سینے
+سیئے
+سہتے
+سہلے
+سہمے
+سہنے
+سہئے
+شخصے
+شعبے
+شعلے
+شکتے
+شکنے
+شگتے
+شگنے
+شملے
+شیشے
+شیلے
+شیئے
+صفحے
+صیغے
+ضحے
+ضلعے
+طبقے
+طبلے
+طعنے
+بقعے
+ظیفے
+علے
+عملے
+غصے
+غلبے
+غنچے
+فتنے
+فضلے
+فیتے
+فیلے
+فینے
+قبضے
+قبلے
+قتلے
+قشقے
+قصبے
+قطعے
+قعئے
+قلعے
+قیقے
+قیمے
+کبکے
+کتبے
+کتلے
+کتنے
+کتھے
+کٹتے
+کٹکے
+کٹنے
+کٹئے
+کٹھے
+کجلے
+کچلے
+کستے
+کسلے
+کسنے
+کسئے
+کعبے
+کلتے
+کلچے
+کلمے
+کلنے
+کلئے
+کملے
+کمنے
+کنبے
+کنجے
+کنکے
+کیسے
+کیفے
+کیکے
+کیئے
+کیلے
+کہتے
+کہکے
+کہنے
+کہئے
+کھبے
+کھپے
+کھتے
+کھٹے
+کھسے
+کھلے
+کھنے
+کھئے
+گپکے
+گپھے
+گتکے
+گتھے
+گٹکے
+گٹھے
+گجھے
+گلتے
+گلنے
+گلئے
+گمتے
+گملے
+گمنے
+گمئے
+گنتے
+گنجے
+گننے
+گنئے
+گیگے
+گیلے
+گہکے
+گہنے
+گھپے
+گھتے
+گھٹے
+گچھے
+گھسے
+گھلے
+گھنے
+گھئے
+لپٹے
+لپکے
+لٹتے
+لٹکے
+لٹنے
+لٹئے
+لجھے
+لچتے
+لچکے
+لچنے
+لچئے
+لچھے
+لشتے
+لقمے
+لکتے
+لکنے
+لکئے
+لکھے
+لگتے
+لگنے
+لگئے
+لمبے
+لمحے
+لمکے
+لمیے
+لنگے
+لیپے
+لیٹے
+لیجے
+لیچے
+لیسے
+لیکے
+لیگے
+لیمے
+لینے
+لیئے
+لہٹے
+لہجے
+لہکے
+متتے
+متلے
+متنے
+متھے
+مٹتے
+مٹکے
+مٹنے
+مٹئے
+مثلے
+مجلے
+مجھے
+مچتے
+مچکے
+مچلے
+مچنے
+مچئے
+مچھے
+محلے
+مستے
+مسے
+مسکے
+مسلے
+مسنے
+مسئے
+مشتے
+مشکے
+معمے
+مکتے
+مکنے
+مکئے
+ملبے
+ملتے
+ملنے
+ملئے
+منتے
+منکے
+منگے
+مننے
+میٹے
+میجے
+میچے
+میکے
+میلے
+میئے
+مہکے
+نبٹے
+نبھے
+نپتے
+نپٹے
+نپنے
+نپئے
+نتتے
+نٹتے
+نٹنے
+نٹئے
+نجتے
+نجنے
+نجھے
+نچتے
+نچکے
+نچلے
+نچنے
+نچھے
+نحلے
+نخشے
+نستے
+نسخے
+نسلے
+نسنے
+نسئے
+نشچے
+نطفے
+نغمے
+نفعے
+نقشے
+نقطے
+نکتے
+نکٹے
+نکسے
+نکلے
+نکمے
+نکنے
+نکئے
+نکھے
+نگتے
+نگٹے
+نگلے
+نگنے
+نگئے
+نگھے
+نلکے
+نمٹے
+ننگے
+ننھے
+نیٹے
+نیچے
+نیفے
+نیلے
+نہتے
+نہلے
+ئینے
+یتنے
+یٹھے
+یجئے
+یکتے
+یکھے
+یگچے
+یلٹے
+ہپتے
+ہپنے
+ہپئے
+ہٹتے
+ہٹنے
+ہٹئے
+ہچکے
+ہفتے
+ہکتے
+ہکلے
+ہکنے
+ہکئے
+ہگتے
+ہگنے
+ہگئے
+ہلتے
+ہلکے
+ہلگے
+ہلنے
+ہلئے
+ہمتے
+ہمکے
+ہمنے
+ہنسے
+ہٹیے
+ہیضے
+ھپتے
+ھپنے
+ھپئے
+ھچکے
+ھکتے
+ھکنے
+ھکئے
+ھلتے
+ھلکے
+ھلنے
+ھلئے
+ھمکے
+ھنتے
+ھنسے
+ھنکے
+ھنگے
+ھننے
+ھنئے
+ھنیے
+ھیلے
+ھیمے
+ھینے
+بخیہ
+بستہ
+بسکہ
+بغچہ
+بقچہ
+بقعہ
+بقیہ
+بلکہ
+بلیہ
+بمعہ
+بغچہ
+بیحہ
+بیشہ
+بیضہ
+بیعہ
+بیگہ
+بیلہ
+بیمہ
+بینہ
+پٹنہ
+پختہ
+پستہ
+پسنہ
+پشتہ
+پنبہ
+پنجہ
+پیسہ
+پیشہ
+پہیہ
+تتمہ
+تتیہ
+تحفہ
+تحیہ
+تختہ
+تخمہ
+تسمہ
+تشتہ
+تشنہ
+تغمہ
+تفتہ
+تقیہ
+تکمہ
+تکیہ
+تلخہ
+تلہہ
+تمغہ
+تنبہ
+تنگہ
+تیجہ
+تیشہ
+تیغہ
+تہیہ
+ٹکیہ
+ٹیکہ
+ٹیلہ
+ثیبہ
+جبکہ
+جبہہ
+جستہ
+جفتہ
+جلسہ
+جمعہ
+جملہ
+جنبہ
+جیعہ
+جیہہ
+چستہ
+چشمہ
+چکمہ
+چلتہ
+چمبہ
+چمچہ
+چیچہ
+چیمہ
+حبشہ
+حجتہ
+حجفہ
+حجلہ
+حسنہ
+حشفہ
+حقنہ
+حلقہ
+حلیہ
+حمتہ
+حملہ
+حمنہ
+حیطہ
+حیلہ
+حیمہ
+ختنہ
+خستہ
+خشکہ
+خصیہ
+خطبہ
+خطحہ
+خفتہ
+خفیہ
+خلیفہ
+خلیہ
+خمسہ
+خیمہ
+سبحہ
+ستمہ
+سفلہ
+سقہ
+سکتہ
+سکنہ
+سلحہ
+سلمہ
+سنبہ
+سیسہ
+سیفہ
+سیلہ
+سینہ
+شبکہ
+شبیہ
+شحنہ
+شستہ
+شعبہ
+شعفہ
+شغفہ
+شفتہ
+شفعہ
+شمسہ
+شملہ
+شنبہ
+شیبہ
+شیتہ
+شیشہ
+شیعہ
+شیلہ
+صبیہ
+صفحہ
+صفیہ
+صلچہ
+صیحہ
+صیعہ
+صیغہ
+ضحیہ
+ضعطہ
+ضیکہ
+ضیمہ
+ضیلہ
+طبقہ
+طبلہ
+طعمہ
+طعنہ
+طلبہ
+طمتہ
+طمیہ
+طنجہ
+طیبہ
+طیسو
+طیکہ
+ظیفہ
+عتبہ
+عشبہ
+عصبہ
+عضلہ
+عطیہ
+علفہ
+علیہ
+عملہ
+غبطہ
+غشتہ
+غلبہ
+غلطہ
+غنچہ
+فتحہ
+فتنہ
+فضلہ
+فعیہ
+فغفو
+فقیہ
+فیعہ
+فیقہ
+فینہ
+قبضہ
+قتلہ
+قحبہ
+قشقہ
+قصبہ
+قضیہ
+قطعہ
+قلبہ
+قلعہ
+قلیہ
+قمشہ
+قیقہ
+قیمہ
+کپچہ
+کتبہ
+کشتہ
+کعبہ
+کفچہ
+کلبہ
+کلچہ
+کلمہ
+کلیہ
+کنبہ
+کنیہ
+کیسہ
+کینہ
+کہنہ
+گنجفہ
+گستہ
+گشتہ
+گفتہ
+گینہ
+گہنہ
+لبتہ
+لجثہ
+لحجہ
+لحظہ
+لصفہ
+لطمہ
+لطہ
+لفتہ
+لقصہ
+لقطہ
+لقمہ
+للہ
+للھ
+لمحہ
+لمعہ
+لمیہ
+لیچہ
+لیلہ
+لیمہ
+لہجہ
+متعہ
+مثلہ
+مجلہ
+محلہ
+مسکہ
+معمہ
+مقلہ
+ملبہ
+ملکہ
+میلہ
+میمہ
+نبیہ
+نجمہ
+نستہ
+نسخہ
+نسیہ
+نطفہ
+نغمہ
+نفقہ
+نقشہ
+نقطہ
+نقیہ
+نکتہ
+نگیہ
+نملہ
+نیفہ
+نیلہ
+ئستہ
+ئنچہ
+ئیسہ
+ئیکہ
+ئیلہ
+ئینہ
+یبیہ
+یجتہ
+یختہ
+یفتہ
+یقظہ
+یگچہ
+ینکہ
+ہستہ
+ہفتہ
+ہلیہ
+ہیضہ
+ہیمہ
+ہینہ
+ھنیہ
+ھیلہ
+بیٹھ
+پنتھ
+پنکھ
+پیتھ
+ٹھٹھ
+جیتھ
+جیٹھ
+جھٹھ
+چیتھ
+چھٹھ
+سکچھ
+سلجھ
+سمجھ
+سنکھ
+سنگھ
+سیٹھ
+سیکھ
+کسٹھ
+کمبھ
+لنگھ
+لیتھ
+لیٹھ
+لیکھ
+ملچھ
+منجھ
+میٹھ
+میکھ
+میگھ
+مینھ
+نسٹھ
+یسٹھ
+ینٹھ
+ہیتھ
+بقیہ
+حتی
+صلو
+ضحی
+عشی
+علی
+منی
+یحیی
+بطنا
+جیہا
+حلفا
+خصتا
+سہلا
+ضمنا
+طبعا
+عبید
+غصبا
+عقلا
+عملا
+فعلا
+قطعا
+قعتا
+لصتا
+لفظا
+مثلا
+نسلا
+نسیا
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/5grams.txt b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/5grams.txt
new file mode 100644 (file)
index 0000000..f61dbce
--- /dev/null
@@ -0,0 +1,5029 @@
+ببیسا
+بپتنا
+بتکتا
+بتیسا
+بتیلا
+بتھلا
+بجبجا
+بجلیا
+بجھتا
+بجھیا
+بچپنا
+بچکتا
+بچلتا
+بچھتا
+بچھیا
+بحثیا
+بختیا
+بخشتا
+بستگا
+بستیا
+بسیما
+بطگیا
+بغچیا
+بقچیا
+بکبکا
+بکستا
+بکسلا
+بکسیا
+بکیلا
+بگستا
+بگھیا
+بلبلا
+بلٹتا
+بلٹیا
+بلکتا
+بللا
+بلنگا
+بلیسا
+بلیغا
+بلیلا
+بنٹتا
+بنجتا
+بنگلا
+بیتتا
+بیتلا
+بیتیا
+بیٹھا
+بیجتا
+بیچتا
+بیسیا
+بیشما
+بیکسا
+بیکلا
+بیگما
+بیلتا
+بینتا
+بینکا
+بیننا
+بھبھا
+بہکتا
+بہلتا
+بہنیا
+بہئیا
+بہیما
+بھبکا
+بھبھا
+بھلتا
+بھپکا
+بھتنا
+بھٹکا
+بھٹیا
+بھجتا
+بھجیا
+بھچتا
+بھچکا
+بھچنا
+بھسکا
+بھکتا
+بھکیا
+بھگتا
+بھگیا
+بھلیا
+بھینا
+پپلیا
+پپیتا
+پپیہا
+پتلیا
+پتنگا
+پتنیا
+پتیلا
+پتھتا
+پتھنا
+پٹپٹا
+پٹختا
+پٹخیا
+پٹکتا
+پٹیلا
+پٹیما
+پٹھیا
+پچپچا
+پچکتا
+پچھتا
+پچلج
+پچیا
+پستیا
+پسلیا
+پسنگا
+پسیجا
+پسینا
+پشیما
+پکپکا
+پگلتا
+پگلیا
+پگھلا
+پلپلا
+پلٹتا
+پلٹیا
+پلیتا
+پنپتا
+پنجتا
+پنجسا
+پنجنا
+پنچسا
+پنکھا
+پنیلا
+پنیھا
+پنھیا
+پیپٹا
+پیپگا
+پیپلا
+پیٹتا
+پیٹیا
+پیٹھا
+پیچھا
+پیستا
+پیشتا
+پیشکا
+پیشیا
+پیلبا
+پیلپا
+پیلتا
+پیلیا
+پینتا
+پہنتا
+پہنچا
+پہننا
+پھبتا
+پھبکا
+پھبنا
+پھپسا
+پھپکا
+پھپیا
+پھپھا
+پھٹتا
+پھٹکا
+پھٹگا
+پھٹنا
+پھسکا
+پھسلا
+پھکتا
+پھلتا
+پھلکا
+پھلنا
+پھنتا
+پھنسا
+پھنکا
+پھننا
+پھنیا
+پھیکا
+پھیلا
+تپسیا
+تپکتا
+تتلیا
+تتئیا
+تثینا
+تجلیا
+تجملا
+تحفظا
+تحکما
+تختیا
+تسلیا
+تشنگا
+تعصبا
+تعلقا
+تعلا
+تعیشا
+تعینا
+تکتکا
+تکلفا
+تکلیا
+تلتلا
+تلخیا
+تلملا
+تلنگا
+تمتما
+تمسکا
+تمکنا
+تنبیا
+تنتنا
+تنکتا
+تنگیا
+تیجتا
+تیکھا
+تیلیا
+تینتا
+تھپتا
+تھپکا
+تھپنا
+تھتکا
+تھتھا
+تھجتا
+تھکتا
+تھلتا
+تھلکا
+تھلنا
+تھلیا
+تھمتا
+تھنچا
+تھیا
+تھیلا
+ٹپٹپا
+ٹپکتا
+ٹپیلا
+ٹخنیا
+ٹکٹکا
+ٹکسٹا
+ٹکسلا
+ٹکلیا
+ٹگھلا
+ٹلٹلا
+ٹمٹما
+ٹنٹنا
+ٹنگتا
+ٹیپتا
+ٹیکتا
+ٹیکسا
+ٹیکنا
+ٹیکتا
+ٹینٹا
+ٹہلتا
+ٹہلیا
+ٹہنیا
+ٹھپنا
+ٹھٹکا
+ٹھٹھا
+ٹھستا
+ٹھسکا
+ٹھسنا
+ٹھکتا
+ٹھگتا
+ٹھگیا
+ٹھلتا
+ٹھلیا
+ٹھمکا
+ٹھنتا
+ٹھنسا
+ٹھنکا
+ٹھننا
+ٹھیبا
+ٹھیکا
+ٹھیگا
+ٹھیلا
+جیتتا
+جستھا
+جسیلا
+جعلسا
+جعلیا
+جگتیا
+جگجگا
+جگمگا
+جلبلا
+جلیبا
+جمیکا
+جنٹیا
+جنجنا
+جنسیا
+جنگلا
+جیتتا
+جیٹھا
+جینیا
+جھپٹا
+جھپکا
+جھٹکا
+جھٹلا
+جھٹنا
+جھجکا
+جھجلا
+جھجنا
+جھکتا
+جھکیا
+جھگیا
+جھلتا
+جھلسا
+جھلکا
+جھلما
+جھلنا
+جھلیا
+جھمکا
+جھجنا
+جھنکا
+جھنگا
+جھیلا
+جھینا
+چبکتا
+چبینا
+چبھتا
+چپتیا
+چپٹتا
+چپچپا
+چپکتا
+چپکیا
+چپیٹا
+چتھلا
+چٹختا
+چٹکتا
+چٹکلا
+چٹکیا
+چٹنیا
+چٹیلا
+چٹھیا
+چسکتا
+چسکیا
+چسنیا
+چشتیا
+چغلیا
+چکٹتا
+چکلتا
+چکنیا
+چکھتا
+چلبلا
+چلچلا
+چلکنا
+چلیپا
+چمٹتا
+چمٹیا
+چمچما
+چمچیا
+چمکتا
+چمنیا
+چنبھا
+چنچنا
+چنکیا
+چنگلا
+چنگنا
+چنگیا
+چنگھا
+چیپتا
+چیتپا
+چیختا
+چیستا
+چیلکا
+چینٹا
+چینگا
+چہچہا
+چہکتا
+چہیتا
+چھپتا
+چھپکا
+چھپنا
+چھتیا
+چھٹتا
+چھٹکا
+چھٹنا
+چھٹیا
+چھچکا
+چھلتا
+چھلکا
+چھلیا
+چھنتا
+چھنگا
+چھننا
+چھیجا
+چھیکا
+چھیلا
+چھینا
+حتینا
+حسینا
+حکیما
+حنفیا
+حیتنا
+حیثیا
+خصتیا
+خطیبا
+خفتگا
+خلفشا
+خمچیا
+خمیسا
+خنخنا
+سبکسا
+سبکنا
+سبکیا
+سبلیا
+سبیتا
+ستبصا
+ستبعا
+ستثنا
+ستحسا
+ستحصا
+ستحقا
+ستحکا
+ستخفا
+ستخلا
+ستسقا
+ستشہا
+ستعجا
+ستعقا
+ستعلا
+ستعما
+ستغفا
+ستغنا
+ستفتا
+ستفسا
+ستفہا
+ستقبا
+ستقلا
+ستکبا
+ستکشا
+ستکما
+ستلیا
+ستنبا
+ستنجا
+ستیصا
+ستیعا
+ستیلا
+ستیہا
+ستھیا
+سٹکتا
+سٹنہا
+سٹھیا
+سجنیا
+سجیلا
+سختیا
+سسکتا
+سسکیا
+سکیلا
+سکھلا
+سکھیا
+سلٹنا
+سلجھا
+سلسلا
+سلگتا
+سلمہا
+سلنگا
+سلیکا
+سلیما
+سمٹتا
+سمجھا
+سمیٹا
+سنبھا
+سنجتا
+سنجھا
+سنچکا
+سنسنا
+سنکتا
+سنکیا
+سنگسا
+سنگلا
+سنگھا
+سنیگا
+سنیما
+سیپیا
+سیتلا
+سیٹھا
+سیستا
+سیکھا
+سیلتا
+سیمیا
+سینتا
+سینچا
+سینکا
+سینگا
+سینما
+سینیا
+سہلتا
+سہمتا
+شتیہا
+شخصیا
+شطحیا
+شکیبا
+شگنیا
+شلنگا
+شلیتا
+شمنیا
+شنگھا
+شیخیا
+شیشیا
+شہنشا
+ضعیفا
+ضمحلا
+طبیعا
+طلبگا
+طلسما
+طمینا
+طیلسا
+عسقلا
+عصبیا
+عملیا
+عنہما
+غسلخا
+غصیلا
+غضبنا
+غلبلا
+غلطیا
+غمگسا
+غنغنا
+فتحیا
+فتینا
+فسنجا
+فضیتا
+فعلیا
+فلکیا
+فلمسا
+فلیپا
+فیضیا
+فیلبا
+فیلپا
+فہمیا
+قلتیا
+قلفیا
+قلمکا
+قلیما
+کپکپا
+کٹکتا
+کٹنیا
+کٹیکا
+کٹیلا
+کٹھلا
+کٹھنا
+کچکچا
+کچلتا
+کچیلا
+کچھنا
+کسبیا
+کسلتا
+کسلیا
+کسنبا
+کسیلا
+کشتگا
+کشتیا
+ککھلا
+کلبلا
+کلپنا
+کلتکا
+کلٹیا
+کلچیا
+کلسنا
+کلغیا
+کلکتا
+کلکلا
+کلکنا
+کلیجا
+کلیسا
+کلھیا
+کمٹھا
+کملتا
+کمیسا
+کمیلا
+کمھلا
+کنٹھا
+کنجیا
+کنکتا
+کنکیا
+کنگلا
+کنگنا
+کنگھا
+کنلیا
+کنمنا
+کنہیا
+کیتیا
+کیتھا
+کیٹلا
+کیخلا
+کیسیا
+کیشیا
+کیفیا
+کیقبا
+کیکبا
+کیکتا
+کیلتا
+کیمیا
+کینیا
+کیہلا
+کہکشا
+کھپٹا
+کھپلا
+کھپنا
+کھتیا
+کھٹکا
+کھٹلا
+کھٹنا
+کھٹیا
+کھجلا
+کھستا
+کھسکا
+کھسلا
+کھسنا
+کھسیا
+کھکھا
+کھلتا
+کھلگا
+کھلنا
+کھلیا
+کھمبا
+کھما
+کھنچا
+کھنسا
+کھنگا
+کھتیا
+کھیسا
+کھیلا
+کھینا
+گپکتا
+گتھتا
+گتھیا
+گٹکتا
+گٹکیا
+گٹھتا
+گٹھیا
+گجگجا
+گچھیا
+گشتپا
+گلبہا
+گلٹیا
+گلستا
+گلگلا
+گنتیا
+گنٹھا
+گنجیا
+گنگنا
+گنہگا
+گیگلا
+گہکتا
+گھپتا
+گھپلا
+گھپنا
+گھٹتا
+گھٹکا
+گھٹنا
+گھٹیا
+گھچلا
+گھستا
+گھسیا
+گھگیا
+گھلتا
+گھلیا
+گھمسا
+گھنٹا
+گھنسا
+گھنیا
+گھیگا
+گھیلا
+لبلبا
+لبیلا
+لپٹتا
+لپکتا
+لپلپا
+لپیٹا
+لٹکتا
+لیٹنا
+لٹھیا
+لجلجا
+لجھتا
+لجھیا
+لچکتا
+لچلچا
+لچھتا
+لچھیا
+لحمقا
+لحمیا
+لخلخا
+لسبحا
+لسلسا
+لشعشا
+لشہبا
+لطلا
+لعلما
+لفظیا
+لفنگا
+لکشیا
+لکلیا
+لکھتا
+لکھیا
+لگنیا
+لگیلا
+للبقا
+لمپیا
+لمتعا
+لمتخا
+لمکتا
+لمیعا
+لنجھا
+لنگتا
+لنگیا
+لنگھا
+لیپتا
+لیٹتا
+لیچتا
+لیچیا
+لیستا
+لیسیا
+لیکھا
+لہکتا
+لہلہا
+لہنگا
+لہنیا
+لہیا
+مبتلا
+مبہیا
+متصفا
+متھتا
+مٹکتا
+مٹکیا
+مٹھیا
+مجسما
+مجلا
+مچکتا
+مچلتا
+محسنا
+محصنا
+محققا
+محکما
+محنتا
+مختیا
+مخلصا
+مخمسا
+مسبحا
+مستجا
+مستعا
+مشفقا
+مشکبا
+مشکلا
+مشکیا
+مصلحا
+معلقا
+معلما
+مغلظا
+مغیلا
+مفصلا
+مفلسا
+مقتضا
+مقطعا
+مکھنا
+مکھیا
+ملگجا
+ملنسا
+ملیسا
+ممکنا
+منجلا
+منجنا
+منجھا
+منچلا
+منشیا
+منصفا
+منگتا
+منگلا
+منگنا
+منگیا
+منمنا
+منیلا
+منہنا
+منہیا
+میٹتا
+میٹیا
+میٹھا
+میجتا
+میچتا
+میگھا
+میلیا
+میمنا
+میہما
+مہکتا
+مہملا
+مہنتا
+مہنگا
+مہیلا
+مہینا
+نبٹتا
+ننجتا
+نبھتا
+نپٹتا
+نپجتا
+نتیلا
+نتھلا
+نتھنا
+نتھیا
+نٹنیا
+نٹینا
+نٹھتا
+نجمنا
+نجھتا
+نچنیا
+نچھتا
+نشیلا
+نظمیا
+نفسیا
+نکسلا
+نکلتا
+نکمیا
+نکیلا
+نکھتا
+نکھیا
+نگستا
+نگلتا
+نگلیا
+نگیلا
+نگہبا
+نگھتا
+نمٹتا
+نمسکا
+نمکیا
+ننھیا
+نیٹنا
+نیشیا
+نیکیا
+نیکھا
+نیمیا
+ئیشیا
+ئیگیا
+یپلکا
+یتیلا
+یخنیا
+یستبا
+یکھتا
+یگچیا
+یگستا
+یمپلا
+ینٹھا
+ینکتا
+ینگتا
+ینگیا
+ہپہپا
+ہتھیا
+ہٹکنا
+ہٹیلا
+ہٹھیا
+ہچکتا
+ہچکچا
+ہچکیا
+ہسپتا
+ہستیا
+ہلبلا
+ہلپھا
+ہلگتا
+ہلینا
+ہلہلا
+ہمپشا
+ہمکتا
+ہمکیا
+ہنستا
+ہنسیا
+ہنگیا
+ہنہنا
+ہیلنا
+ہینسا
+ہینگا
+ھکنیا
+ھکیلا
+ھلکتا
+ھلکیا
+ھلملا
+ھمکتا
+ھمکیا
+ھنستا
+ھنسیا
+ھنکتا
+ھنکیا
+ھینگا
+بطیب
+تشبیب
+تصلیب
+تنصیب
+کینٹب
+لجیب
+لحسیب
+لحصیب
+لمجیب
+متعجب
+متعصب
+مجتنب
+محتسب
+مسبب
+مستجب
+مسیب
+منتخب
+منتسب
+جھینپ
+سٹیمپ
+سنکلپ
+گھینپ
+بشکست
+بعجلت
+ٹھینگے
+تبنیت
+تمکنت
+تہنیت
+جمعیت
+جنبیت
+جنسیت
+جھٹنت
+حقیقت
+حیثیت
+سلطنت
+سنگیت
+شخصیت
+شیطنت
+شیعیت
+طبیعت
+طیسیت
+عصبیت
+عظیمت
+عقلیت
+علمیت
+غنیمت
+فضیلت
+فضیحت
+فضیلت
+قطبیت
+قطعیت
+کمیت
+کیفیت
+کیمخت
+گھٹنت
+لپھیت
+لٹھیٹ
+لحکمت
+لخلقت
+لعصمت
+لکھپت
+لمقیت
+لممیت
+مسکنت
+مصلحت
+مصیبت
+معصیت
+معیشت
+معیئت
+ملتفت
+ملکیت
+مملکت
+منفعت
+منقبت
+میمنت
+نصیحت
+ئیلیت
+یکلخت
+یکمشت
+ہلسنت
+بیسنٹ
+بھینٹ
+پمفلٹ
+پنگھٹ
+پیٹنٹ
+پھینٹ
+تلچھٹ
+ٹسٹنٹ
+ٹیکسٹ
+جھپیٹ
+جھنجٹ
+چھینٹ
+سٹمنٹ
+سسپنٹ
+سسٹنٹ
+سلفیٹ
+سلیکٹ
+سیمنٹ
+شپمنٹ
+کیبنٹ
+کیمسٹ
+گھسیٹ
+گھینٹ
+لپٹنٹ
+لپمنٹ
+لٹھیٹ
+لجئیٹ
+لفٹنٹ
+میگنٹ
+نیٹنٹ
+ئنٹسٹ
+ہیلمٹ
+بھتیج
+چیلنج
+بھینچ
+پھینچ
+کھینچ
+تسبیح
+تصحیح
+تلمیح
+تنقیح
+مصطلح
+تنسیخ
+بخشند
+بسیند
+بینند
+پنجند
+پیجند
+پیچید
+تجلید
+تحمید
+تصعید
+تعقید
+تفسید
+تقلید
+تکسید
+تمجید
+تمحید
+تمہید
+تنفید
+تنقید
+تہبند
+جتمند
+جمشید
+چھلبد
+خشکید
+سمبند
+سمجھد
+سنجید
+علیحد
+فہمید
+کھلند
+لتمند
+لحمید
+لسعید
+لشہید
+لعقید
+لکھند
+لمجید
+لمسجد
+لمیعد
+لمقتد
+مجتہد
+مچھند
+مستبد
+مستعد
+مستند
+معتضد
+معتمد
+منجمد
+منجھد
+منعقد
+مہمند
+نشمند
+ہشمند
+بلینڈ
+بھٹنڈ
+پیگنڈ
+تلینڈ
+چچینڈ
+سٹینڈ
+سیکنڈ
+سگمنڈ
+شفیلڈ
+کلینڈ
+کنفیڈ
+کیتھڈ
+کیلنڈ
+کیلیڈ
+کینیڈ
+کھلنڈ
+گلینڈ
+گھمنڈ
+لمیٹڈ
+مشٹنڈ
+میتھڈ
+یمبلڈ
+ہسبنڈ
+تلمیذ
+فلہذ
+بجھبر
+بچھیر
+بکٹیر
+بکھیر
+بگستر
+بلیچر
+بیچلر
+بینجر
+بیشتر
+بینٹر
+بینکر
+بہتیر
+بھسٹر
+بھمبر
+بھیتر
+بھیکر
+پبلشر
+پتمبر
+پچھتر
+پسنجر
+پکھیر
+پلستر
+پلمبر
+پلیئر
+پنجیر
+پنشنر
+پنکچر
+پیسٹر
+پیشتر
+پیمبر
+پینتر
+پھپیر
+پھٹکر
+پھلسر
+تبختر
+تحقیر
+تخمیر
+تسخیر
+تسطیر
+تشہیر
+تصغیر
+تطہیر
+تظہیر
+تعبیر
+تعمیر
+تغیر
+تفسیر
+تقصیر
+تقطیر
+تکبیر
+تکثیر
+تکسیر
+تکفیر
+تمسخر
+تنکیر
+تینیر
+تھپیر
+تھمبر
+تھیٹر
+تھیچر
+ٹنکچر
+ٹیسٹر
+ٹیلگر
+ٹیمبر
+ٹینکر
+ٹھپکر
+ٹھیٹر
+ٹھٹھر
+ٹھیکر
+جمبیر
+جیکٹر
+جینیر
+جھجھر
+جھنجر
+جھنگر
+چمچیر
+چنگیر
+چنیسر
+چیٹھر
+چیکٹر
+چیمبر
+چھہتر
+سپنسر
+سپئیر
+سپیکر
+ستغفر
+ستگیر
+ستمبر
+ستمگر
+سٹمپر
+سٹینر
+سٹیکر
+سٹیمر
+سٹیئر
+سکیٹر
+سکیسر
+سکیلر
+سکینر
+سگنلر
+سلیپر
+سلیٹر
+سمسٹر
+سمگلر
+سنپٹر
+سنپیر
+سنتگر
+سنسکر
+سنگتر
+سنئیر
+سنیٹر
+سنیچر
+سکیٹر
+سینٹر
+سینسر
+سینئر
+شلیپر
+شمشیر
+شیلٹر
+علمبر
+غضنفر
+فیکٹر
+فیکچر
+قطمیر
+کبیسر
+کبیشر
+کٹیٹر
+کسٹمر
+کسمپر
+کسنجر
+کشمیر
+کفگیر
+کلکٹر
+کلنسر
+کلینر
+کمشنر
+کمنٹر
+کنٹھر
+کنستر
+کیتھر
+کیسٹر
+کیمبر
+کینبر
+کینسر
+کھنجر
+کھنکر
+کھنگر
+کھچر
+گلیسر
+گلیمر
+گنینر
+گھبیر
+گھگر
+گھمیر
+گھنگر
+گھنیر
+لبصیر
+لتھیر
+لخبیر
+لصغیر
+لکبیر
+لکھیر
+لمطہر
+لمگیر
+لمنظر
+لنٹیر
+لنصیر
+لیسٹر
+لیکٹر
+لیکچر
+لینبر
+لینٹر
+متبحر
+متحیر
+متشکر
+متغیر
+متفکر
+متکبر
+متنفر
+مجسٹر
+مختصر
+مخیر
+مستتر
+مسخر
+مستشر
+مستغر
+مستقر
+مستمر
+مشتہر
+مشینر
+معتبر
+مکسچر
+منتشر
+منتظر
+منجیر
+منچھر
+منحصر
+منسٹر
+منگسر
+منیجر
+میکنز
+منیجر
+نٹسیر
+نچسٹر
+نچھتر
+نخچیر
+نسسٹر
+نکسیر
+نکھتر
+نگسیر
+نگشتر
+نیشتر
+نیکلر
+ئیجیر
+یفلگر
+یکسپر
+یکلچر
+یمسٹر
+ینسٹر
+ینکفر
+ہمشیر
+ہمعصر
+ہیتھر
+ہیمبر
+ہینگر
+بتنگڑ
+بکھیڑ
+بلکھڑ
+بھیکڑ
+پلنگڑ
+پھسکڑ
+پھکڑ
+پھیپڑ
+تھپیڑ
+جھمکڑ
+جھنگڑ
+چمچیڑ
+چیتھڑ
+چیٹھڑ
+چیلھڑ
+چھچھڑ
+چھیچڑ
+سینکڑ
+سینگڑ
+علیگڑ
+کلنگڑ
+کلیگڑ
+کھچیڑ
+کھکیڑ
+کھنگڑ
+گنٹھڑ
+گھسیڑ
+لتھیڑ
+مسکیڑ
+ہتھکڑ
+پیپلز
+پیکلز
+تجہیز
+ٹیشنز
+ٹیکلز
+چنگیز
+سکیچز
+سگنلز
+سنگلز
+کسٹمز
+کشنیز
+متمیز
+مستلز
+مستیز
+مشکیز
+ممیز
+میکنز
+مہمیز
+نیپلز
+نیشنز
+ئیکلز
+یتھنز
+ینجلز
+بلقیس
+بیلنس
+بھینس
+پچیس
+پلیکس
+پینٹس
+تجسس
+تجنیس
+ٹمنٹس
+ٹیلکس
+چھبیس
+چھتیس
+خلیفہ
+سپکٹس
+سٹیٹس
+سمٹکش
+سنگلس
+سنیکس
+فٹنگس
+فلیٹس
+کلپٹس
+کیمپس
+گھنیس
+لخمیس
+لشمس
+لمپکس
+لیٹکس
+لیمپس
+متجسس
+متنفس
+ملتمس
+منعکس
+نلسٹس
+ئمیکس
+ئیسنس
+یجنٹس
+یلیکس
+ینجلس
+پیچکش
+پیشکش
+تفتیش
+چپقلش
+کشمکش
+گھنیش
+تخصیص
+تخلیص
+تشخیص
+تلخیص
+تمحیص
+تنقیص
+لتخلص
+متخلص
+تخلیط
+ٹپن
+لقلیط
+لمقسط
+منضبط
+تحفظ
+لحفیظ
+تشنیع
+تقطیع
+لسمیع
+لشفیع
+لمبلغ
+لمطیع
+لمقطع
+متمتع
+مجتمع
+ممتنع
+منقطع
+تبلیغ
+بللی
+تصحیف
+تصنیف
+تعطف
+تقشف
+تکثیف
+تکلیف
+تنصیف
+سنحیف
+للطیف
+متکلف
+مختلف
+مسقف
+مکلف
+منعطف
+منکشف
+تحقیق
+تخلیق
+تطبیق
+تعلیق
+لعتیق
+لمنطق
+متعلق
+مستحق
+منطبق
+ہنبق
+بیٹھک
+بھننک
+پیتھک
+پیسفک
+پھینک
+تشکیک
+تضحیک
+تکنیک
+تملیک
+ٹیکنک
+جھلنک
+جھینک
+چھینک
+کلینک
+کنجشک
+کھٹیک
+گنجلک
+مجسٹک
+منسلک
+منہمک
+ئنٹفک
+یپبلک
+بیٹنگ
+بیجنگ
+بھجنگ
+بھننگ
+پکٹنگ
+پمپنگ
+پئیگ
+پیکنگ
+پھننگ
+تھلنگ
+ٹیچنگ
+جمپنگ
+جیکنگ
+چیکنگ
+سپننگ
+سیکنگ
+فکسنگ
+فنشنگ
+کیپنگ
+کیٹنگ
+میپنگ
+میٹنگ
+میچنگ
+میکنگ
+میلنگ
+ئٹینگ
+ئٹینگ
+یشننگ
+یکٹنگ
+بسبیل
+بمشکل
+بیمثل
+پھٹکل
+پھلیل
+تجہیل
+تحصیل
+تحلیل
+تخلیل
+تخئیل
+تسلسل
+تسہیل
+تشکیل
+تعجیل
+تعطیل
+تعلیل
+تعمیل
+تفصل
+تفصیل
+تفضل
+تقلیل
+تکفیل
+تکمیل
+تمثیل
+تہلیل
+تھکیل
+ٹیمپل
+جھٹیل
+جھلمل
+جھمیل
+چھیچھڑ
+سپیشل
+سنججل
+سنبھل
+سنپتل
+سیمپل
+فیشنل
+فیشیل
+قیفیں
+کتھیل
+کیپٹل
+کیشنل
+کیمبل
+کینچل
+کینسل
+کینگل
+کھٹمل
+کھکھل
+لجلیل
+لجمیل
+لخلیل
+متحمل
+متکفل
+مچھیل
+محتمل
+مستقل
+مسجل
+مسلسل
+مشتعل
+مشتغل
+مشتمل
+مشخیل
+مضمحل
+معجل
+منتقل
+منفعل
+مینٹل
+مینگل
+نٹیبل
+نسٹبل
+نیشنل
+نینٹل
+ئیسکل
+ہینگل
+بلجیم
+بہنگم
+پچھم
+تجسیم
+تحکیم
+تسلیم
+تسنیم
+تصمیم
+تعظیم
+تعلم
+تعلیم
+تفہیم
+تقسیم
+تنجیم
+تنظیم
+تنعم
+تیمم
+ٹنگھم
+ٹھیکم
+جھیلم
+علیکم
+علیہم
+لبعلم
+لحکیم
+لحلیم
+لعظیم
+لعلیم
+لکلیم
+لمعظم
+لنعیم
+لیتیم
+تبسم
+متبسم
+متعلم
+متکلم
+محتشم
+مختتم
+معتصم
+منتظم
+منتقم
+منظم
+منقسم
+منگھم
+منمنا
+منہضم
+میکسم
+مہتمم
+نشینم
+بجکشن
+بلیٹن
+بینگن
+بھبکن
+بھپکن
+پھسلن
+بھنگن
+پبلکن
+پچھم
+پنجتن
+پیشین
+پھپکن
+پھٹکن
+پھسلن
+تھیلیا
+تبیین
+تحسین
+تخمین
+تسکین
+تضمین
+تکفین
+تلقین
+تلئیں
+تلیئن
+تمکین
+تیئین
+تھپکن
+ٹھٹکن
+ثقلین
+جنکشن
+جیکشن
+جھپٹن
+جھپکن
+جھٹکن
+چھلکن
+چھیجن
+چھیلن
+حسنین
+سبطین
+سٹفین
+سٹیشن
+سلجھن
+سلکشن
+سلکھن
+سنگین
+سیٹھن
+سیکشن
+سیمین
+سینچن
+سینکن
+شنگٹن
+شیخین
+علیین
+غمگین
+فنکشن
+قطبین
+کسیجن
+کلفٹن
+کلیمن
+کمیشن
+کنکشن
+کیپٹن
+کیپشن
+کیٹشن
+کیٹین
+کھٹکن
+کھنجن
+کھنچن
+گھسٹن
+لپیٹن
+لچھمن
+لحسین
+لحصین
+لستشن
+لمتین
+لمکین
+لنشین
+لنگٹن
+لیسین
+لیکسن
+لیکشن
+متعفن
+متعین
+متقین
+متمکن
+متنجن
+لمکین
+لنشین
+مسکین
+مطمئن
+ممتحن
+منقش
+میگلن
+مینشن
+نجبین
+نجکشن
+نشیمن
+نعلین
+نقشین
+نگبین
+نمکین
+نیپکن
+نیلشن
+ئمکین
+ئیشین
+یٹکشن
+یکسین
+یملین
+یسین
+ہمپٹن
+ہملٹن
+بپتیں
+بتتیں
+بتکیں
+بتیس
+بٹتیں
+بجبیں
+بجتیں
+بجھیں
+بچتیں
+بچکیں
+بچلیں
+بچھیں
+بحثیں
+بخشیں
+بستیں
+بطخیں
+بغلیں
+بکتیں
+بلتیں
+بلکیں
+بنتیں
+بنچیں
+بیتیں
+بیچیں
+بیلیں
+بینیں
+بہتیں
+بہکیں
+بہلیں
+بہنیں
+بھچیں
+بھکیں
+بھلیں
+بھنیں
+پتتیں
+پتھیں
+پٹتیں
+پٹخیں
+پٹکیں
+پچتیں
+پچکیں
+پچھیں
+پستیں
+پکتیں
+پگلیں
+پلتیں
+پلکیں
+پنپیں
+پیتیں
+پیشیں
+پیلیں
+پہنیں
+پھبیں
+پھکیں
+پھلیں
+تپتیں
+تپکیں
+تچتیں
+تگتیں
+تلتیں
+تلئیں
+تمہیں
+تنتیں
+تنکیں
+تیغیں
+تھپیں
+تھتیں
+تھجیں
+تھکیں
+تھلیں
+تھمیں
+ٹپتیں
+ٹپکیں
+ٹکتیں
+ٹکٹیں
+ٹلتیں
+ٹنگیں
+ٹیپیں
+ٹیکیں
+ٹیمیں
+ٹہلیں
+ٹھتیں
+ٹھسیں
+ٹھگیں
+ٹھلیں
+ٹھنیں
+جپتیں
+جتتیں
+جچتیں
+جگتیں
+جگہیں
+جلتیں
+جلیس
+جمپیں
+جنتیں
+جنسیں
+جنگیں
+جنہیں
+جنھیں
+جیپیں
+جیتیں
+جیلیں
+جیہیں
+جہتیں
+جھتیں
+جھکیں
+جھلیں
+چبتیں
+چبکیں
+چبلیں
+چبھیں
+چپتیں
+چپٹیں
+چپکیں
+چپلیں
+چتتیں
+چٹخیں
+چٹکیں
+چسکیں
+چکلیں
+چکھیں
+چگتیں
+چلتیں
+چمٹیں
+چمکیں
+چنتیں
+چیپیں
+چیخیں
+چیلیں
+چہکیں
+چھپیں
+چھتیں
+چھلیں
+چھنیں
+حبتیں
+حجتیں
+حشتیں
+حمتیں
+حیتیں
+خلتیں
+ستتیں
+سٹکیں
+سجتیں
+سسکیں
+سعتیں
+سکتیں
+سلتیں
+سلگیں
+سمتیں
+سنتیں
+سنگیں
+سیتیں
+سیجیں
+سیخیں
+سیکیں
+سیلیں
+سیمیں
+چیلنج
+سہتیں
+سہلیں
+سہمیں
+شفٹیں
+شکلیں
+شکنیں
+شلفیں
+شمعیں
+صحتیں
+صفتیں
+صیتیں
+شفٹیں
+علتیں
+غمگیں
+عنیں
+عیتیں
+غبتیں
+غمگیں
+فصلیں
+فعتیں
+فلمیں
+فیسیں
+قسطیں
+قسمیں
+قلتیں
+قلمیں
+کٹتیں
+کٹکیں
+کچلیں
+کستیں
+کسلیں
+کعتیں
+کلتیں
+کملیں
+کیبیں
+کیکیں
+کیلیں
+کہتیں
+کھپیں
+کھتیں
+کھٹیں
+کھلیں
+گپکیں
+گتھیں
+گٹکیں
+گٹھیں
+گلتیں
+گنتیں
+گیسیں
+گہکیں
+گھٹیں
+گھچیں
+گھسیں
+گھلیں
+لپٹیں
+لپکیں
+لٹتیں
+لٹکیں
+لجھیں
+لچتیں
+لچکیں
+لچھیں
+لحتیں
+لسٹیں
+لشتیں
+لغتیں
+لکتیں
+لکھیں
+لگتیں
+لگنیں
+لمکیں
+لنشیں
+لنگیں
+لیپیں
+لیتیں
+لیٹیں
+لیچیں
+لیفیں
+لیقیں
+لیکیں
+لیلیں
+لہکیں
+لہنیں
+مٹتیں
+مٹکیں
+مثلیں
+مچتیں
+مچکیں
+مچلیں
+مسکیں
+مسلیں
+مشقیں
+مشکیں
+مکتیں
+ملتیں
+منتیں
+منکیں
+منگیں
+میتیں
+میٹیں
+میجیں
+میچیں
+میخیں
+میمیں
+مہکیں
+نبٹیں
+نبضیں
+نبھیں
+نپتیں
+نپٹیں
+نتتیں
+نتیس
+نتھیں
+نٹتیں
+نٹھیں
+نجبیں
+نجتیں
+نجشیں
+نجھیں
+نچتیں
+نچھیں
+نستیں
+نسلیں
+نظمیں
+نعتیں
+نسٹھو
+لچسپیا
+مطمع
+ثیق
+مغلظ
+پیچک
+فظے
+محنت
+نعشیں
+نعلیں
+نفلیں
+نقلیں
+نکتیں
+نکلیں
+نکھیں
+نگبیں
+نگتیں
+نگلیں
+نگئیں
+نگھیں
+نمٹیں
+نیتیں
+ئینس
+یشنیں
+یعتیں
+یکھیں
+یلتیں
+ینکیں
+ینگیں
+ہٹتیں
+ہچکیں
+ہکتیں
+ہگتیں
+ہلتیں
+ہلگیں
+ہمتیں
+ہمکیں
+ہمگیں
+ہنسیں
+ھکتیں
+ھلتیں
+ھلکیں
+ھمکیں
+ھنتیں
+ھنسیں
+ھنکیں
+بتیسو
+بٹینو
+بجلیو
+بچھیو
+بحثیو
+بختیو
+بخششو
+بخیلو
+بستیو
+بسکٹو
+بسملو
+بطگیو
+بقچیو
+بکسنو
+بکسیو
+بکیلو
+بگیلو
+بگینو
+بگھیو
+بلبلو
+بلٹیو
+بلخیو
+بلنگو
+بلیمو
+بمبیو
+بنگلو
+بیبیو
+بیتیو
+بیٹیو
+بیٹھو
+بیعتو
+بیکسو
+بیگمو
+بیگنو
+بیلٹو
+بیلچو
+بیلنو
+بینجو
+بینکو
+بھبکو
+بھبو
+بھپکو
+بھتنو
+بھٹکو
+بھٹیو
+بھسکو
+بھشکو
+بھگتو
+بھلسو
+بھمبو
+بھنکو
+بھنگو
+بھیجو
+بھیسو
+بھیگو
+بھیلو
+پپیتو
+پپیہو
+پتلیو
+پتنگو
+پتنیو
+پتیلو
+پٹیلو
+پچپنو
+پچیسو
+پچھلو
+پستیو
+پسلیو
+پسیجو
+پسینو
+پگلیو
+پگھلو
+پلپلو
+پلٹنو
+پلٹیو
+پلنگو
+پنسلو
+پنکھو
+پیٹیو
+پیٹھو
+پھٹکو
+پیچھو
+پیکٹو
+پینٹو
+پیکٹو
+پینٹو
+پینگو
+پہنچو
+پھبکو
+پھنسو
+پھپکو
+پھپھو
+پھٹکو
+پھسکو
+پھسلو
+پھلکو
+پھلیو
+پھنسو
+پھنکو
+پھیکو
+پھیلو
+تبتیو
+تتلیو
+تجلیو
+تختیو
+تسلیو
+تشفیو
+تصفیو
+تعلقو
+تلتلو
+تلخیو
+تنتنو
+تیلتو
+تیلیو
+تینہو
+تہمتو
+تھپکو
+تھنچو
+تھنیو
+تھلو
+ٹکلیو
+ٹگھلو
+ٹلٹلو
+ٹمنٹو
+ٹیبلو
+ٹیسٹو
+ٹیکسو
+ٹیلبو
+ٹیلیو
+ٹینٹو
+ٹینکو
+ٹہنیو
+ٹھٹکو
+ٹھٹھو
+ٹھسکو
+ٹھگنو
+ٹھلیو
+ٹھمکو
+ٹھنسو
+ٹھنکو
+ٹھنیو
+ٹھیکو
+ٹھیلو
+جبینو
+جپسیو
+جثیمو
+جستجو
+جنبشو
+جنبیو
+جنتیو
+جنگلو
+جنئیو
+جیٹھو
+جنیو
+جھپٹو
+جھپکو
+جھٹکن
+جھجکو
+جھکیو
+جھگیو
+جھلسو
+جھلکو
+جھمکو
+جھنجو
+جھنکو
+جھیلو
+چپٹیو
+چٹھیو
+چٹکلو
+چٹکیو
+چٹنیو
+چٹیلو
+چسکیو
+چسنیو
+چشتیو
+چغلیو
+چلبلو
+چلمنو
+چمٹیو
+چمچیو
+چمنیو
+چنکٹو
+چنگیو
+چنگھو
+چنٹو
+چینٹو
+چینگو
+چینیو
+چہچہو
+چہیتو
+چھپنو
+چھٹکو
+چھٹیو
+چھچھل
+چھلکو
+چھنٹو
+چھنکو
+چھیکو
+چھیلو
+چھینو
+حبشنو
+حبشیو
+حبیبو
+حسنیو
+حسینو
+حشتیو
+حشمتو
+حکمتو
+حکیمو
+حلیفو
+حنفیو
+حیتیو
+خبطیو
+خبیثو
+خصتیو
+خصلتو
+خطیبو
+خلفیو
+خلقیو
+خلیجو
+خلیقو
+خمچیو
+خمیسو
+خنکیو
+سبکیو
+سبیلو
+ستخطو
+ستعفو
+ستلیو
+ستنبو
+ستنجو
+سٹیجو
+سٹیچو
+سٹیفو
+سٹینو
+سجنیو
+سختیو
+سسکیو
+سطبلو
+سفینو
+سقنقو
+سقیفو
+سسکچیو
+سیکچو
+سکیلو
+سکیمو
+سگنلو
+سلجھو
+سلسلو
+سلفیو
+سلیٹو
+سلیقو
+سمجھو
+سمیٹو
+سنجیو
+سنجھو
+سنکیو
+سنگتو
+سنگیو
+سنیو
+سیپیو
+سیٹھو
+سیشنو
+سیکھو
+سینتو
+سینٹو
+سینچو
+سینکو
+سینگو
+سینیو
+شبیہو
+شفقتو
+شکستو
+شکنجو
+شکیو
+شلغمو
+شمنیو
+شیخیو
+شیشیو
+شیمپو
+صحبتو
+صحیفو
+صطبلو
+صنعتو
+ضبطیو
+ضعیفو
+ضمیمو
+طبلقو
+طبیبو
+طلعتو
+طنطنو
+طینتو
+ظلمتو
+عجمیو
+عصبیو
+عصمتو
+عظمتو
+علتو
+عملیو
+عنکبو
+عیبیو
+عیلیو
+فیسٹو
+فیصلو
+فیلسو
+فہمیو
+قبطیو
+قبیلو
+قسمتو
+قفیتو
+قلفیو
+قلیتو
+قلیمو
+قمچیو
+قمقمو
+قمیصو
+قیمتو
+قہقہو
+کپکپو
+کتیسو
+کٹکٹو
+کٹنیو
+کسبیو
+کستیو
+کسٹھو
+کلغیو
+کلفتو
+کلیجو
+کلیلو
+کلیمو
+کلھیو
+کمبلو
+کمپیو
+کمسنو
+کمیتو
+کمیلو
+کمنو
+کنٹھو
+کنجیو
+کنکٹو
+کنکئو
+کنگفو
+کنگلو
+کنگنو
+کنگھو
+کیبنو
+کیتیو
+کیسٹو
+کیسیو
+کیمپو
+کینچو
+کھٹکو
+کھٹلو
+کھٹیو
+کھسکو
+کھسلو
+کھکھو
+کھمبو
+کھنچو
+کھنکو
+کھیپو
+کھیتو
+کھیلو
+کھیئو
+گتھنو
+گتھیو
+گٹکیو
+گشتیو
+گفتگو
+گلٹیو
+گلگلو
+گنتیو
+گنٹھو
+گنجیو
+گنگنو
+گھپلو
+گھٹکو
+گھٹنو
+گھسٹو
+گھگھو
+گھنٹو
+گھنگو
+گھیکو
+لبلبو
+لبیلو
+لپیٹو
+لٹکنو
+لجھنو
+لچھنو
+لشتیو
+لطیفو
+لعنتو
+لعینو
+لفینگو
+لکشیو
+لگنیو
+لمحمو
+لمختو
+لمخلو
+لمعبو
+لمعمو
+لمکتو
+لمنظو
+لنگیو
+لنگھو
+لیبلو
+لیتھو
+لیچیو
+لیسیو
+لیگیو
+لیمپو
+لہنگو
+مبلغو
+متقیو
+مٹکیو
+مٹھیو
+مثلثو
+مجسمو
+مجلسو
+مجمعو
+مچلکو
+محبتو
+محسنو
+محفلو
+محققو
+محکمو
+محملو
+محنتو
+مخلصو
+مخمصو
+مخملو
+مخنثو
+مسکنو
+مسلکو
+مسلمو
+مسئلو
+مشعلو
+مشغلو
+مشفقو
+مشقتو
+مشکبو
+مشکلو
+مشکیو
+مشکو
+مشینو
+مصطفو
+مصلحو
+مصنفو
+مطلعو
+معلمو
+مغلپو
+مغنیو
+مفلسو
+مکتبو
+مکینو
+مکھنو
+مکھیو
+ملکیو
+منجمو
+منجنو
+منچلو
+منشیو
+منصبو
+منصبو
+منصفو
+منطقو
+منگنو
+منگھو
+میٹھو
+میکلو
+میمنو
+مہینو
+نتیجو
+نتھنو
+نٹنیو
+نٹیٹو
+نٹھلو
+نجمنو
+نجیبو
+نجیلو
+نچلیو
+نسبتو
+نسٹھو
+نسسکو
+نشستو
+نشیبو
+نشینو
+نصیبو
+نظمیو
+نعمتو
+نقیبو
+نکمو
+نکمیو
+نکیلو
+نکھتو
+نکھٹو
+نکھیو
+نگلیو
+نگینو
+نگیلو
+نلسٹو
+نلکیو
+نمکخو
+نیپچو
+نیسکو
+نیکیو
+نیلگو
+نیمچو
+ئجسٹو
+ئیسکو
+ئیکلو
+ئیگیو
+ئینچو
+یتیمو
+یجنٹو
+یخنیو
+یسٹھو
+یکھیو
+یگچیو
+یلچیو
+یلیمو
+ھکینو
+ھمکیو
+بصیغئہ
+سینئہ
+شعبئہ
+صیغئہ
+عطیئہ
+غنچئہ
+فیقئہ
+قبلئہ
+قلعئہ
+نقطعئہ
+نیمئہ
+ہفتئہ
+ببیسی
+بپتنی
+بتکتی
+بتکنی
+بتیسی
+بجھتی
+بجھنی
+بچکتی
+بچکنی
+بچلتی
+بچلنی
+بچھتی
+بچھنی
+بخشتی
+بخششی
+بخشنی
+بخیلی
+بستگی
+بستنی
+بسکٹی
+بسنتی
+بکبکی
+بکینی
+بگینی
+بگیلی
+بلبلی
+بلٹتی
+بلٹنی
+بلغی
+بلکتی
+بلکنی
+بللی
+بلیسی
+بمبئی
+بنٹتی
+بنٹنی
+بنجتی
+بنجنی
+بنسنی
+بنفشی
+بنیٹی
+بنینی
+بتیتی
+بتینی
+بیٹھی
+بیجتی
+بیجنی
+بیچتی
+بیچنی
+بیسنی
+بیکسی
+بیگمی
+بیگنی
+بیلتی
+بیلتی
+بیلنی
+بینتی
+بینکی
+بیننی
+بیہقی
+بھجتی
+بھجنی
+بہشتی
+بہکتی
+بہکنی
+بہلتی
+بہلنی
+بہنگی
+بھبکی
+بھپکی
+بھتنی
+بھٹکی
+بھٹنی
+بھٹئ
+بھجتی
+بھجنی
+بھچتی
+بھچنی
+بھسکی
+بھشتی
+بھکتی
+بھکنی
+بھگتی
+بھلتی
+بھلسی
+بھلنی
+بھنتی
+بھنچی
+بھنکی
+بھنگی
+بھننی
+بھیجی
+بھیکی
+بھیگی
+بھیلی
+بھینی
+پتیلی
+پتھتی
+پتھنی
+پٹختی
+پٹچنی
+پٹکنی
+پٹکتی
+پٹیتی
+پچکتی
+پچکنی
+پچپسی
+پچھتی
+پچھلی
+پچھمی
+پچھنی
+پچتگی
+پستئ
+پسیجی
+پگلتی
+پگلنی
+پگھلی
+پلپلی
+پلتھی
+پلٹتی
+پلٹنی
+پنبئ
+پنپنی
+پنتھی
+پنچھی
+پنکھی
+پنگتی
+پنیلی
+پیپسی
+پیپلی
+پیتلی
+پیتھی
+پیٹتی
+پیٹنی
+پیٹھی
+پیستی
+پیسنی
+پیشگی
+پیکسی
+پیلتی
+پیلنی
+پینٹی
+پھسکی
+پہنتی
+پہنچی
+پہنی
+پہیلی
+پھبتی
+پھبکی
+پھبنی
+پھپی
+پھپکی
+پھپھی
+پھٹتی
+پھٹکی
+پھٹنی
+پھسکی
+پھسلی
+پھکتی
+پھکنی
+پھلتی
+پھلٹی
+پھلسی
+پھلکی
+پھلنی
+پھنتی
+پھنسی
+پھنکی
+پھنگی
+پھننی
+پھیکی
+پھیلی
+پھینی
+تبتی
+تیبچی
+تپکتی
+تپکنی
+تحفگی
+تشنجی
+تشنگی
+تعصبی
+تعصبی
+تعلقی
+تعلی
+تغلقی
+تکبکی
+تکتکی
+تکلفی
+تکینی
+تلتلی
+تللی
+تلملی
+تلیٹی
+تمیمی
+تنتنی
+تنفسی
+تنکتی
+تنکنی
+تیبچی
+تیپچی
+تیجتی
+تیجنی
+تیکھی
+تھپتی
+تھپکی
+تھپنی
+تھتھی
+تھجتی
+تھجنی
+تھکتی
+تھکلی
+تھکنی
+تھگلی
+تھلتی
+تھلنی
+تھمتی
+تھمنی
+تھنچی
+تھیلی
+ٹپکتی
+ٹکٹکی
+ٹکھلی
+ٹلٹلی
+ٹنگتی
+ٹنگنی
+ٹیپتی
+ٹیپنی
+ٹیکتی
+ٹیکسی
+ٹیکنی
+ٹینکی
+ٹہلتی
+ٹہلنی
+ٹھٹکی
+ٹھٹھی
+ٹھستی
+ٹھسکی
+ٹھسنی
+ٹھکتی
+ٹھکنی
+ٹھگتی
+ٹھگنی
+ٹھلتی
+ٹھلنی
+ٹھمکی
+ٹھنتی
+ٹھنکی
+ٹھنگی
+ٹھننی
+ٹھیکی
+ٹھیگی
+ٹھینی
+ثعلبی
+جستگی
+جلیبی
+جلیسی
+جلیلی
+جملگی
+جمنئ
+جمیلی
+جنگلی
+جیتتی
+جیتنی
+جیٹھی
+جہنمی
+جھپٹی
+جھپکی
+جھجکی
+جھکتی
+جھکنی
+جھلتی
+جھلسی
+جھلکی
+جھلنی
+جھمکی
+جھنجی
+جھیلی
+چبکتی
+چبکنی
+چبینی
+چبھتی
+چبھنی
+چپٹتی
+چپٹنی
+چپکتی
+چپکنی
+چپنٹی
+چپیٹی
+چتھلی
+چٹختی
+چٹخنی
+چٹکتی
+چٹکنی
+ہچکنی
+چسکتی
+چسکنی
+چکٹتی
+چکٹنی
+چکلتی
+چکلنی
+چکھتی
+چکھنی
+چلبلی
+چلچلی
+چلملچی
+چمپئ
+چمٹتی
+چمٹنی
+چمکتی
+چمکنی
+چنبلی
+چنچنی
+چپیتی
+چپینی
+چیختی
+چیخنی
+چپنٹی
+چینگی
+چہکتی
+چہکنی
+چہیتی
+چھپتی
+چھپٹی
+چھپنی
+چھٹتی
+چھٹکی
+چھچھو
+چھلتی
+چھلتی
+چھلکی
+چھلنی
+چھنتی
+چھنٹی
+چھنکی
+چھننی
+چھیپی
+چھیلی
+چھینی
+حبیبی
+حسنی
+حسینی
+حقیقی
+حکمتی
+حکیمی
+حلیلی
+حلیمی
+حنبلی
+خستگی
+خصلتی
+خفتگی
+خلتسی
+خلخلی
+خلیجی
+خمینی
+خنثی
+سپینی
+ستخطی
+ستھنی
+سٹکتی
+سٹکنی
+سجیلی
+سچیتی
+سسکتی
+سسکنی
+سلپـی
+سلجھی
+سلسلی
+سلفچی
+سلگتی
+سلگنی
+سلمی
+سلیٹی
+سلگنی
+سمبلی
+سمبھی
+سمپلی
+سمٹتی
+سمٹنی
+سمجھی
+سمیٹی
+سنسنی
+سنکتی
+سنکلی
+سنکنی
+سککتی
+سیفٹی
+سیکھی
+سیلتی
+سیلنی
+سیمگی
+سینتی
+سینٹی
+سینچی
+سینکی
+سینگی
+سہلتی
+سہلنی
+سہمتی
+سہمنی
+سہیلی
+شبنمی
+شستگی
+شفتگی
+شفتلی
+شکیبی
+شلجمی
+شلغمی
+شمنگی
+صحبتی
+صخحچی
+صلیبی
+صنعتی
+ضعیفی
+طبلچی
+طبیعی
+طفیلی
+طلسمی
+عظمی
+عظیمی
+عقبی
+عقیلی
+علیگی
+غصیلی
+غفلتی
+غلئ
+غنچگی
+غنغنی
+غیبتی
+فلسفی
+فلیٹی
+فیمچی
+فیملی
+فینسی
+قسمتی
+قلعئ
+قلیبی
+قلیتی
+قلیمی
+قیمتی
+قینـی
+کپکپی
+کتھئ
+کٹکٹی
+کٹکنی
+کچکچی
+کچلتی
+کچلنی
+کچھنی
+کسلتی
+کسلنی
+کشتنی
+کشمشی
+کلبلی
+کلتھی
+کلیتی
+کلیٹی
+کلیجی
+کلیمی
+کمپلی
+کمسنی
+کملتی
+کملنی
+کمیتی
+کمیٹی
+کمینی
+کنپٹی
+کنجنی
+کنچنی
+کنکتی
+کنکٹی
+کنکنی
+کنکلی
+کنگھی
+کیتلی
+کیتھی
+کیچلی
+کیکتی
+ککیلنی
+کھبی
+کھپتی
+کھپچی
+کھپنی
+کھتی
+کھتلی
+کھٹتی
+کھٹی
+کھٹکی
+کھٹل
+کھجی
+کھجلی
+کھسکی
+کھسلی
+کھلتی
+کھلنی
+کھمبی
+کھنچی
+کھنسی
+کھنکی
+کھنی
+کھیتی
+کھیلی
+کھینی
+کھیئی
+گپکتی
+گپکنی
+گتھتی
+گتھنی
+گٹکتی
+گٹکنی
+گٹھتی
+گٹھلی
+گٹھنی
+گجگجی
+گشتگی
+گفتنی
+گلتھی
+گلکلی
+گنٹھی
+گنگنی
+گینتی
+گہکتی
+گہکنی
+گھپتی
+گھپنی
+گھٹتی
+گھٹکی
+گھٹنی
+گھچلی
+گھستی
+گھسٹی
+گھسنی
+گھلتی
+گھلنی
+گھنٹی
+گھنگی
+گھنی
+لبلبی
+لبنی
+لنیلی
+لپٹتی
+لپٹنی
+لپکتی
+لپکنی
+لپیٹی
+لٹکتی
+لٹکنی
+لجمعی
+لجھتی
+لجھنی
+لچسپی
+نچکتی
+لچکنی
+لچھتی
+لچھمی
+لچھنی
+لیسنی
+لضحی
+لعنتی
+لفنگی
+لکشمی
+لکعبی
+لکھتی
+لکھنی
+لمحصی
+لمحیی
+لمعطی
+لمغنی
+لمکتی
+لکتی
+لمکنی
+لنسکی
+لنگتی
+کینڑ
+لنگھی
+لیپتی
+لیپنی
+لیٹتی
+لیٹنی
+لیجھی
+لیچتی
+لیچنی
+لیستی
+لیسنی
+لیلی
+لہکتی
+لہکنی
+مبنی
+مثیلی
+مجسٹی
+مجلسی
+مجلی
+مجملی
+مچکتی
+مچکنی
+مچلنی
+مچھلی
+محبتی
+محسنی
+محشی
+محلی
+محنتی
+مخلصی
+مخلی
+مخملی
+مسکتی
+مسکنی
+مسنتی
+مسلنی
+مسمسی
+مسمی
+مسیحی
+مشفقی
+مشقتی
+مثنی
+مشینی
+مصحفی
+مفطکی
+مصطگی
+مصلی
+مطلبی
+معطلی
+معلمی
+معلی
+معینی
+مغلئٖ
+مفلسی
+مقتضی
+مقضی
+مقفی
+مکتبی
+ملتجی
+ملگجی
+ملنکی
+ملہٹی
+منتہی
+منجلی
+منجھی
+منچلی
+منحنی
+منصبی
+منصفی
+منطقی
+منقی
+منکتی
+منکتی
+منگتی
+منگنی
+منمنی
+منہنی
+میتھی
+میٹتی
+میٹنی
+میٹھی
+میجتی
+میجنی
+میچتی
+میچنی
+میکسی
+میگنی
+میلسی
+میمنی
+مہکتی
+مہکنی
+مہنگی
+نبٹتی
+نبٹنی
+نبختی
+نبھتی
+نپٹتی
+نپٹنی
+پنجتی
+پنجنی
+نتھنی
+نٹیلی
+نٹھتی
+نٹھنی
+نجیلی
+نجھتی
+نجھنی
+نچھتی
+نچھنی
+نسبتی
+نسیسی
+نسینی
+نشیبی
+نشیلی
+نشینی
+نعیمی
+نکلتی
+نکلنی
+نکمی
+نکیلی
+نکھتی
+نکھنی
+نگلتی
+نگلنی
+نگیلی
+نگینی
+نگھتی
+نگھنی
+نمٹتی
+نمٹنی
+نطینی
+نیستی
+نیکسی
+نینسی
+ئستگی
+ئینٹی
+ٹینکی
+ئینگی
+یتیلی
+یتیمی
+یجنسی
+یحیی
+یخھنی
+یحیی
+یفتگی
+یقینی
+یکنسی
+یکھتی
+یکھنی
+یلمعی
+یمیمی
+یمینی
+ینٹھی
+ینکتی
+ینکنی
+ینگتی
+ینگنی
+ہتھنی
+نٹیلی
+ہچکتی
+ہچکنی
+ہستگی
+ہستنی
+ہلبلی
+ہلگتی
+ہلگنی
+ہمکنی
+ہنستی
+ہنسلی
+ہنسنی
+ہشیمی
+ھکیلی
+ھلکتی
+ھلکنی
+ھمکتی
+ھمکنی
+ھنستی
+ھسنی
+ھنکتی
+ھنکنی
+بپتنے
+بپتئے
+بتکتے
+بتکنے
+بتکئے
+بجھتے
+بجھنے
+بجھئے
+بچپنے
+بچکتے
+بچکنے
+بچکئے
+بچلتے
+بچلنے
+بچلئے
+بچھتے
+بچھنے
+بچھئے
+بخشتے
+بخشئے
+بکسلے
+بکسنے
+بگیلے
+بگینے
+بلبلے
+بلٹتے
+بلٹئے
+بلکتے
+بلکئے
+بللے
+بنٹتے
+بنٹئے
+بنجتے
+بنجئے
+بنگلے
+بیتتے
+بیتئے
+بیٹھے
+بیجتے
+بیچتے
+بیچئے
+بیلتے
+بیلچے
+بیلنے
+بیلئے
+بینتے
+بینئے
+بہکتے
+بہکئے
+بہلتے
+بہلئے
+بھپکے
+بھتنے
+بھٹکے
+بھجتے
+بھجئے
+بھچتے
+بھچئے
+بھسکے
+بھکتے
+بھکئے
+بھگتے
+بھلتے
+بھلسے
+بھلنے
+بھلئے
+بھنتے
+بھنچے
+بھنگے
+بھننے
+بھنئے
+بھیجے
+بھیگے
+بھیلے
+بھینے
+پپیتے
+پپیہے
+پتنگے
+پتیلے
+پتھتے
+پتھئے
+پٹختے
+پٹخئے
+پٹکتے
+پچکتے
+پچکئے
+پچھتے
+پچھلے
+پچھنے
+پچھئے
+پسیجے
+پسینے
+پگلتے
+پگلئے
+پگھلے
+پلپلے
+پلٹتے
+پلٹئے
+پنپتے
+پنپئے
+پنکھے
+پنیلے
+پیٹتے
+پیٹئے
+پیٹھے
+پیجئے
+پیچھے
+پیستے
+پیسئے
+پیلنے
+پیلئے
+پہنتے
+پہنچے
+پہننے
+پہنئے
+پھبتے
+پھبکے
+پھبنے
+پھبئے
+پھپکے
+پھٹتے
+پھٹکے
+پھٹنے
+پھٹئے
+پھسکے
+پھسلے
+پھکتے
+پھکئے
+پھلتے
+پھلسے
+پھلکے
+پھلنے
+پھلئے
+پھنسے
+پھنکے
+پھننے
+پھیکے
+پھیلے
+تپکتے
+تپکئے
+تصیفے
+تعلقے
+تکملے
+تلتلے
+تلملے
+تنتنے
+تنتئے
+تنکتے
+تنکئے
+تیجتے
+تیجئے
+تیکھے
+تھپتے
+تھپکے
+تھپنے
+تھپئے
+تھجتے
+تھجئے
+تھکتے
+تھکئے
+تھلتے
+تھلئے
+تھمتے
+تھمئے
+تھنچے
+تھیلے
+ٹپکتے
+ٹپکئے
+ٹگھلے
+ٹلٹلے
+ٹنگتے
+ٹنگئے
+ٹیپتے
+ٹیپئے
+ٹیکتے
+ٹیکئے
+ٹہلتے
+ٹہلئے
+ٹھٹکے
+ٹھٹھے
+ٹھستے
+ٹھسکے
+ٹھسئے
+ٹھگتے
+ٹھگئے
+ٹھلتے
+ٹھلئے
+ٹھمکے
+ٹھنتے
+ٹھننے
+ٹھنئے
+ٹھیکے
+ٹھیلے
+جنگلے
+جیتتے
+جیتئے
+جیٹھے
+جھپٹتے
+جھپکے
+جھٹکی
+جھجکے
+جھکتے
+جھکئے
+جھلتے
+جھلسے
+جھلکے
+جھلنے
+جھلئے
+جھمکے
+جھیلے
+چبکتے
+چبکئے
+چبینے
+چبھتے
+چبھئے
+چپٹتے
+چپٹئے
+چپچے
+چپکتے
+چپکئے
+چپیٹے
+چٹختے
+چٹخئے
+چٹکتے
+چٹکلے
+چٹکنے
+چٹکئے
+چسکتے
+چکٹتے
+چکٹئے
+چکلتے
+چکلئے
+چکھتے
+چکھئے
+چلبلے
+چمٹتے
+چمٹئے
+چمکتے
+چمکئے
+چنبھے
+چنچنے
+چیپتے
+چیپئے
+چیختے
+چیخئے
+چینٹے
+چینگے
+چہچہے
+چہکتے
+چہکئے
+چہیتے
+چھپتے
+چھپکے
+چھپنے
+چھپئے
+چھٹتے
+چھٹکے
+چھٹنے
+چھٹئے
+چھلتے
+چھلکے
+چھلنے
+چھلئے
+چھنتے
+چھنکے
+چھننے
+چھننے
+چھنئے
+چھیپے
+چھیلے
+چھینے
+ستعفے
+ستنجے
+سٹکتے
+سٹکئے
+سجیلے
+سسکتے
+سسکئے
+سفینے
+سلجھے
+سلسلے
+سلگتے
+سلگئے
+سلمے
+سلیقے
+سمٹتے
+سمٹئے
+سمجھے
+سمیٹے
+سنکتے
+سنکئے
+سیٹھے
+سیجئے
+سیچتے
+سیچئے
+سیکھے
+سیلتے
+سیلئے
+سینتے
+سینچے
+سینگے
+سہلتے
+سہلئے
+سہمتے
+سہمئے
+شکنجے
+صحیفے
+ضمیمے
+عطیئے
+عقبے
+عقیقے
+غصیلے
+غلبلے
+غلیلے
+فتیلے
+فلسفے
+فلیتے
+فیصلے
+قبیلے
+قضیئے
+قلئیے
+قمقمے
+قہقہے
+کپکپے
+کٹکتے
+کٹکٹے
+کٹکئے
+کٹیلے
+کچکچے
+کچلتے
+کچلئے
+کسلتے
+کسلئے
+کسیلے
+کلبلے
+کلیجے
+کملتے
+کملئے
+کمیلے
+کمینے
+کنٹھے
+کنکتے
+کنکٹے
+کنکنے
+کنکئے
+کنگلے
+کنگنے
+کنگھے
+کیجئے
+کیکتے
+کیکئے
+کیلتے
+کیلئے
+کھپتے
+کھپئے
+کھٹتے
+کھٹکے
+کھٹلے
+کھٹنے
+کھٹئے
+کھجلے
+کھسکے
+کھسلے
+کھلتے
+کھلئے
+کھمبے
+کھنچے
+کھنکے
+کھتے
+کھیلے
+کھنے
+کھیئے
+گپکتے
+گپکئے
+گتھتے
+گتھئے
+گٹھے
+گٹکتے
+گٹکئے
+گٹھتے
+گٹھئے
+گجگجے
+گلگلے
+گنٹھے
+گنگنے
+گہکتے
+گہکئے
+گھپتے
+گھپلے
+گھپنے
+گھپئے
+گھٹتے
+گھٹکے
+گھٹنے
+گھٹئے
+گھچلے
+گھستے
+گھٹے
+گھسئے
+گھلتے
+گھلئے
+گھنٹے
+گھنئے
+لبلبے
+لبیلے
+لپٹتے
+لپٹئے
+لپکتے
+لپکئے
+لپیٹتے
+لٹکتے
+لٹکئے
+لجھتے
+لجھئے
+لچکتے
+لچکئے
+لچھتے
+لچھئے
+لشتیے
+لطیفے
+لفنگے
+لکھتے
+لکھئے
+لمکتے
+لمکئے
+لنگتے
+لنگئے
+لنگھے
+لیپتے
+لیپئے
+لیٹتے
+لیٹئے
+لیجئے
+لیچتے
+لیچئے
+لیستے
+لیسئے
+لیکھے
+لیلے
+لینگے
+لہکتے
+لہکئے
+متھتے
+متھئے
+مٹکتے
+مٹکئے
+مثنے
+مجسمے
+مجلے
+مچکتے
+مچکئے
+مچلتے
+مچلئے
+محکمے
+مخلے
+مخمصے
+مسکتے
+مسکئے
+مسلتے
+مسلئے
+مسئلے
+مشغلے
+مشکلے
+مصلے
+مطلعے
+معلے
+ملگجے
+منجھے
+منچلے
+منکتے
+منکئے
+منگتے
+منگئے
+میٹتے
+میٹئے
+میٹھے
+میجتے
+میجئے
+میچتے
+میچئے
+مہکتے
+مہکئے
+مہنگے
+مہینے
+نبٹتے
+نبٹئے
+نبھتے
+نبھئے
+نپٹتے
+نپٹئے
+نپجتے
+نپجئے
+نتیجے
+نتھنے
+نتھئے
+نٹھئے
+نجھتے
+نجھئے
+نچنئے
+نچھتے
+نچھئے
+نشیلے
+نصیبے
+نکلتے
+نکلئے
+نکمے
+نکیلے
+نکھتے
+نکھئے
+نگلتے
+نگلئے
+نگیلے
+نگینے
+نگھتے
+نگھئے
+نمٹتے
+نمٹئے
+نمستے
+نیٹھے
+نیمچے
+ئینچے
+ئینگے
+یتیلے
+یکھتے
+یکھئے
+ینٹھے
+ینکتے
+ینکئے
+ینگتے
+ینگئے
+ہٹیلے
+ہچکتے
+ہچکئے
+ہلگتے
+ہلگئے
+ہمکتے
+ہمکئے
+ہنستے
+ہنسئے
+ھکیلتے
+ھکیلئے
+ھکیلے
+ھلکتے
+ھلکئے
+ھمکتے
+ھمکئے
+ھنستے
+ھنسئے
+ھنکتے
+ھنکئے
+بصیغہ
+بقیتہ
+بگینہ
+بلیلبہ
+بنفشہ
+بنگلہ
+بیلچہ
+تپنچہ
+تثنیہ
+تخلیہ
+تسمیہ
+تشبیہ
+تصفیہ
+تعلقہ
+تعمیہ
+تکمیلہ
+تمنچہ
+تنبیہ
+تہلکہ
+ٹھٹھہ
+ٹھیکہ
+ٹھیلہ
+ثعلبہ
+ثمینہ
+جلیلہ
+جمعتہ
+جمیلہ
+چشتیہ
+حبیبہ
+حسینہ
+حشتیہ
+حلفیہ
+حلیلہ
+حلیمہ
+حنیفہ
+خبیثہ
+خجستہ
+خفیفہ
+خلیلہ
+سفینہ
+سقیفہ
+شکستہ
+سکینہ
+سلسلہ
+سنبلہ
+سہیلہ
+شبیلہ
+شبینہ
+شعشعہ
+شفیعہ
+شفیقہ
+شقیقہ
+شکبیہ
+شکستہ
+شکنجہ
+شکیبہ
+شکیلہ
+شگفتہ
+شمیمہ
+شنیعہ
+شیفتہ
+شہنشہ
+صبعتہ
+صبغتہ
+صبیحہ
+صحیفہ
+ضحیفہ
+ضمیمہ
+طبیبہ
+طپنچہ
+طلیعہ
+طمنچہ
+طنطنہ
+عجیبہ
+عشقیہ
+عصبیہ
+عطیۂ
+عظیمہعفیفہ
+عقیقہ
+عقیلہ
+عقیمہ
+علقمہ
+علمیہ
+عیلیہ
+غلغلہ
+غلیطہ
+غلیظہ
+غلیلہ
+غنچۂ
+فتیلہ
+فصیحہ
+فلبتہ
+فلسفہ
+فلیتہ
+فیصلہ
+قبیحہ
+قبیلہ
+قتیکہ
+قسمیہ
+قمقمہ
+قہقہہ
+کبیسہ
+کٹکنہ
+کلبلہ
+کلکتہ
+کلمتہ
+کلنکہ
+کلیجہ
+کلیلہ
+کمینہ
+کنینہ
+کہھجلہ
+گنجفہ
+گھنٹہ
+لجمعہ
+لجملہ
+لجنتہ
+لخلخہ
+لشتیہ
+لشعبہ
+لطیفہ
+لعنتہ
+لقلقہ
+لکعبہ
+للغتہ
+للہ
+لمنتہ
+لیلتہ
+مبینہ
+متصلہ
+متفقہ
+متنبہ
+مثبتہ
+مجسمہ
+مجلہ
+مچلکہ
+محسنہ
+محصنہ
+محکمہ
+محلہ
+مخمصہ
+مسلمہ
+مسئلہ
+مسینہ
+مشتبہ
+مشعلہ
+مشغلہ
+مصنفہ
+مضحکہ
+مطلقہ
+مظلمہ
+مظنہ
+معلقہ
+معلمہ
+معینہ
+مغلیہ
+مغنیہ
+مقنہ
+مکتبہ
+منحقہ
+ملیحہ
+ممکنہ
+منصۂ
+منطقہ
+میختہ
+میمنہ
+مہملہ
+مہینہ
+نپیلہ
+نتیجہ
+نسیمہ
+نشستہ
+نصیبہ
+نطینہ
+نظمیہ
+نعتیہ
+نعیمہ
+نگینہ
+نیمچہ
+ئنچہ
+ہلیلہ
+ہمیشہ
+ہمہمہ
+پینٹہ
+ٹھیٹھ
+جھنجھ
+کھنکھ
+لینتھ
+ملیچھ
+ہیلتھ
+لبینتہ
+لعظمتہ
+مشخیل
+حسنی
+خنثی
+عقبی
+عیسی
+لبنی
+لصلو
+مثنی
+مجلی
+مجملا
+محشی
+جلگ
+معلی
+مقفی
+یحیی
+تعلقا
+قیمتا
+مجملا
+مطلقا
+بنجتی
+بنجنی
+بنسنی
+بنفشی
+بنیٹی
+بنینی
+بتیتی
+بتینی
+بیٹھی
+بیجتی
+بیجنی
+بیچتی
+بیچنی
+بیسنی
+بیکسی
+بیگمی
+بیگنی
+بیلتی
+بیلتی
+بیلنی
+بینتی
+بینکی
+بیننی
+بیہقی
+بھجتی
+بھجنی
+بہشتی
+بہکتی
+بہکنی
+بہلتی
+بہلنی
+بہنگی
+بھبکی
+بھپکی
+بھتنی
+بھٹکی
+بھٹنی
+بھٹئ
+بھجتی
+بھجنی
+بھچتی
+بھچنی
+بھسکی
+بھشتی
+بھکتی
+بھکنی
+بھگتی
+بھلتی
+بھلسی
+بھلنی
+بھنتی
+بھنچی
+بھنکی
+بھنگی
+بھننی
+بھیجی
+بھیکی
+بھیگی
+بھیلی
+بھینی
+پتیلی
+پتھتی
+پتھنی
+پٹختی
+پٹچنی
+پٹکنی
+پٹکتی
+پٹیتی
+پچکتی
+پچکنی
+پچپسی
+پچھتی
+پچھلی
+پچھمی
+پچھنی
+پچتگی
+پستئ
+پسیجی
+پگلتی
+پگلنی
+پگھلی
+پلپلی
+پلتھی
+پلٹتی
+پلٹنی
+پنبئ
+پنپنی
+پنتھی
+پنچھی
+پنکھی
+پنگتی
+پنیلی
+پیپسی
+پیپلی
+پیتلی
+پیتھی
+پیٹتی
+پیٹنی
+پیٹھی
+پیستی
+پیسنی
+پیشگی
+پیکسی
+پیلتی
+پیلنی
+پینٹی
+پھسکی
+پہنتی
+پہنچی
+پہنی
+پہیلی
+پھبتی
+پھبکی
+پھبنی
+پھپی
+پھپکی
+پھپھی
+پھٹتی
+پھٹکی
+پھٹنی
+پھسکی
+پھسلی
+پھکتی
+پھکنی
+پھلتی
+پھلٹی
+پھلسی
+پھلکی
+پھلنی
+پھنتی
+پھنسی
+پھنکی
+پھنگی
+پھننی
+پھیکی
+پھیلی
+پھینی
+تبتی
+تیبچی
+تپکتی
+تپکنی
+تحفگی
+تشنجی
+تشنگی
+تعصبی
+تعصبی
+تعلقی
+تعلی
+تغلقی
+تکبکی
+تکتکی
+تکلفی
+تکینی
+تلتلی
+تللی
+تلملی
+تلیٹی
+تمیمی
+تنتنی
+تنفسی
+تنکتی
+تنکنی
+تیبچی
+تیپچی
+تیجتی
+تیجنی
+تیکھی
+تھپتی
+تھپکی
+تھپنی
+تھتھی
+تھجتی
+تھجنی
+تھکتی
+تھکلی
+تھکنی
+تھگلی
+تھلتی
+تھلنی
+تھمتی
+تھمنی
+تھنچی
+تھیلی
+ٹپکتی
+ٹکٹکی
+ٹکھلی
+ٹلٹلی
+ٹنگتی
+ٹنگنی
+ٹیپتی
+ٹیپنی
+ٹیکتی
+ٹیکسی
+ٹیکنی
+ٹینکی
+ٹہلتی
+ٹہلنی
+ٹھٹکی
+ٹھٹھی
+ٹھستی
+ٹھسکی
+ٹھسنی
+ٹھکتی
+ٹھکنی
+ٹھگتی
+ٹھگنی
+ٹھلتی
+ٹھلنی
+ٹھمکی
+ٹھنتی
+ٹھنکی
+ٹھنگی
+ٹھننی
+ٹھیکی
+ٹھیگی
+ٹھینی
+ثعلبی
+جستگی
+جلیبی
+جلیسی
+جلیلی
+جملگی
+جمنئ
+جمیلی
+جنگلی
+جیتتی
+جیتنی
+جیٹھی
+جہنمی
+جھپٹی
+جھپکی
+جھجکی
+جھکتی
+جھکنی
+جھلتی
+جھلسی
+جھلکی
+جھلنی
+جھمکی
+جھنجی
+جھیلی
+چبکتی
+چبکنی
+چبینی
+چبھتی
+چبھنی
+چپٹتی
+چپٹنی
+چپکتی
+چپکنی
+چپنٹی
+چپیٹی
+چتھلی
+چٹختی
+چٹخنی
+چٹکتی
+چٹکنی
+ہچکنی
+چسکتی
+چسکنی
+چکٹتی
+چکٹنی
+چکلتی
+چکلنی
+چکھتی
+چکھنی
+چلبلی
+چلچلی
+چلملچی
+چمپئ
+چمٹتی
+چمٹنی
+چمکتی
+چمکنی
+چنبلی
+چنچنی
+چپیتی
+چپینی
+چیختی
+چیخنی
+چپنٹی
+چینگی
+چہکتی
+چہکنی
+چہیتی
+چھپتی
+چھپٹی
+چھپنی
+چھٹتی
+چھٹکی
+چھچھو
+چھلتی
+چھلتی
+چھلکی
+چھلنی
+چھنتی
+چھنٹی
+چھنکی
+چھننی
+چھیپی
+چھیلی
+چھینی
+حبیبی
+حسنی
+حسینی
+حقیقی
+حکمتی
+حکیمی
+حلیلی
+حلیمی
+حنبلی
+خستگی
+خصلتی
+خفتگی
+خلتسی
+خلخلی
+خلیجی
+خمینی
+خنثی
+سپینی
+ستخطی
+ستھنی
+سٹکتی
+سٹکنی
+سجیلی
+سچیتی
+سسکتی
+سسکنی
+سلپـی
+سلجھی
+سلسلی
+سلفچی
+سلگتی
+سلگنی
+سلمی
+سلیٹی
+سلگنی
+سمبلی
+سمبھی
+سمپلی
+سمٹتی
+سمٹنی
+سمجھی
+سمیٹی
+سنسنی
+سنکتی
+سنکلی
+سنکنی
+سککتی
+سیفٹی
+سیکھی
+سیلتی
+سیلنی
+سیمگی
+سینتی
+سینٹی
+سینچی
+سینکی
+سینگی
+سہلتی
+سہلنی
+سہمتی
+سہمنی
+سہیلی
+شبنمی
+شستگی
+شفتگی
+شفتلی
+شکیبی
+شلجمی
+شلغمی
+شمنگی
+صحبتی
+صخحچی
+صلیبی
+صنعتی
+ضعیفی
+طبلچی
+طبیعی
+طفیلی
+طلسمی
+عظمی
+عظیمی
+عقبی
+عقیلی
+علیگی
+غصیلی
+غفلتی
+غلئ
+غنچگی
+غنغنی
+غیبتی
+فلسفی
+فلیٹی
+فیمچی
+فیملی
+فینسی
+قسمتی
+قلعئ
+قلیبی
+قلیتی
+قلیمی
+قیمتی
+قینـی
+کپکپی
+کتھئ
+کٹکٹی
+کٹکنی
+کچکچی
+کچلتی
+کچلنی
+کچھنی
+کسلتی
+کسلنی
+کشتنی
+کشمشی
+کلبلی
+کلتھی
+کلیتی
+کلیٹی
+کلیجی
+کلیمی
+کمپلی
+کمسنی
+کملتی
+کملنی
+کمیتی
+کمیٹی
+کمینی
+کنپٹی
+کنجنی
+کنچنی
+کنکتی
+کنکٹی
+کنکنی
+کنکلی
+کنگھی
+کیتلی
+کیتھی
+کیچلی
+کیکتی
+ککیلنی
+کھبی
+کھپتی
+کھپچی
+کھپنی
+کھتی
+کھتلی
+کھٹتی
+کھٹی
+کھٹکی
+کھٹل
+کھجی
+کھجلی
+کھسکی
+کھسلی
+کھلتی
+کھلنی
+کھمبی
+کھنچی
+کھنسی
+کھنکی
+کھنی
+کھیتی
+کھیلی
+کھینی
+کھیئی
+گپکتی
+گپکنی
+گتھتی
+گتھنی
+گٹکتی
+گٹکنی
+گٹھتی
+گٹھلی
+گٹھنی
+گجگجی
+گشتگی
+گفتنی
+گلتھی
+گلکلی
+گنٹھی
+گنگنی
+گینتی
+گہکتی
+گہکنی
+گھپتی
+گھپنی
+گھٹتی
+گھٹکی
+گھٹنی
+گھچلی
+گھستی
+گھسٹی
+گھسنی
+گھلتی
+گھلنی
+گھنٹی
+گھنگی
+گھنی
+لبلبی
+لبنی
+لنیلی
+لپٹتی
+لپٹنی
+لپکتی
+لپکنی
+لپیٹی
+لٹکتی
+لٹکنی
+لجمعی
+لجھتی
+لجھنی
+لچسپی
+نچکتی
+لچکنی
+لچھتی
+لچھمی
+لچھنی
+لیسنی
+لضحی
+لعنتی
+لفنگی
+لکشمی
+لکعبی
+لکھتی
+لکھنی
+لمحصی
+لمحیی
+لمعطی
+لمغنی
+لمکتی
+لکتی
+لمکنی
+لنسکی
+لنگتی
+کینڑ
+لنگھی
+لیپتی
+لیپنی
+لیٹتی
+لیٹنی
+لیجھی
+لیچتی
+لیچنی
+لیستی
+لیسنی
+لیلی
+لہکتی
+لہکنی
+مبنی
+مثیلی
+مجسٹی
+مجلسی
+مجلی
+مجملی
+مچکتی
+مچکنی
+مچلنی
+مچھلی
+محبتی
+محسنی
+محشی
+محلی
+محنتی
+مخلصی
+مخلی
+مخملی
+مسکتی
+مسکنی
+مسنتی
+مسلنی
+مسمسی
+مسمی
+مسیحی
+مشفقی
+مشقتی
+مثنی
+مشینی
+مصحفی
+مفطکی
+مصطگی
+مصلی
+مطلبی
+معطلی
+معلمی
+معلی
+معینی
+مغلئٖ
+مفلسی
+مقتضی
+مقضی
+مقفی
+مکتبی
+ملتجی
+ملگجی
+ملنکی
+ملہٹی
+منتہی
+منجلی
+منجھی
+منچلی
+منحنی
+منصبی
+منصفی
+منطقی
+منقی
+منکتی
+منکتی
+منگتی
+منگنی
+منمنی
+منہنی
+میتھی
+میٹتی
+میٹنی
+میٹھی
+میجتی
+میجنی
+میچتی
+میچنی
+میکسی
+میگنی
+میلسی
+میمنی
+مہکتی
+مہکنی
+مہنگی
+نبٹتی
+نبٹنی
+نبختی
+نبھتی
+نپٹتی
+نپٹنی
+پنجتی
+پنجنی
+نتھنی
+نٹیلی
+نٹھتی
+نٹھنی
+نجیلی
+نجھتی
+نجھنی
+نچھتی
+نچھنی
+نسبتی
+نسیسی
+نسینی
+نشیبی
+نشیلی
+نشینی
+نعیمی
+نکلتی
+نکلنی
+نکمی
+نکیلی
+نکھتی
+نکھنی
+نگلتی
+نگلنی
+نگیلی
+نگینی
+نگھتی
+نگھنی
+نمٹتی
+نمٹنی
+نطینی
+نیستی
+نیکسی
+نینسی
+ئستگی
+ئینٹی
+ٹینکی
+ئینگی
+یتیلی
+یتیمی
+یجنسی
+یحیی
+یخھنی
+یحیی
+یفتگی
+یقینی
+یکنسی
+یکھتی
+یکھنی
+یلمعی
+یمیمی
+یمینی
+ینٹھی
+ینکتی
+ینکنی
+ینگتی
+ینگنی
+ہتھنی
+نٹیلی
+ہچکتی
+ہچکنی
+ہستگی
+ہستنی
+ہلبلی
+ہلگتی
+ہلگنی
+ہمکنی
+ہنستی
+ہنسلی
+ہنسنی
+ہشیمی
+ھکیلی
+ھلکتی
+ھلکنی
+ھمکتی
+ھمکنی
+ھنستی
+ھسنی
+ھنکتی
+ھنکنی
+بصیغہ
+بقیتہ
+بگینہ
+بلیلبہ
+بنفشہ
+بنگلہ
+بیلچہ
+تپنچہ
+تثنیہ
+تخلیہ
+تسمیہ
+تشبیہ
+تصفیہ
+تعلقہ
+تعمیہ
+تکمیلہ
+تمنچہ
+تنبیہ
+تہلکہ
+ٹھٹھہ
+ٹھیکہ
+ٹھیلہ
+ثعلبہ
+ثمینہ
+جلیلہ
+جمعتہ
+جمیلہ
+چشتیہ
+حبیبہ
+حسینہ
+حشتیہ
+حلفیہ
+حلیلہ
+حلیمہ
+حنیفہ
+خبیثہ
+خجستہ
+خفیفہ
+خلیلہ
+سفینہ
+سقیفہ
+شکستہ
+سکینہ
+سلسلہ
+سنبلہ
+سہیلہ
+شبیلہ
+شبینہ
+شعشعہ
+شفیعہ
+شفیقہ
+شقیقہ
+شکبیہ
+شکستہ
+شکنجہ
+شکیبہ
+شکیلہ
+شگفتہ
+شمیمہ
+شنیعہ
+شیفتہ
+شہنشہ
+صبعتہ
+صبغتہ
+صبیحہ
+صحیفہ
+ضحیفہ
+ضمیمہ
+طبیبہ
+طپنچہ
+طلیعہ
+طمنچہ
+طنطنہ
+عجیبہ
+عشقیہ
+عصبیہ
+عطیۂ
+عظیمہعفیفہ
+عقیقہ
+عقیلہ
+عقیمہ
+علقمہ
+علمیہ
+عیلیہ
+غلغلہ
+غلیطہ
+غلیظہ
+غلیلہ
+غنچۂ
+فتیلہ
+فصیحہ
+فلبتہ
+فلسفہ
+فلیتہ
+فیصلہ
+قبیحہ
+قبیلہ
+قتیکہ
+قسمیہ
+قمقمہ
+قہقہہ
+کبیسہ
+کٹکنہ
+کلبلہ
+کلکتہ
+کلمتہ
+کلنکہ
+کلیجہ
+کلیلہ
+کمینہ
+کنینہ
+کہھجلہ
+گنجفہ
+گھنٹہ
+لجمعہ
+لجملہ
+لجنتہ
+لخلخہ
+لشتیہ
+لشعبہ
+لطیفہ
+لعنتہ
+لقلقہ
+لکعبہ
+للغتہ
+للہ
+لمنتہ
+لیلتہ
+مبینہ
+متصلہ
+متفقہ
+متنبہ
+مثبتہ
+مجسمہ
+مجلہ
+مچلکہ
+محسنہ
+محصنہ
+محکمہ
+محلہ
+مخمصہ
+مسلمہ
+مسئلہ
+مسینہ
+مشتبہ
+مشعلہ
+مشغلہ
+مصنفہ
+مضحکہ
+مطلقہ
+مظلمہ
+مظنہ
+معلقہ
+معلمہ
+معینہ
+مغلیہ
+مغنیہ
+مقنہ
+مکتبہ
+منحقہ
+ملیحہ
+ممکنہ
+منصۂ
+منطقہ
+میختہ
+میمنہ
+مہملہ
+مہینہ
+نپیلہ
+نتیجہ
+نسیمہ
+نشستہ
+نصیبہ
+نطینہ
+نظمیہ
+نعتیہ
+نعیمہ
+نگینہ
+نیمچہ
+ئنچہ
+ہلیلہ
+ہمیشہ
+ہمہمہ
+پینٹہ
+ٹھیٹھ
+جھنجھ
+کھنکھ
+لینتھ
+ملیچھ
+ہیلتھ
+لبینتہ
+لعظمتہ
+مشخیل
+حسنی
+خنثی
+عقبی
+عیسی
+لبنی
+لصلو
+مثنی
+مجلی
+مجملا
+محشی
+جلگ
+معلی
+مقفی
+یحیی
+تعلقا
+قیمتا
+مجملا
+مطلقا
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/6grams.txt b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/6grams.txt
new file mode 100644 (file)
index 0000000..d1e21f1
--- /dev/null
@@ -0,0 +1,1542 @@
+بھینگا
+ٹھینگا
+پتیلیا
+بلبلیا
+پلپلیا
+تلتلیا
+ٹلٹلیا
+پھینکا
+پگھلتا
+پگھلنا
+ٹگھلتا
+ٹگھلنا
+بنگلیا
+بیٹھتا
+بیٹھنا
+ینٹھتا
+ینٹھنا
+بھیجتا
+بھیجنا
+پہنچتا
+پہنچنا
+بھیلتا
+بھیلنا
+بھیلیا
+پھیلتا
+پھیلنا
+ٹھیلتا
+ٹھیلنا
+ٹیکسٹا
+ٹیکسیا
+پسیجتا
+پسیجنا
+بھبکتا
+بھبکنا
+بھبکیا
+بھپکتا
+بھپکنا
+بھپکیا
+بھٹکتا
+بھنکتا
+بھنکنا
+بھیگتا
+بھیگنا
+پھٹکتا
+پھنکتا
+پھنکنا
+پھنکیا
+تپھکتا
+تپھکیا
+ٹھنکتا
+ٹھنکنا
+ٹھنکیا
+بھٹکنا
+پٹھکنا
+تھپکنا
+بھتیجا
+بھینچا
+پھینچا
+تھیلیا
+ٹھمکتا
+ٹھمکنا
+ٹھمکیا
+ھکیلتا
+پہیلیا
+بھگتنا
+پھسلنا
+پھسلتا
+پھنستا
+پھنسنا
+ٹھنستا
+ٹھنسنا
+چھبیلا
+چٹخنیا
+ھکیلنا
+پھکنیا
+سلجھتا
+سلجھنا
+کھیلتا
+کھیلنا
+کھینچتا
+جھینکا
+جھینگا
+چھینکا
+کھنچنا
+کھٹکتا
+کھٹکنا
+کھٹکیا
+کھنکتا
+کھنکنا
+بھگتتا
+چینٹیا
+جھیلتا
+جھیلنا
+چھیلتا
+چھیلنا
+چینگتا
+چینگنا
+سمجھتا
+سمجھنا
+جھلنگا
+چھلنگا
+جھپٹتا
+جھپٹنا
+جھینپا
+چھنٹتا
+چھنٹنا
+چھیننا
+جھلکتا
+جھلکنا
+جھلکیا
+چھلکتا
+چھلکنا
+چھلکیا
+جھپکتا
+جھپینا
+جھپکیا
+جھٹکتا
+جھٹکنا
+جھکیا
+چھٹکتا
+چھٹکنا
+چھٹکیا
+لپیٹتا
+لپیٹنا
+بھسکنا
+بھسکتا
+ٹھسکتا
+ٹھسکنا
+جھجکنا
+جھجکتا
+چھینتا
+سمیٹنا
+سمیٹتا
+گھنٹیا
+چپیٹتا
+چپیٹنا
+چھینیا
+طبیعیا
+کھسکتا
+کھسکنا
+کھیتیا
+گھٹنیا
+میٹھتا
+میٹھنا
+جھپیٹا
+لبلبیا
+لبیلیا
+ہتھنیا
+چمکیلا
+چھلنیا
+سنکھیا
+سیکھتا
+سیکھنا
+چٹکیلیا
+جلیبیا
+جھلستا
+جھلسنا
+چھینٹا
+سینچتا
+سینچنا
+گھسٹتا
+گھسیٹا
+جھنجلا
+جھلملا
+جھمیلا
+سینکتا
+سینکنا
+فلسفیا
+لہسنیا
+لنگھتا
+لنگھنا
+بہنگیا
+بھینسا
+پتنگیا
+پھلکیا
+تخلیقا
+نتھنیا
+نخلستا
+جھنجھنا
+چھیجتا
+چھنکتا
+چھنکنا
+چبھینا
+سٹکنیا
+کیتلیا
+کنپٹیا
+گھٹلیا
+لچکیلا
+تخمینا
+سینتتا
+سینتنا
+بپتسما
+منگنیا
+مہکیلا
+سنبھلا
+مطلقا
+تحقیقا
+جھنجھیا
+جھمکتا
+جھمکنا
+جھمکیا
+چھتیسا
+سنجھلا
+فضیحتا
+فضیحتا
+متعلقا
+مچھلیا
+ملیشیا
+بھتنیا
+پھبتیا
+کھینچا
+گھیتلا
+گھیتلا
+کنکھیا
+کٹکھنا
+کنگھیا
+چھچھلا
+منجھلا
+سینگنا
+سینگیا
+طلیستا
+کنگنیا
+کھٹہنا
+کھسلتا
+گنٹھیا
+کچھنیا
+کھسلنا
+کیچلیا
+گنجھیا
+گینگٹا
+چھچھنا
+سنسنیا
+گھنگھنا
+کھکھلا
+گنٹھتا
+گنٹھنا
+بھجنگا
+بھنگیا
+ٹھنگنا
+گملیلا
+پھبکتا
+پھبکنا
+پھنگیا
+گینگلا
+پھپکنا
+تحصیلا
+ٹھٹکتا
+ٹھٹکنا
+کھلبلا
+کھنستا
+کھنسنا
+کھیکٹا
+گھٹکتا
+گھٹکنا
+گھینٹا
+گھینپا
+پٹیلتا
+پٹیلنا
+پھینٹا
+پیپلیا
+تسلیا
+تسلیما
+تعصبا
+تعطیلا
+تعلیما
+تعمیلا
+تعیشا
+تکلیفا
+تمثیلا
+تھنچتا
+تھنچنا
+ٹیکسلا
+یمیلیا
+پھسکتا
+پھسکنا
+سبھیتا
+کمپنیا
+معلما
+پھپھیا
+تنصیبا
+نگلستا
+مصطلحا
+گیمبیا
+بکسیلا
+تعظیما
+ٹکسیلا
+کنکٹیا
+تفصیلا
+گھنشیا
+تکلفا
+گھینٹا
+چھیجنا
+لکیمیا
+جھٹپٹا
+بھینٹا
+سنگیتا
+میکنما
+سٹیبلا
+نگینیا
+فلمستا
+فلمسٹا
+بھلسنا
+بھلستا
+سیمینا
+پنکھیا
+پنچھیا
+پھنسیا
+پھسکیا
+قینچیا
+لچیسپیا
+صنعتکا
+تصنیفا
+بلتستا
+تلمیحا
+ملتجیا
+تشبیحا
+بہشتیا
+مصلحتا
+منتظما
+کمیٹیا
+کنٹھیا
+کھچیا
+میکسیا
+بگھلیا
+تصحیفا
+چلمـچیا
+چہیتیا
+سلفچیا
+چمنستا
+لنہیا
+تضحیکا
+بستگیا
+فیملیو
+میگھنا
+پچکلیا
+تنعما
+تنقیحا
+پشیتبا
+ضعیفو
+سمبلیا
+نمیبیا
+منتخبا
+حسینیا
+یجنسیا
+پچیسیا
+یچھنیا
+بتیسیا
+نشینیا
+سہیلیا
+مستجیب
+متعصب
+صنعتیت
+مستغیث
+لحقیقت
+بحیثیت
+لمحصنت
+لسلطنت
+ہلسنت
+بلیسیت
+مسیحیت
+حسینیت
+جھنجھٹ
+لیمینٹ
+یتھلیٹ
+یلپمنٹ
+سٹیٹمنٹ
+لیفٹسٹ
+بینیفٹ
+لیفٹنٹ
+ٹیفیکٹ
+جسٹمنٹ
+مستغیث
+تسبیح
+عقلمند
+نقشبند
+مستفید
+کسلمند
+فلمبند
+قلمبند
+صحتمند
+ٹھیکید
+کشتمند
+تحصیلد
+کمیشنڈ
+نگلینڈ
+پلیٹڈ
+سٹلینڈ
+کھٹمنڈ
+کنسیلڈ
+ہتھکنڈ
+جھینگر
+ٹیلیگر
+نسپکڑ
+پیغمبر
+پیتمبر
+پسینجر
+مینیجر
+لمختصر
+گمبیھر
+ٹھٹھیر
+گھمبیر
+کھینچر
+کیمسٹر
+گلیشیر
+مستعمر
+منگیتر
+سپیکٹر
+مستفسر
+نجینءر
+لمتکبر
+یلفیءر
+سٹیشنر
+گھنگھر
+کھنکھر
+نیپیءر
+نفینٹر
+منٹگر
+ستکھیر
+مستظہر
+لکسمبر
+لگسمبر
+پچھتّر
+لمشتہر
+جھنجھر
+مستنصر
+کمپلسر
+سپینسر
+ٹھیھیر
+مستحصر
+بینظیر
+کینٹیز
+کمیشنر
+لمینڑ
+کمپیءر
+بغلگیر
+بیکٹیر
+لنجھیڑ
+پھلجھڑ
+کھکھپڑ
+بھلکّڑ
+پیکیجز
+کمپنیز
+متمیّز
+منگنیز
+کمیٹیز
+یجنسیز
+فنکشنز
+یلیشنز
+کمیشنر
+جیلنجز
+میٹنگز
+پنیتیس
+کمپلکس
+تینتیس
+ٹیلیکس
+سینتیس
+کلینکس
+لتشخیص
+لمتخلص
+لتخصیص
+مستفیض
+لتصنیف
+منجنیق
+لتحقیق
+ٹیکنیک
+میکینک
+ینگلیک
+تعلّقہ
+میجسٹک
+تھلیٹک
+پینٹنگ
+منیجنگ
+سمگلنگ
+میفکنگ
+کیمپنگ
+ٹیسٹنگ
+بینکنگ
+بلیجنگ
+ٹیکنکل
+نسٹیبل
+یکٹیکل
+لتفصیل
+چھنٹیل
+سٹینسل
+لتحصیل
+سلسبیل
+لتعمیل
+مستعمل
+مستقبل
+مستطیل
+کیمیکل
+بتفصیل
+سمعیل
+مستعجل
+تھلتھل
+کیلسیم
+کیلشیم
+متعلّم
+لتعظیم
+مستقیم
+بکنگھم
+لمنتکم
+مستحکم
+لتعلیم
+مستعصم
+چلبلین
+چمپیءن
+لحسنین
+فلسطین
+سلیکشن
+سلیکشن
+کینٹین
+لیٹیشن
+فسنطین
+کعبتین
+کھنکھن
+لمہیمن
+گبھیلن
+کنسیشن
+مجیشین
+کیپسٹن
+کیسپین
+محققین
+مستحسن
+کنگسٹن
+تھمپٹن
+چھچھلن
+مسلمین
+لثقلین
+متخصصین
+مصنفین
+معلمین
+فٹسمین
+محسنین
+مبلغین
+منصفین
+مصلحین
+بینجمن
+یسیپشن
+بیجتیں
+پٹختیں
+بیچتیں
+تکتیں
+پلٹتیں
+پچکتیں
+جھیلیں
+چھیلیں
+غفلتیں
+بھسکیں
+ٹھسکیں
+بھنتیں
+پھٹتیں
+ٹگھلیں
+پگھلیں
+ٹھنتیں
+نمٹتیں
+پتنگیں
+پینگیں
+پینگیں
+نٹھتیں
+بھیلیں
+پھیلیں
+ٹھیلیں
+پگلتیں
+نکلتیں
+نگلتیں
+نکھتیں
+نگھتیں
+نگھتیں
+بہلتیں
+ٹہلتیں
+بھکتیں
+بھگتیں
+پھکتیں
+ٹھکتیں
+ٹھگتیں
+بھپکیں
+بھٹکیں
+بھٹکیں
+بھیگیں
+پھٹکیں
+پھنکیں
+تھپکیں
+چٹختیں
+بچکتیں
+نکیلیں
+نگیلیں
+بیلتیں
+چبھتیں
+چپکتیں
+چٹکتیں
+کھٹکیں
+کھنکیں
+کھلتیں
+گھلتیں
+سمٹتیں
+سمیٹیں
+نجھتیں
+پچھتیں
+پٹکتیں
+ٹپکتیں
+ٹنگتیں
+ٹیکتیں
+ینکتیں
+ینگتیں
+نچھتیں
+بچھتیں
+کھیتیں
+گھٹتیں
+ھینگیں
+بجھتیں
+بھبکیں
+ٹھنکیں
+بچھئیں
+چپٹتیں
+مٹکتیں
+منگتیں
+محبتیں
+محنتیں
+جھپکیں
+جھٹکیں
+جھیکیں
+جھیکیں
+جیتتیں
+لپٹتیں
+لیپتیں
+لیٹتیں
+کھپتیں
+لپٹیں
+بتکتیں
+چکٹتیں
+لپکتیں
+لٹکتیں
+لنگتیں
+لنگتیں
+ہنستیں
+ھکیلیں
+چلبلیں
+چھپتیں
+چھٹتیں
+چسکتیں
+لہکتیں
+جھپٹیں
+چھنٹیں
+جھلسیں
+لیستیں
+ہچکتیں
+پھسلیں
+پھسلیں
+لجھتیں
+لچھتیں
+پھلتیں
+کیلتیں
+ملتیں
+بچلتیں
+پسیجیں
+بلکتیں
+پہنتیں
+پہنچیں
+بہکتیں
+ٹھستیں
+پھنسیں
+چبکتیں
+چبکتیں
+جھجکیں
+قیمتیں
+کٹکتیں
+گٹکتیں
+گھستیں
+گھسٹیں
+لکھتیں
+مجلسیں
+مچلتیں
+مچکتیں
+مسلیں
+مشکلیں
+میٹتیں
+مہکتیں
+ہمکتیں
+ٹھمکیں
+چمکتیں
+چھلکیں
+سبیلیں
+سنکتیں
+سہلتیں
+کلیلیں
+مشیتیں
+بنفشیں
+چہکتیں
+چھنکیں
+میچتین
+نسبتیں
+گھپتیں
+کھٹتیں
+سینکیں
+سینگیں
+چینگیں
+لچکتیں
+لیکھیں
+فسنطیں
+سیلتیں
+کچلتیں
+کسلتیں
+کلفتیں
+کھسکیں
+کھنچیں
+کھیلیں
+گٹھتیں
+گنٹھیں
+مخملیں
+مکھئں
+جھلکیں
+میجتیں
+بخشتیں
+بھچتیں
+بھیجیں
+سلگتیں
+سہمتیں
+سہمگیں
+سینچیں
+سیکھیں
+فضلتیں
+مسلتیں
+میٹھیں
+پیستیں
+مسکتیں
+لیچتیں
+کملتیں
+گلگلیں
+کھسلیں
+سلجھیں
+سمجھیں
+گتھتیں
+کلبلیں
+نشستیں
+گھٹکیں
+ھمکتیں
+بھلتیں
+پتھتیں
+تپکتیں
+تنکتیں
+تھلتیں
+تھمتیں
+تہمتیں
+ٹھٹکیں
+ٹھٹکیں
+سسکتیں
+سسکتیں
+سینتیں
+گپکتیں
+گپکتیں
+کیکتیں
+لعنتیں
+مشینیں
+ٹھنسیں
+بلنگیں
+پلنگیں
+پھسکیں
+بھنگیں
+پھبکیں
+ٹھلتیں
+گہکتیں
+مثلثیں
+منکتیں
+منکتیں
+تھپتیں
+نخستیں
+صحبتیں
+بگیلیں
+بھجتیں
+تھجتیں
+چپیٹیں
+تیجتیں
+ہلگتیں
+بنجتیں
+بنٹتیں
+بتیتیں
+بیٹھیں
+بینتیں
+پنپتیں
+پیٹتیں
+ٹیپتیں
+نبٹتیں
+نپٹتیں
+چیپتیں
+ینٹھیں
+جھکتیں
+بخششیں
+قسمتیں
+عصمتیں
+صنعتیں
+صنعتیں
+خشمگیں
+خصلتیں
+خصلتیں
+شکستیں
+قمیصیں
+ئجسٹیں
+غیبتیں
+قلیتیں
+خلیجیں
+شفقتیں
+محفلیں
+صلیتیں
+صلیبیں
+حبشنیں
+لجھنیں
+ستینیں
+غلیلیں
+بیلٹیں
+جبینیں
+کیسٹیں
+قفیتیں
+کمیتیں
+منطقیں
+عظمتیں
+جنبشیں
+چپٹتیں
+نجمجنیں
+پلٹنیں
+سکیمیں
+قلیمیں
+مشعلیں
+ہمیتیں
+مشقتیں
+بلبلیں
+سنگتیں
+حشمتیں
+حکمتیں
+سلیٹیں
+بیگمیں
+بھنگنو
+بھنگیو
+بھیلیو
+تھیلیو
+بھینگو
+پھینکو
+ٹھینگو
+پھکینو
+پہیلیو
+بھبکیو
+بھپکیو
+پھنکیو
+ٹھنکیو
+تھپکیو
+بھتیجو
+بھینچو
+پھینچو
+جھینکو
+چھینکو
+جھپیٹو
+جھینپو
+چھینیو
+چھینٹو
+گھٹنیو
+طبلچیو
+ہتھنیو
+طفیلیو
+حقیقتو
+چھلنیو
+لچسپیو
+پھلکیو
+ٹھمکیو
+کیتلیو
+گٹھلیو
+مچھلیو
+ٹیکسیو
+ہتھنیو
+جنگلیو
+فیمچیو
+کیپسیو
+کنپٹیو
+لبلیو
+کھینچو
+کھٹملو
+سٹکنیو
+گھینپو
+تحصیلو
+سنبھلو
+فضیلتو
+فضیحتو
+مسکینو
+گھنگھو
+گھسیٹو
+کنکھیو
+کنگھیو
+کمپنیو
+کمینیو
+کنٹھیو
+کیچلیو
+گنٹھیو
+کنگیو
+منطقیو
+لعنبکو
+بلینکو
+تعطیلو
+تکنیکو
+تنظیمو
+شخصیتو
+متھیلو
+مجسمو
+معلمو
+مملکتو
+ٹیلیفو
+مصلحتو
+سسکچیو
+کیلیفو
+بطلیمو
+بھینسو
+بھمبھو
+بیٹھکو
+مستحقو
+مغنیو
+پتیلیو
+پیپلیو
+ٹمبکٹو
+منگنیو
+بگھیلو
+ٹکھیلو
+کیلیکو
+چمیسفو
+پھنگیو
+چینٹیو
+بمبینو
+بھینٹو
+پھبتیو
+جھلکیو
+جھلکیو
+چھلکیو
+لکھنؤ
+سلطنتو
+کیسینو
+جھنجھو
+سنگینو
+جھمیلو
+پنکھیو
+پنچھیو
+قینچیو
+طبیعتو
+تکلیفو
+پھنسیو
+تصنیفو
+فیسٹیو
+عصبتیو
+مصیبتو
+بہشتیو
+لمسلمو
+بھتنیو
+جھینگو
+کھیتیو
+کیبنٹو
+لچھیو
+فیمیلیا
+کلینکو
+کمیشنو
+کیمسٹو
+میٹنگو
+مطلبیو
+کمیسٹو
+کنکشنو
+نصیحتو
+ٹیکنکو
+تمثیلو
+پیشکشو
+کیفیتو
+کھچیو
+کمیٹیو
+میکسیو
+تفصیلو
+تشبیہو
+تیئسو
+تخمینو
+تخمینو
+نیستیو
+نشیشیو
+چھبیسو
+چھتیسو
+حسینیو
+سنگھیو
+سمبلیو
+سٹیشنو
+ضعیفیا
+سہیلیو
+معیشتو
+نسیسیو
+چیلنجو
+جھمکیو
+لبعلمو
+بستگیو
+جنکشنو
+تبلیغو
+بتیسیو
+سیکشنو
+نگینیو
+لبیلیو
+یجنسیو
+پچیسو
+نطینیو
+تفتیشو
+فنکشکنو
+پیشگیو
+پینسلو
+جمعیتو
+چھبیلو
+جہنمیو
+یچھنیو
+بھشتیو
+فلسفیو
+منتظمو
+پمفلٹو
+تسبیحو
+پیچکشو
+چٹخنیو
+بصیغۂ
+بصیغۂ
+سقیفۂ
+سفینۂ
+منطقۂ
+پگھلتی
+پگھلنی
+ٹگھلتی
+ٹگھلنی
+پسیجتی
+پسیجنی
+بھتیجی
+بھینچی
+پھینچی
+بھگتتی
+بھگتنی
+پہنچتی
+پہنچنی
+پھنستی
+پھنسنی
+ٹھنستی
+ٹھنسنی
+بھینگی
+پھینکی
+ٹھینگی
+بھیلتی
+بھیلنی
+پھیلتی
+پھیلنی
+ٹھیلتی
+ٹھیلنی
+بھپکنی
+بھٹکتی
+بھٹکنی
+پھٹکتی
+پھٹکنی
+ٹھٹکنی
+بھیگتی
+بھیگنی
+بھپکتی
+ٹھمکتی
+ٹھمکنی
+چھپکی
+ستثنی
+بھنکتی
+بھنکنی
+پھنکتی
+پھنکنی
+تھپکتی
+تھپکنی
+ٹھنکتی
+ٹھنکنی
+بیٹھتی
+بیٹھنی
+ینٹھتی
+کھنچتی
+کھنچنی
+تمکینی
+جھلستی
+جھلستی
+جھلسنی
+پھسلتی
+پھسلنی
+جھلکتی
+جھلکنی
+چھلکتی
+چھلکنی
+کھٹکتی
+کھنکتی
+کھنکنی
+نمکینی
+سلجھتی
+سلجھنی
+جھجکتی
+جھجکنی
+چینگتی
+چینگنی
+سمیٹتی
+سمیٹنی
+کھیلتی
+کھیلنی
+لپیٹتی
+لپیٹنی
+بھسکتی
+بھسکنی
+ٹھسکتی
+ٹھسکنی
+چھبیسی
+چھتیسی
+ھکیلتی
+ھکیلنی
+چھنگلی
+چھپیٹی
+چھینتی
+جھپٹتی
+جھپٹنی
+چھنٹتی
+چھنٹنی
+چھیننی
+میٹھتی
+میٹھنی
+جھپکتی
+جھپکنی
+جھٹکتی
+جھٹکنی
+چھٹکتی
+چھٹکنی
+ہتھیلی
+چپیٹتی
+چپیٹنی
+بھبکتی
+بھبکنی
+ٹھٹکتی
+چنبیلی
+جھیلتی
+جھیلنی
+چھیلتی
+چھیلنی
+جھینپی
+جھینکی
+چھٹنکی
+چھینکی
+ہمیشگی
+کھسکتی
+کھسکنی
+گھسٹتی
+گھسٹنی
+گھسیٹی
+چبھینی
+سینکتی
+سینکنی
+سٹیپنی
+سینتتی
+سینتنی
+سینچتی
+سینچنی
+پھینٹی
+لحسنین
+بھیجتی
+بھیجنی
+مقفی
+چھبیلی
+چھیبلی
+مجتبی
+سیکھتی
+سیکھنی
+مسکینی
+تحقیقی
+تخفیفی
+تخلیقی
+نخستگی
+نخستگی
+چھنکتی
+چھنکنی
+سنجھلی
+مینگنی
+نہفتگی
+خجستگی
+لچکیلی
+لمنتہی
+لنگھتی
+لنگھنی
+منجھلی
+معطلی
+کھٹکنی
+کھلبلی
+متمنی
+متنبی
+متبنی
+جھلملی
+جٹکیلی
+چھیجتی
+چھیجنی
+کھپچی
+کہینگی
+کھٹیکی
+کینچلی
+گٹھیلی
+گھنگچی
+معلمی
+مصطفی
+کھسلتی
+کھسلنی
+کھسکنی
+کھٹکٹی
+فضیحتی
+مشعلچی
+مستعفی
+مستقلی
+چمکیلی
+بینجنی
+سنبھلی
+شیفتگی
+گھینٹی
+پھبکتی
+پھبکنی
+پھپکتی
+پھپکنی
+سمجھتی
+سمجھنی
+مستسقی
+بھینٹی
+پبلسٹی
+تخمینی
+تعمیلی
+تفصیلی
+تفضیلی
+سنگینی
+گنٹھنی
+گنٹھتی
+لعظمی
+مسمی
+میجیسٹی
+بلجیمی
+بھلستی
+بھلسنی
+پھلستی
+پھلسنی
+پیگشتی
+شکستگی
+شگفتگی
+گھٹکتی
+گھٹکنی
+لحسنی
+پشیتنی
+پھنگنی
+ٹھنگنی
+یکجہتی
+ستعفی
+تکمیلی
+نگلیسی
+سیلسٹی
+تحلیلی
+ٹکھیلی
+سنکھنی
+مستغنی
+گھینپی
+متحلی
+تعلی
+پیتھنی
+لیکھتی
+پھلیلی
+تمثیلی
+منتقلی
+گلیکسی
+سینکنے
+نسپلٹی
+کھینچی
+لمجستی
+تفہیمی
+تنظیمی
+تبلیغی
+تشکیلی
+فکلٹی
+غمگینی
+پینجنی
+حیثیتی
+کیفیتی
+معیشتی
+تلمیحی
+تشخیصی
+تعظیمی
+بھیکنی
+تھنکنی
+تھنکتی
+بینگنی
+پینلٹی
+سلطنتی
+عقلیتی
+کمینگی
+تہنیتی
+نصیحتی
+لبعلمی
+تفتیشی
+مکینکی
+نگیٹھی
+سلیقگی
+بھیجتے
+بھیجنے
+بھیجئے
+بھتیجے
+بھینچے
+پگھلتے
+پگھلنے
+پگھلنے
+پگھلئے
+ٹگھلتے
+ٹگھلنے
+ٹگھلئے
+پہنچتے
+پہنچنے
+ٹھٹکتے
+ٹھٹکنے
+ھکیلتے
+ھکیلنے
+ھکیلنے
+ھکیلئے
+پسیجتے
+پسیجنے
+پہنچئے
+بھگتئے
+بھپکتے
+بھپکنے
+بھنکتے
+بھنکنے
+بھیگتے
+بھیگنے
+پھنکنے
+تھپکتے
+تھپکنے
+ٹھنکتے
+ٹھنکنے
+بھینگے
+پھینکے
+پسیجئے
+بھبکتے
+بھبکنے
+بھبکئے
+بھپکئے
+بھٹکتے
+بھٹکنے
+بھٹکئے
+بھنکئے
+پھٹکتے
+پھٹکنے
+پھٹکئے
+پھنکئے
+تھپکئے
+ٹھٹکئے
+ٹھینگے
+ٹھینگے
+بھگتنے
+بھگتتے
+بھگتتے
+بھیگئے
+ٹھنکئے
+پھیلتے
+پھیلنے
+بھیلتے
+بھیلنے
+ٹھیلتے
+ٹھیلنے
+ٹھیلئے
+ٹھمکنے
+ٹھمکئے
+ٹھمکتے
+پھسلتے
+پھسلنے
+پھسلئے
+بیٹھنے
+بیٹھتے
+بیٹھئے
+ینٹھئے
+بھیلئے
+پھنستے
+پھنسنے
+پھنسئے
+ٹھنسئے
+چینگتے
+چینگنے
+چینگئے
+جھلستے
+جھلسنے
+جھلسئے
+چھیلئے
+جھلکتے
+جھلکنے
+جھلکئے
+چھلکتے
+چھلکنے
+چھلکئے
+سلجھتے
+سلجھنے
+کھٹکتے
+کھٹکنے
+کھٹکئے
+کھنکتے
+کھنکنے
+کھنکئے
+پھیلئے
+بھسکتے
+بھسکنے
+بھسکئے
+ٹھسکتے
+ٹھسکنے
+ٹھسکئے
+جھپٹتے
+جھپٹنے
+جھپٹئے
+جھینپے
+جھپیٹے
+چھنٹتے
+چھنٹنے
+چھینتے
+چھیننے
+چھینئے
+چھینٹے
+چھنٹئے
+جھپکتے
+جھپکنے
+جھپکئے
+جھٹکتے
+جھٹکنے
+جھٹکئے
+چھٹکتے
+چھٹکنے
+چھٹکئے
+چھنکتے
+چھنکنے
+چھنکئے
+سلجھئے
+سمیٹتے
+سمیٹنے
+کھنچتے
+کھنچنے
+کھنچئے
+جھجکتے
+جھجکنے
+جھجکئے
+سمیٹئے
+سمجھتے
+کھسکتے
+کھسکنے
+کھسکئے
+لپیٹتے
+لپیٹنے
+لپیٹئے
+میٹھتے
+میٹھنے
+میٹھئے
+جھیلئے
+جھینکے
+جھینگے
+چھینکے
+جھیلتے
+جھیلنے
+چھیلتے
+چھیلنے
+چپیٹتے
+چپیٹنے
+سمجھنے
+گھسٹتے
+گھسٹنے
+گھسٹئے
+گھسیٹے
+چپیٹئے
+سیکھتے
+سیکھنے
+سیکھئے
+ینٹھتے
+ینٹھنے
+چٹکیلے
+سمجھئے
+سینکتے
+سینکنے
+سینکئے
+سینتئے
+سینچتے
+سینچنے
+بھلستے
+بھلسنے
+بھلسئے
+پھلستے
+پھلسنے
+پھلسئے
+سٹینلے
+مصطفے
+بھجنگے
+پھسکتے
+پھسکنے
+پھسکئے
+تھنچتے
+تھنچنے
+تھنچئے
+تھنچئے
+جھمیلے
+کھیلتے
+کھیلنے
+چمکیلے
+کھیلئے
+تخمینے
+بھنچتے
+چھٹپٹے
+گنجینے
+لچکیلے
+چھبیلے
+تخمینہ
+متعلقہ
+مفصلہ
+متعینہ
+گنجینہ
+معلمہ
+مقننہ
+معظمہ
+لعظمتہ
+لبینتہ
+بسلسلہ
+تعلقہ
+منسلکہ
+متخیلہ
+پشمینہ
+تشمینہ
+تہمینہ
+لسبیلہ
+مختلفہ
+طلیلیہ
+طلیلیہ
+حسینیہ
+لمحکمہ
+تعلیقہ
+شبیلیہ
+مسیلمہ
+منتخبہ
+منتظمہ
+حنفیہ
+پینسٹھ
+مجتبے
+طبیعتا
+طخمینا
+مصلحتا
+مجتمعا
+تعمیلا
+مستقلا
+تعظیما
+تفصیلا
+تکلفا
+تمثیلا
+تحقیقا
+نتیجتا
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/7grams.txt b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/7grams.txt
new file mode 100644 (file)
index 0000000..5adff9f
--- /dev/null
@@ -0,0 +1,354 @@
+پھینکتا
+پھینکنا
+بھینچتا
+بھینچنا
+بھینچنا
+پھینچتا
+پھینچنا
+پھینٹتا
+پھینٹتا
+پھنیٹنا
+بھنبھنا
+پھٹپھٹا
+نمکینیا
+جھپیٹتا
+جھپیٹنا
+جھینپتا
+جھینپنا
+چھنگلیا
+چنبیلیا
+چھٹنکیا
+چھینکنا
+چھپکلیا
+کھینچتا
+کھینچنا
+جھینکتا
+جھینکنا
+چھینکتا
+گھسیٹتا
+گھسیٹنا
+سنبھلتا
+سنبھلنا
+جھپیٹیا
+کینچلیا
+چھمچھما
+کھلبلیا
+چھلچھلا
+جھمجھما
+کھٹکھٹا
+گھنگھنا
+مستثنیا
+جھمیلیا
+مینگنیا
+بھینٹتا
+بھینٹنا
+پھنپھنا
+چھچھلتا
+چھچھلیا
+چھچھلنا
+کھکھنا
+گھینپتا
+گھینپنا
+کھسکھسا
+ٹکھیلیا
+تعظیما
+بھلبھلا
+پھلپھلا
+تھلتھلا
+جھنجھنا
+چھنچھنا
+تعلیمیا
+کھپکھپا
+بھتیجیا
+ہتھیلیا
+فیکلٹیا
+تھکتھکا
+کمینگیا
+سنگینیا
+چھتیسیا
+نگیٹھیا
+لمحصنت
+لمحصنت
+تشبیہیت
+نیشنلسٹ
+سپلیمنٹ
+سپیشلسٹ
+سٹیٹمنٹ
+یسپشنسٹ
+مینجمنٹ
+کنسلٹنٹ
+یکسچینج
+سلیکٹیڑ
+بھنبھیر
+کمنٹیٹر
+مسکیٹئر
+یکٹیشنر
+جیسلمیر
+سپلیمنٹر
+سیلیبیز
+کیمیکلز
+نٹلیجنس
+میکینکس
+ٹیفکیٹس
+نستعلیق
+سینتھٹک
+مینیجنگ
+میکینکل
+ٹیکنیکل
+پلیٹینم
+تھیلیئم
+تھینیئم
+لمستقیم
+جنٹلمین
+کمپیٹیشن
+متعلقین
+متکلمین
+مستحقیین
+منتظمین
+لمسلمین
+لمطففین
+بیٹسمین
+ٹیفیکیشن
+سبکتگین
+لیٹیشین
+متخصصین
+لنبیین
+منجمین
+ٹیکسیشن
+پنیسلین
+بھسکتیں
+ٹھسکتیں
+ٹھمکتیں
+ٹھٹکتیں
+بھیلتیں
+پھیتلتیں
+ٹھیلتیں
+چینگتیں
+چپٹیتیں
+چھلتیں
+چھنٹتیں
+بیھٹتں
+ینٹھتیں
+بھینچیں
+پھینچیں
+پگھلتیں
+ٹگھلتیں
+بھبکتیں
+بھپکتیں
+بھٹکتیں
+بھنگتیں
+بھنگنیں
+بھیگتیں
+پھٹکتیں
+تھپکتیں
+ٹھنکتین
+جھلکتین
+چھلکتین
+جھینکین
+جھینکین
+جھلستین
+جھپکتین
+جھٹکتین
+چھٹکتین
+جھیلتین
+جھینپین
+جھپٹتین
+چھینتین
+گھسٹتین
+گھسیٹین
+حقیقتین
+لپٹیتین
+پھسلتین
+تحصیلین
+بھیجتین
+پھنستین
+پھنستین
+فضیلتین
+فضیلتین
+کھینچین
+مشیتین
+ھکیلتین
+لنگھتین
+بھگتتین
+پسیجتین
+پھینکین
+سلجھتین
+کھٹکتین
+کھسکتین
+کھیلتین
+چھچھیلین
+پہنچتیں
+چھیجتیں
+سمجھتیں
+سمیٹتیں
+سیکھتیں
+سیکھتیں
+کھینچتیں
+کھینچتیں
+فضیحتیں
+میٹھتیں
+گٹھیلیں
+گنٹھتیں
+تعلیلیں
+تمثیلیں
+سنبھلیں
+سینتتین
+کھسلتیں
+بھینٹیں
+پھبکتیں
+پھپکتیں
+پھسکتیں
+تھنچتیں
+مصلحتیں
+مملکتین
+تنظیمیں
+بھنکتیں
+بھنکتیں
+شخصیتیں
+شخصیتیں
+کھنکتیں
+گھٹکتیں
+جھپیٹیں
+سلطنتیں
+بیٹھکیں
+سنگینیں
+بھینسیں
+تکلیفیں
+طبیعتیں
+ئسکلیں
+مصیبتیں
+کیفیتیں
+کلینکیں
+تفصیلیں
+میٹنگیں
+حیثیتیں
+معیشتیں
+تشبیہیں
+تشبیہیں
+جمعیتیں
+پیشکشیں
+تعطیلیں
+تنبیہیں
+تحقیقیں
+پینسلیں
+تسبیحیں
+نمکینکو
+چھٹنکیو
+چھنگلیو
+چھپکلیو
+چھینکیو
+بھنبھو
+پھٹپٹھو
+مینگنیو
+کھلبلیو
+بھتیجیو
+کیمبلپو
+کیمبلپو
+لجسلیٹیو
+میکسیکو
+نسٹیٹیو
+کینچلیو
+نسٹیبلو
+ہتھیلیو
+منجنیقیو
+گیلیلیو
+ٹیفکیٹو
+کینٹیٹو
+کمینگیو
+لیفٹسٹو
+چنبیلیو
+پینتیسو
+تینتیسو
+سینتیسو
+چھبیلیو
+کمینی
+چھتیسیو
+پینسٹھو
+پیشینگو
+نگیٹھیو
+فٹسمینو
+گنجینہ
+بھینچتی
+بھینچنی
+پھینچتی
+پھینچنی
+پھینٹتی
+پھینٹنی
+جھینپتی
+جھینپنی
+جھینکتی
+جھینکنی
+چھینکتی
+چھینکنی
+پھینکتی
+پھینکنی
+جھپیٹتی
+سنبھلتی
+متبنی
+پھٹپھٹی
+سنبھلنی
+کھٹیکنی
+کھینچتی
+کھینچنی
+گھسیٹتی
+گھسیٹنی
+گتھنیلی
+گھینپتی
+گھینپنی
+بھینٹتی
+بھینٹنی
+مستثنی
+مستغنی
+ہیلسنکی
+فلسطینی
+ٹیکنیکی
+لمنتہی
+پھسپھسی
+بھینچتے
+بھینچنے
+بھینچئے
+پھینچتے
+پھینچنے
+پھینچئے
+پسیجتے
+پھینٹتے
+پھینٹنے
+پھینٹئے
+پھینکئے
+جھینپتے
+جھینپنے
+جھینپئے
+جھینکتے
+جھینکنے
+جھینکئے
+چھینکتے
+چھینکنے
+چھینکئے
+کھینچتے
+کھینچنے
+کھینچئے
+گھسیٹتے
+گھسیٹنے
+گھسیٹئے
+جھپیٹتے
+جھپیٹنے
+جھپیٹئے
+سنبھلتے
+سنبھلنے
+سنبھلئے
+پھٹپھٹے
+چھچھلئے
+گھینپئے
+گھینپتے
+گھینپنے
+چھچھلتے
+چھچھلنے
+بھینٹتے
+بھینٹنے
+بھینٹئے
+پھینکتے
+پھینکنے
+لبینتہ
+لممتحنہ
+متخیلہ
+تفضیلیہ
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/8grams.txt b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/8grams.txt
new file mode 100644 (file)
index 0000000..d067491
--- /dev/null
@@ -0,0 +1,26 @@
+چھنچھنیا
+جھنجھٹیا
+جھنجھنیا
+گھنگھنیا
+سپلیمینٹر
+شیکسپئر
+لمطففین
+جھینکتیں
+چھینکتین
+بھینچتین
+پھینچتین
+جھینپتین
+کھینچتین
+گھسیٹتین
+پھینکتین
+گھینپتین
+چھچھلتین
+سنبھلتین
+پھینٹتین
+بھینٹتین
+جھپیٹتین
+فلسطینو
+بیٹسمینو
+نسپیلیٹی
+نیشنیلٹی
+قسطنطیہ
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/LICENSE b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/LICENSE
new file mode 100644 (file)
index 0000000..85f2b63
--- /dev/null
@@ -0,0 +1,3 @@
+CC BY-NC-SA 3.0
+http://www.crulp.org/software/license/CreativeCommons.html
+https://creativecommons.org/licenses/by-nc-sa/3.0/
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/MANIFEST
new file mode 100644 (file)
index 0000000..c945d0e
--- /dev/null
@@ -0,0 +1,7 @@
+2grams.txt
+3grams.txt
+4grams.txt
+5grams.txt
+6grams.txt
+7grams.txt
+8grams.txt
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/README b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/README
new file mode 100644 (file)
index 0000000..33202c4
--- /dev/null
@@ -0,0 +1,16 @@
+ORIGINAL README:
+
+Valid Ligatures of Urdu.
+
+In 1980 Mr. Ahmad Mirza Jamil has invented a ligature based Nastaleeq writing
+system. He has written about 18,000 valid ligatures of Urdu and developed a
+Noori Nastaliq font. Center for Research in Urdu Language Processing (CRULP) is
+releasing a soft copy of these ligatures in Unicode format. CRULP has
+extensively used these ligatures for testing the fonts developed at the center
+and realised that it will be a valuable resource for other font developers.
+These ligatures are grouped in 2 to 8 characters and are sorted in the end
+character order.
+
+These ligatures have been copied from a "Noori Nastaliq computerised Urdu
+calligraphy (list of ligatures)" calligraphically designed and compiled by
+Ahmad Mirza Jamil, Elite Publishers Limited, Karachi.
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/SOURCES b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/language-urdu/crulp/ligatures/SOURCES
new file mode 100644 (file)
index 0000000..5e67ed4
--- /dev/null
@@ -0,0 +1,4 @@
+Adapted from:
+
+http://www.crulp.org/software/ling_resources/UrduLigatures.htm
+http://www.crulp.org/Downloads/ling_resources/ligatures/Valid_Urdu_Ligatures_v1.1.zip
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/MANIFEST
new file mode 100644 (file)
index 0000000..0ac75c3
--- /dev/null
@@ -0,0 +1 @@
+diacritics
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/MANIFEST
new file mode 100644 (file)
index 0000000..c71d035
--- /dev/null
@@ -0,0 +1,7 @@
+lam-alef.txt
+language-arabic.txt
+language-persian.txt
+language-urdu.txt
+ligature-components.txt
+ligature-diacritics.txt
+mark-skipping.txt
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/lam-alef.txt b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/lam-alef.txt
new file mode 100644 (file)
index 0000000..26f6f7b
--- /dev/null
@@ -0,0 +1,28 @@
+لًا
+ـلًا
+لاً
+ـلاً
+لّا
+ـلّا
+لاّ
+ـلاّ
+لًّا
+ـلًّا
+لاًّ
+ـلاًّ
+لَّا
+ـلَّا
+لاَّ
+ـلاَّ
+لَا
+ـلَا
+لاَ
+ـلاَ
+لُا
+ـلُا
+لاُ
+ـلاُ
+لِا
+ـلِا
+لاِ
+ـلاِ
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/language-arabic.txt b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/language-arabic.txt
new file mode 100644 (file)
index 0000000..24eb0c9
--- /dev/null
@@ -0,0 +1,695 @@
+ـيًـ
+ـاً
+يُـ
+ـرً
+ـقًـ
+ـدً
+رً
+رٍ
+ـبًـ
+ـرّ
+مًـ
+ـضًـ
+مُـ
+ـدّ
+ـوّ
+ـمًـ
+ـتًـ
+ـيّـ
+يًـ
+تُـ
+ءً
+دً
+نًـ
+ـمُـ
+ـمّـ
+ةً
+حًـ
+ـوً
+ـحًـ
+ـرِّ
+ـةً
+نٍ
+ـمّ
+فًـ
+ـكّـ
+ـعًـ
+ـصًـ
+اً
+سِـ
+ـيُـ
+قِـ
+ـفًـ
+ـذّ
+ـجّـ
+بًـ
+غًـ
+ـلّـ
+ـصّـ
+ـلّ
+ـدَّ
+ـسِّـ
+ـزً
+وّ
+ـثًـ
+بُـ
+ـغّـ
+خِـ
+ـدِّ
+فٍ
+ـسّـ
+ـنًـ
+عًـ
+ـفّـ
+ـيَّـ
+ـلٍ
+ـطًـ
+ـبّـ
+ـطّـ
+ـجِّـ
+عُـ
+ـيّ
+ـنّـ
+كًـ
+ـلِـ
+ـئًـ
+جًـ
+ـذَّ
+قًـ
+ـنُـ
+ـخّـ
+ـتُـ
+رَ
+كّـ
+طًـ
+نُـ
+رّ
+لٍ
+ـضّـ
+بّـ
+عِـ
+زً
+مِـ
+ـكَّـ
+ـدَ
+ـدٍ
+أُ
+ـمَّـ
+ـأً
+ـرَ
+ـزّ
+حِـ
+مَـ
+ـيِّـ
+ـوَّ
+ـمَـ
+صًـ
+ضًـ
+ـرِ
+
+وُ
+يّ
+ـمِّـ
+ـيًّـ
+ـرَّ
+ـوِّ
+ـكًـ
+رِ
+ـلَّـ
+ـجِـ
+يَـ
+ـجَّـ
+ـاّ
+ـذً
+ـقّـ
+ـغِّـ
+ـخًـ
+ـسَّـ
+ـلٍّ
+ـهًـ
+قّـ
+حَـ
+ـجًـ
+ـفَّـ
+شُـ
+جّـ
+ـهّـ
+سَـ
+ـعّـ
+ـدِ
+دٍ
+رِّ
+ـذٍ
+ـبُّـ
+ـتَـ
+دُ
+ـتُ
+لّ
+سِّـ
+لّـ
+دّ
+دِ
+يٍّ
+جَـ
+نّ
+هَّـ
+ـكِّـ
+ـقِّـ
+ـعُـ
+بَـ
+تَـ
+ـنِّـ
+ـلُّـ
+ـسُـ
+مّـ
+قَّـ
+لَـ
+يّـ
+فُـ
+قٍ
+ـتٍ
+سّـ
+وَ
+ـسِـ
+ـتَ
+شِـ
+فَـ
+صُـ
+ـضَّـ
+تَ
+ـقَّـ
+ـطَّـ
+ـفِـ
+سًـ
+فّـ
+وَّ
+كُـ
+ـصَّـ
+عَـ
+لِـ
+ـقِ
+ـقٍ
+ـتّـ
+ـمْـ
+نّـ
+ـقَ
+وٍ
+ـطٍ
+ـةٍ
+هّـ
+هُـ
+ـوٍ
+ـبِـ
+رُ
+حّـ
+تّـ
+وِّ
+زُ
+ـلًـ
+ـفُّـ
+تٍ
+سُـ
+ضٍ
+بِـ
+خَـ
+ىً
+ضّـ
+ـبِّـ
+خّـ
+لًـ
+كَّـ
+ـظًـ
+ظًـ
+ةٍ
+ـغًـ
+ـكِـ
+طُـ
+ـنٍ
+ـقُـ
+ـبُـ
+دَ
+ثًـ
+فِـ
+يٍ
+نْـ
+ضِـ
+جُـ
+هٍ
+ـشِـ
+ـنَّـ
+يًّـ
+فِّـ
+ـفّ
+ـظّـ
+ـسَـ
+ـظِّـ
+ـبَّـ
+رْ
+تَّـ
+بٍ
+ـبَـ
+ـزُّ
+ـدُ
+ـكُـ
+طّـ
+صِـ
+تِـ
+ـغَّـ
+ـعَـ
+ـهِّـ
+ـرُ
+ـثّـ
+سَّـ
+ذً
+ـمَ
+ـلِّـ
+ـزِّ
+يٌّ
+قِّـ
+ـشِّـ
+ـسًـ
+شٍ
+سٍ
+تًـ
+ـلَـ
+ـحُـ
+ـصّ
+ـحِـ
+ـجُـ
+يَّـ
+لَّـ
+قَـ
+ـبْـ
+اِ
+وُّ
+ـشّـ
+خًـ
+ـسَ
+حُـ
+يْ
+نِـ
+كُّـ
+ـطُّـ
+سْـ
+زِ
+يَّ
+هِـ
+نَـ
+مَّـ
+مٍ
+كِـ
+ـيُّـ
+ـمِـ
+ـدٍّ
+ـحّـ
+ـتَّـ
+رِّ
+ـطّ
+ـرُّ
+عٍ
+زّ
+خَّـ
+قُـ
+ـشَـ
+ـحَـ
+ـجِّـ
+مَ
+ـيَّ
+ـقّ
+ـغِ
+ـطِ
+ـشُـ
+صّـ
+شّـ
+جِّـ
+جِـ
+وِ
+ـهِ
+ـهِـ
+ــّـ
+ـرٍ
+ـاًّ
+طَّـ
+ثُـ
+تُ
+بَّـ
+هَـ
+لْـ
+صَـ
+دْ
+يِـ
+كِّـ
+ـعِـ
+ـذَ
+ـةَ
+دَّ
+يِّ
+هًـ
+كْـ
+ـوَ
+ـقَّ
+ـؤّ
+زَ
+حٍ
+يْـ
+كَـ
+فِ
+ـهٍ
+ـنّ
+ـكِ
+ـضَـ
+ـصِـ
+صِّـ
+شِّـ
+رَّ
+يِّـ
+ـاَ
+عُ
+شَـ
+ئًـ
+مٌـ
+لُـ
+ـوِ
+ـقِـ
+ـقَـ
+ـخَـ
+ـةِ
+دِّ
+جْـ
+ةِ
+نْ
+لِّـ
+ـيَـ
+ـنَـ
+ـلٌ
+ـفِ
+ـزَّ
+ـزِ
+ـاِ
+عّـ
+حَّـ
+ثَـ
+أَ
+ـمٍ
+ـكُّـ
+عْـ
+صَّـ
+يٌـ
+مْـ
+مّ
+فُّـ
+ـنْـ
+ـمَّ
+ـكَـ
+ـصِّـ
+ـصَـ
+ـاَّ
+حْـ
+ثّـ
+اُ
+نِ
+كَ
+ـمِ
+ـلٌّ
+ـلِ
+ـلَ
+ـفَـ
+ـفٍ
+ـظَّـ
+ـزَ
+ـةُ
+ـأُ
+عَّـ
+شَّـ
+ـنِـ
+ـلُ
+ـطِّـ
+ـطَـ
+ـضِّـ
+ـصُـ
+ـسُّـ
+ـحُ
+ـثّ
+ـأَ
+ضَـ
+تْ
+اَ
+مًّـ
+ـيِـ
+ـهُـ
+ـمًّـ
+ـكْـ
+ـعْـ
+ـرِّ
+ـتِـ
+ـتً
+ـاُ
+غَـ
+عِ
+طً
+شًـ
+زٍ
+تِ
+بْـ
+بِ
+لِ
+قْـ
+قٌـ
+فّ
+ـىً
+ـلُّ
+ـلُـ
+ـفُـ
+ــُـ
+ـعَّـ
+ـشَّـ
+ـشًـ
+ـذِ
+ـدٌ
+طِـ
+طَـ
+ضَّـ
+صْـ
+رُّ
+ذُ
+جَّـ
+بِّـ
+ئِـ
+ءُ
+هُّـ
+مِّـ
+مُ
+كِ
+قُ
+فْـ
+ـيٍّ
+ـىَّ
+ـوِّ
+ـكَ
+ـعَ
+ـطَ
+ـسْـ
+ـرٌ
+ـذِّ
+ـدُّ
+ـخَّـ
+ـحْ
+ـجَـ
+ـثَّـ
+ـثُـ
+ـتّ
+ـبِ
+ـاْ
+ـإِ
+عَ
+طِّـ
+صُّـ
+زْ
+خِّـ
+خَ
+ثِـ
+تْـ
+تّ
+بٌـ
+ءَ
+ءٍ
+وْ
+نُ
+مِ
+كُ
+فْ
+ـوُّ
+ـلٍـ
+ـقٍّ
+ـفِّـ
+ـفًّـ
+ـعُ
+ـعٍ
+ـطْـ
+ـطِـ
+ـطُـ
+ـصٍ
+ـرْ
+ـرٍّ
+ـذُّ
+ـدْ
+ـدِّ
+ـخِـ
+ـجَّـ
+ـثْ
+ـتَّ
+ـةٌ
+سِ
+خْـ
+ثَ
+تُّـ
+تَّ
+إِ
+أّ
+أً
+ءِ
+ءٌ
+يُّـ
+يُّ
+نٌـ
+لْ
+لُ
+لَ
+قِ
+ـيًّ
+ـيَ
+ـهَّـ
+ـهِّـ
+ـنُّـ
+ـمٍّ
+ـلْـ
+ـلْ
+ـلٍّ
+ـكِّـ
+ـعّ
+ـطَّ
+ـضُـ
+ـضٍ
+ـضٌـ
+ـصْـ
+
+ـصُّـ
+ـصًّـ
+ـسًّـ
+ـدَّ
+ـثِّـ
+ـثِـ
+ـتِّـ
+ـبّ
+ـبَ
+ـأٌ
+غُـ
+ظَـ
+طْـ
+ضْـ
+ضِ
+صّ
+صِ
+شْـ
+سٌـ
+ذْ
+ذَ
+خِ
+خُـ
+خٌـ
+حِّـ
+حٌـ
+بِّ
+بُّ
+بَ
+يٍّ
+ىّ
+نِّـ
+نَّـ
+نٍـ
+نٌ
+مْ
+مٌ
+لُّـ
+قُّـ
+قّ
+فَّـ
+فُ
+فٍـ
+ـيْـ
+ـيَّـ
+ـيً
+ـىّ
+ـوُ
+ـهّ
+ـهَـ
+ـنُ
+ـنَ
+ـمَّـ
+ـلَّ
+ـقٌ
+ـفِّ
+ـفٍّ
+ـفًّ
+ــِّـ
+ــِ
+ــَـ
+ـغِـ
+ـغُـ
+ـغَـ
+ـعٌـ
+ـظّ
+ـظِـ
+ـظَ
+ـطٍّ
+ـطِّـ
+ـطُ
+ـضً
+ـصِ
+ـصَ
+ـصٌ
+ـشّ
+ـسّ
+ـسَّـ
+ـزْ
+ـزُ
+ـرًّ
+ـدًّ
+ـخُـ
+ـخُ
+ـحَّـ
+ـجْـ
+ـثِ
+ـثُ
+ـتْـ
+ـتْ
+ـتِ
+ـبْ
+ـبِّ
+ـبُّـ
+ـبُ
+ـبَّـ
+ـأٰ
+ـأِ
+ـأٍ
+غْـ
+غِّـ
+عْ
+ظِـ
+ضُ
+شّ
+سٍـ
+زِّ
+دُّ
+حْ
+حِ
+جُ
+ثُ
+تٌـ
+تٌ
+ةُ
+ةَ
+ةٌ
+أْ
+أِ
+أٌ
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/language-persian.txt b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/language-persian.txt
new file mode 100644 (file)
index 0000000..00d9840
--- /dev/null
@@ -0,0 +1,48 @@
+ـاً
+اً
+ـهٔ
+هٔ
+وِ
+پُـ
+ـلِ
+سِـ
+اِ
+اُ
+ـهُ
+ـرّ
+گِـ
+کِـ
+کُـ
+ژِ
+ـیِ
+ـنِـ
+ـمُ
+ـصّـ
+ـسّـ
+رِ
+دّ
+دِ
+یِ
+هّ
+لِـ
+لِ
+ـیٰ
+ـیّ
+ـیَـ
+ـنِ
+ـمّـ
+ـعّـ
+ـشِ
+ـسِ
+ـزّ
+ـرِ
+ـذّ
+ـخّـ
+ـحِ
+ـثْ
+ـبّـ
+ـبّ
+ـأُ
+تّـ
+تِ
+بُـ
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/language-urdu.txt b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/language-urdu.txt
new file mode 100644 (file)
index 0000000..fddb6e5
--- /dev/null
@@ -0,0 +1,188 @@
+ـیّـ
+ـمّـ
+ـلّـ
+ـرّ
+ـاً
+ـلِـ
+ـرِ
+بُـ
+ـوّ
+ؤ
+اً
+اِ
+ـنّـ
+ثّـ
+ـجّـ
+پُـ
+ـصّـ
+ـہٰـ
+ـعّـ
+ـخّـ
+یَـ
+کُـ
+جّـ
+ـنٰـ
+ـظّـ
+دّ
+ـھّـ
+اُ
+کِـ
+لِـ
+بِـ
+نِـ
+لُـ
+ـلٰـ
+ـدّ
+مّـ
+گُـ
+ـوِ
+ـسّـ
+سُـ
+رِ
+ـھُـ
+مِـ
+يُـ
+ـطّـ
+شِـ
+سَـ
+ـگَـ
+زُ
+ـگُـ
+ئِـ
+قّـ
+قِـ
+ـفّـ
+خّـ
+نّـ
+ـبّـ
+ہِ
+تّـ
+بَـ
+فِـ
+بّـ
+ـیٰ
+ـٹّـ
+وَ
+چّـ
+پِـ
+لّـ
+دُ
+ـلِ
+ـبٰـ
+ـچّـ
+سِـ
+کّـ
+ٹِـ
+وِ
+ـی٘ـ
+ـۂ
+ـوٰ
+وّ
+ـۓ
+ـکّـ
+نِ
+مُـ
+ـتّـ
+دِ
+یِـ
+ہِـ
+گَـ
+پَـ
+ٹّ
+یٔ
+یّـ
+ہُـ
+چُـ
+مِ
+ـوُ
+ـاَ
+اَ
+گِـ
+فِ
+ـےٍ
+ـڈّ
+ـؤ
+ـقّـ
+ـجِ
+اٰ
+ـڈِ
+ـپّـ
+ـٹِـ
+ـمِـ
+ـلٔـ
+ـخِ
+رُ
+تِ
+بِ
+ۓ
+کَـ
+ٹُـ
+ـی٘
+ـںَ
+ـو٘
+ـنُـ
+ـعّ
+ـشّـ
+ـرُ
+ـحّـ
+ـجِـ
+ـبَـ
+طّـ
+شِ
+شُـ
+رّ
+جِـ
+ئٰـ
+ہٰـ
+ۂ
+ڈِ
+ڈُ
+چِـ
+نِّـ
+نُـ
+نَـ
+مٰـ
+مّ
+مَـ
+لِّـ
+لِ
+فّـ
+ـیّ
+ـیِـ
+ـہ٘ـ
+ـہّ
+ـہِـ
+ـں٘
+ـگِـ
+ـکٰـ
+ـکِـ
+ـٹَـ
+ـيّـ
+ـوَ
+ـنِـ
+ـفِـ
+ـصِ
+ـسِـ
+ـزّ
+ـرً
+ـدَ
+ـحِـ
+ـحِ
+ـتّٰـ
+ـتِ
+ـبُـ
+ـأ
+عُـ
+ظِ
+صّـ
+صُـ
+زِ
+رَ
+دِّ
+خُـ
+حِ
+حَـ
+جّ
+جُـ
+جَـ
+تَـ
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/ligature-components.txt b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/ligature-components.txt
new file mode 100644 (file)
index 0000000..0d4d47f
--- /dev/null
@@ -0,0 +1,18 @@
+لّله
+لَّله
+لَّله
+للّه
+للَّه
+للَّه
+للهّ
+للهَّ
+للهَّ
+لّلَه
+لَلّه
+لّلهَ
+لَلهّ
+للّهَ
+للَهّ
+لّلّهَ
+لّلَّه
+لَّلّه
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/ligature-diacritics.txt b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/ligature-diacritics.txt
new file mode 100644 (file)
index 0000000..80ba2f7
--- /dev/null
@@ -0,0 +1 @@
+لَا لا لِله للَه لله
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/mark-skipping.txt b/test/shaping/texts/in-tree/shaper-arabic/script-arabic/misc/diacritics/mark-skipping.txt
new file mode 100644 (file)
index 0000000..038c921
--- /dev/null
@@ -0,0 +1,10 @@
+تختة
+تخنة
+تخئة
+تخثة
+تخٹة
+تختّة
+تخنّة
+تخئّة
+تخثّة
+تخٹّة
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-mandaic/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-mandaic/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-mandaic/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-mandaic/misc/MANIFEST
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-mongolian/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-mongolian/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/MANIFEST
new file mode 100644 (file)
index 0000000..3c76c94
--- /dev/null
@@ -0,0 +1,4 @@
+misc.txt
+non-joining.txt
+poem.txt
+variation-selectors.txt
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/misc.txt b/test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/misc.txt
new file mode 100644 (file)
index 0000000..57317de
--- /dev/null
@@ -0,0 +1,6 @@
+ᠬᠦᠮᠦᠨ ᠮᠤᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌
+ᠪᠢᠴᠢᠭ᠌ ᠬᠦᠮᠦᠨ ᠮᠤᠩᠭᠣᠯ
+ᠮᠤᠩᠭᠣᠯ ᠪᠢᠴᠢᠭ᠌ ᠬᠦᠮᠦᠨ
+ᠡ᠆ᠡ
+ᠡ᠇ᠡ
+ᠡ᠊ᠡ
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/non-joining.txt b/test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/non-joining.txt
new file mode 100644 (file)
index 0000000..93e9dd6
--- /dev/null
@@ -0,0 +1,8 @@
+ᠡᢀᠡ
+ᠡᢁᠡ
+ᠡᢂᠡ
+ᠡᢃᠡ
+ᠡᢄᠡ
+ᠡᢅᠡ
+ᠡᢆᠡ
+ᠡᢇᠡ
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/poem.txt b/test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/poem.txt
new file mode 100644 (file)
index 0000000..14ce2d4
--- /dev/null
@@ -0,0 +1,4 @@
+ᠥᠰᠬᠦ ᠡᠴᠡ ᠰᠤᠷᠤᠭᠰᠠᠨ ᠦᠨᠳᠦᠰᠦᠨ ᠬᠡᠯᠡ
+ᠮᠠᠷᠲᠠᠵᠤ ᠪᠣᠯᠣᠰᠢ ᠦᠭᠡᠢ ᠰᠣᠶᠣᠯ
+ᠦᠬᠦᠲᠡᠯ᠎ᠡ ᠣᠷᠣᠰᠢᠬᠤ ᠲᠦᠷᠦᠯᠬᠢ ᠨᠤᠲᠤᠭ
+ᠰᠠᠯᠵᠤ ᠪᠣᠯᠣᠰᠢ ᠦᠭᠡᠢ ᠣᠷᠣᠨ
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/variation-selectors.txt b/test/shaping/texts/in-tree/shaper-arabic/script-mongolian/misc/variation-selectors.txt
new file mode 100644 (file)
index 0000000..0ffb498
--- /dev/null
@@ -0,0 +1,8 @@
+ᠺᠣᠮᠫᠢᠦ᠋ᠲ᠋ᠧᠷ
+ᠭ ᠭ᠋ ᠭ᠌ ᠭ᠍‍     isol(,FVS1,FVS2,FVS3)
+ᠭ‍ ᠭ᠋‍ ᠭ᠌‍ ᠭ᠍‍     init(,FVS1,FVS2,FVS3)
+‍ᠭ‍ ‍ᠭ᠋‍ ‍ᠭ᠌‍ ‍ᠭ᠍‍      medi(,FVS1,FVS2,FVS3)
+‍ᠭ ‍ᠭ᠋ ‍ᠭ᠌      fina(,FVS1,FVS2)
+ᠠ‌ᠭᠠᠷ        ZWNJ
+ᠰᠤᠷ‍ ‍ᠭᠠ‍ ‍ᠭᠤᠯᠢ  ZWJ
+ᠪᠠᠢᠭ᠎ᠠ ᠶᠢᠨ   MVS,NNBSP
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-nko/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-nko/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-nko/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-nko/misc/MANIFEST
new file mode 100644 (file)
index 0000000..29cfb2f
--- /dev/null
@@ -0,0 +1 @@
+misc.txt
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-nko/misc/misc.txt b/test/shaping/texts/in-tree/shaper-arabic/script-nko/misc/misc.txt
new file mode 100644 (file)
index 0000000..a86af91
--- /dev/null
@@ -0,0 +1,5 @@
+ߊߊ
+ߊ߳ߊ
+ߊ߳ߺߊ
+ߊߺߊ
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-phags-pa/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-phags-pa/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-phags-pa/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-phags-pa/misc/MANIFEST
new file mode 100644 (file)
index 0000000..29cfb2f
--- /dev/null
@@ -0,0 +1 @@
+misc.txt
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-phags-pa/misc/misc.txt b/test/shaping/texts/in-tree/shaper-arabic/script-phags-pa/misc/misc.txt
new file mode 100644 (file)
index 0000000..d535b67
--- /dev/null
@@ -0,0 +1,14 @@
+ꡳꡡ
+ꡡꡳꡡ
+ꡞꡞꡞ ꡞ
+ꡟꡟꡟ ꡟ
+ꡠꡠꡠ ꡠ
+ꡡꡡꡡ ꡡ
+‍ꡡ‍
+‍ꡡ
+ꡡ‍
+ꡞ‌ꡟ‌ꡠ‌ꡡ
+ꡉꡞ
+ꡉꡞ︀
+ꡪꡞ
+ꡪꡞ︀
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-syriac/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-syriac/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-syriac/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-arabic/script-syriac/misc/MANIFEST
new file mode 100644 (file)
index 0000000..ae45bdf
--- /dev/null
@@ -0,0 +1 @@
+alaph.txt
diff --git a/test/shaping/texts/in-tree/shaper-arabic/script-syriac/misc/alaph.txt b/test/shaping/texts/in-tree/shaper-arabic/script-syriac/misc/alaph.txt
new file mode 100644 (file)
index 0000000..27b035f
--- /dev/null
@@ -0,0 +1,98 @@
+ ܐ
+ ܐܘ
+ ܐܪ
+ ܐܖ
+ ܐܕ
+ ܐܯ
+ ܐܒ
+ܘܐ
+ܘܐܘ
+ܘܐܪ
+ܘܐܖ
+ܘܐܕ
+ܘܐܯ
+ܘܐܒ
+ܪܐ
+ܪܐܘ
+ܪܐܪ
+ܪܐܖ
+ܪܐܕ
+ܪܐܯ
+ܪܐܒ
+ܖܐ
+ܖܐܘ
+ܖܐܪ
+ܖܐܖ
+ܖܐܕ
+ܖܐܯ
+ܖܐܒ
+ܕܐ
+ܕܐܘ
+ܕܐܪ
+ܕܐܖ
+ܕܐܕ
+ܕܐܯ
+ܕܐܒ
+ܯܐ
+ܯܐܘ
+ܯܐܪ
+ܯܐܖ
+ܯܐܕ
+ܯܐܯ
+ܯܐܒ
+ܒܐ
+ܒܐܘ
+ܒܐܪ
+ܒܐܖ
+ܒܐܕ
+ܒܐܯ
+ܒܐܒ
+ ܐܐ
+ ܐܐܘ
+ ܐܐܪ
+ ܐܐܖ
+ ܐܐܕ
+ ܐܐܯ
+ ܐܐܒ
+ܘܐܐ
+ܘܐܐܘ
+ܘܐܐܪ
+ܘܐܐܖ
+ܘܐܐܕ
+ܘܐܐܯ
+ܘܐܐܒ
+ܪܐܐ
+ܪܐܐܘ
+ܪܐܐܪ
+ܪܐܐܖ
+ܪܐܐܕ
+ܪܐܐܯ
+ܪܐܐܒ
+ܖܐܐ
+ܖܐܐܘ
+ܖܐܐܪ
+ܖܐܐܖ
+ܖܐܐܕ
+ܖܐܐܯ
+ܖܐܐܒ
+ܕܐܐ
+ܕܐܐܘ
+ܕܐܐܪ
+ܕܐܐܖ
+ܕܐܐܕ
+ܕܐܐܯ
+ܕܐܐܒ
+ܯܐܐ
+ܯܐܐܘ
+ܯܐܐܪ
+ܯܐܐܖ
+ܯܐܐܕ
+ܯܐܐܯ
+ܯܐܐܒ
+ܒܐܐ
+ܒܐܐܘ
+ܒܐܐܪ
+ܒܐܐܖ
+ܒܐܐܕ
+ܒܐܐܯ
+ܒܐܐܒ
diff --git a/test/shaping/texts/in-tree/shaper-default/MANIFEST b/test/shaping/texts/in-tree/shaper-default/MANIFEST
new file mode 100644 (file)
index 0000000..d08deb7
--- /dev/null
@@ -0,0 +1,5 @@
+script-ethiopic
+script-han
+script-hiragana
+script-linear-b
+script-tifinagh
diff --git a/test/shaping/texts/in-tree/shaper-default/script-ethiopic/MANIFEST b/test/shaping/texts/in-tree/shaper-default/script-ethiopic/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-default/script-ethiopic/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-default/script-ethiopic/misc/MANIFEST
new file mode 100644 (file)
index 0000000..29cfb2f
--- /dev/null
@@ -0,0 +1 @@
+misc.txt
diff --git a/test/shaping/texts/in-tree/shaper-default/script-ethiopic/misc/misc.txt b/test/shaping/texts/in-tree/shaper-default/script-ethiopic/misc/misc.txt
new file mode 100644 (file)
index 0000000..60dd8cc
--- /dev/null
@@ -0,0 +1 @@
+ላ፟ህ
diff --git a/test/shaping/texts/in-tree/shaper-default/script-han/MANIFEST b/test/shaping/texts/in-tree/shaper-default/script-han/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-default/script-han/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-default/script-han/misc/MANIFEST
new file mode 100644 (file)
index 0000000..003c956
--- /dev/null
@@ -0,0 +1 @@
+cjk-compat.txt
diff --git a/test/shaping/texts/in-tree/shaper-default/script-han/misc/cjk-compat.txt b/test/shaping/texts/in-tree/shaper-default/script-han/misc/cjk-compat.txt
new file mode 100644 (file)
index 0000000..b3ab645
--- /dev/null
@@ -0,0 +1,3 @@
+艹
+艹
+艹
diff --git a/test/shaping/texts/in-tree/shaper-default/script-hiragana/MANIFEST b/test/shaping/texts/in-tree/shaper-default/script-hiragana/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-default/script-hiragana/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-default/script-hiragana/misc/MANIFEST
new file mode 100644 (file)
index 0000000..4d2d52c
--- /dev/null
@@ -0,0 +1,2 @@
+kazuraki-liga-lines.txt
+kazuraki-liga.txt
diff --git a/test/shaping/texts/in-tree/shaper-default/script-hiragana/misc/kazuraki-liga-lines.txt b/test/shaping/texts/in-tree/shaper-default/script-hiragana/misc/kazuraki-liga-lines.txt
new file mode 100644 (file)
index 0000000..5bc2d00
--- /dev/null
@@ -0,0 +1,8 @@
+ありあるあれいているべきいろうれし
+うれしくかしこかとがとうくもこと
+こともことをこのこれこれもされ
+しかししてするせんたしたのちる
+とけとしとしてとのともかくとを
+なくなどなどのなるひさひとふるほど
+ますむとめてもしろものをやるゆる
+られるとるものれる〳〵〴〵
diff --git a/test/shaping/texts/in-tree/shaper-default/script-hiragana/misc/kazuraki-liga.txt b/test/shaping/texts/in-tree/shaper-default/script-hiragana/misc/kazuraki-liga.txt
new file mode 100644 (file)
index 0000000..e043e17
--- /dev/null
@@ -0,0 +1,53 @@
+あり
+ある
+あれ
+いて
+いるべき
+いろ
+うれし
+うれしく
+かしこ
+かと
+がとう
+くも
+こと
+ことも
+ことを
+この
+これ
+これも
+され
+しかし
+して
+する
+せん
+たし
+たの
+ちる
+とけ
+とし
+として
+との
+ともかく
+とを
+なく
+など
+などの
+なる
+ひさ
+ひと
+ふる
+ほど
+ます
+むと
+めて
+もしろ
+ものを
+やる
+ゆる
+られ
+ると
+るもの
+れる
+〳〵
+〴〵
diff --git a/test/shaping/texts/in-tree/shaper-default/script-linear-b/MANIFEST b/test/shaping/texts/in-tree/shaper-default/script-linear-b/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-default/script-linear-b/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-default/script-linear-b/misc/MANIFEST
new file mode 100644 (file)
index 0000000..29cfb2f
--- /dev/null
@@ -0,0 +1 @@
+misc.txt
diff --git a/test/shaping/texts/in-tree/shaper-default/script-linear-b/misc/misc.txt b/test/shaping/texts/in-tree/shaper-default/script-linear-b/misc/misc.txt
new file mode 100644 (file)
index 0000000..b085605
--- /dev/null
@@ -0,0 +1 @@
+𐀁𐀂𐀃
diff --git a/test/shaping/texts/in-tree/shaper-default/script-tifinagh/MANIFEST b/test/shaping/texts/in-tree/shaper-default/script-tifinagh/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-default/script-tifinagh/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-default/script-tifinagh/misc/MANIFEST
new file mode 100644 (file)
index 0000000..29cfb2f
--- /dev/null
@@ -0,0 +1 @@
+misc.txt
diff --git a/test/shaping/texts/in-tree/shaper-default/script-tifinagh/misc/misc.txt b/test/shaping/texts/in-tree/shaper-default/script-tifinagh/misc/misc.txt
new file mode 100644 (file)
index 0000000..0c307eb
--- /dev/null
@@ -0,0 +1,11 @@
+ⵎⵜ
+ⵎ⵿ⵜ
+ⵏⴾ
+ⵏ⵿ⴾ
+ⵏⵜ
+ⵏ⵿ⵜ
+ⵔⵜ
+ⵔ⵿ⵜ
+ⵙⵜ
+ⵙ⵿ⵜ
+
diff --git a/test/shaping/texts/in-tree/shaper-hangul/MANIFEST b/test/shaping/texts/in-tree/shaper-hangul/MANIFEST
new file mode 100644 (file)
index 0000000..ea81716
--- /dev/null
@@ -0,0 +1 @@
+script-hangul
diff --git a/test/shaping/texts/in-tree/shaper-hangul/script-hangul/MANIFEST b/test/shaping/texts/in-tree/shaper-hangul/script-hangul/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-hangul/script-hangul/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-hangul/script-hangul/misc/MANIFEST
new file mode 100644 (file)
index 0000000..29cfb2f
--- /dev/null
@@ -0,0 +1 @@
+misc.txt
diff --git a/test/shaping/texts/in-tree/shaper-hangul/script-hangul/misc/misc.txt b/test/shaping/texts/in-tree/shaper-hangul/script-hangul/misc/misc.txt
new file mode 100644 (file)
index 0000000..797b1c6
--- /dev/null
@@ -0,0 +1,4 @@
+휴가 가-- (오--)
+휴가 가-- (오--)
+ᄒᆞᆫ
+ᅟᅡᄫᅠ
diff --git a/test/shaping/texts/in-tree/shaper-hebrew/MANIFEST b/test/shaping/texts/in-tree/shaper-hebrew/MANIFEST
new file mode 100644 (file)
index 0000000..12da794
--- /dev/null
@@ -0,0 +1 @@
+script-hebrew
diff --git a/test/shaping/texts/in-tree/shaper-hebrew/script-hebrew/MANIFEST b/test/shaping/texts/in-tree/shaper-hebrew/script-hebrew/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-hebrew/script-hebrew/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-hebrew/script-hebrew/misc/MANIFEST
new file mode 100644 (file)
index 0000000..06ca481
--- /dev/null
@@ -0,0 +1 @@
+diacritics.txt
diff --git a/test/shaping/texts/in-tree/shaper-hebrew/script-hebrew/misc/diacritics.txt b/test/shaping/texts/in-tree/shaper-hebrew/script-hebrew/misc/diacritics.txt
new file mode 100644 (file)
index 0000000..f3cf91f
--- /dev/null
@@ -0,0 +1,16 @@
+קול דודי הנה־זה בא מדלג על־ההרים מקפץ על־הגבעות
+הֲבֵל הֲבָלִים אָמַר קֹהֶלֶת
+לְהַגִּיד בַּבֹּקֶר חַסְדֶּךָ וֶאֱמוּנָתְךָ בַּלֵּילוֹת
+יְרוּשָׁלִַם
+יְרוּשָׁלִָם
+יְרוּשָׁלְַמָה
+יְרוּשָׁלְָמָה
+נְבֻֽכַדְנֶאצַּ֣ר
+מִתָּ֑͏ַ֜חַת
+אֲ‍ֽ֭דַבְּרָה
+וֽ͏ַיְהִי־֯כֵֽן
+לׅׄוּלֵׅ֗ׄאׅׄ
+אָנָּֽה אָנָּֽה
+תַעֲשֶׂ֦ה
+שֹֽׁטְרֵי֙
+אֲ‍ֽ֭
diff --git a/test/shaping/texts/in-tree/shaper-indic/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/MANIFEST
new file mode 100644 (file)
index 0000000..3f2011f
--- /dev/null
@@ -0,0 +1,2 @@
+indic
+south-east-asian
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/MANIFEST
new file mode 100644 (file)
index 0000000..5e62ebf
--- /dev/null
@@ -0,0 +1,11 @@
+script-assamese
+script-bengali
+script-devanagari
+script-gujarati
+script-gurmukhi
+script-kannada
+script-malayalam
+script-oriya
+script-sinhala
+script-tamil
+script-telugu
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/MANIFEST
new file mode 100644 (file)
index 0000000..ecb8d96
--- /dev/null
@@ -0,0 +1,2 @@
+misc
+utrrs
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/misc/MANIFEST
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/LICENSE b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/LICENSE
new file mode 100644 (file)
index 0000000..2cf8228
--- /dev/null
@@ -0,0 +1,19 @@
+Copyright (c) 2010 Red Hat Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/MANIFEST
new file mode 100644 (file)
index 0000000..0658824
--- /dev/null
@@ -0,0 +1,3 @@
+codepoint
+gpos
+gsub
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/README b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/README
new file mode 100644 (file)
index 0000000..8bad337
--- /dev/null
@@ -0,0 +1,13 @@
+Introduction:
+A system to compare a reference image of a text character, word or phrase with another image of the character, word or phrase that was rendered by a text rendering engine. Differences between the reference image and the rendered image may be recorded for subsequent analysis. Performance of a text rendering engine producing text according to typographical rules applicable to a natural language can be evaluated by one with no knowledge or ability to read the natural language
+
+
+COPYRIGHT: Red Hat Inc. 2010
+
+license: this project is under MIT license
+
+
+AUTHORS:
+Lawrence Lim
+Satyabrata Maitra
+Amanpreet Singh Brar
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/SOURCES b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/SOURCES
new file mode 100644 (file)
index 0000000..0ed1a89
--- /dev/null
@@ -0,0 +1,2 @@
+https://fedorahosted.org/utrrs/
+Fetched in late 2011
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt
new file mode 100644 (file)
index 0000000..2bc4fff
--- /dev/null
@@ -0,0 +1,4 @@
+ৠ
+ৡ
+ৢ
+ৣ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt
new file mode 100644 (file)
index 0000000..0f8fa91
--- /dev/null
@@ -0,0 +1,40 @@
+ক
+খ
+গ
+ঘ
+ঙ
+চ
+ছ
+জ
+ঝ
+ঞ
+ট
+ঠ
+ড
+ঢ
+ণ
+ত
+থ
+দ
+ধ
+ন
+প
+ফ
+ব
+ভ
+ম
+য
+ৰ
+ৱ
+ল
+ড়
+ঢ়
+য়
+শ
+ষ
+স
+হ
+ৎ
+ং
+ঃ
+ঁ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt
new file mode 100644 (file)
index 0000000..ddf03c0
--- /dev/null
@@ -0,0 +1,10 @@
+া
+ি
+ী
+ু
+ূ
+ৃ
+ে
+ৈ
+ো
+ৌ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt
new file mode 100644 (file)
index 0000000..870ce26
--- /dev/null
@@ -0,0 +1,10 @@
+০
+১
+২
+৩
+৪
+৫
+৬
+৭
+৮
+৯
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt
new file mode 100644 (file)
index 0000000..821c261
--- /dev/null
@@ -0,0 +1,11 @@
+অ
+আ
+ই
+ঈ
+উ
+ঊ
+ঋ
+এ
+ঐ
+ও
+ঔ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt
new file mode 100644 (file)
index 0000000..66a7ca4
--- /dev/null
@@ -0,0 +1,2 @@
+।
+॥
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt
new file mode 100644 (file)
index 0000000..0afc191
--- /dev/null
@@ -0,0 +1,6 @@
+্
+়
+ং
+ঃ
+ঁ
+৺
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/codepoint/MANIFEST
new file mode 100644 (file)
index 0000000..1490dfe
--- /dev/null
@@ -0,0 +1,7 @@
+IndicFontFeatureCodepoint-AdditionalVowels.txt
+IndicFontFeatureCodepoint-Consonants.txt
+IndicFontFeatureCodepoint-DependentVowels.txt
+IndicFontFeatureCodepoint-Digits.txt
+IndicFontFeatureCodepoint-IndependentVowels.txt
+IndicFontFeatureCodepoint-Reserved.txt
+IndicFontFeatureCodepoint-VariousSigns.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt
new file mode 100644 (file)
index 0000000..ebbc87d
--- /dev/null
@@ -0,0 +1,59 @@
+কঁ
+খঁ
+গঁ
+ঘঁ
+চঁ
+ছঁ
+জঁ
+ঝঁ
+টঁ
+ঠঁ
+ডঁ
+ঢঁ
+তঁ
+থঁ
+দঁ
+ধঁ
+পঁ
+ফঁ
+বঁ
+ভঁ
+মঁ
+যঁ
+ৰঁ
+লঁ
+শঁ
+ষঁ
+সঁ
+হঁ
+ৰ্ক
+ৰ্খ
+ৰ্গ
+ৰ্ঘ
+ৰ্চ
+ৰ্ছ
+ৰ্জ
+ৰ্ঝ
+ৰ্ঞ
+ৰ্ট
+ৰ্ঠ
+ৰ্ড
+ৰ্ঢ
+ৰ্ণ
+ৰ্ত
+ৰ্থ
+ৰ্দ
+ৰ্ধ
+ৰ্ন
+ৰ্প
+ৰ্ফ
+ৰ্ব
+ৰ্ভ
+ৰ্ম
+ৰ্য
+ৰ্ৰ
+ৰ্ল
+ৰ্শ
+ৰ্ষ
+ৰ্স
+ৰ্হ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt
new file mode 100644 (file)
index 0000000..accebeb
--- /dev/null
@@ -0,0 +1,131 @@
+কু
+কূ
+কৃ
+খু
+খূ
+খৃ
+গু
+গূ
+গৃ
+ঘু
+ঘূ
+ঘৃ
+ঙু
+ঙূ
+ঙৃ
+চু
+চূ
+চৃ
+ছু
+ছূ
+ছৃ
+জু
+জূ
+জৃ
+ঝু
+ঝূ
+ঝৃ
+ঞু
+ঞূ
+টু
+টূ
+টৃ
+ঠু
+ঠূ
+ঠৃ
+ডু
+ডূ
+ডৃ
+ঢু
+ঢূ
+ঢৃ
+ণু
+ণূ
+ণৃ
+তু
+তূ
+তৃ
+থু
+থূ
+থৃ
+দু
+দূ
+দৃ
+ধু
+ধূ
+ধৃ
+নু
+নূ
+নৃ
+পু
+পূ
+পৃ
+ফু
+ফূ
+ফৃ
+বু
+বূ
+বৃ
+ভু
+ভূ
+ভৃ
+মু
+মূ
+মৃ
+যু
+যূ
+যৃ
+ৰু
+ৰূ
+ৰৃ
+লু
+লূ
+লৃ
+শু
+শূ
+শৃ
+ষু
+ষূ
+ষৃ
+সু
+সূ
+সৃ
+হু
+হূ
+হৃ
+ক্
+খ্
+গ্
+ঘ্
+ঙ্
+চ্
+ছ্
+জ্
+ঝ্
+ঞ্
+ট্
+ঠ্
+ড্
+ঢ্
+ণ্
+ত্
+থ্
+দ্
+ধ্
+ন্
+প্
+ফ্
+ব্
+ভ্
+ম্
+য্
+ৰ্
+ল্
+শ্
+ষ্
+স্
+হ্
+জ়
+ড়
+ঢ়
+য়
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/gpos/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/gpos/MANIFEST
new file mode 100644 (file)
index 0000000..d7ae70e
--- /dev/null
@@ -0,0 +1,2 @@
+IndicFontFeatureGPOS-AboveBase.txt
+IndicFontFeatureGPOS-BelowBase.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/gsub/IndicFontFeatureGSUB.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/gsub/IndicFontFeatureGSUB.txt
new file mode 100644 (file)
index 0000000..87e5ea8
--- /dev/null
@@ -0,0 +1,139 @@
+ক্ৰ
+খ্ৰ
+গ্ৰ
+ঘ্ৰ
+জ্ৰ
+ত্ৰ
+দ্ৰ
+ধ্ৰ
+প্ৰ
+ম্ৰ
+শ্ৰ
+স্ৰ
+হ্ৰ
+ক্ল
+গ্ল
+প্ল
+ম্ল
+ল্ল
+শ্ল
+স্ল
+হ্ল
+ক্ক
+ক্ব
+জ্ব
+ট্ব
+ত্ব
+দ্ব
+ধ্ব
+ন্ব
+ব্ব
+ম্ব
+ল্ব
+শ্ব
+ষ্ব
+স্ব
+হ্ব
+ণ্ণ
+ষ্ণ
+ষ্ণু
+হ্ণ
+হ্ণি
+জ্জ
+ট্ট
+ত্ত
+দ্দ
+ন্ন
+প্প
+ব্ব
+ম্ম
+ত্ন
+ম্ন
+স্ন
+হ্ন
+ক্ন
+গ্ন
+ত্ম
+গ্ম
+ঙ্ম
+ট্ম
+ণ্ম
+ত্ম
+দ্ম
+ধ্ম
+ন্ম
+ম্ম
+ল্ম
+শ্ম
+ষ্ম
+হ্ম
+ক্ষ
+ক্ত
+গ্ধ
+ঙ্ক
+ঙ্খ
+ঙ্গ
+ঙ্ঘ
+চ্চ
+চ্ছ
+চ্ঞ
+জ্ঝ
+জ্ঞ
+ঞ্চ
+ঞ্ছ
+ঞ্জ
+ণ্ট
+ক্ট
+ণ্ড
+ন্ড
+দ্গ
+দ্ঘ
+দ্ধ
+দ্ভ
+ন্ত
+ন্থ
+ন্দ
+ন্ধ
+প্ত
+ব্জ
+ব্দ
+ম্প
+ম্ফ
+ম্ব
+ম্ভ
+ল্ক
+ল্গ
+ল্প
+ল্ফ
+ল্ম
+শ্চ
+ষ্ক
+ষ্ট
+ষ্ঠ
+ষ্প
+ষ্ফ
+স্ক
+স্খ
+স্ত
+স্থ
+স্প
+স্ফ
+ক্ষ্ণ
+ক্ষ্ম
+জ্জ্ব
+ত্ত্ব
+ত্ম্য
+ন্ত্ৰ
+ন্ত্ব
+ন্দ্ৰ
+ন্ধ্য
+ন্ন্য
+ম্প্ৰ
+ম্ভ্ৰ
+ৰ্ধ্ব
+ৰ্শ্ব
+ষ্ট্ৰ
+ষ্প্ৰ
+স্ত্ৰ
+চ্ছ্ব
+প্স
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/gsub/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-assamese/utrrs/gsub/MANIFEST
new file mode 100644 (file)
index 0000000..4b47068
--- /dev/null
@@ -0,0 +1 @@
+IndicFontFeatureGSUB.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/MANIFEST
new file mode 100644 (file)
index 0000000..ecb8d96
--- /dev/null
@@ -0,0 +1,2 @@
+misc
+utrrs
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/misc/MANIFEST
new file mode 100644 (file)
index 0000000..3c2a4fb
--- /dev/null
@@ -0,0 +1,2 @@
+misc.txt
+reph.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/misc/misc.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/misc/misc.txt
new file mode 100644 (file)
index 0000000..aa43590
--- /dev/null
@@ -0,0 +1,53 @@
+অ্য
+ক
+ক়
+কি
+ক্
+ক্ক
+ক্র
+ক্র্ক
+ক্‌ক
+ক্‍ক
+দ্য
+ন্ক
+ন্ধ
+ন্ব
+ন্য
+ন্র
+ন্‌ক
+ন্‌ধ
+ন্‌ব
+ন্‌র
+ন্‍ক
+ন্‍ধ
+ন্‍ব
+ন্‍র
+য্
+র্ক
+র্কি
+র্কৌ
+র্ন্‍
+র্ব্ব
+শ্য
+ষ্য
+স্য
+ি
+কো
+কৌ
+ক্র্ক
+ন্‌ক
+ন্‌ব
+ন্‍ক
+ন্‍ব
+ন্‍র
+র্কাং
+র্কাঃ
+র্কৌ
+র্ভ
+ৰ্ভ
+ৱ্ভ
+অৗ
+ন্ত্র
+ত্যু
+চ্য্র
+ক্‍ষ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/misc/reph.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/misc/reph.txt
new file mode 100644 (file)
index 0000000..9739eaa
--- /dev/null
@@ -0,0 +1,14 @@
+র্ক
+র্কা
+র্কি
+র্কী
+র্কু
+র্কূ
+র্কে
+র্কৈ
+র্কো
+র্কৌ
+র্য
+র্‍য
+র‍্য
+র্র‍্য
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/LICENSE b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/LICENSE
new file mode 100644 (file)
index 0000000..2cf8228
--- /dev/null
@@ -0,0 +1,19 @@
+Copyright (c) 2010 Red Hat Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/MANIFEST
new file mode 100644 (file)
index 0000000..0658824
--- /dev/null
@@ -0,0 +1,3 @@
+codepoint
+gpos
+gsub
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/README b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/README
new file mode 100644 (file)
index 0000000..8bad337
--- /dev/null
@@ -0,0 +1,13 @@
+Introduction:
+A system to compare a reference image of a text character, word or phrase with another image of the character, word or phrase that was rendered by a text rendering engine. Differences between the reference image and the rendered image may be recorded for subsequent analysis. Performance of a text rendering engine producing text according to typographical rules applicable to a natural language can be evaluated by one with no knowledge or ability to read the natural language
+
+
+COPYRIGHT: Red Hat Inc. 2010
+
+license: this project is under MIT license
+
+
+AUTHORS:
+Lawrence Lim
+Satyabrata Maitra
+Amanpreet Singh Brar
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/SOURCES b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/SOURCES
new file mode 100644 (file)
index 0000000..0ed1a89
--- /dev/null
@@ -0,0 +1,2 @@
+https://fedorahosted.org/utrrs/
+Fetched in late 2011
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt
new file mode 100644 (file)
index 0000000..fd5e6e6
--- /dev/null
@@ -0,0 +1 @@
+codepoint, imagepath, rawcode, desc
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt
new file mode 100644 (file)
index 0000000..7554b36
--- /dev/null
@@ -0,0 +1,36 @@
+ক
+খ
+গ
+ঘ
+ঙ
+চ
+ছ
+জ
+ঝ
+ঞ
+ট
+ঠ
+ড
+ঢ
+ণ
+ত
+থ
+দ
+ধ
+ন
+প
+ফ
+ব
+ভ
+ম
+য
+র
+ল
+ড়
+ঢ়
+য়
+শ
+ষ
+স
+হ
+ৎ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt
new file mode 100644 (file)
index 0000000..ddf03c0
--- /dev/null
@@ -0,0 +1,10 @@
+া
+ি
+ী
+ু
+ূ
+ৃ
+ে
+ৈ
+ো
+ৌ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt
new file mode 100644 (file)
index 0000000..870ce26
--- /dev/null
@@ -0,0 +1,10 @@
+০
+১
+২
+৩
+৪
+৫
+৬
+৭
+৮
+৯
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt
new file mode 100644 (file)
index 0000000..169ba5d
--- /dev/null
@@ -0,0 +1,12 @@
+অ
+আ
+ই
+ঈ
+উ
+ঊ
+ঋ
+ঌ
+এ
+ঐ
+ও
+ঔ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt
new file mode 100644 (file)
index 0000000..66a7ca4
--- /dev/null
@@ -0,0 +1,2 @@
+।
+॥
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt
new file mode 100644 (file)
index 0000000..0afc191
--- /dev/null
@@ -0,0 +1,6 @@
+্
+়
+ং
+ঃ
+ঁ
+৺
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/codepoint/MANIFEST
new file mode 100644 (file)
index 0000000..1490dfe
--- /dev/null
@@ -0,0 +1,7 @@
+IndicFontFeatureCodepoint-AdditionalVowels.txt
+IndicFontFeatureCodepoint-Consonants.txt
+IndicFontFeatureCodepoint-DependentVowels.txt
+IndicFontFeatureCodepoint-Digits.txt
+IndicFontFeatureCodepoint-IndependentVowels.txt
+IndicFontFeatureCodepoint-Reserved.txt
+IndicFontFeatureCodepoint-VariousSigns.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt
new file mode 100644 (file)
index 0000000..7c652be
--- /dev/null
@@ -0,0 +1,58 @@
+কঁ
+খঁ
+গঁ
+ঘঁ
+চঁ
+ছঁ
+জঁ
+ঝঁ
+টঁ
+ঠঁ
+ডঁ
+ঢঁ
+তঁ
+থঁ
+দঁ
+ধঁ
+পঁ
+ফঁ
+বঁ
+ভঁ
+মঁ
+যঁ
+রঁ
+লঁ
+শঁ
+ষঁ
+সঁ
+হঁ
+র্ক
+র্খ
+র্গ
+র্ঘ
+র্চ
+র্ছ
+র্জ
+র্ঝ
+র্ট
+র্ঠ
+র্ড
+র্ঢ
+র্ণ
+র্ত
+র্থ
+র্দ
+র্ধ
+র্ন
+র্প
+র্ফ
+র্ব
+র্ভ
+র্ম
+র্য
+র্র
+র্ল
+র্শ
+র্ষ
+র্স
+র্হ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt
new file mode 100644 (file)
index 0000000..2fd42e0
--- /dev/null
@@ -0,0 +1,119 @@
+কু
+কূ
+কৃ
+খু
+খূ
+খৃ
+গু
+গূ
+গৃ
+ঘু
+ঘূ
+ঘৃ
+চু
+চূ
+চৃ
+ছু
+ছূ
+ছৃ
+জু
+জূ
+জৃ
+ঝু
+ঝূ
+ঝৃ
+টু
+টূ
+টৃ
+ঠু
+ঠূ
+ঠৃ
+ডু
+ডূ
+ডৃ
+ঢু
+ঢূ
+ণু
+ণূ
+তু
+তূ
+তৃ
+থু
+থূ
+দু
+দূ
+দৃ
+ধু
+ধূ
+ধৃ
+নু
+নূ
+নৃ
+পু
+পূ
+পৃ
+ফু
+ফূ
+ফৃ
+বু
+বূ
+বৃ
+ভু
+ভূ
+ভৃ
+মু
+মূ
+মৃ
+যু
+যূ
+যৃ
+রু
+রূ
+রৃ
+লু
+লূ
+শু
+শূ
+শৃ
+ষু
+ষূ
+ষৃ
+সু
+সূ
+সৃ
+হু
+হূ
+হৃ
+ক্
+খ্
+গ্
+ঘ্
+ঙ্
+চ্
+ছ্
+জ্
+ঝ্
+ঞ্
+ট্
+ঠ্
+ড্
+ঢ্
+ণ্
+ত্
+থ্
+দ্
+ধ্
+ন্
+প্
+ফ্
+ব্
+ভ্
+ম্
+য্
+র্
+ল্
+শ্
+ষ্
+স্
+হ্
+জ়
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/gpos/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/gpos/MANIFEST
new file mode 100644 (file)
index 0000000..d7ae70e
--- /dev/null
@@ -0,0 +1,2 @@
+IndicFontFeatureGPOS-AboveBase.txt
+IndicFontFeatureGPOS-BelowBase.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/gsub/IndicFontFeatureGSUB.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/gsub/IndicFontFeatureGSUB.txt
new file mode 100644 (file)
index 0000000..b45b778
--- /dev/null
@@ -0,0 +1,215 @@
+ক্র
+খ্র
+গ্র
+ঘ্র
+জ্র
+ত্র
+দ্র
+ধ্র
+প্র
+ম্র
+শ্র
+স্র
+হ্র
+ছ্র
+ট্র
+ঠ্র
+ড্র
+থ্র
+ফ্র
+ব্র
+ভ্র
+ক্য
+খ্য
+গ্য
+ঘ্য
+চ্য
+জ্য
+ট্য
+ঠ্য
+ড্য
+ড়্য
+ঢ্য
+ত্য
+থ্য
+দ্য
+ধ্য
+ন্য
+প্য
+ফ্য
+ব্য
+ভ্য
+ম্য
+য্য
+র‍্য
+ল্য
+শ্য
+ষ্য
+স্য
+হ্য
+ক্ল
+গ্ল
+প্ল
+ম্ল
+ল্ল
+শ্ল
+স্ল
+হ্ল
+ক্ক
+ক্ব
+জ্ব
+ট্ব
+ত্ব
+দ্ব
+ধ্ব
+ন্ব
+ব্ব
+ম্ব
+ল্ব
+শ্ব
+ষ্ব
+স্ব
+হ্ব
+ণ্ণ
+ষ্ণ
+ষ্ণু
+হ্ণ
+হ্ণি
+জ্জ
+ট্ট
+ত্ত
+দ্দ
+ন্ন
+প্প
+ত্ন
+ম্ন
+স্ন
+হ্ন
+ক্ন
+গ্ন
+গ্ম
+ঙ্ম
+ট্ম
+ণ্ম
+ত্ম
+দ্ম
+ধ্ম
+ন্ম
+ম্ম
+ল্ম
+শ্ম
+ষ্ম
+হ্ম
+ক্ষ
+ক্ত
+গ্ধ
+ঙ্ক
+ঙ্খ
+ঙ্গ
+ঙ্ঘ
+চ্চ
+চ্ছ
+চ্ঞ
+জ্ঝ
+জ্ঞ
+ঞ্চ
+ঞ্ছ
+ঞ্জ
+ণ্ট
+ক্ট
+ণ্ড
+ন্ড
+দ্গ
+দ্ঘ
+দ্ধ
+দ্ভ
+ন্ত
+ন্থ
+ন্দ
+ন্ধ
+প্ত
+ব্জ
+ব্দ
+ম্প
+ম্ফ
+ম্ভ
+ল্ক
+ল্গ
+ল্প
+ল্ফ
+শ্চ
+ষ্ক
+ষ্ট
+ষ্ঠ
+ষ্প
+ষ্ফ
+স্ক
+স্খ
+স্ত
+স্থ
+স্প
+স্ফ
+ম্থ
+ল্ত
+ল্ধ
+ক্ম
+ক্স
+গ্গ
+ঘ্ন
+চ্ন
+ছ্ব
+ঞ্ঝ
+ড্ড
+ড্ম
+ড়্গ
+ণ্ঠ
+ণ্ঢ
+ণ্ব
+ত্থ
+থ্ব
+ধ্ন
+ন্ট
+ন্ঠ
+ন্স
+প্ট
+প্ন
+ফ্ল
+ব্ধ
+ব্ল
+ভ্ল
+ম্ত
+ম্দ
+ল্ট
+ল্ড
+শ্ছ
+শ্ন
+শ্ত
+স্ট
+স্ম
+চ্ছ্র
+চ্ছ্ব
+দ্দ্ব
+দ্ধ্ব
+ন্ধ্র
+ব্দ্র
+ক্ষ্ণ
+ক্ষ্ম
+জ্জ্ব
+ত্ত্ব
+ত্ম্য
+ন্ত্র
+ন্ত্ব
+ন্দ্র
+ন্ধ্য
+ন্ন্য
+ম্প্র
+ম্ভ্র
+র্ধ্ব
+র্শ্ব
+ষ্ট্র
+ষ্প্র
+স্ত্র
+স্ট্র
+স্ক্র
+ক্ট্র
+প্স
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/gsub/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-bengali/utrrs/gsub/MANIFEST
new file mode 100644 (file)
index 0000000..4b47068
--- /dev/null
@@ -0,0 +1 @@
+IndicFontFeatureGSUB.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/MANIFEST
new file mode 100644 (file)
index 0000000..ecb8d96
--- /dev/null
@@ -0,0 +1,2 @@
+misc
+utrrs
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/MANIFEST
new file mode 100644 (file)
index 0000000..c384b38
--- /dev/null
@@ -0,0 +1,6 @@
+dottedcircle.txt
+eyelash.txt
+joiners.txt
+misc.txt
+spec-deviations.txt
+tricky-reordering.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/dottedcircle.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/dottedcircle.txt
new file mode 100644 (file)
index 0000000..fd0ebdb
--- /dev/null
@@ -0,0 +1,8 @@
+र्◌
+र्◌्च
+र्◌्च्छे
+र्◌ि
+र्◌्
+र्◌़
+◌्च्छे
+र् 
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/eyelash.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/eyelash.txt
new file mode 100644 (file)
index 0000000..8e11955
--- /dev/null
@@ -0,0 +1,3 @@
+त्र्क
+त्र्‍क
+त्र्‌क
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/joiners.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/joiners.txt
new file mode 100644 (file)
index 0000000..75f85cc
--- /dev/null
@@ -0,0 +1,19 @@
+र्ह
+र्‌ह
+र्‍ह
+ऱ्ह
+ऱ्‌ह
+ऱ्‍ह
+क्क
+क्‍
+क्‌क
+क्‍क
+क्कि
+क्‌कि
+क्‍कि
+क्ष
+क्‌ष
+क्‍ष
+द्सि
+द्‌सि
+द्‍सि
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/misc.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/misc.txt
new file mode 100644 (file)
index 0000000..4a8326c
--- /dev/null
@@ -0,0 +1,36 @@
+क
+क़
+कि
+क्
+क्क
+क्र
+क्र्क
+क्र्‍
+क्ष
+क्ष्
+क्‌ष
+क्‍
+क्‍ष
+छ्र्क
+ज्ञ्
+ट्रु
+र्क
+र्कि
+र्क्रि
+र्‍
+ि
+फ़्र
+फ्र
+द्दि
+क्ष
+क्‌ष
+क्‍ष
+र्अ्
+र्अ्‌
+र्अ्‍
+र्आ्र्
+क‌ि
+ऽं
+रुँः
+1ि
+१॑
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/spec-deviations.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/spec-deviations.txt
new file mode 100644 (file)
index 0000000..4814019
--- /dev/null
@@ -0,0 +1 @@
+सा़े
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/tricky-reordering.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/misc/tricky-reordering.txt
new file mode 100644 (file)
index 0000000..1723ced
--- /dev/null
@@ -0,0 +1,5 @@
+Usage:
+  ./hb-unicode-encode UNICODE_STRING...
+or:
+  ./hb-unicode-encode --stdin
+फि्
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/LICENSE b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/LICENSE
new file mode 100644 (file)
index 0000000..2cf8228
--- /dev/null
@@ -0,0 +1,19 @@
+Copyright (c) 2010 Red Hat Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/MANIFEST
new file mode 100644 (file)
index 0000000..0658824
--- /dev/null
@@ -0,0 +1,3 @@
+codepoint
+gpos
+gsub
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/README b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/README
new file mode 100644 (file)
index 0000000..8bad337
--- /dev/null
@@ -0,0 +1,13 @@
+Introduction:
+A system to compare a reference image of a text character, word or phrase with another image of the character, word or phrase that was rendered by a text rendering engine. Differences between the reference image and the rendered image may be recorded for subsequent analysis. Performance of a text rendering engine producing text according to typographical rules applicable to a natural language can be evaluated by one with no knowledge or ability to read the natural language
+
+
+COPYRIGHT: Red Hat Inc. 2010
+
+license: this project is under MIT license
+
+
+AUTHORS:
+Lawrence Lim
+Satyabrata Maitra
+Amanpreet Singh Brar
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/SOURCES b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/SOURCES
new file mode 100644 (file)
index 0000000..0ed1a89
--- /dev/null
@@ -0,0 +1,2 @@
+https://fedorahosted.org/utrrs/
+Fetched in late 2011
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalConsonants.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalConsonants.txt
new file mode 100644 (file)
index 0000000..89cefb6
--- /dev/null
@@ -0,0 +1,8 @@
+क़
+ख़
+ग़
+ज़
+ड़
+ढ़
+फ़
+य
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt
new file mode 100644 (file)
index 0000000..9f7cda9
--- /dev/null
@@ -0,0 +1,4 @@
+ॠ
+ॡ
+ॢ
+ॣ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt
new file mode 100644 (file)
index 0000000..3aa66ce
--- /dev/null
@@ -0,0 +1,45 @@
+क
+ख
+ग
+घ
+ङ
+च
+छ
+ज
+झ
+ञ
+ट
+ठ
+ड
+ढ
+ण
+त
+थ
+द
+ध
+न
+ऩ
+प
+फ
+ब
+भ
+म
+य
+र
+ऱ
+ल
+ळ
+ऴ
+व
+श
+ष
+स
+ह
+क़
+ख़
+ग़
+ज़
+ड़
+ढ़
+फ़
+य़
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt
new file mode 100644 (file)
index 0000000..04cf0a7
--- /dev/null
@@ -0,0 +1,14 @@
+ा
+ि
+ी
+ु
+ू
+ृ
+ॄ
+ॅ
+ॆ
+े
+ै
+ॉ
+ो
+ौ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-DevnagariSpecificAddition.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-DevnagariSpecificAddition.txt
new file mode 100644 (file)
index 0000000..7b0b32c
--- /dev/null
@@ -0,0 +1 @@
+॰
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt
new file mode 100644 (file)
index 0000000..1427002
--- /dev/null
@@ -0,0 +1,10 @@
+०
+१
+२
+३
+४
+५
+६
+७
+८
+९
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-GenericPunctuation.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-GenericPunctuation.txt
new file mode 100644 (file)
index 0000000..66a7ca4
--- /dev/null
@@ -0,0 +1,2 @@
+।
+॥
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt
new file mode 100644 (file)
index 0000000..b336c35
--- /dev/null
@@ -0,0 +1,16 @@
+अ
+आ
+इ
+ई
+उ
+ऊ
+ऋ
+ऌ
+ऍ
+ऎ
+ए
+ऐ
+ऑ
+ऒ
+ओ
+औ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt
new file mode 100644 (file)
index 0000000..2ff3e87
--- /dev/null
@@ -0,0 +1,10 @@
+ँ
+ं
+ः
+़
+ऽ
+्
+ॐ
+॒
+॓
+॔
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/codepoint/MANIFEST
new file mode 100644 (file)
index 0000000..21eb56c
--- /dev/null
@@ -0,0 +1,9 @@
+IndicFontFeatureCodepoint-AdditionalConsonants.txt
+IndicFontFeatureCodepoint-AdditionalVowels.txt
+IndicFontFeatureCodepoint-Consonants.txt
+IndicFontFeatureCodepoint-DependentVowels.txt
+IndicFontFeatureCodepoint-DevnagariSpecificAddition.txt
+IndicFontFeatureCodepoint-Digits.txt
+IndicFontFeatureCodepoint-GenericPunctuation.txt
+IndicFontFeatureCodepoint-IndependentVowels.txt
+IndicFontFeatureCodepoint-VariousSigns.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt
new file mode 100644 (file)
index 0000000..6d57308
--- /dev/null
@@ -0,0 +1,185 @@
+कॅ
+खॅ
+गॅ
+घॅ
+ङॅ
+चॅ
+छॅ
+जॅ
+झॅ
+ञॅ
+टॅ
+ठॅ
+डॅ
+ढॅ
+णॅ
+तॅ
+थॅ
+दॅ
+धॅ
+नॅ
+ऩॅ
+पॅ
+फॅ
+बॅ
+भॅ
+मॅ
+यॅ
+रॅ
+ऱॅ
+लॅ
+ळॅ
+ऴॅ
+वॅ
+शॅ
+षॅ
+सॅ
+हॅ
+कॆ
+खॆ
+गॆ
+घॆ
+ङॆ
+चॆ
+छॆ
+जॆ
+झॆ
+ञॆ
+टॆ
+ठॆ
+डॆ
+ढॆ
+णॆ
+तॆ
+थॆ
+दॆ
+धॆ
+नॆ
+ऩॆ
+पॆ
+फॆ
+बॆ
+भॆ
+मॆ
+यॆ
+रॆ
+ऱॆ
+लॆ
+ळॆ
+ऴॆ
+वॆ
+शॆ
+षॆ
+सॆ
+हॆ
+के
+खे
+गे
+घे
+ङे
+चे
+छे
+जे
+झे
+ञे
+टे
+ठे
+डे
+ढे
+णे
+ते
+थे
+दे
+धे
+ने
+ऩे
+पे
+फे
+बे
+भे
+मे
+ये
+रे
+ऱे
+ले
+ळे
+ऴे
+वे
+शे
+षे
+से
+हे
+कै
+खै
+गै
+घै
+ङै
+चै
+छै
+जै
+झै
+ञै
+टै
+ठै
+डै
+ढै
+णै
+तै
+थै
+दै
+धै
+नै
+ऩै
+पै
+फै
+बै
+भै
+मै
+यै
+रै
+ऱै
+लै
+ळै
+ऴै
+वै
+शै
+षै
+सै
+है
+कँ
+खँ
+गँ
+घँ
+ङँ
+चँ
+छँ
+जँ
+झँ
+ञँ
+टँ
+ठँ
+डँ
+ढँ
+णँ
+तँ
+थँ
+दँ
+धँ
+नँ
+ऩँ
+पँ
+फँ
+बँ
+भँ
+मँ
+यँ
+रँ
+ऱँ
+लँ
+ळँ
+ऴँ
+वँ
+शँ
+षँ
+सँ
+हँ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt
new file mode 100644 (file)
index 0000000..bff1a7b
--- /dev/null
@@ -0,0 +1,185 @@
+कु
+खु
+गु
+घु
+ङु
+चु
+छु
+जु
+झु
+ञु
+टु
+ठु
+डु
+ढु
+णु
+तु
+थु
+दु
+धु
+नु
+ऩु
+पु
+फु
+बु
+भु
+मु
+यु
+रु
+ऱु
+लु
+ळु
+ऴु
+वु
+शु
+षु
+सु
+हु
+कू
+खू
+गू
+घू
+ङू
+चू
+छू
+जू
+झू
+ञू
+टू
+ठू
+डू
+ढू
+णू
+तू
+थू
+दू
+धू
+नू
+ऩू
+पू
+फू
+बू
+भू
+मू
+यू
+रू
+ऱू
+लू
+ळू
+ऴू
+वू
+शू
+षू
+सू
+हू
+कृ
+खृ
+गृ
+घृ
+ङृ
+चृ
+छृ
+जृ
+झृ
+ञृ
+टृ
+ठृ
+डृ
+ढृ
+णृ
+तृ
+थृ
+दृ
+धृ
+नृ
+ऩृ
+पृ
+फृ
+बृ
+भृ
+मृ
+यृ
+रृ
+ऱृ
+लृ
+ळृ
+ऴृ
+वृ
+शृ
+षृ
+सृ
+हृ
+कॄ
+खॄ
+गॄ
+घॄ
+ङॄ
+चॄ
+छॄ
+जॄ
+झॄ
+ञॄ
+टॄ
+ठॄ
+डॄ
+ढॄ
+णॄ
+तॄ
+थॄ
+दॄ
+धॄ
+नॄ
+ऩॄ
+पॄ
+फॄ
+बॄ
+भॄ
+मॄ
+यॄ
+रॄ
+ऱॄ
+लॄ
+ळॄ
+ऴॄ
+वॄ
+शॄ
+षॄ
+सॄ
+हॄ
+क्
+ख्
+ग्
+घ्
+ङ्
+च्
+छ्
+ज्
+झ्
+ञ्
+ट्
+ठ्
+ड्
+ढ्
+ण्
+त्
+थ्
+द्
+ध्
+न्
+ऩ्
+प्
+फ्
+ब्
+भ्
+म्
+य्
+र्
+ऱ्
+ल्
+ळ्
+ऴ्
+व्
+श्
+ष्
+स्
+ह्
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/gpos/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/gpos/MANIFEST
new file mode 100644 (file)
index 0000000..d7ae70e
--- /dev/null
@@ -0,0 +1,2 @@
+IndicFontFeatureGPOS-AboveBase.txt
+IndicFontFeatureGPOS-BelowBase.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/gsub/IndicFontFeatureGSUB.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/gsub/IndicFontFeatureGSUB.txt
new file mode 100644 (file)
index 0000000..3b5e620
--- /dev/null
@@ -0,0 +1,1367 @@
+क्क
+क्ख
+क्ग
+क्घ
+क्ङ
+क्च
+क्छ
+क्ज
+क्झ
+क्ञ
+क्ट
+क्ठ
+क्ड
+क्ढ
+क्ण
+क्त
+क्थ
+क्द
+क्ध
+क्न
+क्ऩ
+क्प
+क्फ
+क्ब
+क्भ
+क्म
+क्य
+क्र
+क्ऱ
+क्ल
+क्ळ
+क्ऴ
+क्व
+क्श
+क्ष
+क्स
+क्ह
+ख्क
+ख्ख
+ख्ग
+ख्घ
+ख्ङ
+ख्च
+ख्छ
+ख्ज
+ख्झ
+ख्ञ
+ख्ट
+ख्ठ
+ख्ड
+ख्ढ
+ख्ण
+ख्त
+ख्थ
+ख्द
+ख्ध
+ख्न
+ख्ऩ
+ख्प
+ख्फ
+ख्ब
+ख्भ
+ख्म
+ख्य
+ख्र
+ख्ऱ
+ख्ल
+ख्ळ
+ख्ऴ
+ख्व
+ख्श
+ख्ष
+ख्स
+ख्ह
+ग्क
+ग्ख
+ग्ग
+ग्घ
+ग्ङ
+ग्च
+ग्छ
+ग्ज
+ग्झ
+ग्ञ
+ग्ट
+ग्ठ
+ग्ड
+ग्ढ
+ग्ण
+ग्त
+ग्थ
+ग्द
+ग्ध
+ग्न
+ग्ऩ
+ग्प
+ग्फ
+ग्ब
+ग्भ
+ग्म
+ग्य
+ग्र
+ग्ऱ
+ग्ल
+ग्ळ
+ग्ऴ
+ग्व
+ग्श
+ग्ष
+ग्स
+ग्ह
+घ्क
+घ्ख
+घ्ग
+घ्घ
+घ्ङ
+घ्च
+घ्छ
+घ्ज
+घ्झ
+घ्ञ
+घ्ट
+घ्ठ
+घ्ड
+घ्ढ
+घ्ण
+घ्त
+घ्थ
+घ्द
+घ्ध
+घ्न
+घ्ऩ
+घ्प
+घ्फ
+घ्ब
+घ्भ
+घ्म
+घ्य
+घ्र
+घ्ऱ
+घ्ल
+घ्ळ
+घ्ऴ
+घ्व
+घ्श
+घ्ष
+घ्स
+घ्ह
+ङ्क
+ङ्ख
+ङ्ग
+ङ्घ
+ङ्ङ
+ङ्च
+ङ्छ
+ङ्ज
+ङ्झ
+ङ्ञ
+ङ्ट
+ङ्ठ
+ङ्ड
+ङ्ढ
+ङ्ण
+ङ्त
+ङ्थ
+ङ्द
+ङ्ध
+ङ्न
+ङ्ऩ
+ङ्प
+ङ्फ
+ङ्ब
+ङ्भ
+ङ्म
+ङ्य
+ङ्र
+ङ्ऱ
+ङ्ल
+ङ्ळ
+ङ्ऴ
+ङ्व
+ङ्श
+ङ्ष
+ङ्स
+ङ्ह
+च्क
+च्ख
+च्ग
+च्घ
+च्ङ
+च्च
+च्छ
+च्ज
+च्झ
+च्ञ
+च्ट
+च्ठ
+च्ड
+च्ढ
+च्ण
+च्त
+च्थ
+च्द
+च्ध
+च्न
+च्ऩ
+च्प
+च्फ
+च्ब
+च्भ
+च्म
+च्य
+च्र
+च्ऱ
+च्ल
+च्ळ
+च्ऴ
+च्व
+च्श
+च्ष
+च्स
+च्ह
+छ्क
+छ्ख
+छ्ग
+छ्घ
+छ्ङ
+छ्च
+छ्छ
+छ्ज
+छ्झ
+छ्ञ
+छ्ट
+छ्ठ
+छ्ड
+छ्ढ
+छ्ण
+छ्त
+छ्थ
+छ्द
+छ्ध
+छ्न
+छ्ऩ
+छ्प
+छ्फ
+छ्ब
+छ्भ
+छ्म
+छ्य
+छ्र
+छ्ऱ
+छ्ल
+छ्ळ
+छ्ऴ
+छ्व
+छ्श
+छ्ष
+छ्स
+छ्ह
+ज्क
+ज्ख
+ज्ग
+ज्घ
+ज्ङ
+ज्च
+ज्छ
+ज्ज
+ज्झ
+ज्ञ
+ज्ट
+ज्ठ
+ज्ड
+ज्ढ
+ज्ण
+ज्त
+ज्थ
+ज्द
+ज्ध
+ज्न
+ज्ऩ
+ज्प
+ज्फ
+ज्ब
+ज्भ
+ज्म
+ज्य
+ज्र
+ज्ऱ
+ज्ल
+ज्ळ
+ज्ऴ
+ज्व
+ज्श
+ज्ष
+ज्स
+ज्ह
+झ्क
+झ्ख
+झ्ग
+झ्घ
+झ्ङ
+झ्च
+झ्छ
+झ्ज
+झ्झ
+झ्ञ
+झ्ट
+झ्ठ
+झ्ड
+झ्ढ
+झ्ण
+झ्त
+झ्थ
+झ्द
+झ्ध
+झ्न
+झ्ऩ
+झ्प
+झ्फ
+झ्ब
+झ्भ
+झ्म
+झ्य
+झ्र
+झ्ऱ
+झ्ल
+झ्ळ
+झ्ऴ
+झ्व
+झ्श
+झ्ष
+झ्स
+झ्ह
+ञ्क
+ञ्ख
+ञ्ग
+ञ्घ
+ञ्ङ
+ञ्च
+ञ्छ
+ञ्ज
+ञ्झ
+ञ्ञ
+ञ्ट
+ञ्ठ
+ञ्ड
+ञ्ढ
+ञ्ण
+ञ्त
+ञ्थ
+ञ्द
+ञ्ध
+ञ्न
+ञ्ऩ
+ञ्प
+ञ्फ
+ञ्ब
+ञ्भ
+ञ्म
+ञ्य
+ञ्र
+ञ्ऱ
+ञ्ल
+ञ्ळ
+ञ्ऴ
+ञ्व
+ञ्श
+ञ्ष
+ञ्स
+ञ्ह
+ट्क
+ट्ख
+ट्ग
+ट्घ
+ट्ङ
+ट्च
+ट्छ
+ट्ज
+ट्झ
+ट्ञ
+ट्ट
+ट्ठ
+ट्ड
+ट्ढ
+ट्ण
+ट्त
+ट्थ
+ट्द
+ट्ध
+ट्न
+ट्ऩ
+ट्प
+ट्फ
+ट्ब
+ट्भ
+ट्म
+ट्य
+ट्र
+ट्ऱ
+ट्ल
+ट्ळ
+ट्ऴ
+ट्व
+ट्श
+ट्ष
+ट्स
+ट्ह
+ठ्क
+ठ्ख
+ठ्ग
+ठ्घ
+ठ्ङ
+ठ्च
+ठ्छ
+ठ्ज
+ठ्झ
+ठ्ञ
+ठ्ट
+ठ्ठ
+ठ्ड
+ठ्ढ
+ठ्ण
+ठ्त
+ठ्थ
+ठ्द
+ठ्ध
+ठ्न
+ठ्ऩ
+ठ्प
+ठ्फ
+ठ्ब
+ठ्भ
+ठ्म
+ठ्य
+ठ्र
+ठ्ऱ
+ठ्ल
+ठ्ळ
+ठ्ऴ
+ठ्व
+ठ्श
+ठ्ष
+ठ्स
+ठ्ह
+ड्क
+ड्ख
+ड्ग
+ड्घ
+ड्ङ
+ड्च
+ड्छ
+ड्ज
+ड्झ
+ड्ञ
+ड्ट
+ड्ठ
+ड्ड
+ड्ढ
+ड्ण
+ड्त
+ड्थ
+ड्द
+ड्ध
+ड्न
+ड्ऩ
+ड्प
+ड्फ
+ड्ब
+ड्भ
+ड्म
+ड्य
+ड्र
+ड्ऱ
+ड्ल
+ड्ळ
+ड्ऴ
+ड्व
+ड्श
+ड्ष
+ड्स
+ड्ह
+ढ्क
+ढ्ख
+ढ्ग
+ढ्घ
+ढ्ङ
+ढ्च
+ढ्छ
+ढ्ज
+ढ्झ
+ढ्ञ
+ढ्ट
+ढ्ठ
+ढ्ड
+ढ्ढ
+ढ्ण
+ढ्त
+ढ्थ
+ढ्द
+ढ्ध
+ढ्न
+ढ्ऩ
+ढ्प
+ढ्फ
+ढ्ब
+ढ्भ
+ढ्म
+ढ्य
+ढ्र
+ढ्ऱ
+ढ्ल
+ढ्ळ
+ढ्ऴ
+ढ्व
+ढ्श
+ढ्ष
+ढ्स
+ढ्ह
+ण्क
+ण्ख
+ण्ग
+ण्घ
+ण्ङ
+ण्च
+ण्छ
+ण्ज
+ण्झ
+ण्ञ
+ण्ट
+ण्ठ
+ण्ड
+ण्ढ
+ण्ण
+ण्त
+ण्थ
+ण्द
+ण्ध
+ण्न
+ण्ऩ
+ण्प
+ण्फ
+ण्ब
+ण्भ
+ण्म
+ण्य
+ण्र
+ण्ऱ
+ण्ल
+ण्ळ
+ण्ऴ
+ण्व
+ण्श
+ण्ष
+ण्स
+ण्ह
+त्क
+त्ख
+त्ग
+त्घ
+त्ङ
+त्च
+त्छ
+त्ज
+त्झ
+त्ञ
+त्ट
+त्ठ
+त्ड
+त्ढ
+त्ण
+त्त
+त्थ
+त्द
+त्ध
+त्न
+त्ऩ
+त्प
+त्फ
+त्ब
+त्भ
+त्म
+त्य
+त्र
+त्ऱ
+त्ल
+त्ळ
+त्ऴ
+त्व
+त्श
+त्ष
+त्स
+त्ह
+थ्क
+थ्ख
+थ्ग
+थ्घ
+थ्ङ
+थ्च
+थ्छ
+थ्ज
+थ्झ
+थ्ञ
+थ्ट
+थ्ठ
+थ्ड
+थ्ढ
+थ्ण
+थ्त
+थ्थ
+थ्द
+थ्ध
+थ्न
+थ्ऩ
+थ्प
+थ्फ
+थ्ब
+थ्भ
+थ्म
+थ्य
+थ्र
+थ्ऱ
+थ्ल
+थ्ळ
+थ्ऴ
+थ्व
+थ्श
+थ्ष
+थ्स
+थ्ह
+द्क
+द्ख
+द्ग
+द्घ
+द्ङ
+द्च
+द्छ
+द्ज
+द्झ
+द्ञ
+द्ट
+द्ठ
+द्ड
+द्ढ
+द्ण
+द्त
+द्थ
+द्द
+द्ध
+द्न
+द्ऩ
+द्प
+द्फ
+द्ब
+द्भ
+द्म
+द्य
+द्र
+द्ऱ
+द्ल
+द्ळ
+द्ऴ
+द्व
+द्श
+द्ष
+द्स
+द्ह
+ध्क
+ध्ख
+ध्ग
+ध्घ
+ध्ङ
+ध्च
+ध्छ
+ध्ज
+ध्झ
+ध्ञ
+ध्ट
+ध्ठ
+ध्ड
+ध्ढ
+ध्ण
+ध्त
+ध्थ
+ध्द
+ध्ध
+ध्न
+ध्ऩ
+ध्प
+ध्फ
+ध्ब
+ध्भ
+ध्म
+ध्य
+ध्र
+ध्ऱ
+ध्ल
+ध्ळ
+ध्ऴ
+ध्व
+ध्श
+ध्ष
+ध्स
+ध्ह
+न्क
+न्ख
+न्ग
+न्घ
+न्ङ
+न्च
+न्छ
+न्ज
+न्झ
+न्ञ
+न्ट
+न्ठ
+न्ड
+न्ढ
+न्ण
+न्त
+न्थ
+न्द
+न्ध
+न्न
+न्ऩ
+न्प
+न्फ
+न्ब
+न्भ
+न्म
+न्य
+न्र
+न्ऱ
+न्ल
+न्ळ
+न्ऴ
+न्व
+न्श
+न्ष
+न्स
+न्ह
+ऩ्क
+ऩ्ख
+ऩ्ग
+ऩ्घ
+ऩ्ङ
+ऩ्च
+ऩ्छ
+ऩ्ज
+ऩ्झ
+ऩ्ञ
+ऩ्ट
+ऩ्ठ
+ऩ्ड
+ऩ्ढ
+ऩ्ण
+ऩ्त
+ऩ्थ
+ऩ्द
+ऩ्ध
+ऩ्न
+ऩ्ऩ
+ऩ्प
+ऩ्फ
+ऩ्ब
+ऩ्भ
+ऩ्म
+ऩ्य
+ऩ्र
+ऩ्ऱ
+ऩ्ल
+ऩ्ळ
+ऩ्ऴ
+ऩ्व
+ऩ्श
+ऩ्ष
+ऩ्स
+ऩ्ह
+प्क
+प्ख
+प्ग
+प्घ
+प्ङ
+प्च
+प्छ
+प्ज
+प्झ
+प्ञ
+प्ट
+प्ठ
+प्ड
+प्ढ
+प्ण
+प्त
+प्थ
+प्द
+प्ध
+प्न
+प्ऩ
+प्प
+प्फ
+प्ब
+प्भ
+प्म
+प्य
+प्र
+प्ऱ
+प्ल
+प्ळ
+प्ऴ
+प्व
+प्श
+प्ष
+प्स
+प्ह
+फ्क
+फ्ख
+फ्ग
+फ्घ
+फ्ङ
+फ्च
+फ्छ
+फ्ज
+फ्झ
+फ्ञ
+फ्ट
+फ्ठ
+फ्ड
+फ्ढ
+फ्ण
+फ्त
+फ्थ
+फ्द
+फ्ध
+फ्न
+फ्ऩ
+फ्प
+फ्फ
+फ्ब
+फ्भ
+फ्म
+फ्य
+फ्र
+फ्ऱ
+फ्ल
+फ्ळ
+फ्ऴ
+फ्व
+फ्श
+फ्ष
+फ्स
+फ्ह
+ब्क
+ब्ख
+ब्ग
+ब्घ
+ब्ङ
+ब्च
+ब्छ
+ब्ज
+ब्झ
+ब्ञ
+ब्ट
+ब्ठ
+ब्ड
+ब्ढ
+ब्ण
+ब्त
+ब्थ
+ब्द
+ब्ध
+ब्न
+ब्ऩ
+ब्प
+ब्फ
+ब्ब
+ब्भ
+ब्म
+ब्य
+ब्र
+ब्ऱ
+ब्ल
+ब्ळ
+ब्ऴ
+ब्व
+ब्श
+ब्ष
+ब्स
+ब्ह
+भ्क
+भ्ख
+भ्ग
+भ्घ
+भ्ङ
+भ्च
+भ्छ
+भ्ज
+भ्झ
+भ्ञ
+भ्ट
+भ्ठ
+भ्ड
+भ्ढ
+भ्ण
+भ्त
+भ्थ
+भ्द
+भ्ध
+भ्न
+भ्ऩ
+भ्प
+भ्फ
+भ्ब
+भ्भ
+भ्म
+भ्य
+भ्र
+भ्ऱ
+भ्ल
+भ्ळ
+भ्ऴ
+भ्व
+भ्श
+भ्ष
+भ्स
+भ्ह
+म्क
+म्ख
+म्ग
+म्घ
+म्ङ
+म्च
+म्छ
+म्ज
+म्झ
+म्ञ
+म्ट
+म्ठ
+म्ड
+म्ढ
+म्ण
+म्त
+म्थ
+म्द
+म्ध
+म्न
+म्ऩ
+म्प
+म्फ
+म्ब
+म्भ
+म्म
+म्य
+म्र
+म्ऱ
+म्ल
+म्ळ
+म्ऴ
+म्व
+म्श
+म्ष
+म्स
+म्ह
+य्क
+य्ख
+य्ग
+य्घ
+य्ङ
+य्च
+य्छ
+य्ज
+य्झ
+य्ञ
+य्ट
+य्ठ
+य्ड
+य्ढ
+य्ण
+य्त
+य्थ
+य्द
+य्ध
+य्न
+य्ऩ
+य्प
+य्फ
+य्ब
+य्भ
+य्म
+य्य
+य्र
+य्ऱ
+य्ल
+य्ळ
+य्ऴ
+य्व
+य्श
+य्ष
+य्स
+य्ह
+र्क
+र्ख
+र्ग
+र्घ
+र्ङ
+र्च
+र्छ
+र्ज
+र्झ
+र्ञ
+र्ट
+र्ठ
+र्ड
+र्ढ
+र्ण
+र्त
+र्थ
+र्द
+र्ध
+र्न
+र्ऩ
+र्प
+र्फ
+र्ब
+र्भ
+र्म
+र्य
+र्र
+र्ऱ
+र्ल
+र्ळ
+र्ऴ
+र्व
+र्श
+र्ष
+र्स
+र्ह
+ऱ्क
+ऱ्ख
+ऱ्ग
+ऱ्घ
+ऱ्ङ
+ऱ्च
+ऱ्छ
+ऱ्ज
+ऱ्झ
+ऱ्ञ
+ऱ्ट
+ऱ्ठ
+ऱ्ड
+ऱ्ढ
+ऱ्ण
+ऱ्त
+ऱ्थ
+ऱ्द
+ऱ्ध
+ऱ्न
+ऱ्ऩ
+ऱ्प
+ऱ्फ
+ऱ्ब
+ऱ्भ
+ऱ्म
+ऱ्य
+ऱ्र
+ऱ्ऱ
+ऱ्ल
+ऱ्ळ
+ऱ्ऴ
+ऱ्व
+ऱ्श
+ऱ्ष
+ऱ्स
+ऱ्ह
+ल्क
+ल्ख
+ल्ग
+ल्घ
+ल्ङ
+ल्च
+ल्छ
+ल्ज
+ल्झ
+ल्ञ
+ल्ट
+ल्ठ
+ल्ड
+ल्ढ
+ल्ण
+ल्त
+ल्थ
+ल्द
+ल्ध
+ल्न
+ल्ऩ
+ल्प
+ल्फ
+ल्ब
+ल्भ
+ल्म
+ल्य
+ल्र
+ल्ऱ
+ल्ल
+ल्ळ
+ल्ऴ
+ल्व
+ल्श
+ल्ष
+ल्स
+ल्ह
+ळ्क
+ळ्ख
+ळ्ग
+ळ्घ
+ळ्ङ
+ळ्च
+ळ्छ
+ळ्ज
+ळ्झ
+ळ्ञ
+ळ्ट
+ळ्ठ
+ळ्ड
+ळ्ढ
+ळ्ण
+ळ्त
+ळ्थ
+ळ्द
+ळ्ध
+ळ्न
+ळ्ऩ
+ळ्प
+ळ्फ
+ळ्ब
+ळ्भ
+ळ्म
+ळ्य
+ळ्र
+ळ्ऱ
+ळ्ल
+ळ्ळ
+ळ्ऴ
+ळ्व
+ळ्श
+ळ्ष
+ळ्स
+ळ्ह
+ऴ्क
+ऴ्ख
+ऴ्ग
+ऴ्घ
+ऴ्ङ
+ऴ्च
+ऴ्छ
+ऴ्ज
+ऴ्झ
+ऴ्ञ
+ऴ्ट
+ऴ्ठ
+ऴ्ड
+ऴ्ढ
+ऴ्ण
+ऴ्त
+ऴ्थ
+ऴ्द
+ऴ्ध
+ऴ्न
+ऴ्ऩ
+ऴ्प
+ऴ्फ
+ऴ्ब
+ऴ्भ
+ऴ्म
+ऴ्य
+ऴ्र
+ऴ्ऱ
+ऴ्ल
+ऴ्ळ
+ऴ्ऴ
+ऴ्व
+ऴ्श
+ऴ्ष
+ऴ्स
+ऴ्ह
+व्क
+व्ख
+व्ग
+व्घ
+व्ङ
+व्च
+व्छ
+व्ज
+व्झ
+व्ञ
+व्ट
+व्ठ
+व्ड
+व्ढ
+व्ण
+व्त
+व्थ
+व्द
+व्ध
+व्न
+व्ऩ
+व्प
+व्फ
+व्ब
+व्भ
+व्म
+व्य
+व्र
+व्ऱ
+व्ल
+व्ळ
+व्ऴ
+व्व
+व्श
+व्ष
+व्स
+व्ह
+श्क
+श्ख
+श्ग
+श्घ
+श्ङ
+श्च
+श्छ
+श्ज
+श्झ
+श्ञ
+श्ट
+श्ठ
+श्ड
+श्ढ
+श्ण
+श्त
+श्थ
+श्द
+श्ध
+श्न
+श्ऩ
+श्प
+श्फ
+श्ब
+श्भ
+श्म
+श्य
+श्र
+श्ऱ
+श्ल
+श्ळ
+श्ऴ
+श्व
+श्श
+श्ष
+श्स
+श्ह
+ष्क
+ष्ख
+ष्ग
+ष्घ
+ष्ङ
+ष्च
+ष्छ
+ष्ज
+ष्झ
+ष्ञ
+ष्ट
+ष्ठ
+ष्ड
+ष्ढ
+ष्ण
+ष्त
+ष्थ
+ष्द
+ष्ध
+ष्न
+ष्ऩ
+ष्प
+ष्फ
+ष्ब
+ष्भ
+ष्म
+ष्य
+ष्र
+ष्ऱ
+ष्ल
+ष्ळ
+ष्ऴ
+ष्व
+ष्श
+ष्ष
+ष्स
+ष्ह
+स्क
+स्ख
+स्ग
+स्घ
+स्ङ
+स्च
+स्छ
+स्ज
+स्झ
+स्ञ
+स्ट
+स्ठ
+स्ड
+स्ढ
+स्ण
+स्त
+स्थ
+स्द
+स्ध
+स्न
+स्ऩ
+स्प
+स्फ
+स्ब
+स्भ
+स्म
+स्य
+स्र
+स्ऱ
+स्ल
+स्ळ
+स्ऴ
+स्व
+स्श
+स्ष
+स्स
+स्ह
+ह्क
+ह्ख
+ह्ग
+ह्घ
+ह्ङ
+ह्च
+ह्छ
+ह्ज
+ह्झ
+ह्ञ
+ह्ट
+ह्ठ
+ह्ड
+ह्ढ
+ह्ण
+ह्त
+ह्थ
+ह्द
+ह्ध
+ह्न
+ह्ऩ
+ह्प
+ह्फ
+ह्ब
+ह्भ
+ह्म
+ह्य
+ह्र
+ह्ऱ
+ह्ल
+ह्ळ
+ह्ऴ
+ह्व
+ह्श
+ह्ष
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/gsub/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-devanagari/utrrs/gsub/MANIFEST
new file mode 100644 (file)
index 0000000..4b47068
--- /dev/null
@@ -0,0 +1 @@
+IndicFontFeatureGSUB.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/MANIFEST
new file mode 100644 (file)
index 0000000..ecb8d96
--- /dev/null
@@ -0,0 +1,2 @@
+misc
+utrrs
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/misc/MANIFEST
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/LICENSE b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/LICENSE
new file mode 100644 (file)
index 0000000..2cf8228
--- /dev/null
@@ -0,0 +1,19 @@
+Copyright (c) 2010 Red Hat Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/MANIFEST
new file mode 100644 (file)
index 0000000..0658824
--- /dev/null
@@ -0,0 +1,3 @@
+codepoint
+gpos
+gsub
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/README b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/README
new file mode 100644 (file)
index 0000000..8bad337
--- /dev/null
@@ -0,0 +1,13 @@
+Introduction:
+A system to compare a reference image of a text character, word or phrase with another image of the character, word or phrase that was rendered by a text rendering engine. Differences between the reference image and the rendered image may be recorded for subsequent analysis. Performance of a text rendering engine producing text according to typographical rules applicable to a natural language can be evaluated by one with no knowledge or ability to read the natural language
+
+
+COPYRIGHT: Red Hat Inc. 2010
+
+license: this project is under MIT license
+
+
+AUTHORS:
+Lawrence Lim
+Satyabrata Maitra
+Amanpreet Singh Brar
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/SOURCES b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/SOURCES
new file mode 100644 (file)
index 0000000..0ed1a89
--- /dev/null
@@ -0,0 +1,2 @@
+https://fedorahosted.org/utrrs/
+Fetched in late 2011
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt
new file mode 100644 (file)
index 0000000..fd5e6e6
--- /dev/null
@@ -0,0 +1 @@
+codepoint, imagepath, rawcode, desc
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt
new file mode 100644 (file)
index 0000000..e91003a
--- /dev/null
@@ -0,0 +1,34 @@
+ક
+ખ
+ગ
+ઘ
+ઙ
+ચ
+છ
+જ
+ઝ
+ઞ
+ટ
+ઠ
+ડ
+ઢ
+ણ
+ત
+થ
+દ
+ધ
+ન
+પ
+ફ
+બ
+ભ
+મ
+ય
+ર
+લ
+ળ
+વ
+શ
+ષ
+સ
+હ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt
new file mode 100644 (file)
index 0000000..3650298
--- /dev/null
@@ -0,0 +1,12 @@
+ા
+િ
+ી
+ુ
+ૂ
+ૃ
+ૅ
+ે
+ૈ
+ૉ
+ો
+ૌ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt
new file mode 100644 (file)
index 0000000..eabae39
--- /dev/null
@@ -0,0 +1,10 @@
+૦
+૧
+૨
+૩
+૪
+૫
+૬
+૭
+૮
+૯
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt
new file mode 100644 (file)
index 0000000..116eb60
--- /dev/null
@@ -0,0 +1,13 @@
+અ
+આ
+ઇ
+ઈ
+ઉ
+ઊ
+ઋ
+ઍ
+એ
+ઐ
+ઑ
+ઓ
+ઔ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt
new file mode 100644 (file)
index 0000000..66a7ca4
--- /dev/null
@@ -0,0 +1,2 @@
+।
+॥
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt
new file mode 100644 (file)
index 0000000..218e507
--- /dev/null
@@ -0,0 +1,7 @@
+ઁ
+ં
+ઃ
+઼
+ઽ
+્
+ૐ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/codepoint/MANIFEST
new file mode 100644 (file)
index 0000000..1490dfe
--- /dev/null
@@ -0,0 +1,7 @@
+IndicFontFeatureCodepoint-AdditionalVowels.txt
+IndicFontFeatureCodepoint-Consonants.txt
+IndicFontFeatureCodepoint-DependentVowels.txt
+IndicFontFeatureCodepoint-Digits.txt
+IndicFontFeatureCodepoint-IndependentVowels.txt
+IndicFontFeatureCodepoint-Reserved.txt
+IndicFontFeatureCodepoint-VariousSigns.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt
new file mode 100644 (file)
index 0000000..f7ff3af
--- /dev/null
@@ -0,0 +1,170 @@
+કૅ
+ખૅ
+ગૅ
+ઘૅ
+ઙૅ
+ચૅ
+છૅ
+જૅ
+ઝૅ
+ઞૅ
+ટૅ
+ઠૅ
+ડૅ
+ઢૅ
+ણૅ
+તૅ
+થૅ
+દૅ
+ધૅ
+નૅ
+પૅ
+ફૅ
+બૅ
+ભૅ
+મૅ
+યૅ
+રૅ
+લૅ
+ળૅ
+વૅ
+શૅ
+ષૅ
+સૅ
+હૅ
+કે
+ખે
+ગે
+ઘે
+ઙે
+ચે
+છે
+જે
+ઝે
+ઞે
+ટે
+ઠે
+ડે
+ઢે
+ણે
+તે
+થે
+દે
+ધે
+ને
+પે
+ફે
+બે
+ભે
+મે
+યે
+રે
+લે
+ળે
+વે
+શે
+ષે
+સે
+હે
+કૈ
+ખૈ
+ગૈ
+ઘૈ
+ઙૈ
+ચૈ
+છૈ
+જૈ
+ઝૈ
+ઞૈ
+ટૈ
+ઠૈ
+ડૈ
+ઢૈ
+ણૈ
+તૈ
+થૈ
+દૈ
+ધૈ
+નૈ
+પૈ
+ફૈ
+બૈ
+ભૈ
+મૈ
+યૈ
+રૈ
+લૈ
+ળૈ
+વૈ
+શૈ
+ષૈ
+સૈ
+હૈ
+કઁ
+ખઁ
+ગઁ
+ઘઁ
+ઙઁ
+ચઁ
+છઁ
+જઁ
+ઝઁ
+ઞઁ
+ટઁ
+ઠઁ
+ડઁ
+ઢઁ
+ણઁ
+તઁ
+થઁ
+દઁ
+ધઁ
+નઁ
+પઁ
+ફઁ
+બઁ
+ભઁ
+મઁ
+યઁ
+રઁ
+લઁ
+ળઁ
+વઁ
+શઁ
+ષઁ
+સઁ
+હઁ
+કં
+ખં
+ગં
+ઘં
+ઙં
+ચં
+છં
+જં
+ઝં
+ઞં
+ટં
+ઠં
+ડં
+ઢં
+ણં
+તં
+થં
+દં
+ધં
+નં
+પં
+ફં
+બં
+ભં
+મં
+યં
+રં
+લં
+ળં
+વં
+શં
+ષં
+સં
+હં
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt
new file mode 100644 (file)
index 0000000..fa658cf
--- /dev/null
@@ -0,0 +1,170 @@
+કુ
+ખુ
+ગુ
+ઘુ
+ઙુ
+ચુ
+છુ
+જુ
+ઝુ
+ઞુ
+ટુ
+ઠુ
+ડુ
+ઢુ
+ણુ
+તુ
+થુ
+દુ
+ધુ
+નુ
+પુ
+ફુ
+બુ
+ભુ
+મુ
+યુ
+રુ
+લુ
+ળુ
+વુ
+શુ
+ષુ
+સુ
+હુ
+કૂ
+ખૂ
+ગૂ
+ઘૂ
+ઙૂ
+ચૂ
+છૂ
+જૂ
+ઝૂ
+ઞૂ
+ટૂ
+ઠૂ
+ડૂ
+ઢૂ
+ણૂ
+તૂ
+થૂ
+દૂ
+ધૂ
+નૂ
+પૂ
+ફૂ
+બૂ
+ભૂ
+મૂ
+યૂ
+રૂ
+લૂ
+ળૂ
+વૂ
+શૂ
+ષૂ
+સૂ
+હૂ
+કૃ
+ખૃ
+ગૃ
+ઘૃ
+ઙૃ
+ચૃ
+છૃ
+જૃ
+ઝૃ
+ઞૃ
+ટૃ
+ઠૃ
+ડૃ
+ઢૃ
+ણૃ
+તૃ
+થૃ
+દૃ
+ધૃ
+નૃ
+પૃ
+ફૃ
+બૃ
+ભૃ
+મૃ
+યૃ
+રૃ
+લૃ
+ળૃ
+વૃ
+શૃ
+ષૃ
+સૃ
+હૃ
+કૄ
+ખૄ
+ગૄ
+ઘૄ
+ઙૄ
+ચૄ
+છૄ
+જૄ
+ઝૄ
+ઞૄ
+ટૄ
+ઠૄ
+ડૄ
+ઢૄ
+ણૄ
+તૄ
+થૄ
+દૄ
+ધૄ
+નૄ
+પૄ
+ફૄ
+બૄ
+ભૄ
+મૄ
+યૄ
+રૄ
+લૄ
+ળૄ
+વૄ
+શૄ
+ષૄ
+સૄ
+હૄ
+ક્
+ખ્
+ગ્
+ઘ્
+ઙ્
+ચ્
+છ્
+જ્
+ઝ્
+ઞ્
+ટ્
+ઠ્
+ડ્
+ઢ્
+ણ્
+ત્
+થ્
+દ્
+ધ્
+ન્
+પ્
+ફ્
+બ્
+ભ્
+મ્
+ય્
+ર્
+લ્
+ળ્
+વ્
+શ્
+ષ્
+સ્
+હ્
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/gpos/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/gpos/MANIFEST
new file mode 100644 (file)
index 0000000..d7ae70e
--- /dev/null
@@ -0,0 +1,2 @@
+IndicFontFeatureGPOS-AboveBase.txt
+IndicFontFeatureGPOS-BelowBase.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/gsub/IndicFontFeatureGSUB.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/gsub/IndicFontFeatureGSUB.txt
new file mode 100644 (file)
index 0000000..6211c9b
--- /dev/null
@@ -0,0 +1,1156 @@
+ક્ક
+ક્ખ
+ક્ગ
+ક્ઘ
+ક્ઙ
+ક્ચ
+ક્છ
+ક્જ
+ક્ઝ
+ક્ઞ
+ક્ટ
+ક્ઠ
+ક્ડ
+ક્ઢ
+ક્ણ
+ક્ત
+ક્થ
+ક્દ
+ક્ધ
+ક્ન
+ક્પ
+ક્ફ
+ક્બ
+ક્ભ
+ક્મ
+ક્ય
+ક્ર
+ક્લ
+ક્ળ
+ક્વ
+ક્શ
+ક્ષ
+ક્સ
+ક્હ
+ખ્ક
+ખ્ખ
+ખ્ગ
+ખ્ઘ
+ખ્ઙ
+ખ્ચ
+ખ્છ
+ખ્જ
+ખ્ઝ
+ખ્ઞ
+ખ્ટ
+ખ્ઠ
+ખ્ડ
+ખ્ઢ
+ખ્ણ
+ખ્ત
+ખ્થ
+ખ્દ
+ખ્ધ
+ખ્ન
+ખ્પ
+ખ્ફ
+ખ્બ
+ખ્ભ
+ખ્મ
+ખ્ય
+ખ્ર
+ખ્લ
+ખ્ળ
+ખ્વ
+ખ્શ
+ખ્ષ
+ખ્સ
+ખ્હ
+ગ્ક
+ગ્ખ
+ગ્ગ
+ગ્ઘ
+ગ્ઙ
+ગ્ચ
+ગ્છ
+ગ્જ
+ગ્ઝ
+ગ્ઞ
+ગ્ટ
+ગ્ઠ
+ગ્ડ
+ગ્ઢ
+ગ્ણ
+ગ્ત
+ગ્થ
+ગ્દ
+ગ્ધ
+ગ્ન
+ગ્પ
+ગ્ફ
+ગ્બ
+ગ્ભ
+ગ્મ
+ગ્ય
+ગ્ર
+ગ્લ
+ગ્ળ
+ગ્વ
+ગ્શ
+ગ્ષ
+ગ્સ
+ગ્હ
+ઘ્ક
+ઘ્ખ
+ઘ્ગ
+ઘ્ઘ
+ઘ્ઙ
+ઘ્ચ
+ઘ્છ
+ઘ્જ
+ઘ્ઝ
+ઘ્ઞ
+ઘ્ટ
+ઘ્ઠ
+ઘ્ડ
+ઘ્ઢ
+ઘ્ણ
+ઘ્ત
+ઘ્થ
+ઘ્દ
+ઘ્ધ
+ઘ્ન
+ઘ્પ
+ઘ્ફ
+ઘ્બ
+ઘ્ભ
+ઘ્મ
+ઘ્ય
+ઘ્ર
+ઘ્લ
+ઘ્ળ
+ઘ્વ
+ઘ્શ
+ઘ્ષ
+ઘ્સ
+ઘ્હ
+ઙ્ક
+ઙ્ખ
+ઙ્ગ
+ઙ્ઘ
+ઙ્ઙ
+ઙ્ચ
+ઙ્છ
+ઙ્જ
+ઙ્ઝ
+ઙ્ઞ
+ઙ્ટ
+ઙ્ઠ
+ઙ્ડ
+ઙ્ઢ
+ઙ્ણ
+ઙ્ત
+ઙ્થ
+ઙ્દ
+ઙ્ધ
+ઙ્ન
+ઙ્પ
+ઙ્ફ
+ઙ્બ
+ઙ્ભ
+ઙ્મ
+ઙ્ય
+ઙ્ર
+ઙ્લ
+ઙ્ળ
+ઙ્વ
+ઙ્શ
+ઙ્ષ
+ઙ્સ
+ઙ્હ
+ચ્ક
+ચ્ખ
+ચ્ગ
+ચ્ઘ
+ચ્ઙ
+ચ્ચ
+ચ્છ
+ચ્જ
+ચ્ઝ
+ચ્ઞ
+ચ્ટ
+ચ્ઠ
+ચ્ડ
+ચ્ઢ
+ચ્ણ
+ચ્ત
+ચ્થ
+ચ્દ
+ચ્ધ
+ચ્ન
+ચ્પ
+ચ્ફ
+ચ્બ
+ચ્ભ
+ચ્મ
+ચ્ય
+ચ્ર
+ચ્લ
+ચ્ળ
+ચ્વ
+ચ્શ
+ચ્ષ
+ચ્સ
+ચ્હ
+છ્ક
+છ્ખ
+છ્ગ
+છ્ઘ
+છ્ઙ
+છ્ચ
+છ્છ
+છ્જ
+છ્ઝ
+છ્ઞ
+છ્ટ
+છ્ઠ
+છ્ડ
+છ્ઢ
+છ્ણ
+છ્ત
+છ્થ
+છ્દ
+છ્ધ
+છ્ન
+છ્પ
+છ્ફ
+છ્બ
+છ્ભ
+છ્મ
+છ્ય
+છ્ર
+છ્લ
+છ્ળ
+છ્વ
+છ્શ
+છ્ષ
+છ્સ
+છ્હ
+જ્ક
+જ્ખ
+જ્ગ
+જ્ઘ
+જ્ઙ
+જ્ચ
+જ્છ
+જ્જ
+જ્ઝ
+જ્ઞ
+જ્ટ
+જ્ઠ
+જ્ડ
+જ્ઢ
+જ્ણ
+જ્ત
+જ્થ
+જ્દ
+જ્ધ
+જ્ન
+જ્પ
+જ્ફ
+જ્બ
+જ્ભ
+જ્મ
+જ્ય
+જ્ર
+જ્લ
+જ્ળ
+જ્વ
+જ્શ
+જ્ષ
+જ્સ
+જ્હ
+ઝ્ક
+ઝ્ખ
+ઝ્ગ
+ઝ્ઘ
+ઝ્ઙ
+ઝ્ચ
+ઝ્છ
+ઝ્જ
+ઝ્ઝ
+ઝ્ઞ
+ઝ્ટ
+ઝ્ઠ
+ઝ્ડ
+ઝ્ઢ
+ઝ્ણ
+ઝ્ત
+ઝ્થ
+ઝ્દ
+ઝ્ધ
+ઝ્ન
+ઝ્પ
+ઝ્ફ
+ઝ્બ
+ઝ્ભ
+ઝ્મ
+ઝ્ય
+ઝ્ર
+ઝ્લ
+ઝ્ળ
+ઝ્વ
+ઝ્શ
+ઝ્ષ
+ઝ્સ
+ઝ્હ
+ઞ્ક
+ઞ્ખ
+ઞ્ગ
+ઞ્ઘ
+ઞ્ઙ
+ઞ્ચ
+ઞ્છ
+ઞ્જ
+ઞ્ઝ
+ઞ્ઞ
+ઞ્ટ
+ઞ્ઠ
+ઞ્ડ
+ઞ્ઢ
+ઞ્ણ
+ઞ્ત
+ઞ્થ
+ઞ્દ
+ઞ્ધ
+ઞ્ન
+ઞ્પ
+ઞ્ફ
+ઞ્બ
+ઞ્ભ
+ઞ્મ
+ઞ્ય
+ઞ્ર
+ઞ્લ
+ઞ્ળ
+ઞ્વ
+ઞ્શ
+ઞ્ષ
+ઞ્સ
+ઞ્હ
+ટ્ક
+ટ્ખ
+ટ્ગ
+ટ્ઘ
+ટ્ઙ
+ટ્ચ
+ટ્છ
+ટ્જ
+ટ્ઝ
+ટ્ઞ
+ટ્ટ
+ટ્ઠ
+ટ્ડ
+ટ્ઢ
+ટ્ણ
+ટ્ત
+ટ્થ
+ટ્દ
+ટ્ધ
+ટ્ન
+ટ્પ
+ટ્ફ
+ટ્બ
+ટ્ભ
+ટ્મ
+ટ્ય
+ટ્ર
+ટ્લ
+ટ્ળ
+ટ્વ
+ટ્શ
+ટ્ષ
+ટ્સ
+ટ્હ
+ઠ્ક
+ઠ્ખ
+ઠ્ગ
+ઠ્ઘ
+ઠ્ઙ
+ઠ્ચ
+ઠ્છ
+ઠ્જ
+ઠ્ઝ
+ઠ્ઞ
+ઠ્ટ
+ઠ્ઠ
+ઠ્ડ
+ઠ્ઢ
+ઠ્ણ
+ઠ્ત
+ઠ્થ
+ઠ્દ
+ઠ્ધ
+ઠ્ન
+ઠ્પ
+ઠ્ફ
+ઠ્બ
+ઠ્ભ
+ઠ્મ
+ઠ્ય
+ઠ્ર
+ઠ્લ
+ઠ્ળ
+ઠ્વ
+ઠ્શ
+ઠ્ષ
+ઠ્સ
+ઠ્હ
+ડ્ક
+ડ્ખ
+ડ્ગ
+ડ્ઘ
+ડ્ઙ
+ડ્ચ
+ડ્છ
+ડ્જ
+ડ્ઝ
+ડ્ઞ
+ડ્ટ
+ડ્ઠ
+ડ્ડ
+ડ્ઢ
+ડ્ણ
+ડ્ત
+ડ્થ
+ડ્દ
+ડ્ધ
+ડ્ન
+ડ્પ
+ડ્ફ
+ડ્બ
+ડ્ભ
+ડ્મ
+ડ્ય
+ડ્ર
+ડ્લ
+ડ્ળ
+ડ્વ
+ડ્શ
+ડ્ષ
+ડ્સ
+ડ્હ
+ઢ્ક
+ઢ્ખ
+ઢ્ગ
+ઢ્ઘ
+ઢ્ઙ
+ઢ્ચ
+ઢ્છ
+ઢ્જ
+ઢ્ઝ
+ઢ્ઞ
+ઢ્ટ
+ઢ્ઠ
+ઢ્ડ
+ઢ્ઢ
+ઢ્ણ
+ઢ્ત
+ઢ્થ
+ઢ્દ
+ઢ્ધ
+ઢ્ન
+ઢ્પ
+ઢ્ફ
+ઢ્બ
+ઢ્ભ
+ઢ્મ
+ઢ્ય
+ઢ્ર
+ઢ્લ
+ઢ્ળ
+ઢ્વ
+ઢ્શ
+ઢ્ષ
+ઢ્સ
+ઢ્હ
+ણ્ક
+ણ્ખ
+ણ્ગ
+ણ્ઘ
+ણ્ઙ
+ણ્ચ
+ણ્છ
+ણ્જ
+ણ્ઝ
+ણ્ઞ
+ણ્ટ
+ણ્ઠ
+ણ્ડ
+ણ્ઢ
+ણ્ણ
+ણ્ત
+ણ્થ
+ણ્દ
+ણ્ધ
+ણ્ન
+ણ્પ
+ણ્ફ
+ણ્બ
+ણ્ભ
+ણ્મ
+ણ્ય
+ણ્ર
+ણ્લ
+ણ્ળ
+ણ્વ
+ણ્શ
+ણ્ષ
+ણ્સ
+ણ્હ
+ત્ક
+ત્ખ
+ત્ગ
+ત્ઘ
+ત્ઙ
+ત્ચ
+ત્છ
+ત્જ
+ત્ઝ
+ત્ઞ
+ત્ટ
+ત્ઠ
+ત્ડ
+ત્ઢ
+ત્ણ
+ત્ત
+ત્થ
+ત્દ
+ત્ધ
+ત્ન
+ત્પ
+ત્ફ
+ત્બ
+ત્ભ
+ત્મ
+ત્ય
+ત્ર
+ત્લ
+ત્ળ
+ત્વ
+ત્શ
+ત્ષ
+ત્સ
+ત્હ
+થ્ક
+થ્ખ
+થ્ગ
+થ્ઘ
+થ્ઙ
+થ્ચ
+થ્છ
+થ્જ
+થ્ઝ
+થ્ઞ
+થ્ટ
+થ્ઠ
+થ્ડ
+થ્ઢ
+થ્ણ
+થ્ત
+થ્થ
+થ્દ
+થ્ધ
+થ્ન
+થ્પ
+થ્ફ
+થ્બ
+થ્ભ
+થ્મ
+થ્ય
+થ્ર
+થ્લ
+થ્ળ
+થ્વ
+થ્શ
+થ્ષ
+થ્સ
+થ્હ
+દ્ક
+દ્ખ
+દ્ગ
+દ્ઘ
+દ્ઙ
+દ્ચ
+દ્છ
+દ્જ
+દ્ઝ
+દ્ઞ
+દ્ટ
+દ્ઠ
+દ્ડ
+દ્ઢ
+દ્ણ
+દ્ત
+દ્થ
+દ્દ
+દ્ધ
+દ્ન
+દ્પ
+દ્ફ
+દ્બ
+દ્ભ
+દ્મ
+દ્ય
+દ્ર
+દ્લ
+દ્ળ
+દ્વ
+દ્શ
+દ્ષ
+દ્સ
+દ્હ
+ધ્ક
+ધ્ખ
+ધ્ગ
+ધ્ઘ
+ધ્ઙ
+ધ્ચ
+ધ્છ
+ધ્જ
+ધ્ઝ
+ધ્ઞ
+ધ્ટ
+ધ્ઠ
+ધ્ડ
+ધ્ઢ
+ધ્ણ
+ધ્ત
+ધ્થ
+ધ્દ
+ધ્ધ
+ધ્ન
+ધ્પ
+ધ્ફ
+ધ્બ
+ધ્ભ
+ધ્મ
+ધ્ય
+ધ્ર
+ધ્લ
+ધ્ળ
+ધ્વ
+ધ્શ
+ધ્ષ
+ધ્સ
+ધ્હ
+ન્ક
+ન્ખ
+ન્ગ
+ન્ઘ
+ન્ઙ
+ન્ચ
+ન્છ
+ન્જ
+ન્ઝ
+ન્ઞ
+ન્ટ
+ન્ઠ
+ન્ડ
+ન્ઢ
+ન્ણ
+ન્ત
+ન્થ
+ન્દ
+ન્ધ
+ન્ન
+ન્પ
+ન્ફ
+ન્બ
+ન્ભ
+ન્મ
+ન્ય
+ન્ર
+ન્લ
+ન્ળ
+ન્વ
+ન્શ
+ન્ષ
+ન્સ
+ન્હ
+પ્ક
+પ્ખ
+પ્ગ
+પ્ઘ
+પ્ઙ
+પ્ચ
+પ્છ
+પ્જ
+પ્ઝ
+પ્ઞ
+પ્ટ
+પ્ઠ
+પ્ડ
+પ્ઢ
+પ્ણ
+પ્ત
+પ્થ
+પ્દ
+પ્ધ
+પ્ન
+પ્પ
+પ્ફ
+પ્બ
+પ્ભ
+પ્મ
+પ્ય
+પ્ર
+પ્લ
+પ્ળ
+પ્વ
+પ્શ
+પ્ષ
+પ્સ
+પ્હ
+ફ્ક
+ફ્ખ
+ફ્ગ
+ફ્ઘ
+ફ્ઙ
+ફ્ચ
+ફ્છ
+ફ્જ
+ફ્ઝ
+ફ્ઞ
+ફ્ટ
+ફ્ઠ
+ફ્ડ
+ફ્ઢ
+ફ્ણ
+ફ્ત
+ફ્થ
+ફ્દ
+ફ્ધ
+ફ્ન
+ફ્પ
+ફ્ફ
+ફ્બ
+ફ્ભ
+ફ્મ
+ફ્ય
+ફ્ર
+ફ્લ
+ફ્ળ
+ફ્વ
+ફ્શ
+ફ્ષ
+ફ્સ
+ફ્હ
+બ્ક
+બ્ખ
+બ્ગ
+બ્ઘ
+બ્ઙ
+બ્ચ
+બ્છ
+બ્જ
+બ્ઝ
+બ્ઞ
+બ્ટ
+બ્ઠ
+બ્ડ
+બ્ઢ
+બ્ણ
+બ્ત
+બ્થ
+બ્દ
+બ્ધ
+બ્ન
+બ્પ
+બ્ફ
+બ્બ
+બ્ભ
+બ્મ
+બ્ય
+બ્ર
+બ્લ
+બ્ળ
+બ્વ
+બ્શ
+બ્ષ
+બ્સ
+બ્હ
+ભ્ક
+ભ્ખ
+ભ્ગ
+ભ્ઘ
+ભ્ઙ
+ભ્ચ
+ભ્છ
+ભ્જ
+ભ્ઝ
+ભ્ઞ
+ભ્ટ
+ભ્ઠ
+ભ્ડ
+ભ્ઢ
+ભ્ણ
+ભ્ત
+ભ્થ
+ભ્દ
+ભ્ધ
+ભ્ન
+ભ્પ
+ભ્ફ
+ભ્બ
+ભ્ભ
+ભ્મ
+ભ્ય
+ભ્ર
+ભ્લ
+ભ્ળ
+ભ્વ
+ભ્શ
+ભ્ષ
+ભ્સ
+ભ્હ
+મ્ક
+મ્ખ
+મ્ગ
+મ્ઘ
+મ્ઙ
+મ્ચ
+મ્છ
+મ્જ
+મ્ઝ
+મ્ઞ
+મ્ટ
+મ્ઠ
+મ્ડ
+મ્ઢ
+મ્ણ
+મ્ત
+મ્થ
+મ્દ
+મ્ધ
+મ્ન
+મ્પ
+મ્ફ
+મ્બ
+મ્ભ
+મ્મ
+મ્ય
+મ્ર
+મ્લ
+મ્ળ
+મ્વ
+મ્શ
+મ્ષ
+મ્સ
+મ્હ
+ય્ક
+ય્ખ
+ય્ગ
+ય્ઘ
+ય્ઙ
+ય્ચ
+ય્છ
+ય્જ
+ય્ઝ
+ય્ઞ
+ય્ટ
+ય્ઠ
+ય્ડ
+ય્ઢ
+ય્ણ
+ય્ત
+ય્થ
+ય્દ
+ય્ધ
+ય્ન
+ય્પ
+ય્ફ
+ય્બ
+ય્ભ
+ય્મ
+ય્ય
+ય્ર
+ય્લ
+ય્ળ
+ય્વ
+ય્શ
+ય્ષ
+ય્સ
+ય્હ
+ર્ક
+ર્ખ
+ર્ગ
+ર્ઘ
+ર્ઙ
+ર્ચ
+ર્છ
+ર્જ
+ર્ઝ
+ર્ઞ
+ર્ટ
+ર્ઠ
+ર્ડ
+ર્ઢ
+ર્ણ
+ર્ત
+ર્થ
+ર્દ
+ર્ધ
+ર્ન
+ર્પ
+ર્ફ
+ર્બ
+ર્ભ
+ર્મ
+ર્ય
+ર્ર
+ર્લ
+ર્ળ
+ર્વ
+ર્શ
+ર્ષ
+ર્સ
+ર્હ
+લ્ક
+લ્ખ
+લ્ગ
+લ્ઘ
+લ્ઙ
+લ્ચ
+લ્છ
+લ્જ
+લ્ઝ
+લ્ઞ
+લ્ટ
+લ્ઠ
+લ્ડ
+લ્ઢ
+લ્ણ
+લ્ત
+લ્થ
+લ્દ
+લ્ધ
+લ્ન
+લ્પ
+લ્ફ
+લ્બ
+લ્ભ
+લ્મ
+લ્ય
+લ્ર
+લ્લ
+લ્ળ
+લ્વ
+લ્શ
+લ્ષ
+લ્સ
+લ્હ
+ળ્ક
+ળ્ખ
+ળ્ગ
+ળ્ઘ
+ળ્ઙ
+ળ્ચ
+ળ્છ
+ળ્જ
+ળ્ઝ
+ળ્ઞ
+ળ્ટ
+ળ્ઠ
+ળ્ડ
+ળ્ઢ
+ળ્ણ
+ળ્ત
+ળ્થ
+ળ્દ
+ળ્ધ
+ળ્ન
+ળ્પ
+ળ્ફ
+ળ્બ
+ળ્ભ
+ળ્મ
+ળ્ય
+ળ્ર
+ળ્લ
+ળ્ળ
+ળ્વ
+ળ્શ
+ળ્ષ
+ળ્સ
+ળ્હ
+વ્ક
+વ્ખ
+વ્ગ
+વ્ઘ
+વ્ઙ
+વ્ચ
+વ્છ
+વ્જ
+વ્ઝ
+વ્ઞ
+વ્ટ
+વ્ઠ
+વ્ડ
+વ્ઢ
+વ્ણ
+વ્ત
+વ્થ
+વ્દ
+વ્ધ
+વ્ન
+વ્પ
+વ્ફ
+વ્બ
+વ્ભ
+વ્મ
+વ્ય
+વ્ર
+વ્લ
+વ્ળ
+વ્વ
+વ્શ
+વ્ષ
+વ્સ
+વ્હ
+શ્ક
+શ્ખ
+શ્ગ
+શ્ઘ
+શ્ઙ
+શ્ચ
+શ્છ
+શ્જ
+શ્ઝ
+શ્ઞ
+શ્ટ
+શ્ઠ
+શ્ડ
+શ્ઢ
+શ્ણ
+શ્ત
+શ્થ
+શ્દ
+શ્ધ
+શ્ન
+શ્પ
+શ્ફ
+શ્બ
+શ્ભ
+શ્મ
+શ્ય
+શ્ર
+શ્લ
+શ્ળ
+શ્વ
+શ્શ
+શ્ષ
+શ્સ
+શ્હ
+ષ્ક
+ષ્ખ
+ષ્ગ
+ષ્ઘ
+ષ્ઙ
+ષ્ચ
+ષ્છ
+ષ્જ
+ષ્ઝ
+ષ્ઞ
+ષ્ટ
+ષ્ઠ
+ષ્ડ
+ષ્ઢ
+ષ્ણ
+ષ્ત
+ષ્થ
+ષ્દ
+ષ્ધ
+ષ્ન
+ષ્પ
+ષ્ફ
+ષ્બ
+ષ્ભ
+ષ્મ
+ષ્ય
+ષ્ર
+ષ્લ
+ષ્ળ
+ષ્વ
+ષ્શ
+ષ્ષ
+ષ્સ
+ષ્હ
+સ્ક
+સ્ખ
+સ્ગ
+સ્ઘ
+સ્ઙ
+સ્ચ
+સ્છ
+સ્જ
+સ્ઝ
+સ્ઞ
+સ્ટ
+સ્ઠ
+સ્ડ
+સ્ઢ
+સ્ણ
+સ્ત
+સ્થ
+સ્દ
+સ્ધ
+સ્ન
+સ્પ
+સ્ફ
+સ્બ
+સ્ભ
+સ્મ
+સ્ય
+સ્ર
+સ્લ
+સ્ળ
+સ્વ
+સ્શ
+સ્ષ
+સ્સ
+સ્હ
+હ્ક
+હ્ખ
+હ્ગ
+હ્ઘ
+હ્ઙ
+હ્ચ
+હ્છ
+હ્જ
+હ્ઝ
+હ્ઞ
+હ્ટ
+હ્ઠ
+હ્ડ
+હ્ઢ
+હ્ણ
+હ્ત
+હ્થ
+હ્દ
+હ્ધ
+હ્ન
+હ્પ
+હ્ફ
+હ્બ
+હ્ભ
+હ્મ
+હ્ય
+હ્ર
+હ્લ
+હ્ળ
+હ્વ
+હ્શ
+હ્ષ
+હ્સ
+હ્હ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/gsub/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-gujarati/utrrs/gsub/MANIFEST
new file mode 100644 (file)
index 0000000..4b47068
--- /dev/null
@@ -0,0 +1 @@
+IndicFontFeatureGSUB.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/MANIFEST
new file mode 100644 (file)
index 0000000..ecb8d96
--- /dev/null
@@ -0,0 +1,2 @@
+misc
+utrrs
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/misc/MANIFEST
new file mode 100644 (file)
index 0000000..29cfb2f
--- /dev/null
@@ -0,0 +1 @@
+misc.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/misc/misc.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/misc/misc.txt
new file mode 100644 (file)
index 0000000..27a39f6
--- /dev/null
@@ -0,0 +1,2 @@
+ਕ੍ਹ
+ਤ੍ਯੋ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/LICENSE b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/LICENSE
new file mode 100644 (file)
index 0000000..2cf8228
--- /dev/null
@@ -0,0 +1,19 @@
+Copyright (c) 2010 Red Hat Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/MANIFEST
new file mode 100644 (file)
index 0000000..0658824
--- /dev/null
@@ -0,0 +1,3 @@
+codepoint
+gpos
+gsub
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/README b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/README
new file mode 100644 (file)
index 0000000..8bad337
--- /dev/null
@@ -0,0 +1,13 @@
+Introduction:
+A system to compare a reference image of a text character, word or phrase with another image of the character, word or phrase that was rendered by a text rendering engine. Differences between the reference image and the rendered image may be recorded for subsequent analysis. Performance of a text rendering engine producing text according to typographical rules applicable to a natural language can be evaluated by one with no knowledge or ability to read the natural language
+
+
+COPYRIGHT: Red Hat Inc. 2010
+
+license: this project is under MIT license
+
+
+AUTHORS:
+Lawrence Lim
+Satyabrata Maitra
+Amanpreet Singh Brar
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/SOURCES b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/SOURCES
new file mode 100644 (file)
index 0000000..0ed1a89
--- /dev/null
@@ -0,0 +1,2 @@
+https://fedorahosted.org/utrrs/
+Fetched in late 2011
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt
new file mode 100644 (file)
index 0000000..ee8b3be
--- /dev/null
@@ -0,0 +1,38 @@
+ਕ
+ਖ
+ਗ
+ਘ
+ਙ
+ਚ
+ਛ
+ਜ
+ਝ
+ਞ
+ਟ
+ਠ
+ਡ
+ਢ
+ਣ
+ਤ
+ਥ
+ਦ
+ਧ
+ਨ
+ਪ
+ਫ
+ਬ
+ਭ
+ਮ
+ਯ
+ਰ
+ਲ
+ਲ਼
+ਵ
+ਸ਼
+ਸ
+ਹ
+ਖ਼
+ਗ਼
+ਜ਼
+ੜ
+ਫ਼
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt
new file mode 100644 (file)
index 0000000..a934caa
--- /dev/null
@@ -0,0 +1,9 @@
+ਾ
+ਿ
+ੀ
+ੁ
+ੂ
+ੇ
+ੈ
+ੋ
+ੌ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt
new file mode 100644 (file)
index 0000000..d08b7a8
--- /dev/null
@@ -0,0 +1,10 @@
+੦
+੧
+੨
+੩
+੪
+੫
+੬
+੭
+੮
+੯
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-GurmukhiSpecific.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-GurmukhiSpecific.txt
new file mode 100644 (file)
index 0000000..8565c88
--- /dev/null
@@ -0,0 +1,6 @@
+ੰ
+ੱ
+ੲ
+ੳ
+ੴ
+ੵ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt
new file mode 100644 (file)
index 0000000..05827ca
--- /dev/null
@@ -0,0 +1,10 @@
+ਅ
+ਆ
+ਇ
+ਈ
+ਉ
+ਊ
+ਏ
+ਐ
+ਓ
+ਔ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt
new file mode 100644 (file)
index 0000000..66a7ca4
--- /dev/null
@@ -0,0 +1,2 @@
+।
+॥
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt
new file mode 100644 (file)
index 0000000..adb725e
--- /dev/null
@@ -0,0 +1,6 @@
+ਁ
+ਂ
+ਃ
+਼
+੍
+ੑ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/codepoint/MANIFEST
new file mode 100644 (file)
index 0000000..c213616
--- /dev/null
@@ -0,0 +1,7 @@
+IndicFontFeatureCodepoint-Consonants.txt
+IndicFontFeatureCodepoint-DependentVowels.txt
+IndicFontFeatureCodepoint-Digits.txt
+IndicFontFeatureCodepoint-GurmukhiSpecific.txt
+IndicFontFeatureCodepoint-IndependentVowels.txt
+IndicFontFeatureCodepoint-Reserved.txt
+IndicFontFeatureCodepoint-VariousSigns.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt
new file mode 100644 (file)
index 0000000..7fdf6e4
--- /dev/null
@@ -0,0 +1,22 @@
+ਉਂ
+ਊਂ
+ਏਂ
+ਐਂ
+ਓਂ
+ਔਂ
+ਠਂ
+ਠੇ
+ਠੈ
+ਠੋ
+ਠੌ
+ਠੰ
+ਨਂ
+ਨੇ
+ਨੈ
+ਨੋ
+ਨੌ
+ਨੰ
+ਠੱ
+ਨੱ
+ਲੱ
+ਲ਼ੱ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt
new file mode 100644 (file)
index 0000000..63d54a5
--- /dev/null
@@ -0,0 +1,2 @@
+ੳ
+ੲ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/gpos/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/gpos/MANIFEST
new file mode 100644 (file)
index 0000000..d7ae70e
--- /dev/null
@@ -0,0 +1,2 @@
+IndicFontFeatureGPOS-AboveBase.txt
+IndicFontFeatureGPOS-BelowBase.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/gsub/IndicFontFeatureGSUB.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/gsub/IndicFontFeatureGSUB.txt
new file mode 100644 (file)
index 0000000..eb2e8ee
--- /dev/null
@@ -0,0 +1,152 @@
+ਕ੍ਯ
+ਖ੍ਯ
+ਗ੍ਯ
+ਘ੍ਯ
+ਙ੍ਯ
+ਚ੍ਯ
+ਛ੍ਯ
+ਜ੍ਯ
+ਝ੍ਯ
+ਞ੍ਯ
+ਟ੍ਯ
+ਠ੍ਯ
+ਡ੍ਯ
+ਢ੍ਯ
+ਣ੍ਯ
+ਤ੍ਯ
+ਥ੍ਯ
+ਦ੍ਯ
+ਧ੍ਯ
+ਨ੍ਯ
+ਪ੍ਯ
+ਫ੍ਯ
+ਬ੍ਯ
+ਭ੍ਯ
+ਮ੍ਯ
+ਯ੍ਯ
+ਰ੍ਯ
+ਲ੍ਯ
+ਲ਼੍ਯ
+ਵ੍ਯ
+ਸ਼੍ਯ
+ਸ੍ਯ
+ਹ੍ਯ
+ਖ਼੍ਯ
+ਗ਼੍ਯ
+ਜ਼੍ਯ
+ੜ੍ਯ
+ਫ਼੍ਯ
+ਕ੍ਰ
+ਖ੍ਰ
+ਗ੍ਰ
+ਘ੍ਰ
+ਙ੍ਰ
+ਚ੍ਰ
+ਛ੍ਰ
+ਜ੍ਰ
+ਝ੍ਰ
+ਞ੍ਰ
+ਟ੍ਰ
+ਠ੍ਰ
+ਡ੍ਰ
+ਢ੍ਰ
+ਣ੍ਰ
+ਤ੍ਰ
+ਥ੍ਰ
+ਦ੍ਰ
+ਧ੍ਰ
+ਨ੍ਰ
+ਪ੍ਰ
+ਫ੍ਰ
+ਬ੍ਰ
+ਭ੍ਰ
+ਮ੍ਰ
+ਯ੍ਰ
+ਰ੍ਰ
+ਲ੍ਰ
+ਲ਼੍ਰ
+ਵ੍ਰ
+ਸ਼੍ਰ
+ਸ੍ਰ
+ਹ੍ਰ
+ਖ਼੍ਰ
+ਗ਼੍ਰ
+ਜ਼੍ਰ
+ੜ੍ਰ
+ਫ਼੍ਰ
+ਕ੍ਵ
+ਖ੍ਵ
+ਗ੍ਵ
+ਘ੍ਵ
+ਙ੍ਵ
+ਚ੍ਵ
+ਛ੍ਵ
+ਜ੍ਵ
+ਝ੍ਵ
+ਞ੍ਵ
+ਟ੍ਵ
+ਠ੍ਵ
+ਡ੍ਵ
+ਢ੍ਵ
+ਣ੍ਵ
+ਤ੍ਵ
+ਥ੍ਵ
+ਦ੍ਵ
+ਧ੍ਵ
+ਨ੍ਵ
+ਪ੍ਵ
+ਫ੍ਵ
+ਬ੍ਵ
+ਭ੍ਵ
+ਮ੍ਵ
+ਯ੍ਵ
+ਰ੍ਵ
+ਲ੍ਵ
+ਲ਼੍ਵ
+ਵ੍ਵ
+ਸ਼੍ਵ
+ਸ੍ਵ
+ਹ੍ਵ
+ਖ਼੍ਵ
+ਗ਼੍ਵ
+ਜ਼੍ਵ
+ੜ੍ਵ
+ਫ਼੍ਵ
+ਕ੍ਹ
+ਖ੍ਹ
+ਗ੍ਹ
+ਘ੍ਹ
+ਙ੍ਹ
+ਚ੍ਹ
+ਛ੍ਹ
+ਜ੍ਹ
+ਝ੍ਹ
+ਞ੍ਹ
+ਟ੍ਹ
+ਠ੍ਹ
+ਡ੍ਹ
+ਢ੍ਹ
+ਣ੍ਹ
+ਤ੍ਹ
+ਥ੍ਹ
+ਦ੍ਹ
+ਧ੍ਹ
+ਨ੍ਹ
+ਪ੍ਹ
+ਫ੍ਹ
+ਬ੍ਹ
+ਭ੍ਹ
+ਮ੍ਹ
+ਯ੍ਹ
+ਰ੍ਹ
+ਲ੍ਹ
+ਲ਼੍ਹ
+ਵ੍ਹ
+ਸ਼੍ਹ
+ਸ੍ਹ
+ਹ੍ਹ
+ਖ਼੍ਹ
+ਗ਼੍ਹ
+ਜ਼੍ਹ
+ੜ੍ਹ
+ਫ਼੍ਹ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/gsub/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-gurmukhi/utrrs/gsub/MANIFEST
new file mode 100644 (file)
index 0000000..4b47068
--- /dev/null
@@ -0,0 +1 @@
+IndicFontFeatureGSUB.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/MANIFEST
new file mode 100644 (file)
index 0000000..ecb8d96
--- /dev/null
@@ -0,0 +1,2 @@
+misc
+utrrs
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/MANIFEST
new file mode 100644 (file)
index 0000000..f53f999
--- /dev/null
@@ -0,0 +1,2 @@
+misc.txt
+right-matras.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/misc.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/misc.txt
new file mode 100644 (file)
index 0000000..a8a6325
--- /dev/null
@@ -0,0 +1,20 @@
+ಕ್ರ
+ನ್ಡ
+ನ್ನ
+ಯೂ
+ರ್ಕ
+ರ್ಮ
+ರ್‍ಕ
+ವೋ
+ಷೆ
+ಷ್
+ೠ
+೦೧೨
+ಕೀ
+ಕೊ
+ಕೇ
+ಕೈ
+ಕೋ
+ಕ್ಷ
+ಕ್ಷಿ
+ಚ್ಚ್
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/right-matras.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/misc/right-matras.txt
new file mode 100644 (file)
index 0000000..3130f35
--- /dev/null
@@ -0,0 +1,7 @@
+ಸ್ಕು
+ಸ್ಕೂ
+ಸ್ಕೃ
+ಸ್ಕೄ
+ಸ್ಕಾ
+ಸ್ಕೕ
+ಸ್ಕೕ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/LICENSE b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/LICENSE
new file mode 100644 (file)
index 0000000..2cf8228
--- /dev/null
@@ -0,0 +1,19 @@
+Copyright (c) 2010 Red Hat Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/MANIFEST
new file mode 100644 (file)
index 0000000..0658824
--- /dev/null
@@ -0,0 +1,3 @@
+codepoint
+gpos
+gsub
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/README b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/README
new file mode 100644 (file)
index 0000000..8bad337
--- /dev/null
@@ -0,0 +1,13 @@
+Introduction:
+A system to compare a reference image of a text character, word or phrase with another image of the character, word or phrase that was rendered by a text rendering engine. Differences between the reference image and the rendered image may be recorded for subsequent analysis. Performance of a text rendering engine producing text according to typographical rules applicable to a natural language can be evaluated by one with no knowledge or ability to read the natural language
+
+
+COPYRIGHT: Red Hat Inc. 2010
+
+license: this project is under MIT license
+
+
+AUTHORS:
+Lawrence Lim
+Satyabrata Maitra
+Amanpreet Singh Brar
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/SOURCES b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/SOURCES
new file mode 100644 (file)
index 0000000..0ed1a89
--- /dev/null
@@ -0,0 +1,2 @@
+https://fedorahosted.org/utrrs/
+Fetched in late 2011
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalConsonants.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalConsonants.txt
new file mode 100644 (file)
index 0000000..fff748a
--- /dev/null
@@ -0,0 +1 @@
+ೞ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt
new file mode 100644 (file)
index 0000000..f641547
--- /dev/null
@@ -0,0 +1,4 @@
+ೠ
+ೡ
+ೢ
+ೣ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt
new file mode 100644 (file)
index 0000000..650cbf7
--- /dev/null
@@ -0,0 +1,40 @@
+ಕ
+ಖ
+ಗ
+ಘ
+ಙ
+ಚ
+ಛ
+ಜ
+ಝ
+ಞ
+ಟ
+ಠ
+ಡ
+ಢ
+ಣ
+ತ
+ಥ
+ದ
+ಧ
+ನ
+ಪ
+ಫ
+ಬ
+ಭ
+ಮ
+ಯ
+ರ
+ಱ
+ಲ
+ಳ
+ವ
+ಶ
+ಷ
+ಸ
+ಹ
+ಂ
+ಃ
+಼
+ಽ
+್
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt
new file mode 100644 (file)
index 0000000..476f39f
--- /dev/null
@@ -0,0 +1,13 @@
+ಾ
+ಿ
+ೀ
+ು
+ೂ
+ೃ
+ೄ
+ೆ
+ೇ
+ೈ
+ೊ
+ೋ
+ೌ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt
new file mode 100644 (file)
index 0000000..57ac088
--- /dev/null
@@ -0,0 +1,10 @@
+೦
+೧
+೨
+೩
+೪
+೫
+೬
+೭
+೮
+೯
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt
new file mode 100644 (file)
index 0000000..38f1719
--- /dev/null
@@ -0,0 +1,14 @@
+ಅ
+ಆ
+ಇ
+ಈ
+ಉ
+ಊ
+ಋ
+ಌ
+ಎ
+ಏ
+ಐ
+ಒ
+ಓ
+ಔ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt
new file mode 100644 (file)
index 0000000..66a7ca4
--- /dev/null
@@ -0,0 +1,2 @@
+।
+॥
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt
new file mode 100644 (file)
index 0000000..6bbf23e
--- /dev/null
@@ -0,0 +1,9 @@
+ಂ
+ಃ
+಼
+ಽ
+್
+ೕ
+ೖ
+ೱ
+ೲ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/codepoint/MANIFEST
new file mode 100644 (file)
index 0000000..8fac7bc
--- /dev/null
@@ -0,0 +1,8 @@
+IndicFontFeatureCodepoint-AdditionalConsonants.txt
+IndicFontFeatureCodepoint-AdditionalVowels.txt
+IndicFontFeatureCodepoint-Consonants.txt
+IndicFontFeatureCodepoint-DependentVowels.txt
+IndicFontFeatureCodepoint-Digits.txt
+IndicFontFeatureCodepoint-IndependentVowels.txt
+IndicFontFeatureCodepoint-Reserved.txt
+IndicFontFeatureCodepoint-VariousSigns.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt
new file mode 100644 (file)
index 0000000..4cc0f56
--- /dev/null
@@ -0,0 +1,188 @@
+ಕಾ
+ಖಾ
+ಗಾ
+ಠಾ
+ಡಾ
+ಛಾ
+ಕಿ
+ಖಿ
+ಗಿ
+ಘಿ
+ಙಿ
+ಚಿ
+ಛಿ
+ಜಿ
+ಝಿ
+ಞಿ
+ಟಿ
+ಠಿ
+ಡಿ
+ಢಿ
+ಣಿ
+ತಿ
+ಥಿ
+ದಿ
+ಧಿ
+ನಿ
+ಪಿ
+ಫಿ
+ಬಿ
+ಭಿ
+ಮಿ
+ಯಿ
+ರಿ
+ಱಿ
+ಲಿ
+ಳಿ
+ವಿ
+ಶಿ
+ಷಿ
+ಸಿ
+ಹಿ
+ಕು
+ಗು
+ಜು
+ಟು
+ತು
+ಖು
+ಕೂ
+ಖೂ
+ಗೂ
+ಟೂ
+ಚೂ
+ಛೂ
+ಕೄ
+ಗೄ
+ಜೄ
+ಟೄ
+ತೄ
+ಖೄ
+ಕೇ
+ಗೇ
+ಜೇ
+ಟೇ
+ತೇ
+ಖೇ
+ಕೈ
+ಗೈ
+ಜೈ
+ಟೈ
+ತೈ
+ಖೈ
+ಕೊ
+ಗೊ
+ಜೊ
+ಟೊ
+ತೊ
+ಖೊ
+ಕೋ
+ಗೋ
+ಜೋ
+ಟೋ
+ತೋ
+ಖೋ
+ಕೆ
+ಖೆ
+ಗೆ
+ಘೆ
+ಙೆ
+ಚೆ
+ಛೆ
+ಜೆ
+ಝೆ
+ಞೆ
+ಟೆ
+ಠೆ
+ಡೆ
+ಢೆ
+ಣೆ
+ತೆ
+ಥೆ
+ದೆ
+ಧೆ
+ನೆ
+ಪೆ
+ಫೆ
+ಬೆ
+ಭೆ
+ಮೆ
+ಯೆ
+ರೆ
+ಱೆ
+ಲೆ
+ಳೆ
+ವೆ
+ಶೆ
+ಷೆ
+ಸೆ
+ಹೆ
+ಕೌ
+ಖೌ
+ಗೌ
+ಘೌ
+ಙೌ
+ಚೌ
+ಛೌ
+ಜೌ
+ಝೌ
+ಞೌ
+ಟೌ
+ಠೌ
+ಡೌ
+ಢೌ
+ಣೌ
+ತೌ
+ಥೌ
+ದೌ
+ಧೌ
+ನೌ
+ಪೌ
+ಫೌ
+ಬೌ
+ಭೌ
+ಮೌ
+ಯೌ
+ರೌ
+ಱೌ
+ಲೌ
+ಳೌ
+ವೌ
+ಶೌ
+ಷೌ
+ಸೌ
+ಹೌ
+ಕ್
+ಖ್
+ಗ್
+ಘ್
+ಙ್
+ಚ್
+ಛ್
+ಜ್
+ಝ್
+ಞ್
+ಟ್
+ಠ್
+ಡ್
+ಢ್
+ಣ್
+ತ್
+ಥ್
+ದ್
+ಧ್
+ನ್
+ಪ್
+ಫ್
+ಬ್
+ಭ್
+ಮ್
+ಯ್
+ರ್
+ಱ್
+ಲ್
+ಳ್
+ವ್
+ಶ್
+ಷ್
+ಸ್
+ಹ್
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/gpos/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/gpos/MANIFEST
new file mode 100644 (file)
index 0000000..49d0284
--- /dev/null
@@ -0,0 +1 @@
+IndicFontFeatureGPOS-AboveBase.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/gsub/IndicFontFeatureGSUB.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/gsub/IndicFontFeatureGSUB.txt
new file mode 100644 (file)
index 0000000..583072d
--- /dev/null
@@ -0,0 +1,306 @@
+ಕ್ಕ
+ಕ್ಖ
+ಕ್ಗ
+ಕ್ಘ
+ಕ್ಙ
+ಕ್ಚ
+ಕ್ಛ
+ಕ್ಜ
+ಕ್ಝ
+ಕ್ಞ
+ಕ್ಟ
+ಕ್ಠ
+ಕ್ಡ
+ಕ್ಢ
+ಕ್ಣ
+ಕ್ತ
+ಕ್ಥ
+ಕ್ದ
+ಕ್ಧ
+ಕ್ನ
+ಕ್ಪ
+ಕ್ಫ
+ಕ್ಬ
+ಕ್ಭ
+ಕ್ಮ
+ಕ್ಯ
+ಕ್ರ
+ಕ್ಲ
+ಕ್ಳ
+ಕ್ವ
+ಕ್ಶ
+ಕ್ಷ
+ಕ್ಸ
+ಕ್ಹ
+ತ್ಕ
+ತ್ಖ
+ತ್ಗ
+ತ್ಘ
+ತ್ಙ
+ತ್ಚ
+ತ್ಛ
+ತ್ಜ
+ತ್ಝ
+ತ್ಞ
+ತ್ಟ
+ತ್ಠ
+ತ್ಡ
+ತ್ಢ
+ತ್ಣ
+ತ್ತ
+ತ್ಥ
+ತ್ದ
+ತ್ಧ
+ತ್ನ
+ತ್ಪ
+ತ್ಫ
+ತ್ಬ
+ತ್ಭ
+ತ್ಮ
+ತ್ಯ
+ತ್ರ
+ತ್ಲ
+ತ್ಳ
+ತ್ವ
+ತ್ಶ
+ತ್ಷ
+ತ್ಸ
+ತ್ಹ
+ನ್ಕ
+ನ್ಖ
+ನ್ಗ
+ನ್ಘ
+ನ್ಙ
+ನ್ಚ
+ನ್ಛ
+ನ್ಜ
+ನ್ಝ
+ನ್ಞ
+ನ್ಟ
+ನ್ಠ
+ನ್ಡ
+ನ್ಢ
+ನ್ಣ
+ನ್ತ
+ನ್ಥ
+ನ್ದ
+ನ್ಧ
+ನ್ನ
+ನ್ಪ
+ನ್ಫ
+ನ್ಬ
+ನ್ಭ
+ನ್ಮ
+ನ್ಯ
+ನ್ರ
+ನ್ಲ
+ನ್ಳ
+ನ್ವ
+ನ್ಶ
+ನ್ಷ
+ನ್ಸ
+ನ್ಹ
+ಮ್ಕ
+ಮ್ಖ
+ಮ್ಗ
+ಮ್ಘ
+ಮ್ಙ
+ಮ್ಚ
+ಮ್ಛ
+ಮ್ಜ
+ಮ್ಝ
+ಮ್ಞ
+ಮ್ಟ
+ಮ್ಠ
+ಮ್ಡ
+ಮ್ಢ
+ಮ್ಣ
+ಮ್ತ
+ಮ್ಥ
+ಮ್ದ
+ಮ್ಧ
+ಮ್ನ
+ಮ್ಪ
+ಮ್ಫ
+ಮ್ಬ
+ಮ್ಭ
+ಮ್ಮ
+ಮ್ಯ
+ಮ್ರ
+ಮ್ಲ
+ಮ್ಳ
+ಮ್ವ
+ಮ್ಶ
+ಮ್ಷ
+ಮ್ಸ
+ಮ್ಹ
+ಯ್ಕ
+ಯ್ಖ
+ಯ್ಗ
+ಯ್ಘ
+ಯ್ಙ
+ಯ್ಚ
+ಯ್ಛ
+ಯ್ಜ
+ಯ್ಝ
+ಯ್ಞ
+ಯ್ಟ
+ಯ್ಠ
+ಯ್ಡ
+ಯ್ಢ
+ಯ್ಣ
+ಯ್ತ
+ಯ್ಥ
+ಯ್ದ
+ಯ್ಧ
+ಯ್ನ
+ಯ್ಪ
+ಯ್ಫ
+ಯ್ಬ
+ಯ್ಭ
+ಯ್ಮ
+ಯ್ಯ
+ಯ್ರ
+ಯ್ಲ
+ಯ್ಳ
+ಯ್ವ
+ಯ್ಶ
+ಯ್ಷ
+ಯ್ಸ
+ಯ್ಹ
+ರ್ಕ
+ರ್ಖ
+ರ್ಗ
+ರ್ಘ
+ರ್ಙ
+ರ್ಚ
+ರ್ಛ
+ರ್ಜ
+ರ್ಝ
+ರ್ಞ
+ರ್ಟ
+ರ್ಠ
+ರ್ಡ
+ರ್ಢ
+ರ್ಣ
+ರ್ತ
+ರ್ಥ
+ರ್ದ
+ರ್ಧ
+ರ್ನ
+ರ್ಪ
+ರ್ಫ
+ರ್ಬ
+ರ್ಭ
+ರ್ಮ
+ರ್ಯ
+ರ್ರ
+ರ್ಲ
+ರ್ಳ
+ರ್ವ
+ರ್ಶ
+ರ್ಷ
+ರ್ಸ
+ರ್ಹ
+ರ್ಕ
+ರ್ಖ
+ರ್ಗ
+ರ್ಘ
+ರ್ಙ
+ರ್ಚ
+ರ್ಛ
+ರ್ಜ
+ರ್ಝ
+ರ್ಞ
+ರ್ಟ
+ರ್ಠ
+ರ್ಡ
+ರ್ಢ
+ರ್ಣ
+ರ್ತ
+ರ್ಥ
+ರ್ದ
+ರ್ಧ
+ರ್ನ
+ರ್ಪ
+ರ್ಫ
+ರ್ಬ
+ರ್ಭ
+ರ್ಮ
+ರ್ಯ
+ರ್ರ
+ರ್ಲ
+ರ್ಳ
+ರ್ವ
+ರ್ಶ
+ರ್ಷ
+ರ್ಸ
+ರ್ಹ
+ಲ್ಕ
+ಲ್ಖ
+ಲ್ಗ
+ಲ್ಘ
+ಲ್ಙ
+ಲ್ಚ
+ಲ್ಛ
+ಲ್ಜ
+ಲ್ಝ
+ಲ್ಞ
+ಲ್ಟ
+ಲ್ಠ
+ಲ್ಡ
+ಲ್ಢ
+ಲ್ಣ
+ಲ್ತ
+ಲ್ಥ
+ಲ್ದ
+ಲ್ಧ
+ಲ್ನ
+ಲ್ಪ
+ಲ್ಫ
+ಲ್ಬ
+ಲ್ಭ
+ಲ್ಮ
+ಲ್ಯ
+ಲ್ರ
+ಲ್ಲ
+ಲ್ಳ
+ಲ್ವ
+ಲ್ಶ
+ಲ್ಷ
+ಲ್ಸ
+ಲ್ಹ
+ವ್ಕ
+ವ್ಖ
+ವ್ಗ
+ವ್ಘ
+ವ್ಙ
+ವ್ಚ
+ವ್ಛ
+ವ್ಜ
+ವ್ಝ
+ವ್ಞ
+ವ್ಟ
+ವ್ಠ
+ವ್ಡ
+ವ್ಢ
+ವ್ಣ
+ವ್ತ
+ವ್ಥ
+ವ್ದ
+ವ್ಧ
+ವ್ನ
+ವ್ಪ
+ವ್ಫ
+ವ್ಬ
+ವ್ಭ
+ವ್ಮ
+ವ್ಯ
+ವ್ರ
+ವ್ಲ
+ವ್ಳ
+ವ್ವ
+ವ್ಶ
+ವ್ಷ
+ವ್ಸ
+ವ್ಹ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/gsub/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-kannada/utrrs/gsub/MANIFEST
new file mode 100644 (file)
index 0000000..4b47068
--- /dev/null
@@ -0,0 +1 @@
+IndicFontFeatureGSUB.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/MANIFEST
new file mode 100644 (file)
index 0000000..ecb8d96
--- /dev/null
@@ -0,0 +1,2 @@
+misc
+utrrs
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/misc/MANIFEST
new file mode 100644 (file)
index 0000000..48800d4
--- /dev/null
@@ -0,0 +1,3 @@
+cibu.txt
+dot-reph.txt
+misc.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/misc/cibu.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/misc/cibu.txt
new file mode 100644 (file)
index 0000000..3d53867
--- /dev/null
@@ -0,0 +1,188 @@
+2ാം
+2-ാം
+ല്ം
+എ്ന
+9-൹
+₹100
+൦
+൧
+൨
+൩
+൪
+൫
+൬
+൭
+൮
+൯
+൰
+൱
+൲
+൳
+൴
+൵
+അങ്ങ്
+അത്
+അർത്ഥം
+അന്ധൻ
+അന്യം
+അന്വയം
+അൽപ്പം
+അമ്മ
+അമ്ലം
+അല്പം
+അല
+അവൻ
+അവന്
+അവനു്
+അസോഽസൗ
+അഹല്യ
+അഺ്
+ആമ്പിൿ
+ആല
+ആാ
+ആാാാ
+ഇൻക
+ഇല്ല
+ഇല
+ഇള
+ഇഴ
+ഈറ
+ഈൗ
+ഉമ
+ഉള്ള
+ഊമ
+ഊൗ
+ഋതു
+ൠന്ന്
+ഌകാരം
+ൡതം
+എന്ന
+എന്റെ
+എലി
+എൻറോൾ
+ഏലം
+ഐക്യം
+ഒരു
+ഓരം
+ഓാാാ
+ഔഷധം
+ഔൗ
+കണ്ഢം
+കണ്ണ്
+കണ്വൻ
+കഥ
+കമ്പം
+കമ്രം
+കല്മഷം
+കല
+കാാ
+കീീ
+കുണ്ഠിതം
+കൂൂ
+കൄന്ന്
+കൢപ്തം
+കൣതം
+കൌതുകം
+ക്രൌഞ്ചം
+ഗങ്ഗ
+ഗരം
+ങഞ
+അച്ഛൻ
+ങ്യാവൂ
+ചരം
+ഛായ
+ജലം
+ജാള്യം
+ഝാൻസി
+ഞാൻ
+ടിപ്പു
+ഡപ്പി
+തത്ത
+തെരഞ്ഞെടുപ്പിന്‍െറ
+ദയ
+ദുഃഖം
+ദൃഢം
+ധനം
+നഖം
+നന്ദി
+നന്ന്
+നന്മ
+നാണ്യം
+തന്ത
+ന്രസ്ഥി
+പച്ച
+പട്ട
+പണ്ടു്
+പല
+പറ
+പാഠം
+പാണ്ഡു
+പാണ്ഡ്യൻ
+പാന്ഥൻ
+പാറ്റ
+പിന്നെ
+പുച്ഛം
+പുഞ്ച
+പൊൻനാണ്യം
+ഫലം
+ബലം
+ഭയം
+ഭാൎയ്യ
+ഭാര്യ
+മങ്ക
+മണം
+മണ്ട
+മ്അദനി
+മയം
+മേഘം
+മോഹന്‍ലാല്‍
+യതി
+രണ്ട്
+രമ്യം
+ലത
+അറബ്‌ബസ്സാർ
+ലോക്‌സഭ
+വഅള്
+വരം
+വാഞ്ഛ
+വില്വാദ്രി
+വെണ്മ
+ഷാരം
+ശ്രുതി
+ശരം
+ശാർങ്ഗപക്ഷി
+സമ്യക്
+സംയോഗം
+സംരംഭം
+സമ്രാട്ട്
+സസ്യം
+സാരം
+സ്രാവം
+സ്ലാവിക്
+സ്വരം
+സ്വാതന്ത്ര്യം
+സ്ട്രാപ്പ്
+സ്റ്റിംഗ്
+സ്റ്റ്രീം
+ഹാരം
+റിപ്പോര്‍ട്ട്
+  ന്‍റെ
+ന്റെ
+ൻ്റെ
+ച്ച്യൂ
+യ്ക്ക്യൂ
+ട്ട്യൂ
+യ‍്യ
+വ‍്വ
+ഹൈലൈറ്റ്സ്
+ ച്ല്‍സി
+മലയാളത്തില്‍
+ഡിപ്പാർട്ട്മെന്റിന്റെ
+യ്യ്ര
+ യ്യ്ര
+ ്യ്ര
+ ്യ്യ്ര
+വ്വ്ര
+ വ്വ്ര
+ ്വ്ര
+ ്വ്വ്ര
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/misc/dot-reph.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/misc/dot-reph.txt
new file mode 100644 (file)
index 0000000..fc74da9
--- /dev/null
@@ -0,0 +1,15 @@
+ൎക
+ൎക്ക്ര
+ൎന്ന
+ൎഗ്ഗ്രോ
+ൎഗ്രോ
+ൎഗോ
+ൎഗ
+ഗ്ഗ്രോ
+ഗ്ഗ്ര
+ഗ്ഗോ
+ഗ്ഗ
+ഗ്രോ
+ൎകു
+ൎക്കു
+ൎച്ച്
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/misc/misc.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/misc/misc.txt
new file mode 100644 (file)
index 0000000..2e732ae
--- /dev/null
@@ -0,0 +1,65 @@
+അൎത്ഥം
+അഥൎവ്വം
+ക്‍
+കായ്‌കറി
+കാര്‍ക്കോടകന്‍
+കുറ്റ്യാടി
+കെ
+കേ
+കൈ
+കൊ
+കോ
+കൌ
+ക്കെ
+ക്കൊ
+ക്ത്ര
+ക്യ
+ക്വ
+ഖ്യ
+ഖ്ര
+ഗ്ദ്ധ്രോ
+ട്ട
+ട്ടു്
+ണ്‍
+ണ്ട
+ത്ത
+ത്തെ
+ത്തൊ
+ദ്ദ
+ന്‍
+ന്ത
+ന്ത്യ
+ന്ത്ര്യ
+പ്ര
+പ്ലോ
+മുഖ്യമന്ത്രി
+മ്പ
+യാത്രാകൂലി
+യും
+യ്ക്കു
+യ്യ
+ര്
+ര്‍
+ര്ക
+ര്യ
+ര്‍വ്വ
+ല്‍
+ല്യ
+ല്ല
+ല്ലാം
+വ്വ
+ഷ്ട്രീ
+സോഫ്റ്റ്‌വെയര്‍
+സ്പ്രി
+സ്പ്രേ
+സ്പ്ലേ
+സ്വാതന്ത്ര്യം
+ഹാര്‍ഡ്‌വെയര്‍
+ള്‍
+ള്യം
+ള്ള
+ല്‍പ്പേ
+ശിം‌
+കോം‌
+യ‍്യ
+സ്റ്റ്
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/LICENSE b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/LICENSE
new file mode 100644 (file)
index 0000000..2cf8228
--- /dev/null
@@ -0,0 +1,19 @@
+Copyright (c) 2010 Red Hat Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/MANIFEST
new file mode 100644 (file)
index 0000000..b389359
--- /dev/null
@@ -0,0 +1,2 @@
+codepoint
+gsub
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/README b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/README
new file mode 100644 (file)
index 0000000..8bad337
--- /dev/null
@@ -0,0 +1,13 @@
+Introduction:
+A system to compare a reference image of a text character, word or phrase with another image of the character, word or phrase that was rendered by a text rendering engine. Differences between the reference image and the rendered image may be recorded for subsequent analysis. Performance of a text rendering engine producing text according to typographical rules applicable to a natural language can be evaluated by one with no knowledge or ability to read the natural language
+
+
+COPYRIGHT: Red Hat Inc. 2010
+
+license: this project is under MIT license
+
+
+AUTHORS:
+Lawrence Lim
+Satyabrata Maitra
+Amanpreet Singh Brar
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/SOURCES b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/SOURCES
new file mode 100644 (file)
index 0000000..0ed1a89
--- /dev/null
@@ -0,0 +1,2 @@
+https://fedorahosted.org/utrrs/
+Fetched in late 2011
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt
new file mode 100644 (file)
index 0000000..0d1a19b
--- /dev/null
@@ -0,0 +1,2 @@
+ൠ
+ൡ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt
new file mode 100644 (file)
index 0000000..4924e56
--- /dev/null
@@ -0,0 +1,36 @@
+ക
+ഖ
+ഗ
+ഘ
+ങ
+ച
+ഛ
+ജ
+ഝ
+ഞ
+ട
+ഠ
+ഡ
+ഢ
+ണ
+ത
+ഥ
+ദ
+ധ
+ന
+പ
+ഫ
+ബ
+ഭ
+മ
+യ
+ര
+റ
+ല
+ള
+ഴ
+വ
+ശ
+ഷ
+സ
+ഹ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt
new file mode 100644 (file)
index 0000000..dc49691
--- /dev/null
@@ -0,0 +1,12 @@
+ാ
+ി
+ീ
+ു
+ൂ
+ൃ
+െ
+േ
+ൈ
+ൊ
+ോ
+ൌ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt
new file mode 100644 (file)
index 0000000..c2a9f06
--- /dev/null
@@ -0,0 +1,10 @@
+൦
+൧
+൨
+൩
+൪
+൫
+൬
+൭
+൮
+൯
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt
new file mode 100644 (file)
index 0000000..d879c3b
--- /dev/null
@@ -0,0 +1,14 @@
+അ
+ആ
+ഇ
+ഈ
+ഉ
+ഊ
+ഋ
+ഌ
+എ
+ഏ
+ഐ
+ഒ
+ഓ
+ഔ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt
new file mode 100644 (file)
index 0000000..66a7ca4
--- /dev/null
@@ -0,0 +1,2 @@
+।
+॥
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt
new file mode 100644 (file)
index 0000000..2c976a4
--- /dev/null
@@ -0,0 +1,4 @@
+ം
+ഃ
+്
+ൗ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/codepoint/MANIFEST
new file mode 100644 (file)
index 0000000..1490dfe
--- /dev/null
@@ -0,0 +1,7 @@
+IndicFontFeatureCodepoint-AdditionalVowels.txt
+IndicFontFeatureCodepoint-Consonants.txt
+IndicFontFeatureCodepoint-DependentVowels.txt
+IndicFontFeatureCodepoint-Digits.txt
+IndicFontFeatureCodepoint-IndependentVowels.txt
+IndicFontFeatureCodepoint-Reserved.txt
+IndicFontFeatureCodepoint-VariousSigns.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/gsub/IndicFontFeatureGSUB.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/gsub/IndicFontFeatureGSUB.txt
new file mode 100644 (file)
index 0000000..1053215
--- /dev/null
@@ -0,0 +1,254 @@
+ക്ക
+ച്ച
+ട്ട
+ത്ത
+പ്പ
+ഗ്ഗ
+ജ്ജ
+ഡ്ഡ
+ദ്ദ
+ബ്ബ
+ങ്ങ
+ഞ്ഞ
+ണ്ണ
+ന്ന
+മ്മ
+യ്യ
+ല്ല
+വ്വ
+ശ്ശ
+സ്സ
+ള്ള
+റ്റ
+ക്ത
+ക്ഷ
+ഗ്ന
+ഗ്മ
+ങ്ക
+ച്ഛ
+ജ്ഞ
+ഞ്ച
+ണ്ട
+ണ്മ
+ത്ഥ
+ത്മ
+ത്ഭ
+ത്സ
+ദ്ധ
+ന്ത
+ന്ഥ
+ന്ദ
+ന്ധ
+ന്മ
+ന്റ
+മ്പ
+ബ്ദ
+ബ്ധ
+ശ്ച
+ഷ്ട
+സ്ഥ
+ഹ്ന
+ഹ്മ
+ക്യ
+ഖ്യ
+ഗ്യ
+ഘ്യ
+ങ്യ
+ച്യ
+ഛ്യ
+ജ്യ
+ഝ്യ
+ഞ്യ
+ട്യ
+ഠ്യ
+ഡ്യ
+ഢ്യ
+ണ്യ
+ത്യ
+ഥ്യ
+ദ്യ
+ധ്യ
+ന്യ
+പ്യ
+ഫ്യ
+ബ്യ
+ഭ്യ
+മ്യ
+ര്യ
+റ്യ
+ല്യ
+ള്യ
+ഴ്യ
+വ്യ
+ശ്യ
+ഷ്യ
+സ്യ
+ഹ്യ
+ക്ര
+ഖ്ര
+ഗ്ര
+ഘ്ര
+ച്ര
+ഛ്ര
+ജ്ര
+ട്ര
+ഠ്ര
+ഡ്ര
+ഢ്ര
+ത്ര
+ഥ്ര
+ദ്ര
+ധ്ര
+ന്ര
+പ്ര
+ഫ്ര
+ബ്ര
+ഭ്ര
+മ്ര
+ല്ര
+വ്ര
+ശ്ര
+ഷ്ര
+സ്ര
+ഹ്ര
+ക്ല
+ഖ്ല
+ഗ്ല
+ഘ്ല
+ങ്ല
+ച്ല
+ഛ്ല
+ജ്ല
+ഝ്ല
+ഞ്ല
+ട്ല
+ഠ്ല
+ഡ്ല
+ഢ്ല
+ണ്ല
+ത്ല
+ഥ്ല
+ദ്ല
+ധ്ല
+ന്ല
+പ്ല
+ഫ്ല
+ബ്ല
+ഭ്ല
+മ്ല
+യ്ല
+ര്ല
+റ്ല
+വ്ല
+ശ്ല
+ഷ്ല
+സ്ല
+ഹ്ല
+ക്ള
+ഖ്ള
+ഗ്ള
+ഘ്ള
+ങ്ള
+ച്ള
+ഛ്ള
+ജ്ള
+ഝ്ള
+ഞ്ള
+ട്ള
+ഠ്ള
+ഡ്ള
+ഢ്ള
+ണ്ള
+ത്ള
+ഥ്ള
+ദ്ള
+ധ്ള
+ന്ള
+പ്ള
+ഫ്ള
+ബ്ള
+ഭ്ള
+മ്ള
+യ്ള
+ര്ള
+റ്ള
+വ്ള
+ശ്ള
+ഷ്ള
+സ്ള
+ഹ്ള
+ക്വ
+ഖ്വ
+ഗ്വ
+ഘ്വ
+ങ്വ
+ച്വ
+ഛ്വ
+ജ്വ
+ഝ്വ
+ഞ്വ
+ട്വ
+ഠ്വ
+ഡ്വ
+ഢ്വ
+ണ്വ
+ത്വ
+ഥ്വ
+ദ്വ
+ധ്വ
+ന്വ
+പ്വ
+ഫ്വ
+ബ്വ
+ഭ്വ
+മ്വ
+ര്വ
+റ്വ
+ല്വ
+ള്വ
+ഴ്വ
+ശ്വ
+ഷ്വ
+സ്വ
+ഹ്വ
+ക്
+ഖ്
+ഗ്
+ഘ്
+ങ്
+ച്
+ഛ്
+ജ്
+ഝ്
+ഞ്
+ട്
+ഠ്
+ഡ്
+ഢ്
+ണ്
+ത്
+ഥ്
+ദ്
+ധ്
+ന്
+പ്
+ഫ്
+ബ്
+ഭ്
+മ്
+യ്
+ര്
+റ്
+ല്
+ള്
+ഴ്
+വ്
+ശ്
+ഷ്
+സ്
+ഹ്
+ഡ്രൈവ്
+അപ്ഡേറ്റ്
+അപ്ഗ്രേഡ്
+വ്യക്തം
+ഇന്‍സ്റ്റോള്‍
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/gsub/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-malayalam/utrrs/gsub/MANIFEST
new file mode 100644 (file)
index 0000000..4b47068
--- /dev/null
@@ -0,0 +1 @@
+IndicFontFeatureGSUB.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/MANIFEST
new file mode 100644 (file)
index 0000000..ecb8d96
--- /dev/null
@@ -0,0 +1,2 @@
+misc
+utrrs
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/MANIFEST
new file mode 100644 (file)
index 0000000..66a2468
--- /dev/null
@@ -0,0 +1,2 @@
+bindu.txt
+misc.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/bindu.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/bindu.txt
new file mode 100644 (file)
index 0000000..13de6ee
--- /dev/null
@@ -0,0 +1,2 @@
+ମୁଁ
+ମୁଂ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/misc.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/misc/misc.txt
new file mode 100644 (file)
index 0000000..44a53df
--- /dev/null
@@ -0,0 +1,28 @@
+ஃ
+ஃக
+கூ
+கெ
+கொ
+கொ
+க்ஷ
+க்ஷொ
+க்ஷொ
+ஙூ
+சூ
+டி
+டீ
+டூ
+தூ
+மூ
+ரி
+ரீ
+ரூ
+ர்
+லி
+லீ
+କ୍ତ୍ର
+ତ୍ତ୍ବ
+ନ୍ତ୍ବ
+ନ୍ତ୍ର
+ନ୍ତ୍ର୍ଯ
+ସ୍ତ୍ର
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/LICENSE b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/LICENSE
new file mode 100644 (file)
index 0000000..2cf8228
--- /dev/null
@@ -0,0 +1,19 @@
+Copyright (c) 2010 Red Hat Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/MANIFEST
new file mode 100644 (file)
index 0000000..b389359
--- /dev/null
@@ -0,0 +1,2 @@
+codepoint
+gsub
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/README b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/README
new file mode 100644 (file)
index 0000000..8bad337
--- /dev/null
@@ -0,0 +1,13 @@
+Introduction:
+A system to compare a reference image of a text character, word or phrase with another image of the character, word or phrase that was rendered by a text rendering engine. Differences between the reference image and the rendered image may be recorded for subsequent analysis. Performance of a text rendering engine producing text according to typographical rules applicable to a natural language can be evaluated by one with no knowledge or ability to read the natural language
+
+
+COPYRIGHT: Red Hat Inc. 2010
+
+license: this project is under MIT license
+
+
+AUTHORS:
+Lawrence Lim
+Satyabrata Maitra
+Amanpreet Singh Brar
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/SOURCES b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/SOURCES
new file mode 100644 (file)
index 0000000..0ed1a89
--- /dev/null
@@ -0,0 +1,2 @@
+https://fedorahosted.org/utrrs/
+Fetched in late 2011
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalConsonants.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalConsonants.txt
new file mode 100644 (file)
index 0000000..c311f42
--- /dev/null
@@ -0,0 +1,3 @@
+ଡ଼
+ଢ଼
+ୟ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt
new file mode 100644 (file)
index 0000000..c15795c
--- /dev/null
@@ -0,0 +1,2 @@
+ୠ
+ୡ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt
new file mode 100644 (file)
index 0000000..5692fa1
--- /dev/null
@@ -0,0 +1,34 @@
+କ
+ଖ
+ଗ
+ଘ
+ଙ
+ଚ
+ଛ
+ଜ
+ଝ
+ଞ
+ଟ
+ଠ
+ଡ
+ଢ
+ଣ
+ତ
+ଥ
+ଦ
+ଧ
+ନ
+ପ
+ଫ
+ବ
+ଭ
+ମ
+ଯ
+ର
+ଲ
+ଳ
+ଵ
+ଶ
+ଷ
+ସ
+ହ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt
new file mode 100644 (file)
index 0000000..d95d909
--- /dev/null
@@ -0,0 +1,12 @@
+ା
+ି
+ୀ
+ୁ
+ୂ
+ୃ
+େ
+ୈ
+ୋ
+ୌ
+ୖ
+ୗ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt
new file mode 100644 (file)
index 0000000..ce7af5e
--- /dev/null
@@ -0,0 +1,10 @@
+୦
+୧
+୨
+୩
+୪
+୫
+୬
+୭
+୮
+୯
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt
new file mode 100644 (file)
index 0000000..9d21b9d
--- /dev/null
@@ -0,0 +1,12 @@
+ଅ
+ଆ
+ଇ
+ଈ
+ଉ
+ଊ
+ଋ
+ଌ
+ଏ
+ଐ
+ଓ
+ଔ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-OriyaSpecific.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-OriyaSpecific.txt
new file mode 100644 (file)
index 0000000..6571b52
--- /dev/null
@@ -0,0 +1,2 @@
+୰
+ୱ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt
new file mode 100644 (file)
index 0000000..66a7ca4
--- /dev/null
@@ -0,0 +1,2 @@
+।
+॥
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt
new file mode 100644 (file)
index 0000000..ce411d2
--- /dev/null
@@ -0,0 +1,8 @@
+ଁ
+ଂ
+ଃ
+଼
+ଽ
+୍
+ୖ
+ୗ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/codepoint/MANIFEST
new file mode 100644 (file)
index 0000000..17fe498
--- /dev/null
@@ -0,0 +1,9 @@
+IndicFontFeatureCodepoint-AdditionalConsonants.txt
+IndicFontFeatureCodepoint-AdditionalVowels.txt
+IndicFontFeatureCodepoint-Consonants.txt
+IndicFontFeatureCodepoint-DependentVowels.txt
+IndicFontFeatureCodepoint-Digits.txt
+IndicFontFeatureCodepoint-IndependentVowels.txt
+IndicFontFeatureCodepoint-OriyaSpecific.txt
+IndicFontFeatureCodepoint-Reserved.txt
+IndicFontFeatureCodepoint-VariousSigns.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/gsub/IndicFontFeatureGSUB.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/gsub/IndicFontFeatureGSUB.txt
new file mode 100644 (file)
index 0000000..fe11060
--- /dev/null
@@ -0,0 +1,170 @@
+କ୍ଷ
+ଙ୍କ
+ଙ୍ଖ
+ଙ୍ଗ
+ଙ୍ଘ
+ଙ୍ଳ
+ଙ୍କ୍ତ
+ଚ୍ଚ
+ଚ୍ଛ
+ଜ୍ଜ
+ଜ୍ଝ
+ଜ୍ଞ
+ଞ୍ଚ
+ଞ୍ଛ
+ଞ୍ଜ
+ଟ୍ଟ
+ଣ୍ଟ
+ଣ୍ଠ
+ଣ୍ଡ
+ଣ୍ଢ
+ଣ୍ଣ
+ତ୍କ
+ତ୍ତ
+ତ୍ଥ
+ତ୍ନ
+ତ୍ସ
+ତ୍ପ
+ଦ୍ଦ
+ଦ୍ଧ
+ଦ୍ଭ
+ଦ୍ଯ
+ବ୍ଡ
+ବ୍ଦ
+ବ୍ଧ
+ନ୍ତ
+ନ୍ତ୍ର
+ନ୍ଥ
+ନ୍ଦ
+ନ୍ଧ
+ନ୍ନ
+ଯ୍ତ
+ମ୍ପ
+ମ୍ଫ
+ମ୍ବ
+ମ୍ମ
+ମ୍ଭ
+ଶ୍ଚ
+ଶ୍ପ
+ଶ୍ଫ
+ଶ୍କ
+ଶ୍ଟ
+ଷ୍ଟ
+ଷ୍ଟ୍ବ
+ଷ୍ଠ
+ଷ୍ଣ
+ସ୍କ
+ସ୍ଖ
+ସ୍ଘ
+ସ୍ପ
+ସ୍ଫ
+ସ୍ତ
+ସ୍ତ୍ର
+ସ୍ଥ
+ସ୍ବ
+ସ୍ମୃ
+ହ୍ନ
+ହ୍ଳ
+ହ୍ଵ
+ପ୍ଟ
+କ୍କ
+କ୍ଖ
+କ୍ଗ
+କ୍ଘ
+କ୍ଚ
+କ୍ଛ
+କ୍ଜ
+କ୍ଝ
+କ୍ଟ
+କ୍ଠ
+କ୍ଡ
+କ୍ଢ
+କ୍ଣ
+କ୍ତ
+କ୍ଥ
+କ୍ଦ
+କ୍ଧ
+କ୍ନ
+କ୍ପ
+କ୍ଫ
+କ୍ବ
+କ୍ଭ
+କ୍ମ
+କ୍ଯ
+କ୍ର
+କ୍ଳ
+କ୍ଲ
+କ୍ହ
+ର୍କ
+ର୍ଖ
+ର୍ଗ
+ର୍ଘ
+ର୍ଚ
+ର୍ଚ୍ଚ
+ର୍ଚ୍ଛ
+ର୍ଛ
+ର୍ଜ
+ର୍ଝ
+ର୍ଟ
+ର୍ଠ
+ର୍ଡ
+ର୍ଢ
+ର୍ଣ
+ର୍ତ
+ର୍ତ୍ତ
+ର୍ଥ
+ର୍ଦ
+ର୍ଦ୍ଦ
+ର୍ଦ୍ଧ
+ର୍ଧ
+ର୍ନ
+ର୍ପ
+ର୍ଫ
+ର୍ବ
+ର୍ଭ
+ର୍ମ
+ର୍ଯ
+ର୍ଯ୍ଯ
+ର୍ଶ
+ର୍ଷ
+ର୍ସ
+ର୍ହ
+ର୍ଡ଼
+ର୍ଢ଼
+ଖ୍ର
+ଗ୍ର
+ଘ୍ର
+ଚ୍ଚ୍ର
+ଚ୍ଛ୍ର
+ଚ୍ର
+ଛ୍ର
+ଜ୍ର
+ଝ୍ର
+ଟ୍ର
+ଠ୍ର
+ଡ୍ର
+ଢ୍ର
+ଣ୍ର
+ତ୍ର
+ତ୍ତ୍ର
+ତ୍ଥ୍ର
+ଥ୍ର
+ଦ୍ର
+ଦ୍ଦ୍ର
+ଦ୍ଧ୍ର
+ଧ୍ର
+ନ୍ର
+ପ୍ର
+ଫ୍ର
+ବ୍ର
+ଭ୍ର
+ମ୍ର
+ଯ୍ର
+ଶ୍ର
+ଷ୍ର
+ସ୍ର
+ହ୍ର
+ଡ଼୍ର
+ଢ଼୍ର
+ଦ୍ଗ
+ତ୍ମ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/gsub/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-oriya/utrrs/gsub/MANIFEST
new file mode 100644 (file)
index 0000000..4b47068
--- /dev/null
@@ -0,0 +1 @@
+IndicFontFeatureGSUB.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/MANIFEST
new file mode 100644 (file)
index 0000000..ecb8d96
--- /dev/null
@@ -0,0 +1,2 @@
+misc
+utrrs
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/misc/MANIFEST
new file mode 100644 (file)
index 0000000..a00d7ae
--- /dev/null
@@ -0,0 +1,4 @@
+extensive.txt
+misc.txt
+reph.txt
+split-matras.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/misc/extensive.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/misc/extensive.txt
new file mode 100644 (file)
index 0000000..231a1f7
--- /dev/null
@@ -0,0 +1,4390 @@
+අ
+ආ
+ඇ
+ඈ
+ඉ
+ඊ
+උ
+ඌ
+ඍ
+ඎ
+ඏ
+ඐ
+එ
+ඒ
+ඓ
+ඔ
+ඕ
+ඖ
+ක
+කා
+කැ
+කෑ
+කි
+කී
+කු
+කූ
+කෘ
+කෲ
+කෟ
+කෳ
+කෙ
+කේ
+කෛ
+කො
+කෝ
+කෞ
+ක්
+කං
+කඃ
+ක්‍ර
+ක්‍රා
+ක්‍රැ
+ක්‍රෑ
+ක්‍රි
+ක්‍රී
+ක්‍රු
+ක්‍රූ
+ක්‍රෘ
+ක්‍රෲ
+ක්‍රෟ
+ක්‍රෳ
+ක්‍රෙ
+ක්‍රේ
+ක්‍රෛ
+ක්‍රො
+ක්‍රෝ
+ක්‍රෞ
+ක්‍ර්
+ක්‍රං
+ක්‍රඃ
+ක්‍ය
+ක්‍යා
+ක්‍යැ
+ක්‍යෑ
+ක්‍යි
+ක්‍යී
+ක්‍යු
+ක්‍යූ
+ක්‍යෘ
+ක්‍යෲ
+ක්‍යෟ
+ක්‍යෳ
+ක්‍යෙ
+ක්‍යේ
+ක්‍යෛ
+ක්‍යො
+ක්‍යෝ
+ක්‍යෞ
+ක්‍ය්
+ක්‍යං
+ක්‍යඃ
+ර්‍ක
+ර්‍කා
+ර්‍කැ
+ර්‍කෑ
+ර්‍කි
+ර්‍කී
+ර්‍කු
+ර්‍කූ
+ර්‍කෘ
+ර්‍කෲ
+ර්‍කෟ
+ර්‍කෳ
+ර්‍කෙ
+ර්‍කේ
+ර්‍කෛ
+ර්‍කො
+ර්‍කෝ
+ර්‍කෞ
+ර්‍ක්
+ර්‍කං
+ර්‍කඃ
+ඛ
+ඛා
+ඛැ
+ඛෑ
+ඛි
+ඛී
+ඛු
+ඛූ
+ඛෘ
+ඛෲ
+ඛෟ
+ඛෳ
+ඛෙ
+ඛේ
+ඛෛ
+ඛො
+ඛෝ
+ඛෞ
+ඛ්
+ඛං
+ඛඃ
+ඛ්‍ර
+ඛ්‍රා
+ඛ්‍රැ
+ඛ්‍රෑ
+ඛ්‍රි
+ඛ්‍රී
+ඛ්‍රු
+ඛ්‍රූ
+ඛ්‍රෘ
+ඛ්‍රෲ
+ඛ්‍රෟ
+ඛ්‍රෳ
+ඛ්‍රෙ
+ඛ්‍රේ
+ඛ්‍රෛ
+ඛ්‍රො
+ඛ්‍රෝ
+ඛ්‍රෞ
+ඛ්‍ර්
+ඛ්‍රං
+ඛ්‍රඃ
+ඛ්‍ය
+ඛ්‍යා
+ඛ්‍යැ
+ඛ්‍යෑ
+ඛ්‍යි
+ඛ්‍යී
+ඛ්‍යු
+ඛ්‍යූ
+ඛ්‍යෘ
+ඛ්‍යෲ
+ඛ්‍යෟ
+ඛ්‍යෳ
+ඛ්‍යෙ
+ඛ්‍යේ
+ඛ්‍යෛ
+ඛ්‍යො
+ඛ්‍යෝ
+ඛ්‍යෞ
+ඛ්‍ය්
+ඛ්‍යං
+ඛ්‍යඃ
+ර්‍ඛ
+ර්‍ඛා
+ර්‍ඛැ
+ර්‍ඛෑ
+ර්‍ඛි
+ර්‍ඛී
+ර්‍ඛු
+ර්‍ඛූ
+ර්‍ඛෘ
+ර්‍ඛෲ
+ර්‍ඛෟ
+ර්‍ඛෳ
+ර්‍ඛෙ
+ර්‍ඛේ
+ර්‍ඛෛ
+ර්‍ඛො
+ර්‍ඛෝ
+ර්‍ඛෞ
+ර්‍ඛ්
+ර්‍ඛං
+ර්‍ඛඃ
+ග
+ගා
+ගැ
+ගෑ
+ගි
+ගී
+ගු
+ගූ
+ගෘ
+ගෲ
+ගෟ
+ගෳ
+ගෙ
+ගේ
+ගෛ
+ගො
+ගෝ
+ගෞ
+ග්
+ගං
+ගඃ
+ග්‍ර
+ග්‍රා
+ග්‍රැ
+ග්‍රෑ
+ග්‍රි
+ග්‍රී
+ග්‍රු
+ග්‍රූ
+ග්‍රෘ
+ග්‍රෲ
+ග්‍රෟ
+ග්‍රෳ
+ග්‍රෙ
+ග්‍රේ
+ග්‍රෛ
+ග්‍රො
+ග්‍රෝ
+ග්‍රෞ
+ග්‍ර්
+ග්‍රං
+ග්‍රඃ
+ග්‍ය
+ග්‍යා
+ග්‍යැ
+ග්‍යෑ
+ග්‍යි
+ග්‍යී
+ග්‍යු
+ග්‍යූ
+ග්‍යෘ
+ග්‍යෲ
+ග්‍යෟ
+ග්‍යෳ
+ග්‍යෙ
+ග්‍යේ
+ග්‍යෛ
+ග්‍යො
+ග්‍යෝ
+ග්‍යෞ
+ග්‍ය්
+ග්‍යං
+ග්‍යඃ
+ර්‍ග
+ර්‍ගා
+ර්‍ගැ
+ර්‍ගෑ
+ර්‍ගි
+ර්‍ගී
+ර්‍ගු
+ර්‍ගූ
+ර්‍ගෘ
+ර්‍ගෲ
+ර්‍ගෟ
+ර්‍ගෳ
+ර්‍ගෙ
+ර්‍ගේ
+ර්‍ගෛ
+ර්‍ගො
+ර්‍ගෝ
+ර්‍ගෞ
+ර්‍ග්
+ර්‍ගං
+ර්‍ගඃ
+ඝ
+ඝා
+ඝැ
+ඝෑ
+ඝි
+ඝී
+ඝු
+ඝූ
+ඝෘ
+ඝෲ
+ඝෟ
+ඝෳ
+ඝෙ
+ඝේ
+ඝෛ
+ඝො
+ඝෝ
+ඝෞ
+ඝ්
+ඝං
+ඝඃ
+ඝ්‍ර
+ඝ්‍රා
+ඝ්‍රැ
+ඝ්‍රෑ
+ඝ්‍රි
+ඝ්‍රී
+ඝ්‍රු
+ඝ්‍රූ
+ඝ්‍රෘ
+ඝ්‍රෲ
+ඝ්‍රෟ
+ඝ්‍රෳ
+ඝ්‍රෙ
+ඝ්‍රේ
+ඝ්‍රෛ
+ඝ්‍රො
+ඝ්‍රෝ
+ඝ්‍රෞ
+ඝ්‍ර්
+ඝ්‍රං
+ඝ්‍රඃ
+ඝ්‍ය
+ඝ්‍යා
+ඝ්‍යැ
+ඝ්‍යෑ
+ඝ්‍යි
+ඝ්‍යී
+ඝ්‍යු
+ඝ්‍යූ
+ඝ්‍යෘ
+ඝ්‍යෲ
+ඝ්‍යෟ
+ඝ්‍යෳ
+ඝ්‍යෙ
+ඝ්‍යේ
+ඝ්‍යෛ
+ඝ්‍යො
+ඝ්‍යෝ
+ඝ්‍යෞ
+ඝ්‍ය්
+ඝ්‍යං
+ඝ්‍යඃ
+ර්‍ඝ
+ර්‍ඝා
+ර්‍ඝැ
+ර්‍ඝෑ
+ර්‍ඝි
+ර්‍ඝී
+ර්‍ඝු
+ර්‍ඝූ
+ර්‍ඝෘ
+ර්‍ඝෲ
+ර්‍ඝෟ
+ර්‍ඝෳ
+ර්‍ඝෙ
+ර්‍ඝේ
+ර්‍ඝෛ
+ර්‍ඝො
+ර්‍ඝෝ
+ර්‍ඝෞ
+ර්‍ඝ්
+ර්‍ඝං
+ර්‍ඝඃ
+ඞ
+ඞා
+ඞැ
+ඞෑ
+ඞි
+ඞී
+ඞු
+ඞූ
+ඞෘ
+ඞෲ
+ඞෟ
+ඞෳ
+ඞෙ
+ඞේ
+ඞෛ
+ඞො
+ඞෝ
+ඞෞ
+ඞ්
+ඞං
+ඞඃ
+ඞ්‍ර
+ඞ්‍රා
+ඞ්‍රැ
+ඞ්‍රෑ
+ඞ්‍රි
+ඞ්‍රී
+ඞ්‍රු
+ඞ්‍රූ
+ඞ්‍රෘ
+ඞ්‍රෲ
+ඞ්‍රෟ
+ඞ්‍රෳ
+ඞ්‍රෙ
+ඞ්‍රේ
+ඞ්‍රෛ
+ඞ්‍රො
+ඞ්‍රෝ
+ඞ්‍රෞ
+ඞ්‍ර්
+ඞ්‍රං
+ඞ්‍රඃ
+ඞ්‍ය
+ඞ්‍යා
+ඞ්‍යැ
+ඞ්‍යෑ
+ඞ්‍යි
+ඞ්‍යී
+ඞ්‍යු
+ඞ්‍යූ
+ඞ්‍යෘ
+ඞ්‍යෲ
+ඞ්‍යෟ
+ඞ්‍යෳ
+ඞ්‍යෙ
+ඞ්‍යේ
+ඞ්‍යෛ
+ඞ්‍යො
+ඞ්‍යෝ
+ඞ්‍යෞ
+ඞ්‍ය්
+ඞ්‍යං
+ඞ්‍යඃ
+ර්‍ඞ
+ර්‍ඞා
+ර්‍ඞැ
+ර්‍ඞෑ
+ර්‍ඞි
+ර්‍ඞී
+ර්‍ඞු
+ර්‍ඞූ
+ර්‍ඞෘ
+ර්‍ඞෲ
+ර්‍ඞෟ
+ර්‍ඞෳ
+ර්‍ඞෙ
+ර්‍ඞේ
+ර්‍ඞෛ
+ර්‍ඞො
+ර්‍ඞෝ
+ර්‍ඞෞ
+ර්‍ඞ්
+ර්‍ඞං
+ර්‍ඞඃ
+ඟ
+ඟා
+ඟැ
+ඟෑ
+ඟි
+ඟී
+ඟු
+ඟූ
+ඟෘ
+ඟෲ
+ඟෟ
+ඟෳ
+ඟෙ
+ඟේ
+ඟෛ
+ඟො
+ඟෝ
+ඟෞ
+ඟ්
+ඟං
+ඟඃ
+ඟ්‍ර
+ඟ්‍රා
+ඟ්‍රැ
+ඟ්‍රෑ
+ඟ්‍රි
+ඟ්‍රී
+ඟ්‍රු
+ඟ්‍රූ
+ඟ්‍රෘ
+ඟ්‍රෲ
+ඟ්‍රෟ
+ඟ්‍රෳ
+ඟ්‍රෙ
+ඟ්‍රේ
+ඟ්‍රෛ
+ඟ්‍රො
+ඟ්‍රෝ
+ඟ්‍රෞ
+ඟ්‍ර්
+ඟ්‍රං
+ඟ්‍රඃ
+ඟ්‍ය
+ඟ්‍යා
+ඟ්‍යැ
+ඟ්‍යෑ
+ඟ්‍යි
+ඟ්‍යී
+ඟ්‍යු
+ඟ්‍යූ
+ඟ්‍යෘ
+ඟ්‍යෲ
+ඟ්‍යෟ
+ඟ්‍යෳ
+ඟ්‍යෙ
+ඟ්‍යේ
+ඟ්‍යෛ
+ඟ්‍යො
+ඟ්‍යෝ
+ඟ්‍යෞ
+ඟ්‍ය්
+ඟ්‍යං
+ඟ්‍යඃ
+ර්‍ඟ
+ර්‍ඟා
+ර්‍ඟැ
+ර්‍ඟෑ
+ර්‍ඟි
+ර්‍ඟී
+ර්‍ඟු
+ර්‍ඟූ
+ර්‍ඟෘ
+ර්‍ඟෲ
+ර්‍ඟෟ
+ර්‍ඟෳ
+ර්‍ඟෙ
+ර්‍ඟේ
+ර්‍ඟෛ
+ර්‍ඟො
+ර්‍ඟෝ
+ර්‍ඟෞ
+ර්‍ඟ්
+ර්‍ඟං
+ර්‍ඟඃ
+ච
+චා
+චැ
+චෑ
+චි
+චී
+චු
+චූ
+චෘ
+චෲ
+චෟ
+චෳ
+චෙ
+චේ
+චෛ
+චො
+චෝ
+චෞ
+ච්
+චං
+චඃ
+ච්‍ර
+ච්‍රා
+ච්‍රැ
+ච්‍රෑ
+ච්‍රි
+ච්‍රී
+ච්‍රු
+ච්‍රූ
+ච්‍රෘ
+ච්‍රෲ
+ච්‍රෟ
+ච්‍රෳ
+ච්‍රෙ
+ච්‍රේ
+ච්‍රෛ
+ච්‍රො
+ච්‍රෝ
+ච්‍රෞ
+ච්‍ර්
+ච්‍රං
+ච්‍රඃ
+ච්‍ය
+ච්‍යා
+ච්‍යැ
+ච්‍යෑ
+ච්‍යි
+ච්‍යී
+ච්‍යු
+ච්‍යූ
+ච්‍යෘ
+ච්‍යෲ
+ච්‍යෟ
+ච්‍යෳ
+ච්‍යෙ
+ච්‍යේ
+ච්‍යෛ
+ච්‍යො
+ච්‍යෝ
+ච්‍යෞ
+ච්‍ය්
+ච්‍යං
+ච්‍යඃ
+ර්‍ච
+ර්‍චා
+ර්‍චැ
+ර්‍චෑ
+ර්‍චි
+ර්‍චී
+ර්‍චු
+ර්‍චූ
+ර්‍චෘ
+ර්‍චෲ
+ර්‍චෟ
+ර්‍චෳ
+ර්‍චෙ
+ර්‍චේ
+ර්‍චෛ
+ර්‍චො
+ර්‍චෝ
+ර්‍චෞ
+ර්‍ච්
+ර්‍චං
+ර්‍චඃ
+ඡ
+ඡා
+ඡැ
+ඡෑ
+ඡි
+ඡී
+ඡු
+ඡූ
+ඡෘ
+ඡෲ
+ඡෟ
+ඡෳ
+ඡෙ
+ඡේ
+ඡෛ
+ඡො
+ඡෝ
+ඡෞ
+ඡ්
+ඡං
+ඡඃ
+ඡ්‍ර
+ඡ්‍රා
+ඡ්‍රැ
+ඡ්‍රෑ
+ඡ්‍රි
+ඡ්‍රී
+ඡ්‍රු
+ඡ්‍රූ
+ඡ්‍රෘ
+ඡ්‍රෲ
+ඡ්‍රෟ
+ඡ්‍රෳ
+ඡ්‍රෙ
+ඡ්‍රේ
+ඡ්‍රෛ
+ඡ්‍රො
+ඡ්‍රෝ
+ඡ්‍රෞ
+ඡ්‍ර්
+ඡ්‍රං
+ඡ්‍රඃ
+ඡ්‍ය
+ඡ්‍යා
+ඡ්‍යැ
+ඡ්‍යෑ
+ඡ්‍යි
+ඡ්‍යී
+ඡ්‍යු
+ඡ්‍යූ
+ඡ්‍යෘ
+ඡ්‍යෲ
+ඡ්‍යෟ
+ඡ්‍යෳ
+ඡ්‍යෙ
+ඡ්‍යේ
+ඡ්‍යෛ
+ඡ්‍යො
+ඡ්‍යෝ
+ඡ්‍යෞ
+ඡ්‍ය්
+ඡ්‍යං
+ඡ්‍යඃ
+ර්‍ඡ
+ර්‍ඡා
+ර්‍ඡැ
+ර්‍ඡෑ
+ර්‍ඡි
+ර්‍ඡී
+ර්‍ඡු
+ර්‍ඡූ
+ර්‍ඡෘ
+ර්‍ඡෲ
+ර්‍ඡෟ
+ර්‍ඡෳ
+ර්‍ඡෙ
+ර්‍ඡේ
+ර්‍ඡෛ
+ර්‍ඡො
+ර්‍ඡෝ
+ර්‍ඡෞ
+ර්‍ඡ්
+ර්‍ඡං
+ර්‍ඡඃ
+ජ
+ජා
+ජැ
+ජෑ
+ජි
+ජී
+ජු
+ජූ
+ජෘ
+ජෲ
+ජෟ
+ජෳ
+ජෙ
+ජේ
+ජෛ
+ජො
+ජෝ
+ජෞ
+ජ්
+ජං
+ජඃ
+ජ්‍ර
+ජ්‍රා
+ජ්‍රැ
+ජ්‍රෑ
+ජ්‍රි
+ජ්‍රී
+ජ්‍රු
+ජ්‍රූ
+ජ්‍රෘ
+ජ්‍රෲ
+ජ්‍රෟ
+ජ්‍රෳ
+ජ්‍රෙ
+ජ්‍රේ
+ජ්‍රෛ
+ජ්‍රො
+ජ්‍රෝ
+ජ්‍රෞ
+ජ්‍ර්
+ජ්‍රං
+ජ්‍රඃ
+ජ්‍ය
+ජ්‍යා
+ජ්‍යැ
+ජ්‍යෑ
+ජ්‍යි
+ජ්‍යී
+ජ්‍යු
+ජ්‍යූ
+ජ්‍යෘ
+ජ්‍යෲ
+ජ්‍යෟ
+ජ්‍යෳ
+ජ්‍යෙ
+ජ්‍යේ
+ජ්‍යෛ
+ජ්‍යො
+ජ්‍යෝ
+ජ්‍යෞ
+ජ්‍ය්
+ජ්‍යං
+ජ්‍යඃ
+ර්‍ජ
+ර්‍ජා
+ර්‍ජැ
+ර්‍ජෑ
+ර්‍ජි
+ර්‍ජී
+ර්‍ජු
+ර්‍ජූ
+ර්‍ජෘ
+ර්‍ජෲ
+ර්‍ජෟ
+ර්‍ජෳ
+ර්‍ජෙ
+ර්‍ජේ
+ර්‍ජෛ
+ර්‍ජො
+ර්‍ජෝ
+ර්‍ජෞ
+ර්‍ජ්
+ර්‍ජං
+ර්‍ජඃ
+ඣ
+ඣා
+ඣැ
+ඣෑ
+ඣි
+ඣී
+ඣු
+ඣූ
+ඣෘ
+ඣෲ
+ඣෟ
+ඣෳ
+ඣෙ
+ඣේ
+ඣෛ
+ඣො
+ඣෝ
+ඣෞ
+ඣ්
+ඣං
+ඣඃ
+ඣ්‍ර
+ඣ්‍රා
+ඣ්‍රැ
+ඣ්‍රෑ
+ඣ්‍රි
+ඣ්‍රී
+ඣ්‍රු
+ඣ්‍රූ
+ඣ්‍රෘ
+ඣ්‍රෲ
+ඣ්‍රෟ
+ඣ්‍රෳ
+ඣ්‍රෙ
+ඣ්‍රේ
+ඣ්‍රෛ
+ඣ්‍රො
+ඣ්‍රෝ
+ඣ්‍රෞ
+ඣ්‍ර්
+ඣ්‍රං
+ඣ්‍රඃ
+ඣ්‍ය
+ඣ්‍යා
+ඣ්‍යැ
+ඣ්‍යෑ
+ඣ්‍යි
+ඣ්‍යී
+ඣ්‍යු
+ඣ්‍යූ
+ඣ්‍යෘ
+ඣ්‍යෲ
+ඣ්‍යෟ
+ඣ්‍යෳ
+ඣ්‍යෙ
+ඣ්‍යේ
+ඣ්‍යෛ
+ඣ්‍යො
+ඣ්‍යෝ
+ඣ්‍යෞ
+ඣ්‍ය්
+ඣ්‍යං
+ඣ්‍යඃ
+ර්‍ඣ
+ර්‍ඣා
+ර්‍ඣැ
+ර්‍ඣෑ
+ර්‍ඣි
+ර්‍ඣී
+ර්‍ඣු
+ර්‍ඣූ
+ර්‍ඣෘ
+ර්‍ඣෲ
+ර්‍ඣෟ
+ර්‍ඣෳ
+ර්‍ඣෙ
+ර්‍ඣේ
+ර්‍ඣෛ
+ර්‍ඣො
+ර්‍ඣෝ
+ර්‍ඣෞ
+ර්‍ඣ්
+ර්‍ඣං
+ර්‍ඣඃ
+ඥ
+ඥා
+ඥැ
+ඥෑ
+ඥි
+ඥී
+ඥු
+ඥූ
+ඥෘ
+ඥෲ
+ඥෟ
+ඥෳ
+ඥෙ
+ඥේ
+ඥෛ
+ඥො
+ඥෝ
+ඥෞ
+ඥ්
+ඥං
+ඥඃ
+ඥ්‍ර
+ඥ්‍රා
+ඥ්‍රැ
+ඥ්‍රෑ
+ඥ්‍රි
+ඥ්‍රී
+ඥ්‍රු
+ඥ්‍රූ
+ඥ්‍රෘ
+ඥ්‍රෲ
+ඥ්‍රෟ
+ඥ්‍රෳ
+ඥ්‍රෙ
+ඥ්‍රේ
+ඥ්‍රෛ
+ඥ්‍රො
+ඥ්‍රෝ
+ඥ්‍රෞ
+ඥ්‍ර්
+ඥ්‍රං
+ඥ්‍රඃ
+ඥ්‍ය
+ඥ්‍යා
+ඥ්‍යැ
+ඥ්‍යෑ
+ඥ්‍යි
+ඥ්‍යී
+ඥ්‍යු
+ඥ්‍යූ
+ඥ්‍යෘ
+ඥ්‍යෲ
+ඥ්‍යෟ
+ඥ්‍යෳ
+ඥ්‍යෙ
+ඥ්‍යේ
+ඥ්‍යෛ
+ඥ්‍යො
+ඥ්‍යෝ
+ඥ්‍යෞ
+ඥ්‍ය්
+ඥ්‍යං
+ඥ්‍යඃ
+ර්‍ඥ
+ර්‍ඥා
+ර්‍ඥැ
+ර්‍ඥෑ
+ර්‍ඥි
+ර්‍ඥී
+ර්‍ඥු
+ර්‍ඥූ
+ර්‍ඥෘ
+ර්‍ඥෲ
+ර්‍ඥෟ
+ර්‍ඥෳ
+ර්‍ඥෙ
+ර්‍ඥේ
+ර්‍ඥෛ
+ර්‍ඥො
+ර්‍ඥෝ
+ර්‍ඥෞ
+ර්‍ඥ්
+ර්‍ඥං
+ර්‍ඥඃ
+ඤ
+ඤා
+ඤැ
+ඤෑ
+ඤි
+ඤී
+ඤු
+ඤූ
+ඤෘ
+ඤෲ
+ඤෟ
+ඤෳ
+ඤෙ
+ඤේ
+ඤෛ
+ඤො
+ඤෝ
+ඤෞ
+ඤ්
+ඤං
+ඤඃ
+ඤ්‍ර
+ඤ්‍රා
+ඤ්‍රැ
+ඤ්‍රෑ
+ඤ්‍රි
+ඤ්‍රී
+ඤ්‍රු
+ඤ්‍රූ
+ඤ්‍රෘ
+ඤ්‍රෲ
+ඤ්‍රෟ
+ඤ්‍රෳ
+ඤ්‍රෙ
+ඤ්‍රේ
+ඤ්‍රෛ
+ඤ්‍රො
+ඤ්‍රෝ
+ඤ්‍රෞ
+ඤ්‍ර්
+ඤ්‍රං
+ඤ්‍රඃ
+ඤ්‍ය
+ඤ්‍යා
+ඤ්‍යැ
+ඤ්‍යෑ
+ඤ්‍යි
+ඤ්‍යී
+ඤ්‍යු
+ඤ්‍යූ
+ඤ්‍යෘ
+ඤ්‍යෲ
+ඤ්‍යෟ
+ඤ්‍යෳ
+ඤ්‍යෙ
+ඤ්‍යේ
+ඤ්‍යෛ
+ඤ්‍යො
+ඤ්‍යෝ
+ඤ්‍යෞ
+ඤ්‍ය්
+ඤ්‍යං
+ඤ්‍යඃ
+ර්‍ඤ
+ර්‍ඤා
+ර්‍ඤැ
+ර්‍ඤෑ
+ර්‍ඤි
+ර්‍ඤී
+ර්‍ඤු
+ර්‍ඤූ
+ර්‍ඤෘ
+ර්‍ඤෲ
+ර්‍ඤෟ
+ර්‍ඤෳ
+ර්‍ඤෙ
+ර්‍ඤේ
+ර්‍ඤෛ
+ර්‍ඤො
+ර්‍ඤෝ
+ර්‍ඤෞ
+ර්‍ඤ්
+ර්‍ඤං
+ර්‍ඤඃ
+ඦ
+ඦා
+ඦැ
+ඦෑ
+ඦි
+ඦී
+ඦු
+ඦූ
+ඦෘ
+ඦෲ
+ඦෟ
+ඦෳ
+ඦෙ
+ඦේ
+ඦෛ
+ඦො
+ඦෝ
+ඦෞ
+ඦ්
+ඦං
+ඦඃ
+ඦ්‍ර
+ඦ්‍රා
+ඦ්‍රැ
+ඦ්‍රෑ
+ඦ්‍රි
+ඦ්‍රී
+ඦ්‍රු
+ඦ්‍රූ
+ඦ්‍රෘ
+ඦ්‍රෲ
+ඦ්‍රෟ
+ඦ්‍රෳ
+ඦ්‍රෙ
+ඦ්‍රේ
+ඦ්‍රෛ
+ඦ්‍රො
+ඦ්‍රෝ
+ඦ්‍රෞ
+ඦ්‍ර්
+ඦ්‍රං
+ඦ්‍රඃ
+ඦ්‍ය
+ඦ්‍යා
+ඦ්‍යැ
+ඦ්‍යෑ
+ඦ්‍යි
+ඦ්‍යී
+ඦ්‍යු
+ඦ්‍යූ
+ඦ්‍යෘ
+ඦ්‍යෲ
+ඦ්‍යෟ
+ඦ්‍යෳ
+ඦ්‍යෙ
+ඦ්‍යේ
+ඦ්‍යෛ
+ඦ්‍යො
+ඦ්‍යෝ
+ඦ්‍යෞ
+ඦ්‍ය්
+ඦ්‍යං
+ඦ්‍යඃ
+ර්‍ඦ
+ර්‍ඦා
+ර්‍ඦැ
+ර්‍ඦෑ
+ර්‍ඦි
+ර්‍ඦී
+ර්‍ඦු
+ර්‍ඦූ
+ර්‍ඦෘ
+ර්‍ඦෲ
+ර්‍ඦෟ
+ර්‍ඦෳ
+ර්‍ඦෙ
+ර්‍ඦේ
+ර්‍ඦෛ
+ර්‍ඦො
+ර්‍ඦෝ
+ර්‍ඦෞ
+ර්‍ඦ්
+ර්‍ඦං
+ර්‍ඦඃ
+ට
+ටා
+ටැ
+ටෑ
+ටි
+ටී
+ටු
+ටූ
+ටෘ
+ටෲ
+ටෟ
+ටෳ
+ටෙ
+ටේ
+ටෛ
+ටො
+ටෝ
+ටෞ
+ට්
+ටං
+ටඃ
+ට්‍ර
+ට්‍රා
+ට්‍රැ
+ට්‍රෑ
+ට්‍රි
+ට්‍රී
+ට්‍රු
+ට්‍රූ
+ට්‍රෘ
+ට්‍රෲ
+ට්‍රෟ
+ට්‍රෳ
+ට්‍රෙ
+ට්‍රේ
+ට්‍රෛ
+ට්‍රො
+ට්‍රෝ
+ට්‍රෞ
+ට්‍ර්
+ට්‍රං
+ට්‍රඃ
+ට්‍ය
+ට්‍යා
+ට්‍යැ
+ට්‍යෑ
+ට්‍යි
+ට්‍යී
+ට්‍යු
+ට්‍යූ
+ට්‍යෘ
+ට්‍යෲ
+ට්‍යෟ
+ට්‍යෳ
+ට්‍යෙ
+ට්‍යේ
+ට්‍යෛ
+ට්‍යො
+ට්‍යෝ
+ට්‍යෞ
+ට්‍ය්
+ට්‍යං
+ට්‍යඃ
+ර්‍ට
+ර්‍ටා
+ර්‍ටැ
+ර්‍ටෑ
+ර්‍ටි
+ර්‍ටී
+ර්‍ටු
+ර්‍ටූ
+ර්‍ටෘ
+ර්‍ටෲ
+ර්‍ටෟ
+ර්‍ටෳ
+ර්‍ටෙ
+ර්‍ටේ
+ර්‍ටෛ
+ර්‍ටො
+ර්‍ටෝ
+ර්‍ටෞ
+ර්‍ට්
+ර්‍ටං
+ර්‍ටඃ
+ඨ
+ඨා
+ඨැ
+ඨෑ
+ඨි
+ඨී
+ඨු
+ඨූ
+ඨෘ
+ඨෲ
+ඨෟ
+ඨෳ
+ඨෙ
+ඨේ
+ඨෛ
+ඨො
+ඨෝ
+ඨෞ
+ඨ්
+ඨං
+ඨඃ
+ඨ්‍ර
+ඨ්‍රා
+ඨ්‍රැ
+ඨ්‍රෑ
+ඨ්‍රි
+ඨ්‍රී
+ඨ්‍රු
+ඨ්‍රූ
+ඨ්‍රෘ
+ඨ්‍රෲ
+ඨ්‍රෟ
+ඨ්‍රෳ
+ඨ්‍රෙ
+ඨ්‍රේ
+ඨ්‍රෛ
+ඨ්‍රො
+ඨ්‍රෝ
+ඨ්‍රෞ
+ඨ්‍ර්
+ඨ්‍රං
+ඨ්‍රඃ
+ඨ්‍ය
+ඨ්‍යා
+ඨ්‍යැ
+ඨ්‍යෑ
+ඨ්‍යි
+ඨ්‍යී
+ඨ්‍යු
+ඨ්‍යූ
+ඨ්‍යෘ
+ඨ්‍යෲ
+ඨ්‍යෟ
+ඨ්‍යෳ
+ඨ්‍යෙ
+ඨ්‍යේ
+ඨ්‍යෛ
+ඨ්‍යො
+ඨ්‍යෝ
+ඨ්‍යෞ
+ඨ්‍ය්
+ඨ්‍යං
+ඨ්‍යඃ
+ර්‍ඨ
+ර්‍ඨා
+ර්‍ඨැ
+ර්‍ඨෑ
+ර්‍ඨි
+ර්‍ඨී
+ර්‍ඨු
+ර්‍ඨූ
+ර්‍ඨෘ
+ර්‍ඨෲ
+ර්‍ඨෟ
+ර්‍ඨෳ
+ර්‍ඨෙ
+ර්‍ඨේ
+ර්‍ඨෛ
+ර්‍ඨො
+ර්‍ඨෝ
+ර්‍ඨෞ
+ර්‍ඨ්
+ර්‍ඨං
+ර්‍ඨඃ
+ඩ
+ඩා
+ඩැ
+ඩෑ
+ඩි
+ඩී
+ඩු
+ඩූ
+ඩෘ
+ඩෲ
+ඩෟ
+ඩෳ
+ඩෙ
+ඩේ
+ඩෛ
+ඩො
+ඩෝ
+ඩෞ
+ඩ්
+ඩං
+ඩඃ
+ඩ්‍ර
+ඩ්‍රා
+ඩ්‍රැ
+ඩ්‍රෑ
+ඩ්‍රි
+ඩ්‍රී
+ඩ්‍රු
+ඩ්‍රූ
+ඩ්‍රෘ
+ඩ්‍රෲ
+ඩ්‍රෟ
+ඩ්‍රෳ
+ඩ්‍රෙ
+ඩ්‍රේ
+ඩ්‍රෛ
+ඩ්‍රො
+ඩ්‍රෝ
+ඩ්‍රෞ
+ඩ්‍ර්
+ඩ්‍රං
+ඩ්‍රඃ
+ඩ්‍ය
+ඩ්‍යා
+ඩ්‍යැ
+ඩ්‍යෑ
+ඩ්‍යි
+ඩ්‍යී
+ඩ්‍යු
+ඩ්‍යූ
+ඩ්‍යෘ
+ඩ්‍යෲ
+ඩ්‍යෟ
+ඩ්‍යෳ
+ඩ්‍යෙ
+ඩ්‍යේ
+ඩ්‍යෛ
+ඩ්‍යො
+ඩ්‍යෝ
+ඩ්‍යෞ
+ඩ්‍ය්
+ඩ්‍යං
+ඩ්‍යඃ
+ර්‍ඩ
+ර්‍ඩා
+ර්‍ඩැ
+ර්‍ඩෑ
+ර්‍ඩි
+ර්‍ඩී
+ර්‍ඩු
+ර්‍ඩූ
+ර්‍ඩෘ
+ර්‍ඩෲ
+ර්‍ඩෟ
+ර්‍ඩෳ
+ර්‍ඩෙ
+ර්‍ඩේ
+ර්‍ඩෛ
+ර්‍ඩො
+ර්‍ඩෝ
+ර්‍ඩෞ
+ර්‍ඩ්
+ර්‍ඩං
+ර්‍ඩඃ
+ඪ
+ඪා
+ඪැ
+ඪෑ
+ඪි
+ඪී
+ඪු
+ඪූ
+ඪෘ
+ඪෲ
+ඪෟ
+ඪෳ
+ඪෙ
+ඪේ
+ඪෛ
+ඪො
+ඪෝ
+ඪෞ
+ඪ්
+ඪං
+ඪඃ
+ඪ්‍ර
+ඪ්‍රා
+ඪ්‍රැ
+ඪ්‍රෑ
+ඪ්‍රි
+ඪ්‍රී
+ඪ්‍රු
+ඪ්‍රූ
+ඪ්‍රෘ
+ඪ්‍රෲ
+ඪ්‍රෟ
+ඪ්‍රෳ
+ඪ්‍රෙ
+ඪ්‍රේ
+ඪ්‍රෛ
+ඪ්‍රො
+ඪ්‍රෝ
+ඪ්‍රෞ
+ඪ්‍ර්
+ඪ්‍රං
+ඪ්‍රඃ
+ඪ්‍ය
+ඪ්‍යා
+ඪ්‍යැ
+ඪ්‍යෑ
+ඪ්‍යි
+ඪ්‍යී
+ඪ්‍යු
+ඪ්‍යූ
+ඪ්‍යෘ
+ඪ්‍යෲ
+ඪ්‍යෟ
+ඪ්‍යෳ
+ඪ්‍යෙ
+ඪ්‍යේ
+ඪ්‍යෛ
+ඪ්‍යො
+ඪ්‍යෝ
+ඪ්‍යෞ
+ඪ්‍ය්
+ඪ්‍යං
+ඪ්‍යඃ
+ර්‍ඪ
+ර්‍ඪා
+ර්‍ඪැ
+ර්‍ඪෑ
+ර්‍ඪි
+ර්‍ඪී
+ර්‍ඪු
+ර්‍ඪූ
+ර්‍ඪෘ
+ර්‍ඪෲ
+ර්‍ඪෟ
+ර්‍ඪෳ
+ර්‍ඪෙ
+ර්‍ඪේ
+ර්‍ඪෛ
+ර්‍ඪො
+ර්‍ඪෝ
+ර්‍ඪෞ
+ර්‍ඪ්
+ර්‍ඪං
+ර්‍ඪඃ
+ණ
+ණා
+ණැ
+ණෑ
+ණි
+ණී
+ණු
+ණූ
+ණෘ
+ණෲ
+ණෟ
+ණෳ
+ණෙ
+ණේ
+ණෛ
+ණො
+ණෝ
+ණෞ
+ණ්
+ණං
+ණඃ
+ණ්‍ර
+ණ්‍රා
+ණ්‍රැ
+ණ්‍රෑ
+ණ්‍රි
+ණ්‍රී
+ණ්‍රු
+ණ්‍රූ
+ණ්‍රෘ
+ණ්‍රෲ
+ණ්‍රෟ
+ණ්‍රෳ
+ණ්‍රෙ
+ණ්‍රේ
+ණ්‍රෛ
+ණ්‍රො
+ණ්‍රෝ
+ණ්‍රෞ
+ණ්‍ර්
+ණ්‍රං
+ණ්‍රඃ
+ණ්‍ය
+ණ්‍යා
+ණ්‍යැ
+ණ්‍යෑ
+ණ්‍යි
+ණ්‍යී
+ණ්‍යු
+ණ්‍යූ
+ණ්‍යෘ
+ණ්‍යෲ
+ණ්‍යෟ
+ණ්‍යෳ
+ණ්‍යෙ
+ණ්‍යේ
+ණ්‍යෛ
+ණ්‍යො
+ණ්‍යෝ
+ණ්‍යෞ
+ණ්‍ය්
+ණ්‍යං
+ණ්‍යඃ
+ර්‍ණ
+ර්‍ණා
+ර්‍ණැ
+ර්‍ණෑ
+ර්‍ණි
+ර්‍ණී
+ර්‍ණු
+ර්‍ණූ
+ර්‍ණෘ
+ර්‍ණෲ
+ර්‍ණෟ
+ර්‍ණෳ
+ර්‍ණෙ
+ර්‍ණේ
+ර්‍ණෛ
+ර්‍ණො
+ර්‍ණෝ
+ර්‍ණෞ
+ර්‍ණ්
+ර්‍ණං
+ර්‍ණඃ
+ඬ
+ඬා
+ඬැ
+ඬෑ
+ඬි
+ඬී
+ඬු
+ඬූ
+ඬෘ
+ඬෲ
+ඬෟ
+ඬෳ
+ඬෙ
+ඬේ
+ඬෛ
+ඬො
+ඬෝ
+ඬෞ
+ඬ්
+ඬං
+ඬඃ
+ඬ්‍ර
+ඬ්‍රා
+ඬ්‍රැ
+ඬ්‍රෑ
+ඬ්‍රි
+ඬ්‍රී
+ඬ්‍රු
+ඬ්‍රූ
+ඬ්‍රෘ
+ඬ්‍රෲ
+ඬ්‍රෟ
+ඬ්‍රෳ
+ඬ්‍රෙ
+ඬ්‍රේ
+ඬ්‍රෛ
+ඬ්‍රො
+ඬ්‍රෝ
+ඬ්‍රෞ
+ඬ්‍ර්
+ඬ්‍රං
+ඬ්‍රඃ
+ඬ්‍ය
+ඬ්‍යා
+ඬ්‍යැ
+ඬ්‍යෑ
+ඬ්‍යි
+ඬ්‍යී
+ඬ්‍යු
+ඬ්‍යූ
+ඬ්‍යෘ
+ඬ්‍යෲ
+ඬ්‍යෟ
+ඬ්‍යෳ
+ඬ්‍යෙ
+ඬ්‍යේ
+ඬ්‍යෛ
+ඬ්‍යො
+ඬ්‍යෝ
+ඬ්‍යෞ
+ඬ්‍ය්
+ඬ්‍යං
+ඬ්‍යඃ
+ර්‍ඬ
+ර්‍ඬා
+ර්‍ඬැ
+ර්‍ඬෑ
+ර්‍ඬි
+ර්‍ඬී
+ර්‍ඬු
+ර්‍ඬූ
+ර්‍ඬෘ
+ර්‍ඬෲ
+ර්‍ඬෟ
+ර්‍ඬෳ
+ර්‍ඬෙ
+ර්‍ඬේ
+ර්‍ඬෛ
+ර්‍ඬො
+ර්‍ඬෝ
+ර්‍ඬෞ
+ර්‍ඬ්
+ර්‍ඬං
+ර්‍ඬඃ
+ත
+තා
+තැ
+තෑ
+ති
+තී
+තු
+තූ
+තෘ
+තෲ
+තෟ
+තෳ
+තෙ
+තේ
+තෛ
+තො
+තෝ
+තෞ
+ත්
+තං
+තඃ
+ත්‍ර
+ත්‍රා
+ත්‍රැ
+ත්‍රෑ
+ත්‍රි
+ත්‍රී
+ත්‍රු
+ත්‍රූ
+ත්‍රෘ
+ත්‍රෲ
+ත්‍රෟ
+ත්‍රෳ
+ත්‍රෙ
+ත්‍රේ
+ත්‍රෛ
+ත්‍රො
+ත්‍රෝ
+ත්‍රෞ
+ත්‍ර්
+ත්‍රං
+ත්‍රඃ
+ත්‍ය
+ත්‍යා
+ත්‍යැ
+ත්‍යෑ
+ත්‍යි
+ත්‍යී
+ත්‍යු
+ත්‍යූ
+ත්‍යෘ
+ත්‍යෲ
+ත්‍යෟ
+ත්‍යෳ
+ත්‍යෙ
+ත්‍යේ
+ත්‍යෛ
+ත්‍යො
+ත්‍යෝ
+ත්‍යෞ
+ත්‍ය්
+ත්‍යං
+ත්‍යඃ
+ර්‍ත
+ර්‍තා
+ර්‍තැ
+ර්‍තෑ
+ර්‍ති
+ර්‍තී
+ර්‍තු
+ර්‍තූ
+ර්‍තෘ
+ර්‍තෲ
+ර්‍තෟ
+ර්‍තෳ
+ර්‍තෙ
+ර්‍තේ
+ර්‍තෛ
+ර්‍තො
+ර්‍තෝ
+ර්‍තෞ
+ර්‍ත්
+ර්‍තං
+ර්‍තඃ
+ථ
+ථා
+ථැ
+ථෑ
+ථි
+ථී
+ථු
+ථූ
+ථෘ
+ථෲ
+ථෟ
+ථෳ
+ථෙ
+ථේ
+ථෛ
+ථො
+ථෝ
+ථෞ
+ථ්
+ථං
+ථඃ
+ථ්‍ර
+ථ්‍රා
+ථ්‍රැ
+ථ්‍රෑ
+ථ්‍රි
+ථ්‍රී
+ථ්‍රු
+ථ්‍රූ
+ථ්‍රෘ
+ථ්‍රෲ
+ථ්‍රෟ
+ථ්‍රෳ
+ථ්‍රෙ
+ථ්‍රේ
+ථ්‍රෛ
+ථ්‍රො
+ථ්‍රෝ
+ථ්‍රෞ
+ථ්‍ර්
+ථ්‍රං
+ථ්‍රඃ
+ථ්‍ය
+ථ්‍යා
+ථ්‍යැ
+ථ්‍යෑ
+ථ්‍යි
+ථ්‍යී
+ථ්‍යු
+ථ්‍යූ
+ථ්‍යෘ
+ථ්‍යෲ
+ථ්‍යෟ
+ථ්‍යෳ
+ථ්‍යෙ
+ථ්‍යේ
+ථ්‍යෛ
+ථ්‍යො
+ථ්‍යෝ
+ථ්‍යෞ
+ථ්‍ය්
+ථ්‍යං
+ථ්‍යඃ
+ර්‍ථ
+ර්‍ථා
+ර්‍ථැ
+ර්‍ථෑ
+ර්‍ථි
+ර්‍ථී
+ර්‍ථු
+ර්‍ථූ
+ර්‍ථෘ
+ර්‍ථෲ
+ර්‍ථෟ
+ර්‍ථෳ
+ර්‍ථෙ
+ර්‍ථේ
+ර්‍ථෛ
+ර්‍ථො
+ර්‍ථෝ
+ර්‍ථෞ
+ර්‍ථ්
+ර්‍ථං
+ර්‍ථඃ
+ද
+දා
+දැ
+දෑ
+දි
+දී
+දු
+දූ
+දෘ
+දෲ
+දෟ
+දෳ
+දෙ
+දේ
+දෛ
+දො
+දෝ
+දෞ
+ද්
+දං
+දඃ
+ද්‍ර
+ද්‍රා
+ද්‍රැ
+ද්‍රෑ
+ද්‍රි
+ද්‍රී
+ද්‍රු
+ද්‍රූ
+ද්‍රෘ
+ද්‍රෲ
+ද්‍රෟ
+ද්‍රෳ
+ද්‍රෙ
+ද්‍රේ
+ද්‍රෛ
+ද්‍රො
+ද්‍රෝ
+ද්‍රෞ
+ද්‍ර්
+ද්‍රං
+ද්‍රඃ
+ද්‍ය
+ද්‍යා
+ද්‍යැ
+ද්‍යෑ
+ද්‍යි
+ද්‍යී
+ද්‍යු
+ද්‍යූ
+ද්‍යෘ
+ද්‍යෲ
+ද්‍යෟ
+ද්‍යෳ
+ද්‍යෙ
+ද්‍යේ
+ද්‍යෛ
+ද්‍යො
+ද්‍යෝ
+ද්‍යෞ
+ද්‍ය්
+ද්‍යං
+ද්‍යඃ
+ර්‍ද
+ර්‍දා
+ර්‍දැ
+ර්‍දෑ
+ර්‍දි
+ර්‍දී
+ර්‍දු
+ර්‍දූ
+ර්‍දෘ
+ර්‍දෲ
+ර්‍දෟ
+ර්‍දෳ
+ර්‍දෙ
+ර්‍දේ
+ර්‍දෛ
+ර්‍දො
+ර්‍දෝ
+ර්‍දෞ
+ර්‍ද්
+ර්‍දං
+ර්‍දඃ
+ධ
+ධා
+ධැ
+ධෑ
+ධි
+ධී
+ධු
+ධූ
+ධෘ
+ධෲ
+ධෟ
+ධෳ
+ධෙ
+ධේ
+ධෛ
+ධො
+ධෝ
+ධෞ
+ධ්
+ධං
+ධඃ
+ධ්‍ර
+ධ්‍රා
+ධ්‍රැ
+ධ්‍රෑ
+ධ්‍රි
+ධ්‍රී
+ධ්‍රු
+ධ්‍රූ
+ධ්‍රෘ
+ධ්‍රෲ
+ධ්‍රෟ
+ධ්‍රෳ
+ධ්‍රෙ
+ධ්‍රේ
+ධ්‍රෛ
+ධ්‍රො
+ධ්‍රෝ
+ධ්‍රෞ
+ධ්‍ර්
+ධ්‍රං
+ධ්‍රඃ
+ධ්‍ය
+ධ්‍යා
+ධ්‍යැ
+ධ්‍යෑ
+ධ්‍යි
+ධ්‍යී
+ධ්‍යු
+ධ්‍යූ
+ධ්‍යෘ
+ධ්‍යෲ
+ධ්‍යෟ
+ධ්‍යෳ
+ධ්‍යෙ
+ධ්‍යේ
+ධ්‍යෛ
+ධ්‍යො
+ධ්‍යෝ
+ධ්‍යෞ
+ධ්‍ය්
+ධ්‍යං
+ධ්‍යඃ
+ර්‍ධ
+ර්‍ධා
+ර්‍ධැ
+ර්‍ධෑ
+ර්‍ධි
+ර්‍ධී
+ර්‍ධු
+ර්‍ධූ
+ර්‍ධෘ
+ර්‍ධෲ
+ර්‍ධෟ
+ර්‍ධෳ
+ර්‍ධෙ
+ර්‍ධේ
+ර්‍ධෛ
+ර්‍ධො
+ර්‍ධෝ
+ර්‍ධෞ
+ර්‍ධ්
+ර්‍ධං
+ර්‍ධඃ
+න
+නා
+නැ
+නෑ
+නි
+නී
+නු
+නූ
+නෘ
+නෲ
+නෟ
+නෳ
+නෙ
+නේ
+නෛ
+නො
+නෝ
+නෞ
+න්
+නං
+නඃ
+න්‍ර
+න්‍රා
+න්‍රැ
+න්‍රෑ
+න්‍රි
+න්‍රී
+න්‍රු
+න්‍රූ
+න්‍රෘ
+න්‍රෲ
+න්‍රෟ
+න්‍රෳ
+න්‍රෙ
+න්‍රේ
+න්‍රෛ
+න්‍රො
+න්‍රෝ
+න්‍රෞ
+න්‍ර්
+න්‍රං
+න්‍රඃ
+න්‍ය
+න්‍යා
+න්‍යැ
+න්‍යෑ
+න්‍යි
+න්‍යී
+න්‍යු
+න්‍යූ
+න්‍යෘ
+න්‍යෲ
+න්‍යෟ
+න්‍යෳ
+න්‍යෙ
+න්‍යේ
+න්‍යෛ
+න්‍යො
+න්‍යෝ
+න්‍යෞ
+න්‍ය්
+න්‍යං
+න්‍යඃ
+ර්‍න
+ර්‍නා
+ර්‍නැ
+ර්‍නෑ
+ර්‍නි
+ර්‍නී
+ර්‍නු
+ර්‍නූ
+ර්‍නෘ
+ර්‍නෲ
+ර්‍නෟ
+ර්‍නෳ
+ර්‍නෙ
+ර්‍නේ
+ර්‍නෛ
+ර්‍නො
+ර්‍නෝ
+ර්‍නෞ
+ර්‍න්
+ර්‍නං
+ර්‍නඃ
+ඳ
+ඳා
+ඳැ
+ඳෑ
+ඳි
+ඳී
+ඳු
+ඳූ
+ඳෘ
+ඳෲ
+ඳෟ
+ඳෳ
+ඳෙ
+ඳේ
+ඳෛ
+ඳො
+ඳෝ
+ඳෞ
+ඳ්
+ඳං
+ඳඃ
+ඳ්‍ර
+ඳ්‍රා
+ඳ්‍රැ
+ඳ්‍රෑ
+ඳ්‍රි
+ඳ්‍රී
+ඳ්‍රු
+ඳ්‍රූ
+ඳ්‍රෘ
+ඳ්‍රෲ
+ඳ්‍රෟ
+ඳ්‍රෳ
+ඳ්‍රෙ
+ඳ්‍රේ
+ඳ්‍රෛ
+ඳ්‍රො
+ඳ්‍රෝ
+ඳ්‍රෞ
+ඳ්‍ර්
+ඳ්‍රං
+ඳ්‍රඃ
+ඳ්‍ය
+ඳ්‍යා
+ඳ්‍යැ
+ඳ්‍යෑ
+ඳ්‍යි
+ඳ්‍යී
+ඳ්‍යු
+ඳ්‍යූ
+ඳ්‍යෘ
+ඳ්‍යෲ
+ඳ්‍යෟ
+ඳ්‍යෳ
+ඳ්‍යෙ
+ඳ්‍යේ
+ඳ්‍යෛ
+ඳ්‍යො
+ඳ්‍යෝ
+ඳ්‍යෞ
+ඳ්‍ය්
+ඳ්‍යං
+ඳ්‍යඃ
+ර්‍ඳ
+ර්‍ඳා
+ර්‍ඳැ
+ර්‍ඳෑ
+ර්‍ඳි
+ර්‍ඳී
+ර්‍ඳු
+ර්‍ඳූ
+ර්‍ඳෘ
+ර්‍ඳෲ
+ර්‍ඳෟ
+ර්‍ඳෳ
+ර්‍ඳෙ
+ර්‍ඳේ
+ර්‍ඳෛ
+ර්‍ඳො
+ර්‍ඳෝ
+ර්‍ඳෞ
+ර්‍ඳ්
+ර්‍ඳං
+ර්‍ඳඃ
+ප
+පා
+පැ
+පෑ
+පි
+පී
+පු
+පූ
+පෘ
+පෲ
+පෟ
+පෳ
+පෙ
+පේ
+පෛ
+පො
+පෝ
+පෞ
+ප්
+පං
+පඃ
+ප්‍ර
+ප්‍රා
+ප්‍රැ
+ප්‍රෑ
+ප්‍රි
+ප්‍රී
+ප්‍රු
+ප්‍රූ
+ප්‍රෘ
+ප්‍රෲ
+ප්‍රෟ
+ප්‍රෳ
+ප්‍රෙ
+ප්‍රේ
+ප්‍රෛ
+ප්‍රො
+ප්‍රෝ
+ප්‍රෞ
+ප්‍ර්
+ප්‍රං
+ප්‍රඃ
+ප්‍ය
+ප්‍යා
+ප්‍යැ
+ප්‍යෑ
+ප්‍යි
+ප්‍යී
+ප්‍යු
+ප්‍යූ
+ප්‍යෘ
+ප්‍යෲ
+ප්‍යෟ
+ප්‍යෳ
+ප්‍යෙ
+ප්‍යේ
+ප්‍යෛ
+ප්‍යො
+ප්‍යෝ
+ප්‍යෞ
+ප්‍ය්
+ප්‍යං
+ප්‍යඃ
+ර්‍ප
+ර්‍පා
+ර්‍පැ
+ර්‍පෑ
+ර්‍පි
+ර්‍පී
+ර්‍පු
+ර්‍පූ
+ර්‍පෘ
+ර්‍පෲ
+ර්‍පෟ
+ර්‍පෳ
+ර්‍පෙ
+ර්‍පේ
+ර්‍පෛ
+ර්‍පො
+ර්‍පෝ
+ර්‍පෞ
+ර්‍ප්
+ර්‍පං
+ර්‍පඃ
+ඵ
+ඵා
+ඵැ
+ඵෑ
+ඵි
+ඵී
+ඵු
+ඵූ
+ඵෘ
+ඵෲ
+ඵෟ
+ඵෳ
+ඵෙ
+ඵේ
+ඵෛ
+ඵො
+ඵෝ
+ඵෞ
+ඵ්
+ඵං
+ඵඃ
+ඵ්‍ර
+ඵ්‍රා
+ඵ්‍රැ
+ඵ්‍රෑ
+ඵ්‍රි
+ඵ්‍රී
+ඵ්‍රු
+ඵ්‍රූ
+ඵ්‍රෘ
+ඵ්‍රෲ
+ඵ්‍රෟ
+ඵ්‍රෳ
+ඵ්‍රෙ
+ඵ්‍රේ
+ඵ්‍රෛ
+ඵ්‍රො
+ඵ්‍රෝ
+ඵ්‍රෞ
+ඵ්‍ර්
+ඵ්‍රං
+ඵ්‍රඃ
+ඵ්‍ය
+ඵ්‍යා
+ඵ්‍යැ
+ඵ්‍යෑ
+ඵ්‍යි
+ඵ්‍යී
+ඵ්‍යු
+ඵ්‍යූ
+ඵ්‍යෘ
+ඵ්‍යෲ
+ඵ්‍යෟ
+ඵ්‍යෳ
+ඵ්‍යෙ
+ඵ්‍යේ
+ඵ්‍යෛ
+ඵ්‍යො
+ඵ්‍යෝ
+ඵ්‍යෞ
+ඵ්‍ය්
+ඵ්‍යං
+ඵ්‍යඃ
+ර්‍ඵ
+ර්‍ඵා
+ර්‍ඵැ
+ර්‍ඵෑ
+ර්‍ඵි
+ර්‍ඵී
+ර්‍ඵු
+ර්‍ඵූ
+ර්‍ඵෘ
+ර්‍ඵෲ
+ර්‍ඵෟ
+ර්‍ඵෳ
+ර්‍ඵෙ
+ර්‍ඵේ
+ර්‍ඵෛ
+ර්‍ඵො
+ර්‍ඵෝ
+ර්‍ඵෞ
+ර්‍ඵ්
+ර්‍ඵං
+ර්‍ඵඃ
+බ
+බා
+බැ
+බෑ
+බි
+බී
+බු
+බූ
+බෘ
+බෲ
+බෟ
+බෳ
+බෙ
+බේ
+බෛ
+බො
+බෝ
+බෞ
+බ්
+බං
+බඃ
+බ්‍ර
+බ්‍රා
+බ්‍රැ
+බ්‍රෑ
+බ්‍රි
+බ්‍රී
+බ්‍රු
+බ්‍රූ
+බ්‍රෘ
+බ්‍රෲ
+බ්‍රෟ
+බ්‍රෳ
+බ්‍රෙ
+බ්‍රේ
+බ්‍රෛ
+බ්‍රො
+බ්‍රෝ
+බ්‍රෞ
+බ්‍ර්
+බ්‍රං
+බ්‍රඃ
+බ්‍ය
+බ්‍යා
+බ්‍යැ
+බ්‍යෑ
+බ්‍යි
+බ්‍යී
+බ්‍යු
+බ්‍යූ
+බ්‍යෘ
+බ්‍යෲ
+බ්‍යෟ
+බ්‍යෳ
+බ්‍යෙ
+බ්‍යේ
+බ්‍යෛ
+බ්‍යො
+බ්‍යෝ
+බ්‍යෞ
+බ්‍ය්
+බ්‍යං
+බ්‍යඃ
+ර්‍බ
+ර්‍බා
+ර්‍බැ
+ර්‍බෑ
+ර්‍බි
+ර්‍බී
+ර්‍බු
+ර්‍බූ
+ර්‍බෘ
+ර්‍බෲ
+ර්‍බෟ
+ර්‍බෳ
+ර්‍බෙ
+ර්‍බේ
+ර්‍බෛ
+ර්‍බො
+ර්‍බෝ
+ර්‍බෞ
+ර්‍බ්
+ර්‍බං
+ර්‍බඃ
+භ
+භා
+භැ
+භෑ
+භි
+භී
+භු
+භූ
+භෘ
+භෲ
+භෟ
+භෳ
+භෙ
+භේ
+භෛ
+භො
+භෝ
+භෞ
+භ්
+භං
+භඃ
+භ්‍ර
+භ්‍රා
+භ්‍රැ
+භ්‍රෑ
+භ්‍රි
+භ්‍රී
+භ්‍රු
+භ්‍රූ
+භ්‍රෘ
+භ්‍රෲ
+භ්‍රෟ
+භ්‍රෳ
+භ්‍රෙ
+භ්‍රේ
+භ්‍රෛ
+භ්‍රො
+භ්‍රෝ
+භ්‍රෞ
+භ්‍ර්
+භ්‍රං
+භ්‍රඃ
+භ්‍ය
+භ්‍යා
+භ්‍යැ
+භ්‍යෑ
+භ්‍යි
+භ්‍යී
+භ්‍යු
+භ්‍යූ
+භ්‍යෘ
+භ්‍යෲ
+භ්‍යෟ
+භ්‍යෳ
+භ්‍යෙ
+භ්‍යේ
+භ්‍යෛ
+භ්‍යො
+භ්‍යෝ
+භ්‍යෞ
+භ්‍ය්
+භ්‍යං
+භ්‍යඃ
+ර්‍භ
+ර්‍භා
+ර්‍භැ
+ර්‍භෑ
+ර්‍භි
+ර්‍භී
+ර්‍භු
+ර්‍භූ
+ර්‍භෘ
+ර්‍භෲ
+ර්‍භෟ
+ර්‍භෳ
+ර්‍භෙ
+ර්‍භේ
+ර්‍භෛ
+ර්‍භො
+ර්‍භෝ
+ර්‍භෞ
+ර්‍භ්
+ර්‍භං
+ර්‍භඃ
+ම
+මා
+මැ
+මෑ
+මි
+මී
+මු
+මූ
+මෘ
+මෲ
+මෟ
+මෳ
+මෙ
+මේ
+මෛ
+මො
+මෝ
+මෞ
+ම්
+මං
+මඃ
+ම්‍ර
+ම්‍රා
+ම්‍රැ
+ම්‍රෑ
+ම්‍රි
+ම්‍රී
+ම්‍රු
+ම්‍රූ
+ම්‍රෘ
+ම්‍රෲ
+ම්‍රෟ
+ම්‍රෳ
+ම්‍රෙ
+ම්‍රේ
+ම්‍රෛ
+ම්‍රො
+ම්‍රෝ
+ම්‍රෞ
+ම්‍ර්
+ම්‍රං
+ම්‍රඃ
+ම්‍ය
+ම්‍යා
+ම්‍යැ
+ම්‍යෑ
+ම්‍යි
+ම්‍යී
+ම්‍යු
+ම්‍යූ
+ම්‍යෘ
+ම්‍යෲ
+ම්‍යෟ
+ම්‍යෳ
+ම්‍යෙ
+ම්‍යේ
+ම්‍යෛ
+ම්‍යො
+ම්‍යෝ
+ම්‍යෞ
+ම්‍ය්
+ම්‍යං
+ම්‍යඃ
+ර්‍ම
+ර්‍මා
+ර්‍මැ
+ර්‍මෑ
+ර්‍මි
+ර්‍මී
+ර්‍මු
+ර්‍මූ
+ර්‍මෘ
+ර්‍මෲ
+ර්‍මෟ
+ර්‍මෳ
+ර්‍මෙ
+ර්‍මේ
+ර්‍මෛ
+ර්‍මො
+ර්‍මෝ
+ර්‍මෞ
+ර්‍ම්
+ර්‍මං
+ර්‍මඃ
+ඹ
+ඹා
+ඹැ
+ඹෑ
+ඹි
+ඹී
+ඹු
+ඹූ
+ඹෘ
+ඹෲ
+ඹෟ
+ඹෳ
+ඹෙ
+ඹේ
+ඹෛ
+ඹො
+ඹෝ
+ඹෞ
+ඹ්
+ඹං
+ඹඃ
+ඹ්‍ර
+ඹ්‍රා
+ඹ්‍රැ
+ඹ්‍රෑ
+ඹ්‍රි
+ඹ්‍රී
+ඹ්‍රු
+ඹ්‍රූ
+ඹ්‍රෘ
+ඹ්‍රෲ
+ඹ්‍රෟ
+ඹ්‍රෳ
+ඹ්‍රෙ
+ඹ්‍රේ
+ඹ්‍රෛ
+ඹ්‍රො
+ඹ්‍රෝ
+ඹ්‍රෞ
+ඹ්‍ර්
+ඹ්‍රං
+ඹ්‍රඃ
+ඹ්‍ය
+ඹ්‍යා
+ඹ්‍යැ
+ඹ්‍යෑ
+ඹ්‍යි
+ඹ්‍යී
+ඹ්‍යු
+ඹ්‍යූ
+ඹ්‍යෘ
+ඹ්‍යෲ
+ඹ්‍යෟ
+ඹ්‍යෳ
+ඹ්‍යෙ
+ඹ්‍යේ
+ඹ්‍යෛ
+ඹ්‍යො
+ඹ්‍යෝ
+ඹ්‍යෞ
+ඹ්‍ය්
+ඹ්‍යං
+ඹ්‍යඃ
+ර්‍ඹ
+ර්‍ඹා
+ර්‍ඹැ
+ර්‍ඹෑ
+ර්‍ඹි
+ර්‍ඹී
+ර්‍ඹු
+ර්‍ඹූ
+ර්‍ඹෘ
+ර්‍ඹෲ
+ර්‍ඹෟ
+ර්‍ඹෳ
+ර්‍ඹෙ
+ර්‍ඹේ
+ර්‍ඹෛ
+ර්‍ඹො
+ර්‍ඹෝ
+ර්‍ඹෞ
+ර්‍ඹ්
+ර්‍ඹං
+ර්‍ඹඃ
+ය
+යා
+යැ
+යෑ
+යි
+යී
+යු
+යූ
+යෘ
+යෲ
+යෟ
+යෳ
+යෙ
+යේ
+යෛ
+යො
+යෝ
+යෞ
+ය්
+යං
+යඃ
+ය්‍ර
+ය්‍රා
+ය්‍රැ
+ය්‍රෑ
+ය්‍රි
+ය්‍රී
+ය්‍රු
+ය්‍රූ
+ය්‍රෘ
+ය්‍රෲ
+ය්‍රෟ
+ය්‍රෳ
+ය්‍රෙ
+ය්‍රේ
+ය්‍රෛ
+ය්‍රො
+ය්‍රෝ
+ය්‍රෞ
+ය්‍ර්
+ය්‍රං
+ය්‍රඃ
+ය්‍ය
+ය්‍යා
+ය්‍යැ
+ය්‍යෑ
+ය්‍යි
+ය්‍යී
+ය්‍යු
+ය්‍යූ
+ය්‍යෘ
+ය්‍යෲ
+ය්‍යෟ
+ය්‍යෳ
+ය්‍යෙ
+ය්‍යේ
+ය්‍යෛ
+ය්‍යො
+ය්‍යෝ
+ය්‍යෞ
+ය්‍ය්
+ය්‍යං
+ය්‍යඃ
+ර්‍ය
+ර්‍යා
+ර්‍යැ
+ර්‍යෑ
+ර්‍යි
+ර්‍යී
+ර්‍යු
+ර්‍යූ
+ර්‍යෘ
+ර්‍යෲ
+ර්‍යෟ
+ර්‍යෳ
+ර්‍යෙ
+ර්‍යේ
+ර්‍යෛ
+ර්‍යො
+ර්‍යෝ
+ර්‍යෞ
+ර්‍ය්
+ර්‍යං
+ර්‍යඃ
+ර
+රා
+රැ
+රෑ
+රි
+රී
+රු
+රූ
+රෘ
+රෲ
+රෟ
+රෳ
+රෙ
+රේ
+රෛ
+රො
+රෝ
+රෞ
+ර්
+රං
+රඃ
+ර්‍ර
+ර්‍රා
+ර්‍රැ
+ර්‍රෑ
+ර්‍රි
+ර්‍රී
+ර්‍රු
+ර්‍රූ
+ර්‍රෘ
+ර්‍රෲ
+ර්‍රෟ
+ර්‍රෳ
+ර්‍රෙ
+ර්‍රේ
+ර්‍රෛ
+ර්‍රො
+ර්‍රෝ
+ර්‍රෞ
+ර්‍ර්
+ර්‍රං
+ර්‍රඃ
+ර්‍ය
+ර්‍යා
+ර්‍යැ
+ර්‍යෑ
+ර්‍යි
+ර්‍යී
+ර්‍යු
+ර්‍යූ
+ර්‍යෘ
+ර්‍යෲ
+ර්‍යෟ
+ර්‍යෳ
+ර්‍යෙ
+ර්‍යේ
+ර්‍යෛ
+ර්‍යො
+ර්‍යෝ
+ර්‍යෞ
+ර්‍ය්
+ර්‍යං
+ර්‍යඃ
+ර්‍ර
+ර්‍රා
+ර්‍රැ
+ර්‍රෑ
+ර්‍රි
+ර්‍රී
+ර්‍රු
+ර්‍රූ
+ර්‍රෘ
+ර්‍රෲ
+ර්‍රෟ
+ර්‍රෳ
+ර්‍රෙ
+ර්‍රේ
+ර්‍රෛ
+ර්‍රො
+ර්‍රෝ
+ර්‍රෞ
+ර්‍ර්
+ර්‍රං
+ර්‍රඃ
+ල
+ලා
+ලැ
+ලෑ
+ලි
+ලී
+ලු
+ලූ
+ලෘ
+ලෲ
+ලෟ
+ලෳ
+ලෙ
+ලේ
+ලෛ
+ලො
+ලෝ
+ලෞ
+ල්
+ලං
+ලඃ
+ල්‍ර
+ල්‍රා
+ල්‍රැ
+ල්‍රෑ
+ල්‍රි
+ල්‍රී
+ල්‍රු
+ල්‍රූ
+ල්‍රෘ
+ල්‍රෲ
+ල්‍රෟ
+ල්‍රෳ
+ල්‍රෙ
+ල්‍රේ
+ල්‍රෛ
+ල්‍රො
+ල්‍රෝ
+ල්‍රෞ
+ල්‍ර්
+ල්‍රං
+ල්‍රඃ
+ල්‍ය
+ල්‍යා
+ල්‍යැ
+ල්‍යෑ
+ල්‍යි
+ල්‍යී
+ල්‍යු
+ල්‍යූ
+ල්‍යෘ
+ල්‍යෲ
+ල්‍යෟ
+ල්‍යෳ
+ල්‍යෙ
+ල්‍යේ
+ල්‍යෛ
+ල්‍යො
+ල්‍යෝ
+ල්‍යෞ
+ල්‍ය්
+ල්‍යං
+ල්‍යඃ
+ර්‍ල
+ර්‍ලා
+ර්‍ලැ
+ර්‍ලෑ
+ර්‍ලි
+ර්‍ලී
+ර්‍ලු
+ර්‍ලූ
+ර්‍ලෘ
+ර්‍ලෲ
+ර්‍ලෟ
+ර්‍ලෳ
+ර්‍ලෙ
+ර්‍ලේ
+ර්‍ලෛ
+ර්‍ලො
+ර්‍ලෝ
+ර්‍ලෞ
+ර්‍ල්
+ර්‍ලං
+ර්‍ලඃ
+ව
+වා
+වැ
+වෑ
+වි
+වී
+වු
+වූ
+වෘ
+වෲ
+වෟ
+වෳ
+වෙ
+වේ
+වෛ
+වො
+වෝ
+වෞ
+ව්
+වං
+වඃ
+ව්‍ර
+ව්‍රා
+ව්‍රැ
+ව්‍රෑ
+ව්‍රි
+ව්‍රී
+ව්‍රු
+ව්‍රූ
+ව්‍රෘ
+ව්‍රෲ
+ව්‍රෟ
+ව්‍රෳ
+ව්‍රෙ
+ව්‍රේ
+ව්‍රෛ
+ව්‍රො
+ව්‍රෝ
+ව්‍රෞ
+ව්‍ර්
+ව්‍රං
+ව්‍රඃ
+ව්‍ය
+ව්‍යා
+ව්‍යැ
+ව්‍යෑ
+ව්‍යි
+ව්‍යී
+ව්‍යු
+ව්‍යූ
+ව්‍යෘ
+ව්‍යෲ
+ව්‍යෟ
+ව්‍යෳ
+ව්‍යෙ
+ව්‍යේ
+ව්‍යෛ
+ව්‍යො
+ව්‍යෝ
+ව්‍යෞ
+ව්‍ය්
+ව්‍යං
+ව්‍යඃ
+ර්‍ව
+ර්‍වා
+ර්‍වැ
+ර්‍වෑ
+ර්‍වි
+ර්‍වී
+ර්‍වු
+ර්‍වූ
+ර්‍වෘ
+ර්‍වෲ
+ර්‍වෟ
+ර්‍වෳ
+ර්‍වෙ
+ර්‍වේ
+ර්‍වෛ
+ර්‍වො
+ර්‍වෝ
+ර්‍වෞ
+ර්‍ව්
+ර්‍වං
+ර්‍වඃ
+ශ
+ශා
+ශැ
+ශෑ
+ශි
+ශී
+ශු
+ශූ
+ශෘ
+ශෲ
+ශෟ
+ශෳ
+ශෙ
+ශේ
+ශෛ
+ශො
+ශෝ
+ශෞ
+ශ්
+ශං
+ශඃ
+ශ්‍ර
+ශ්‍රා
+ශ්‍රැ
+ශ්‍රෑ
+ශ්‍රි
+ශ්‍රී
+ශ්‍රු
+ශ්‍රූ
+ශ්‍රෘ
+ශ්‍රෲ
+ශ්‍රෟ
+ශ්‍රෳ
+ශ්‍රෙ
+ශ්‍රේ
+ශ්‍රෛ
+ශ්‍රො
+ශ්‍රෝ
+ශ්‍රෞ
+ශ්‍ර්
+ශ්‍රං
+ශ්‍රඃ
+ශ්‍ය
+ශ්‍යා
+ශ්‍යැ
+ශ්‍යෑ
+ශ්‍යි
+ශ්‍යී
+ශ්‍යු
+ශ්‍යූ
+ශ්‍යෘ
+ශ්‍යෲ
+ශ්‍යෟ
+ශ්‍යෳ
+ශ්‍යෙ
+ශ්‍යේ
+ශ්‍යෛ
+ශ්‍යො
+ශ්‍යෝ
+ශ්‍යෞ
+ශ්‍ය්
+ශ්‍යං
+ශ්‍යඃ
+ර්‍ශ
+ර්‍ශා
+ර්‍ශැ
+ර්‍ශෑ
+ර්‍ශි
+ර්‍ශී
+ර්‍ශු
+ර්‍ශූ
+ර්‍ශෘ
+ර්‍ශෲ
+ර්‍ශෟ
+ර්‍ශෳ
+ර්‍ශෙ
+ර්‍ශේ
+ර්‍ශෛ
+ර්‍ශො
+ර්‍ශෝ
+ර්‍ශෞ
+ර්‍ශ්
+ර්‍ශං
+ර්‍ශඃ
+ෂ
+ෂා
+ෂැ
+ෂෑ
+ෂි
+ෂී
+ෂු
+ෂූ
+ෂෘ
+ෂෲ
+ෂෟ
+ෂෳ
+ෂෙ
+ෂේ
+ෂෛ
+ෂො
+ෂෝ
+ෂෞ
+ෂ්
+ෂං
+ෂඃ
+ෂ්‍ර
+ෂ්‍රා
+ෂ්‍රැ
+ෂ්‍රෑ
+ෂ්‍රි
+ෂ්‍රී
+ෂ්‍රු
+ෂ්‍රූ
+ෂ්‍රෘ
+ෂ්‍රෲ
+ෂ්‍රෟ
+ෂ්‍රෳ
+ෂ්‍රෙ
+ෂ්‍රේ
+ෂ්‍රෛ
+ෂ්‍රො
+ෂ්‍රෝ
+ෂ්‍රෞ
+ෂ්‍ර්
+ෂ්‍රං
+ෂ්‍රඃ
+ෂ්‍ය
+ෂ්‍යා
+ෂ්‍යැ
+ෂ්‍යෑ
+ෂ්‍යි
+ෂ්‍යී
+ෂ්‍යු
+ෂ්‍යූ
+ෂ්‍යෘ
+ෂ්‍යෲ
+ෂ්‍යෟ
+ෂ්‍යෳ
+ෂ්‍යෙ
+ෂ්‍යේ
+ෂ්‍යෛ
+ෂ්‍යො
+ෂ්‍යෝ
+ෂ්‍යෞ
+ෂ්‍ය්
+ෂ්‍යං
+ෂ්‍යඃ
+ර්‍ෂ
+ර්‍ෂා
+ර්‍ෂැ
+ර්‍ෂෑ
+ර්‍ෂි
+ර්‍ෂී
+ර්‍ෂු
+ර්‍ෂූ
+ර්‍ෂෘ
+ර්‍ෂෲ
+ර්‍ෂෟ
+ර්‍ෂෳ
+ර්‍ෂෙ
+ර්‍ෂේ
+ර්‍ෂෛ
+ර්‍ෂො
+ර්‍ෂෝ
+ර්‍ෂෞ
+ර්‍ෂ්
+ර්‍ෂං
+ර්‍ෂඃ
+ස
+සා
+සැ
+සෑ
+සි
+සී
+සු
+සූ
+සෘ
+සෲ
+සෟ
+සෳ
+සෙ
+සේ
+සෛ
+සො
+සෝ
+සෞ
+ස්
+සං
+සඃ
+ස්‍ර
+ස්‍රා
+ස්‍රැ
+ස්‍රෑ
+ස්‍රි
+ස්‍රී
+ස්‍රු
+ස්‍රූ
+ස්‍රෘ
+ස්‍රෲ
+ස්‍රෟ
+ස්‍රෳ
+ස්‍රෙ
+ස්‍රේ
+ස්‍රෛ
+ස්‍රො
+ස්‍රෝ
+ස්‍රෞ
+ස්‍ර්
+ස්‍රං
+ස්‍රඃ
+ස්‍ය
+ස්‍යා
+ස්‍යැ
+ස්‍යෑ
+ස්‍යි
+ස්‍යී
+ස්‍යු
+ස්‍යූ
+ස්‍යෘ
+ස්‍යෲ
+ස්‍යෟ
+ස්‍යෳ
+ස්‍යෙ
+ස්‍යේ
+ස්‍යෛ
+ස්‍යො
+ස්‍යෝ
+ස්‍යෞ
+ස්‍ය්
+ස්‍යං
+ස්‍යඃ
+ර්‍ස
+ර්‍සා
+ර්‍සැ
+ර්‍සෑ
+ර්‍සි
+ර්‍සී
+ර්‍සු
+ර්‍සූ
+ර්‍සෘ
+ර්‍සෲ
+ර්‍සෟ
+ර්‍සෳ
+ර්‍සෙ
+ර්‍සේ
+ර්‍සෛ
+ර්‍සො
+ර්‍සෝ
+ර්‍සෞ
+ර්‍ස්
+ර්‍සං
+ර්‍සඃ
+හ
+හා
+හැ
+හෑ
+හි
+හී
+හු
+හූ
+හෘ
+හෲ
+හෟ
+හෳ
+හෙ
+හේ
+හෛ
+හො
+හෝ
+හෞ
+හ්
+හං
+හඃ
+හ්‍ර
+හ්‍රා
+හ්‍රැ
+හ්‍රෑ
+හ්‍රි
+හ්‍රී
+හ්‍රු
+හ්‍රූ
+හ්‍රෘ
+හ්‍රෲ
+හ්‍රෟ
+හ්‍රෳ
+හ්‍රෙ
+හ්‍රේ
+හ්‍රෛ
+හ්‍රො
+හ්‍රෝ
+හ්‍රෞ
+හ්‍ර්
+හ්‍රං
+හ්‍රඃ
+හ්‍ය
+හ්‍යා
+හ්‍යැ
+හ්‍යෑ
+හ්‍යි
+හ්‍යී
+හ්‍යු
+හ්‍යූ
+හ්‍යෘ
+හ්‍යෲ
+හ්‍යෟ
+හ්‍යෳ
+හ්‍යෙ
+හ්‍යේ
+හ්‍යෛ
+හ්‍යො
+හ්‍යෝ
+හ්‍යෞ
+හ්‍ය්
+හ්‍යං
+හ්‍යඃ
+ර්‍හ
+ර්‍හා
+ර්‍හැ
+ර්‍හෑ
+ර්‍හි
+ර්‍හී
+ර්‍හු
+ර්‍හූ
+ර්‍හෘ
+ර්‍හෲ
+ර්‍හෟ
+ර්‍හෳ
+ර්‍හෙ
+ර්‍හේ
+ර්‍හෛ
+ර්‍හො
+ර්‍හෝ
+ර්‍හෞ
+ර්‍හ්
+ර්‍හං
+ර්‍හඃ
+ළ
+ළා
+ළැ
+ළෑ
+ළි
+ළී
+ළු
+ළූ
+ළෘ
+ළෲ
+ළෟ
+ළෳ
+ළෙ
+ළේ
+ළෛ
+ළො
+ළෝ
+ළෞ
+ළ්
+ළං
+ළඃ
+ළ්‍ර
+ළ්‍රා
+ළ්‍රැ
+ළ්‍රෑ
+ළ්‍රි
+ළ්‍රී
+ළ්‍රු
+ළ්‍රූ
+ළ්‍රෘ
+ළ්‍රෲ
+ළ්‍රෟ
+ළ්‍රෳ
+ළ්‍රෙ
+ළ්‍රේ
+ළ්‍රෛ
+ළ්‍රො
+ළ්‍රෝ
+ළ්‍රෞ
+ළ්‍ර්
+ළ්‍රං
+ළ්‍රඃ
+ළ්‍ය
+ළ්‍යා
+ළ්‍යැ
+ළ්‍යෑ
+ළ්‍යි
+ළ්‍යී
+ළ්‍යු
+ළ්‍යූ
+ළ්‍යෘ
+ළ්‍යෲ
+ළ්‍යෟ
+ළ්‍යෳ
+ළ්‍යෙ
+ළ්‍යේ
+ළ්‍යෛ
+ළ්‍යො
+ළ්‍යෝ
+ළ්‍යෞ
+ළ්‍ය්
+ළ්‍යං
+ළ්‍යඃ
+ර්‍ළ
+ර්‍ළා
+ර්‍ළැ
+ර්‍ළෑ
+ර්‍ළි
+ර්‍ළී
+ර්‍ළු
+ර්‍ළූ
+ර්‍ළෘ
+ර්‍ළෲ
+ර්‍ළෟ
+ර්‍ළෳ
+ර්‍ළෙ
+ර්‍ළේ
+ර්‍ළෛ
+ර්‍ළො
+ර්‍ළෝ
+ර්‍ළෞ
+ර්‍ළ්
+ර්‍ළං
+ර්‍ළඃ
+ෆ
+ෆා
+ෆැ
+ෆෑ
+ෆි
+ෆී
+ෆු
+ෆූ
+ෆෘ
+ෆෲ
+ෆෟ
+ෆෳ
+ෆෙ
+ෆේ
+ෆෛ
+ෆො
+ෆෝ
+ෆෞ
+ෆ්
+ෆං
+ෆඃ
+ෆ්‍ර
+ෆ්‍රා
+ෆ්‍රැ
+ෆ්‍රෑ
+ෆ්‍රි
+ෆ්‍රී
+ෆ්‍රු
+ෆ්‍රූ
+ෆ්‍රෘ
+ෆ්‍රෲ
+ෆ්‍රෟ
+ෆ්‍රෳ
+ෆ්‍රෙ
+ෆ්‍රේ
+ෆ්‍රෛ
+ෆ්‍රො
+ෆ්‍රෝ
+ෆ්‍රෞ
+ෆ්‍ර්
+ෆ්‍රං
+ෆ්‍රඃ
+ෆ්‍ය
+ෆ්‍යා
+ෆ්‍යැ
+ෆ්‍යෑ
+ෆ්‍යි
+ෆ්‍යී
+ෆ්‍යු
+ෆ්‍යූ
+ෆ්‍යෘ
+ෆ්‍යෲ
+ෆ්‍යෟ
+ෆ්‍යෳ
+ෆ්‍යෙ
+ෆ්‍යේ
+ෆ්‍යෛ
+ෆ්‍යො
+ෆ්‍යෝ
+ෆ්‍යෞ
+ෆ්‍ය්
+ෆ්‍යං
+ෆ්‍යඃ
+ර්‍ෆ
+ර්‍ෆා
+ර්‍ෆැ
+ර්‍ෆෑ
+ර්‍ෆි
+ර්‍ෆී
+ර්‍ෆු
+ර්‍ෆූ
+ර්‍ෆෘ
+ර්‍ෆෲ
+ර්‍ෆෟ
+ර්‍ෆෳ
+ර්‍ෆෙ
+ර්‍ෆේ
+ර්‍ෆෛ
+ර්‍ෆො
+ර්‍ෆෝ
+ර්‍ෆෞ
+ර්‍ෆ්
+ර්‍ෆං
+ර්‍ෆඃ
+ක්‍ෂ
+ක්‍ෂා
+ක්‍ෂැ
+ක්‍ෂෑ
+ක්‍ෂි
+ක්‍ෂී
+ක්‍ෂු
+ක්‍ෂූ
+ක්‍ෂෘ
+ක්‍ෂෲ
+ක්‍ෂෟ
+ක්‍ෂෳ
+ක්‍ෂෙ
+ක්‍ෂේ
+ක්‍ෂෛ
+ක්‍ෂො
+ක්‍ෂෝ
+ක්‍ෂෞ
+ක්‍ෂ්
+ක්‍ෂං
+ක්‍ෂඃ
+ක්‍ෂ්‍ර
+ක්‍ෂ්‍රා
+ක්‍ෂ්‍රැ
+ක්‍ෂ්‍රෑ
+ක්‍ෂ්‍රි
+ක්‍ෂ්‍රී
+ක්‍ෂ්‍රු
+ක්‍ෂ්‍රූ
+ක්‍ෂ්‍රෘ
+ක්‍ෂ්‍රෲ
+ක්‍ෂ්‍රෟ
+ක්‍ෂ්‍රෳ
+ක්‍ෂ්‍රෙ
+ක්‍ෂ්‍රේ
+ක්‍ෂ්‍රෛ
+ක්‍ෂ්‍රො
+ක්‍ෂ්‍රෝ
+ක්‍ෂ්‍රෞ
+ක්‍ෂ්‍ර්
+ක්‍ෂ්‍රං
+ක්‍ෂ්‍රඃ
+ක්‍ෂ්‍ය
+ක්‍ෂ්‍යා
+ක්‍ෂ්‍යැ
+ක්‍ෂ්‍යෑ
+ක්‍ෂ්‍යි
+ක්‍ෂ්‍යී
+ක්‍ෂ්‍යු
+ක්‍ෂ්‍යූ
+ක්‍ෂ්‍යෘ
+ක්‍ෂ්‍යෲ
+ක්‍ෂ්‍යෟ
+ක්‍ෂ්‍යෳ
+ක්‍ෂ්‍යෙ
+ක්‍ෂ්‍යේ
+ක්‍ෂ්‍යෛ
+ක්‍ෂ්‍යො
+ක්‍ෂ්‍යෝ
+ක්‍ෂ්‍යෞ
+ක්‍ෂ්‍ය්
+ක්‍ෂ්‍යං
+ක්‍ෂ්‍යඃ
+ර්‍ක්‍ෂ
+ර්‍ක්‍ෂා
+ර්‍ක්‍ෂැ
+ර්‍ක්‍ෂෑ
+ර්‍ක්‍ෂි
+ර්‍ක්‍ෂී
+ර්‍ක්‍ෂු
+ර්‍ක්‍ෂූ
+ර්‍ක්‍ෂෘ
+ර්‍ක්‍ෂෲ
+ර්‍ක්‍ෂෟ
+ර්‍ක්‍ෂෳ
+ර්‍ක්‍ෂෙ
+ර්‍ක්‍ෂේ
+ර්‍ක්‍ෂෛ
+ර්‍ක්‍ෂො
+ර්‍ක්‍ෂෝ
+ර්‍ක්‍ෂෞ
+ර්‍ක්‍ෂ්
+ර්‍ක්‍ෂං
+ර්‍ක්‍ෂඃ
+ක්‍ව
+ක්‍වා
+ක්‍වැ
+ක්‍වෑ
+ක්‍වි
+ක්‍වී
+ක්‍වු
+ක්‍වූ
+ක්‍වෘ
+ක්‍වෲ
+ක්‍වෟ
+ක්‍වෳ
+ක්‍වෙ
+ක්‍වේ
+ක්‍වෛ
+ක්‍වො
+ක්‍වෝ
+ක්‍වෞ
+ක්‍ව්
+ක්‍වං
+ක්‍වඃ
+ක්‍ව්‍ර
+ක්‍ව්‍රා
+ක්‍ව්‍රැ
+ක්‍ව්‍රෑ
+ක්‍ව්‍රි
+ක්‍ව්‍රී
+ක්‍ව්‍රු
+ක්‍ව්‍රූ
+ක්‍ව්‍රෘ
+ක්‍ව්‍රෲ
+ක්‍ව්‍රෟ
+ක්‍ව්‍රෳ
+ක්‍ව්‍රෙ
+ක්‍ව්‍රේ
+ක්‍ව්‍රෛ
+ක්‍ව්‍රො
+ක්‍ව්‍රෝ
+ක්‍ව්‍රෞ
+ක්‍ව්‍ර්
+ක්‍ව්‍රං
+ක්‍ව්‍රඃ
+ක්‍ව්‍ය
+ක්‍ව්‍යා
+ක්‍ව්‍යැ
+ක්‍ව්‍යෑ
+ක්‍ව්‍යි
+ක්‍ව්‍යී
+ක්‍ව්‍යු
+ක්‍ව්‍යූ
+ක්‍ව්‍යෘ
+ක්‍ව්‍යෲ
+ක්‍ව්‍යෟ
+ක්‍ව්‍යෳ
+ක්‍ව්‍යෙ
+ක්‍ව්‍යේ
+ක්‍ව්‍යෛ
+ක්‍ව්‍යො
+ක්‍ව්‍යෝ
+ක්‍ව්‍යෞ
+ක්‍ව්‍ය්
+ක්‍ව්‍යං
+ක්‍ව්‍යඃ
+ර්‍ක්‍ව
+ර්‍ක්‍වා
+ර්‍ක්‍වැ
+ර්‍ක්‍වෑ
+ර්‍ක්‍වි
+ර්‍ක්‍වී
+ර්‍ක්‍වු
+ර්‍ක්‍වූ
+ර්‍ක්‍වෘ
+ර්‍ක්‍වෲ
+ර්‍ක්‍වෟ
+ර්‍ක්‍වෳ
+ර්‍ක්‍වෙ
+ර්‍ක්‍වේ
+ර්‍ක්‍වෛ
+ර්‍ක්‍වො
+ර්‍ක්‍වෝ
+ර්‍ක්‍වෞ
+ර්‍ක්‍ව්
+ර්‍ක්‍වං
+ර්‍ක්‍වඃ
+ත්‍ථ
+ත්‍ථා
+ත්‍ථැ
+ත්‍ථෑ
+ත්‍ථි
+ත්‍ථී
+ත්‍ථු
+ත්‍ථූ
+ත්‍ථෘ
+ත්‍ථෲ
+ත්‍ථෟ
+ත්‍ථෳ
+ත්‍ථෙ
+ත්‍ථේ
+ත්‍ථෛ
+ත්‍ථො
+ත්‍ථෝ
+ත්‍ථෞ
+ත්‍ථ්
+ත්‍ථං
+ත්‍ථඃ
+ත්‍ථ්‍ර
+ත්‍ථ්‍රා
+ත්‍ථ්‍රැ
+ත්‍ථ්‍රෑ
+ත්‍ථ්‍රි
+ත්‍ථ්‍රී
+ත්‍ථ්‍රු
+ත්‍ථ්‍රූ
+ත්‍ථ්‍රෘ
+ත්‍ථ්‍රෲ
+ත්‍ථ්‍රෟ
+ත්‍ථ්‍රෳ
+ත්‍ථ්‍රෙ
+ත්‍ථ්‍රේ
+ත්‍ථ්‍රෛ
+ත්‍ථ්‍රො
+ත්‍ථ්‍රෝ
+ත්‍ථ්‍රෞ
+ත්‍ථ්‍ර්
+ත්‍ථ්‍රං
+ත්‍ථ්‍රඃ
+ත්‍ථ්‍ය
+ත්‍ථ්‍යා
+ත්‍ථ්‍යැ
+ත්‍ථ්‍යෑ
+ත්‍ථ්‍යි
+ත්‍ථ්‍යී
+ත්‍ථ්‍යු
+ත්‍ථ්‍යූ
+ත්‍ථ්‍යෘ
+ත්‍ථ්‍යෲ
+ත්‍ථ්‍යෟ
+ත්‍ථ්‍යෳ
+ත්‍ථ්‍යෙ
+ත්‍ථ්‍යේ
+ත්‍ථ්‍යෛ
+ත්‍ථ්‍යො
+ත්‍ථ්‍යෝ
+ත්‍ථ්‍යෞ
+ත්‍ථ්‍ය්
+ත්‍ථ්‍යං
+ත්‍ථ්‍යඃ
+ර්‍ත්‍ථ
+ර්‍ත්‍ථා
+ර්‍ත්‍ථැ
+ර්‍ත්‍ථෑ
+ර්‍ත්‍ථි
+ර්‍ත්‍ථී
+ර්‍ත්‍ථු
+ර්‍ත්‍ථූ
+ර්‍ත්‍ථෘ
+ර්‍ත්‍ථෲ
+ර්‍ත්‍ථෟ
+ර්‍ත්‍ථෳ
+ර්‍ත්‍ථෙ
+ර්‍ත්‍ථේ
+ර්‍ත්‍ථෛ
+ර්‍ත්‍ථො
+ර්‍ත්‍ථෝ
+ර්‍ත්‍ථෞ
+ර්‍ත්‍ථ්
+ර්‍ත්‍ථං
+ර්‍ත්‍ථඃ
+ත්‍ව
+ත්‍වා
+ත්‍වැ
+ත්‍වෑ
+ත්‍වි
+ත්‍වී
+ත්‍වු
+ත්‍වූ
+ත්‍වෘ
+ත්‍වෲ
+ත්‍වෟ
+ත්‍වෳ
+ත්‍වෙ
+ත්‍වේ
+ත්‍වෛ
+ත්‍වො
+ත්‍වෝ
+ත්‍වෞ
+ත්‍ව්
+ත්‍වං
+ත්‍වඃ
+ත්‍ව්‍ර
+ත්‍ව්‍රා
+ත්‍ව්‍රැ
+ත්‍ව්‍රෑ
+ත්‍ව්‍රි
+ත්‍ව්‍රී
+ත්‍ව්‍රු
+ත්‍ව්‍රූ
+ත්‍ව්‍රෘ
+ත්‍ව්‍රෲ
+ත්‍ව්‍රෟ
+ත්‍ව්‍රෳ
+ත්‍ව්‍රෙ
+ත්‍ව්‍රේ
+ත්‍ව්‍රෛ
+ත්‍ව්‍රො
+ත්‍ව්‍රෝ
+ත්‍ව්‍රෞ
+ත්‍ව්‍ර්
+ත්‍ව්‍රං
+ත්‍ව්‍රඃ
+ත්‍ව්‍ය
+ත්‍ව්‍යා
+ත්‍ව්‍යැ
+ත්‍ව්‍යෑ
+ත්‍ව්‍යි
+ත්‍ව්‍යී
+ත්‍ව්‍යු
+ත්‍ව්‍යූ
+ත්‍ව්‍යෘ
+ත්‍ව්‍යෲ
+ත්‍ව්‍යෟ
+ත්‍ව්‍යෳ
+ත්‍ව්‍යෙ
+ත්‍ව්‍යේ
+ත්‍ව්‍යෛ
+ත්‍ව්‍යො
+ත්‍ව්‍යෝ
+ත්‍ව්‍යෞ
+ත්‍ව්‍ය්
+ත්‍ව්‍යං
+ත්‍ව්‍යඃ
+ර්‍ත්‍ව
+ර්‍ත්‍වා
+ර්‍ත්‍වැ
+ර්‍ත්‍වෑ
+ර්‍ත්‍වි
+ර්‍ත්‍වී
+ර්‍ත්‍වු
+ර්‍ත්‍වූ
+ර්‍ත්‍වෘ
+ර්‍ත්‍වෲ
+ර්‍ත්‍වෟ
+ර්‍ත්‍වෳ
+ර්‍ත්‍වෙ
+ර්‍ත්‍වේ
+ර්‍ත්‍වෛ
+ර්‍ත්‍වො
+ර්‍ත්‍වෝ
+ර්‍ත්‍වෞ
+ර්‍ත්‍ව්
+ර්‍ත්‍වං
+ර්‍ත්‍වඃ
+න්‍ථ
+න්‍ථා
+න්‍ථැ
+න්‍ථෑ
+න්‍ථි
+න්‍ථී
+න්‍ථු
+න්‍ථූ
+න්‍ථෘ
+න්‍ථෲ
+න්‍ථෟ
+න්‍ථෳ
+න්‍ථෙ
+න්‍ථේ
+න්‍ථෛ
+න්‍ථො
+න්‍ථෝ
+න්‍ථෞ
+න්‍ථ්
+න්‍ථං
+න්‍ථඃ
+න්‍ථ්‍ර
+න්‍ථ්‍රා
+න්‍ථ්‍රැ
+න්‍ථ්‍රෑ
+න්‍ථ්‍රි
+න්‍ථ්‍රී
+න්‍ථ්‍රු
+න්‍ථ්‍රූ
+න්‍ථ්‍රෘ
+න්‍ථ්‍රෲ
+න්‍ථ්‍රෟ
+න්‍ථ්‍රෳ
+න්‍ථ්‍රෙ
+න්‍ථ්‍රේ
+න්‍ථ්‍රෛ
+න්‍ථ්‍රො
+න්‍ථ්‍රෝ
+න්‍ථ්‍රෞ
+න්‍ථ්‍ර්
+න්‍ථ්‍රං
+න්‍ථ්‍රඃ
+න්‍ථ්‍ය
+න්‍ථ්‍යා
+න්‍ථ්‍යැ
+න්‍ථ්‍යෑ
+න්‍ථ්‍යි
+න්‍ථ්‍යී
+න්‍ථ්‍යු
+න්‍ථ්‍යූ
+න්‍ථ්‍යෘ
+න්‍ථ්‍යෲ
+න්‍ථ්‍යෟ
+න්‍ථ්‍යෳ
+න්‍ථ්‍යෙ
+න්‍ථ්‍යේ
+න්‍ථ්‍යෛ
+න්‍ථ්‍යො
+න්‍ථ්‍යෝ
+න්‍ථ්‍යෞ
+න්‍ථ්‍ය්
+න්‍ථ්‍යං
+න්‍ථ්‍යඃ
+ර්‍න්‍ථ
+ර්‍න්‍ථා
+ර්‍න්‍ථැ
+ර්‍න්‍ථෑ
+ර්‍න්‍ථි
+ර්‍න්‍ථී
+ර්‍න්‍ථු
+ර්‍න්‍ථූ
+ර්‍න්‍ථෘ
+ර්‍න්‍ථෲ
+ර්‍න්‍ථෟ
+ර්‍න්‍ථෳ
+ර්‍න්‍ථෙ
+ර්‍න්‍ථේ
+ර්‍න්‍ථෛ
+ර්‍න්‍ථො
+ර්‍න්‍ථෝ
+ර්‍න්‍ථෞ
+ර්‍න්‍ථ්
+ර්‍න්‍ථං
+ර්‍න්‍ථඃ
+න්‍ද
+න්‍දා
+න්‍දැ
+න්‍දෑ
+න්‍දි
+න්‍දී
+න්‍දු
+න්‍දූ
+න්‍දෘ
+න්‍දෲ
+න්‍දෟ
+න්‍දෳ
+න්‍දෙ
+න්‍දේ
+න්‍දෛ
+න්‍දො
+න්‍දෝ
+න්‍දෞ
+න්‍ද්
+න්‍දං
+න්‍දඃ
+න්‍ද්‍ර
+න්‍ද්‍රා
+න්‍ද්‍රැ
+න්‍ද්‍රෑ
+න්‍ද්‍රි
+න්‍ද්‍රී
+න්‍ද්‍රු
+න්‍ද්‍රූ
+න්‍ද්‍රෘ
+න්‍ද්‍රෲ
+න්‍ද්‍රෟ
+න්‍ද්‍රෳ
+න්‍ද්‍රෙ
+න්‍ද්‍රේ
+න්‍ද්‍රෛ
+න්‍ද්‍රො
+න්‍ද්‍රෝ
+න්‍ද්‍රෞ
+න්‍ද්‍ර්
+න්‍ද්‍රං
+න්‍ද්‍රඃ
+න්‍ද්‍ය
+න්‍ද්‍යා
+න්‍ද්‍යැ
+න්‍ද්‍යෑ
+න්‍ද්‍යි
+න්‍ද්‍යී
+න්‍ද්‍යු
+න්‍ද්‍යූ
+න්‍ද්‍යෘ
+න්‍ද්‍යෲ
+න්‍ද්‍යෟ
+න්‍ද්‍යෳ
+න්‍ද්‍යෙ
+න්‍ද්‍යේ
+න්‍ද්‍යෛ
+න්‍ද්‍යො
+න්‍ද්‍යෝ
+න්‍ද්‍යෞ
+න්‍ද්‍ය්
+න්‍ද්‍යං
+න්‍ද්‍යඃ
+ර්‍න්‍ද
+ර්‍න්‍දා
+ර්‍න්‍දැ
+ර්‍න්‍දෑ
+ර්‍න්‍දි
+ර්‍න්‍දී
+ර්‍න්‍දු
+ර්‍න්‍දූ
+ර්‍න්‍දෘ
+ර්‍න්‍දෲ
+ර්‍න්‍දෟ
+ර්‍න්‍දෳ
+ර්‍න්‍දෙ
+ර්‍න්‍දේ
+ර්‍න්‍දෛ
+ර්‍න්‍දො
+ර්‍න්‍දෝ
+ර්‍න්‍දෞ
+ර්‍න්‍ද්
+ර්‍න්‍දං
+ර්‍න්‍දඃ
+න්‍ධ
+න්‍ධා
+න්‍ධැ
+න්‍ධෑ
+න්‍ධි
+න්‍ධී
+න්‍ධු
+න්‍ධූ
+න්‍ධෘ
+න්‍ධෲ
+න්‍ධෟ
+න්‍ධෳ
+න්‍ධෙ
+න්‍ධේ
+න්‍ධෛ
+න්‍ධො
+න්‍ධෝ
+න්‍ධෞ
+න්‍ධ්
+න්‍ධං
+න්‍ධඃ
+න්‍ධ්‍ර
+න්‍ධ්‍රා
+න්‍ධ්‍රැ
+න්‍ධ්‍රෑ
+න්‍ධ්‍රි
+න්‍ධ්‍රී
+න්‍ධ්‍රු
+න්‍ධ්‍රූ
+න්‍ධ්‍රෘ
+න්‍ධ්‍රෲ
+න්‍ධ්‍රෟ
+න්‍ධ්‍රෳ
+න්‍ධ්‍රෙ
+න්‍ධ්‍රේ
+න්‍ධ්‍රෛ
+න්‍ධ්‍රො
+න්‍ධ්‍රෝ
+න්‍ධ්‍රෞ
+න්‍ධ්‍ර්
+න්‍ධ්‍රං
+න්‍ධ්‍රඃ
+න්‍ධ්‍ය
+න්‍ධ්‍යා
+න්‍ධ්‍යැ
+න්‍ධ්‍යෑ
+න්‍ධ්‍යි
+න්‍ධ්‍යී
+න්‍ධ්‍යු
+න්‍ධ්‍යූ
+න්‍ධ්‍යෘ
+න්‍ධ්‍යෲ
+න්‍ධ්‍යෟ
+න්‍ධ්‍යෳ
+න්‍ධ්‍යෙ
+න්‍ධ්‍යේ
+න්‍ධ්‍යෛ
+න්‍ධ්‍යො
+න්‍ධ්‍යෝ
+න්‍ධ්‍යෞ
+න්‍ධ්‍ය්
+න්‍ධ්‍යං
+න්‍ධ්‍යඃ
+ර්‍න්‍ධ
+ර්‍න්‍ධා
+ර්‍න්‍ධැ
+ර්‍න්‍ධෑ
+ර්‍න්‍ධි
+ර්‍න්‍ධී
+ර්‍න්‍ධු
+ර්‍න්‍ධූ
+ර්‍න්‍ධෘ
+ර්‍න්‍ධෲ
+ර්‍න්‍ධෟ
+ර්‍න්‍ධෳ
+ර්‍න්‍ධෙ
+ර්‍න්‍ධේ
+ර්‍න්‍ධෛ
+ර්‍න්‍ධො
+ර්‍න්‍ධෝ
+ර්‍න්‍ධෞ
+ර්‍න්‍ධ්
+ර්‍න්‍ධං
+ර්‍න්‍ධඃ
+න්‍ව
+න්‍වා
+න්‍වැ
+න්‍වෑ
+න්‍වි
+න්‍වී
+න්‍වු
+න්‍වූ
+න්‍වෘ
+න්‍වෲ
+න්‍වෟ
+න්‍වෳ
+න්‍වෙ
+න්‍වේ
+න්‍වෛ
+න්‍වො
+න්‍වෝ
+න්‍වෞ
+න්‍ව්
+න්‍වං
+න්‍වඃ
+න්‍ව්‍ර
+න්‍ව්‍රා
+න්‍ව්‍රැ
+න්‍ව්‍රෑ
+න්‍ව්‍රි
+න්‍ව්‍රී
+න්‍ව්‍රු
+න්‍ව්‍රූ
+න්‍ව්‍රෘ
+න්‍ව්‍රෲ
+න්‍ව්‍රෟ
+න්‍ව්‍රෳ
+න්‍ව්‍රෙ
+න්‍ව්‍රේ
+න්‍ව්‍රෛ
+න්‍ව්‍රො
+න්‍ව්‍රෝ
+න්‍ව්‍රෞ
+න්‍ව්‍ර්
+න්‍ව්‍රං
+න්‍ව්‍රඃ
+න්‍ව්‍ය
+න්‍ව්‍යා
+න්‍ව්‍යැ
+න්‍ව්‍යෑ
+න්‍ව්‍යි
+න්‍ව්‍යී
+න්‍ව්‍යු
+න්‍ව්‍යූ
+න්‍ව්‍යෘ
+න්‍ව්‍යෲ
+න්‍ව්‍යෟ
+න්‍ව්‍යෳ
+න්‍ව්‍යෙ
+න්‍ව්‍යේ
+න්‍ව්‍යෛ
+න්‍ව්‍යො
+න්‍ව්‍යෝ
+න්‍ව්‍යෞ
+න්‍ව්‍ය්
+න්‍ව්‍යං
+න්‍ව්‍යඃ
+ර්‍න්‍ව
+ර්‍න්‍වා
+ර්‍න්‍වැ
+ර්‍න්‍වෑ
+ර්‍න්‍වි
+ර්‍න්‍වී
+ර්‍න්‍වු
+ර්‍න්‍වූ
+ර්‍න්‍වෘ
+ර්‍න්‍වෲ
+ර්‍න්‍වෟ
+ර්‍න්‍වෳ
+ර්‍න්‍වෙ
+ර්‍න්‍වේ
+ර්‍න්‍වෛ
+ර්‍න්‍වො
+ර්‍න්‍වෝ
+ර්‍න්‍වෞ
+ර්‍න්‍ව්
+ර්‍න්‍වං
+ර්‍න්‍වඃ
+ද්‍ව
+ද්‍වා
+ද්‍වැ
+ද්‍වෑ
+ද්‍වි
+ද්‍වී
+ද්‍වු
+ද්‍වූ
+ද්‍වෘ
+ද්‍වෲ
+ද්‍වෟ
+ද්‍වෳ
+ද්‍වෙ
+ද්‍වේ
+ද්‍වෛ
+ද්‍වො
+ද්‍වෝ
+ද්‍වෞ
+ද්‍ව්
+ද්‍වං
+ද්‍වඃ
+ද්‍ව්‍ර
+ද්‍ව්‍රා
+ද්‍ව්‍රැ
+ද්‍ව්‍රෑ
+ද්‍ව්‍රි
+ද්‍ව්‍රී
+ද්‍ව්‍රු
+ද්‍ව්‍රූ
+ද්‍ව්‍රෘ
+ද්‍ව්‍රෲ
+ද්‍ව්‍රෟ
+ද්‍ව්‍රෳ
+ද්‍ව්‍රෙ
+ද්‍ව්‍රේ
+ද්‍ව්‍රෛ
+ද්‍ව්‍රො
+ද්‍ව්‍රෝ
+ද්‍ව්‍රෞ
+ද්‍ව්‍ර්
+ද්‍ව්‍රං
+ද්‍ව්‍රඃ
+ද්‍ව්‍ය
+ද්‍ව්‍යා
+ද්‍ව්‍යැ
+ද්‍ව්‍යෑ
+ද්‍ව්‍යි
+ද්‍ව්‍යී
+ද්‍ව්‍යු
+ද්‍ව්‍යූ
+ද්‍ව්‍යෘ
+ද්‍ව්‍යෲ
+ද්‍ව්‍යෟ
+ද්‍ව්‍යෳ
+ද්‍ව්‍යෙ
+ද්‍ව්‍යේ
+ද්‍ව්‍යෛ
+ද්‍ව්‍යො
+ද්‍ව්‍යෝ
+ද්‍ව්‍යෞ
+ද්‍ව්‍ය්
+ද්‍ව්‍යං
+ද්‍ව්‍යඃ
+ර්‍ද්‍ව
+ර්‍ද්‍වා
+ර්‍ද්‍වැ
+ර්‍ද්‍වෑ
+ර්‍ද්‍වි
+ර්‍ද්‍වී
+ර්‍ද්‍වු
+ර්‍ද්‍වූ
+ර්‍ද්‍වෘ
+ර්‍ද්‍වෲ
+ර්‍ද්‍වෟ
+ර්‍ද්‍වෳ
+ර්‍ද්‍වෙ
+ර්‍ද්‍වේ
+ර්‍ද්‍වෛ
+ර්‍ද්‍වො
+ර්‍ද්‍වෝ
+ර්‍ද්‍වෞ
+ර්‍ද්‍ව්
+ර්‍ද්‍වං
+ර්‍ද්‍වඃ
+ද්‍ධ
+ද්‍ධා
+ද්‍ධැ
+ද්‍ධෑ
+ද්‍ධි
+ද්‍ධී
+ද්‍ධු
+ද්‍ධූ
+ද්‍ධෘ
+ද්‍ධෲ
+ද්‍ධෟ
+ද්‍ධෳ
+ද්‍ධෙ
+ද්‍ධේ
+ද්‍ධෛ
+ද්‍ධො
+ද්‍ධෝ
+ද්‍ධෞ
+ද්‍ධ්
+ද්‍ධං
+ද්‍ධඃ
+ද්‍ධ්‍ර
+ද්‍ධ්‍රා
+ද්‍ධ්‍රැ
+ද්‍ධ්‍රෑ
+ද්‍ධ්‍රි
+ද්‍ධ්‍රී
+ද්‍ධ්‍රු
+ද්‍ධ්‍රූ
+ද්‍ධ්‍රෘ
+ද්‍ධ්‍රෲ
+ද්‍ධ්‍රෟ
+ද්‍ධ්‍රෳ
+ද්‍ධ්‍රෙ
+ද්‍ධ්‍රේ
+ද්‍ධ්‍රෛ
+ද්‍ධ්‍රො
+ද්‍ධ්‍රෝ
+ද්‍ධ්‍රෞ
+ද්‍ධ්‍ර්
+ද්‍ධ්‍රං
+ද්‍ධ්‍රඃ
+ද්‍ධ්‍ය
+ද්‍ධ්‍යා
+ද්‍ධ්‍යැ
+ද්‍ධ්‍යෑ
+ද්‍ධ්‍යි
+ද්‍ධ්‍යී
+ද්‍ධ්‍යු
+ද්‍ධ්‍යූ
+ද්‍ධ්‍යෘ
+ද්‍ධ්‍යෲ
+ද්‍ධ්‍යෟ
+ද්‍ධ්‍යෳ
+ද්‍ධ්‍යෙ
+ද්‍ධ්‍යේ
+ද්‍ධ්‍යෛ
+ද්‍ධ්‍යො
+ද්‍ධ්‍යෝ
+ද්‍ධ්‍යෞ
+ද්‍ධ්‍ය්
+ද්‍ධ්‍යං
+ද්‍ධ්‍යඃ
+ර්‍ද්‍ධ
+ර්‍ද්‍ධා
+ර්‍ද්‍ධැ
+ර්‍ද්‍ධෑ
+ර්‍ද්‍ධි
+ර්‍ද්‍ධී
+ර්‍ද්‍ධු
+ර්‍ද්‍ධූ
+ර්‍ද්‍ධෘ
+ර්‍ද්‍ධෲ
+ර්‍ද්‍ධෟ
+ර්‍ද්‍ධෳ
+ර්‍ද්‍ධෙ
+ර්‍ද්‍ධේ
+ර්‍ද්‍ධෛ
+ර්‍ද්‍ධො
+ර්‍ද්‍ධෝ
+ර්‍ද්‍ධෞ
+ර්‍ද්‍ධ්
+ර්‍ද්‍ධං
+ර්‍ද්‍ධඃ
+ට්‍ඨ
+ට්‍ඨා
+ට්‍ඨැ
+ට්‍ඨෑ
+ට්‍ඨි
+ට්‍ඨී
+ට්‍ඨු
+ට්‍ඨූ
+ට්‍ඨෘ
+ට්‍ඨෲ
+ට්‍ඨෟ
+ට්‍ඨෳ
+ට්‍ඨෙ
+ට්‍ඨේ
+ට්‍ඨෛ
+ට්‍ඨො
+ට්‍ඨෝ
+ට්‍ඨෞ
+ට්‍ඨ්
+ට්‍ඨං
+ට්‍ඨඃ
+ට්‍ඨ්‍ර
+ට්‍ඨ්‍රා
+ට්‍ඨ්‍රැ
+ට්‍ඨ්‍රෑ
+ට්‍ඨ්‍රි
+ට්‍ඨ්‍රී
+ට්‍ඨ්‍රු
+ට්‍ඨ්‍රූ
+ට්‍ඨ්‍රෘ
+ට්‍ඨ්‍රෲ
+ට්‍ඨ්‍රෟ
+ට්‍ඨ්‍රෳ
+ට්‍ඨ්‍රෙ
+ට්‍ඨ්‍රේ
+ට්‍ඨ්‍රෛ
+ට්‍ඨ්‍රො
+ට්‍ඨ්‍රෝ
+ට්‍ඨ්‍රෞ
+ට්‍ඨ්‍ර්
+ට්‍ඨ්‍රං
+ට්‍ඨ්‍රඃ
+ට්‍ඨ්‍ය
+ට්‍ඨ්‍යා
+ට්‍ඨ්‍යැ
+ට්‍ඨ්‍යෑ
+ට්‍ඨ්‍යි
+ට්‍ඨ්‍යී
+ට්‍ඨ්‍යු
+ට්‍ඨ්‍යූ
+ට්‍ඨ්‍යෘ
+ට්‍ඨ්‍යෲ
+ට්‍ඨ්‍යෟ
+ට්‍ඨ්‍යෳ
+ට්‍ඨ්‍යෙ
+ට්‍ඨ්‍යේ
+ට්‍ඨ්‍යෛ
+ට්‍ඨ්‍යො
+ට්‍ඨ්‍යෝ
+ට්‍ඨ්‍යෞ
+ට්‍ඨ්‍ය්
+ට්‍ඨ්‍යං
+ට්‍ඨ්‍යඃ
+ර්‍ට්‍ඨ
+ර්‍ට්‍ඨා
+ර්‍ට්‍ඨැ
+ර්‍ට්‍ඨෑ
+ර්‍ට්‍ඨි
+ර්‍ට්‍ඨී
+ර්‍ට්‍ඨු
+ර්‍ට්‍ඨූ
+ර්‍ට්‍ඨෘ
+ර්‍ට්‍ඨෲ
+ර්‍ට්‍ඨෟ
+ර්‍ට්‍ඨෳ
+ර්‍ට්‍ඨෙ
+ර්‍ට්‍ඨේ
+ර්‍ට්‍ඨෛ
+ර්‍ට්‍ඨො
+ර්‍ට්‍ඨෝ
+ර්‍ට්‍ඨෞ
+ර්‍ට්‍ඨ්
+ර්‍ට්‍ඨං
+ර්‍ට්‍ඨඃ
+්‍ර
+්‍ය
+ර්‍
+෴
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/misc/misc.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/misc/misc.txt
new file mode 100644 (file)
index 0000000..c43cb95
--- /dev/null
@@ -0,0 +1,41 @@
+ක
+කං
+කඃ
+කා
+කැ
+කෑ
+කි
+කී
+කු
+කූ
+කෘ
+කෲ
+කෟ
+කෳ
+කෙ
+කො
+කෞ
+කේ
+කේ
+කෛ
+කො
+කෝ
+කෝ
+කෞ
+ක්
+ක්‍ය
+ක්‍ර
+ක‍්‍රම
+ර්‍ම
+ශී‍්‍ර
+ස්ට්‍රේ
+ග්‍යෙ
+ර්‍ය්‍ය
+එ‍ඬේ
+න්ගේ
+න්‍ගේ
+න‍්ගේ
+ර්‍
+ක්‍රා
+කේ
+ගර්‍
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/misc/reph.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/misc/reph.txt
new file mode 100644 (file)
index 0000000..f5f2f53
--- /dev/null
@@ -0,0 +1,3 @@
+ර්ධ
+ර්‍ධ
+ර්‌ධ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/misc/split-matras.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/misc/split-matras.txt
new file mode 100644 (file)
index 0000000..2a73a40
--- /dev/null
@@ -0,0 +1,4 @@
+කේ
+කො
+කෝ
+කෞ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/LICENSE b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/LICENSE
new file mode 100644 (file)
index 0000000..2cf8228
--- /dev/null
@@ -0,0 +1,19 @@
+Copyright (c) 2010 Red Hat Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/MANIFEST
new file mode 100644 (file)
index 0000000..0658824
--- /dev/null
@@ -0,0 +1,3 @@
+codepoint
+gpos
+gsub
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/README b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/README
new file mode 100644 (file)
index 0000000..8bad337
--- /dev/null
@@ -0,0 +1,13 @@
+Introduction:
+A system to compare a reference image of a text character, word or phrase with another image of the character, word or phrase that was rendered by a text rendering engine. Differences between the reference image and the rendered image may be recorded for subsequent analysis. Performance of a text rendering engine producing text according to typographical rules applicable to a natural language can be evaluated by one with no knowledge or ability to read the natural language
+
+
+COPYRIGHT: Red Hat Inc. 2010
+
+license: this project is under MIT license
+
+
+AUTHORS:
+Lawrence Lim
+Satyabrata Maitra
+Amanpreet Singh Brar
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/SOURCES b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/SOURCES
new file mode 100644 (file)
index 0000000..0ed1a89
--- /dev/null
@@ -0,0 +1,2 @@
+https://fedorahosted.org/utrrs/
+Fetched in late 2011
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt
new file mode 100644 (file)
index 0000000..0e8810a
--- /dev/null
@@ -0,0 +1,41 @@
+ක
+ඛ
+ග
+ඝ
+ඞ
+ඟ
+ච
+ඡ
+ජ
+ඣ
+ඤ
+ඥ
+ඦ
+ට
+ඨ
+ඩ
+ඪ
+ණ
+ඬ
+ත
+ථ
+ද
+ධ
+න
+ඳ
+ප
+ඵ
+බ
+භ
+ම
+ඹ
+ය
+ර
+ල
+ව
+ශ
+ෂ
+ස
+හ
+ළ
+ෆ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt
new file mode 100644 (file)
index 0000000..27911e4
--- /dev/null
@@ -0,0 +1,17 @@
+ා
+ැ
+ෑ
+ි
+ී
+ු
+ූ
+ෘ
+ෙ
+ේ
+ෛ
+ො
+ෝ
+ෞ
+ෟ
+ෲ
+ෳ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt
new file mode 100644 (file)
index 0000000..939be04
--- /dev/null
@@ -0,0 +1,18 @@
+අ
+ආ
+ඇ
+ඈ
+ඉ
+ඊ
+උ
+ඌ
+ඍ
+ඎ
+ඏ
+ඐ
+එ
+ඒ
+ඓ
+ඔ
+ඕ
+ඖ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-Punctuation.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-Punctuation.txt
new file mode 100644 (file)
index 0000000..d6c6809
--- /dev/null
@@ -0,0 +1 @@
+෴
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt
new file mode 100644 (file)
index 0000000..a65a9ba
--- /dev/null
@@ -0,0 +1,3 @@
+ං
+ඃ
+්
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/codepoint/MANIFEST
new file mode 100644 (file)
index 0000000..48e393c
--- /dev/null
@@ -0,0 +1,5 @@
+IndicFontFeatureCodepoint-Consonants.txt
+IndicFontFeatureCodepoint-DependentVowels.txt
+IndicFontFeatureCodepoint-IndependentVowels.txt
+IndicFontFeatureCodepoint-Punctuation.txt
+IndicFontFeatureCodepoint-VariousSigns.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gpos/IndicFontFeatureGPOS.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gpos/IndicFontFeatureGPOS.txt
new file mode 100644 (file)
index 0000000..7cd1eac
--- /dev/null
@@ -0,0 +1,162 @@
+කේ
+කෛ
+කී
+කෑ
+කූ
+කෲ
+ගේ
+ගෛ
+ගී
+ගෑ
+ගූ
+ගෲ
+තේ
+තෛ
+තී
+තෑ
+තූ
+තෲ
+ටේ
+ටෛ
+ටී
+ටෑ
+ටූ
+ටෲ
+ඩේ
+ඩෛ
+ඩී
+ඩෑ
+ඩූ
+ඩෲ
+චේ
+චෛ
+චී
+චෑ
+චූ
+චෲ
+ඡේ
+ඡෛ
+ඡී
+ඡෑ
+ඡූ
+ඡෲ
+ණේ
+ණෛ
+ණී
+ණෑ
+ණූ
+ණෲ
+පේ
+පෛ
+පී
+පෑ
+පූ
+පෲ
+දේ
+දෛ
+දී
+දෑ
+දූ
+දෲ
+ඳේ
+ඳෛ
+ඳී
+ඳෑ
+ඳූ
+ඳෲ
+ධේ
+ධෛ
+ධී
+ධෑ
+ධූ
+ධෲ
+බේ
+බෛ
+බී
+බෑ
+බූ
+බෲ
+මේ
+මෛ
+මී
+මෑ
+මූ
+මෲ
+වේ
+වෛ
+වී
+වෑ
+වූ
+වෲ
+හේ
+හෛ
+හී
+හෑ
+හූ
+හෲ
+රේ
+රෛ
+රී
+රෑ
+රූ
+රෲ
+ෆේ
+ෆෛ
+ෆී
+ෆෑ
+ෆූ
+ෆෲ
+ළේ
+ළෛ
+ළී
+ළෑ
+ළූ
+ළෲ
+ලේ
+ලෛ
+ලී
+ලෑ
+ලූ
+ලෲ
+යේ
+යෛ
+යී
+යෑ
+යූ
+යෲ
+සේ
+සෛ
+සී
+සෑ
+සූ
+සෲ
+ශේ
+ශෛ
+ශී
+ශෑ
+ශූ
+ශෲ
+ෂේ
+ෂෛ
+ෂී
+ෂෑ
+ෂූ
+ෂෲ
+ඹේ
+ඹෛ
+ඹී
+ඹෑ
+ඹූ
+ඹෲ
+ඵේ
+ඵෛ
+ඵී
+ඵෑ
+ඵූ
+ඵෲ
+ථේ
+ථෛ
+ථී
+ථෑ
+ථූ
+ථෲ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gpos/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gpos/MANIFEST
new file mode 100644 (file)
index 0000000..f4d0fc3
--- /dev/null
@@ -0,0 +1 @@
+IndicFontFeatureGPOS.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Conjunct.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Conjunct.txt
new file mode 100644 (file)
index 0000000..a100c69
--- /dev/null
@@ -0,0 +1 @@
+්‍
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Rakaaraansaya.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Rakaaraansaya.txt
new file mode 100644 (file)
index 0000000..bf89a71
--- /dev/null
@@ -0,0 +1,41 @@
+ක්‍ර
+ඛ්‍ර
+ග්‍ර
+ඝ්‍ර
+ඞ්‍ර
+ඟ්‍ර
+ච්‍ර
+ඡ්‍ර
+ජ්‍ර
+ඣ්‍ර
+ඤ්‍ර
+ඥ්‍ර
+ඦ්‍ර
+ට්‍ර
+ඨ්‍ර
+ඩ්‍ර
+ඪ්‍ර
+ණ්‍ර
+ඬ්‍ර
+ත්‍ර
+ථ්‍ර
+ද්‍ර
+ධ්‍ර
+න්‍ර
+ඳ්‍ර
+ප්‍ර
+ඵ්‍ර
+බ්‍ර
+භ්‍ර
+ම්‍ර
+ඹ්‍ර
+ය්‍ර
+ර්‍ර
+ල්‍ර
+ව්‍ර
+ශ්‍ර
+ෂ්‍ර
+ස්‍ර
+හ්‍ර
+ළ්‍ර
+ෆ්‍ර
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Repaya.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Repaya.txt
new file mode 100644 (file)
index 0000000..6f0293d
--- /dev/null
@@ -0,0 +1,42 @@
+කර්‍ක
+ඛර්‍ක
+ගර්‍ක
+ඝර්‍ක
+ඞර්‍ක
+ඟර්‍ක
+චර්‍ක
+ඡර්‍ක
+ජර්‍ක
+ඣර්‍ක
+ඤර්‍ක
+ඥර්‍ක
+ඦර්‍ක
+ටර්‍ක
+ඨර්‍ක
+ඩර්‍ක
+ඪර්‍ක
+ණර්‍ක
+ඬර්‍ක
+තර්‍ක
+ථර්‍ක
+දර්‍ක
+ධර්‍ක
+නර්‍ක
+ඳර්‍ක
+පර්‍ක
+ඵර්‍ක
+බර්‍ක
+භර්‍ක
+මර්‍ක
+ඹර්‍ක
+යර්‍ක
+රර්‍ක
+ලර්‍ක
+වර්‍ක
+ශර්‍ක
+ෂර්‍ක
+සර්‍ක
+හර්‍ක
+ළර්‍ක
+ෆර්‍ක
+කර්‍ය්‍ය
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Special-Cases.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Special-Cases.txt
new file mode 100644 (file)
index 0000000..109c873
--- /dev/null
@@ -0,0 +1,2 @@
+ක්‍ෂ
+න්‍ද
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-TouchingLetters.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-TouchingLetters.txt
new file mode 100644 (file)
index 0000000..105b295
--- /dev/null
@@ -0,0 +1 @@
+‍්
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Yansaya.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB-Yansaya.txt
new file mode 100644 (file)
index 0000000..299ca9d
--- /dev/null
@@ -0,0 +1,41 @@
+ක්‍ය
+ඛ්‍ය
+ග්‍ය
+ඝ්‍ය
+ඞ්‍ය
+ඟ්‍ය
+ච්‍ය
+ඡ්‍ය
+ජ්‍ය
+ඣ්‍ය
+ඤ්‍ය
+ඥ්‍ය
+ඦ්‍ය
+ට්‍ය
+ඨ්‍ය
+ඩ්‍ය
+ඪ්‍ය
+ණ්‍ය
+ඬ්‍ය
+ත්‍ය
+ථ්‍ය
+ද්‍ය
+ධ්‍ය
+න්‍ය
+ඳ්‍ය
+ප්‍ය
+ඵ්‍ය
+බ්‍ය
+භ්‍ය
+ම්‍ය
+ඹ්‍ය
+ය්‍ය
+ර්‍ය
+ල්‍ය
+ව්‍ය
+ශ්‍ය
+ෂ්‍ය
+ස්‍ය
+හ්‍ය
+ළ්‍ය
+ෆ්‍ය
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/IndicFontFeatureGSUB.txt
new file mode 100644 (file)
index 0000000..fd5e6e6
--- /dev/null
@@ -0,0 +1 @@
+codepoint, imagepath, rawcode, desc
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-sinhala/utrrs/gsub/MANIFEST
new file mode 100644 (file)
index 0000000..6aa964b
--- /dev/null
@@ -0,0 +1,7 @@
+IndicFontFeatureGSUB-Conjunct.txt
+IndicFontFeatureGSUB-Rakaaraansaya.txt
+IndicFontFeatureGSUB-Repaya.txt
+IndicFontFeatureGSUB-Special-Cases.txt
+IndicFontFeatureGSUB-TouchingLetters.txt
+IndicFontFeatureGSUB-Yansaya.txt
+IndicFontFeatureGSUB.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/MANIFEST
new file mode 100644 (file)
index 0000000..ecb8d96
--- /dev/null
@@ -0,0 +1,2 @@
+misc
+utrrs
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/misc/MANIFEST
new file mode 100644 (file)
index 0000000..29cfb2f
--- /dev/null
@@ -0,0 +1 @@
+misc.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/misc/misc.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/misc/misc.txt
new file mode 100644 (file)
index 0000000..c72be69
--- /dev/null
@@ -0,0 +1,43 @@
+தமிழ்நாடு
+ஓர்
+இந்திய
+மாநிலமாகும்.
+தமிழ்நாடு,
+தமிழகம்
+என்றும்
+பரவலாக
+அழைக்கப்படுகிறது.
+ஆங்கிலத்தில்
+மெட்ராஸ்
+ஸ்டேட்
+என்றும்
+தமிழில்
+சென்னை
+ராஜ்ஜியம்
+என்றும்
+அழைக்கப்பெற்றது.
+இதனை
+தமிழ்நாடு
+என்று
+மாற்றக்கோரி
+போராட்டங்கள்
+நடைபெற்றன.
+சங்கரலிங்கனார்
+என்பவர்
+நாட்கள்
+உண்ணாவிரதம்
+இருந்து
+உயிர்துறந்தார்.
+பின்னர்
+மதராசு
+ஸ்டேட்
+என்று
+இருந்த
+பெயர்
+ஆம்
+ஆண்டு
+தமிழ்நாடு
+என்று
+மாற்றப்பட்டது.
+ஸ்ரீ
+க்ஷ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/LICENSE b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/LICENSE
new file mode 100644 (file)
index 0000000..2cf8228
--- /dev/null
@@ -0,0 +1,19 @@
+Copyright (c) 2010 Red Hat Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/MANIFEST
new file mode 100644 (file)
index 0000000..0658824
--- /dev/null
@@ -0,0 +1,3 @@
+codepoint
+gpos
+gsub
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/README b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/README
new file mode 100644 (file)
index 0000000..8bad337
--- /dev/null
@@ -0,0 +1,13 @@
+Introduction:
+A system to compare a reference image of a text character, word or phrase with another image of the character, word or phrase that was rendered by a text rendering engine. Differences between the reference image and the rendered image may be recorded for subsequent analysis. Performance of a text rendering engine producing text according to typographical rules applicable to a natural language can be evaluated by one with no knowledge or ability to read the natural language
+
+
+COPYRIGHT: Red Hat Inc. 2010
+
+license: this project is under MIT license
+
+
+AUTHORS:
+Lawrence Lim
+Satyabrata Maitra
+Amanpreet Singh Brar
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/SOURCES b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/SOURCES
new file mode 100644 (file)
index 0000000..0ed1a89
--- /dev/null
@@ -0,0 +1,2 @@
+https://fedorahosted.org/utrrs/
+Fetched in late 2011
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt
new file mode 100644 (file)
index 0000000..7a26510
--- /dev/null
@@ -0,0 +1,23 @@
+க
+ங
+ச
+ஜ
+ஞ
+ட
+ண
+த
+ந
+ன
+ப
+ம
+ய
+ர
+ற
+ல
+ள
+ழ
+வ
+ஶ
+ஷ
+ஸ
+ஹ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-CurrencySymbols.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-CurrencySymbols.txt
new file mode 100644 (file)
index 0000000..f70ba6a
--- /dev/null
@@ -0,0 +1 @@
+௹
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt
new file mode 100644 (file)
index 0000000..f22470c
--- /dev/null
@@ -0,0 +1,11 @@
+ா
+ி
+ீ
+ு
+ூ
+ெ
+ே
+ை
+ொ
+ோ
+ௌ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt
new file mode 100644 (file)
index 0000000..47b1d62
--- /dev/null
@@ -0,0 +1,10 @@
+௦
+௧
+௨
+௩
+௪
+௫
+௬
+௭
+௮
+௯
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt
new file mode 100644 (file)
index 0000000..3940ad3
--- /dev/null
@@ -0,0 +1,12 @@
+அ
+ஆ
+இ
+ஈ
+உ
+ஊ
+எ
+ஏ
+ஐ
+ஒ
+ஓ
+ஔ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Numerics.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Numerics.txt
new file mode 100644 (file)
index 0000000..33f6850
--- /dev/null
@@ -0,0 +1,3 @@
+௰
+௱
+௲
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt
new file mode 100644 (file)
index 0000000..66a7ca4
--- /dev/null
@@ -0,0 +1,2 @@
+।
+॥
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Symbols.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-Symbols.txt
new file mode 100644 (file)
index 0000000..a7d89e8
--- /dev/null
@@ -0,0 +1,6 @@
+௳
+௴
+௵
+௶
+௷
+௸
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-TamilSymbol.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-TamilSymbol.txt
new file mode 100644 (file)
index 0000000..2d4bdc1
--- /dev/null
@@ -0,0 +1 @@
+௺
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt
new file mode 100644 (file)
index 0000000..49c469c
--- /dev/null
@@ -0,0 +1,4 @@
+ஂ
+ஃ
+்
+ௗ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/codepoint/MANIFEST
new file mode 100644 (file)
index 0000000..3e28731
--- /dev/null
@@ -0,0 +1,10 @@
+IndicFontFeatureCodepoint-Consonants.txt
+IndicFontFeatureCodepoint-CurrencySymbols.txt
+IndicFontFeatureCodepoint-DependentVowels.txt
+IndicFontFeatureCodepoint-Digits.txt
+IndicFontFeatureCodepoint-IndependentVowels.txt
+IndicFontFeatureCodepoint-Numerics.txt
+IndicFontFeatureCodepoint-Reserved.txt
+IndicFontFeatureCodepoint-Symbols.txt
+IndicFontFeatureCodepoint-TamilSymbol.txt
+IndicFontFeatureCodepoint-VariousSigns.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt
new file mode 100644 (file)
index 0000000..40b2b21
--- /dev/null
@@ -0,0 +1,64 @@
+கி
+ஙி
+சி
+ஜி
+ஞி
+டி
+ணி
+தி
+நி
+னி
+பி
+மி
+யி
+ரி
+றி
+லி
+ளி
+ழி
+வி
+ஷி
+ஸி
+ஹி
+கீ
+ஙீ
+சீ
+ஜீ
+ஞீ
+டீ
+ணீ
+தீ
+நீ
+னீ
+பீ
+மீ
+யீ
+ரீ
+றீ
+லீ
+ளீ
+ழீ
+வீ
+ஷீ
+ஸீ
+க்
+ங்
+ச்
+ஜ்
+ஞ்
+ட்
+ண்
+த்
+ந்
+ன்
+ப்
+ம்
+ய்
+ர்
+ற்
+ல்
+ழ்
+வ்
+ஷ்
+ஸ்
+ஹ்
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/gpos/IndicFontFeatureGPOS-BelowBase.txt
new file mode 100644 (file)
index 0000000..847495a
--- /dev/null
@@ -0,0 +1,44 @@
+கு
+ஙு
+சு
+ஜு
+ஞு
+டு
+ணு
+து
+நு
+னு
+பு
+மு
+யு
+ரு
+று
+லு
+ளு
+ழு
+வு
+ஷு
+ஸு
+ஹு
+கூ
+ஙூ
+சூ
+ஜூ
+ஞூ
+டூ
+ணூ
+தூ
+நூ
+னூ
+பூ
+மூ
+யூ
+ரூ
+றூ
+லூ
+ளூ
+ழூ
+வூ
+ஷூ
+ஸூ
+ஹூ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/gpos/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/gpos/MANIFEST
new file mode 100644 (file)
index 0000000..d7ae70e
--- /dev/null
@@ -0,0 +1,2 @@
+IndicFontFeatureGPOS-AboveBase.txt
+IndicFontFeatureGPOS-BelowBase.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/gsub/IndicFontFeatureGSUB.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/gsub/IndicFontFeatureGSUB.txt
new file mode 100644 (file)
index 0000000..2ca1df3
--- /dev/null
@@ -0,0 +1,4 @@
+க்ஷ
+க்ஷி
+க்ஷீ
+ஷ்ரீ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/gsub/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-tamil/utrrs/gsub/MANIFEST
new file mode 100644 (file)
index 0000000..4b47068
--- /dev/null
@@ -0,0 +1 @@
+IndicFontFeatureGSUB.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/MANIFEST
new file mode 100644 (file)
index 0000000..ecb8d96
--- /dev/null
@@ -0,0 +1,2 @@
+misc
+utrrs
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/misc/MANIFEST
new file mode 100644 (file)
index 0000000..29cfb2f
--- /dev/null
@@ -0,0 +1 @@
+misc.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/misc/misc.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/misc/misc.txt
new file mode 100644 (file)
index 0000000..ff522d2
--- /dev/null
@@ -0,0 +1,12 @@
+కై
+క్
+క్కై
+క్ర
+క్రి
+క్రై
+క్ర్
+క్ర్క
+క్ష
+క్ష్
+క్ష్ణ
+ఽం
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/LICENSE b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/LICENSE
new file mode 100644 (file)
index 0000000..2cf8228
--- /dev/null
@@ -0,0 +1,19 @@
+Copyright (c) 2010 Red Hat Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/MANIFEST
new file mode 100644 (file)
index 0000000..0658824
--- /dev/null
@@ -0,0 +1,3 @@
+codepoint
+gpos
+gsub
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/README b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/README
new file mode 100644 (file)
index 0000000..8bad337
--- /dev/null
@@ -0,0 +1,13 @@
+Introduction:
+A system to compare a reference image of a text character, word or phrase with another image of the character, word or phrase that was rendered by a text rendering engine. Differences between the reference image and the rendered image may be recorded for subsequent analysis. Performance of a text rendering engine producing text according to typographical rules applicable to a natural language can be evaluated by one with no knowledge or ability to read the natural language
+
+
+COPYRIGHT: Red Hat Inc. 2010
+
+license: this project is under MIT license
+
+
+AUTHORS:
+Lawrence Lim
+Satyabrata Maitra
+Amanpreet Singh Brar
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/SOURCES b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/SOURCES
new file mode 100644 (file)
index 0000000..0ed1a89
--- /dev/null
@@ -0,0 +1,2 @@
+https://fedorahosted.org/utrrs/
+Fetched in late 2011
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-AdditionalVowels.txt
new file mode 100644 (file)
index 0000000..a92b179
--- /dev/null
@@ -0,0 +1,2 @@
+ౠ
+ౡ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-Consonants.txt
new file mode 100644 (file)
index 0000000..9b8ff69
--- /dev/null
@@ -0,0 +1,38 @@
+క
+ఖ
+గ
+ఘ
+ఙ
+చ
+ఛ
+జ
+ఝ
+ఞ
+ట
+ఠ
+డ
+ఢ
+ణ
+త
+థ
+ద
+ధ
+న
+ప
+ఫ
+బ
+భ
+మ
+య
+ర
+ఱ
+ల
+ళ
+వ
+శ
+ష
+స
+హ
+ఁ
+ం
+ః
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-DependentVowels.txt
new file mode 100644 (file)
index 0000000..b48ed5d
--- /dev/null
@@ -0,0 +1,13 @@
+ా
+ి
+ీ
+ు
+ూ
+ృ
+ౄ
+ె
+ే
+ై
+ొ
+ో
+ౌ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-Digits.txt
new file mode 100644 (file)
index 0000000..8751b40
--- /dev/null
@@ -0,0 +1,10 @@
+౦
+౧
+౨
+౩
+౪
+౫
+౬
+౭
+౮
+౯
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-IndependentVowels.txt
new file mode 100644 (file)
index 0000000..53c6daf
--- /dev/null
@@ -0,0 +1,14 @@
+అ
+ఆ
+ఇ
+ఈ
+ఉ
+ఊ
+ఋ
+ఌ
+ఎ
+ఏ
+ఐ
+ఒ
+ఓ
+ఔ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-Reserved.txt
new file mode 100644 (file)
index 0000000..66a7ca4
--- /dev/null
@@ -0,0 +1,2 @@
+।
+॥
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/IndicFontFeatureCodepoint-VariousSigns.txt
new file mode 100644 (file)
index 0000000..ebefb52
--- /dev/null
@@ -0,0 +1,6 @@
+ఁ
+ం
+ః
+్
+ౕ
+ౖ
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/codepoint/MANIFEST
new file mode 100644 (file)
index 0000000..1490dfe
--- /dev/null
@@ -0,0 +1,7 @@
+IndicFontFeatureCodepoint-AdditionalVowels.txt
+IndicFontFeatureCodepoint-Consonants.txt
+IndicFontFeatureCodepoint-DependentVowels.txt
+IndicFontFeatureCodepoint-Digits.txt
+IndicFontFeatureCodepoint-IndependentVowels.txt
+IndicFontFeatureCodepoint-Reserved.txt
+IndicFontFeatureCodepoint-VariousSigns.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/gpos/IndicFontFeatureGPOS-AboveBase.txt
new file mode 100644 (file)
index 0000000..939e44a
--- /dev/null
@@ -0,0 +1,385 @@
+కా
+ఖా
+గా
+ఘా
+ఙా
+చా
+ఛా
+జా
+ఝా
+ఞా
+టా
+ఠా
+డా
+ఢా
+ణా
+తా
+థా
+దా
+ధా
+నా
+పా
+ఫా
+బా
+భా
+మా
+యా
+రా
+ఱా
+లా
+ళా
+వా
+శా
+షా
+సా
+హా
+కి
+ఖి
+గి
+ఘి
+ఙి
+చి
+ఛి
+జి
+ఝి
+ఞి
+టి
+ఠి
+డి
+ఢి
+ణి
+తి
+థి
+ది
+ధి
+ని
+పి
+ఫి
+బి
+భి
+మి
+యి
+రి
+ఱి
+లి
+ళి
+వి
+శి
+షి
+సి
+హి
+కీ
+ఖీ
+గీ
+ఘీ
+ఙీ
+చీ
+ఛీ
+జీ
+ఝీ
+ఞీ
+టీ
+ఠీ
+డీ
+ఢీ
+ణీ
+తీ
+థీ
+దీ
+ధీ
+నీ
+పీ
+ఫీ
+బీ
+భీ
+మీ
+యీ
+రీ
+ఱీ
+లీ
+ళీ
+వీ
+శీ
+షీ
+సీ
+హీ
+కె
+ఖె
+గె
+ఘె
+ఙె
+చె
+ఛె
+జె
+ఝె
+ఞె
+టె
+ఠె
+డె
+ఢె
+ణె
+తె
+థె
+దె
+ధె
+నె
+పె
+ఫె
+బె
+భె
+మె
+యె
+రె
+ఱె
+లె
+ళె
+వె
+శె
+షె
+సె
+హె
+కే
+ఖే
+గే
+ఘే
+ఙే
+చే
+ఛే
+జే
+ఝే
+ఞే
+టే
+ఠే
+డే
+ఢే
+ణే
+తే
+థే
+దే
+ధే
+నే
+పే
+ఫే
+బే
+భే
+మే
+యే
+రే
+ఱే
+లే
+ళే
+వే
+శే
+షే
+సే
+హే
+కై
+ఖై
+గై
+ఘై
+ఙై
+చై
+ఛై
+జై
+ఝై
+ఞై
+టై
+ఠై
+డై
+ఢై
+ణై
+తై
+థై
+దై
+ధై
+నై
+పై
+ఫై
+బై
+భై
+మై
+యై
+రై
+ఱై
+లై
+ళై
+వై
+శై
+షై
+సై
+హై
+కొ
+ఖొ
+గొ
+ఘొ
+ఙొ
+చొ
+ఛొ
+జొ
+ఝొ
+ఞొ
+టొ
+ఠొ
+డొ
+ఢొ
+ణొ
+తొ
+థొ
+దొ
+ధొ
+నొ
+పొ
+ఫొ
+బొ
+భొ
+మొ
+యొ
+రొ
+ఱొ
+లొ
+ళొ
+వొ
+శొ
+షొ
+సొ
+హొ
+కో
+ఖో
+గో
+ఘో
+ఙో
+చో
+ఛో
+జో
+ఝో
+ఞో
+టో
+ఠో
+డో
+ఢో
+ణో
+తో
+థో
+దో
+ధో
+నో
+పో
+ఫో
+బో
+భో
+మో
+యో
+రో
+ఱో
+లో
+ళో
+వో
+శో
+షో
+సో
+హో
+కౌ
+ఖౌ
+గౌ
+ఘౌ
+ఙౌ
+చౌ
+ఛౌ
+జౌ
+ఝౌ
+ఞౌ
+టౌ
+ఠౌ
+డౌ
+ఢౌ
+ణౌ
+తౌ
+థౌ
+దౌ
+ధౌ
+నౌ
+పౌ
+ఫౌ
+బౌ
+భౌ
+మౌ
+యౌ
+రౌ
+ఱౌ
+లౌ
+ళౌ
+వౌ
+శౌ
+షౌ
+సౌ
+హౌ
+కఁ
+ఖఁ
+గఁ
+ఘఁ
+ఙఁ
+చఁ
+ఛఁ
+జఁ
+ఝఁ
+ఞఁ
+టఁ
+ఠఁ
+డఁ
+ఢఁ
+ణఁ
+తఁ
+థఁ
+దఁ
+ధఁ
+నఁ
+పఁ
+ఫఁ
+బఁ
+భఁ
+మఁ
+యఁ
+రఁ
+ఱఁ
+లఁ
+ళఁ
+వఁ
+శఁ
+షఁ
+సఁ
+హఁ
+క్
+ఖ్
+గ్
+ఘ్
+ఙ్
+చ్
+ఛ్
+జ్
+ఝ్
+ఞ్
+ట్
+ఠ్
+డ్
+ఢ్
+ణ్
+త్
+థ్
+ద్
+ధ్
+న్
+ప్
+ఫ్
+బ్
+భ్
+మ్
+య్
+ర్
+ఱ్
+ల్
+ళ్
+వ్
+శ్
+ష్
+స్
+హ్
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/gpos/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/gpos/MANIFEST
new file mode 100644 (file)
index 0000000..49d0284
--- /dev/null
@@ -0,0 +1 @@
+IndicFontFeatureGPOS-AboveBase.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/gsub/IndicFontFeatureGSUB.txt b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/gsub/IndicFontFeatureGSUB.txt
new file mode 100644 (file)
index 0000000..50b630b
--- /dev/null
@@ -0,0 +1,287 @@
+క్క
+క్ఖ
+క్గ
+క్ఘ
+క్ఙ
+క్చ
+క్ఛ
+క్జ
+క్ఝ
+క్ఞ
+క్ట
+క్ఠ
+క్డ
+క్ఢ
+క్ణ
+క్త
+క్థ
+క్ద
+క్ధ
+క్న
+క్ప
+క్ఫ
+క్బ
+క్భ
+క్మ
+క్య
+క్ర
+క్ఱ
+క్ల
+క్ళ
+క్వ
+క్శ
+క్ష
+క్స
+క్హ
+త్క
+త్ఖ
+త్గ
+త్ఘ
+త్ఙ
+త్చ
+త్ఛ
+త్జ
+త్ఝ
+త్ఞ
+త్ట
+త్ఠ
+త్డ
+త్ఢ
+త్ణ
+త్త
+త్థ
+త్ద
+త్ధ
+త్న
+త్ప
+త్ఫ
+త్బ
+త్భ
+త్మ
+త్య
+త్ర
+త్ఱ
+త్ల
+త్ళ
+త్వ
+త్శ
+త్ష
+త్స
+త్హ
+న్క
+న్ఖ
+న్గ
+న్ఘ
+న్ఙ
+న్చ
+న్ఛ
+న్జ
+న్ఝ
+న్ఞ
+న్ట
+న్ఠ
+న్డ
+న్ఢ
+న్ణ
+న్త
+న్థ
+న్ద
+న్ధ
+న్న
+న్ప
+న్ఫ
+న్బ
+న్భ
+న్మ
+న్య
+న్ర
+న్ఱ
+న్ల
+న్ళ
+న్వ
+న్శ
+న్ష
+న్స
+న్హ
+మ్క
+మ్ఖ
+మ్గ
+మ్ఘ
+మ్ఙ
+మ్చ
+మ్ఛ
+మ్జ
+మ్ఝ
+మ్ఞ
+మ్ట
+మ్ఠ
+మ్డ
+మ్ఢ
+మ్ణ
+మ్త
+మ్థ
+మ్ద
+మ్ధ
+మ్న
+మ్ప
+మ్ఫ
+మ్బ
+మ్భ
+మ్మ
+మ్య
+మ్ర
+మ్ఱ
+మ్ల
+మ్ళ
+మ్వ
+మ్శ
+మ్ష
+మ్స
+మ్హ
+య్క
+య్ఖ
+య్గ
+య్ఘ
+య్ఙ
+య్చ
+య్ఛ
+య్జ
+య్ఝ
+య్ఞ
+య్ట
+య్ఠ
+య్డ
+య్ఢ
+య్ణ
+య్త
+య్థ
+య్ద
+య్ధ
+య్న
+య్ప
+య్ఫ
+య్బ
+య్భ
+య్మ
+య్య
+య్ర
+య్ఱ
+య్ల
+య్ళ
+య్వ
+య్శ
+య్ష
+య్స
+య్హ
+ర్క
+ర్ఖ
+ర్గ
+ర్ఘ
+ర్ఙ
+ర్చ
+ర్ఛ
+ర్జ
+ర్ఝ
+ర్ఞ
+ర్ట
+ర్ఠ
+ర్డ
+ర్ఢ
+ర్ణ
+ర్త
+ర్థ
+ర్ద
+ర్ధ
+ర్న
+ర్ప
+ర్ఫ
+ర్బ
+ర్భ
+ర్మ
+ర్య
+ర్ర
+ర్ఱ
+ర్ల
+ర్ళ
+ర్వ
+ర్శ
+ర్ష
+ర్స
+ర్హ
+ల్క
+ల్ఖ
+ల్గ
+ల్ఘ
+ల్ఙ
+ల్చ
+ల్ఛ
+ల్జ
+ల్ఝ
+ల్ఞ
+ల్ట
+ల్ఠ
+ల్డ
+ల్ఢ
+ల్ణ
+ల్త
+ల్థ
+ల్ద
+ల్ధ
+ల్న
+ల్ప
+ల్ఫ
+ల్బ
+ల్భ
+ల్మ
+ల్య
+ల్ర
+ల్ఱ
+ల్ల
+ల్ళ
+ల్వ
+ల్శ
+ల్ష
+ల్స
+ల్హ
+వ్క
+వ్ఖ
+వ్గ
+వ్ఘ
+వ్ఙ
+వ్చ
+వ్ఛ
+వ్జ
+వ్ఝ
+వ్ఞ
+వ్ట
+వ్ఠ
+వ్డ
+వ్ఢ
+వ్ణ
+వ్త
+వ్థ
+వ్ద
+వ్ధ
+వ్న
+వ్ప
+వ్ఫ
+వ్బ
+వ్భ
+వ్మ
+వ్య
+వ్ర
+వ్ఱ
+వ్ల
+వ్ళ
+వ్వ
+వ్శ
+వ్ష
+వ్స
+వ్హ
+స్త్ర
+స్త్రి
+స్త్రీ
+ష్ట్ర
+షటరీ
+క్ష్మ
+క్ష్మి
diff --git a/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/gsub/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/indic/script-telugu/utrrs/gsub/MANIFEST
new file mode 100644 (file)
index 0000000..4b47068
--- /dev/null
@@ -0,0 +1 @@
+IndicFontFeatureGSUB.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/south-east-asian/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/south-east-asian/MANIFEST
new file mode 100644 (file)
index 0000000..9627b9e
--- /dev/null
@@ -0,0 +1 @@
+script-khmer
diff --git a/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/MANIFEST
new file mode 100644 (file)
index 0000000..fde3fa1
--- /dev/null
@@ -0,0 +1,3 @@
+misc.txt
+other-marks-invalid.txt
+other-marks.txt
diff --git a/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/misc.txt b/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/misc.txt
new file mode 100644 (file)
index 0000000..945dd1d
--- /dev/null
@@ -0,0 +1,23 @@
+ខ្មែ
+ជា
+ថ្ងៃ
+មា
+ម្ពុ
+រ
+រី
+រ៍
+សៅ
+រ្ឥ
+ងឹ្ឈ
+ង្ឈឹ
+ង្គ្រ
+ង្រ្គ
+ម៉្លេះ
+ម‌៉្លេះ
+ប៊័
+នែ៎
+កេ្រ
+កៀ្រ
+កោ្រ
+កៅ្រ
+ព៑ា
diff --git a/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/other-marks-invalid.txt b/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/other-marks-invalid.txt
new file mode 100644 (file)
index 0000000..213cfc2
--- /dev/null
@@ -0,0 +1,4 @@
+ព់្ឈា
+ព្ឈា៉
+ព្ឈា៌
+ព្ឈ៌ា
diff --git a/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/other-marks.txt b/test/shaping/texts/in-tree/shaper-indic/south-east-asian/script-khmer/misc/other-marks.txt
new file mode 100644 (file)
index 0000000..1fd350c
--- /dev/null
@@ -0,0 +1,7 @@
+ព្ឈា
+ព្ឈា់
+ព្ឈ់ា
+ព្ឈ៉ា
+ព៉្ឈា
+ព៌្ឈា
+ក៝ៈនូយ្សក៝ៈនហ៝ម់
diff --git a/test/shaping/texts/in-tree/shaper-myanmar/MANIFEST b/test/shaping/texts/in-tree/shaper-myanmar/MANIFEST
new file mode 100644 (file)
index 0000000..895bcea
--- /dev/null
@@ -0,0 +1 @@
+script-myanmar
diff --git a/test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/MANIFEST b/test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/MANIFEST
new file mode 100644 (file)
index 0000000..b5a09c0
--- /dev/null
@@ -0,0 +1,3 @@
+misc.txt
+otspec.txt
+utn11.txt
diff --git a/test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/misc.txt b/test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/misc.txt
new file mode 100644 (file)
index 0000000..9dc6332
--- /dev/null
@@ -0,0 +1,7 @@
+သီဟိုဠ်မှ ဉာဏ်ကြီးရှင်သည် အာယုဝဍ္ဎနဆေးညွှန်းစာကို ဇလွန်ဈေးဘေးဗာဒံပင်ထက် အဓိဋ္ဌာန်လျက် ဂဃနဏဖတ်ခဲ့သည်။
+။း
+င်္၎
+နၣ်
+နၢၣ်
+ဂ်ျ
+ဂျ်
diff --git a/test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/otspec.txt b/test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/otspec.txt
new file mode 100644 (file)
index 0000000..66779cb
--- /dev/null
@@ -0,0 +1,2 @@
+င်္က္ကျြွှေို့်ာှီ့ၤဲံ့းႍ
+
diff --git a/test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/utn11.txt b/test/shaping/texts/in-tree/shaper-myanmar/script-myanmar/misc/utn11.txt
new file mode 100644 (file)
index 0000000..d5cea7c
--- /dev/null
@@ -0,0 +1,34 @@
+စာ
+ခါ
+သိက္ခာ
+သဒ္ဓါ
+ညို
+ထုံး
+နေ
+ပေါ
+ဖျား
+ကြေး
+မွေး
+မှု
+ပတ္တာ
+ထင်
+ကြဉ်
+ကော်
+စင်္ကြံ
+သင်္ဘော
+ပသျှူး
+မြွှာ
+သျှောင်
+ကောင်လေးတွေကျောင်းကိုသွားကြတယ်။
+အိပ်ခန်းတံခါးကို
+အိပ်ခန်းတံ⁠ခါးကို
+အင်္ဝေ
+အငွေ
+ယောက်ျား
+ကျွန်ုပ်
+ဝါကျ
+ဂိမှာန်
+ဥယ‌ျာန
+က္လ
+ကျ္လပ်
+နိယ္အ်
diff --git a/test/shaping/texts/in-tree/shaper-sea/MANIFEST b/test/shaping/texts/in-tree/shaper-sea/MANIFEST
new file mode 100644 (file)
index 0000000..ba95488
--- /dev/null
@@ -0,0 +1,3 @@
+script-cham
+script-new-tai-lue
+script-tai-tham
diff --git a/test/shaping/texts/in-tree/shaper-sea/script-cham/MANIFEST b/test/shaping/texts/in-tree/shaper-sea/script-cham/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-sea/script-cham/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-sea/script-cham/misc/MANIFEST
new file mode 100644 (file)
index 0000000..29cfb2f
--- /dev/null
@@ -0,0 +1 @@
+misc.txt
diff --git a/test/shaping/texts/in-tree/shaper-sea/script-cham/misc/misc.txt b/test/shaping/texts/in-tree/shaper-sea/script-cham/misc/misc.txt
new file mode 100644 (file)
index 0000000..32b793a
--- /dev/null
@@ -0,0 +1,3 @@
+ꩀꨴ
+ꨗꨪꨇꨮꩃꨯꨗꨱꨧꨩꩂꨯꨨꨱꩃꨨꨮ
+ꨆꨴꨯ
diff --git a/test/shaping/texts/in-tree/shaper-sea/script-new-tai-lue/MANIFEST b/test/shaping/texts/in-tree/shaper-sea/script-new-tai-lue/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-sea/script-new-tai-lue/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-sea/script-new-tai-lue/misc/MANIFEST
new file mode 100644 (file)
index 0000000..29cfb2f
--- /dev/null
@@ -0,0 +1 @@
+misc.txt
diff --git a/test/shaping/texts/in-tree/shaper-sea/script-new-tai-lue/misc/misc.txt b/test/shaping/texts/in-tree/shaper-sea/script-new-tai-lue/misc/misc.txt
new file mode 100644 (file)
index 0000000..11224a1
--- /dev/null
@@ -0,0 +1 @@
+ᦀᦷᧃᧈ
diff --git a/test/shaping/texts/in-tree/shaper-sea/script-tai-tham/MANIFEST b/test/shaping/texts/in-tree/shaper-sea/script-tai-tham/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-sea/script-tai-tham/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-sea/script-tai-tham/misc/MANIFEST
new file mode 100644 (file)
index 0000000..cfc4f65
--- /dev/null
@@ -0,0 +1,2 @@
+misc.txt
+torture.txt
diff --git a/test/shaping/texts/in-tree/shaper-sea/script-tai-tham/misc/misc.txt b/test/shaping/texts/in-tree/shaper-sea/script-tai-tham/misc/misc.txt
new file mode 100644 (file)
index 0000000..62e9317
--- /dev/null
@@ -0,0 +1,2 @@
+ᨠ᩠ᨠᩮᩕ
+ᩋᩫᨶ᩠ᨲᩕᩣ᩠ᨿ
diff --git a/test/shaping/texts/in-tree/shaper-sea/script-tai-tham/misc/torture.txt b/test/shaping/texts/in-tree/shaper-sea/script-tai-tham/misc/torture.txt
new file mode 100644 (file)
index 0000000..faee302
--- /dev/null
@@ -0,0 +1,23 @@
+ᨣᩕ᩵ᩣᩴᨣᩕ᩠ᩅᩁ
+ᨣᩕ᩵ᩮ᩠ᨦᨣᩕᩢ᩠ᨯ
+ᩅᩥᨣᩅᩰᩬᩡ
+ᩋᩫᨶ᩠ᨲᩕᩣ᩠ᨿ
+ᨶᩫᨶ᩠ᨲᩕᩧ
+ᩈ᩠ᨾ᩵ᩣᩴᩈ᩠ᨾᩮᩬᩥ
+ᩀᩢ᩠᩵ᨦᨶ᩶ᩣᩴ
+ᩉᩫ᩠ᨯᩉ᩠ᨿᩬᩴ᩶
+ᩅᩥᨱ᩠ᨬᩣ᩠ᨱ
+ᨠᩕᩫ᩠ᨮᩉᩫ᩠ᩅᨷᩫ᩠ᩅ
+ᨷᩴ᩠᩵ᨯᩲ᩶
+ᨷᩴ᩠᩶ᨯᩲ᩵
+ᨺᩮᩥᩢ᩠ᨠ
+ᨡᩧ᩠᩶ᨦ᩻
+ᨸᩢ᩠᩶ᨶ
+ᨵᩥᩢ᩠᩶ᨶ
+ᨷᩣ᩠ᨦ
+ᨷᩤ᩠ᨦ
+ᨻᩮᩬᩧ᩵ᩋᩉᩲ᩶
+ᨾᩨᨤᩕᩢ᩠᩵ᨦ
+ᨴᩣᩴᩋᩁᩲ
+ᩈᩢᨬ᩠ᨬᩣ
+◌ᩲ
diff --git a/test/shaping/texts/in-tree/shaper-thai/MANIFEST b/test/shaping/texts/in-tree/shaper-thai/MANIFEST
new file mode 100644 (file)
index 0000000..32b5476
--- /dev/null
@@ -0,0 +1,2 @@
+script-lao
+script-thai
diff --git a/test/shaping/texts/in-tree/shaper-thai/script-lao/MANIFEST b/test/shaping/texts/in-tree/shaper-thai/script-lao/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-thai/script-lao/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-thai/script-lao/misc/MANIFEST
new file mode 100644 (file)
index 0000000..ffd16f1
--- /dev/null
@@ -0,0 +1 @@
+sara-am.txt
diff --git a/test/shaping/texts/in-tree/shaper-thai/script-lao/misc/sara-am.txt b/test/shaping/texts/in-tree/shaper-thai/script-lao/misc/sara-am.txt
new file mode 100644 (file)
index 0000000..234d8c0
--- /dev/null
@@ -0,0 +1,20 @@
+ດຳ
+ດ໋ຳ
+ດໍ໋າ
+ດ໋ໍາ
+ມັຳ
+ມິຳ
+ມີຳ
+ມຶຳ
+ມືຳ
+ມຸຳ
+ມູຳ
+ມ຺ຳ
+ມ໇ຳ
+ມ່ຳ
+ມ້ຳ
+ມ໊ຳ
+ມ໋ຳ
+ມ໌ຳ
+ມໍຳ
+ມ໎ຳ
diff --git a/test/shaping/texts/in-tree/shaper-thai/script-thai/MANIFEST b/test/shaping/texts/in-tree/shaper-thai/script-thai/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-thai/script-thai/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-thai/script-thai/misc/MANIFEST
new file mode 100644 (file)
index 0000000..6b5ca6f
--- /dev/null
@@ -0,0 +1,4 @@
+misc.txt
+phinthu.txt
+pua-shaping.txt
+sara-am.txt
diff --git a/test/shaping/texts/in-tree/shaper-thai/script-thai/misc/misc.txt b/test/shaping/texts/in-tree/shaper-thai/script-thai/misc/misc.txt
new file mode 100644 (file)
index 0000000..b4f164b
--- /dev/null
@@ -0,0 +1,11 @@
+ป่ำ
+ป่ำซ้ำพ่อปู่พี่ปี่ฎุฐุญุ
+ก่ํา
+กํ่า
+กุเ
+กะ
+ก่ื
+กื
+กำ
+ก่ำ
+ก่
diff --git a/test/shaping/texts/in-tree/shaper-thai/script-thai/misc/phinthu.txt b/test/shaping/texts/in-tree/shaper-thai/script-thai/misc/phinthu.txt
new file mode 100644 (file)
index 0000000..e304777
--- /dev/null
@@ -0,0 +1,16 @@
+ป
+ปฺ
+ปุ
+ปู
+ปุู
+ปูุ
+ปฺุ
+ปฺุ
+ปฺู
+ปฺู
+ปฺุู
+ปฺุู
+ปฺุู
+ปฺูุ
+ปฺูุ
+ปฺูุ
diff --git a/test/shaping/texts/in-tree/shaper-thai/script-thai/misc/pua-shaping.txt b/test/shaping/texts/in-tree/shaper-thai/script-thai/misc/pua-shaping.txt
new file mode 100644 (file)
index 0000000..c17834b
--- /dev/null
@@ -0,0 +1,11 @@
+นี
+น่
+นี่
+น่ี
+ป็
+ญ
+ญุ
+ฝิ
+ฝิ่
+ฝ่
+ฎู
diff --git a/test/shaping/texts/in-tree/shaper-thai/script-thai/misc/sara-am.txt b/test/shaping/texts/in-tree/shaper-thai/script-thai/misc/sara-am.txt
new file mode 100644 (file)
index 0000000..9f044ce
--- /dev/null
@@ -0,0 +1,20 @@
+ดำ
+ด๋ำ
+ดํ๋า
+ด๋ํา
+มัำ
+มิำ
+มีำ
+มึำ
+มืำ
+มุำ
+มูำ
+มฺำ
+ม็ำ
+ม่ำ
+ม้ำ
+ม๊ำ
+ม๋ำ
+ม์ำ
+มํำ
+ม๎ำ
diff --git a/test/shaping/texts/in-tree/shaper-tibetan/MANIFEST b/test/shaping/texts/in-tree/shaper-tibetan/MANIFEST
new file mode 100644 (file)
index 0000000..3ed6c85
--- /dev/null
@@ -0,0 +1 @@
+script-tibetan
diff --git a/test/shaping/texts/in-tree/shaper-tibetan/script-tibetan/MANIFEST b/test/shaping/texts/in-tree/shaper-tibetan/script-tibetan/MANIFEST
new file mode 100644 (file)
index 0000000..b8752e7
--- /dev/null
@@ -0,0 +1 @@
+misc
diff --git a/test/shaping/texts/in-tree/shaper-tibetan/script-tibetan/misc/MANIFEST b/test/shaping/texts/in-tree/shaper-tibetan/script-tibetan/misc/MANIFEST
new file mode 100644 (file)
index 0000000..29cfb2f
--- /dev/null
@@ -0,0 +1 @@
+misc.txt
diff --git a/test/shaping/texts/in-tree/shaper-tibetan/script-tibetan/misc/misc.txt b/test/shaping/texts/in-tree/shaper-tibetan/script-tibetan/misc/misc.txt
new file mode 100644 (file)
index 0000000..a5d4082
--- /dev/null
@@ -0,0 +1,2 @@
+སྟྲཱ
+ཀ࿆ྃ
diff --git a/util/Makefile.am b/util/Makefile.am
new file mode 100644 (file)
index 0000000..266681c
--- /dev/null
@@ -0,0 +1,75 @@
+# Process this file with automake to produce Makefile.in
+
+NULL =
+EXTRA_DIST =
+CLEANFILES =
+DISTCLEANFILES =
+MAINTAINERCLEANFILES =
+
+bin_PROGRAMS =
+
+AM_CPPFLAGS = \
+       -DHB_DISABLE_DEPRECATED \
+       -I$(top_srcdir)/src/ \
+       -I$(top_builddir)/src/ \
+       $(GLIB_CFLAGS) \
+       $(FREETYPE_CFLAGS) \
+       $(CAIRO_FT_CFLAGS) \
+       $(NULL)
+LDADD = \
+       $(top_builddir)/src/libharfbuzz.la \
+       -lm \
+       $(GLIB_LIBS) \
+       $(FREETYPE_LIBS) \
+       $(NULL)
+
+if HAVE_GLIB
+
+if HAVE_FREETYPE
+if HAVE_CAIRO_FT
+hb_view_SOURCES = \
+       hb-view.cc \
+       options.cc \
+       options.hh \
+       main-font-text.hh \
+       shape-consumer.hh \
+       ansi-print.cc \
+       ansi-print.hh \
+       helper-cairo.cc \
+       helper-cairo.hh \
+       helper-cairo-ansi.cc \
+       helper-cairo-ansi.hh \
+       view-cairo.cc \
+       view-cairo.hh \
+       $(NULL)
+hb_view_LDADD = \
+       $(LDADD) \
+       $(CAIRO_LIBS) \
+       $(CAIRO_FT_LIBS) \
+       $(NULL)
+bin_PROGRAMS += hb-view
+endif # HAVE_CAIRO_FT
+endif # HAVE_FREETYPE
+
+hb_shape_SOURCES = \
+       hb-shape.cc \
+       options.cc \
+       options.hh \
+       main-font-text.hh \
+       shape-consumer.hh \
+       $(NULL)
+bin_PROGRAMS += hb-shape
+
+if HAVE_OT
+hb_ot_shape_closure_SOURCES = \
+       hb-ot-shape-closure.cc \
+       options.cc \
+       options.hh \
+       main-font-text.hh \
+       $(NULL)
+bin_PROGRAMS += hb-ot-shape-closure
+endif # HAVE_OT
+
+endif # HAVE_GLIB
+
+-include $(top_srcdir)/git.mk
diff --git a/util/Makefile.in b/util/Makefile.in
new file mode 100644 (file)
index 0000000..4bc79ac
--- /dev/null
@@ -0,0 +1,827 @@
+# Makefile.in generated by automake 1.14 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# Process this file with automake to produce Makefile.in
+
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+  case $${target_option-} in \
+      ?) ;; \
+      *) echo "am__make_running_with_option: internal error: invalid" \
+              "target option '$${target_option-}' specified" >&2; \
+         exit 1;; \
+  esac; \
+  has_opt=no; \
+  sane_makeflags=$$MAKEFLAGS; \
+  if $(am__is_gnu_make); then \
+    sane_makeflags=$$MFLAGS; \
+  else \
+    case $$MAKEFLAGS in \
+      *\\[\ \  ]*) \
+        bs=\\; \
+        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+          | sed "s/$$bs$$bs[$$bs $$bs  ]*//g"`;; \
+    esac; \
+  fi; \
+  skip_next=no; \
+  strip_trailopt () \
+  { \
+    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+  }; \
+  for flg in $$sane_makeflags; do \
+    test $$skip_next = yes && { skip_next=no; continue; }; \
+    case $$flg in \
+      *=*|--*) continue;; \
+        -*I) strip_trailopt 'I'; skip_next=yes;; \
+      -*I?*) strip_trailopt 'I';; \
+        -*O) strip_trailopt 'O'; skip_next=yes;; \
+      -*O?*) strip_trailopt 'O';; \
+        -*l) strip_trailopt 'l'; skip_next=yes;; \
+      -*l?*) strip_trailopt 'l';; \
+      -[dEDm]) skip_next=yes;; \
+      -[JT]) skip_next=yes;; \
+    esac; \
+    case $$flg in \
+      *$$target_option*) has_opt=yes; break;; \
+    esac; \
+  done; \
+  test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+bin_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3)
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@am__append_1 = hb-view
+@HAVE_GLIB_TRUE@am__append_2 = hb-shape
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@am__append_3 = hb-ot-shape-closure
+subdir = util
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
+       $(top_srcdir)/depcomp
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/ax_pthread.m4 \
+       $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
+       $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+       $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+       $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+       $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@am__EXEEXT_1 = hb-view$(EXEEXT)
+@HAVE_GLIB_TRUE@am__EXEEXT_2 = hb-shape$(EXEEXT)
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@am__EXEEXT_3 =  \
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@ hb-ot-shape-closure$(EXEEXT)
+am__installdirs = "$(DESTDIR)$(bindir)"
+PROGRAMS = $(bin_PROGRAMS)
+am__hb_ot_shape_closure_SOURCES_DIST = hb-ot-shape-closure.cc \
+       options.cc options.hh main-font-text.hh
+am__objects_1 =
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@am_hb_ot_shape_closure_OBJECTS =  \
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@ hb-ot-shape-closure.$(OBJEXT) \
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@ options.$(OBJEXT) \
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@ $(am__objects_1)
+hb_ot_shape_closure_OBJECTS = $(am_hb_ot_shape_closure_OBJECTS)
+hb_ot_shape_closure_LDADD = $(LDADD)
+am__DEPENDENCIES_1 =
+hb_ot_shape_closure_DEPENDENCIES = $(top_builddir)/src/libharfbuzz.la \
+       $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+       $(am__DEPENDENCIES_1)
+AM_V_lt = $(am__v_lt_@AM_V@)
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+am__v_lt_0 = --silent
+am__v_lt_1 = 
+am__hb_shape_SOURCES_DIST = hb-shape.cc options.cc options.hh \
+       main-font-text.hh shape-consumer.hh
+@HAVE_GLIB_TRUE@am_hb_shape_OBJECTS = hb-shape.$(OBJEXT) \
+@HAVE_GLIB_TRUE@       options.$(OBJEXT) $(am__objects_1)
+hb_shape_OBJECTS = $(am_hb_shape_OBJECTS)
+hb_shape_LDADD = $(LDADD)
+hb_shape_DEPENDENCIES = $(top_builddir)/src/libharfbuzz.la \
+       $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+       $(am__DEPENDENCIES_1)
+am__hb_view_SOURCES_DIST = hb-view.cc options.cc options.hh \
+       main-font-text.hh shape-consumer.hh ansi-print.cc \
+       ansi-print.hh helper-cairo.cc helper-cairo.hh \
+       helper-cairo-ansi.cc helper-cairo-ansi.hh view-cairo.cc \
+       view-cairo.hh
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@am_hb_view_OBJECTS = hb-view.$(OBJEXT) \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       options.$(OBJEXT) \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       ansi-print.$(OBJEXT) \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       helper-cairo.$(OBJEXT) \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       helper-cairo-ansi.$(OBJEXT) \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       view-cairo.$(OBJEXT) \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       $(am__objects_1)
+hb_view_OBJECTS = $(am_hb_view_OBJECTS)
+am__DEPENDENCIES_2 = $(top_builddir)/src/libharfbuzz.la \
+       $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
+       $(am__DEPENDENCIES_1)
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@hb_view_DEPENDENCIES = $(am__DEPENDENCIES_2) \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       $(am__DEPENDENCIES_1) \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       $(am__DEPENDENCIES_1) \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       $(am__DEPENDENCIES_1)
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo "  GEN     " $@;
+am__v_GEN_1 = 
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 = 
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+       $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
+LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
+       $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+       $(AM_CXXFLAGS) $(CXXFLAGS)
+AM_V_CXX = $(am__v_CXX_@AM_V@)
+am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
+am__v_CXX_0 = @echo "  CXX     " $@;
+am__v_CXX_1 = 
+CXXLD = $(CXX)
+CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
+       $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
+am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
+am__v_CXXLD_0 = @echo "  CXXLD   " $@;
+am__v_CXXLD_1 = 
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+       $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+       $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+       $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_@AM_V@)
+am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
+am__v_CC_0 = @echo "  CC      " $@;
+am__v_CC_1 = 
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+       $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+       $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_@AM_V@)
+am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
+am__v_CCLD_0 = @echo "  CCLD    " $@;
+am__v_CCLD_1 = 
+SOURCES = $(hb_ot_shape_closure_SOURCES) $(hb_shape_SOURCES) \
+       $(hb_view_SOURCES)
+DIST_SOURCES = $(am__hb_ot_shape_closure_SOURCES_DIST) \
+       $(am__hb_shape_SOURCES_DIST) $(am__hb_view_SOURCES_DIST)
+am__can_run_installinfo = \
+  case $$AM_UPDATE_INFO_DIR in \
+    n|no|NO) false;; \
+    *) (install-info --version) >/dev/null 2>&1;; \
+  esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+# Read a list of newline-separated strings from the standard input,
+# and print each of them once, without duplicates.  Input order is
+# *not* preserved.
+am__uniquify_input = $(AWK) '\
+  BEGIN { nonempty = 0; } \
+  { items[$$0] = 1; nonempty = 1; } \
+  END { if (nonempty) { for (i in items) print i; }; } \
+'
+# Make sure the list of sources is unique.  This is necessary because,
+# e.g., the same source file might be shared among _SOURCES variables
+# for different programs/libraries.
+am__define_uniq_tagged_files = \
+  list='$(am__tagged_files)'; \
+  unique=`for i in $$list; do \
+    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+  done | $(am__uniquify_input)`
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CAIRO_CFLAGS = @CAIRO_CFLAGS@
+CAIRO_FT_CFLAGS = @CAIRO_FT_CFLAGS@
+CAIRO_FT_LIBS = @CAIRO_FT_LIBS@
+CAIRO_LIBS = @CAIRO_LIBS@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CORETEXT_CFLAGS = @CORETEXT_CFLAGS@
+CORETEXT_LIBS = @CORETEXT_LIBS@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FREETYPE_CFLAGS = @FREETYPE_CFLAGS@
+FREETYPE_LIBS = @FREETYPE_LIBS@
+GIT = @GIT@
+GLIB_CFLAGS = @GLIB_CFLAGS@
+GLIB_LIBS = @GLIB_LIBS@
+GLIB_MKENUMS = @GLIB_MKENUMS@
+GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
+GOBJECT_LIBS = @GOBJECT_LIBS@
+GRAPHITE2_CFLAGS = @GRAPHITE2_CFLAGS@
+GRAPHITE2_LIBS = @GRAPHITE2_LIBS@
+GREP = @GREP@
+GTKDOC_CHECK = @GTKDOC_CHECK@
+GTKDOC_CHECK_PATH = @GTKDOC_CHECK_PATH@
+GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
+GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
+GTKDOC_MKPDF = @GTKDOC_MKPDF@
+GTKDOC_REBASE = @GTKDOC_REBASE@
+HB_LIBTOOL_VERSION_INFO = @HB_LIBTOOL_VERSION_INFO@
+HB_VERSION = @HB_VERSION@
+HB_VERSION_MAJOR = @HB_VERSION_MAJOR@
+HB_VERSION_MICRO = @HB_VERSION_MICRO@
+HB_VERSION_MINOR = @HB_VERSION_MINOR@
+HTML_DIR = @HTML_DIR@
+ICU_CFLAGS = @ICU_CFLAGS@
+ICU_CONFIG = @ICU_CONFIG@
+ICU_LIBS = @ICU_LIBS@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@
+INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@
+INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@
+INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@
+INTROSPECTION_LIBS = @INTROSPECTION_LIBS@
+INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@
+INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@
+INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PKG_CONFIG = @PKG_CONFIG@
+PTHREAD_CC = @PTHREAD_CC@
+PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
+PTHREAD_LIBS = @PTHREAD_LIBS@
+RAGEL = @RAGEL@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UNISCRIBE_CFLAGS = @UNISCRIBE_CFLAGS@
+UNISCRIBE_LIBS = @UNISCRIBE_LIBS@
+VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+ax_pthread_config = @ax_pthread_config@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+NULL = 
+EXTRA_DIST = 
+CLEANFILES = 
+DISTCLEANFILES = 
+MAINTAINERCLEANFILES = 
+AM_CPPFLAGS = \
+       -DHB_DISABLE_DEPRECATED \
+       -I$(top_srcdir)/src/ \
+       -I$(top_builddir)/src/ \
+       $(GLIB_CFLAGS) \
+       $(FREETYPE_CFLAGS) \
+       $(CAIRO_FT_CFLAGS) \
+       $(NULL)
+
+LDADD = \
+       $(top_builddir)/src/libharfbuzz.la \
+       -lm \
+       $(GLIB_LIBS) \
+       $(FREETYPE_LIBS) \
+       $(NULL)
+
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@hb_view_SOURCES = \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       hb-view.cc \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       options.cc \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       options.hh \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       main-font-text.hh \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       shape-consumer.hh \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       ansi-print.cc \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       ansi-print.hh \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       helper-cairo.cc \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       helper-cairo.hh \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       helper-cairo-ansi.cc \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       helper-cairo-ansi.hh \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       view-cairo.cc \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       view-cairo.hh \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       $(NULL)
+
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@hb_view_LDADD = \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       $(LDADD) \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       $(CAIRO_LIBS) \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       $(CAIRO_FT_LIBS) \
+@HAVE_CAIRO_FT_TRUE@@HAVE_FREETYPE_TRUE@@HAVE_GLIB_TRUE@       $(NULL)
+
+@HAVE_GLIB_TRUE@hb_shape_SOURCES = \
+@HAVE_GLIB_TRUE@       hb-shape.cc \
+@HAVE_GLIB_TRUE@       options.cc \
+@HAVE_GLIB_TRUE@       options.hh \
+@HAVE_GLIB_TRUE@       main-font-text.hh \
+@HAVE_GLIB_TRUE@       shape-consumer.hh \
+@HAVE_GLIB_TRUE@       $(NULL)
+
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@hb_ot_shape_closure_SOURCES = \
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@ hb-ot-shape-closure.cc \
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@ options.cc \
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@ options.hh \
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@ main-font-text.hh \
+@HAVE_GLIB_TRUE@@HAVE_OT_TRUE@ $(NULL)
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .cc .lo .o .obj
+$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
+       @for dep in $?; do \
+         case '$(am__configure_deps)' in \
+           *$$dep*) \
+             ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+               && { if test -f $@; then exit 0; else break; fi; }; \
+             exit 1;; \
+         esac; \
+       done; \
+       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits util/Makefile'; \
+       $(am__cd) $(top_srcdir) && \
+         $(AUTOMAKE) --gnits util/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+       @case '$?' in \
+         *config.status*) \
+           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+         *) \
+           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+       esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure:  $(am__configure_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
+       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+install-binPROGRAMS: $(bin_PROGRAMS)
+       @$(NORMAL_INSTALL)
+       @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+       if test -n "$$list"; then \
+         echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
+         $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
+       fi; \
+       for p in $$list; do echo "$$p $$p"; done | \
+       sed 's/$(EXEEXT)$$//' | \
+       while read p p1; do if test -f $$p \
+        || test -f $$p1 \
+         ; then echo "$$p"; echo "$$p"; else :; fi; \
+       done | \
+       sed -e 'p;s,.*/,,;n;h' \
+           -e 's|.*|.|' \
+           -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
+       sed 'N;N;N;s,\n, ,g' | \
+       $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
+         { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
+           if ($$2 == $$4) files[d] = files[d] " " $$1; \
+           else { print "f", $$3 "/" $$4, $$1; } } \
+         END { for (d in files) print "f", d, files[d] }' | \
+       while read type dir files; do \
+           if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
+           test -z "$$files" || { \
+           echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
+           $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
+           } \
+       ; done
+
+uninstall-binPROGRAMS:
+       @$(NORMAL_UNINSTALL)
+       @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+       files=`for p in $$list; do echo "$$p"; done | \
+         sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
+             -e 's/$$/$(EXEEXT)/' \
+       `; \
+       test -n "$$list" || exit 0; \
+       echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
+       cd "$(DESTDIR)$(bindir)" && rm -f $$files
+
+clean-binPROGRAMS:
+       @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
+       echo " rm -f" $$list; \
+       rm -f $$list || exit $$?; \
+       test -n "$(EXEEXT)" || exit 0; \
+       list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
+       echo " rm -f" $$list; \
+       rm -f $$list
+
+installcheck-binPROGRAMS: $(bin_PROGRAMS)
+       bad=0; pid=$$$$; list="$(bin_PROGRAMS)"; for p in $$list; do \
+         case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
+          *" $$p "* | *" $(srcdir)/$$p "*) continue;; \
+         esac; \
+         f=`echo "$$p" | \
+            sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
+         for opt in --help --version; do \
+           if "$(DESTDIR)$(bindir)/$$f" $$opt >c$${pid}_.out \
+                2>c$${pid}_.err </dev/null \
+                && test -n "`cat c$${pid}_.out`" \
+                && test -z "`cat c$${pid}_.err`"; then :; \
+           else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
+         done; \
+       done; rm -f c$${pid}_.???; exit $$bad
+
+hb-ot-shape-closure$(EXEEXT): $(hb_ot_shape_closure_OBJECTS) $(hb_ot_shape_closure_DEPENDENCIES) $(EXTRA_hb_ot_shape_closure_DEPENDENCIES) 
+       @rm -f hb-ot-shape-closure$(EXEEXT)
+       $(AM_V_CXXLD)$(CXXLINK) $(hb_ot_shape_closure_OBJECTS) $(hb_ot_shape_closure_LDADD) $(LIBS)
+
+hb-shape$(EXEEXT): $(hb_shape_OBJECTS) $(hb_shape_DEPENDENCIES) $(EXTRA_hb_shape_DEPENDENCIES) 
+       @rm -f hb-shape$(EXEEXT)
+       $(AM_V_CXXLD)$(CXXLINK) $(hb_shape_OBJECTS) $(hb_shape_LDADD) $(LIBS)
+
+hb-view$(EXEEXT): $(hb_view_OBJECTS) $(hb_view_DEPENDENCIES) $(EXTRA_hb_view_DEPENDENCIES) 
+       @rm -f hb-view$(EXEEXT)
+       $(AM_V_CXXLD)$(CXXLINK) $(hb_view_OBJECTS) $(hb_view_LDADD) $(LIBS)
+
+mostlyclean-compile:
+       -rm -f *.$(OBJEXT)
+
+distclean-compile:
+       -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ansi-print.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hb-ot-shape-closure.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hb-shape.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hb-view.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/helper-cairo-ansi.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/helper-cairo.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/options.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/view-cairo.Po@am__quote@
+
+.cc.o:
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
+
+.cc.obj:
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
+
+.cc.lo:
+@am__fastdepCXX_TRUE@  $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCXX_TRUE@  $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCXX_FALSE@     DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+       -rm -f *.lo
+
+clean-libtool:
+       -rm -rf .libs _libs
+
+ID: $(am__tagged_files)
+       $(am__define_uniq_tagged_files); mkid -fID $$unique
+tags: tags-am
+TAGS: tags
+
+tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       set x; \
+       here=`pwd`; \
+       $(am__define_uniq_tagged_files); \
+       shift; \
+       if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+         test -n "$$unique" || unique=$$empty_fix; \
+         if test $$# -gt 0; then \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             "$$@" $$unique; \
+         else \
+           $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+             $$unique; \
+         fi; \
+       fi
+ctags: ctags-am
+
+CTAGS: ctags
+ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
+       $(am__define_uniq_tagged_files); \
+       test -z "$(CTAGS_ARGS)$$unique" \
+         || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+            $$unique
+
+GTAGS:
+       here=`$(am__cd) $(top_builddir) && pwd` \
+         && $(am__cd) $(top_srcdir) \
+         && gtags -i $(GTAGS_ARGS) "$$here"
+cscopelist: cscopelist-am
+
+cscopelist-am: $(am__tagged_files)
+       list='$(am__tagged_files)'; \
+       case "$(srcdir)" in \
+         [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
+         *) sdir=$(subdir)/$(srcdir) ;; \
+       esac; \
+       for i in $$list; do \
+         if test -f "$$i"; then \
+           echo "$(subdir)/$$i"; \
+         else \
+           echo "$$sdir/$$i"; \
+         fi; \
+       done >> $(top_builddir)/cscope.files
+
+distclean-tags:
+       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+       @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+       list='$(DISTFILES)'; \
+         dist_files=`for file in $$list; do echo $$file; done | \
+         sed -e "s|^$$srcdirstrip/||;t" \
+             -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+       case $$dist_files in \
+         */*) $(MKDIR_P) `echo "$$dist_files" | \
+                          sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+                          sort -u` ;; \
+       esac; \
+       for file in $$dist_files; do \
+         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+         if test -d $$d/$$file; then \
+           dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+           if test -d "$(distdir)/$$file"; then \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+             cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+             find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+           fi; \
+           cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+         else \
+           test -f "$(distdir)/$$file" \
+           || cp -p $$d/$$file "$(distdir)/$$file" \
+           || exit 1; \
+         fi; \
+       done
+check-am: all-am
+check: check-am
+all-am: Makefile $(PROGRAMS)
+installdirs:
+       for dir in "$(DESTDIR)$(bindir)"; do \
+         test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+       done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+       if test -z '$(STRIP)'; then \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+             install; \
+       else \
+         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+           "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+       fi
+mostlyclean-generic:
+
+clean-generic:
+       -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+       -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+       -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
+
+maintainer-clean-generic:
+       @echo "This command is intended for maintainers to use"
+       @echo "it deletes files that may require special tools to rebuild."
+       -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+clean: clean-am
+
+clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+       distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am: install-binPROGRAMS
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am: installcheck-binPROGRAMS
+
+maintainer-clean: maintainer-clean-am
+       -rm -rf ./$(DEPDIR)
+       -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+       mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-binPROGRAMS
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
+       clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \
+       ctags ctags-am distclean distclean-compile distclean-generic \
+       distclean-libtool distclean-tags distdir dvi dvi-am html \
+       html-am info info-am install install-am install-binPROGRAMS \
+       install-data install-data-am install-dvi install-dvi-am \
+       install-exec install-exec-am install-html install-html-am \
+       install-info install-info-am install-man install-pdf \
+       install-pdf-am install-ps install-ps-am install-strip \
+       installcheck installcheck-am installcheck-binPROGRAMS \
+       installdirs maintainer-clean maintainer-clean-generic \
+       mostlyclean mostlyclean-compile mostlyclean-generic \
+       mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
+       uninstall-am uninstall-binPROGRAMS
+
+
+-include $(top_srcdir)/git.mk
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/util/ansi-print.cc b/util/ansi-print.cc
new file mode 100644 (file)
index 0000000..0fc3719
--- /dev/null
@@ -0,0 +1,425 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "ansi-print.hh"
+
+#include <assert.h>
+#include <stdlib.h>
+#include <stddef.h>
+#include <string.h>
+#include <stdio.h>
+#include <math.h>
+#include <fcntl.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h> /* for isatty() */
+#endif
+
+#ifdef _MSC_VER
+static inline long int
+lround (double x)
+{
+  if (x >= 0)
+    return floor (x + 0.5);
+  else
+    return ceil (x - 0.5);
+}
+#endif
+
+#define MIN(a,b) ((a) < (b) ? (a) : (b))
+
+#define CELL_W 8
+#define CELL_H (2 * CELL_W)
+
+struct color_diff_t
+{
+  int dot (const color_diff_t &o)
+  { return v[0]*o.v[0] + v[1]*o.v[1] + v[2]*o.v[2] + v[3]*o.v[3]; }
+
+  int v[4];
+};
+
+struct color_t
+{
+  static color_t from_ansi (unsigned int x)
+  {
+    color_t c = {(0xFF<<24) | ((0xFF*(x&1))<<16) | ((0xFF*((x >> 1)&1))<<8) | (0xFF*((x >> 2)&1))};
+    return c;
+  }
+  unsigned int to_ansi (void)
+  {
+    return ((v >> 23) & 1) | ((v >> 14)&2) | ((v >> 5)&4);
+  }
+
+  color_diff_t diff (const color_t &o)
+  {
+    color_diff_t d;
+    for (unsigned int i = 0; i < 4; i++)
+      d.v[i] = (int) ((v >> (i*8))&0xFF) - (int) ((o.v >> (i*8))&0xFF);
+    return d;
+  }
+
+  uint32_t v;
+};
+
+struct image_t
+{
+  public:
+
+  image_t (unsigned int width_,
+          unsigned int height_,
+          const uint32_t *data_,
+          unsigned int stride_) :
+               width (width_),
+               height (height_),
+               own_data (false),
+               data ((color_t *) data_),
+               stride (stride_) {}
+  image_t (unsigned int width_,
+          unsigned int height_) :
+               width (width_),
+               height (height_),
+               own_data (true),
+               data ((color_t *) malloc (sizeof (data[0]) * width * height)),
+               stride (width) {}
+  ~image_t (void)
+  { if (own_data) free (data); }
+
+  color_t &operator () (unsigned int x, unsigned int y)
+  { return data[x + y * stride]; }
+
+  color_t operator () (unsigned int x, unsigned int y) const
+  { return data[x + y * stride]; }
+
+  void
+  copy_sub_image (const image_t &s,
+                 unsigned int x, unsigned int y,
+                 unsigned int w, unsigned int h)
+  {
+    assert (x < width);
+    assert (y < height);
+    for (unsigned int row = 0; row < h; row++) {
+      color_t *p = data + x + MIN (y + row, height - 1) * stride;
+      color_t *q = s.data + row * s.stride;
+      if (x + w <= width)
+       for (unsigned int col = 0; col < w; col++)
+         *q++ = *p++;
+      else {
+        unsigned int limit = width - x;
+       for (unsigned int col = 0; col < limit; col++)
+         *q++ = *p++;
+       p--;
+       for (unsigned int col = limit; col < w; col++)
+         *q++ = *p;
+      }
+    }
+  }
+
+  const unsigned int width;
+  const unsigned int height;
+
+  private:
+  bool own_data;
+  color_t * const data;
+  const unsigned int stride;
+};
+
+struct biimage_t
+{
+  public:
+
+  biimage_t (unsigned int width, unsigned int height) :
+               width (width),
+               height (height),
+               bg (0), fg (0), unicolor (true),
+               data ((uint8_t *) malloc (sizeof (data[0]) * width * height)) {}
+  ~biimage_t (void)
+  { free (data); }
+
+  void set (const image_t &image)
+  {
+    assert (image.width == width);
+    assert (image.height == height);
+    int freq[8] = {0};
+    for (unsigned int y = 0; y < height; y++)
+      for (unsigned int x = 0; x < width; x++) {
+        color_t c = image (x, y);
+        freq[c.to_ansi ()]++;
+      }
+    bg = 0;
+    for (unsigned int i = 1; i < 8; i++)
+      if (freq[bg] < freq[i])
+        bg = i;
+    fg = 0;
+    for (unsigned int i = 1; i < 8; i++)
+      if (i != bg && freq[fg] < freq[i])
+        fg = i;
+    if (fg == bg || freq[fg] == 0) {
+      fg = bg;
+      unicolor = true;
+    }
+    else
+      unicolor = false;
+
+    /* Set the data... */
+
+    if (unicolor) {
+      memset (data, 0, sizeof (data[0]) * width * height);
+      return;
+    }
+
+    color_t bgc = color_t::from_ansi (bg);
+    color_t fgc = color_t::from_ansi (fg);
+    color_diff_t diff = fgc.diff (bgc);
+    int dd = diff.dot (diff);
+    for (unsigned int y = 0; y < height; y++)
+      for (unsigned int x = 0; x < width; x++) {
+        int d = diff.dot (image (x, y).diff (bgc));
+       (*this)(x, y) = d < 0 ? 0 : d > dd ? 255 : lround (d * 255. / dd);
+      }
+  }
+
+  uint8_t &operator () (unsigned int x, unsigned int y)
+  { return data[x + y * width]; }
+
+  uint8_t operator () (unsigned int x, unsigned int y) const
+  { return data[x + y * width]; }
+
+  const unsigned int width;
+  const unsigned int height;
+  unsigned int bg;
+  unsigned int fg;
+  bool unicolor;
+
+  private:
+  uint8_t * const data;
+};
+
+const char *
+block_best (const biimage_t &bi, unsigned int *score, bool *inverse)
+{
+  assert (bi.width  <= CELL_W);
+  assert (bi.height <= CELL_H);
+
+  unsigned int row_sum[CELL_H] = {0};
+  unsigned int col_sum[CELL_W] = {0};
+  unsigned int row_sum_i[CELL_H] = {0};
+  unsigned int col_sum_i[CELL_W] = {0};
+  unsigned int quad[2][2] = {{0}};
+  unsigned int quad_i[2][2] = {{0}};
+  unsigned int total = 0;
+  unsigned int total_i = 0;
+  for (unsigned int y = 0; y < bi.height; y++)
+    for (unsigned int x = 0; x < bi.width; x++) {
+      unsigned int c = bi (x, y);
+      unsigned int c_i = 255 - c;
+      row_sum[y] += c;
+      row_sum_i[y] += c_i;
+      col_sum[x] += c;
+      col_sum_i[x] += c_i;
+      quad[2 * y / bi.height][2 * x / bi.width] += c;
+      quad_i[2 * y / bi.height][2 * x / bi.width] += c_i;
+      total += c;
+      total_i += c_i;
+    }
+
+  /* Make the sums cummulative */
+  for (unsigned int i = 1; i < bi.height; i++) {
+    row_sum[i] += row_sum[i - 1];
+    row_sum_i[i] += row_sum_i[i - 1];
+  }
+  for (unsigned int i = 1; i < bi.width;  i++) {
+    col_sum[i] += col_sum[i - 1];
+    col_sum_i[i] += col_sum_i[i - 1];
+  }
+
+  const char *best_c = " ";
+
+  /* Maybe empty is better! */
+  if (total < *score) {
+    *score = total;
+    *inverse = false;
+    best_c = " ";
+  }
+  /* Maybe full is better! */
+  if (total_i < *score) {
+    *score = total_i;
+    *inverse = true;
+    best_c = " ";
+  }
+
+  /* Find best lower line */
+  if (1) {
+    unsigned int best_s = (unsigned int) -1;
+    bool best_inv = false;
+    int best_i = 0;
+    for (unsigned int i = 0; i < bi.height - 1; i++)
+    {
+      unsigned int s;
+      s = row_sum[i] + total_i - row_sum_i[i];
+      if (s < best_s) {
+        best_s = s;
+       best_i = i;
+       best_inv = false;
+      }
+      s = row_sum_i[i] + total - row_sum[i];
+      if (s < best_s) {
+        best_s = s;
+       best_i = i;
+       best_inv = true;
+      }
+    }
+    if (best_s < *score) {
+      static const char *lower[7] = {"▁", "▂", "▃", "▄", "▅", "▆", "▇"};
+      unsigned int which = lround (((best_i + 1) * 8) / bi.height);
+      if (1 <= which && which <= 7) {
+       *score = best_s;
+       *inverse = best_inv;
+       best_c = lower[7 - which];
+      }
+    }
+  }
+
+  /* Find best left line */
+  if (1) {
+    unsigned int best_s = (unsigned int) -1;
+    bool best_inv = false;
+    int best_i = 0;
+    for (unsigned int i = 0; i < bi.width - 1; i++)
+    {
+      unsigned int s;
+      s = col_sum[i] + total_i - col_sum_i[i];
+      if (s < best_s) {
+        best_s = s;
+       best_i = i;
+       best_inv = true;
+      }
+      s = col_sum_i[i] + total - col_sum[i];
+      if (s < best_s) {
+        best_s = s;
+       best_i = i;
+       best_inv = false;
+      }
+    }
+    if (best_s < *score) {
+      static const char *left [7] = {"▏", "▎", "▍", "▌", "▋", "▊", "▉"};
+      unsigned int which = lround (((best_i + 1) * 8) / bi.width);
+      if (1 <= which && which <= 7) {
+       *score = best_s;
+       *inverse = best_inv;
+       best_c = left[which - 1];
+      }
+    }
+  }
+
+  /* Find best quadrant */
+  if (1) {
+    unsigned int q = 0;
+    unsigned int qs = 0;
+    for (unsigned int i = 0; i < 2; i++)
+      for (unsigned int j = 0; j < 2; j++)
+       if (quad[i][j] > quad_i[i][j]) {
+         q += 1 << (2 * i + j);
+         qs += quad_i[i][j];
+       } else
+         qs += quad[i][j];
+    if (qs < *score) {
+      const char *c = NULL;
+      bool inv = false;
+      switch (q) {
+       case 1:  c = "▟"; inv = true;  break;
+       case 2:  c = "▙"; inv = true;  break;
+       case 4:  c = "▖"; inv = false; break;
+       case 8:  c = "▗"; inv = false; break;
+       case 9:  c = "▚"; inv = false; break;
+       case 6:  c = "▞"; inv = false; break;
+       case 7:  c = "▜"; inv = true;  break;
+       case 11: c = "▜"; inv = true;  break;
+       case 13: c = "▙"; inv = true;  break;
+       case 14: c = "▟"; inv = true;  break;
+      }
+      if (c) {
+       *score = qs;
+       *inverse = inv;
+       best_c = c;
+      }
+    }
+  }
+
+  return best_c;
+}
+
+void
+ansi_print_image_rgb24 (const uint32_t *data,
+                       unsigned int width,
+                       unsigned int height,
+                       unsigned int stride)
+{
+  image_t image (width, height, data, stride);
+
+  unsigned int rows = (height + CELL_H - 1) / CELL_H;
+  unsigned int cols = (width +  CELL_W - 1) / CELL_W;
+  image_t cell (CELL_W, CELL_H);
+  biimage_t bi (CELL_W, CELL_H);
+  unsigned int last_bg = -1, last_fg = -1;
+  for (unsigned int row = 0; row < rows; row++) {
+    for (unsigned int col = 0; col < cols; col++) {
+      image.copy_sub_image (cell, col * CELL_W, row * CELL_H, CELL_W, CELL_H);
+      bi.set (cell);
+      if (bi.unicolor) {
+        if (last_bg != bi.bg) {
+         printf ("\e[%dm", 40 + bi.bg);
+         last_bg = bi.bg;
+       }
+       printf (" ");
+      } else {
+        /* Figure out the closest character to the biimage */
+        unsigned int score = (unsigned int) -1;
+       bool inverse = false;
+        const char *c = block_best (bi, &score, &inverse);
+       if (inverse) {
+         if (last_bg != bi.fg || last_fg != bi.bg) {
+           printf ("\e[%d;%dm", 30 + bi.bg, 40 + bi.fg);
+           last_bg = bi.fg;
+           last_fg = bi.bg;
+         }
+       } else {
+         if (last_bg != bi.bg || last_fg != bi.fg) {
+           printf ("\e[%d;%dm", 40 + bi.bg, 30 + bi.fg);
+           last_bg = bi.bg;
+           last_fg = bi.fg;
+         }
+       }
+       printf ("%s", c);
+      }
+    }
+    printf ("\e[0m\n"); /* Reset */
+    last_bg = last_fg = -1;
+  }
+}
diff --git a/util/ansi-print.hh b/util/ansi-print.hh
new file mode 100644 (file)
index 0000000..dad4d4c
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef ANSI_PRINT_HH
+#define ANSI_PRINT_HH
+
+#include <hb.h> /* for int types */
+
+void
+ansi_print_image_rgb24 (const uint32_t *data,
+                       unsigned int width,
+                       unsigned int height,
+                       unsigned int stride);
+
+
+#endif
diff --git a/util/hb-ot-shape-closure.cc b/util/hb-ot-shape-closure.cc
new file mode 100644 (file)
index 0000000..03de7e6
--- /dev/null
@@ -0,0 +1,115 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "main-font-text.hh"
+
+#ifdef HAVE_FREETYPE
+#include <hb-ft.h>
+#endif
+
+struct shape_closure_consumer_t : option_group_t
+{
+  shape_closure_consumer_t (option_parser_t *parser) :
+                           shaper (parser),
+                           show_glyph_names (true)
+  {
+    add_options (parser);
+  }
+
+  void add_options (struct option_parser_t *parser)
+  {
+    GOptionEntry entries[] =
+    {
+      {"no-glyph-names",       0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE,    &this->show_glyph_names,        "Use glyph indices instead of names",   NULL},
+      {NULL}
+    };
+    parser->add_group (entries,
+                      "format",
+                      "Format options:",
+                      "Options controlling output formatting",
+                      this);
+  }
+
+  void init (const font_options_t *font_opts)
+  {
+    glyphs = hb_set_create ();
+    font = hb_font_reference (font_opts->get_font ());
+    failed = false;
+  }
+  void consume_line (hb_buffer_t  *buffer,
+                    const char   *text,
+                    unsigned int  text_len,
+                    const char   *text_before,
+                    const char   *text_after)
+  {
+    hb_set_clear (glyphs);
+    shaper.shape_closure (text, text_len, font, buffer, glyphs);
+
+    if (hb_set_is_empty (glyphs))
+      return;
+
+    /* Print it out! */
+    bool first = true;
+    for (hb_codepoint_t i = -1; hb_set_next (glyphs, &i);)
+    {
+      if (first)
+       first = false;
+      else
+       printf (" ");
+      if (show_glyph_names)
+      {
+       char glyph_name[64];
+       hb_font_glyph_to_string (font, i, glyph_name, sizeof (glyph_name));
+       printf ("%s", glyph_name);
+      } else
+       printf ("%u", i);
+    }
+  }
+  void finish (const font_options_t *font_opts)
+  {
+    printf ("\n");
+    hb_font_destroy (font);
+    font = NULL;
+    hb_set_destroy (glyphs);
+    glyphs = NULL;
+  }
+
+  bool failed;
+
+  protected:
+  shape_options_t shaper;
+  hb_bool_t show_glyph_names;
+
+  hb_set_t *glyphs;
+  hb_font_t *font;
+};
+
+int
+main (int argc, char **argv)
+{
+  main_font_text_t<shape_closure_consumer_t> driver;
+  return driver.main (argc, argv);
+}
diff --git a/util/hb-shape.cc b/util/hb-shape.cc
new file mode 100644 (file)
index 0000000..01081ea
--- /dev/null
@@ -0,0 +1,131 @@
+/*
+ * Copyright © 2010  Behdad Esfahbod
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "main-font-text.hh"
+#include "shape-consumer.hh"
+
+struct output_buffer_t
+{
+  output_buffer_t (option_parser_t *parser)
+                 : options (parser, hb_buffer_serialize_list_formats ()),
+                   format (parser),
+                   gs (NULL),
+                   line_no (0),
+                   font (NULL) {}
+
+  void init (const font_options_t *font_opts)
+  {
+    options.get_file_handle ();
+    gs = g_string_new (NULL);
+    line_no = 0;
+    font = hb_font_reference (font_opts->get_font ());
+
+    if (!options.output_format)
+      output_format = HB_BUFFER_SERIALIZE_FORMAT_TEXT;
+    else
+      output_format = hb_buffer_serialize_format_from_string (options.output_format, -1);
+    /* An empty "output_format" parameter basically skips output generating.
+     * Useful for benchmarking. */
+    if ((!options.output_format || *options.output_format) &&
+       !hb_buffer_serialize_format_to_string (output_format))
+    {
+      if (options.explicit_output_format)
+       fail (false, "Unknown output format `%s'; supported formats are: %s",
+             options.output_format,
+             g_strjoinv ("/", const_cast<char**> (options.supported_formats)));
+      else
+       /* Just default to TEXT if not explicitly requested and the
+        * file extension is not recognized. */
+       output_format = HB_BUFFER_SERIALIZE_FORMAT_TEXT;
+    }
+
+    unsigned int flags = HB_BUFFER_SERIALIZE_FLAG_DEFAULT;
+    if (!format.show_glyph_names)
+      flags |= HB_BUFFER_SERIALIZE_FLAG_NO_GLYPH_NAMES;
+    if (!format.show_clusters)
+      flags |= HB_BUFFER_SERIALIZE_FLAG_NO_CLUSTERS;
+    if (!format.show_positions)
+      flags |= HB_BUFFER_SERIALIZE_FLAG_NO_POSITIONS;
+    format_flags = (hb_buffer_serialize_flags_t) flags;
+  }
+  void new_line (void)
+  {
+    line_no++;
+  }
+  void consume_text (hb_buffer_t  *buffer,
+                    const char   *text,
+                    unsigned int  text_len,
+                    hb_bool_t     utf8_clusters)
+  {
+    g_string_set_size (gs, 0);
+    format.serialize_buffer_of_text (buffer, line_no, text, text_len, font, gs);
+    fprintf (options.fp, "%s", gs->str);
+  }
+  void shape_failed (hb_buffer_t  *buffer,
+                    const char   *text,
+                    unsigned int  text_len,
+                    hb_bool_t     utf8_clusters)
+  {
+    g_string_set_size (gs, 0);
+    format.serialize_message (line_no, "msg: all shapers failed", gs);
+    fprintf (options.fp, "%s", gs->str);
+  }
+  void consume_glyphs (hb_buffer_t  *buffer,
+                      const char   *text,
+                      unsigned int  text_len,
+                      hb_bool_t     utf8_clusters)
+  {
+    g_string_set_size (gs, 0);
+    format.serialize_buffer_of_glyphs (buffer, line_no, text, text_len, font,
+                                      output_format, format_flags, gs);
+    fprintf (options.fp, "%s", gs->str);
+  }
+  void finish (const font_options_t *font_opts)
+  {
+    hb_font_destroy (font);
+    g_string_free (gs, true);
+    gs = NULL;
+    font = NULL;
+  }
+
+  protected:
+  output_options_t options;
+  format_options_t format;
+
+  GString *gs;
+  unsigned int line_no;
+  hb_font_t *font;
+  hb_buffer_serialize_format_t output_format;
+  hb_buffer_serialize_flags_t format_flags;
+};
+
+int
+main (int argc, char **argv)
+{
+  main_font_text_t<shape_consumer_t<output_buffer_t> > driver;
+  return driver.main (argc, argv);
+}
diff --git a/util/hb-view.cc b/util/hb-view.cc
new file mode 100644 (file)
index 0000000..26fad66
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * Copyright © 2010  Behdad Esfahbod
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "main-font-text.hh"
+#include "shape-consumer.hh"
+#include "view-cairo.hh"
+
+int
+main (int argc, char **argv)
+{
+  main_font_text_t<shape_consumer_t<view_cairo_t> > driver;
+  return driver.main (argc, argv);
+}
diff --git a/util/helper-cairo-ansi.cc b/util/helper-cairo-ansi.cc
new file mode 100644 (file)
index 0000000..376bf2b
--- /dev/null
@@ -0,0 +1,102 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "helper-cairo-ansi.hh"
+#include "options.hh"
+
+#include "ansi-print.hh"
+
+
+cairo_status_t
+helper_cairo_surface_write_to_ansi_stream (cairo_surface_t     *surface,
+                                          cairo_write_func_t   write_func,
+                                          void                 *closure)
+{
+  unsigned int width = cairo_image_surface_get_width (surface);
+  unsigned int height = cairo_image_surface_get_height (surface);
+  if (cairo_image_surface_get_format (surface) != CAIRO_FORMAT_RGB24) {
+    cairo_surface_t *new_surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, width, height);
+    cairo_t *cr = cairo_create (new_surface);
+    if (cairo_image_surface_get_format (surface) == CAIRO_FORMAT_A8) {
+      cairo_set_source_rgb (cr, 0., 0., 0.);
+      cairo_paint (cr);
+      cairo_set_source_rgb (cr, 1., 1., 1.);
+      cairo_mask_surface (cr, surface, 0, 0);
+    } else {
+      cairo_set_source_rgb (cr, 1., 1., 1.);
+      cairo_paint (cr);
+      cairo_set_source_surface (cr, surface, 0, 0);
+      cairo_paint (cr);
+    }
+    cairo_destroy (cr);
+    surface = new_surface;
+  } else
+    cairo_surface_reference (surface);
+
+  unsigned int stride = cairo_image_surface_get_stride (surface);
+  const uint32_t *data = (uint32_t *) (void *) cairo_image_surface_get_data (surface);
+
+  /* We don't have rows to spare on the terminal window...
+   * Find the tight image top/bottom and only print in between. */
+
+  /* Use corner color as background color. */
+  uint32_t bg_color = * (uint32_t *) data;
+
+  /* Drop first row while empty */
+  while (height) 
+  {
+    unsigned int i;
+    for (i = 0; i < width; i++)
+      if (data[i] != bg_color)
+        break;
+    if (i < width)
+      break;
+    data += stride / 4;
+    height--;
+  }
+
+  /* Drop last row while empty */
+  unsigned int orig_height = height;
+  while (height)
+  {
+    const uint32_t *row = data + (height - 1) * stride / 4;
+    unsigned int i;
+    for (i = 0; i < width; i++)
+      if (row[i] != bg_color)
+        break;
+    if (i < width)
+      break;
+    height--;
+  }
+  if (height < orig_height)
+    height++; /* Add one last blank row for padding. */
+
+  if (width && height)
+    ansi_print_image_rgb24 (data, width, height, stride / 4);
+
+  cairo_surface_destroy (surface);
+  return CAIRO_STATUS_SUCCESS;
+}
diff --git a/util/helper-cairo-ansi.hh b/util/helper-cairo-ansi.hh
new file mode 100644 (file)
index 0000000..eeaaa50
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ * Copyright © 2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include <cairo.h>
+
+#ifndef HELPER_CAIRO_ANSI_HH
+#define HELPER_CAIRO_ANSI_HH
+
+
+cairo_status_t
+helper_cairo_surface_write_to_ansi_stream (cairo_surface_t     *surface,
+                                          cairo_write_func_t   write_func,
+                                          void                 *closure);
+
+
+#endif
diff --git a/util/helper-cairo.cc b/util/helper-cairo.cc
new file mode 100644 (file)
index 0000000..ee940ae
--- /dev/null
@@ -0,0 +1,509 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "helper-cairo.hh"
+
+#include <cairo-ft.h>
+#include <hb-ft.h>
+
+#include "helper-cairo-ansi.hh"
+#ifdef CAIRO_HAS_SVG_SURFACE
+#  include <cairo-svg.h>
+#endif
+#ifdef CAIRO_HAS_PDF_SURFACE
+#  include <cairo-pdf.h>
+#endif
+#ifdef CAIRO_HAS_PS_SURFACE
+#  include <cairo-ps.h>
+#  if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1,6,0)
+#    define HAS_EPS 1
+
+static cairo_surface_t *
+_cairo_eps_surface_create_for_stream (cairo_write_func_t  write_func,
+                                     void               *closure,
+                                     double              width,
+                                     double              height)
+{
+  cairo_surface_t *surface;
+
+  surface = cairo_ps_surface_create_for_stream (write_func, closure, width, height);
+  cairo_ps_surface_set_eps (surface, true);
+
+  return surface;
+}
+
+#  else
+#    undef HAS_EPS
+#  endif
+#endif
+
+
+static FT_Library ft_library;
+
+static inline
+void free_ft_library (void)
+{
+  FT_Done_FreeType (ft_library);
+}
+
+cairo_scaled_font_t *
+helper_cairo_create_scaled_font (const font_options_t *font_opts,
+                                double font_size)
+{
+  hb_font_t *font = hb_font_reference (font_opts->get_font ());
+
+  cairo_font_face_t *cairo_face;
+  FT_Face ft_face = hb_ft_font_get_face (font);
+  if (!ft_face)
+  {
+    if (!ft_library)
+    {
+      FT_Init_FreeType (&ft_library);
+#ifdef HAVE_ATEXIT
+      atexit (free_ft_library);
+#endif
+    }
+    FT_New_Face (ft_library,
+                font_opts->font_file,
+                font_opts->face_index,
+                &ft_face);
+  }
+  if (!ft_face)
+  {
+    /* This allows us to get some boxes at least... */
+    cairo_face = cairo_toy_font_face_create ("@cairo:sans",
+                                            CAIRO_FONT_SLANT_NORMAL,
+                                            CAIRO_FONT_WEIGHT_NORMAL);
+  }
+  else
+    cairo_face = cairo_ft_font_face_create_for_ft_face (ft_face, 0);
+  cairo_matrix_t ctm, font_matrix;
+  cairo_font_options_t *font_options;
+
+  cairo_matrix_init_identity (&ctm);
+  cairo_matrix_init_scale (&font_matrix,
+                          font_size, font_size);
+  font_options = cairo_font_options_create ();
+  cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_NONE);
+  cairo_font_options_set_hint_metrics (font_options, CAIRO_HINT_METRICS_OFF);
+
+  cairo_scaled_font_t *scaled_font = cairo_scaled_font_create (cairo_face,
+                                                              &font_matrix,
+                                                              &ctm,
+                                                              font_options);
+
+  cairo_font_options_destroy (font_options);
+  cairo_font_face_destroy (cairo_face);
+
+  static cairo_user_data_key_t key;
+  if (cairo_scaled_font_set_user_data (scaled_font,
+                                      &key,
+                                      (void *) font,
+                                      (cairo_destroy_func_t) hb_font_destroy))
+    hb_font_destroy (font);
+
+  return scaled_font;
+}
+
+
+struct finalize_closure_t {
+  void (*callback)(finalize_closure_t *);
+  cairo_surface_t *surface;
+  cairo_write_func_t write_func;
+  void *closure;
+};
+static cairo_user_data_key_t finalize_closure_key;
+
+
+static void
+finalize_ansi (finalize_closure_t *closure)
+{
+  cairo_status_t status;
+  status = helper_cairo_surface_write_to_ansi_stream (closure->surface,
+                                                     closure->write_func,
+                                                     closure->closure);
+  if (status != CAIRO_STATUS_SUCCESS)
+    fail (false, "Failed to write output: %s",
+         cairo_status_to_string (status));
+}
+
+static cairo_surface_t *
+_cairo_ansi_surface_create_for_stream (cairo_write_func_t write_func,
+                                      void *closure,
+                                      double width,
+                                      double height,
+                                      cairo_content_t content)
+{
+  cairo_surface_t *surface;
+  int w = ceil (width);
+  int h = ceil (height);
+
+  switch (content) {
+    case CAIRO_CONTENT_ALPHA:
+      surface = cairo_image_surface_create (CAIRO_FORMAT_A8, w, h);
+      break;
+    default:
+    case CAIRO_CONTENT_COLOR:
+      surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, w, h);
+      break;
+    case CAIRO_CONTENT_COLOR_ALPHA:
+      surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, w, h);
+      break;
+  }
+  cairo_status_t status = cairo_surface_status (surface);
+  if (status != CAIRO_STATUS_SUCCESS)
+    fail (false, "Failed to create cairo surface: %s",
+         cairo_status_to_string (status));
+
+  finalize_closure_t *ansi_closure = g_new0 (finalize_closure_t, 1);
+  ansi_closure->callback = finalize_ansi;
+  ansi_closure->surface = surface;
+  ansi_closure->write_func = write_func;
+  ansi_closure->closure = closure;
+
+  if (cairo_surface_set_user_data (surface,
+                                  &finalize_closure_key,
+                                  (void *) ansi_closure,
+                                  (cairo_destroy_func_t) g_free))
+    g_free ((void *) closure);
+
+  return surface;
+}
+
+
+#ifdef CAIRO_HAS_PNG_FUNCTIONS
+
+static void
+finalize_png (finalize_closure_t *closure)
+{
+  cairo_status_t status;
+  status = cairo_surface_write_to_png_stream (closure->surface,
+                                             closure->write_func,
+                                             closure->closure);
+  if (status != CAIRO_STATUS_SUCCESS)
+    fail (false, "Failed to write output: %s",
+         cairo_status_to_string (status));
+}
+
+static cairo_surface_t *
+_cairo_png_surface_create_for_stream (cairo_write_func_t write_func,
+                                     void *closure,
+                                     double width,
+                                     double height,
+                                     cairo_content_t content)
+{
+  cairo_surface_t *surface;
+  int w = ceil (width);
+  int h = ceil (height);
+
+  switch (content) {
+    case CAIRO_CONTENT_ALPHA:
+      surface = cairo_image_surface_create (CAIRO_FORMAT_A8, w, h);
+      break;
+    default:
+    case CAIRO_CONTENT_COLOR:
+      surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, w, h);
+      break;
+    case CAIRO_CONTENT_COLOR_ALPHA:
+      surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, w, h);
+      break;
+  }
+  cairo_status_t status = cairo_surface_status (surface);
+  if (status != CAIRO_STATUS_SUCCESS)
+    fail (false, "Failed to create cairo surface: %s",
+         cairo_status_to_string (status));
+
+  finalize_closure_t *png_closure = g_new0 (finalize_closure_t, 1);
+  png_closure->callback = finalize_png;
+  png_closure->surface = surface;
+  png_closure->write_func = write_func;
+  png_closure->closure = closure;
+
+  if (cairo_surface_set_user_data (surface,
+                                  &finalize_closure_key,
+                                  (void *) png_closure,
+                                  (cairo_destroy_func_t) g_free))
+    g_free ((void *) closure);
+
+  return surface;
+}
+
+#endif
+
+static cairo_status_t
+stdio_write_func (void                *closure,
+                 const unsigned char *data,
+                 unsigned int         size)
+{
+  FILE *fp = (FILE *) closure;
+
+  while (size) {
+    size_t ret = fwrite (data, 1, size, fp);
+    size -= ret;
+    data += ret;
+    if (size && ferror (fp))
+      fail (false, "Failed to write output: %s", strerror (errno));
+  }
+
+  return CAIRO_STATUS_SUCCESS;
+}
+
+const char *helper_cairo_supported_formats[] =
+{
+  "ansi",
+  #ifdef CAIRO_HAS_PNG_FUNCTIONS
+  "png",
+  #endif
+  #ifdef CAIRO_HAS_SVG_SURFACE
+  "svg",
+  #endif
+  #ifdef CAIRO_HAS_PDF_SURFACE
+  "pdf",
+  #endif
+  #ifdef CAIRO_HAS_PS_SURFACE
+  "ps",
+   #ifdef HAS_EPS
+    "eps",
+   #endif
+  #endif
+  NULL
+};
+
+cairo_t *
+helper_cairo_create_context (double w, double h,
+                            view_options_t *view_opts,
+                            output_options_t *out_opts)
+{
+  cairo_surface_t *(*constructor) (cairo_write_func_t write_func,
+                                  void *closure,
+                                  double width,
+                                  double height) = NULL;
+  cairo_surface_t *(*constructor2) (cairo_write_func_t write_func,
+                                   void *closure,
+                                   double width,
+                                   double height,
+                                   cairo_content_t content) = NULL;
+
+  const char *extension = out_opts->output_format;
+  if (!extension) {
+#if HAVE_ISATTY
+    if (isatty (fileno (out_opts->get_file_handle ())))
+      extension = "ansi";
+    else
+#endif
+    {
+#ifdef CAIRO_HAS_PNG_FUNCTIONS
+      extension = "png";
+#else
+      extension = "ansi";
+#endif
+    }
+  }
+  if (0)
+    ;
+    else if (0 == strcasecmp (extension, "ansi"))
+      constructor2 = _cairo_ansi_surface_create_for_stream;
+  #ifdef CAIRO_HAS_PNG_FUNCTIONS
+    else if (0 == strcasecmp (extension, "png"))
+      constructor2 = _cairo_png_surface_create_for_stream;
+  #endif
+  #ifdef CAIRO_HAS_SVG_SURFACE
+    else if (0 == strcasecmp (extension, "svg"))
+      constructor = cairo_svg_surface_create_for_stream;
+  #endif
+  #ifdef CAIRO_HAS_PDF_SURFACE
+    else if (0 == strcasecmp (extension, "pdf"))
+      constructor = cairo_pdf_surface_create_for_stream;
+  #endif
+  #ifdef CAIRO_HAS_PS_SURFACE
+    else if (0 == strcasecmp (extension, "ps"))
+      constructor = cairo_ps_surface_create_for_stream;
+   #ifdef HAS_EPS
+    else if (0 == strcasecmp (extension, "eps"))
+      constructor = _cairo_eps_surface_create_for_stream;
+   #endif
+  #endif
+
+
+  unsigned int fr, fg, fb, fa, br, bg, bb, ba;
+  br = bg = bb = 0; ba = 255;
+  sscanf (view_opts->back + (*view_opts->back=='#'), "%2x%2x%2x%2x", &br, &bg, &bb, &ba);
+  fr = fg = fb = 0; fa = 255;
+  sscanf (view_opts->fore + (*view_opts->fore=='#'), "%2x%2x%2x%2x", &fr, &fg, &fb, &fa);
+
+  cairo_content_t content;
+  if (!view_opts->annotate && ba == 255 && br == bg && bg == bb && fr == fg && fg == fb)
+    content = CAIRO_CONTENT_ALPHA;
+  else if (ba == 255)
+    content = CAIRO_CONTENT_COLOR;
+  else
+    content = CAIRO_CONTENT_COLOR_ALPHA;
+
+  cairo_surface_t *surface;
+  FILE *f = out_opts->get_file_handle ();
+  if (constructor)
+    surface = constructor (stdio_write_func, f, w, h);
+  else if (constructor2)
+    surface = constructor2 (stdio_write_func, f, w, h, content);
+  else
+    fail (false, "Unknown output format `%s'; supported formats are: %s%s",
+         extension,
+         g_strjoinv ("/", const_cast<char**> (helper_cairo_supported_formats)),
+         out_opts->explicit_output_format ? "" :
+         "\nTry setting format using --output-format");
+
+  cairo_t *cr = cairo_create (surface);
+  content = cairo_surface_get_content (surface);
+
+  switch (content) {
+    case CAIRO_CONTENT_ALPHA:
+      cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
+      cairo_set_source_rgba (cr, 1., 1., 1., br / 255.);
+      cairo_paint (cr);
+      cairo_set_source_rgba (cr, 1., 1., 1.,
+                            (fr / 255.) * (fa / 255.) + (br / 255) * (1 - (fa / 255.)));
+      break;
+    default:
+    case CAIRO_CONTENT_COLOR:
+    case CAIRO_CONTENT_COLOR_ALPHA:
+      cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
+      cairo_set_source_rgba (cr, br / 255., bg / 255., bb / 255., ba / 255.);
+      cairo_paint (cr);
+      cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
+      cairo_set_source_rgba (cr, fr / 255., fg / 255., fb / 255., fa / 255.);
+      break;
+  }
+
+  cairo_surface_destroy (surface);
+  return cr;
+}
+
+void
+helper_cairo_destroy_context (cairo_t *cr)
+{
+  finalize_closure_t *closure = (finalize_closure_t *)
+                               cairo_surface_get_user_data (cairo_get_target (cr),
+                                                            &finalize_closure_key);
+  if (closure)
+    closure->callback (closure);
+
+  cairo_status_t status = cairo_status (cr);
+  if (status != CAIRO_STATUS_SUCCESS)
+    fail (false, "Failed: %s",
+         cairo_status_to_string (status));
+  cairo_destroy (cr);
+}
+
+
+void
+helper_cairo_line_from_buffer (helper_cairo_line_t *l,
+                              hb_buffer_t         *buffer,
+                              const char          *text,
+                              unsigned int         text_len,
+                              double               scale,
+                              hb_bool_t            utf8_clusters)
+{
+  memset (l, 0, sizeof (*l));
+
+  l->num_glyphs = hb_buffer_get_length (buffer);
+  hb_glyph_info_t *hb_glyph = hb_buffer_get_glyph_infos (buffer, NULL);
+  hb_glyph_position_t *hb_position = hb_buffer_get_glyph_positions (buffer, NULL);
+  l->glyphs = cairo_glyph_allocate (l->num_glyphs + 1);
+
+  if (text) {
+    l->utf8 = g_strndup (text, text_len);
+    l->utf8_len = text_len;
+    l->num_clusters = l->num_glyphs ? 1 : 0;
+    for (unsigned int i = 1; i < l->num_glyphs; i++)
+      if (hb_glyph[i].cluster != hb_glyph[i-1].cluster)
+       l->num_clusters++;
+    l->clusters = cairo_text_cluster_allocate (l->num_clusters);
+  }
+
+  if ((l->num_glyphs && !l->glyphs) ||
+      (l->utf8_len && !l->utf8) ||
+      (l->num_clusters && !l->clusters))
+  {
+    l->finish ();
+    return;
+  }
+
+  hb_position_t x = 0, y = 0;
+  int i;
+  for (i = 0; i < (int) l->num_glyphs; i++)
+  {
+    l->glyphs[i].index = hb_glyph[i].codepoint;
+    l->glyphs[i].x = ( hb_position->x_offset + x) * scale;
+    l->glyphs[i].y = (-hb_position->y_offset + y) * scale;
+    x +=  hb_position->x_advance;
+    y += -hb_position->y_advance;
+
+    hb_position++;
+  }
+  l->glyphs[i].index = -1;
+  l->glyphs[i].x = x * scale;
+  l->glyphs[i].y = y * scale;
+
+  if (l->num_clusters) {
+    memset ((void *) l->clusters, 0, l->num_clusters * sizeof (l->clusters[0]));
+    hb_bool_t backward = HB_DIRECTION_IS_BACKWARD (hb_buffer_get_direction (buffer));
+    l->cluster_flags = backward ? CAIRO_TEXT_CLUSTER_FLAG_BACKWARD : (cairo_text_cluster_flags_t) 0;
+    unsigned int cluster = 0;
+    const char *start = l->utf8, *end;
+    l->clusters[cluster].num_glyphs++;
+    if (backward) {
+      for (i = l->num_glyphs - 2; i >= 0; i--) {
+       if (hb_glyph[i].cluster != hb_glyph[i+1].cluster) {
+         g_assert (hb_glyph[i].cluster > hb_glyph[i+1].cluster);
+         if (utf8_clusters)
+           end = start + hb_glyph[i].cluster - hb_glyph[i+1].cluster;
+         else
+           end = g_utf8_offset_to_pointer (start, hb_glyph[i].cluster - hb_glyph[i+1].cluster);
+         l->clusters[cluster].num_bytes = end - start;
+         start = end;
+         cluster++;
+       }
+       l->clusters[cluster].num_glyphs++;
+      }
+      l->clusters[cluster].num_bytes = l->utf8 + text_len - start;
+    } else {
+      for (i = 1; i < (int) l->num_glyphs; i++) {
+       if (hb_glyph[i].cluster != hb_glyph[i-1].cluster) {
+         g_assert (hb_glyph[i].cluster > hb_glyph[i-1].cluster);
+         if (utf8_clusters)
+           end = start + hb_glyph[i].cluster - hb_glyph[i-1].cluster;
+         else
+           end = g_utf8_offset_to_pointer (start, hb_glyph[i].cluster - hb_glyph[i-1].cluster);
+         l->clusters[cluster].num_bytes = end - start;
+         start = end;
+         cluster++;
+       }
+       l->clusters[cluster].num_glyphs++;
+      }
+      l->clusters[cluster].num_bytes = l->utf8 + text_len - start;
+    }
+  }
+}
diff --git a/util/helper-cairo.hh b/util/helper-cairo.hh
new file mode 100644 (file)
index 0000000..567777e
--- /dev/null
@@ -0,0 +1,82 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "options.hh"
+
+#include <cairo.h>
+
+#ifndef HELPER_CAIRO_HH
+#define HELPER_CAIRO_HH
+
+
+cairo_scaled_font_t *
+helper_cairo_create_scaled_font (const font_options_t *font_opts,
+                                double font_size);
+
+extern const char *helper_cairo_supported_formats[];
+
+cairo_t *
+helper_cairo_create_context (double w, double h,
+                            view_options_t *view_opts,
+                            output_options_t *out_opts);
+
+void
+helper_cairo_destroy_context (cairo_t *cr);
+
+
+struct helper_cairo_line_t {
+  cairo_glyph_t *glyphs;
+  unsigned int num_glyphs;
+  char *utf8;
+  unsigned int utf8_len;
+  cairo_text_cluster_t *clusters;
+  unsigned int num_clusters;
+  cairo_text_cluster_flags_t cluster_flags;
+
+  void finish (void) {
+    if (glyphs)
+      cairo_glyph_free (glyphs);
+    if (clusters)
+      cairo_text_cluster_free (clusters);
+    if (utf8)
+      g_free (utf8);
+  }
+
+  void get_advance (double *x_advance, double *y_advance) {
+    *x_advance = glyphs[num_glyphs].x;
+    *y_advance = glyphs[num_glyphs].y;
+  }
+};
+
+void
+helper_cairo_line_from_buffer (helper_cairo_line_t *l,
+                              hb_buffer_t         *buffer,
+                              const char          *text,
+                              unsigned int         text_len,
+                              double               scale,
+                              hb_bool_t            utf8_clusters);
+
+#endif
diff --git a/util/main-font-text.hh b/util/main-font-text.hh
new file mode 100644 (file)
index 0000000..ac51b2d
--- /dev/null
@@ -0,0 +1,80 @@
+/*
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "options.hh"
+
+#ifndef HB_MAIN_FONT_TEXT_HH
+#define HB_MAIN_FONT_TEXT_HH
+
+/* main() body for utilities taking font and processing text.*/
+
+template <typename consumer_t>
+struct main_font_text_t
+{
+  main_font_text_t (void)
+                 : options ("[FONT-FILE] [TEXT]"),
+                   font_opts (&options),
+                   input (&options),
+                   consumer (&options) {}
+
+  int
+  main (int argc, char **argv)
+  {
+    options.parse (&argc, &argv);
+
+    argc--, argv++;
+    if (argc && !font_opts.font_file) font_opts.font_file = argv[0], argc--, argv++;
+    if (argc && !input.text && !input.text_file) input.text = argv[0], argc--, argv++;
+    if (argc)
+      fail (true, "Too many arguments on the command line");
+    if (!font_opts.font_file)
+      options.usage ();
+    if (!input.text && !input.text_file)
+      input.text_file = "-";
+
+    consumer.init (&font_opts);
+
+    hb_buffer_t *buffer = hb_buffer_create ();
+    unsigned int text_len;
+    const char *text;
+    while ((text = input.get_line (&text_len)))
+      consumer.consume_line (buffer, text, text_len, input.text_before, input.text_after);
+    hb_buffer_destroy (buffer);
+
+    consumer.finish (&font_opts);
+
+    return consumer.failed ? 1 : 0;
+  }
+
+  protected:
+  option_parser_t options;
+  font_options_t font_opts;
+  text_options_t input;
+  consumer_t consumer;
+};
+
+#endif
+
diff --git a/util/options.cc b/util/options.cc
new file mode 100644 (file)
index 0000000..0adc179
--- /dev/null
@@ -0,0 +1,766 @@
+/*
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "options.hh"
+
+#ifdef HAVE_FREETYPE
+#include <hb-ft.h>
+#endif
+#ifdef HAVE_OT
+#include <hb-ot-font.h>
+#endif
+
+struct supported_font_funcs_t {
+       char name[4];
+       void (*func) (hb_font_t *);
+} supported_font_funcs[] =
+{
+#ifdef HAVE_FREETYPE
+  {"ft",       hb_ft_font_set_funcs},
+#endif
+#ifdef HAVE_OT
+  {"ot",       hb_ot_font_set_funcs},
+#endif
+};
+
+
+void
+fail (hb_bool_t suggest_help, const char *format, ...)
+{
+  const char *msg;
+
+  va_list vap;
+  va_start (vap, format);
+  msg = g_strdup_vprintf (format, vap);
+  const char *prgname = g_get_prgname ();
+  g_printerr ("%s: %s\n", prgname, msg);
+  if (suggest_help)
+    g_printerr ("Try `%s --help' for more information.\n", prgname);
+
+  exit (1);
+}
+
+
+hb_bool_t debug = false;
+
+static gchar *
+shapers_to_string (void)
+{
+  GString *shapers = g_string_new (NULL);
+  const char **shaper_list = hb_shape_list_shapers ();
+
+  for (; *shaper_list; shaper_list++) {
+    g_string_append (shapers, *shaper_list);
+    g_string_append_c (shapers, ',');
+  }
+  g_string_truncate (shapers, MAX (0, (gint)shapers->len - 1));
+
+  return g_string_free (shapers, false);
+}
+
+static G_GNUC_NORETURN gboolean
+show_version (const char *name G_GNUC_UNUSED,
+             const char *arg G_GNUC_UNUSED,
+             gpointer    data G_GNUC_UNUSED,
+             GError    **error G_GNUC_UNUSED)
+{
+  g_printf ("%s (%s) %s\n", g_get_prgname (), PACKAGE_NAME, PACKAGE_VERSION);
+
+  char *shapers = shapers_to_string ();
+  g_printf ("Available shapers: %s\n", shapers);
+  g_free (shapers);
+  if (strcmp (HB_VERSION_STRING, hb_version_string ()))
+    g_printf ("Linked HarfBuzz library has a different version: %s\n", hb_version_string ());
+
+  exit(0);
+}
+
+
+void
+option_parser_t::add_main_options (void)
+{
+  GOptionEntry entries[] =
+  {
+    {"version",                0, G_OPTION_FLAG_NO_ARG,
+                             G_OPTION_ARG_CALLBACK,    (gpointer) &show_version,       "Show version numbers",                 NULL},
+    {"debug",          0, 0, G_OPTION_ARG_NONE,        &debug,                         "Free all resources before exit",       NULL},
+    {NULL}
+  };
+  g_option_context_add_main_entries (context, entries, NULL);
+}
+
+static gboolean
+pre_parse (GOptionContext *context G_GNUC_UNUSED,
+          GOptionGroup *group G_GNUC_UNUSED,
+          gpointer data,
+          GError **error)
+{
+  option_group_t *option_group = (option_group_t *) data;
+  option_group->pre_parse (error);
+  return *error == NULL;
+}
+
+static gboolean
+post_parse (GOptionContext *context G_GNUC_UNUSED,
+           GOptionGroup *group G_GNUC_UNUSED,
+           gpointer data,
+           GError **error)
+{
+  option_group_t *option_group = static_cast<option_group_t *>(data);
+  option_group->post_parse (error);
+  return *error == NULL;
+}
+
+void
+option_parser_t::add_group (GOptionEntry   *entries,
+                           const gchar    *name,
+                           const gchar    *description,
+                           const gchar    *help_description,
+                           option_group_t *option_group)
+{
+  GOptionGroup *group = g_option_group_new (name, description, help_description,
+                                           static_cast<gpointer>(option_group), NULL);
+  g_option_group_add_entries (group, entries);
+  g_option_group_set_parse_hooks (group, pre_parse, post_parse);
+  g_option_context_add_group (context, group);
+}
+
+void
+option_parser_t::parse (int *argc, char ***argv)
+{
+  setlocale (LC_ALL, "");
+
+  GError *parse_error = NULL;
+  if (!g_option_context_parse (context, argc, argv, &parse_error))
+  {
+    if (parse_error != NULL) {
+      fail (true, "%s", parse_error->message);
+      //g_error_free (parse_error);
+    } else
+      fail (true, "Option parse error");
+  }
+}
+
+
+static gboolean
+parse_margin (const char *name G_GNUC_UNUSED,
+             const char *arg,
+             gpointer    data,
+             GError    **error G_GNUC_UNUSED)
+{
+  view_options_t *view_opts = (view_options_t *) data;
+  view_options_t::margin_t &m = view_opts->margin;
+  switch (sscanf (arg, "%lf %lf %lf %lf", &m.t, &m.r, &m.b, &m.l)) {
+    case 1: m.r = m.t;
+    case 2: m.b = m.t;
+    case 3: m.l = m.r;
+    case 4: return true;
+    default:
+      g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE,
+                  "%s argument should be one to four space-separated numbers",
+                  name);
+      return false;
+  }
+}
+
+
+static gboolean
+parse_shapers (const char *name G_GNUC_UNUSED,
+              const char *arg,
+              gpointer    data,
+              GError    **error G_GNUC_UNUSED)
+{
+  shape_options_t *shape_opts = (shape_options_t *) data;
+  g_strfreev (shape_opts->shapers);
+  shape_opts->shapers = g_strsplit (arg, ",", 0);
+  return true;
+}
+
+static G_GNUC_NORETURN gboolean
+list_shapers (const char *name G_GNUC_UNUSED,
+             const char *arg G_GNUC_UNUSED,
+             gpointer    data G_GNUC_UNUSED,
+             GError    **error G_GNUC_UNUSED)
+{
+  for (const char **shaper = hb_shape_list_shapers (); *shaper; shaper++)
+    g_printf ("%s\n", *shaper);
+
+  exit(0);
+}
+
+
+static gboolean
+parse_features (const char *name G_GNUC_UNUSED,
+               const char *arg,
+               gpointer    data,
+               GError    **error G_GNUC_UNUSED)
+{
+  shape_options_t *shape_opts = (shape_options_t *) data;
+  char *s = (char *) arg;
+  char *p;
+
+  shape_opts->num_features = 0;
+  g_free (shape_opts->features);
+  shape_opts->features = NULL;
+
+  if (!*s)
+    return true;
+
+  /* count the features first, so we can allocate memory */
+  p = s;
+  do {
+    shape_opts->num_features++;
+    p = strchr (p, ',');
+    if (p)
+      p++;
+  } while (p);
+
+  shape_opts->features = (hb_feature_t *) calloc (shape_opts->num_features, sizeof (*shape_opts->features));
+
+  /* now do the actual parsing */
+  p = s;
+  shape_opts->num_features = 0;
+  while (p && *p) {
+    char *end = strchr (p, ',');
+    if (hb_feature_from_string (p, end ? end - p : -1, &shape_opts->features[shape_opts->num_features]))
+      shape_opts->num_features++;
+    p = end ? end + 1 : NULL;
+  }
+
+  return true;
+}
+
+
+void
+view_options_t::add_options (option_parser_t *parser)
+{
+  GOptionEntry entries[] =
+  {
+    {"annotate",       0, 0, G_OPTION_ARG_NONE,        &this->annotate,                "Annotate output rendering",                            NULL},
+    {"background",     0, 0, G_OPTION_ARG_STRING,      &this->back,                    "Set background color (default: " DEFAULT_BACK ")",     "rrggbb/rrggbbaa"},
+    {"foreground",     0, 0, G_OPTION_ARG_STRING,      &this->fore,                    "Set foreground color (default: " DEFAULT_FORE ")",     "rrggbb/rrggbbaa"},
+    {"line-space",     0, 0, G_OPTION_ARG_DOUBLE,      &this->line_space,              "Set space between lines (default: 0)",                 "units"},
+    {"margin",         0, 0, G_OPTION_ARG_CALLBACK,    (gpointer) &parse_margin,       "Margin around output (default: " G_STRINGIFY(DEFAULT_MARGIN) ")","one to four numbers"},
+    {"font-size",      0, 0, G_OPTION_ARG_DOUBLE,      &this->font_size,               "Font size (default: " G_STRINGIFY(DEFAULT_FONT_SIZE) ")","size"},
+    {NULL}
+  };
+  parser->add_group (entries,
+                    "view",
+                    "View options:",
+                    "Options controlling output rendering",
+                    this);
+}
+
+void
+shape_options_t::add_options (option_parser_t *parser)
+{
+  GOptionEntry entries[] =
+  {
+    {"list-shapers",   0, G_OPTION_FLAG_NO_ARG,
+                             G_OPTION_ARG_CALLBACK,    (gpointer) &list_shapers,       "List available shapers and quit",      NULL},
+    {"shaper",         0, G_OPTION_FLAG_HIDDEN,
+                             G_OPTION_ARG_CALLBACK,    (gpointer) &parse_shapers,      "Hidden duplicate of --shapers",        NULL},
+    {"shapers",                0, 0, G_OPTION_ARG_CALLBACK,    (gpointer) &parse_shapers,      "Set comma-separated list of shapers to try","list"},
+    {"direction",      0, 0, G_OPTION_ARG_STRING,      &this->direction,               "Set text direction (default: auto)",   "ltr/rtl/ttb/btt"},
+    {"language",       0, 0, G_OPTION_ARG_STRING,      &this->language,                "Set text language (default: $LANG)",   "langstr"},
+    {"script",         0, 0, G_OPTION_ARG_STRING,      &this->script,                  "Set text script (default: auto)",      "ISO-15924 tag"},
+    {"bot",            0, 0, G_OPTION_ARG_NONE,        &this->bot,                     "Treat text as beginning-of-paragraph", NULL},
+    {"eot",            0, 0, G_OPTION_ARG_NONE,        &this->eot,                     "Treat text as end-of-paragraph",       NULL},
+    {"preserve-default-ignorables",0, 0, G_OPTION_ARG_NONE,    &this->preserve_default_ignorables,     "Preserve Default-Ignorable characters",        NULL},
+    {"utf8-clusters",  0, 0, G_OPTION_ARG_NONE,        &this->utf8_clusters,           "Use UTF8 byte indices, not char indices",      NULL},
+    {"normalize-glyphs",0, 0, G_OPTION_ARG_NONE,       &this->normalize_glyphs,        "Rearrange glyph clusters in nominal order",    NULL},
+    {"num-iterations", 0, 0, G_OPTION_ARG_INT,         &this->num_iterations,          "Run shaper N times (default: 1)",      "N"},
+    {NULL}
+  };
+  parser->add_group (entries,
+                    "shape",
+                    "Shape options:",
+                    "Options controlling the shaping process",
+                    this);
+
+  const gchar *features_help = "Comma-separated list of font features\n"
+    "\n"
+    "    Features can be enabled or disabled, either globally or limited to\n"
+    "    specific character ranges.  The format for specifying feature settings\n"
+    "    follows.  All valid CSS font-feature-settings values other than 'normal'\n"
+    "    and 'inherited' are also accepted, though, not documented below.\n"
+    "\n"
+    "    The range indices refer to the positions between Unicode characters,\n"
+    "    unless the --utf8-clusters is provided, in which case range indices\n"
+    "    refer to UTF-8 byte indices. The position before the first character\n"
+    "    is always 0.\n"
+    "\n"
+    "    The format is Python-esque.  Here is how it all works:\n"
+    "\n"
+    "      Syntax:       Value:    Start:    End:\n"
+    "\n"
+    "    Setting value:\n"
+    "      \"kern\"        1         0         ∞         # Turn feature on\n"
+    "      \"+kern\"       1         0         ∞         # Turn feature on\n"
+    "      \"-kern\"       0         0         ∞         # Turn feature off\n"
+    "      \"kern=0\"      0         0         ∞         # Turn feature off\n"
+    "      \"kern=1\"      1         0         ∞         # Turn feature on\n"
+    "      \"aalt=2\"      2         0         ∞         # Choose 2nd alternate\n"
+    "\n"
+    "    Setting index:\n"
+    "      \"kern[]\"      1         0         ∞         # Turn feature on\n"
+    "      \"kern[:]\"     1         0         ∞         # Turn feature on\n"
+    "      \"kern[5:]\"    1         5         ∞         # Turn feature on, partial\n"
+    "      \"kern[:5]\"    1         0         5         # Turn feature on, partial\n"
+    "      \"kern[3:5]\"   1         3         5         # Turn feature on, range\n"
+    "      \"kern[3]\"     1         3         3+1       # Turn feature on, single char\n"
+    "\n"
+    "    Mixing it all:\n"
+    "\n"
+    "      \"aalt[3:5]=2\" 2         3         5         # Turn 2nd alternate on for range";
+
+  GOptionEntry entries2[] =
+  {
+    {"features",       0, 0, G_OPTION_ARG_CALLBACK,    (gpointer) &parse_features,     features_help,  "list"},
+    {NULL}
+  };
+  parser->add_group (entries2,
+                    "features",
+                    "Features options:",
+                    "Options controlling font features used",
+                    this);
+}
+
+void
+font_options_t::add_options (option_parser_t *parser)
+{
+  char *text = NULL;
+
+  {
+    ASSERT_STATIC (ARRAY_LENGTH_CONST (supported_font_funcs) > 0);
+    GString *s = g_string_new (NULL);
+    g_string_printf (s, "Set font functions implementation to use (default: %s)\n\n    Supported font function implementations are: %s",
+                    supported_font_funcs[0].name,
+                    supported_font_funcs[0].name);
+    for (unsigned int i = 1; i < ARRAY_LENGTH (supported_font_funcs); i++)
+    {
+      g_string_append_c (s, '/');
+      g_string_append (s, supported_font_funcs[i].name);
+    }
+    text = g_string_free (s, FALSE);
+    parser->free_later (text);
+  }
+
+  GOptionEntry entries[] =
+  {
+    {"font-file",      0, 0, G_OPTION_ARG_STRING,      &this->font_file,               "Set font file-name",                   "filename"},
+    {"face-index",     0, 0, G_OPTION_ARG_INT,         &this->face_index,              "Set face index (default: 0)",          "index"},
+    {"font-funcs",     0, 0, G_OPTION_ARG_STRING,      &this->font_funcs,              text,                                   "format"},
+    {NULL}
+  };
+  parser->add_group (entries,
+                    "font",
+                    "Font options:",
+                    "Options controlling the font",
+                    this);
+}
+
+void
+text_options_t::add_options (option_parser_t *parser)
+{
+  GOptionEntry entries[] =
+  {
+    {"text",           0, 0, G_OPTION_ARG_STRING,      &this->text,                    "Set input text",                       "string"},
+    {"text-file",      0, 0, G_OPTION_ARG_STRING,      &this->text_file,               "Set input text file-name\n\n    If no text is provided, standard input is used for input.\n",          "filename"},
+    {"text-before",    0, 0, G_OPTION_ARG_STRING,      &this->text_before,             "Set text context before each line",    "string"},
+    {"text-after",     0, 0, G_OPTION_ARG_STRING,      &this->text_after,              "Set text context after each line",     "string"},
+    {NULL}
+  };
+  parser->add_group (entries,
+                    "text",
+                    "Text options:",
+                    "Options controlling the input text",
+                    this);
+}
+
+void
+output_options_t::add_options (option_parser_t *parser)
+{
+  const char *text;
+
+  if (NULL == supported_formats)
+    text = "Set output format";
+  else
+  {
+    char *items = g_strjoinv ("/", const_cast<char **> (supported_formats));
+    text = g_strdup_printf ("Set output format\n\n    Supported output formats are: %s", items);
+    g_free (items);
+    parser->free_later ((char *) text);
+  }
+
+  GOptionEntry entries[] =
+  {
+    {"output-file",    0, 0, G_OPTION_ARG_STRING,      &this->output_file,             "Set output file-name (default: stdout)","filename"},
+    {"output-format",  0, 0, G_OPTION_ARG_STRING,      &this->output_format,           text,                                   "format"},
+    {NULL}
+  };
+  parser->add_group (entries,
+                    "output",
+                    "Output options:",
+                    "Options controlling the output",
+                    this);
+}
+
+
+
+hb_font_t *
+font_options_t::get_font (void) const
+{
+  if (font)
+    return font;
+
+  hb_blob_t *blob = NULL;
+
+  /* Create the blob */
+  {
+    char *font_data;
+    unsigned int len = 0;
+    hb_destroy_func_t destroy;
+    void *user_data;
+    hb_memory_mode_t mm;
+
+    /* This is a hell of a lot of code for just reading a file! */
+    if (!font_file)
+      fail (true, "No font file set");
+
+    if (0 == strcmp (font_file, "-")) {
+      /* read it */
+      GString *gs = g_string_new (NULL);
+      char buf[BUFSIZ];
+#if defined(_WIN32) || defined(__CYGWIN__)
+      setmode (fileno (stdin), _O_BINARY);
+#endif
+      while (!feof (stdin)) {
+       size_t ret = fread (buf, 1, sizeof (buf), stdin);
+       if (ferror (stdin))
+         fail (false, "Failed reading font from standard input: %s",
+               strerror (errno));
+       g_string_append_len (gs, buf, ret);
+      }
+      len = gs->len;
+      font_data = g_string_free (gs, false);
+      user_data = font_data;
+      destroy = (hb_destroy_func_t) g_free;
+      mm = HB_MEMORY_MODE_WRITABLE;
+    } else {
+      GError *error = NULL;
+      GMappedFile *mf = g_mapped_file_new (font_file, false, &error);
+      if (mf) {
+       font_data = g_mapped_file_get_contents (mf);
+       len = g_mapped_file_get_length (mf);
+       if (len) {
+         destroy = (hb_destroy_func_t) g_mapped_file_unref;
+         user_data = (void *) mf;
+         mm = HB_MEMORY_MODE_READONLY_MAY_MAKE_WRITABLE;
+       } else
+         g_mapped_file_unref (mf);
+      } else {
+       fail (false, "%s", error->message);
+       //g_error_free (error);
+      }
+      if (!len) {
+       /* GMappedFile is buggy, it doesn't fail if file isn't regular.
+        * Try reading.
+        * https://bugzilla.gnome.org/show_bug.cgi?id=659212 */
+        GError *error = NULL;
+       gsize l;
+       if (g_file_get_contents (font_file, &font_data, &l, &error)) {
+         len = l;
+         destroy = (hb_destroy_func_t) g_free;
+         user_data = (void *) font_data;
+         mm = HB_MEMORY_MODE_WRITABLE;
+       } else {
+         fail (false, "%s", error->message);
+         //g_error_free (error);
+       }
+      }
+    }
+
+    blob = hb_blob_create (font_data, len, mm, user_data, destroy);
+  }
+
+  /* Create the face */
+  hb_face_t *face = hb_face_create (blob, face_index);
+  hb_blob_destroy (blob);
+
+
+  font = hb_font_create (face);
+
+  unsigned int upem = hb_face_get_upem (face);
+  hb_font_set_scale (font, upem, upem);
+  hb_face_destroy (face);
+
+  void (*set_font_funcs) (hb_font_t *) = NULL;
+  if (!font_funcs)
+  {
+    set_font_funcs = supported_font_funcs[0].func;
+  }
+  else
+  {
+    for (unsigned int i = 0; i < ARRAY_LENGTH (supported_font_funcs); i++)
+      if (0 == strcasecmp (font_funcs, supported_font_funcs[i].name))
+      {
+       set_font_funcs = supported_font_funcs[i].func;
+       break;
+      }
+    if (!set_font_funcs)
+    {
+      GString *s = g_string_new (NULL);
+      for (unsigned int i = 0; i < ARRAY_LENGTH (supported_font_funcs); i++)
+      {
+        if (i)
+         g_string_append_c (s, '/');
+       g_string_append (s, supported_font_funcs[i].name);
+      }
+      char *p = g_string_free (s, FALSE);
+      fail (false, "Unknown font function implementation `%s'; supported values are: %s; default is %s",
+           font_funcs,
+           p,
+           supported_font_funcs[0].name);
+      //free (p);
+    }
+  }
+  set_font_funcs (font);
+
+  return font;
+}
+
+
+const char *
+text_options_t::get_line (unsigned int *len)
+{
+  if (text) {
+    if (text_len == (unsigned int) -1)
+      text_len = strlen (text);
+
+    if (!text_len) {
+      *len = 0;
+      return NULL;
+    }
+
+    const char *ret = text;
+    const char *p = (const char *) memchr (text, '\n', text_len);
+    unsigned int ret_len;
+    if (!p) {
+      ret_len = text_len;
+      text += ret_len;
+      text_len = 0;
+    } else {
+      ret_len = p - ret;
+      text += ret_len + 1;
+      text_len -= ret_len + 1;
+    }
+
+    *len = ret_len;
+    return ret;
+  }
+
+  if (!fp) {
+    if (!text_file)
+      fail (true, "At least one of text or text-file must be set");
+
+    if (0 != strcmp (text_file, "-"))
+      fp = fopen (text_file, "r");
+    else
+      fp = stdin;
+
+    if (!fp)
+      fail (false, "Failed opening text file `%s': %s",
+           text_file, strerror (errno));
+
+    gs = g_string_new (NULL);
+  }
+
+  g_string_set_size (gs, 0);
+  char buf[BUFSIZ];
+  while (fgets (buf, sizeof (buf), fp)) {
+    unsigned int bytes = strlen (buf);
+    if (bytes && buf[bytes - 1] == '\n') {
+      bytes--;
+      g_string_append_len (gs, buf, bytes);
+      break;
+    }
+      g_string_append_len (gs, buf, bytes);
+  }
+  if (ferror (fp))
+    fail (false, "Failed reading text: %s",
+         strerror (errno));
+  *len = gs->len;
+  return !*len && feof (fp) ? NULL : gs->str;
+}
+
+
+FILE *
+output_options_t::get_file_handle (void)
+{
+  if (fp)
+    return fp;
+
+  if (output_file)
+    fp = fopen (output_file, "wb");
+  else {
+#if defined(_WIN32) || defined(__CYGWIN__)
+    setmode (fileno (stdout), _O_BINARY);
+#endif
+    fp = stdout;
+  }
+  if (!fp)
+    fail (false, "Cannot open output file `%s': %s",
+         g_filename_display_name (output_file), strerror (errno));
+
+  return fp;
+}
+
+static gboolean
+parse_verbose (const char *name G_GNUC_UNUSED,
+              const char *arg G_GNUC_UNUSED,
+              gpointer    data G_GNUC_UNUSED,
+              GError    **error G_GNUC_UNUSED)
+{
+  format_options_t *format_opts = (format_options_t *) data;
+  format_opts->show_text = format_opts->show_unicode = format_opts->show_line_num = true;
+  return true;
+}
+
+void
+format_options_t::add_options (option_parser_t *parser)
+{
+  GOptionEntry entries[] =
+  {
+    {"no-glyph-names", 0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE,    &this->show_glyph_names,        "Use glyph indices instead of names",   NULL},
+    {"no-positions",   0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE,    &this->show_positions,          "Do not show glyph positions",          NULL},
+    {"no-clusters",    0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE,    &this->show_clusters,           "Do not show cluster mapping",          NULL},
+    {"show-text",      0, 0,                     G_OPTION_ARG_NONE,    &this->show_text,               "Show input text",                      NULL},
+    {"show-unicode",   0, 0,                     G_OPTION_ARG_NONE,    &this->show_unicode,            "Show input Unicode codepoints",        NULL},
+    {"show-line-num",  0, 0,                     G_OPTION_ARG_NONE,    &this->show_line_num,           "Show line numbers",                    NULL},
+    {"verbose",                0, G_OPTION_FLAG_NO_ARG,  G_OPTION_ARG_CALLBACK,(gpointer) &parse_verbose,      "Show everything",                      NULL},
+    {NULL}
+  };
+  parser->add_group (entries,
+                    "format",
+                    "Format options:",
+                    "Options controlling the formatting of buffer contents",
+                    this);
+}
+
+void
+format_options_t::serialize_unicode (hb_buffer_t *buffer,
+                                    GString     *gs)
+{
+  unsigned int num_glyphs = hb_buffer_get_length (buffer);
+  hb_glyph_info_t *info = hb_buffer_get_glyph_infos (buffer, NULL);
+
+  g_string_append_c (gs, '<');
+  for (unsigned int i = 0; i < num_glyphs; i++)
+  {
+    if (i)
+      g_string_append_c (gs, ',');
+    g_string_append_printf (gs, "U+%04X", info->codepoint);
+    info++;
+  }
+  g_string_append_c (gs, '>');
+}
+
+void
+format_options_t::serialize_glyphs (hb_buffer_t *buffer,
+                                   hb_font_t   *font,
+                                   hb_buffer_serialize_format_t output_format,
+                                   hb_buffer_serialize_flags_t flags,
+                                   GString     *gs)
+{
+  g_string_append_c (gs, '[');
+  unsigned int num_glyphs = hb_buffer_get_length (buffer);
+  unsigned int start = 0;
+
+  while (start < num_glyphs) {
+    char buf[1024];
+    unsigned int consumed;
+    start += hb_buffer_serialize_glyphs (buffer, start, num_glyphs,
+                                        buf, sizeof (buf), &consumed,
+                                        font, output_format, flags);
+    if (!consumed)
+      break;
+    g_string_append (gs, buf);
+  }
+  g_string_append_c (gs, ']');
+}
+void
+format_options_t::serialize_line_no (unsigned int  line_no,
+                                    GString      *gs)
+{
+  if (show_line_num)
+    g_string_append_printf (gs, "%d: ", line_no);
+}
+void
+format_options_t::serialize_buffer_of_text (hb_buffer_t  *buffer,
+                                           unsigned int  line_no,
+                                           const char   *text,
+                                           unsigned int  text_len,
+                                           hb_font_t    *font,
+                                           GString      *gs)
+{
+  if (show_text) {
+    serialize_line_no (line_no, gs);
+    g_string_append_c (gs, '(');
+    g_string_append_len (gs, text, text_len);
+    g_string_append_c (gs, ')');
+    g_string_append_c (gs, '\n');
+  }
+
+  if (show_unicode) {
+    serialize_line_no (line_no, gs);
+    serialize_unicode (buffer, gs);
+    g_string_append_c (gs, '\n');
+  }
+}
+void
+format_options_t::serialize_message (unsigned int  line_no,
+                                    const char   *msg,
+                                    GString      *gs)
+{
+  serialize_line_no (line_no, gs);
+  g_string_append_printf (gs, "%s", msg);
+  g_string_append_c (gs, '\n');
+}
+void
+format_options_t::serialize_buffer_of_glyphs (hb_buffer_t  *buffer,
+                                             unsigned int  line_no,
+                                             const char   *text,
+                                             unsigned int  text_len,
+                                             hb_font_t    *font,
+                                             hb_buffer_serialize_format_t output_format,
+                                             hb_buffer_serialize_flags_t format_flags,
+                                             GString      *gs)
+{
+  serialize_line_no (line_no, gs);
+  serialize_glyphs (buffer, font, output_format, format_flags, gs);
+  g_string_append_c (gs, '\n');
+}
diff --git a/util/options.hh b/util/options.hh
new file mode 100644 (file)
index 0000000..223778d
--- /dev/null
@@ -0,0 +1,445 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#ifndef OPTIONS_HH
+#define OPTIONS_HH
+
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <stdlib.h>
+#include <stddef.h>
+#include <string.h>
+#include <stdio.h>
+#include <math.h>
+#include <locale.h>
+#include <errno.h>
+#include <fcntl.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h> /* for isatty() */
+#endif
+#if defined(_WIN32) || defined(__CYGWIN__)
+#include <io.h> /* for setmode() under Windows */
+#endif
+
+#include <hb.h>
+#ifdef HAVE_OT
+#include <hb-ot.h>
+#endif
+#include <glib.h>
+#include <glib/gprintf.h>
+
+#if !GLIB_CHECK_VERSION (2, 22, 0)
+# define g_mapped_file_unref g_mapped_file_free
+#endif
+
+
+/* A few macros copied from hb-private.hh. */
+
+#if __GNUC__ >= 4
+#define HB_UNUSED      __attribute__((unused))
+#else
+#define HB_UNUSED
+#endif
+
+#undef MIN
+template <typename Type> static inline Type MIN (const Type &a, const Type &b) { return a < b ? a : b; }
+
+#undef MAX
+template <typename Type> static inline Type MAX (const Type &a, const Type &b) { return a > b ? a : b; }
+
+#undef  ARRAY_LENGTH
+template <typename Type, unsigned int n>
+static inline unsigned int ARRAY_LENGTH (const Type (&)[n]) { return n; }
+/* A const version, but does not detect erratically being called on pointers. */
+#define ARRAY_LENGTH_CONST(__array) ((signed int) (sizeof (__array) / sizeof (__array[0])))
+
+#define _ASSERT_STATIC1(_line, _cond)  HB_UNUSED typedef int _static_assert_on_line_##_line##_failed[(_cond)?1:-1]
+#define _ASSERT_STATIC0(_line, _cond)  _ASSERT_STATIC1 (_line, (_cond))
+#define ASSERT_STATIC(_cond)           _ASSERT_STATIC0 (__LINE__, (_cond))
+
+
+void fail (hb_bool_t suggest_help, const char *format, ...) G_GNUC_NORETURN G_GNUC_PRINTF (2, 3);
+
+
+extern hb_bool_t debug;
+
+struct option_group_t
+{
+  virtual void add_options (struct option_parser_t *parser) = 0;
+
+  virtual void pre_parse (GError **error G_GNUC_UNUSED) {};
+  virtual void post_parse (GError **error G_GNUC_UNUSED) {};
+};
+
+
+struct option_parser_t
+{
+  option_parser_t (const char *usage) {
+    memset (this, 0, sizeof (*this));
+    usage_str = usage;
+    context = g_option_context_new (usage);
+    to_free = g_ptr_array_new ();
+
+    add_main_options ();
+  }
+  ~option_parser_t (void) {
+    g_option_context_free (context);
+    g_ptr_array_foreach (to_free, (GFunc) g_free, NULL);
+    g_ptr_array_free (to_free, TRUE);
+  }
+
+  void add_main_options (void);
+
+  void add_group (GOptionEntry   *entries,
+                 const gchar    *name,
+                 const gchar    *description,
+                 const gchar    *help_description,
+                 option_group_t *option_group);
+
+  void free_later (char *p) {
+    g_ptr_array_add (to_free, p);
+  }
+
+  void parse (int *argc, char ***argv);
+
+  G_GNUC_NORETURN void usage (void) {
+    g_printerr ("Usage: %s [OPTION...] %s\n", g_get_prgname (), usage_str);
+    exit (1);
+  }
+
+  private:
+  const char *usage_str;
+  GOptionContext *context;
+  GPtrArray *to_free;
+};
+
+
+#define DEFAULT_MARGIN 16
+#define DEFAULT_FORE "#000000"
+#define DEFAULT_BACK "#FFFFFF"
+#define DEFAULT_FONT_SIZE 256
+
+struct view_options_t : option_group_t
+{
+  view_options_t (option_parser_t *parser) {
+    annotate = false;
+    fore = DEFAULT_FORE;
+    back = DEFAULT_BACK;
+    line_space = 0;
+    margin.t = margin.r = margin.b = margin.l = DEFAULT_MARGIN;
+    font_size = DEFAULT_FONT_SIZE;
+
+    add_options (parser);
+  }
+
+  void add_options (option_parser_t *parser);
+
+  hb_bool_t annotate;
+  const char *fore;
+  const char *back;
+  double line_space;
+  struct margin_t {
+    double t, r, b, l;
+  } margin;
+  double font_size;
+};
+
+
+struct shape_options_t : option_group_t
+{
+  shape_options_t (option_parser_t *parser)
+  {
+    direction = language = script = NULL;
+    bot = eot = preserve_default_ignorables = false;
+    features = NULL;
+    num_features = 0;
+    shapers = NULL;
+    utf8_clusters = false;
+    normalize_glyphs = false;
+    num_iterations = 1;
+
+    add_options (parser);
+  }
+  ~shape_options_t (void)
+  {
+    free (features);
+    g_strfreev (shapers);
+  }
+
+  void add_options (option_parser_t *parser);
+
+  void setup_buffer (hb_buffer_t *buffer)
+  {
+    hb_buffer_set_direction (buffer, hb_direction_from_string (direction, -1));
+    hb_buffer_set_script (buffer, hb_script_from_string (script, -1));
+    hb_buffer_set_language (buffer, hb_language_from_string (language, -1));
+    hb_buffer_set_flags (buffer, (hb_buffer_flags_t) (HB_BUFFER_FLAG_DEFAULT |
+                        (bot ? HB_BUFFER_FLAG_BOT : 0) |
+                        (eot ? HB_BUFFER_FLAG_EOT : 0) |
+                        (preserve_default_ignorables ? HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES : 0)));
+    hb_buffer_guess_segment_properties (buffer);
+  }
+
+  void populate_buffer (hb_buffer_t *buffer, const char *text, int text_len,
+                       const char *text_before, const char *text_after)
+  {
+    hb_buffer_clear_contents (buffer);
+    if (text_before) {
+      unsigned int len = strlen (text_before);
+      hb_buffer_add_utf8 (buffer, text_before, len, len, 0);
+    }
+    hb_buffer_add_utf8 (buffer, text, text_len, 0, text_len);
+    if (text_after) {
+      hb_buffer_add_utf8 (buffer, text_after, -1, 0, 0);
+    }
+
+    if (!utf8_clusters) {
+      /* Reset cluster values to refer to Unicode character index
+       * instead of UTF-8 index. */
+      unsigned int num_glyphs = hb_buffer_get_length (buffer);
+      hb_glyph_info_t *info = hb_buffer_get_glyph_infos (buffer, NULL);
+      for (unsigned int i = 0; i < num_glyphs; i++)
+      {
+       info->cluster = i;
+       info++;
+      }
+    }
+
+    setup_buffer (buffer);
+  }
+
+  hb_bool_t shape (hb_font_t *font, hb_buffer_t *buffer)
+  {
+    hb_bool_t res = hb_shape_full (font, buffer, features, num_features, shapers);
+    if (normalize_glyphs)
+      hb_buffer_normalize_glyphs (buffer);
+    return res;
+  }
+
+  void shape_closure (const char *text, int text_len,
+                     hb_font_t *font, hb_buffer_t *buffer,
+                     hb_set_t *glyphs)
+  {
+    hb_buffer_reset (buffer);
+    hb_buffer_add_utf8 (buffer, text, text_len, 0, text_len);
+    setup_buffer (buffer);
+    hb_ot_shape_glyphs_closure (font, buffer, features, num_features, glyphs);
+  }
+
+  /* Buffer properties */
+  const char *direction;
+  const char *language;
+  const char *script;
+
+  /* Buffer flags */
+  hb_bool_t bot;
+  hb_bool_t eot;
+  hb_bool_t preserve_default_ignorables;
+
+  hb_feature_t *features;
+  unsigned int num_features;
+  char **shapers;
+  hb_bool_t utf8_clusters;
+  hb_bool_t normalize_glyphs;
+  unsigned int num_iterations;
+};
+
+
+struct font_options_t : option_group_t
+{
+  font_options_t (option_parser_t *parser) {
+    font_file = NULL;
+    face_index = 0;
+    font_funcs = NULL;
+
+    font = NULL;
+
+    add_options (parser);
+  }
+  ~font_options_t (void) {
+    hb_font_destroy (font);
+  }
+
+  void add_options (option_parser_t *parser);
+
+  hb_font_t *get_font (void) const;
+
+  const char *font_file;
+  int face_index;
+  const char *font_funcs;
+
+  private:
+  mutable hb_font_t *font;
+};
+
+
+struct text_options_t : option_group_t
+{
+  text_options_t (option_parser_t *parser) {
+    text_before = NULL;
+    text_after = NULL;
+
+    text = NULL;
+    text_file = NULL;
+
+    fp = NULL;
+    gs = NULL;
+    text_len = (unsigned int) -1;
+
+    add_options (parser);
+  }
+  ~text_options_t (void) {
+    if (gs)
+      g_string_free (gs, true);
+    if (fp)
+      fclose (fp);
+  }
+
+  void add_options (option_parser_t *parser);
+
+  void post_parse (GError **error G_GNUC_UNUSED) {
+    if (text && text_file)
+      g_set_error (error,
+                  G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE,
+                  "Only one of text and text-file can be set");
+
+  };
+
+  const char *get_line (unsigned int *len);
+
+  const char *text_before;
+  const char *text_after;
+
+  const char *text;
+  const char *text_file;
+
+  private:
+  FILE *fp;
+  GString *gs;
+  unsigned int text_len;
+};
+
+struct output_options_t : option_group_t
+{
+  output_options_t (option_parser_t *parser,
+                   const char **supported_formats_ = NULL) {
+    output_file = NULL;
+    output_format = NULL;
+    supported_formats = supported_formats_;
+    explicit_output_format = false;
+
+    fp = NULL;
+
+    add_options (parser);
+  }
+  ~output_options_t (void) {
+    if (fp)
+      fclose (fp);
+  }
+
+  void add_options (option_parser_t *parser);
+
+  void post_parse (GError **error G_GNUC_UNUSED)
+  {
+    if (output_format)
+      explicit_output_format = true;
+
+    if (output_file && !output_format) {
+      output_format = strrchr (output_file, '.');
+      if (output_format)
+         output_format++; /* skip the dot */
+    }
+
+    if (output_file && 0 == strcmp (output_file, "-"))
+      output_file = NULL; /* STDOUT */
+  }
+
+  FILE *get_file_handle (void);
+
+  const char *output_file;
+  const char *output_format;
+  const char **supported_formats;
+  bool explicit_output_format;
+
+  mutable FILE *fp;
+};
+
+struct format_options_t : option_group_t
+{
+  format_options_t (option_parser_t *parser) {
+    show_glyph_names = true;
+    show_positions = true;
+    show_clusters = true;
+    show_text = false;
+    show_unicode = false;
+    show_line_num = false;
+
+    add_options (parser);
+  }
+
+  void add_options (option_parser_t *parser);
+
+  void serialize_unicode (hb_buffer_t  *buffer,
+                         GString      *gs);
+  void serialize_glyphs (hb_buffer_t  *buffer,
+                        hb_font_t    *font,
+                        hb_buffer_serialize_format_t format,
+                        hb_buffer_serialize_flags_t flags,
+                        GString      *gs);
+  void serialize_line_no (unsigned int  line_no,
+                         GString      *gs);
+  void serialize_buffer_of_text (hb_buffer_t  *buffer,
+                                unsigned int  line_no,
+                                const char   *text,
+                                unsigned int  text_len,
+                                hb_font_t    *font,
+                                GString      *gs);
+  void serialize_message (unsigned int  line_no,
+                         const char   *msg,
+                         GString      *gs);
+  void serialize_buffer_of_glyphs (hb_buffer_t  *buffer,
+                                  unsigned int  line_no,
+                                  const char   *text,
+                                  unsigned int  text_len,
+                                  hb_font_t    *font,
+                                  hb_buffer_serialize_format_t output_format,
+                                  hb_buffer_serialize_flags_t format_flags,
+                                  GString      *gs);
+
+
+  hb_bool_t show_glyph_names;
+  hb_bool_t show_positions;
+  hb_bool_t show_clusters;
+  hb_bool_t show_text;
+  hb_bool_t show_unicode;
+  hb_bool_t show_line_num;
+};
+
+
+#endif
diff --git a/util/shape-consumer.hh b/util/shape-consumer.hh
new file mode 100644 (file)
index 0000000..422c8cd
--- /dev/null
@@ -0,0 +1,89 @@
+/*
+ * Copyright © 2011,2012  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "options.hh"
+
+#ifndef HB_SHAPE_CONSUMER_HH
+#define HB_SHAPE_CONSUMER_HH
+
+
+template <typename output_t>
+struct shape_consumer_t
+{
+  shape_consumer_t (option_parser_t *parser)
+                 : failed (false),
+                   shaper (parser),
+                   output (parser),
+                   font (NULL) {}
+
+  void init (const font_options_t *font_opts)
+  {
+    font = hb_font_reference (font_opts->get_font ());
+    output.init (font_opts);
+    failed = false;
+  }
+  void consume_line (hb_buffer_t  *buffer,
+                    const char   *text,
+                    unsigned int  text_len,
+                    const char   *text_before,
+                    const char   *text_after)
+  {
+    output.new_line ();
+
+    for (unsigned int n = shaper.num_iterations; n; n--)
+    {
+      shaper.populate_buffer (buffer, text, text_len, text_before, text_after);
+      if (n == 1)
+       output.consume_text (buffer, text, text_len, shaper.utf8_clusters);
+      if (!shaper.shape (font, buffer)) {
+       failed = true;
+       hb_buffer_set_length (buffer, 0);
+       output.shape_failed (buffer, text, text_len, shaper.utf8_clusters);
+       return;
+      }
+    }
+
+    output.consume_glyphs (buffer, text, text_len, shaper.utf8_clusters);
+  }
+  void finish (const font_options_t *font_opts)
+  {
+    output.finish (font_opts);
+    hb_font_destroy (font);
+    font = NULL;
+  }
+
+  public:
+  bool failed;
+
+  protected:
+  shape_options_t shaper;
+  output_t output;
+
+  hb_font_t *font;
+};
+
+
+#endif
diff --git a/util/view-cairo.cc b/util/view-cairo.cc
new file mode 100644 (file)
index 0000000..666013e
--- /dev/null
@@ -0,0 +1,126 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "view-cairo.hh"
+
+void
+view_cairo_t::get_surface_size (cairo_scaled_font_t *scaled_font,
+                               double *w, double *h)
+{
+  cairo_font_extents_t font_extents;
+
+  cairo_scaled_font_extents (scaled_font, &font_extents);
+
+  bool vertical = HB_DIRECTION_IS_VERTICAL (direction);
+  (vertical ? *w : *h) = (int) lines->len * (font_extents.height + view_options.line_space) - view_options.line_space;
+  (vertical ? *h : *w) = 0;
+  for (unsigned int i = 0; i < lines->len; i++) {
+    helper_cairo_line_t &line = g_array_index (lines, helper_cairo_line_t, i);
+    double x_advance, y_advance;
+    line.get_advance (&x_advance, &y_advance);
+    if (vertical)
+      *h =  MAX (*h, y_advance);
+    else
+      *w =  MAX (*w, x_advance);
+  }
+
+  *w += view_options.margin.l + view_options.margin.r;
+  *h += view_options.margin.t + view_options.margin.b;
+}
+
+void
+view_cairo_t::render (const font_options_t *font_opts)
+{
+  cairo_scaled_font_t *scaled_font = helper_cairo_create_scaled_font (font_opts, view_options.font_size);
+  double w, h;
+  get_surface_size (scaled_font, &w, &h);
+  cairo_t *cr = helper_cairo_create_context (w, h, &view_options, &output_options);
+  cairo_set_scaled_font (cr, scaled_font);
+  cairo_scaled_font_destroy (scaled_font);
+
+  draw (cr);
+
+  helper_cairo_destroy_context (cr);
+}
+
+void
+view_cairo_t::draw (cairo_t *cr)
+{
+  cairo_save (cr);
+
+  bool vertical = HB_DIRECTION_IS_VERTICAL (direction);
+  int v = vertical ? 1 : 0;
+  int h = vertical ? 0 : 1;
+  cairo_font_extents_t font_extents;
+  cairo_font_extents (cr, &font_extents);
+  cairo_translate (cr, view_options.margin.l, view_options.margin.t);
+  double descent;
+  if (vertical)
+    descent = font_extents.height * (lines->len + .5);
+  else
+    descent = font_extents.height - font_extents.ascent;
+  cairo_translate (cr, v * descent, h * -descent);
+  for (unsigned int i = 0; i < lines->len; i++)
+  {
+    helper_cairo_line_t &l = g_array_index (lines, helper_cairo_line_t, i);
+
+    if (i)
+      cairo_translate (cr, v * -view_options.line_space, h * view_options.line_space);
+
+    cairo_translate (cr, v * -font_extents.height, h * font_extents.height);
+
+    if (view_options.annotate) {
+      cairo_save (cr);
+
+      /* Draw actual glyph origins */
+      cairo_set_source_rgba (cr, 1., 0., 0., .5);
+      cairo_set_line_width (cr, 5);
+      cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);
+      for (unsigned i = 0; i < l.num_glyphs; i++) {
+       cairo_move_to (cr, l.glyphs[i].x, l.glyphs[i].y);
+       cairo_rel_line_to (cr, 0, 0);
+      }
+      cairo_stroke (cr);
+
+      cairo_restore (cr);
+    }
+
+    if (0 && cairo_surface_get_type (cairo_get_target (cr)) == CAIRO_SURFACE_TYPE_IMAGE) {
+      /* cairo_show_glyphs() doesn't support subpixel positioning */
+      cairo_glyph_path (cr, l.glyphs, l.num_glyphs);
+      cairo_fill (cr);
+    } else if (l.num_clusters)
+      cairo_show_text_glyphs (cr,
+                             l.utf8, l.utf8_len,
+                             l.glyphs, l.num_glyphs,
+                             l.clusters, l.num_clusters,
+                             l.cluster_flags);
+    else
+      cairo_show_glyphs (cr, l.glyphs, l.num_glyphs);
+  }
+
+  cairo_restore (cr);
+}
diff --git a/util/view-cairo.hh b/util/view-cairo.hh
new file mode 100644 (file)
index 0000000..9dea06e
--- /dev/null
@@ -0,0 +1,106 @@
+/*
+ * Copyright © 2011  Google, Inc.
+ *
+ *  This is part of HarfBuzz, a text shaping library.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and its documentation for any purpose, provided that the
+ * above copyright notice and the following two paragraphs appear in
+ * all copies of this software.
+ *
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
+ * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
+ * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ *
+ * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
+ * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
+ * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
+ * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
+ *
+ * Google Author(s): Behdad Esfahbod
+ */
+
+#include "options.hh"
+#include "helper-cairo.hh"
+
+#ifndef VIEW_CAIRO_HH
+#define VIEW_CAIRO_HH
+
+
+struct view_cairo_t
+{
+  view_cairo_t (option_parser_t *parser)
+              : output_options (parser, helper_cairo_supported_formats),
+                view_options (parser),
+                direction (HB_DIRECTION_INVALID),
+                lines (0), scale (1.0) {}
+  ~view_cairo_t (void) {
+    if (debug)
+      cairo_debug_reset_static_data ();
+  }
+
+  void init (const font_options_t *font_opts)
+  {
+    lines = g_array_new (false, false, sizeof (helper_cairo_line_t));
+    scale = double (view_options.font_size) / hb_face_get_upem (hb_font_get_face (font_opts->get_font ()));
+  }
+  void new_line (void)
+  {
+  }
+  void consume_text (hb_buffer_t  *buffer,
+                    const char   *text,
+                    unsigned int  text_len,
+                    hb_bool_t     utf8_clusters)
+  {
+  }
+  void shape_failed (hb_buffer_t  *buffer,
+                    const char   *text,
+                    unsigned int  text_len,
+                    hb_bool_t     utf8_clusters)
+  {
+    fail (false, "all shapers failed");
+  }
+  void consume_glyphs (hb_buffer_t  *buffer,
+                      const char   *text,
+                      unsigned int  text_len,
+                      hb_bool_t     utf8_clusters)
+  {
+    direction = hb_buffer_get_direction (buffer);
+    helper_cairo_line_t l;
+    helper_cairo_line_from_buffer (&l, buffer, text, text_len, scale, utf8_clusters);
+    g_array_append_val (lines, l);
+  }
+  void finish (const font_options_t *font_opts)
+  {
+    render (font_opts);
+
+    for (unsigned int i = 0; i < lines->len; i++) {
+      helper_cairo_line_t &line = g_array_index (lines, helper_cairo_line_t, i);
+      line.finish ();
+    }
+#if GLIB_CHECK_VERSION (2, 22, 0)
+    g_array_unref (lines);
+#else
+    g_array_free (lines, TRUE);
+#endif
+  }
+
+  protected:
+
+  output_options_t output_options;
+  view_options_t view_options;
+
+  void render (const font_options_t *font_opts);
+  void get_surface_size (cairo_scaled_font_t *scaled_font, double *w, double *h);
+  void draw (cairo_t *cr);
+
+  hb_direction_t direction; // Remove this, make segment_properties accessible
+  GArray *lines;
+  double scale;
+};
+
+#endif